libsodium: Update to version 0.5.0
[tomato/tomato-dir865l.git] / release / src / router / libsodium / configure
blobb9e2da7cc2abda74e6fed5e7e633752d9045345a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libsodium 0.5.0.
5 # Report bugs to <https://github.com/jedisct1/libsodium/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/jedisct1/libsodium/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: 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='libsodium'
592 PACKAGE_TARNAME='libsodium'
593 PACKAGE_VERSION='0.5.0'
594 PACKAGE_STRING='libsodium 0.5.0'
595 PACKAGE_BUGREPORT='https://github.com/jedisct1/libsodium/issues'
596 PACKAGE_URL='https://github.com/jedisct1/libsodium'
598 ac_unique_file="src/libsodium/sodium/version.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 HAVE_LD_OUTPUT_DEF_FALSE
640 HAVE_LD_OUTPUT_DEF_TRUE
642 LIBTOOL_EXTRA_FLAGS
643 HAVE_CPUID_V
644 HAVE_TI_MODE_V
645 HAVE_TI_MODE_FALSE
646 HAVE_TI_MODE_TRUE
647 HAVE_AMD64_ASM_V
648 HAVE_AMD64_ASM_FALSE
649 HAVE_AMD64_ASM_TRUE
650 LIBTOOL_DEPS
651 OTOOL64
652 OTOOL
653 LIPO
654 NMEDIT
655 DSYMUTIL
656 MANIFEST_TOOL
657 RANLIB
658 ac_ct_AR
660 DLLTOOL
661 OBJDUMP
662 LN_S
664 ac_ct_DUMPBIN
665 DUMPBIN
667 FGREP
669 LIBTOOL
670 CWFLAGS
671 EGREP
672 GREP
674 am__fastdepCCAS_FALSE
675 am__fastdepCCAS_TRUE
676 CCASDEPMODE
677 CCASFLAGS
678 CCAS
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__quote
683 am__include
684 DEPDIR
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
692 HAVE_PKG_CONFIG
693 HAVE_PKG_CONFIG_FALSE
694 HAVE_PKG_CONFIG_TRUE
695 PKG_CONFIG_LIBDIR
696 PKG_CONFIG_PATH
697 PKG_CONFIG
698 SAFECODE_HOME
699 DLL_VERSION
700 SODIUM_LIBRARY_VERSION
701 SODIUM_LIBRARY_VERSION_MINOR
702 SODIUM_LIBRARY_VERSION_MAJOR
703 ISODATE
704 am__nodep
705 AMDEPBACKSLASH
706 AMDEP_FALSE
707 AMDEP_TRUE
708 MAINT
709 MAINTAINER_MODE_FALSE
710 MAINTAINER_MODE_TRUE
711 AM_BACKSLASH
712 AM_DEFAULT_VERBOSITY
713 AM_DEFAULT_V
714 AM_V
715 am__untar
716 am__tar
717 AMTAR
718 am__leading_dot
719 SET_MAKE
721 mkdir_p
722 MKDIR_P
723 INSTALL_STRIP_PROGRAM
724 STRIP
725 install_sh
726 MAKEINFO
727 AUTOHEADER
728 AUTOMAKE
729 AUTOCONF
730 ACLOCAL
731 VERSION
732 PACKAGE
733 CYGPATH_W
734 am__isrc
735 INSTALL_DATA
736 INSTALL_SCRIPT
737 INSTALL_PROGRAM
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_silent_rules
788 enable_maintainer_mode
789 enable_dependency_tracking
790 enable_ssp
791 enable_asm
792 enable_pie
793 enable_blocking_random
794 with_safecode
795 enable_debug
796 enable_soname_versions
797 enable_shared
798 enable_static
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 SAFECODE_HOME
809 PKG_CONFIG
810 PKG_CONFIG_PATH
811 PKG_CONFIG_LIBDIR
813 CFLAGS
814 LDFLAGS
815 LIBS
816 CPPFLAGS
817 CCAS
818 CCASFLAGS
820 CWFLAGS
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 ac_unrecognized_opts=
828 ac_unrecognized_sep=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
831 cache_file=/dev/null
832 exec_prefix=NONE
833 no_create=
834 no_recursion=
835 prefix=NONE
836 program_prefix=NONE
837 program_suffix=NONE
838 program_transform_name=s,x,x,
839 silent=
840 site=
841 srcdir=
842 verbose=
843 x_includes=NONE
844 x_libraries=NONE
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
864 htmldir='${docdir}'
865 dvidir='${docdir}'
866 pdfdir='${docdir}'
867 psdir='${docdir}'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
872 ac_prev=
873 ac_dashdash=
874 for ac_option
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\$ac_option
879 ac_prev=
880 continue
883 case $ac_option in
884 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 *=) ac_optarg= ;;
886 *) ac_optarg=yes ;;
887 esac
889 # Accept the important Cygnus configure options, so we can diagnose typos.
891 case $ac_dashdash$ac_option in
893 ac_dashdash=yes ;;
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
912 --config-cache | -C)
913 cache_file=config.cache ;;
915 -datadir | --datadir | --datadi | --datad)
916 ac_prev=datadir ;;
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
927 -disable-* | --disable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: $ac_useropt"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=\$ac_optarg ;;
969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971 | --exec | --exe | --ex)
972 ac_prev=exec_prefix ;;
973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975 | --exec=* | --exe=* | --ex=*)
976 exec_prefix=$ac_optarg ;;
978 -gas | --gas | --ga | --g)
979 # Obsolete; use --with-gas.
980 with_gas=yes ;;
982 -help | --help | --hel | --he | -h)
983 ac_init_help=long ;;
984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985 ac_init_help=recursive ;;
986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987 ac_init_help=short ;;
989 -host | --host | --hos | --ho)
990 ac_prev=host_alias ;;
991 -host=* | --host=* | --hos=* | --ho=*)
992 host_alias=$ac_optarg ;;
994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 ac_prev=htmldir ;;
996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 | --ht=*)
998 htmldir=$ac_optarg ;;
1000 -includedir | --includedir | --includedi | --included | --include \
1001 | --includ | --inclu | --incl | --inc)
1002 ac_prev=includedir ;;
1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004 | --includ=* | --inclu=* | --incl=* | --inc=*)
1005 includedir=$ac_optarg ;;
1007 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 ac_prev=infodir ;;
1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010 infodir=$ac_optarg ;;
1012 -libdir | --libdir | --libdi | --libd)
1013 ac_prev=libdir ;;
1014 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015 libdir=$ac_optarg ;;
1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018 | --libexe | --libex | --libe)
1019 ac_prev=libexecdir ;;
1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021 | --libexe=* | --libex=* | --libe=*)
1022 libexecdir=$ac_optarg ;;
1024 -localedir | --localedir | --localedi | --localed | --locale)
1025 ac_prev=localedir ;;
1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027 localedir=$ac_optarg ;;
1029 -localstatedir | --localstatedir | --localstatedi | --localstated \
1030 | --localstate | --localstat | --localsta | --localst | --locals)
1031 ac_prev=localstatedir ;;
1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034 localstatedir=$ac_optarg ;;
1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 ac_prev=mandir ;;
1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039 mandir=$ac_optarg ;;
1041 -nfp | --nfp | --nf)
1042 # Obsolete; use --without-fp.
1043 with_fp=no ;;
1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046 | --no-cr | --no-c | -n)
1047 no_create=yes ;;
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 no_recursion=yes ;;
1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055 | --oldin | --oldi | --old | --ol | --o)
1056 ac_prev=oldincludedir ;;
1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060 oldincludedir=$ac_optarg ;;
1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 ac_prev=prefix ;;
1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065 prefix=$ac_optarg ;;
1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068 | --program-pre | --program-pr | --program-p)
1069 ac_prev=program_prefix ;;
1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072 program_prefix=$ac_optarg ;;
1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075 | --program-suf | --program-su | --program-s)
1076 ac_prev=program_suffix ;;
1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079 program_suffix=$ac_optarg ;;
1081 -program-transform-name | --program-transform-name \
1082 | --program-transform-nam | --program-transform-na \
1083 | --program-transform-n | --program-transform- \
1084 | --program-transform | --program-transfor \
1085 | --program-transfo | --program-transf \
1086 | --program-trans | --program-tran \
1087 | --progr-tra | --program-tr | --program-t)
1088 ac_prev=program_transform_name ;;
1089 -program-transform-name=* | --program-transform-name=* \
1090 | --program-transform-nam=* | --program-transform-na=* \
1091 | --program-transform-n=* | --program-transform-=* \
1092 | --program-transform=* | --program-transfor=* \
1093 | --program-transfo=* | --program-transf=* \
1094 | --program-trans=* | --program-tran=* \
1095 | --progr-tra=* | --program-tr=* | --program-t=*)
1096 program_transform_name=$ac_optarg ;;
1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 ac_prev=pdfdir ;;
1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101 pdfdir=$ac_optarg ;;
1103 -psdir | --psdir | --psdi | --psd | --ps)
1104 ac_prev=psdir ;;
1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 psdir=$ac_optarg ;;
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1110 silent=yes ;;
1112 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 ac_prev=sbindir ;;
1114 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 | --sbi=* | --sb=*)
1116 sbindir=$ac_optarg ;;
1118 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1119 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120 | --sharedst | --shareds | --shared | --share | --shar \
1121 | --sha | --sh)
1122 ac_prev=sharedstatedir ;;
1123 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 | --sha=* | --sh=*)
1127 sharedstatedir=$ac_optarg ;;
1129 -site | --site | --sit)
1130 ac_prev=site ;;
1131 -site=* | --site=* | --sit=*)
1132 site=$ac_optarg ;;
1134 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 ac_prev=srcdir ;;
1136 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137 srcdir=$ac_optarg ;;
1139 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140 | --syscon | --sysco | --sysc | --sys | --sy)
1141 ac_prev=sysconfdir ;;
1142 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144 sysconfdir=$ac_optarg ;;
1146 -target | --target | --targe | --targ | --tar | --ta | --t)
1147 ac_prev=target_alias ;;
1148 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149 target_alias=$ac_optarg ;;
1151 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 verbose=yes ;;
1154 -version | --version | --versio | --versi | --vers | -V)
1155 ac_init_version=: ;;
1157 -with-* | --with-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=\$ac_optarg ;;
1173 -without-* | --without-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=no ;;
1189 --x)
1190 # Obsolete; use --with-x.
1191 with_x=yes ;;
1193 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194 | --x-incl | --x-inc | --x-in | --x-i)
1195 ac_prev=x_includes ;;
1196 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198 x_includes=$ac_optarg ;;
1200 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202 ac_prev=x_libraries ;;
1203 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205 x_libraries=$ac_optarg ;;
1207 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1208 Try \`$0 --help' for more information"
1211 *=*)
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 case $ac_envvar in #(
1215 '' | [0-9]* | *[!_$as_cr_alnum]* )
1216 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1217 esac
1218 eval $ac_envvar=\$ac_optarg
1219 export $ac_envvar ;;
1222 # FIXME: should be removed in autoconf 3.0.
1223 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1229 esac
1230 done
1232 if test -n "$ac_prev"; then
1233 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234 as_fn_error $? "missing argument to $ac_option"
1237 if test -n "$ac_unrecognized_opts"; then
1238 case $enable_option_checking in
1239 no) ;;
1240 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1241 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 esac
1245 # Check all directory arguments for consistency.
1246 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir
1251 eval ac_val=\$$ac_var
1252 # Remove trailing slashes.
1253 case $ac_val in
1254 */ )
1255 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256 eval $ac_var=\$ac_val;;
1257 esac
1258 # Be sure to have absolute directory names.
1259 case $ac_val in
1260 [\\/$]* | ?:[\\/]* ) continue;;
1261 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 esac
1263 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1264 done
1266 # There might be people who depend on the old broken behavior: `$host'
1267 # used to hold the argument of --host etc.
1268 # FIXME: To remove some day.
1269 build=$build_alias
1270 host=$host_alias
1271 target=$target_alias
1273 # FIXME: To remove some day.
1274 if test "x$host_alias" != x; then
1275 if test "x$build_alias" = x; then
1276 cross_compiling=maybe
1277 elif test "x$build_alias" != "x$host_alias"; then
1278 cross_compiling=yes
1282 ac_tool_prefix=
1283 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1285 test "$silent" = yes && exec 6>/dev/null
1288 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1289 ac_ls_di=`ls -di .` &&
1290 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1291 as_fn_error $? "working directory cannot be determined"
1292 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293 as_fn_error $? "pwd does not report name of working directory"
1296 # Find the source files, if location was not specified.
1297 if test -z "$srcdir"; then
1298 ac_srcdir_defaulted=yes
1299 # Try the directory containing this script, then the parent directory.
1300 ac_confdir=`$as_dirname -- "$as_myself" ||
1301 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302 X"$as_myself" : 'X\(//\)[^/]' \| \
1303 X"$as_myself" : 'X\(//\)$' \| \
1304 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305 $as_echo X"$as_myself" |
1306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 s//\1/
1310 /^X\(\/\/\)[^/].*/{
1311 s//\1/
1314 /^X\(\/\/\)$/{
1315 s//\1/
1318 /^X\(\/\).*/{
1319 s//\1/
1322 s/.*/./; q'`
1323 srcdir=$ac_confdir
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 srcdir=..
1327 else
1328 ac_srcdir_defaulted=no
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 ac_abs_confdir=`(
1336 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1337 pwd)`
1338 # When building in place, set srcdir=.
1339 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 srcdir=.
1342 # Remove unnecessary trailing slashes from srcdir.
1343 # Double slashes in file names in object file debugging info
1344 # mess up M-x gdb in Emacs.
1345 case $srcdir in
1346 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347 esac
1348 for ac_var in $ac_precious_vars; do
1349 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_env_${ac_var}_value=\$${ac_var}
1351 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 done
1356 # Report the --help message.
1358 if test "$ac_init_help" = "long"; then
1359 # Omit some internal or obsolete options to make the list less imposing.
1360 # This message is too long to be a string in the A/UX 3.1 sh.
1361 cat <<_ACEOF
1362 \`configure' configures libsodium 0.5.0 to adapt to many kinds of systems.
1364 Usage: $0 [OPTION]... [VAR=VALUE]...
1366 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367 VAR=VALUE. See below for descriptions of some of the useful variables.
1369 Defaults for the options are specified in brackets.
1371 Configuration:
1372 -h, --help display this help and exit
1373 --help=short display options specific to this package
1374 --help=recursive display the short help of all the included packages
1375 -V, --version display version information and exit
1376 -q, --quiet, --silent do not print \`checking ...' messages
1377 --cache-file=FILE cache test results in FILE [disabled]
1378 -C, --config-cache alias for \`--cache-file=config.cache'
1379 -n, --no-create do not create output files
1380 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1382 Installation directories:
1383 --prefix=PREFIX install architecture-independent files in PREFIX
1384 [$ac_default_prefix]
1385 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 [PREFIX]
1388 By default, \`make install' will install all the files in
1389 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1390 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391 for instance \`--prefix=\$HOME'.
1393 For better control, use the options below.
1395 Fine tuning of the installation directories:
1396 --bindir=DIR user executables [EPREFIX/bin]
1397 --sbindir=DIR system admin executables [EPREFIX/sbin]
1398 --libexecdir=DIR program executables [EPREFIX/libexec]
1399 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1400 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1401 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1402 --libdir=DIR object code libraries [EPREFIX/lib]
1403 --includedir=DIR C header files [PREFIX/include]
1404 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1407 --infodir=DIR info documentation [DATAROOTDIR/info]
1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1409 --mandir=DIR man documentation [DATAROOTDIR/man]
1410 --docdir=DIR documentation root [DATAROOTDIR/doc/libsodium]
1411 --htmldir=DIR html documentation [DOCDIR]
1412 --dvidir=DIR dvi documentation [DOCDIR]
1413 --pdfdir=DIR pdf documentation [DOCDIR]
1414 --psdir=DIR ps documentation [DOCDIR]
1415 _ACEOF
1417 cat <<\_ACEOF
1419 Program names:
1420 --program-prefix=PREFIX prepend PREFIX to installed program names
1421 --program-suffix=SUFFIX append SUFFIX to installed program names
1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1424 System types:
1425 --build=BUILD configure for building on BUILD [guessed]
1426 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1427 _ACEOF
1430 if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive ) echo "Configuration of libsodium 0.5.0:";;
1433 esac
1434 cat <<\_ACEOF
1436 Optional Features:
1437 --disable-option-checking ignore unrecognized --enable/--with options
1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440 --enable-silent-rules less verbose build output (undo: "make V=1")
1441 --disable-silent-rules verbose build output (undo: "make V=0")
1442 --enable-maintainer-mode
1443 enable make rules and dependencies not useful (and
1444 sometimes confusing) to the casual installer
1445 --enable-dependency-tracking
1446 do not reject slow dependency extractors
1447 --disable-dependency-tracking
1448 speeds up one-time build
1449 --disable-ssp Do not compile with -fstack-protector
1450 --disable-asm Disable assembly implementations
1451 --disable-pie Do not produce position independent executables
1452 --enable-blocking-random
1453 Use /dev/random instead of /dev/urandom
1454 --enable-debug For maintainers only - please do not use
1455 --enable-soname-versions
1456 enable soname versions (must be disabled for
1457 android) (default: enabled)
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-static[=PKGS] build static libraries [default=yes]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1464 Optional Packages:
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-safecode For maintainers only - please do not use
1468 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1469 both]
1470 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1471 --with-sysroot=DIR Search for dependent libraries within DIR
1472 (or the compiler's sysroot if not specified).
1474 Some influential environment variables:
1475 SAFECODE_HOME
1476 set to the safecode base directory
1477 PKG_CONFIG path to pkg-config utility
1478 PKG_CONFIG_PATH
1479 directories to add to pkg-config's search path
1480 PKG_CONFIG_LIBDIR
1481 path overriding pkg-config's built-in search path
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 CCAS assembler compiler command (defaults to CC)
1490 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1491 CPP C preprocessor
1492 CWFLAGS define to compilation flags for generating extra warnings
1493 AR path to the ar utility
1495 Use these variables to override the choices made by `configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1498 Report bugs to <https://github.com/jedisct1/libsodium/issues>.
1499 libsodium home page: <https://github.com/jedisct1/libsodium>.
1500 _ACEOF
1501 ac_status=$?
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509 continue
1510 ac_builddir=.
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1528 case $srcdir in
1529 .) # We are building in place.
1530 ac_srcdir=.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1552 else
1553 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554 fi || ac_status=$?
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1556 done
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561 cat <<\_ACEOF
1562 libsodium configure 0.5.0
1563 generated by GNU Autoconf 2.69
1565 Copyright (C) 2012 Free Software Foundation, Inc.
1566 This configure script is free software; the Free Software Foundation
1567 gives unlimited permission to copy, distribute and modify it.
1568 _ACEOF
1569 exit
1572 ## ------------------------ ##
1573 ## Autoconf initialization. ##
1574 ## ------------------------ ##
1576 # ac_fn_c_try_compile LINENO
1577 # --------------------------
1578 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_compile ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext
1583 if { { ac_try="$ac_compile"
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_compile") 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; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext; 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_compile
1614 # ac_fn_c_try_cpp LINENO
1615 # ----------------------
1616 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_cpp ()
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_cpp conftest.$ac_ext"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } > conftest.i && {
1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 }; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1644 ac_retval=1
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1649 } # ac_fn_c_try_cpp
1651 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1652 # -------------------------------------------------------
1653 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1654 # the include files in INCLUDES and setting the cache variable VAR
1655 # accordingly.
1656 ac_fn_c_check_header_mongrel ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if eval \${$3+:} false; then :
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1665 eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 $as_echo "$ac_res" >&6; }
1668 else
1669 # Is the header compilable?
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1671 $as_echo_n "checking $2 usability... " >&6; }
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1675 #include <$2>
1676 _ACEOF
1677 if ac_fn_c_try_compile "$LINENO"; then :
1678 ac_header_compiler=yes
1679 else
1680 ac_header_compiler=no
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1684 $as_echo "$ac_header_compiler" >&6; }
1686 # Is the header present?
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1688 $as_echo_n "checking $2 presence... " >&6; }
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1691 #include <$2>
1692 _ACEOF
1693 if ac_fn_c_try_cpp "$LINENO"; then :
1694 ac_header_preproc=yes
1695 else
1696 ac_header_preproc=no
1698 rm -f conftest.err conftest.i conftest.$ac_ext
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1700 $as_echo "$ac_header_preproc" >&6; }
1702 # So? What about this header?
1703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1704 yes:no: )
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1706 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710 no:yes:* )
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1712 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1714 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1716 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1718 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721 ( $as_echo "## ----------------------------------------------------------- ##
1722 ## Report this to https://github.com/jedisct1/libsodium/issues ##
1723 ## ----------------------------------------------------------- ##"
1724 ) | sed "s/^/$as_me: WARNING: /" >&2
1726 esac
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval \${$3+:} false; then :
1730 $as_echo_n "(cached) " >&6
1731 else
1732 eval "$3=\$ac_header_compiler"
1734 eval ac_res=\$$3
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 } # ac_fn_c_check_header_mongrel
1742 # ac_fn_c_try_run LINENO
1743 # ----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745 # that executables *can* be run.
1746 ac_fn_c_try_run ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_link"
1750 case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760 { { case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_try") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; }; }; then :
1770 ac_retval=0
1771 else
1772 $as_echo "$as_me: program exited with status $ac_status" >&5
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 ac_retval=$ac_status
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1782 } # ac_fn_c_try_run
1784 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785 # -------------------------------------------------------
1786 # Tests whether HEADER exists and can be compiled using the include files in
1787 # INCLUDES, setting the cache variable VAR accordingly.
1788 ac_fn_c_check_header_compile ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1799 #include <$2>
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802 eval "$3=yes"
1803 else
1804 eval "$3=no"
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 } # ac_fn_c_check_header_compile
1815 # ac_fn_c_try_link LINENO
1816 # -----------------------
1817 # Try to link conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_link ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext conftest$ac_exeext
1822 if { { ac_try="$ac_link"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest$ac_exeext && {
1841 test "$cross_compiling" = yes ||
1842 test -x conftest$ac_exeext
1843 }; then :
1844 ac_retval=0
1845 else
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1849 ac_retval=1
1851 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1852 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1853 # interfere with the next link command; also delete a directory that is
1854 # left behind by Apple's compiler. We do this before executing the actions.
1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1859 } # ac_fn_c_try_link
1861 # ac_fn_c_check_func LINENO FUNC VAR
1862 # ----------------------------------
1863 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1864 ac_fn_c_check_func ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1871 else
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1874 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1876 #define $2 innocuous_$2
1878 /* System header to define __stub macros and hopefully few prototypes,
1879 which can conflict with char $2 (); below.
1880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881 <limits.h> exists even on freestanding compilers. */
1883 #ifdef __STDC__
1884 # include <limits.h>
1885 #else
1886 # include <assert.h>
1887 #endif
1889 #undef $2
1891 /* Override any GCC internal prototype to avoid an error.
1892 Use char because int might match the return type of a GCC
1893 builtin and then its argument prototype would still apply. */
1894 #ifdef __cplusplus
1895 extern "C"
1896 #endif
1897 char $2 ();
1898 /* The GNU C library defines this for functions which it implements
1899 to always fail with ENOSYS. Some functions are actually named
1900 something starting with __ and the normal name is an alias. */
1901 #if defined __stub_$2 || defined __stub___$2
1902 choke me
1903 #endif
1906 main ()
1908 return $2 ();
1910 return 0;
1912 _ACEOF
1913 if ac_fn_c_try_link "$LINENO"; then :
1914 eval "$3=yes"
1915 else
1916 eval "$3=no"
1918 rm -f core conftest.err conftest.$ac_objext \
1919 conftest$ac_exeext conftest.$ac_ext
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 } # ac_fn_c_check_func
1927 cat >config.log <<_ACEOF
1928 This file contains any messages produced by compilers while
1929 running configure, to aid debugging if configure makes a mistake.
1931 It was created by libsodium $as_me 0.5.0, which was
1932 generated by GNU Autoconf 2.69. Invocation command line was
1934 $ $0 $@
1936 _ACEOF
1937 exec 5>>config.log
1939 cat <<_ASUNAME
1940 ## --------- ##
1941 ## Platform. ##
1942 ## --------- ##
1944 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1945 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1946 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1947 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1948 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1950 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1951 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1953 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1954 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1955 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1956 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1957 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1958 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1959 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1961 _ASUNAME
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 $as_echo "PATH: $as_dir"
1969 done
1970 IFS=$as_save_IFS
1972 } >&5
1974 cat >&5 <<_ACEOF
1977 ## ----------- ##
1978 ## Core tests. ##
1979 ## ----------- ##
1981 _ACEOF
1984 # Keep a trace of the command line.
1985 # Strip out --no-create and --no-recursion so they do not pile up.
1986 # Strip out --silent because we don't want to record it for future runs.
1987 # Also quote any args containing shell meta-characters.
1988 # Make two passes to allow for proper duplicate-argument suppression.
1989 ac_configure_args=
1990 ac_configure_args0=
1991 ac_configure_args1=
1992 ac_must_keep_next=false
1993 for ac_pass in 1 2
1995 for ac_arg
1997 case $ac_arg in
1998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2000 | -silent | --silent | --silen | --sile | --sil)
2001 continue ;;
2002 *\'*)
2003 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2004 esac
2005 case $ac_pass in
2006 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2008 as_fn_append ac_configure_args1 " '$ac_arg'"
2009 if test $ac_must_keep_next = true; then
2010 ac_must_keep_next=false # Got value, back to normal.
2011 else
2012 case $ac_arg in
2013 *=* | --config-cache | -C | -disable-* | --disable-* \
2014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2016 | -with-* | --with-* | -without-* | --without-* | --x)
2017 case "$ac_configure_args0 " in
2018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2019 esac
2021 -* ) ac_must_keep_next=true ;;
2022 esac
2024 as_fn_append ac_configure_args " '$ac_arg'"
2026 esac
2027 done
2028 done
2029 { ac_configure_args0=; unset ac_configure_args0;}
2030 { ac_configure_args1=; unset ac_configure_args1;}
2032 # When interrupted or exit'd, cleanup temporary files, and complete
2033 # config.log. We remove comments because anyway the quotes in there
2034 # would cause problems or look ugly.
2035 # WARNING: Use '\'' to represent an apostrophe within the trap.
2036 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2037 trap 'exit_status=$?
2038 # Save into config.log some information that might help in debugging.
2040 echo
2042 $as_echo "## ---------------- ##
2043 ## Cache variables. ##
2044 ## ---------------- ##"
2045 echo
2046 # The following way of writing the cache mishandles newlines in values,
2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in #(
2051 *${as_nl}*)
2052 case $ac_var in #(
2053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055 esac
2056 case $ac_var in #(
2057 _ | IFS | as_nl) ;; #(
2058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059 *) { eval $ac_var=; unset $ac_var;} ;;
2060 esac ;;
2061 esac
2062 done
2063 (set) 2>&1 |
2064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065 *${as_nl}ac_space=\ *)
2066 sed -n \
2067 "s/'\''/'\''\\\\'\'''\''/g;
2068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069 ;; #(
2071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2073 esac |
2074 sort
2076 echo
2078 $as_echo "## ----------------- ##
2079 ## Output variables. ##
2080 ## ----------------- ##"
2081 echo
2082 for ac_var in $ac_subst_vars
2084 eval ac_val=\$$ac_var
2085 case $ac_val in
2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087 esac
2088 $as_echo "$ac_var='\''$ac_val'\''"
2089 done | sort
2090 echo
2092 if test -n "$ac_subst_files"; then
2093 $as_echo "## ------------------- ##
2094 ## File substitutions. ##
2095 ## ------------------- ##"
2096 echo
2097 for ac_var in $ac_subst_files
2099 eval ac_val=\$$ac_var
2100 case $ac_val in
2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102 esac
2103 $as_echo "$ac_var='\''$ac_val'\''"
2104 done | sort
2105 echo
2108 if test -s confdefs.h; then
2109 $as_echo "## ----------- ##
2110 ## confdefs.h. ##
2111 ## ----------- ##"
2112 echo
2113 cat confdefs.h
2114 echo
2116 test "$ac_signal" != 0 &&
2117 $as_echo "$as_me: caught signal $ac_signal"
2118 $as_echo "$as_me: exit $exit_status"
2119 } >&5
2120 rm -f core *.core core.conftest.* &&
2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122 exit $exit_status
2124 for ac_signal in 1 2 13 15; do
2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126 done
2127 ac_signal=0
2129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2130 rm -f -r conftest* confdefs.h
2132 $as_echo "/* confdefs.h */" > confdefs.h
2134 # Predefined preprocessor variables.
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_NAME "$PACKAGE_NAME"
2138 _ACEOF
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142 _ACEOF
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2146 _ACEOF
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_STRING "$PACKAGE_STRING"
2150 _ACEOF
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154 _ACEOF
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_URL "$PACKAGE_URL"
2158 _ACEOF
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2163 ac_site_file1=NONE
2164 ac_site_file2=NONE
2165 if test -n "$CONFIG_SITE"; then
2166 # We do not want a PATH search for config.site.
2167 case $CONFIG_SITE in #((
2168 -*) ac_site_file1=./$CONFIG_SITE;;
2169 */*) ac_site_file1=$CONFIG_SITE;;
2170 *) ac_site_file1=./$CONFIG_SITE;;
2171 esac
2172 elif test "x$prefix" != xNONE; then
2173 ac_site_file1=$prefix/share/config.site
2174 ac_site_file2=$prefix/etc/config.site
2175 else
2176 ac_site_file1=$ac_default_prefix/share/config.site
2177 ac_site_file2=$ac_default_prefix/etc/config.site
2179 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2181 test "x$ac_site_file" = xNONE && continue
2182 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2184 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2185 sed 's/^/| /' "$ac_site_file" >&5
2186 . "$ac_site_file" \
2187 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2189 as_fn_error $? "failed to load site script $ac_site_file
2190 See \`config.log' for more details" "$LINENO" 5; }
2192 done
2194 if test -r "$cache_file"; then
2195 # Some versions of bash will fail to source /dev/null (special files
2196 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2197 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2199 $as_echo "$as_me: loading cache $cache_file" >&6;}
2200 case $cache_file in
2201 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2202 *) . "./$cache_file";;
2203 esac
2205 else
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2207 $as_echo "$as_me: creating cache $cache_file" >&6;}
2208 >$cache_file
2211 # Check that the precious variables saved in the cache have kept the same
2212 # value.
2213 ac_cache_corrupted=false
2214 for ac_var in $ac_precious_vars; do
2215 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2216 eval ac_new_set=\$ac_env_${ac_var}_set
2217 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2218 eval ac_new_val=\$ac_env_${ac_var}_value
2219 case $ac_old_set,$ac_new_set in
2220 set,)
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2222 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2223 ac_cache_corrupted=: ;;
2224 ,set)
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2226 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2227 ac_cache_corrupted=: ;;
2228 ,);;
2230 if test "x$ac_old_val" != "x$ac_new_val"; then
2231 # differences in whitespace do not lead to failure.
2232 ac_old_val_w=`echo x $ac_old_val`
2233 ac_new_val_w=`echo x $ac_new_val`
2234 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2236 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2237 ac_cache_corrupted=:
2238 else
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2240 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2241 eval $ac_var=\$ac_old_val
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2244 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2246 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2247 fi;;
2248 esac
2249 # Pass precious variables to config.status.
2250 if test "$ac_new_set" = set; then
2251 case $ac_new_val in
2252 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2253 *) ac_arg=$ac_var=$ac_new_val ;;
2254 esac
2255 case " $ac_configure_args " in
2256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2257 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2258 esac
2260 done
2261 if $ac_cache_corrupted; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2265 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2266 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2268 ## -------------------- ##
2269 ## Main body of script. ##
2270 ## -------------------- ##
2272 ac_ext=c
2273 ac_cpp='$CPP $CPPFLAGS'
2274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2281 ac_aux_dir=
2282 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2283 if test -f "$ac_dir/install-sh"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/install-sh -c"
2286 break
2287 elif test -f "$ac_dir/install.sh"; then
2288 ac_aux_dir=$ac_dir
2289 ac_install_sh="$ac_aux_dir/install.sh -c"
2290 break
2291 elif test -f "$ac_dir/shtool"; then
2292 ac_aux_dir=$ac_dir
2293 ac_install_sh="$ac_aux_dir/shtool install -c"
2294 break
2296 done
2297 if test -z "$ac_aux_dir"; then
2298 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2301 # These three variables are undocumented and unsupported,
2302 # and are intended to be withdrawn in a future Autoconf release.
2303 # They can cause serious problems if a builder's source tree is in a directory
2304 # whose full name contains unusual characters.
2305 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2306 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2307 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2310 # Make sure we can run config.sub.
2311 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2312 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2315 $as_echo_n "checking build system type... " >&6; }
2316 if ${ac_cv_build+:} false; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 ac_build_alias=$build_alias
2320 test "x$ac_build_alias" = x &&
2321 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2322 test "x$ac_build_alias" = x &&
2323 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2324 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2325 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2329 $as_echo "$ac_cv_build" >&6; }
2330 case $ac_cv_build in
2331 *-*-*) ;;
2332 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2333 esac
2334 build=$ac_cv_build
2335 ac_save_IFS=$IFS; IFS='-'
2336 set x $ac_cv_build
2337 shift
2338 build_cpu=$1
2339 build_vendor=$2
2340 shift; shift
2341 # Remember, the first character of IFS is used to create $*,
2342 # except with old shells:
2343 build_os=$*
2344 IFS=$ac_save_IFS
2345 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2349 $as_echo_n "checking host system type... " >&6; }
2350 if ${ac_cv_host+:} false; then :
2351 $as_echo_n "(cached) " >&6
2352 else
2353 if test "x$host_alias" = x; then
2354 ac_cv_host=$ac_cv_build
2355 else
2356 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2357 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2362 $as_echo "$ac_cv_host" >&6; }
2363 case $ac_cv_host in
2364 *-*-*) ;;
2365 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2366 esac
2367 host=$ac_cv_host
2368 ac_save_IFS=$IFS; IFS='-'
2369 set x $ac_cv_host
2370 shift
2371 host_cpu=$1
2372 host_vendor=$2
2373 shift; shift
2374 # Remember, the first character of IFS is used to create $*,
2375 # except with old shells:
2376 host_os=$*
2377 IFS=$ac_save_IFS
2378 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2381 am__api_version='1.14'
2383 # Find a good install program. We prefer a C program (faster),
2384 # so one script is as good as another. But avoid the broken or
2385 # incompatible versions:
2386 # SysV /etc/install, /usr/sbin/install
2387 # SunOS /usr/etc/install
2388 # IRIX /sbin/install
2389 # AIX /bin/install
2390 # AmigaOS /C/install, which installs bootblocks on floppy discs
2391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2394 # OS/2's system install, which has a completely different semantic
2395 # ./install, which can be erroneously created by make from ./install.sh.
2396 # Reject install programs that cannot install multiple files.
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2398 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2399 if test -z "$INSTALL"; then
2400 if ${ac_cv_path_install+:} false; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 # Account for people who put trailing slashes in PATH elements.
2409 case $as_dir/ in #((
2410 ./ | .// | /[cC]/* | \
2411 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2412 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2413 /usr/ucb/* ) ;;
2415 # OSF1 and SCO ODT 3.0 have their own names for install.
2416 # Don't use installbsd from OSF since it installs stuff as root
2417 # by default.
2418 for ac_prog in ginstall scoinst install; do
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2421 if test $ac_prog = install &&
2422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423 # AIX install. It has an incompatible calling convention.
2425 elif test $ac_prog = install &&
2426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # program-specific install script used by HP pwplus--don't use.
2429 else
2430 rm -rf conftest.one conftest.two conftest.dir
2431 echo one > conftest.one
2432 echo two > conftest.two
2433 mkdir conftest.dir
2434 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2435 test -s conftest.one && test -s conftest.two &&
2436 test -s conftest.dir/conftest.one &&
2437 test -s conftest.dir/conftest.two
2438 then
2439 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2440 break 3
2444 done
2445 done
2447 esac
2449 done
2450 IFS=$as_save_IFS
2452 rm -rf conftest.one conftest.two conftest.dir
2455 if test "${ac_cv_path_install+set}" = set; then
2456 INSTALL=$ac_cv_path_install
2457 else
2458 # As a last resort, use the slow shell script. Don't cache a
2459 # value for INSTALL within a source directory, because that will
2460 # break other packages using the cache if that directory is
2461 # removed, or if the value is a relative name.
2462 INSTALL=$ac_install_sh
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2466 $as_echo "$INSTALL" >&6; }
2468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2469 # It thinks the first close brace ends the variable substitution.
2470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2477 $as_echo_n "checking whether build environment is sane... " >&6; }
2478 # Reject unsafe characters in $srcdir or the absolute working directory
2479 # name. Accept space and tab only in the latter.
2480 am_lf='
2482 case `pwd` in
2483 *[\\\"\#\$\&\'\`$am_lf]*)
2484 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2485 esac
2486 case $srcdir in
2487 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2488 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2489 esac
2491 # Do 'set' in a subshell so we don't clobber the current shell's
2492 # arguments. Must try -L first in case configure is actually a
2493 # symlink; some systems play weird games with the mod time of symlinks
2494 # (eg FreeBSD returns the mod time of the symlink's containing
2495 # directory).
2496 if (
2497 am_has_slept=no
2498 for am_try in 1 2; do
2499 echo "timestamp, slept: $am_has_slept" > conftest.file
2500 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2501 if test "$*" = "X"; then
2502 # -L didn't work.
2503 set X `ls -t "$srcdir/configure" conftest.file`
2505 if test "$*" != "X $srcdir/configure conftest.file" \
2506 && test "$*" != "X conftest.file $srcdir/configure"; then
2508 # If neither matched, then we have a broken ls. This can happen
2509 # if, for instance, CONFIG_SHELL is bash and it inherits a
2510 # broken ls alias from the environment. This has actually
2511 # happened. Such a system could not be considered "sane".
2512 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2513 alias in your environment" "$LINENO" 5
2515 if test "$2" = conftest.file || test $am_try -eq 2; then
2516 break
2518 # Just in case.
2519 sleep 1
2520 am_has_slept=yes
2521 done
2522 test "$2" = conftest.file
2524 then
2525 # Ok.
2527 else
2528 as_fn_error $? "newly created file is older than distributed files!
2529 Check your system clock" "$LINENO" 5
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2532 $as_echo "yes" >&6; }
2533 # If we didn't sleep, we still need to ensure time stamps of config.status and
2534 # generated files are strictly newer.
2535 am_sleep_pid=
2536 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2537 ( sleep 1 ) &
2538 am_sleep_pid=$!
2541 rm -f conftest.file
2543 test "$program_prefix" != NONE &&
2544 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2545 # Use a double $ so make ignores it.
2546 test "$program_suffix" != NONE &&
2547 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2548 # Double any \ or $.
2549 # By default was `s,x,x', remove it if useless.
2550 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2551 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2553 # expand $ac_aux_dir to an absolute path
2554 am_aux_dir=`cd $ac_aux_dir && pwd`
2556 if test x"${MISSING+set}" != xset; then
2557 case $am_aux_dir in
2558 *\ * | *\ *)
2559 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2561 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2562 esac
2564 # Use eval to expand $SHELL
2565 if eval "$MISSING --is-lightweight"; then
2566 am_missing_run="$MISSING "
2567 else
2568 am_missing_run=
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2570 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2573 if test x"${install_sh}" != xset; then
2574 case $am_aux_dir in
2575 *\ * | *\ *)
2576 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2578 install_sh="\${SHELL} $am_aux_dir/install-sh"
2579 esac
2582 # Installed binaries are usually stripped using 'strip' when the user
2583 # run "make install-strip". However 'strip' might not be the right
2584 # tool to use in cross-compilation environments, therefore Automake
2585 # will honor the 'STRIP' environment variable to overrule this program.
2586 if test "$cross_compiling" != no; then
2587 if test -n "$ac_tool_prefix"; then
2588 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2589 set dummy ${ac_tool_prefix}strip; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if ${ac_cv_prog_STRIP+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 if test -n "$STRIP"; then
2596 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2609 done
2610 done
2611 IFS=$as_save_IFS
2615 STRIP=$ac_cv_prog_STRIP
2616 if test -n "$STRIP"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2618 $as_echo "$STRIP" >&6; }
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2626 if test -z "$ac_cv_prog_STRIP"; then
2627 ac_ct_STRIP=$STRIP
2628 # Extract the first word of "strip", so it can be a program name with args.
2629 set dummy strip; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test -n "$ac_ct_STRIP"; then
2636 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2645 ac_cv_prog_ac_ct_STRIP="strip"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2649 done
2650 done
2651 IFS=$as_save_IFS
2655 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2656 if test -n "$ac_ct_STRIP"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2658 $as_echo "$ac_ct_STRIP" >&6; }
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2664 if test "x$ac_ct_STRIP" = x; then
2665 STRIP=":"
2666 else
2667 case $cross_compiling:$ac_tool_warned in
2668 yes:)
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2671 ac_tool_warned=yes ;;
2672 esac
2673 STRIP=$ac_ct_STRIP
2675 else
2676 STRIP="$ac_cv_prog_STRIP"
2680 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2683 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2684 if test -z "$MKDIR_P"; then
2685 if ${ac_cv_path_mkdir+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_prog in mkdir gmkdir; do
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2696 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2697 'mkdir (GNU coreutils) '* | \
2698 'mkdir (coreutils) '* | \
2699 'mkdir (fileutils) '4.1*)
2700 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2701 break 3;;
2702 esac
2703 done
2704 done
2705 done
2706 IFS=$as_save_IFS
2710 test -d ./--version && rmdir ./--version
2711 if test "${ac_cv_path_mkdir+set}" = set; then
2712 MKDIR_P="$ac_cv_path_mkdir -p"
2713 else
2714 # As a last resort, use the slow shell script. Don't cache a
2715 # value for MKDIR_P within a source directory, because that will
2716 # break other packages using the cache if that directory is
2717 # removed, or if the value is a relative name.
2718 MKDIR_P="$ac_install_sh -d"
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2722 $as_echo "$MKDIR_P" >&6; }
2724 for ac_prog in gawk mawk nawk awk
2726 # Extract the first word of "$ac_prog", so it can be a program name with args.
2727 set dummy $ac_prog; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_AWK+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if test -n "$AWK"; then
2734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_AWK="$ac_prog"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2747 done
2748 done
2749 IFS=$as_save_IFS
2753 AWK=$ac_cv_prog_AWK
2754 if test -n "$AWK"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756 $as_echo "$AWK" >&6; }
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2763 test -n "$AWK" && break
2764 done
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2767 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2768 set x ${MAKE-make}
2769 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2770 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 cat >conftest.make <<\_ACEOF
2774 SHELL = /bin/sh
2775 all:
2776 @echo '@@@%%%=$(MAKE)=@@@%%%'
2777 _ACEOF
2778 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2779 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2780 *@@@%%%=?*=@@@%%%*)
2781 eval ac_cv_prog_make_${ac_make}_set=yes;;
2783 eval ac_cv_prog_make_${ac_make}_set=no;;
2784 esac
2785 rm -f conftest.make
2787 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2789 $as_echo "yes" >&6; }
2790 SET_MAKE=
2791 else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 SET_MAKE="MAKE=${MAKE-make}"
2797 rm -rf .tst 2>/dev/null
2798 mkdir .tst 2>/dev/null
2799 if test -d .tst; then
2800 am__leading_dot=.
2801 else
2802 am__leading_dot=_
2804 rmdir .tst 2>/dev/null
2806 # Check whether --enable-silent-rules was given.
2807 if test "${enable_silent_rules+set}" = set; then :
2808 enableval=$enable_silent_rules;
2811 case $enable_silent_rules in # (((
2812 yes) AM_DEFAULT_VERBOSITY=0;;
2813 no) AM_DEFAULT_VERBOSITY=1;;
2814 *) AM_DEFAULT_VERBOSITY=1;;
2815 esac
2816 am_make=${MAKE-make}
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2818 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2819 if ${am_cv_make_support_nested_variables+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if $as_echo 'TRUE=$(BAR$(V))
2823 BAR0=false
2824 BAR1=true
2826 am__doit:
2827 @$(TRUE)
2828 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2829 am_cv_make_support_nested_variables=yes
2830 else
2831 am_cv_make_support_nested_variables=no
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2835 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2836 if test $am_cv_make_support_nested_variables = yes; then
2837 AM_V='$(V)'
2838 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2839 else
2840 AM_V=$AM_DEFAULT_VERBOSITY
2841 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2843 AM_BACKSLASH='\'
2845 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2846 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2847 # is not polluted with repeated "-I."
2848 am__isrc=' -I$(srcdir)'
2849 # test to see if srcdir already configured
2850 if test -f $srcdir/config.status; then
2851 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2855 # test whether we have cygpath
2856 if test -z "$CYGPATH_W"; then
2857 if (cygpath --version) >/dev/null 2>/dev/null; then
2858 CYGPATH_W='cygpath -w'
2859 else
2860 CYGPATH_W=echo
2865 # Define the identity of the package.
2866 PACKAGE='libsodium'
2867 VERSION='0.5.0'
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE "$PACKAGE"
2872 _ACEOF
2875 cat >>confdefs.h <<_ACEOF
2876 #define VERSION "$VERSION"
2877 _ACEOF
2879 # Some tools Automake needs.
2881 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2884 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2887 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2890 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2893 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2895 # For better backward compatibility. To be removed once Automake 1.9.x
2896 # dies out for good. For more background, see:
2897 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2898 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2899 mkdir_p='$(MKDIR_P)'
2901 # We need awk for the "check" target. The system "awk" is bad on
2902 # some platforms.
2903 # Always define AMTAR for backward compatibility. Yes, it's still used
2904 # in the wild :-( We should find a proper way to deprecate it ...
2905 AMTAR='$${TAR-tar}'
2908 # We'll loop over all known methods to create a tar archive until one works.
2909 _am_tools='gnutar plaintar pax cpio none'
2911 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
2912 # There is notably a 21 bits limit for the UID and the GID. In fact,
2913 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2914 # and bug#13588).
2915 am_max_uid=2097151 # 2^21 - 1
2916 am_max_gid=$am_max_uid
2917 # The $UID and $GID variables are not portable, so we need to resort
2918 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
2919 # below are definitely unexpected, so allow the users to see them
2920 # (that is, avoid stderr redirection).
2921 am_uid=`id -u || echo unknown`
2922 am_gid=`id -g || echo unknown`
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2924 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2925 if test $am_uid -le $am_max_uid; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2927 $as_echo "yes" >&6; }
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 _am_tools=none
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2934 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2935 if test $am_gid -le $am_max_gid; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2937 $as_echo "yes" >&6; }
2938 else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 _am_tools=none
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2945 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2947 # Go ahead even if we have the value already cached. We do so because we
2948 # need to set the values for the 'am__tar' and 'am__untar' variables.
2949 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2951 for _am_tool in $_am_tools; do
2952 case $_am_tool in
2953 gnutar)
2954 for _am_tar in tar gnutar gtar; do
2955 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2956 ($_am_tar --version) >&5 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } && break
2960 done
2961 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2962 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2963 am__untar="$_am_tar -xf -"
2965 plaintar)
2966 # Must skip GNU tar: if it does not support --format= it doesn't create
2967 # ustar tarball either.
2968 (tar --version) >/dev/null 2>&1 && continue
2969 am__tar='tar chf - "$$tardir"'
2970 am__tar_='tar chf - "$tardir"'
2971 am__untar='tar xf -'
2973 pax)
2974 am__tar='pax -L -x ustar -w "$$tardir"'
2975 am__tar_='pax -L -x ustar -w "$tardir"'
2976 am__untar='pax -r'
2978 cpio)
2979 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2980 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2981 am__untar='cpio -i -H ustar -d'
2983 none)
2984 am__tar=false
2985 am__tar_=false
2986 am__untar=false
2988 esac
2990 # If the value was cached, stop now. We just wanted to have am__tar
2991 # and am__untar set.
2992 test -n "${am_cv_prog_tar_ustar}" && break
2994 # tar/untar a dummy directory, and stop if the command works.
2995 rm -rf conftest.dir
2996 mkdir conftest.dir
2997 echo GrepMe > conftest.dir/file
2998 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2999 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }
3003 rm -rf conftest.dir
3004 if test -s conftest.tar; then
3005 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3006 ($am__untar <conftest.tar) >&5 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }
3010 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3011 (cat conftest.dir/file) >&5 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }
3015 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3017 done
3018 rm -rf conftest.dir
3020 if ${am_cv_prog_tar_ustar+:} false; then :
3021 $as_echo_n "(cached) " >&6
3022 else
3023 am_cv_prog_tar_ustar=$_am_tool
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3027 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3034 # POSIX will say in a future version that running "rm -f" with no argument
3035 # is OK; and we want to be able to make that assumption in our Makefile
3036 # recipes. So use an aggressive probe to check that the usage we want is
3037 # actually supported "in the wild" to an acceptable degree.
3038 # See automake bug#10828.
3039 # To make any issue more visible, cause the running configure to be aborted
3040 # by default if the 'rm' program in use doesn't match our expectations; the
3041 # user can still override this though.
3042 if rm -f && rm -fr && rm -rf; then : OK; else
3043 cat >&2 <<'END'
3044 Oops!
3046 Your 'rm' program seems unable to run without file operands specified
3047 on the command line, even when the '-f' option is present. This is contrary
3048 to the behaviour of most rm programs out there, and not conforming with
3049 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3051 Please tell bug-automake@gnu.org about your system, including the value
3052 of your $PATH and any error possibly output before this message. This
3053 can help us improve future automake versions.
3056 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3057 echo 'Configuration will proceed anyway, since you have set the' >&2
3058 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3059 echo >&2
3060 else
3061 cat >&2 <<'END'
3062 Aborting the configuration process, to ensure you take notice of the issue.
3064 You can download and install GNU coreutils to get an 'rm' implementation
3065 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3067 If you want to complete the configuration process using your problematic
3068 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3069 to "yes", and re-run configure.
3072 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3075 # Check whether --enable-silent-rules was given.
3076 if test "${enable_silent_rules+set}" = set; then :
3077 enableval=$enable_silent_rules;
3080 case $enable_silent_rules in # (((
3081 yes) AM_DEFAULT_VERBOSITY=0;;
3082 no) AM_DEFAULT_VERBOSITY=1;;
3083 *) AM_DEFAULT_VERBOSITY=0;;
3084 esac
3085 am_make=${MAKE-make}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3087 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3088 if ${am_cv_make_support_nested_variables+:} false; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 if $as_echo 'TRUE=$(BAR$(V))
3092 BAR0=false
3093 BAR1=true
3095 am__doit:
3096 @$(TRUE)
3097 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3098 am_cv_make_support_nested_variables=yes
3099 else
3100 am_cv_make_support_nested_variables=no
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3104 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3105 if test $am_cv_make_support_nested_variables = yes; then
3106 AM_V='$(V)'
3107 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3108 else
3109 AM_V=$AM_DEFAULT_VERBOSITY
3110 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3112 AM_BACKSLASH='\'
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3116 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3117 # Check whether --enable-maintainer-mode was given.
3118 if test "${enable_maintainer_mode+set}" = set; then :
3119 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3120 else
3121 USE_MAINTAINER_MODE=no
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3125 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3126 if test $USE_MAINTAINER_MODE = yes; then
3127 MAINTAINER_MODE_TRUE=
3128 MAINTAINER_MODE_FALSE='#'
3129 else
3130 MAINTAINER_MODE_TRUE='#'
3131 MAINTAINER_MODE_FALSE=
3134 MAINT=$MAINTAINER_MODE_TRUE
3137 # Check whether --enable-dependency-tracking was given.
3138 if test "${enable_dependency_tracking+set}" = set; then :
3139 enableval=$enable_dependency_tracking;
3142 if test "x$enable_dependency_tracking" != xno; then
3143 am_depcomp="$ac_aux_dir/depcomp"
3144 AMDEPBACKSLASH='\'
3145 am__nodep='_no'
3147 if test "x$enable_dependency_tracking" != xno; then
3148 AMDEP_TRUE=
3149 AMDEP_FALSE='#'
3150 else
3151 AMDEP_TRUE='#'
3152 AMDEP_FALSE=
3158 ISODATE=`date +%Y-%m-%d`
3161 SODIUM_LIBRARY_VERSION_MAJOR=5
3162 SODIUM_LIBRARY_VERSION_MINOR=0
3163 DLL_VERSION=5
3164 SODIUM_LIBRARY_VERSION=10:0:0
3165 # | | |
3166 # +------+ | +---+
3167 # | | |
3168 # current:revision:age
3169 # | | |
3170 # | | +- increment if interfaces have been added
3171 # | | set to zero if interfaces have been removed
3172 # | | or changed
3173 # | +- increment if source code has changed
3174 # | set to zero if current is incremented
3175 # +- increment if interfaces have been added, removed or changed
3181 LX_CFLAGS=${CFLAGS-NONE}
3184 # Check whether --enable-ssp was given.
3185 if test "${enable_ssp+set}" = set; then :
3186 enableval=$enable_ssp;
3187 if test "x$enableval" = "xno"; then :
3189 enable_ssp="no"
3191 else
3193 enable_ssp="yes"
3197 else
3199 enable_ssp="yes"
3204 # Check whether --enable-asm was given.
3205 if test "${enable_asm+set}" = set; then :
3206 enableval=$enable_asm;
3207 if test "x$enableval" = "xno"; then :
3209 enable_asm="no"
3211 else
3213 enable_asm="yes"
3217 else
3219 enable_asm="yes"
3224 if test "x$EMSCRIPTEN" != "x"; then :
3226 enable_asm="no"
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiling to javascript - asm implementations disabled" >&5
3228 $as_echo "$as_me: WARNING: compiling to javascript - asm implementations disabled" >&2;}
3232 case $host in #(
3233 x86_64-*-mingw* | x86_64-*-cygwin*) :
3234 enable_asm="no" ;; #(
3235 *) :
3237 esac
3239 # Check whether --enable-pie was given.
3240 if test "${enable_pie+set}" = set; then :
3241 enableval=$enable_pie; enable_pie=$enableval
3242 else
3243 enable_pie="maybe"
3247 case $host_os in #(
3248 mingw*) :
3249 enable_pie="no" ;; #(
3250 *) :
3252 esac
3254 # Check whether --enable-blocking-random was given.
3255 if test "${enable_blocking_random+set}" = set; then :
3256 enableval=$enable_blocking_random;
3257 if test "x$enableval" = "xyes"; then :
3260 $as_echo "#define USE_BLOCKING_RANDOM 1" >>confdefs.h
3269 # Check whether --with-safecode was given.
3270 if test "${with_safecode+set}" = set; then :
3271 withval=$with_safecode; if test "x$withval" = "xyes"; then :
3274 : ${SAFECODE_HOME:=/opt/safecode}
3275 LDFLAGS="$LDFLAGS -L${SAFECODE_HOME}/lib"
3276 LIBS="$LIBS -lsc_dbg_rt -lpoolalloc_bitmap -lstdc++"
3277 CFLAGS="$CFLAGS -fmemsafety"
3284 # Check whether --enable-debug was given.
3285 if test "${enable_debug+set}" = set; then :
3286 enableval=$enable_debug;
3287 if test "x$enableval" = "xyes"; then :
3289 if test "x$LX_CFLAGS" = "xNONE"; then :
3291 nxflags=""
3292 for flag in `echo $CFLAGS`; do
3293 case $flag in #(
3294 -O*) :
3295 ;; #(
3296 -g*) :
3297 ;; #(
3298 *) :
3299 as_fn_append nxflags " $flag" ;; #(
3300 *) :
3302 esac
3303 done
3304 CFLAGS="$nxflags -O0 -g3"
3307 CPPFLAGS="$CPPFLAGS -DDEBUG=1"
3324 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 case $PKG_CONFIG in
3334 [\\/]* | ?:[\\/]*)
3335 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3349 done
3350 done
3351 IFS=$as_save_IFS
3354 esac
3356 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3357 if test -n "$PKG_CONFIG"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3359 $as_echo "$PKG_CONFIG" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3367 if test -z "$ac_cv_path_PKG_CONFIG"; then
3368 ac_pt_PKG_CONFIG=$PKG_CONFIG
3369 # Extract the first word of "pkg-config", so it can be a program name with args.
3370 set dummy pkg-config; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 case $ac_pt_PKG_CONFIG in
3377 [\\/]* | ?:[\\/]*)
3378 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3392 done
3393 done
3394 IFS=$as_save_IFS
3397 esac
3399 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3400 if test -n "$ac_pt_PKG_CONFIG"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3402 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3403 else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3408 if test "x$ac_pt_PKG_CONFIG" = x; then
3409 PKG_CONFIG=""
3410 else
3411 case $cross_compiling:$ac_tool_warned in
3412 yes:)
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3415 ac_tool_warned=yes ;;
3416 esac
3417 PKG_CONFIG=$ac_pt_PKG_CONFIG
3419 else
3420 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3424 if test -n "$PKG_CONFIG"; then
3425 _pkg_min_version=0.23
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3427 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3428 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3430 $as_echo "yes" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3434 PKG_CONFIG=""
3437 if test "x$PKG_CONFIG" != "x"; then
3438 HAVE_PKG_CONFIG_TRUE=
3439 HAVE_PKG_CONFIG_FALSE='#'
3440 else
3441 HAVE_PKG_CONFIG_TRUE='#'
3442 HAVE_PKG_CONFIG_FALSE=
3447 DEPDIR="${am__leading_dot}deps"
3449 ac_config_commands="$ac_config_commands depfiles"
3452 am_make=${MAKE-make}
3453 cat > confinc << 'END'
3454 am__doit:
3455 @echo this is the am__doit target
3456 .PHONY: am__doit
3458 # If we don't find an include directive, just comment out the code.
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3460 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3461 am__include="#"
3462 am__quote=
3463 _am_result=none
3464 # First try GNU make style include.
3465 echo "include confinc" > confmf
3466 # Ignore all kinds of additional output from 'make'.
3467 case `$am_make -s -f confmf 2> /dev/null` in #(
3468 *the\ am__doit\ target*)
3469 am__include=include
3470 am__quote=
3471 _am_result=GNU
3473 esac
3474 # Now try BSD make style include.
3475 if test "$am__include" = "#"; then
3476 echo '.include "confinc"' > confmf
3477 case `$am_make -s -f confmf 2> /dev/null` in #(
3478 *the\ am__doit\ target*)
3479 am__include=.include
3480 am__quote="\""
3481 _am_result=BSD
3483 esac
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3488 $as_echo "$_am_result" >&6; }
3489 rm -f confinc confmf
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 if test -n "$ac_tool_prefix"; then
3497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3498 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if ${ac_cv_prog_CC+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 if test -n "$CC"; then
3505 ac_cv_prog_CC="$CC" # Let the user override the test.
3506 else
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 break 2
3518 done
3519 done
3520 IFS=$as_save_IFS
3524 CC=$ac_cv_prog_CC
3525 if test -n "$CC"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3527 $as_echo "$CC" >&6; }
3528 else
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3535 if test -z "$ac_cv_prog_CC"; then
3536 ac_ct_CC=$CC
3537 # Extract the first word of "gcc", so it can be a program name with args.
3538 set dummy gcc; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 if test -n "$ac_ct_CC"; then
3545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554 ac_cv_prog_ac_ct_CC="gcc"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3558 done
3559 done
3560 IFS=$as_save_IFS
3564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3565 if test -n "$ac_ct_CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3567 $as_echo "$ac_ct_CC" >&6; }
3568 else
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3573 if test "x$ac_ct_CC" = x; then
3574 CC=""
3575 else
3576 case $cross_compiling:$ac_tool_warned in
3577 yes:)
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3580 ac_tool_warned=yes ;;
3581 esac
3582 CC=$ac_ct_CC
3584 else
3585 CC="$ac_cv_prog_CC"
3588 if test -z "$CC"; then
3589 if test -n "$ac_tool_prefix"; then
3590 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3591 set dummy ${ac_tool_prefix}cc; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if ${ac_cv_prog_CC+:} false; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 if test -n "$CC"; then
3598 ac_cv_prog_CC="$CC" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_prog_CC="${ac_tool_prefix}cc"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3611 done
3612 done
3613 IFS=$as_save_IFS
3617 CC=$ac_cv_prog_CC
3618 if test -n "$CC"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 $as_echo "$CC" >&6; }
3621 else
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3629 if test -z "$CC"; then
3630 # Extract the first word of "cc", so it can be a program name with args.
3631 set dummy cc; ac_word=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 $as_echo_n "checking for $ac_word... " >&6; }
3634 if ${ac_cv_prog_CC+:} false; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC="$CC" # Let the user override the test.
3639 else
3640 ac_prog_rejected=no
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3649 ac_prog_rejected=yes
3650 continue
3652 ac_cv_prog_CC="cc"
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3656 done
3657 done
3658 IFS=$as_save_IFS
3660 if test $ac_prog_rejected = yes; then
3661 # We found a bogon in the path, so make sure we never use it.
3662 set dummy $ac_cv_prog_CC
3663 shift
3664 if test $# != 0; then
3665 # We chose a different compiler from the bogus one.
3666 # However, it has the same basename, so the bogon will be chosen
3667 # first if we set CC to just the basename; use the full file name.
3668 shift
3669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3674 CC=$ac_cv_prog_CC
3675 if test -n "$CC"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677 $as_echo "$CC" >&6; }
3678 else
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3685 if test -z "$CC"; then
3686 if test -n "$ac_tool_prefix"; then
3687 for ac_prog in cl.exe
3689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if ${ac_cv_prog_CC+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$CC"; then
3697 ac_cv_prog_CC="$CC" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3712 IFS=$as_save_IFS
3716 CC=$ac_cv_prog_CC
3717 if test -n "$CC"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3719 $as_echo "$CC" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3726 test -n "$CC" && break
3727 done
3729 if test -z "$CC"; then
3730 ac_ct_CC=$CC
3731 for ac_prog in cl.exe
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy $ac_prog; ac_word=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 if test -n "$ac_ct_CC"; then
3741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_ac_ct_CC="$ac_prog"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3754 done
3755 done
3756 IFS=$as_save_IFS
3760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3761 if test -n "$ac_ct_CC"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3763 $as_echo "$ac_ct_CC" >&6; }
3764 else
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3770 test -n "$ac_ct_CC" && break
3771 done
3773 if test "x$ac_ct_CC" = x; then
3774 CC=""
3775 else
3776 case $cross_compiling:$ac_tool_warned in
3777 yes:)
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3780 ac_tool_warned=yes ;;
3781 esac
3782 CC=$ac_ct_CC
3789 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3791 as_fn_error $? "no acceptable C compiler found in \$PATH
3792 See \`config.log' for more details" "$LINENO" 5; }
3794 # Provide some information about the compiler.
3795 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3796 set X $ac_compile
3797 ac_compiler=$2
3798 for ac_option in --version -v -V -qversion; do
3799 { { ac_try="$ac_compiler $ac_option >&5"
3800 case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3807 ac_status=$?
3808 if test -s conftest.err; then
3809 sed '10a\
3810 ... rest of stderr output deleted ...
3811 10q' conftest.err >conftest.er1
3812 cat conftest.er1 >&5
3814 rm -f conftest.er1 conftest.err
3815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816 test $ac_status = 0; }
3817 done
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3823 main ()
3827 return 0;
3829 _ACEOF
3830 ac_clean_files_save=$ac_clean_files
3831 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3832 # Try to create an executable without -o first, disregard a.out.
3833 # It will help us diagnose broken compilers, and finding out an intuition
3834 # of exeext.
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3836 $as_echo_n "checking whether the C compiler works... " >&6; }
3837 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3839 # The possible output files:
3840 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3842 ac_rmfiles=
3843 for ac_file in $ac_files
3845 case $ac_file in
3846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3847 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3848 esac
3849 done
3850 rm -f $ac_rmfiles
3852 if { { ac_try="$ac_link_default"
3853 case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856 esac
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 $as_echo "$ac_try_echo"; } >&5
3859 (eval "$ac_link_default") 2>&5
3860 ac_status=$?
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }; then :
3863 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3864 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3865 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3866 # so that the user can short-circuit this test for compilers unknown to
3867 # Autoconf.
3868 for ac_file in $ac_files ''
3870 test -f "$ac_file" || continue
3871 case $ac_file in
3872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3874 [ab].out )
3875 # We found the default executable, but exeext='' is most
3876 # certainly right.
3877 break;;
3878 *.* )
3879 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3880 then :; else
3881 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3883 # We set ac_cv_exeext here because the later test for it is not
3884 # safe: cross compilers may not add the suffix if given an `-o'
3885 # argument, so we may need to know it at that point already.
3886 # Even if this section looks crufty: it has the advantage of
3887 # actually working.
3888 break;;
3890 break;;
3891 esac
3892 done
3893 test "$ac_cv_exeext" = no && ac_cv_exeext=
3895 else
3896 ac_file=''
3898 if test -z "$ac_file"; then :
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3901 $as_echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906 as_fn_error 77 "C compiler cannot create executables
3907 See \`config.log' for more details" "$LINENO" 5; }
3908 else
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910 $as_echo "yes" >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3913 $as_echo_n "checking for C compiler default output file name... " >&6; }
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3915 $as_echo "$ac_file" >&6; }
3916 ac_exeext=$ac_cv_exeext
3918 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3919 ac_clean_files=$ac_clean_files_save
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3921 $as_echo_n "checking for suffix of executables... " >&6; }
3922 if { { ac_try="$ac_link"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929 (eval "$ac_link") 2>&5
3930 ac_status=$?
3931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }; then :
3933 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3934 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3935 # work properly (i.e., refer to `conftest.exe'), while it won't with
3936 # `rm'.
3937 for ac_file in conftest.exe conftest conftest.*; do
3938 test -f "$ac_file" || continue
3939 case $ac_file in
3940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3942 break;;
3943 * ) break;;
3944 esac
3945 done
3946 else
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3950 See \`config.log' for more details" "$LINENO" 5; }
3952 rm -f conftest conftest$ac_cv_exeext
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3954 $as_echo "$ac_cv_exeext" >&6; }
3956 rm -f conftest.$ac_ext
3957 EXEEXT=$ac_cv_exeext
3958 ac_exeext=$EXEEXT
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3961 #include <stdio.h>
3963 main ()
3965 FILE *f = fopen ("conftest.out", "w");
3966 return ferror (f) || fclose (f) != 0;
3969 return 0;
3971 _ACEOF
3972 ac_clean_files="$ac_clean_files conftest.out"
3973 # Check that the compiler produces executables we can run. If not, either
3974 # the compiler is broken, or we cross compile.
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3976 $as_echo_n "checking whether we are cross compiling... " >&6; }
3977 if test "$cross_compiling" != yes; then
3978 { { ac_try="$ac_link"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 $as_echo "$ac_try_echo"; } >&5
3985 (eval "$ac_link") 2>&5
3986 ac_status=$?
3987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3988 test $ac_status = 0; }
3989 if { ac_try='./conftest$ac_cv_exeext'
3990 { { case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995 $as_echo "$ac_try_echo"; } >&5
3996 (eval "$ac_try") 2>&5
3997 ac_status=$?
3998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999 test $ac_status = 0; }; }; then
4000 cross_compiling=no
4001 else
4002 if test "$cross_compiling" = maybe; then
4003 cross_compiling=yes
4004 else
4005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4007 as_fn_error $? "cannot run C compiled programs.
4008 If you meant to cross compile, use \`--host'.
4009 See \`config.log' for more details" "$LINENO" 5; }
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4014 $as_echo "$cross_compiling" >&6; }
4016 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4017 ac_clean_files=$ac_clean_files_save
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4019 $as_echo_n "checking for suffix of object files... " >&6; }
4020 if ${ac_cv_objext+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4027 main ()
4031 return 0;
4033 _ACEOF
4034 rm -f conftest.o conftest.obj
4035 if { { ac_try="$ac_compile"
4036 case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039 esac
4040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4041 $as_echo "$ac_try_echo"; } >&5
4042 (eval "$ac_compile") 2>&5
4043 ac_status=$?
4044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4045 test $ac_status = 0; }; then :
4046 for ac_file in conftest.o conftest.obj conftest.*; do
4047 test -f "$ac_file" || continue;
4048 case $ac_file in
4049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4051 break;;
4052 esac
4053 done
4054 else
4055 $as_echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4060 as_fn_error $? "cannot compute suffix of object files: cannot compile
4061 See \`config.log' for more details" "$LINENO" 5; }
4063 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4066 $as_echo "$ac_cv_objext" >&6; }
4067 OBJEXT=$ac_cv_objext
4068 ac_objext=$OBJEXT
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4070 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4071 if ${ac_cv_c_compiler_gnu+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4078 main ()
4080 #ifndef __GNUC__
4081 choke me
4082 #endif
4085 return 0;
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_compiler_gnu=yes
4090 else
4091 ac_compiler_gnu=no
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4098 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4099 if test $ac_compiler_gnu = yes; then
4100 GCC=yes
4101 else
4102 GCC=
4104 ac_test_CFLAGS=${CFLAGS+set}
4105 ac_save_CFLAGS=$CFLAGS
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4107 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4108 if ${ac_cv_prog_cc_g+:} false; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 ac_save_c_werror_flag=$ac_c_werror_flag
4112 ac_c_werror_flag=yes
4113 ac_cv_prog_cc_g=no
4114 CFLAGS="-g"
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4119 main ()
4123 return 0;
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_prog_cc_g=yes
4128 else
4129 CFLAGS=""
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4134 main ()
4138 return 0;
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4143 else
4144 ac_c_werror_flag=$ac_save_c_werror_flag
4145 CFLAGS="-g"
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4150 main ()
4154 return 0;
4156 _ACEOF
4157 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_cv_prog_cc_g=yes
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 ac_c_werror_flag=$ac_save_c_werror_flag
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4168 $as_echo "$ac_cv_prog_cc_g" >&6; }
4169 if test "$ac_test_CFLAGS" = set; then
4170 CFLAGS=$ac_save_CFLAGS
4171 elif test $ac_cv_prog_cc_g = yes; then
4172 if test "$GCC" = yes; then
4173 CFLAGS="-g -O2"
4174 else
4175 CFLAGS="-g"
4177 else
4178 if test "$GCC" = yes; then
4179 CFLAGS="-O2"
4180 else
4181 CFLAGS=
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4185 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4186 if ${ac_cv_prog_cc_c89+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 ac_cv_prog_cc_c89=no
4190 ac_save_CC=$CC
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193 #include <stdarg.h>
4194 #include <stdio.h>
4195 struct stat;
4196 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4197 struct buf { int x; };
4198 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4199 static char *e (p, i)
4200 char **p;
4201 int i;
4203 return p[i];
4205 static char *f (char * (*g) (char **, int), char **p, ...)
4207 char *s;
4208 va_list v;
4209 va_start (v,p);
4210 s = g (p, va_arg (v,int));
4211 va_end (v);
4212 return s;
4215 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4216 function prototypes and stuff, but not '\xHH' hex character constants.
4217 These don't provoke an error unfortunately, instead are silently treated
4218 as 'x'. The following induces an error, until -std is added to get
4219 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4220 array size at least. It's necessary to write '\x00'==0 to get something
4221 that's true only with -std. */
4222 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4224 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4225 inside strings and character constants. */
4226 #define FOO(x) 'x'
4227 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4229 int test (int i, double x);
4230 struct s1 {int (*f) (int a);};
4231 struct s2 {int (*f) (double a);};
4232 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4233 int argc;
4234 char **argv;
4236 main ()
4238 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4240 return 0;
4242 _ACEOF
4243 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4244 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4246 CC="$ac_save_CC $ac_arg"
4247 if ac_fn_c_try_compile "$LINENO"; then :
4248 ac_cv_prog_cc_c89=$ac_arg
4250 rm -f core conftest.err conftest.$ac_objext
4251 test "x$ac_cv_prog_cc_c89" != "xno" && break
4252 done
4253 rm -f conftest.$ac_ext
4254 CC=$ac_save_CC
4257 # AC_CACHE_VAL
4258 case "x$ac_cv_prog_cc_c89" in
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4261 $as_echo "none needed" >&6; } ;;
4262 xno)
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4264 $as_echo "unsupported" >&6; } ;;
4266 CC="$CC $ac_cv_prog_cc_c89"
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4268 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4269 esac
4270 if test "x$ac_cv_prog_cc_c89" != xno; then :
4274 ac_ext=c
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280 ac_ext=c
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4286 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4287 if ${am_cv_prog_cc_c_o+:} false; then :
4288 $as_echo_n "(cached) " >&6
4289 else
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4294 main ()
4298 return 0;
4300 _ACEOF
4301 # Make sure it works both with $CC and with simple cc.
4302 # Following AC_PROG_CC_C_O, we do the test twice because some
4303 # compilers refuse to overwrite an existing .o file with -o,
4304 # though they will create one.
4305 am_cv_prog_cc_c_o=yes
4306 for am_i in 1 2; do
4307 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4308 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } \
4312 && test -f conftest2.$ac_objext; then
4313 : OK
4314 else
4315 am_cv_prog_cc_c_o=no
4316 break
4318 done
4319 rm -f core conftest*
4320 unset am_i
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4323 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4324 if test "$am_cv_prog_cc_c_o" != yes; then
4325 # Losing compiler, so override with the script.
4326 # FIXME: It is wrong to rewrite CC.
4327 # But if we don't then we get into trouble of one sort or another.
4328 # A longer-term fix would be to have automake use am__CC in this case,
4329 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4330 CC="$am_aux_dir/compile $CC"
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 depcc="$CC" am_compiler_list=
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4342 $as_echo_n "checking dependency style of $depcc... " >&6; }
4343 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4347 # We make a subdir and do the tests there. Otherwise we can end up
4348 # making bogus files that we don't know about and never remove. For
4349 # instance it was reported that on HP-UX the gcc test will end up
4350 # making a dummy file named 'D' -- because '-MD' means "put the output
4351 # in D".
4352 rm -rf conftest.dir
4353 mkdir conftest.dir
4354 # Copy depcomp to subdir because otherwise we won't find it if we're
4355 # using a relative directory.
4356 cp "$am_depcomp" conftest.dir
4357 cd conftest.dir
4358 # We will build objects and dependencies in a subdirectory because
4359 # it helps to detect inapplicable dependency modes. For instance
4360 # both Tru64's cc and ICC support -MD to output dependencies as a
4361 # side effect of compilation, but ICC will put the dependencies in
4362 # the current directory while Tru64 will put them in the object
4363 # directory.
4364 mkdir sub
4366 am_cv_CC_dependencies_compiler_type=none
4367 if test "$am_compiler_list" = ""; then
4368 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4370 am__universal=false
4371 case " $depcc " in #(
4372 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4373 esac
4375 for depmode in $am_compiler_list; do
4376 # Setup a source with many dependencies, because some compilers
4377 # like to wrap large dependency lists on column 80 (with \), and
4378 # we should not choose a depcomp mode which is confused by this.
4380 # We need to recreate these files for each test, as the compiler may
4381 # overwrite some of them when testing with obscure command lines.
4382 # This happens at least with the AIX C compiler.
4383 : > sub/conftest.c
4384 for i in 1 2 3 4 5 6; do
4385 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4386 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4387 # Solaris 10 /bin/sh.
4388 echo '/* dummy */' > sub/conftst$i.h
4389 done
4390 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4392 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4393 # mode. It turns out that the SunPro C++ compiler does not properly
4394 # handle '-M -o', and we need to detect this. Also, some Intel
4395 # versions had trouble with output in subdirs.
4396 am__obj=sub/conftest.${OBJEXT-o}
4397 am__minus_obj="-o $am__obj"
4398 case $depmode in
4399 gcc)
4400 # This depmode causes a compiler race in universal mode.
4401 test "$am__universal" = false || continue
4403 nosideeffect)
4404 # After this tag, mechanisms are not by side-effect, so they'll
4405 # only be used when explicitly requested.
4406 if test "x$enable_dependency_tracking" = xyes; then
4407 continue
4408 else
4409 break
4412 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4413 # This compiler won't grok '-c -o', but also, the minuso test has
4414 # not run yet. These depmodes are late enough in the game, and
4415 # so weak that their functioning should not be impacted.
4416 am__obj=conftest.${OBJEXT-o}
4417 am__minus_obj=
4419 none) break ;;
4420 esac
4421 if depmode=$depmode \
4422 source=sub/conftest.c object=$am__obj \
4423 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4424 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4425 >/dev/null 2>conftest.err &&
4426 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4427 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4428 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4429 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4430 # icc doesn't choke on unknown options, it will just issue warnings
4431 # or remarks (even with -Werror). So we grep stderr for any message
4432 # that says an option was ignored or not supported.
4433 # When given -MP, icc 7.0 and 7.1 complain thusly:
4434 # icc: Command line warning: ignoring option '-M'; no argument required
4435 # The diagnosis changed in icc 8.0:
4436 # icc: Command line remark: option '-MP' not supported
4437 if (grep 'ignoring option' conftest.err ||
4438 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4439 am_cv_CC_dependencies_compiler_type=$depmode
4440 break
4443 done
4445 cd ..
4446 rm -rf conftest.dir
4447 else
4448 am_cv_CC_dependencies_compiler_type=none
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4453 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4454 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4457 test "x$enable_dependency_tracking" != xno \
4458 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4459 am__fastdepCC_TRUE=
4460 am__fastdepCC_FALSE='#'
4461 else
4462 am__fastdepCC_TRUE='#'
4463 am__fastdepCC_FALSE=
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4468 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4469 if ${ac_cv_prog_cc_c99+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 ac_cv_prog_cc_c99=no
4473 ac_save_CC=$CC
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 #include <stdarg.h>
4477 #include <stdbool.h>
4478 #include <stdlib.h>
4479 #include <wchar.h>
4480 #include <stdio.h>
4482 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4483 #define debug(...) fprintf (stderr, __VA_ARGS__)
4484 #define showlist(...) puts (#__VA_ARGS__)
4485 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4486 static void
4487 test_varargs_macros (void)
4489 int x = 1234;
4490 int y = 5678;
4491 debug ("Flag");
4492 debug ("X = %d\n", x);
4493 showlist (The first, second, and third items.);
4494 report (x>y, "x is %d but y is %d", x, y);
4497 // Check long long types.
4498 #define BIG64 18446744073709551615ull
4499 #define BIG32 4294967295ul
4500 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4501 #if !BIG_OK
4502 your preprocessor is broken;
4503 #endif
4504 #if BIG_OK
4505 #else
4506 your preprocessor is broken;
4507 #endif
4508 static long long int bignum = -9223372036854775807LL;
4509 static unsigned long long int ubignum = BIG64;
4511 struct incomplete_array
4513 int datasize;
4514 double data[];
4517 struct named_init {
4518 int number;
4519 const wchar_t *name;
4520 double average;
4523 typedef const char *ccp;
4525 static inline int
4526 test_restrict (ccp restrict text)
4528 // See if C++-style comments work.
4529 // Iterate through items via the restricted pointer.
4530 // Also check for declarations in for loops.
4531 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4532 continue;
4533 return 0;
4536 // Check varargs and va_copy.
4537 static void
4538 test_varargs (const char *format, ...)
4540 va_list args;
4541 va_start (args, format);
4542 va_list args_copy;
4543 va_copy (args_copy, args);
4545 const char *str;
4546 int number;
4547 float fnumber;
4549 while (*format)
4551 switch (*format++)
4553 case 's': // string
4554 str = va_arg (args_copy, const char *);
4555 break;
4556 case 'd': // int
4557 number = va_arg (args_copy, int);
4558 break;
4559 case 'f': // float
4560 fnumber = va_arg (args_copy, double);
4561 break;
4562 default:
4563 break;
4566 va_end (args_copy);
4567 va_end (args);
4571 main ()
4574 // Check bool.
4575 _Bool success = false;
4577 // Check restrict.
4578 if (test_restrict ("String literal") == 0)
4579 success = true;
4580 char *restrict newvar = "Another string";
4582 // Check varargs.
4583 test_varargs ("s, d' f .", "string", 65, 34.234);
4584 test_varargs_macros ();
4586 // Check flexible array members.
4587 struct incomplete_array *ia =
4588 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4589 ia->datasize = 10;
4590 for (int i = 0; i < ia->datasize; ++i)
4591 ia->data[i] = i * 1.234;
4593 // Check named initializers.
4594 struct named_init ni = {
4595 .number = 34,
4596 .name = L"Test wide string",
4597 .average = 543.34343,
4600 ni.number = 58;
4602 int dynamic_array[ni.number];
4603 dynamic_array[ni.number - 1] = 543;
4605 // work around unused variable warnings
4606 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4607 || dynamic_array[ni.number - 1] != 543);
4610 return 0;
4612 _ACEOF
4613 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4615 CC="$ac_save_CC $ac_arg"
4616 if ac_fn_c_try_compile "$LINENO"; then :
4617 ac_cv_prog_cc_c99=$ac_arg
4619 rm -f core conftest.err conftest.$ac_objext
4620 test "x$ac_cv_prog_cc_c99" != "xno" && break
4621 done
4622 rm -f conftest.$ac_ext
4623 CC=$ac_save_CC
4626 # AC_CACHE_VAL
4627 case "x$ac_cv_prog_cc_c99" in
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4630 $as_echo "none needed" >&6; } ;;
4631 xno)
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4633 $as_echo "unsupported" >&6; } ;;
4635 CC="$CC $ac_cv_prog_cc_c99"
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4637 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4638 esac
4639 if test "x$ac_cv_prog_cc_c99" != xno; then :
4644 # By default we simply use the C compiler to build assembly code.
4646 test "${CCAS+set}" = set || CCAS=$CC
4647 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4651 depcc="$CCAS" am_compiler_list=
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4654 $as_echo_n "checking dependency style of $depcc... " >&6; }
4655 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4659 # We make a subdir and do the tests there. Otherwise we can end up
4660 # making bogus files that we don't know about and never remove. For
4661 # instance it was reported that on HP-UX the gcc test will end up
4662 # making a dummy file named 'D' -- because '-MD' means "put the output
4663 # in D".
4664 rm -rf conftest.dir
4665 mkdir conftest.dir
4666 # Copy depcomp to subdir because otherwise we won't find it if we're
4667 # using a relative directory.
4668 cp "$am_depcomp" conftest.dir
4669 cd conftest.dir
4670 # We will build objects and dependencies in a subdirectory because
4671 # it helps to detect inapplicable dependency modes. For instance
4672 # both Tru64's cc and ICC support -MD to output dependencies as a
4673 # side effect of compilation, but ICC will put the dependencies in
4674 # the current directory while Tru64 will put them in the object
4675 # directory.
4676 mkdir sub
4678 am_cv_CCAS_dependencies_compiler_type=none
4679 if test "$am_compiler_list" = ""; then
4680 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4682 am__universal=false
4685 for depmode in $am_compiler_list; do
4686 # Setup a source with many dependencies, because some compilers
4687 # like to wrap large dependency lists on column 80 (with \), and
4688 # we should not choose a depcomp mode which is confused by this.
4690 # We need to recreate these files for each test, as the compiler may
4691 # overwrite some of them when testing with obscure command lines.
4692 # This happens at least with the AIX C compiler.
4693 : > sub/conftest.c
4694 for i in 1 2 3 4 5 6; do
4695 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4696 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4697 # Solaris 10 /bin/sh.
4698 echo '/* dummy */' > sub/conftst$i.h
4699 done
4700 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4702 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4703 # mode. It turns out that the SunPro C++ compiler does not properly
4704 # handle '-M -o', and we need to detect this. Also, some Intel
4705 # versions had trouble with output in subdirs.
4706 am__obj=sub/conftest.${OBJEXT-o}
4707 am__minus_obj="-o $am__obj"
4708 case $depmode in
4709 gcc)
4710 # This depmode causes a compiler race in universal mode.
4711 test "$am__universal" = false || continue
4713 nosideeffect)
4714 # After this tag, mechanisms are not by side-effect, so they'll
4715 # only be used when explicitly requested.
4716 if test "x$enable_dependency_tracking" = xyes; then
4717 continue
4718 else
4719 break
4722 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4723 # This compiler won't grok '-c -o', but also, the minuso test has
4724 # not run yet. These depmodes are late enough in the game, and
4725 # so weak that their functioning should not be impacted.
4726 am__obj=conftest.${OBJEXT-o}
4727 am__minus_obj=
4729 none) break ;;
4730 esac
4731 if depmode=$depmode \
4732 source=sub/conftest.c object=$am__obj \
4733 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4734 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4735 >/dev/null 2>conftest.err &&
4736 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4737 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4738 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4739 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4740 # icc doesn't choke on unknown options, it will just issue warnings
4741 # or remarks (even with -Werror). So we grep stderr for any message
4742 # that says an option was ignored or not supported.
4743 # When given -MP, icc 7.0 and 7.1 complain thusly:
4744 # icc: Command line warning: ignoring option '-M'; no argument required
4745 # The diagnosis changed in icc 8.0:
4746 # icc: Command line remark: option '-MP' not supported
4747 if (grep 'ignoring option' conftest.err ||
4748 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4749 am_cv_CCAS_dependencies_compiler_type=$depmode
4750 break
4753 done
4755 cd ..
4756 rm -rf conftest.dir
4757 else
4758 am_cv_CCAS_dependencies_compiler_type=none
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4763 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4764 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4767 test "x$enable_dependency_tracking" != xno \
4768 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4769 am__fastdepCCAS_TRUE=
4770 am__fastdepCCAS_FALSE='#'
4771 else
4772 am__fastdepCCAS_TRUE='#'
4773 am__fastdepCCAS_FALSE=
4778 ac_ext=c
4779 ac_cpp='$CPP $CPPFLAGS'
4780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4784 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4785 # On Suns, sometimes $CPP names a directory.
4786 if test -n "$CPP" && test -d "$CPP"; then
4787 CPP=
4789 if test -z "$CPP"; then
4790 if ${ac_cv_prog_CPP+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 # Double quotes because CPP needs to be expanded
4794 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4796 ac_preproc_ok=false
4797 for ac_c_preproc_warn_flag in '' yes
4799 # Use a header file that comes with gcc, so configuring glibc
4800 # with a fresh cross-compiler works.
4801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4802 # <limits.h> exists even on freestanding compilers.
4803 # On the NeXT, cc -E runs the code through the compiler's parser,
4804 # not just through cpp. "Syntax error" is here to catch this case.
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4807 #ifdef __STDC__
4808 # include <limits.h>
4809 #else
4810 # include <assert.h>
4811 #endif
4812 Syntax error
4813 _ACEOF
4814 if ac_fn_c_try_cpp "$LINENO"; then :
4816 else
4817 # Broken: fails on valid input.
4818 continue
4820 rm -f conftest.err conftest.i conftest.$ac_ext
4822 # OK, works on sane cases. Now check whether nonexistent headers
4823 # can be detected and how.
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826 #include <ac_nonexistent.h>
4827 _ACEOF
4828 if ac_fn_c_try_cpp "$LINENO"; then :
4829 # Broken: success on invalid input.
4830 continue
4831 else
4832 # Passes both tests.
4833 ac_preproc_ok=:
4834 break
4836 rm -f conftest.err conftest.i conftest.$ac_ext
4838 done
4839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4840 rm -f conftest.i conftest.err conftest.$ac_ext
4841 if $ac_preproc_ok; then :
4842 break
4845 done
4846 ac_cv_prog_CPP=$CPP
4849 CPP=$ac_cv_prog_CPP
4850 else
4851 ac_cv_prog_CPP=$CPP
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4854 $as_echo "$CPP" >&6; }
4855 ac_preproc_ok=false
4856 for ac_c_preproc_warn_flag in '' yes
4858 # Use a header file that comes with gcc, so configuring glibc
4859 # with a fresh cross-compiler works.
4860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4861 # <limits.h> exists even on freestanding compilers.
4862 # On the NeXT, cc -E runs the code through the compiler's parser,
4863 # not just through cpp. "Syntax error" is here to catch this case.
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 #ifdef __STDC__
4867 # include <limits.h>
4868 #else
4869 # include <assert.h>
4870 #endif
4871 Syntax error
4872 _ACEOF
4873 if ac_fn_c_try_cpp "$LINENO"; then :
4875 else
4876 # Broken: fails on valid input.
4877 continue
4879 rm -f conftest.err conftest.i conftest.$ac_ext
4881 # OK, works on sane cases. Now check whether nonexistent headers
4882 # can be detected and how.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #include <ac_nonexistent.h>
4886 _ACEOF
4887 if ac_fn_c_try_cpp "$LINENO"; then :
4888 # Broken: success on invalid input.
4889 continue
4890 else
4891 # Passes both tests.
4892 ac_preproc_ok=:
4893 break
4895 rm -f conftest.err conftest.i conftest.$ac_ext
4897 done
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.i conftest.err conftest.$ac_ext
4900 if $ac_preproc_ok; then :
4902 else
4903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4905 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details" "$LINENO" 5; }
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4917 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4918 if ${ac_cv_path_GREP+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -z "$GREP"; then
4922 ac_path_GREP_found=false
4923 # Loop through the user's path and test for each of PROGNAME-LIST
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_prog in grep ggrep; do
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4932 as_fn_executable_p "$ac_path_GREP" || continue
4933 # Check for GNU ac_path_GREP and select it if it is found.
4934 # Check for GNU $ac_path_GREP
4935 case `"$ac_path_GREP" --version 2>&1` in
4936 *GNU*)
4937 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4939 ac_count=0
4940 $as_echo_n 0123456789 >"conftest.in"
4941 while :
4943 cat "conftest.in" "conftest.in" >"conftest.tmp"
4944 mv "conftest.tmp" "conftest.in"
4945 cp "conftest.in" "conftest.nl"
4946 $as_echo 'GREP' >> "conftest.nl"
4947 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4949 as_fn_arith $ac_count + 1 && ac_count=$as_val
4950 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4951 # Best one so far, save it but keep looking for a better one
4952 ac_cv_path_GREP="$ac_path_GREP"
4953 ac_path_GREP_max=$ac_count
4955 # 10*(2^10) chars as input seems more than enough
4956 test $ac_count -gt 10 && break
4957 done
4958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4959 esac
4961 $ac_path_GREP_found && break 3
4962 done
4963 done
4964 done
4965 IFS=$as_save_IFS
4966 if test -z "$ac_cv_path_GREP"; then
4967 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4969 else
4970 ac_cv_path_GREP=$GREP
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4975 $as_echo "$ac_cv_path_GREP" >&6; }
4976 GREP="$ac_cv_path_GREP"
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4980 $as_echo_n "checking for egrep... " >&6; }
4981 if ${ac_cv_path_EGREP+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4985 then ac_cv_path_EGREP="$GREP -E"
4986 else
4987 if test -z "$EGREP"; then
4988 ac_path_EGREP_found=false
4989 # Loop through the user's path and test for each of PROGNAME-LIST
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_prog in egrep; do
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4998 as_fn_executable_p "$ac_path_EGREP" || continue
4999 # Check for GNU ac_path_EGREP and select it if it is found.
5000 # Check for GNU $ac_path_EGREP
5001 case `"$ac_path_EGREP" --version 2>&1` in
5002 *GNU*)
5003 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5005 ac_count=0
5006 $as_echo_n 0123456789 >"conftest.in"
5007 while :
5009 cat "conftest.in" "conftest.in" >"conftest.tmp"
5010 mv "conftest.tmp" "conftest.in"
5011 cp "conftest.in" "conftest.nl"
5012 $as_echo 'EGREP' >> "conftest.nl"
5013 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5015 as_fn_arith $ac_count + 1 && ac_count=$as_val
5016 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5017 # Best one so far, save it but keep looking for a better one
5018 ac_cv_path_EGREP="$ac_path_EGREP"
5019 ac_path_EGREP_max=$ac_count
5021 # 10*(2^10) chars as input seems more than enough
5022 test $ac_count -gt 10 && break
5023 done
5024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5025 esac
5027 $ac_path_EGREP_found && break 3
5028 done
5029 done
5030 done
5031 IFS=$as_save_IFS
5032 if test -z "$ac_cv_path_EGREP"; then
5033 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5035 else
5036 ac_cv_path_EGREP=$EGREP
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5042 $as_echo "$ac_cv_path_EGREP" >&6; }
5043 EGREP="$ac_cv_path_EGREP"
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5047 $as_echo_n "checking for ANSI C header files... " >&6; }
5048 if ${ac_cv_header_stdc+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053 #include <stdlib.h>
5054 #include <stdarg.h>
5055 #include <string.h>
5056 #include <float.h>
5059 main ()
5063 return 0;
5065 _ACEOF
5066 if ac_fn_c_try_compile "$LINENO"; then :
5067 ac_cv_header_stdc=yes
5068 else
5069 ac_cv_header_stdc=no
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 if test $ac_cv_header_stdc = yes; then
5074 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #include <string.h>
5079 _ACEOF
5080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081 $EGREP "memchr" >/dev/null 2>&1; then :
5083 else
5084 ac_cv_header_stdc=no
5086 rm -f conftest*
5090 if test $ac_cv_header_stdc = yes; then
5091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <stdlib.h>
5096 _ACEOF
5097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5098 $EGREP "free" >/dev/null 2>&1; then :
5100 else
5101 ac_cv_header_stdc=no
5103 rm -f conftest*
5107 if test $ac_cv_header_stdc = yes; then
5108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5109 if test "$cross_compiling" = yes; then :
5111 else
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 #include <ctype.h>
5115 #include <stdlib.h>
5116 #if ((' ' & 0x0FF) == 0x020)
5117 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5118 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5119 #else
5120 # define ISLOWER(c) \
5121 (('a' <= (c) && (c) <= 'i') \
5122 || ('j' <= (c) && (c) <= 'r') \
5123 || ('s' <= (c) && (c) <= 'z'))
5124 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5125 #endif
5127 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5129 main ()
5131 int i;
5132 for (i = 0; i < 256; i++)
5133 if (XOR (islower (i), ISLOWER (i))
5134 || toupper (i) != TOUPPER (i))
5135 return 2;
5136 return 0;
5138 _ACEOF
5139 if ac_fn_c_try_run "$LINENO"; then :
5141 else
5142 ac_cv_header_stdc=no
5144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5145 conftest.$ac_objext conftest.beam conftest.$ac_ext
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5151 $as_echo "$ac_cv_header_stdc" >&6; }
5152 if test $ac_cv_header_stdc = yes; then
5154 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5158 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5159 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5160 inttypes.h stdint.h unistd.h
5161 do :
5162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5163 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5165 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5166 cat >>confdefs.h <<_ACEOF
5167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5168 _ACEOF
5172 done
5176 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5177 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5178 MINIX=yes
5179 else
5180 MINIX=
5184 if test "$MINIX" = yes; then
5186 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5189 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5192 $as_echo "#define _MINIX 1" >>confdefs.h
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5198 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5199 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5205 # define __EXTENSIONS__ 1
5206 $ac_includes_default
5208 main ()
5212 return 0;
5214 _ACEOF
5215 if ac_fn_c_try_compile "$LINENO"; then :
5216 ac_cv_safe_to_define___extensions__=yes
5217 else
5218 ac_cv_safe_to_define___extensions__=no
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5223 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5224 test $ac_cv_safe_to_define___extensions__ = yes &&
5225 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5227 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5229 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5231 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5233 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5236 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
5239 $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
5240 if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5244 ax_check_save_flags=$CFLAGS
5245 CFLAGS="$CFLAGS -fvisibility=hidden"
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 #include <stdio.h>
5250 main ()
5252 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5254 return 0;
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"; then :
5258 ax_cv_check_cflags___fvisibility_hidden=yes
5259 else
5260 ax_cv_check_cflags___fvisibility_hidden=no
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 CFLAGS=$ax_check_save_flags
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
5266 $as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
5267 if test x"$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
5268 CFLAGS="$CFLAGS -fvisibility=hidden"
5269 else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
5275 $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
5276 if ${ax_cv_check_cflags___fPIC+:} false; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5280 ax_check_save_flags=$CFLAGS
5281 CFLAGS="$CFLAGS -fPIC"
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #include <stdio.h>
5286 main ()
5288 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5290 return 0;
5292 _ACEOF
5293 if ac_fn_c_try_compile "$LINENO"; then :
5294 ax_cv_check_cflags___fPIC=yes
5295 else
5296 ax_cv_check_cflags___fPIC=no
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 CFLAGS=$ax_check_save_flags
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
5302 $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
5303 if test x"$ax_cv_check_cflags___fPIC" = xyes; then :
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIC" >&5
5306 $as_echo_n "checking whether the linker accepts -fPIC... " >&6; }
5307 if ${ax_cv_check_ldflags___fPIC+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5311 ax_check_save_flags=$LDFLAGS
5312 LDFLAGS="$LDFLAGS -fPIC"
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 #include <stdio.h>
5317 main ()
5319 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5321 return 0;
5323 _ACEOF
5324 if ac_fn_c_try_link "$LINENO"; then :
5325 ax_cv_check_ldflags___fPIC=yes
5326 else
5327 ax_cv_check_ldflags___fPIC=no
5329 rm -f core conftest.err conftest.$ac_objext \
5330 conftest$ac_exeext conftest.$ac_ext
5331 LDFLAGS=$ax_check_save_flags
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIC" >&5
5334 $as_echo "$ax_cv_check_ldflags___fPIC" >&6; }
5335 if test x"$ax_cv_check_ldflags___fPIC" = xyes; then :
5336 CFLAGS="$CFLAGS -fPIC"
5338 else
5343 else
5348 if test "$enable_pie" != "no"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
5351 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
5352 if ${ax_cv_check_cflags___fPIE+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5356 ax_check_save_flags=$CFLAGS
5357 CFLAGS="$CFLAGS -fPIE"
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5360 #include <stdio.h>
5362 main ()
5364 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5366 return 0;
5368 _ACEOF
5369 if ac_fn_c_try_compile "$LINENO"; then :
5370 ax_cv_check_cflags___fPIE=yes
5371 else
5372 ax_cv_check_cflags___fPIE=no
5374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375 CFLAGS=$ax_check_save_flags
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
5378 $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
5379 if test x"$ax_cv_check_cflags___fPIE" = xyes; then :
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE" >&5
5382 $as_echo_n "checking whether the linker accepts -fPIE... " >&6; }
5383 if ${ax_cv_check_ldflags___fPIE+:} false; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5387 ax_check_save_flags=$LDFLAGS
5388 LDFLAGS="$LDFLAGS -fPIE"
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 #include <stdio.h>
5393 main ()
5395 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5397 return 0;
5399 _ACEOF
5400 if ac_fn_c_try_link "$LINENO"; then :
5401 ax_cv_check_ldflags___fPIE=yes
5402 else
5403 ax_cv_check_ldflags___fPIE=no
5405 rm -f core conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext
5407 LDFLAGS=$ax_check_save_flags
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIE" >&5
5410 $as_echo "$ax_cv_check_ldflags___fPIE" >&6; }
5411 if test x"$ax_cv_check_ldflags___fPIE" = xyes; then :
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
5413 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
5414 if ${ax_cv_check_ldflags___pie+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5418 ax_check_save_flags=$LDFLAGS
5419 LDFLAGS="$LDFLAGS -pie"
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <stdio.h>
5424 main ()
5426 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5428 return 0;
5430 _ACEOF
5431 if ac_fn_c_try_link "$LINENO"; then :
5432 ax_cv_check_ldflags___pie=yes
5433 else
5434 ax_cv_check_ldflags___pie=no
5436 rm -f core conftest.err conftest.$ac_objext \
5437 conftest$ac_exeext conftest.$ac_ext
5438 LDFLAGS=$ax_check_save_flags
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
5441 $as_echo "$ax_cv_check_ldflags___pie" >&6; }
5442 if test x"$ax_cv_check_ldflags___pie" = xyes; then :
5443 CFLAGS="$CFLAGS -fPIE"
5444 LDFLAGS="$LDFLAGS -pie"
5445 else
5450 else
5455 else
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
5463 $as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
5464 if ${ax_cv_check_cflags___fwrapv+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5468 ax_check_save_flags=$CFLAGS
5469 CFLAGS="$CFLAGS -fwrapv"
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472 #include <stdio.h>
5474 main ()
5476 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5478 return 0;
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482 ax_cv_check_cflags___fwrapv=yes
5483 else
5484 ax_cv_check_cflags___fwrapv=no
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 CFLAGS=$ax_check_save_flags
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
5490 $as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
5491 if test x"$ax_cv_check_cflags___fwrapv" = xyes; then :
5492 CFLAGS="$CFLAGS -fwrapv"
5493 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
5498 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
5499 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5503 ax_check_save_flags=$CFLAGS
5504 CFLAGS="$CFLAGS -fno-strict-aliasing"
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 #include <stdio.h>
5509 main ()
5511 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5513 return 0;
5515 _ACEOF
5516 if ac_fn_c_try_compile "$LINENO"; then :
5517 ax_cv_check_cflags___fno_strict_aliasing=yes
5518 else
5519 ax_cv_check_cflags___fno_strict_aliasing=no
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 CFLAGS=$ax_check_save_flags
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
5525 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
5526 if test x"$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
5527 CFLAGS="$CFLAGS -fno-strict-aliasing"
5528 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
5533 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
5534 if ${ax_cv_check_cflags___fno_strict_overflow+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5538 ax_check_save_flags=$CFLAGS
5539 CFLAGS="$CFLAGS -fno-strict-overflow"
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 #include <stdio.h>
5544 main ()
5546 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5548 return 0;
5550 _ACEOF
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 ax_cv_check_cflags___fno_strict_overflow=yes
5553 else
5554 ax_cv_check_cflags___fno_strict_overflow=no
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 CFLAGS=$ax_check_save_flags
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
5560 $as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
5561 if test x"$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
5562 CFLAGS="$CFLAGS -fno-strict-overflow"
5563 else
5568 LIBTOOL_OLD_FLAGS="$LIBTOOL_EXTRA_FLAGS"
5569 LIBTOOL_EXTRA_FLAGS="$LIBTOOL_EXTRA_FLAGS -version-info $SODIUM_LIBRARY_VERSION"
5570 # Check whether --enable-soname-versions was given.
5571 if test "${enable_soname_versions+set}" = set; then :
5572 enableval=$enable_soname_versions;
5573 if test "x$enableval" = "xno"; then :
5575 LIBTOOL_EXTRA_FLAGS="$LIBTOOL_OLD_FLAGS -avoid-version"
5583 case $host_os in #(
5584 cygwin* | mingw* | pw32* | cegcc*) :
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
5587 $as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
5588 if ${ax_cv_check_ldflags___Wl___dynamicbase+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5592 ax_check_save_flags=$LDFLAGS
5593 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5596 #include <stdio.h>
5598 main ()
5600 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5602 return 0;
5604 _ACEOF
5605 if ac_fn_c_try_link "$LINENO"; then :
5606 ax_cv_check_ldflags___Wl___dynamicbase=yes
5607 else
5608 ax_cv_check_ldflags___Wl___dynamicbase=no
5610 rm -f core conftest.err conftest.$ac_objext \
5611 conftest$ac_exeext conftest.$ac_ext
5612 LDFLAGS=$ax_check_save_flags
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
5615 $as_echo "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
5616 if test x"$ax_cv_check_ldflags___Wl___dynamicbase" = xyes; then :
5617 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
5618 else
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
5623 $as_echo_n "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
5624 if ${ax_cv_check_ldflags___Wl___nxcompat+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5628 ax_check_save_flags=$LDFLAGS
5629 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #include <stdio.h>
5634 main ()
5636 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5638 return 0;
5640 _ACEOF
5641 if ac_fn_c_try_link "$LINENO"; then :
5642 ax_cv_check_ldflags___Wl___nxcompat=yes
5643 else
5644 ax_cv_check_ldflags___Wl___nxcompat=no
5646 rm -f core conftest.err conftest.$ac_objext \
5647 conftest$ac_exeext conftest.$ac_ext
5648 LDFLAGS=$ax_check_save_flags
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
5651 $as_echo "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
5652 if test x"$ax_cv_check_ldflags___Wl___nxcompat" = xyes; then :
5653 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
5654 else
5658 ;; #(
5659 *) :
5661 esac
5663 if test "x$enable_ssp" != "xno"; then :
5666 case $host_os in #(
5667 cygwin* | mingw* | pw32* | cegcc*) :
5668 ;; #(
5669 dragonfly*) :
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
5672 $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
5673 if ${ax_cv_check_cflags___fstack_protector+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5677 ax_check_save_flags=$CFLAGS
5678 CFLAGS="$CFLAGS -fstack-protector"
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #include <stdio.h>
5683 main ()
5685 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5687 return 0;
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 ax_cv_check_cflags___fstack_protector=yes
5692 else
5693 ax_cv_check_cflags___fstack_protector=no
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 CFLAGS=$ax_check_save_flags
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
5699 $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
5700 if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then :
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
5703 $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
5704 if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5708 ax_check_save_flags=$LDFLAGS
5709 LDFLAGS="$LDFLAGS -fstack-protector"
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712 #include <stdio.h>
5714 main ()
5716 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5718 return 0;
5720 _ACEOF
5721 if ac_fn_c_try_link "$LINENO"; then :
5722 ax_cv_check_ldflags___fstack_protector=yes
5723 else
5724 ax_cv_check_ldflags___fstack_protector=no
5726 rm -f core conftest.err conftest.$ac_objext \
5727 conftest$ac_exeext conftest.$ac_ext
5728 LDFLAGS=$ax_check_save_flags
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
5731 $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
5732 if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
5733 CFLAGS="$CFLAGS -fstack-protector"
5735 else
5740 else
5744 ;; #(
5745 *) :
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
5748 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
5749 if ${ax_cv_check_cflags___fstack_protector_all+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5753 ax_check_save_flags=$CFLAGS
5754 CFLAGS="$CFLAGS -fstack-protector-all"
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 #include <stdio.h>
5759 main ()
5761 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5763 return 0;
5765 _ACEOF
5766 if ac_fn_c_try_compile "$LINENO"; then :
5767 ax_cv_check_cflags___fstack_protector_all=yes
5768 else
5769 ax_cv_check_cflags___fstack_protector_all=no
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 CFLAGS=$ax_check_save_flags
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5
5775 $as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; }
5776 if test x"$ax_cv_check_cflags___fstack_protector_all" = xyes; then :
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
5779 $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
5780 if ${ax_cv_check_ldflags___fstack_protector_all+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5784 ax_check_save_flags=$LDFLAGS
5785 LDFLAGS="$LDFLAGS -fstack-protector-all"
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 #include <stdio.h>
5790 main ()
5792 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5794 return 0;
5796 _ACEOF
5797 if ac_fn_c_try_link "$LINENO"; then :
5798 ax_cv_check_ldflags___fstack_protector_all=yes
5799 else
5800 ax_cv_check_ldflags___fstack_protector_all=no
5802 rm -f core conftest.err conftest.$ac_objext \
5803 conftest$ac_exeext conftest.$ac_ext
5804 LDFLAGS=$ax_check_save_flags
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_all" >&5
5807 $as_echo "$ax_cv_check_ldflags___fstack_protector_all" >&6; }
5808 if test x"$ax_cv_check_ldflags___fstack_protector_all" = xyes; then :
5809 CFLAGS="$CFLAGS -fstack-protector-all"
5811 else
5816 else
5820 ;; #(
5821 *) :
5823 esac
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winit-self" >&5
5828 $as_echo_n "checking whether C compiler accepts -Winit-self... " >&6; }
5829 if ${ax_cv_check_cflags___Winit_self+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5833 ax_check_save_flags=$CFLAGS
5834 CFLAGS="$CFLAGS -Winit-self"
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 #include <stdio.h>
5839 main ()
5841 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5843 return 0;
5845 _ACEOF
5846 if ac_fn_c_try_compile "$LINENO"; then :
5847 ax_cv_check_cflags___Winit_self=yes
5848 else
5849 ax_cv_check_cflags___Winit_self=no
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 CFLAGS=$ax_check_save_flags
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winit_self" >&5
5855 $as_echo "$ax_cv_check_cflags___Winit_self" >&6; }
5856 if test x"$ax_cv_check_cflags___Winit_self" = xyes; then :
5857 CFLAGS="$CFLAGS -Winit-self"
5858 else
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
5863 $as_echo_n "checking whether C compiler accepts -Wwrite-strings... " >&6; }
5864 if ${ax_cv_check_cflags___Wwrite_strings+:} false; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5868 ax_check_save_flags=$CFLAGS
5869 CFLAGS="$CFLAGS -Wwrite-strings"
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872 #include <stdio.h>
5874 main ()
5876 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5878 return 0;
5880 _ACEOF
5881 if ac_fn_c_try_compile "$LINENO"; then :
5882 ax_cv_check_cflags___Wwrite_strings=yes
5883 else
5884 ax_cv_check_cflags___Wwrite_strings=no
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 CFLAGS=$ax_check_save_flags
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
5890 $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
5891 if test x"$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
5892 CFLAGS="$CFLAGS -Wwrite-strings"
5893 else
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
5898 $as_echo_n "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
5899 if ${ax_cv_check_cflags___Wdiv_by_zero+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5903 ax_check_save_flags=$CFLAGS
5904 CFLAGS="$CFLAGS -Wdiv-by-zero"
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 #include <stdio.h>
5909 main ()
5911 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5913 return 0;
5915 _ACEOF
5916 if ac_fn_c_try_compile "$LINENO"; then :
5917 ax_cv_check_cflags___Wdiv_by_zero=yes
5918 else
5919 ax_cv_check_cflags___Wdiv_by_zero=no
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 CFLAGS=$ax_check_save_flags
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
5925 $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
5926 if test x"$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
5927 CFLAGS="$CFLAGS -Wdiv-by-zero"
5928 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsometimes-uninitialized" >&5
5933 $as_echo_n "checking whether C compiler accepts -Wsometimes-uninitialized... " >&6; }
5934 if ${ax_cv_check_cflags___Wsometimes_uninitialized+:} false; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5938 ax_check_save_flags=$CFLAGS
5939 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 #include <stdio.h>
5944 main ()
5946 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5948 return 0;
5950 _ACEOF
5951 if ac_fn_c_try_compile "$LINENO"; then :
5952 ax_cv_check_cflags___Wsometimes_uninitialized=yes
5953 else
5954 ax_cv_check_cflags___Wsometimes_uninitialized=no
5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957 CFLAGS=$ax_check_save_flags
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
5960 $as_echo "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
5961 if test x"$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes; then :
5962 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
5963 else
5970 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wall" | $as_tr_sh`
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wall" >&5
5972 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wall... " >&6; }
5973 if eval \${$as_CACHEVAR+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5977 ax_check_save_flags=$CFLAGS
5978 CFLAGS="$CFLAGS $CWFLAGS -Wall"
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 #include <stdio.h>
5983 main ()
5985 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5987 return 0;
5989 _ACEOF
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991 eval "$as_CACHEVAR=yes"
5992 else
5993 eval "$as_CACHEVAR=no"
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 CFLAGS=$ax_check_save_flags
5998 eval ac_res=\$$as_CACHEVAR
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6000 $as_echo "$ac_res" >&6; }
6001 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6002 CWFLAGS="$CWFLAGS -Wall"
6003 else
6007 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wextra" | $as_tr_sh`
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wextra" >&5
6009 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wextra... " >&6; }
6010 if eval \${$as_CACHEVAR+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6014 ax_check_save_flags=$CFLAGS
6015 CFLAGS="$CFLAGS $CWFLAGS -Wextra"
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6018 #include <stdio.h>
6020 main ()
6022 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6024 return 0;
6026 _ACEOF
6027 if ac_fn_c_try_compile "$LINENO"; then :
6028 eval "$as_CACHEVAR=yes"
6029 else
6030 eval "$as_CACHEVAR=no"
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 CFLAGS=$ax_check_save_flags
6035 eval ac_res=\$$as_CACHEVAR
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6037 $as_echo "$ac_res" >&6; }
6038 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6039 CWFLAGS="$CWFLAGS -Wextra"
6040 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
6046 $as_echo_n "checking for clang... " >&6; }
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6051 main ()
6054 #ifndef __clang__
6055 be sad
6056 #endif
6059 return 0;
6061 _ACEOF
6062 if ac_fn_c_try_compile "$LINENO"; then :
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6064 $as_echo "yes" >&6; }
6065 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | $as_tr_sh`
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
6067 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
6068 if eval \${$as_CACHEVAR+:} false; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6072 ax_check_save_flags=$CFLAGS
6073 CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-warning-option"
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #include <stdio.h>
6078 main ()
6080 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6082 return 0;
6084 _ACEOF
6085 if ac_fn_c_try_compile "$LINENO"; then :
6086 eval "$as_CACHEVAR=yes"
6087 else
6088 eval "$as_CACHEVAR=no"
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 CFLAGS=$ax_check_save_flags
6093 eval ac_res=\$$as_CACHEVAR
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6095 $as_echo "$ac_res" >&6; }
6096 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6097 CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
6098 else
6103 else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
6112 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
6113 if eval \${$as_CACHEVAR+:} false; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6117 ax_check_save_flags=$CFLAGS
6118 CFLAGS="$CFLAGS $CWFLAGS -Wbad-function-cast"
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6121 #include <stdio.h>
6123 main ()
6125 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6127 return 0;
6129 _ACEOF
6130 if ac_fn_c_try_compile "$LINENO"; then :
6131 eval "$as_CACHEVAR=yes"
6132 else
6133 eval "$as_CACHEVAR=no"
6135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136 CFLAGS=$ax_check_save_flags
6138 eval ac_res=\$$as_CACHEVAR
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6140 $as_echo "$ac_res" >&6; }
6141 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6142 CWFLAGS="$CWFLAGS -Wbad-function-cast"
6143 else
6147 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-align" | $as_tr_sh`
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-align" >&5
6149 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-align... " >&6; }
6150 if eval \${$as_CACHEVAR+:} false; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6154 ax_check_save_flags=$CFLAGS
6155 CFLAGS="$CFLAGS $CWFLAGS -Wcast-align"
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6158 #include <stdio.h>
6160 main ()
6162 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6164 return 0;
6166 _ACEOF
6167 if ac_fn_c_try_compile "$LINENO"; then :
6168 eval "$as_CACHEVAR=yes"
6169 else
6170 eval "$as_CACHEVAR=no"
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 CFLAGS=$ax_check_save_flags
6175 eval ac_res=\$$as_CACHEVAR
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6177 $as_echo "$ac_res" >&6; }
6178 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6179 CWFLAGS="$CWFLAGS -Wcast-align"
6180 else
6184 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | $as_tr_sh`
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
6186 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
6187 if eval \${$as_CACHEVAR+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6191 ax_check_save_flags=$CFLAGS
6192 CFLAGS="$CFLAGS $CWFLAGS -Wcast-qual"
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #include <stdio.h>
6197 main ()
6199 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6201 return 0;
6203 _ACEOF
6204 if ac_fn_c_try_compile "$LINENO"; then :
6205 eval "$as_CACHEVAR=yes"
6206 else
6207 eval "$as_CACHEVAR=no"
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 CFLAGS=$ax_check_save_flags
6212 eval ac_res=\$$as_CACHEVAR
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6214 $as_echo "$ac_res" >&6; }
6215 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6216 CWFLAGS="$CWFLAGS -Wcast-qual"
6217 else
6221 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wchar-subscripts" | $as_tr_sh`
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wchar-subscripts" >&5
6223 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wchar-subscripts... " >&6; }
6224 if eval \${$as_CACHEVAR+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6228 ax_check_save_flags=$CFLAGS
6229 CFLAGS="$CFLAGS $CWFLAGS -Wchar-subscripts"
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 #include <stdio.h>
6234 main ()
6236 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6238 return 0;
6240 _ACEOF
6241 if ac_fn_c_try_compile "$LINENO"; then :
6242 eval "$as_CACHEVAR=yes"
6243 else
6244 eval "$as_CACHEVAR=no"
6246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247 CFLAGS=$ax_check_save_flags
6249 eval ac_res=\$$as_CACHEVAR
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6251 $as_echo "$ac_res" >&6; }
6252 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6253 CWFLAGS="$CWFLAGS -Wchar-subscripts"
6254 else
6258 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcomment" | $as_tr_sh`
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcomment" >&5
6260 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcomment... " >&6; }
6261 if eval \${$as_CACHEVAR+:} false; then :
6262 $as_echo_n "(cached) " >&6
6263 else
6265 ax_check_save_flags=$CFLAGS
6266 CFLAGS="$CFLAGS $CWFLAGS -Wcomment"
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 #include <stdio.h>
6271 main ()
6273 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6275 return 0;
6277 _ACEOF
6278 if ac_fn_c_try_compile "$LINENO"; then :
6279 eval "$as_CACHEVAR=yes"
6280 else
6281 eval "$as_CACHEVAR=no"
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 CFLAGS=$ax_check_save_flags
6286 eval ac_res=\$$as_CACHEVAR
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6288 $as_echo "$ac_res" >&6; }
6289 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6290 CWFLAGS="$CWFLAGS -Wcomment"
6291 else
6295 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | $as_tr_sh`
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
6297 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
6298 if eval \${$as_CACHEVAR+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6302 ax_check_save_flags=$CFLAGS
6303 CFLAGS="$CFLAGS $CWFLAGS -Wfloat-equal"
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 #include <stdio.h>
6308 main ()
6310 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6312 return 0;
6314 _ACEOF
6315 if ac_fn_c_try_compile "$LINENO"; then :
6316 eval "$as_CACHEVAR=yes"
6317 else
6318 eval "$as_CACHEVAR=no"
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 CFLAGS=$ax_check_save_flags
6323 eval ac_res=\$$as_CACHEVAR
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6325 $as_echo "$ac_res" >&6; }
6326 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6327 CWFLAGS="$CWFLAGS -Wfloat-equal"
6328 else
6332 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | $as_tr_sh`
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
6334 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
6335 if eval \${$as_CACHEVAR+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6339 ax_check_save_flags=$CFLAGS
6340 CFLAGS="$CFLAGS $CWFLAGS -Wformat=2"
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6343 #include <stdio.h>
6345 main ()
6347 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6349 return 0;
6351 _ACEOF
6352 if ac_fn_c_try_compile "$LINENO"; then :
6353 eval "$as_CACHEVAR=yes"
6354 else
6355 eval "$as_CACHEVAR=no"
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358 CFLAGS=$ax_check_save_flags
6360 eval ac_res=\$$as_CACHEVAR
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6362 $as_echo "$ac_res" >&6; }
6363 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6364 CWFLAGS="$CWFLAGS -Wformat=2"
6365 else
6369 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wimplicit" | $as_tr_sh`
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wimplicit" >&5
6371 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wimplicit... " >&6; }
6372 if eval \${$as_CACHEVAR+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6376 ax_check_save_flags=$CFLAGS
6377 CFLAGS="$CFLAGS $CWFLAGS -Wimplicit"
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6380 #include <stdio.h>
6382 main ()
6384 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6386 return 0;
6388 _ACEOF
6389 if ac_fn_c_try_compile "$LINENO"; then :
6390 eval "$as_CACHEVAR=yes"
6391 else
6392 eval "$as_CACHEVAR=no"
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 CFLAGS=$ax_check_save_flags
6397 eval ac_res=\$$as_CACHEVAR
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6399 $as_echo "$ac_res" >&6; }
6400 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6401 CWFLAGS="$CWFLAGS -Wimplicit"
6402 else
6406 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-declarations" | $as_tr_sh`
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-declarations" >&5
6408 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-declarations... " >&6; }
6409 if eval \${$as_CACHEVAR+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6413 ax_check_save_flags=$CFLAGS
6414 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-declarations"
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 #include <stdio.h>
6419 main ()
6421 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6423 return 0;
6425 _ACEOF
6426 if ac_fn_c_try_compile "$LINENO"; then :
6427 eval "$as_CACHEVAR=yes"
6428 else
6429 eval "$as_CACHEVAR=no"
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432 CFLAGS=$ax_check_save_flags
6434 eval ac_res=\$$as_CACHEVAR
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6436 $as_echo "$ac_res" >&6; }
6437 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6438 CWFLAGS="$CWFLAGS -Wmissing-declarations"
6439 else
6443 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-prototypes" | $as_tr_sh`
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes" >&5
6445 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes... " >&6; }
6446 if eval \${$as_CACHEVAR+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6450 ax_check_save_flags=$CFLAGS
6451 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-prototypes"
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 #include <stdio.h>
6456 main ()
6458 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6460 return 0;
6462 _ACEOF
6463 if ac_fn_c_try_compile "$LINENO"; then :
6464 eval "$as_CACHEVAR=yes"
6465 else
6466 eval "$as_CACHEVAR=no"
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469 CFLAGS=$ax_check_save_flags
6471 eval ac_res=\$$as_CACHEVAR
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6473 $as_echo "$ac_res" >&6; }
6474 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6475 CWFLAGS="$CWFLAGS -Wmissing-prototypes"
6476 else
6480 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnormalized=id" | $as_tr_sh`
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnormalized=id" >&5
6482 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnormalized=id... " >&6; }
6483 if eval \${$as_CACHEVAR+:} false; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6487 ax_check_save_flags=$CFLAGS
6488 CFLAGS="$CFLAGS $CWFLAGS -Wnormalized=id"
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 #include <stdio.h>
6493 main ()
6495 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6497 return 0;
6499 _ACEOF
6500 if ac_fn_c_try_compile "$LINENO"; then :
6501 eval "$as_CACHEVAR=yes"
6502 else
6503 eval "$as_CACHEVAR=no"
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 CFLAGS=$ax_check_save_flags
6508 eval ac_res=\$$as_CACHEVAR
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6510 $as_echo "$ac_res" >&6; }
6511 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6512 CWFLAGS="$CWFLAGS -Wnormalized=id"
6513 else
6517 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Woverride-init" | $as_tr_sh`
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Woverride-init" >&5
6519 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Woverride-init... " >&6; }
6520 if eval \${$as_CACHEVAR+:} false; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6524 ax_check_save_flags=$CFLAGS
6525 CFLAGS="$CFLAGS $CWFLAGS -Woverride-init"
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528 #include <stdio.h>
6530 main ()
6532 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6534 return 0;
6536 _ACEOF
6537 if ac_fn_c_try_compile "$LINENO"; then :
6538 eval "$as_CACHEVAR=yes"
6539 else
6540 eval "$as_CACHEVAR=no"
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 CFLAGS=$ax_check_save_flags
6545 eval ac_res=\$$as_CACHEVAR
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6547 $as_echo "$ac_res" >&6; }
6548 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6549 CWFLAGS="$CWFLAGS -Woverride-init"
6550 else
6554 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wparentheses" | $as_tr_sh`
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wparentheses" >&5
6556 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wparentheses... " >&6; }
6557 if eval \${$as_CACHEVAR+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6561 ax_check_save_flags=$CFLAGS
6562 CFLAGS="$CFLAGS $CWFLAGS -Wparentheses"
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565 #include <stdio.h>
6567 main ()
6569 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6571 return 0;
6573 _ACEOF
6574 if ac_fn_c_try_compile "$LINENO"; then :
6575 eval "$as_CACHEVAR=yes"
6576 else
6577 eval "$as_CACHEVAR=no"
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 CFLAGS=$ax_check_save_flags
6582 eval ac_res=\$$as_CACHEVAR
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6584 $as_echo "$ac_res" >&6; }
6585 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6586 CWFLAGS="$CWFLAGS -Wparentheses"
6587 else
6591 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wpointer-arith" | $as_tr_sh`
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wpointer-arith" >&5
6593 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wpointer-arith... " >&6; }
6594 if eval \${$as_CACHEVAR+:} false; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6598 ax_check_save_flags=$CFLAGS
6599 CFLAGS="$CFLAGS $CWFLAGS -Wpointer-arith"
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 #include <stdio.h>
6604 main ()
6606 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6608 return 0;
6610 _ACEOF
6611 if ac_fn_c_try_compile "$LINENO"; then :
6612 eval "$as_CACHEVAR=yes"
6613 else
6614 eval "$as_CACHEVAR=no"
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 CFLAGS=$ax_check_save_flags
6619 eval ac_res=\$$as_CACHEVAR
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6621 $as_echo "$ac_res" >&6; }
6622 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6623 CWFLAGS="$CWFLAGS -Wpointer-arith"
6624 else
6628 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wredundant-decls" | $as_tr_sh`
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wredundant-decls" >&5
6630 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wredundant-decls... " >&6; }
6631 if eval \${$as_CACHEVAR+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6635 ax_check_save_flags=$CFLAGS
6636 CFLAGS="$CFLAGS $CWFLAGS -Wredundant-decls"
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 #include <stdio.h>
6641 main ()
6643 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6645 return 0;
6647 _ACEOF
6648 if ac_fn_c_try_compile "$LINENO"; then :
6649 eval "$as_CACHEVAR=yes"
6650 else
6651 eval "$as_CACHEVAR=no"
6653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654 CFLAGS=$ax_check_save_flags
6656 eval ac_res=\$$as_CACHEVAR
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6658 $as_echo "$ac_res" >&6; }
6659 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6660 CWFLAGS="$CWFLAGS -Wredundant-decls"
6661 else
6665 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | $as_tr_sh`
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
6667 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
6668 if eval \${$as_CACHEVAR+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6672 ax_check_save_flags=$CFLAGS
6673 CFLAGS="$CFLAGS $CWFLAGS -Wstrict-prototypes"
6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h. */
6676 #include <stdio.h>
6678 main ()
6680 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6682 return 0;
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"; then :
6686 eval "$as_CACHEVAR=yes"
6687 else
6688 eval "$as_CACHEVAR=no"
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 CFLAGS=$ax_check_save_flags
6693 eval ac_res=\$$as_CACHEVAR
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6695 $as_echo "$ac_res" >&6; }
6696 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6697 CWFLAGS="$CWFLAGS -Wstrict-prototypes"
6698 else
6702 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | $as_tr_sh`
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
6704 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
6705 if eval \${$as_CACHEVAR+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6709 ax_check_save_flags=$CFLAGS
6710 CFLAGS="$CFLAGS $CWFLAGS -Wswitch-enum"
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 #include <stdio.h>
6715 main ()
6717 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6719 return 0;
6721 _ACEOF
6722 if ac_fn_c_try_compile "$LINENO"; then :
6723 eval "$as_CACHEVAR=yes"
6724 else
6725 eval "$as_CACHEVAR=no"
6727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6728 CFLAGS=$ax_check_save_flags
6730 eval ac_res=\$$as_CACHEVAR
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6732 $as_echo "$ac_res" >&6; }
6733 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6734 CWFLAGS="$CWFLAGS -Wswitch-enum"
6735 else
6739 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | $as_tr_sh`
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
6741 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
6742 if eval \${$as_CACHEVAR+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6746 ax_check_save_flags=$CFLAGS
6747 CFLAGS="$CFLAGS $CWFLAGS -Wvariable-decl"
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 #include <stdio.h>
6752 main ()
6754 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6756 return 0;
6758 _ACEOF
6759 if ac_fn_c_try_compile "$LINENO"; then :
6760 eval "$as_CACHEVAR=yes"
6761 else
6762 eval "$as_CACHEVAR=no"
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 CFLAGS=$ax_check_save_flags
6767 eval ac_res=\$$as_CACHEVAR
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6769 $as_echo "$ac_res" >&6; }
6770 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6771 CWFLAGS="$CWFLAGS -Wvariable-decl"
6772 else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
6778 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
6779 if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6783 ax_check_save_flags=$LDFLAGS
6784 LDFLAGS="$LDFLAGS -Wl,-z,relro"
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787 #include <stdio.h>
6789 main ()
6791 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6793 return 0;
6795 _ACEOF
6796 if ac_fn_c_try_link "$LINENO"; then :
6797 ax_cv_check_ldflags___Wl__z_relro=yes
6798 else
6799 ax_cv_check_ldflags___Wl__z_relro=no
6801 rm -f core conftest.err conftest.$ac_objext \
6802 conftest$ac_exeext conftest.$ac_ext
6803 LDFLAGS=$ax_check_save_flags
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
6806 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
6807 if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
6808 LDFLAGS="$LDFLAGS -Wl,-z,relro"
6809 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
6814 $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
6815 if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6819 ax_check_save_flags=$LDFLAGS
6820 LDFLAGS="$LDFLAGS -Wl,-z,now"
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6823 #include <stdio.h>
6825 main ()
6827 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6829 return 0;
6831 _ACEOF
6832 if ac_fn_c_try_link "$LINENO"; then :
6833 ax_cv_check_ldflags___Wl__z_now=yes
6834 else
6835 ax_cv_check_ldflags___Wl__z_now=no
6837 rm -f core conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
6839 LDFLAGS=$ax_check_save_flags
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
6842 $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
6843 if test x"$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
6844 LDFLAGS="$LDFLAGS -Wl,-z,now"
6845 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
6850 $as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
6851 if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6855 ax_check_save_flags=$LDFLAGS
6856 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <stdio.h>
6861 main ()
6863 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6865 return 0;
6867 _ACEOF
6868 if ac_fn_c_try_link "$LINENO"; then :
6869 ax_cv_check_ldflags___Wl__z_noexecstack=yes
6870 else
6871 ax_cv_check_ldflags___Wl__z_noexecstack=no
6873 rm -f core conftest.err conftest.$ac_objext \
6874 conftest$ac_exeext conftest.$ac_ext
6875 LDFLAGS=$ax_check_save_flags
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
6878 $as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
6879 if test x"$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
6880 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
6881 else
6886 case `pwd` in
6887 *\ * | *\ *)
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6889 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6890 esac
6894 macro_version='2.4.2'
6895 macro_revision='1.3337'
6909 ltmain="$ac_aux_dir/ltmain.sh"
6911 # Backslashify metacharacters that are still active within
6912 # double-quoted strings.
6913 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6915 # Same as above, but do not quote variable references.
6916 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6918 # Sed substitution to delay expansion of an escaped shell variable in a
6919 # double_quote_subst'ed string.
6920 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6922 # Sed substitution to delay expansion of an escaped single quote.
6923 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6925 # Sed substitution to avoid accidental globbing in evaled expressions
6926 no_glob_subst='s/\*/\\\*/g'
6928 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6929 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6930 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6933 $as_echo_n "checking how to print strings... " >&6; }
6934 # Test print first, because it will be a builtin if present.
6935 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6936 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6937 ECHO='print -r --'
6938 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6939 ECHO='printf %s\n'
6940 else
6941 # Use this function as a fallback that always works.
6942 func_fallback_echo ()
6944 eval 'cat <<_LTECHO_EOF
6946 _LTECHO_EOF'
6948 ECHO='func_fallback_echo'
6951 # func_echo_all arg...
6952 # Invoke $ECHO with all args, space-separated.
6953 func_echo_all ()
6955 $ECHO ""
6958 case "$ECHO" in
6959 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6960 $as_echo "printf" >&6; } ;;
6961 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6962 $as_echo "print -r" >&6; } ;;
6963 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6964 $as_echo "cat" >&6; } ;;
6965 esac
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6981 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6982 if ${ac_cv_path_SED+:} false; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6986 for ac_i in 1 2 3 4 5 6 7; do
6987 ac_script="$ac_script$as_nl$ac_script"
6988 done
6989 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6990 { ac_script=; unset ac_script;}
6991 if test -z "$SED"; then
6992 ac_path_SED_found=false
6993 # Loop through the user's path and test for each of PROGNAME-LIST
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_prog in sed gsed; do
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7002 as_fn_executable_p "$ac_path_SED" || continue
7003 # Check for GNU ac_path_SED and select it if it is found.
7004 # Check for GNU $ac_path_SED
7005 case `"$ac_path_SED" --version 2>&1` in
7006 *GNU*)
7007 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7009 ac_count=0
7010 $as_echo_n 0123456789 >"conftest.in"
7011 while :
7013 cat "conftest.in" "conftest.in" >"conftest.tmp"
7014 mv "conftest.tmp" "conftest.in"
7015 cp "conftest.in" "conftest.nl"
7016 $as_echo '' >> "conftest.nl"
7017 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7019 as_fn_arith $ac_count + 1 && ac_count=$as_val
7020 if test $ac_count -gt ${ac_path_SED_max-0}; then
7021 # Best one so far, save it but keep looking for a better one
7022 ac_cv_path_SED="$ac_path_SED"
7023 ac_path_SED_max=$ac_count
7025 # 10*(2^10) chars as input seems more than enough
7026 test $ac_count -gt 10 && break
7027 done
7028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7029 esac
7031 $ac_path_SED_found && break 3
7032 done
7033 done
7034 done
7035 IFS=$as_save_IFS
7036 if test -z "$ac_cv_path_SED"; then
7037 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7039 else
7040 ac_cv_path_SED=$SED
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7045 $as_echo "$ac_cv_path_SED" >&6; }
7046 SED="$ac_cv_path_SED"
7047 rm -f conftest.sed
7049 test -z "$SED" && SED=sed
7050 Xsed="$SED -e 1s/^X//"
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7063 $as_echo_n "checking for fgrep... " >&6; }
7064 if ${ac_cv_path_FGREP+:} false; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7068 then ac_cv_path_FGREP="$GREP -F"
7069 else
7070 if test -z "$FGREP"; then
7071 ac_path_FGREP_found=false
7072 # Loop through the user's path and test for each of PROGNAME-LIST
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_prog in fgrep; do
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7081 as_fn_executable_p "$ac_path_FGREP" || continue
7082 # Check for GNU ac_path_FGREP and select it if it is found.
7083 # Check for GNU $ac_path_FGREP
7084 case `"$ac_path_FGREP" --version 2>&1` in
7085 *GNU*)
7086 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7088 ac_count=0
7089 $as_echo_n 0123456789 >"conftest.in"
7090 while :
7092 cat "conftest.in" "conftest.in" >"conftest.tmp"
7093 mv "conftest.tmp" "conftest.in"
7094 cp "conftest.in" "conftest.nl"
7095 $as_echo 'FGREP' >> "conftest.nl"
7096 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7098 as_fn_arith $ac_count + 1 && ac_count=$as_val
7099 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7100 # Best one so far, save it but keep looking for a better one
7101 ac_cv_path_FGREP="$ac_path_FGREP"
7102 ac_path_FGREP_max=$ac_count
7104 # 10*(2^10) chars as input seems more than enough
7105 test $ac_count -gt 10 && break
7106 done
7107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7108 esac
7110 $ac_path_FGREP_found && break 3
7111 done
7112 done
7113 done
7114 IFS=$as_save_IFS
7115 if test -z "$ac_cv_path_FGREP"; then
7116 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7118 else
7119 ac_cv_path_FGREP=$FGREP
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7125 $as_echo "$ac_cv_path_FGREP" >&6; }
7126 FGREP="$ac_cv_path_FGREP"
7129 test -z "$GREP" && GREP=grep
7149 # Check whether --with-gnu-ld was given.
7150 if test "${with_gnu_ld+set}" = set; then :
7151 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7152 else
7153 with_gnu_ld=no
7156 ac_prog=ld
7157 if test "$GCC" = yes; then
7158 # Check if gcc -print-prog-name=ld gives a path.
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7160 $as_echo_n "checking for ld used by $CC... " >&6; }
7161 case $host in
7162 *-*-mingw*)
7163 # gcc leaves a trailing carriage return which upsets mingw
7164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7167 esac
7168 case $ac_prog in
7169 # Accept absolute paths.
7170 [\\/]* | ?:[\\/]*)
7171 re_direlt='/[^/][^/]*/\.\./'
7172 # Canonicalize the pathname of ld
7173 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7174 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7175 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7176 done
7177 test -z "$LD" && LD="$ac_prog"
7180 # If it fails, then pretend we aren't using GCC.
7181 ac_prog=ld
7184 # If it is relative, then search for the first ld in PATH.
7185 with_gnu_ld=unknown
7187 esac
7188 elif test "$with_gnu_ld" = yes; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7190 $as_echo_n "checking for GNU ld... " >&6; }
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7193 $as_echo_n "checking for non-GNU ld... " >&6; }
7195 if ${lt_cv_path_LD+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 if test -z "$LD"; then
7199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7200 for ac_dir in $PATH; do
7201 IFS="$lt_save_ifs"
7202 test -z "$ac_dir" && ac_dir=.
7203 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7204 lt_cv_path_LD="$ac_dir/$ac_prog"
7205 # Check to see if the program is GNU ld. I'd rather use --version,
7206 # but apparently some variants of GNU ld only accept -v.
7207 # Break only if it was the GNU/non-GNU ld that we prefer.
7208 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7209 *GNU* | *'with BFD'*)
7210 test "$with_gnu_ld" != no && break
7213 test "$with_gnu_ld" != yes && break
7215 esac
7217 done
7218 IFS="$lt_save_ifs"
7219 else
7220 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7224 LD="$lt_cv_path_LD"
7225 if test -n "$LD"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7227 $as_echo "$LD" >&6; }
7228 else
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7232 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7234 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7235 if ${lt_cv_prog_gnu_ld+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7239 case `$LD -v 2>&1 </dev/null` in
7240 *GNU* | *'with BFD'*)
7241 lt_cv_prog_gnu_ld=yes
7244 lt_cv_prog_gnu_ld=no
7246 esac
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7249 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7250 with_gnu_ld=$lt_cv_prog_gnu_ld
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7261 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7262 if ${lt_cv_path_NM+:} false; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 if test -n "$NM"; then
7266 # Let the user override the test.
7267 lt_cv_path_NM="$NM"
7268 else
7269 lt_nm_to_check="${ac_tool_prefix}nm"
7270 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7271 lt_nm_to_check="$lt_nm_to_check nm"
7273 for lt_tmp_nm in $lt_nm_to_check; do
7274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7275 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7276 IFS="$lt_save_ifs"
7277 test -z "$ac_dir" && ac_dir=.
7278 tmp_nm="$ac_dir/$lt_tmp_nm"
7279 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7280 # Check to see if the nm accepts a BSD-compat flag.
7281 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7282 # nm: unknown option "B" ignored
7283 # Tru64's nm complains that /dev/null is an invalid object file
7284 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7285 */dev/null* | *'Invalid file or object type'*)
7286 lt_cv_path_NM="$tmp_nm -B"
7287 break
7290 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7291 */dev/null*)
7292 lt_cv_path_NM="$tmp_nm -p"
7293 break
7296 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7297 continue # so that we can try to find one that supports BSD flags
7299 esac
7301 esac
7303 done
7304 IFS="$lt_save_ifs"
7305 done
7306 : ${lt_cv_path_NM=no}
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7310 $as_echo "$lt_cv_path_NM" >&6; }
7311 if test "$lt_cv_path_NM" != "no"; then
7312 NM="$lt_cv_path_NM"
7313 else
7314 # Didn't find any BSD compatible name lister, look for dumpbin.
7315 if test -n "$DUMPBIN"; then :
7316 # Let the user override the test.
7317 else
7318 if test -n "$ac_tool_prefix"; then
7319 for ac_prog in dumpbin "link -dump"
7321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_DUMPBIN+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$DUMPBIN"; then
7329 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7342 done
7343 done
7344 IFS=$as_save_IFS
7348 DUMPBIN=$ac_cv_prog_DUMPBIN
7349 if test -n "$DUMPBIN"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7351 $as_echo "$DUMPBIN" >&6; }
7352 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7358 test -n "$DUMPBIN" && break
7359 done
7361 if test -z "$DUMPBIN"; then
7362 ac_ct_DUMPBIN=$DUMPBIN
7363 for ac_prog in dumpbin "link -dump"
7365 # Extract the first word of "$ac_prog", so it can be a program name with args.
7366 set dummy $ac_prog; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 if test -n "$ac_ct_DUMPBIN"; then
7373 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7382 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 break 2
7386 done
7387 done
7388 IFS=$as_save_IFS
7392 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7393 if test -n "$ac_ct_DUMPBIN"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7395 $as_echo "$ac_ct_DUMPBIN" >&6; }
7396 else
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7402 test -n "$ac_ct_DUMPBIN" && break
7403 done
7405 if test "x$ac_ct_DUMPBIN" = x; then
7406 DUMPBIN=":"
7407 else
7408 case $cross_compiling:$ac_tool_warned in
7409 yes:)
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7412 ac_tool_warned=yes ;;
7413 esac
7414 DUMPBIN=$ac_ct_DUMPBIN
7418 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7419 *COFF*)
7420 DUMPBIN="$DUMPBIN -symbols"
7423 DUMPBIN=:
7425 esac
7428 if test "$DUMPBIN" != ":"; then
7429 NM="$DUMPBIN"
7432 test -z "$NM" && NM=nm
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7440 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7441 if ${lt_cv_nm_interface+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 lt_cv_nm_interface="BSD nm"
7445 echo "int some_variable = 0;" > conftest.$ac_ext
7446 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7447 (eval "$ac_compile" 2>conftest.err)
7448 cat conftest.err >&5
7449 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7450 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7451 cat conftest.err >&5
7452 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7453 cat conftest.out >&5
7454 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7455 lt_cv_nm_interface="MS dumpbin"
7457 rm -f conftest*
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7460 $as_echo "$lt_cv_nm_interface" >&6; }
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7463 $as_echo_n "checking whether ln -s works... " >&6; }
7464 LN_S=$as_ln_s
7465 if test "$LN_S" = "ln -s"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7467 $as_echo "yes" >&6; }
7468 else
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7470 $as_echo "no, using $LN_S" >&6; }
7473 # find the maximum length of command line arguments
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7475 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7476 if ${lt_cv_sys_max_cmd_len+:} false; then :
7477 $as_echo_n "(cached) " >&6
7478 else
7480 teststring="ABCD"
7482 case $build_os in
7483 msdosdjgpp*)
7484 # On DJGPP, this test can blow up pretty badly due to problems in libc
7485 # (any single argument exceeding 2000 bytes causes a buffer overrun
7486 # during glob expansion). Even if it were fixed, the result of this
7487 # check would be larger than it should be.
7488 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7491 gnu*)
7492 # Under GNU Hurd, this test is not required because there is
7493 # no limit to the length of command line arguments.
7494 # Libtool will interpret -1 as no limit whatsoever
7495 lt_cv_sys_max_cmd_len=-1;
7498 cygwin* | mingw* | cegcc*)
7499 # On Win9x/ME, this test blows up -- it succeeds, but takes
7500 # about 5 minutes as the teststring grows exponentially.
7501 # Worse, since 9x/ME are not pre-emptively multitasking,
7502 # you end up with a "frozen" computer, even though with patience
7503 # the test eventually succeeds (with a max line length of 256k).
7504 # Instead, let's just punt: use the minimum linelength reported by
7505 # all of the supported platforms: 8192 (on NT/2K/XP).
7506 lt_cv_sys_max_cmd_len=8192;
7509 mint*)
7510 # On MiNT this can take a long time and run out of memory.
7511 lt_cv_sys_max_cmd_len=8192;
7514 amigaos*)
7515 # On AmigaOS with pdksh, this test takes hours, literally.
7516 # So we just punt and use a minimum line length of 8192.
7517 lt_cv_sys_max_cmd_len=8192;
7520 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7521 # This has been around since 386BSD, at least. Likely further.
7522 if test -x /sbin/sysctl; then
7523 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7524 elif test -x /usr/sbin/sysctl; then
7525 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7526 else
7527 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7529 # And add a safety zone
7530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7534 interix*)
7535 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7536 lt_cv_sys_max_cmd_len=196608
7539 os2*)
7540 # The test takes a long time on OS/2.
7541 lt_cv_sys_max_cmd_len=8192
7544 osf*)
7545 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7546 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7547 # nice to cause kernel panics so lets avoid the loop below.
7548 # First set a reasonable default.
7549 lt_cv_sys_max_cmd_len=16384
7551 if test -x /sbin/sysconfig; then
7552 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7553 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7554 esac
7557 sco3.2v5*)
7558 lt_cv_sys_max_cmd_len=102400
7560 sysv5* | sco5v6* | sysv4.2uw2*)
7561 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7562 if test -n "$kargmax"; then
7563 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7564 else
7565 lt_cv_sys_max_cmd_len=32768
7569 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7570 if test -n "$lt_cv_sys_max_cmd_len"; then
7571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7573 else
7574 # Make teststring a little bigger before we do anything with it.
7575 # a 1K string should be a reasonable start.
7576 for i in 1 2 3 4 5 6 7 8 ; do
7577 teststring=$teststring$teststring
7578 done
7579 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7580 # If test is not a shell built-in, we'll probably end up computing a
7581 # maximum length that is only half of the actual maximum length, but
7582 # we can't tell.
7583 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7584 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7585 test $i != 17 # 1/2 MB should be enough
7587 i=`expr $i + 1`
7588 teststring=$teststring$teststring
7589 done
7590 # Only check the string length outside the loop.
7591 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7592 teststring=
7593 # Add a significant safety factor because C++ compilers can tack on
7594 # massive amounts of additional arguments before passing them to the
7595 # linker. It appears as though 1/2 is a usable value.
7596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7599 esac
7603 if test -n $lt_cv_sys_max_cmd_len ; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7605 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7608 $as_echo "none" >&6; }
7610 max_cmd_len=$lt_cv_sys_max_cmd_len
7617 : ${CP="cp -f"}
7618 : ${MV="mv -f"}
7619 : ${RM="rm -f"}
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7622 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7623 # Try some XSI features
7624 xsi_shell=no
7625 ( _lt_dummy="a/b/c"
7626 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7627 = c,a/b,b/c, \
7628 && eval 'test $(( 1 + 1 )) -eq 2 \
7629 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7630 && xsi_shell=yes
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7632 $as_echo "$xsi_shell" >&6; }
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7636 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7637 lt_shell_append=no
7638 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7639 >/dev/null 2>&1 \
7640 && lt_shell_append=yes
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7642 $as_echo "$lt_shell_append" >&6; }
7645 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7646 lt_unset=unset
7647 else
7648 lt_unset=false
7655 # test EBCDIC or ASCII
7656 case `echo X|tr X '\101'` in
7657 A) # ASCII based system
7658 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7659 lt_SP2NL='tr \040 \012'
7660 lt_NL2SP='tr \015\012 \040\040'
7662 *) # EBCDIC based system
7663 lt_SP2NL='tr \100 \n'
7664 lt_NL2SP='tr \r\n \100\100'
7666 esac
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7677 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7678 if ${lt_cv_to_host_file_cmd+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 case $host in
7682 *-*-mingw* )
7683 case $build in
7684 *-*-mingw* ) # actually msys
7685 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7687 *-*-cygwin* )
7688 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7690 * ) # otherwise, assume *nix
7691 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7693 esac
7695 *-*-cygwin* )
7696 case $build in
7697 *-*-mingw* ) # actually msys
7698 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7700 *-*-cygwin* )
7701 lt_cv_to_host_file_cmd=func_convert_file_noop
7703 * ) # otherwise, assume *nix
7704 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7706 esac
7708 * ) # unhandled hosts (and "normal" native builds)
7709 lt_cv_to_host_file_cmd=func_convert_file_noop
7711 esac
7715 to_host_file_cmd=$lt_cv_to_host_file_cmd
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7717 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7724 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7725 if ${lt_cv_to_tool_file_cmd+:} false; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 #assume ordinary cross tools, or native build.
7729 lt_cv_to_tool_file_cmd=func_convert_file_noop
7730 case $host in
7731 *-*-mingw* )
7732 case $build in
7733 *-*-mingw* ) # actually msys
7734 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7736 esac
7738 esac
7742 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7744 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7751 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7752 if ${lt_cv_ld_reload_flag+:} false; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 lt_cv_ld_reload_flag='-r'
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7758 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7759 reload_flag=$lt_cv_ld_reload_flag
7760 case $reload_flag in
7761 "" | " "*) ;;
7762 *) reload_flag=" $reload_flag" ;;
7763 esac
7764 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7765 case $host_os in
7766 cygwin* | mingw* | pw32* | cegcc*)
7767 if test "$GCC" != yes; then
7768 reload_cmds=false
7771 darwin*)
7772 if test "$GCC" = yes; then
7773 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7774 else
7775 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7778 esac
7788 if test -n "$ac_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7790 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_OBJDUMP+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 if test -n "$OBJDUMP"; then
7797 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7810 done
7811 done
7812 IFS=$as_save_IFS
7816 OBJDUMP=$ac_cv_prog_OBJDUMP
7817 if test -n "$OBJDUMP"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7819 $as_echo "$OBJDUMP" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7827 if test -z "$ac_cv_prog_OBJDUMP"; then
7828 ac_ct_OBJDUMP=$OBJDUMP
7829 # Extract the first word of "objdump", so it can be a program name with args.
7830 set dummy objdump; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 if test -n "$ac_ct_OBJDUMP"; then
7837 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7850 done
7851 done
7852 IFS=$as_save_IFS
7856 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7857 if test -n "$ac_ct_OBJDUMP"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7859 $as_echo "$ac_ct_OBJDUMP" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7865 if test "x$ac_ct_OBJDUMP" = x; then
7866 OBJDUMP="false"
7867 else
7868 case $cross_compiling:$ac_tool_warned in
7869 yes:)
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872 ac_tool_warned=yes ;;
7873 esac
7874 OBJDUMP=$ac_ct_OBJDUMP
7876 else
7877 OBJDUMP="$ac_cv_prog_OBJDUMP"
7880 test -z "$OBJDUMP" && OBJDUMP=objdump
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7891 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7892 if ${lt_cv_deplibs_check_method+:} false; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 lt_cv_file_magic_cmd='$MAGIC_CMD'
7896 lt_cv_file_magic_test_file=
7897 lt_cv_deplibs_check_method='unknown'
7898 # Need to set the preceding variable on all platforms that support
7899 # interlibrary dependencies.
7900 # 'none' -- dependencies not supported.
7901 # `unknown' -- same as none, but documents that we really don't know.
7902 # 'pass_all' -- all dependencies passed with no checks.
7903 # 'test_compile' -- check by making test program.
7904 # 'file_magic [[regex]]' -- check by looking for files in library path
7905 # which responds to the $file_magic_cmd with a given extended regex.
7906 # If you have `file' or equivalent on your system and you're not sure
7907 # whether `pass_all' will *always* work, you probably want this one.
7909 case $host_os in
7910 aix[4-9]*)
7911 lt_cv_deplibs_check_method=pass_all
7914 beos*)
7915 lt_cv_deplibs_check_method=pass_all
7918 bsdi[45]*)
7919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7920 lt_cv_file_magic_cmd='/usr/bin/file -L'
7921 lt_cv_file_magic_test_file=/shlib/libc.so
7924 cygwin*)
7925 # func_win32_libid is a shell function defined in ltmain.sh
7926 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7927 lt_cv_file_magic_cmd='func_win32_libid'
7930 mingw* | pw32*)
7931 # Base MSYS/MinGW do not provide the 'file' command needed by
7932 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7933 # unless we find 'file', for example because we are cross-compiling.
7934 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7935 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7936 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7937 lt_cv_file_magic_cmd='func_win32_libid'
7938 else
7939 # Keep this pattern in sync with the one in func_win32_libid.
7940 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7941 lt_cv_file_magic_cmd='$OBJDUMP -f'
7945 cegcc*)
7946 # use the weaker test based on 'objdump'. See mingw*.
7947 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7948 lt_cv_file_magic_cmd='$OBJDUMP -f'
7951 darwin* | rhapsody*)
7952 lt_cv_deplibs_check_method=pass_all
7955 freebsd* | dragonfly*)
7956 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7957 case $host_cpu in
7958 i*86 )
7959 # Not sure whether the presence of OpenBSD here was a mistake.
7960 # Let's accept both of them until this is cleared up.
7961 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7962 lt_cv_file_magic_cmd=/usr/bin/file
7963 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7965 esac
7966 else
7967 lt_cv_deplibs_check_method=pass_all
7971 gnu*)
7972 lt_cv_deplibs_check_method=pass_all
7975 haiku*)
7976 lt_cv_deplibs_check_method=pass_all
7979 hpux10.20* | hpux11*)
7980 lt_cv_file_magic_cmd=/usr/bin/file
7981 case $host_cpu in
7982 ia64*)
7983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7984 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7986 hppa*64*)
7987 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]'
7988 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7992 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7994 esac
7997 interix[3-9]*)
7998 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8002 irix5* | irix6* | nonstopux*)
8003 case $LD in
8004 *-32|*"-32 ") libmagic=32-bit;;
8005 *-n32|*"-n32 ") libmagic=N32;;
8006 *-64|*"-64 ") libmagic=64-bit;;
8007 *) libmagic=never-match;;
8008 esac
8009 lt_cv_deplibs_check_method=pass_all
8012 # This must be glibc/ELF.
8013 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8014 lt_cv_deplibs_check_method=pass_all
8017 netbsd*)
8018 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8020 else
8021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8025 newos6*)
8026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8027 lt_cv_file_magic_cmd=/usr/bin/file
8028 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8031 *nto* | *qnx*)
8032 lt_cv_deplibs_check_method=pass_all
8035 openbsd*)
8036 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8038 else
8039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8043 osf3* | osf4* | osf5*)
8044 lt_cv_deplibs_check_method=pass_all
8047 rdos*)
8048 lt_cv_deplibs_check_method=pass_all
8051 solaris*)
8052 lt_cv_deplibs_check_method=pass_all
8055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8056 lt_cv_deplibs_check_method=pass_all
8059 sysv4 | sysv4.3*)
8060 case $host_vendor in
8061 motorola)
8062 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]'
8063 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8065 ncr)
8066 lt_cv_deplibs_check_method=pass_all
8068 sequent)
8069 lt_cv_file_magic_cmd='/bin/file'
8070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8072 sni)
8073 lt_cv_file_magic_cmd='/bin/file'
8074 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8075 lt_cv_file_magic_test_file=/lib/libc.so
8077 siemens)
8078 lt_cv_deplibs_check_method=pass_all
8081 lt_cv_deplibs_check_method=pass_all
8083 esac
8086 tpf*)
8087 lt_cv_deplibs_check_method=pass_all
8089 esac
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8093 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8095 file_magic_glob=
8096 want_nocaseglob=no
8097 if test "$build" = "$host"; then
8098 case $host_os in
8099 mingw* | pw32*)
8100 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8101 want_nocaseglob=yes
8102 else
8103 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8106 esac
8109 file_magic_cmd=$lt_cv_file_magic_cmd
8110 deplibs_check_method=$lt_cv_deplibs_check_method
8111 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8134 if test -n "$ac_tool_prefix"; then
8135 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8136 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8138 $as_echo_n "checking for $ac_word... " >&6; }
8139 if ${ac_cv_prog_DLLTOOL+:} false; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 if test -n "$DLLTOOL"; then
8143 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8144 else
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8148 IFS=$as_save_IFS
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8152 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 break 2
8156 done
8157 done
8158 IFS=$as_save_IFS
8162 DLLTOOL=$ac_cv_prog_DLLTOOL
8163 if test -n "$DLLTOOL"; then
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8165 $as_echo "$DLLTOOL" >&6; }
8166 else
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 $as_echo "no" >&6; }
8173 if test -z "$ac_cv_prog_DLLTOOL"; then
8174 ac_ct_DLLTOOL=$DLLTOOL
8175 # Extract the first word of "dlltool", so it can be a program name with args.
8176 set dummy dlltool; ac_word=$2
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8178 $as_echo_n "checking for $ac_word... " >&6; }
8179 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 if test -n "$ac_ct_DLLTOOL"; then
8183 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8184 else
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8188 IFS=$as_save_IFS
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8192 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 break 2
8196 done
8197 done
8198 IFS=$as_save_IFS
8202 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8203 if test -n "$ac_ct_DLLTOOL"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8205 $as_echo "$ac_ct_DLLTOOL" >&6; }
8206 else
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8211 if test "x$ac_ct_DLLTOOL" = x; then
8212 DLLTOOL="false"
8213 else
8214 case $cross_compiling:$ac_tool_warned in
8215 yes:)
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8218 ac_tool_warned=yes ;;
8219 esac
8220 DLLTOOL=$ac_ct_DLLTOOL
8222 else
8223 DLLTOOL="$ac_cv_prog_DLLTOOL"
8226 test -z "$DLLTOOL" && DLLTOOL=dlltool
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8238 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8239 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 lt_cv_sharedlib_from_linklib_cmd='unknown'
8244 case $host_os in
8245 cygwin* | mingw* | pw32* | cegcc*)
8246 # two different shell functions defined in ltmain.sh
8247 # decide which to use based on capabilities of $DLLTOOL
8248 case `$DLLTOOL --help 2>&1` in
8249 *--identify-strict*)
8250 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8253 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8255 esac
8258 # fallback: assume linklib IS sharedlib
8259 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8261 esac
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8265 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8266 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8267 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8275 if test -n "$ac_tool_prefix"; then
8276 for ac_prog in ar
8278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8281 $as_echo_n "checking for $ac_word... " >&6; }
8282 if ${ac_cv_prog_AR+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 if test -n "$AR"; then
8286 ac_cv_prog_AR="$AR" # Let the user override the test.
8287 else
8288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 for as_dir in $PATH
8291 IFS=$as_save_IFS
8292 test -z "$as_dir" && as_dir=.
8293 for ac_exec_ext in '' $ac_executable_extensions; do
8294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8295 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 break 2
8299 done
8300 done
8301 IFS=$as_save_IFS
8305 AR=$ac_cv_prog_AR
8306 if test -n "$AR"; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8308 $as_echo "$AR" >&6; }
8309 else
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311 $as_echo "no" >&6; }
8315 test -n "$AR" && break
8316 done
8318 if test -z "$AR"; then
8319 ac_ct_AR=$AR
8320 for ac_prog in ar
8322 # Extract the first word of "$ac_prog", so it can be a program name with args.
8323 set dummy $ac_prog; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 if test -n "$ac_ct_AR"; then
8330 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8335 IFS=$as_save_IFS
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_ac_ct_AR="$ac_prog"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 break 2
8343 done
8344 done
8345 IFS=$as_save_IFS
8349 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8350 if test -n "$ac_ct_AR"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8352 $as_echo "$ac_ct_AR" >&6; }
8353 else
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8359 test -n "$ac_ct_AR" && break
8360 done
8362 if test "x$ac_ct_AR" = x; then
8363 AR="false"
8364 else
8365 case $cross_compiling:$ac_tool_warned in
8366 yes:)
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8369 ac_tool_warned=yes ;;
8370 esac
8371 AR=$ac_ct_AR
8375 : ${AR=ar}
8376 : ${AR_FLAGS=cru}
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8389 $as_echo_n "checking for archiver @FILE support... " >&6; }
8390 if ${lt_cv_ar_at_file+:} false; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 lt_cv_ar_at_file=no
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8398 main ()
8402 return 0;
8404 _ACEOF
8405 if ac_fn_c_try_compile "$LINENO"; then :
8406 echo conftest.$ac_objext > conftest.lst
8407 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8409 (eval $lt_ar_try) 2>&5
8410 ac_status=$?
8411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8412 test $ac_status = 0; }
8413 if test "$ac_status" -eq 0; then
8414 # Ensure the archiver fails upon bogus file names.
8415 rm -f conftest.$ac_objext libconftest.a
8416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8417 (eval $lt_ar_try) 2>&5
8418 ac_status=$?
8419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8420 test $ac_status = 0; }
8421 if test "$ac_status" -ne 0; then
8422 lt_cv_ar_at_file=@
8425 rm -f conftest.* libconftest.a
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8432 $as_echo "$lt_cv_ar_at_file" >&6; }
8434 if test "x$lt_cv_ar_at_file" = xno; then
8435 archiver_list_spec=
8436 else
8437 archiver_list_spec=$lt_cv_ar_at_file
8446 if test -n "$ac_tool_prefix"; then
8447 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8448 set dummy ${ac_tool_prefix}strip; ac_word=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if ${ac_cv_prog_STRIP+:} false; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 if test -n "$STRIP"; then
8455 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8456 else
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8460 IFS=$as_save_IFS
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 break 2
8468 done
8469 done
8470 IFS=$as_save_IFS
8474 STRIP=$ac_cv_prog_STRIP
8475 if test -n "$STRIP"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8477 $as_echo "$STRIP" >&6; }
8478 else
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8485 if test -z "$ac_cv_prog_STRIP"; then
8486 ac_ct_STRIP=$STRIP
8487 # Extract the first word of "strip", so it can be a program name with args.
8488 set dummy strip; ac_word=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 if test -n "$ac_ct_STRIP"; then
8495 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8496 else
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8504 ac_cv_prog_ac_ct_STRIP="strip"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8508 done
8509 done
8510 IFS=$as_save_IFS
8514 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8515 if test -n "$ac_ct_STRIP"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8517 $as_echo "$ac_ct_STRIP" >&6; }
8518 else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8523 if test "x$ac_ct_STRIP" = x; then
8524 STRIP=":"
8525 else
8526 case $cross_compiling:$ac_tool_warned in
8527 yes:)
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8530 ac_tool_warned=yes ;;
8531 esac
8532 STRIP=$ac_ct_STRIP
8534 else
8535 STRIP="$ac_cv_prog_STRIP"
8538 test -z "$STRIP" && STRIP=:
8545 if test -n "$ac_tool_prefix"; then
8546 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8547 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_RANLIB+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 if test -n "$RANLIB"; then
8554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8555 else
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8567 done
8568 done
8569 IFS=$as_save_IFS
8573 RANLIB=$ac_cv_prog_RANLIB
8574 if test -n "$RANLIB"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8576 $as_echo "$RANLIB" >&6; }
8577 else
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8584 if test -z "$ac_cv_prog_RANLIB"; then
8585 ac_ct_RANLIB=$RANLIB
8586 # Extract the first word of "ranlib", so it can be a program name with args.
8587 set dummy ranlib; ac_word=$2
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8589 $as_echo_n "checking for $ac_word... " >&6; }
8590 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8591 $as_echo_n "(cached) " >&6
8592 else
8593 if test -n "$ac_ct_RANLIB"; then
8594 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8595 else
8596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597 for as_dir in $PATH
8599 IFS=$as_save_IFS
8600 test -z "$as_dir" && as_dir=.
8601 for ac_exec_ext in '' $ac_executable_extensions; do
8602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8603 ac_cv_prog_ac_ct_RANLIB="ranlib"
8604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8605 break 2
8607 done
8608 done
8609 IFS=$as_save_IFS
8613 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8614 if test -n "$ac_ct_RANLIB"; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8616 $as_echo "$ac_ct_RANLIB" >&6; }
8617 else
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8622 if test "x$ac_ct_RANLIB" = x; then
8623 RANLIB=":"
8624 else
8625 case $cross_compiling:$ac_tool_warned in
8626 yes:)
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8629 ac_tool_warned=yes ;;
8630 esac
8631 RANLIB=$ac_ct_RANLIB
8633 else
8634 RANLIB="$ac_cv_prog_RANLIB"
8637 test -z "$RANLIB" && RANLIB=:
8644 # Determine commands to create old-style static archives.
8645 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8646 old_postinstall_cmds='chmod 644 $oldlib'
8647 old_postuninstall_cmds=
8649 if test -n "$RANLIB"; then
8650 case $host_os in
8651 openbsd*)
8652 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8657 esac
8658 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8661 case $host_os in
8662 darwin*)
8663 lock_old_archive_extraction=yes ;;
8665 lock_old_archive_extraction=no ;;
8666 esac
8706 # If no C compiler was specified, use CC.
8707 LTCC=${LTCC-"$CC"}
8709 # If no C compiler flags were specified, use CFLAGS.
8710 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8712 # Allow CC to be a program name with arguments.
8713 compiler=$CC
8716 # Check for command to grab the raw symbol name followed by C symbol from nm.
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8718 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8719 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8723 # These are sane defaults that work on at least a few old systems.
8724 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8726 # Character class describing NM global symbol codes.
8727 symcode='[BCDEGRST]'
8729 # Regexp to match symbols that can be accessed directly from C.
8730 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8732 # Define system-specific variables.
8733 case $host_os in
8734 aix*)
8735 symcode='[BCDT]'
8737 cygwin* | mingw* | pw32* | cegcc*)
8738 symcode='[ABCDGISTW]'
8740 hpux*)
8741 if test "$host_cpu" = ia64; then
8742 symcode='[ABCDEGRST]'
8745 irix* | nonstopux*)
8746 symcode='[BCDEGRST]'
8748 osf*)
8749 symcode='[BCDEGQRST]'
8751 solaris*)
8752 symcode='[BDRT]'
8754 sco3.2v5*)
8755 symcode='[DT]'
8757 sysv4.2uw2*)
8758 symcode='[DT]'
8760 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8761 symcode='[ABDT]'
8763 sysv4)
8764 symcode='[DFNSTU]'
8766 esac
8768 # If we're using GNU nm, then use its standard symbol codes.
8769 case `$NM -V 2>&1` in
8770 *GNU* | *'with BFD'*)
8771 symcode='[ABCDGIRSTW]' ;;
8772 esac
8774 # Transform an extracted symbol line into a proper C declaration.
8775 # Some systems (esp. on ia64) link data and code symbols differently,
8776 # so use this general approach.
8777 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8779 # Transform an extracted symbol line into symbol name and symbol address
8780 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8781 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'"
8783 # Handle CRLF in mingw tool chain
8784 opt_cr=
8785 case $build_os in
8786 mingw*)
8787 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8789 esac
8791 # Try without a prefix underscore, then with it.
8792 for ac_symprfx in "" "_"; do
8794 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8795 symxfrm="\\1 $ac_symprfx\\2 \\2"
8797 # Write the raw and C identifiers.
8798 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8799 # Fake it for dumpbin and say T for any non-static function
8800 # and D for any global variable.
8801 # Also find C++ and __fastcall symbols from MSVC++,
8802 # which start with @ or ?.
8803 lt_cv_sys_global_symbol_pipe="$AWK '"\
8804 " {last_section=section; section=\$ 3};"\
8805 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8806 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8807 " \$ 0!~/External *\|/{next};"\
8808 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8809 " {if(hide[section]) next};"\
8810 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8811 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8812 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8813 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8814 " ' prfx=^$ac_symprfx"
8815 else
8816 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8818 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8820 # Check to see that the pipe works correctly.
8821 pipe_works=no
8823 rm -f conftest*
8824 cat > conftest.$ac_ext <<_LT_EOF
8825 #ifdef __cplusplus
8826 extern "C" {
8827 #endif
8828 char nm_test_var;
8829 void nm_test_func(void);
8830 void nm_test_func(void){}
8831 #ifdef __cplusplus
8833 #endif
8834 int main(){nm_test_var='a';nm_test_func();return(0);}
8835 _LT_EOF
8837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8838 (eval $ac_compile) 2>&5
8839 ac_status=$?
8840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8841 test $ac_status = 0; }; then
8842 # Now try to grab the symbols.
8843 nlist=conftest.nm
8844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8845 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8846 ac_status=$?
8847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8848 test $ac_status = 0; } && test -s "$nlist"; then
8849 # Try sorting and uniquifying the output.
8850 if sort "$nlist" | uniq > "$nlist"T; then
8851 mv -f "$nlist"T "$nlist"
8852 else
8853 rm -f "$nlist"T
8856 # Make sure that we snagged all the symbols we need.
8857 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8858 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8859 cat <<_LT_EOF > conftest.$ac_ext
8860 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8861 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8862 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8863 relocations are performed -- see ld's documentation on pseudo-relocs. */
8864 # define LT_DLSYM_CONST
8865 #elif defined(__osf__)
8866 /* This system does not cope well with relocations in const data. */
8867 # define LT_DLSYM_CONST
8868 #else
8869 # define LT_DLSYM_CONST const
8870 #endif
8872 #ifdef __cplusplus
8873 extern "C" {
8874 #endif
8876 _LT_EOF
8877 # Now generate the symbol file.
8878 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8880 cat <<_LT_EOF >> conftest.$ac_ext
8882 /* The mapping between symbol names and symbols. */
8883 LT_DLSYM_CONST struct {
8884 const char *name;
8885 void *address;
8887 lt__PROGRAM__LTX_preloaded_symbols[] =
8889 { "@PROGRAM@", (void *) 0 },
8890 _LT_EOF
8891 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8892 cat <<\_LT_EOF >> conftest.$ac_ext
8893 {0, (void *) 0}
8896 /* This works around a problem in FreeBSD linker */
8897 #ifdef FREEBSD_WORKAROUND
8898 static const void *lt_preloaded_setup() {
8899 return lt__PROGRAM__LTX_preloaded_symbols;
8901 #endif
8903 #ifdef __cplusplus
8905 #endif
8906 _LT_EOF
8907 # Now try linking the two files.
8908 mv conftest.$ac_objext conftstm.$ac_objext
8909 lt_globsym_save_LIBS=$LIBS
8910 lt_globsym_save_CFLAGS=$CFLAGS
8911 LIBS="conftstm.$ac_objext"
8912 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8914 (eval $ac_link) 2>&5
8915 ac_status=$?
8916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8917 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8918 pipe_works=yes
8920 LIBS=$lt_globsym_save_LIBS
8921 CFLAGS=$lt_globsym_save_CFLAGS
8922 else
8923 echo "cannot find nm_test_func in $nlist" >&5
8925 else
8926 echo "cannot find nm_test_var in $nlist" >&5
8928 else
8929 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8931 else
8932 echo "$progname: failed program was:" >&5
8933 cat conftest.$ac_ext >&5
8935 rm -rf conftest* conftst*
8937 # Do not use the global_symbol_pipe unless it works.
8938 if test "$pipe_works" = yes; then
8939 break
8940 else
8941 lt_cv_sys_global_symbol_pipe=
8943 done
8947 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8948 lt_cv_sys_global_symbol_to_cdecl=
8950 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8952 $as_echo "failed" >&6; }
8953 else
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8955 $as_echo "ok" >&6; }
8958 # Response file support.
8959 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8960 nm_file_list_spec='@'
8961 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8962 nm_file_list_spec='@'
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8992 $as_echo_n "checking for sysroot... " >&6; }
8994 # Check whether --with-sysroot was given.
8995 if test "${with_sysroot+set}" = set; then :
8996 withval=$with_sysroot;
8997 else
8998 with_sysroot=no
9002 lt_sysroot=
9003 case ${with_sysroot} in #(
9004 yes)
9005 if test "$GCC" = yes; then
9006 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9008 ;; #(
9010 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9011 ;; #(
9012 no|'')
9013 ;; #(
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9016 $as_echo "${with_sysroot}" >&6; }
9017 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9019 esac
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9022 $as_echo "${lt_sysroot:-no}" >&6; }
9028 # Check whether --enable-libtool-lock was given.
9029 if test "${enable_libtool_lock+set}" = set; then :
9030 enableval=$enable_libtool_lock;
9033 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9035 # Some flags need to be propagated to the compiler or linker for good
9036 # libtool support.
9037 case $host in
9038 ia64-*-hpux*)
9039 # Find out which ABI we are using.
9040 echo 'int i;' > conftest.$ac_ext
9041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9042 (eval $ac_compile) 2>&5
9043 ac_status=$?
9044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9045 test $ac_status = 0; }; then
9046 case `/usr/bin/file conftest.$ac_objext` in
9047 *ELF-32*)
9048 HPUX_IA64_MODE="32"
9050 *ELF-64*)
9051 HPUX_IA64_MODE="64"
9053 esac
9055 rm -rf conftest*
9057 *-*-irix6*)
9058 # Find out which ABI we are using.
9059 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9061 (eval $ac_compile) 2>&5
9062 ac_status=$?
9063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9064 test $ac_status = 0; }; then
9065 if test "$lt_cv_prog_gnu_ld" = yes; then
9066 case `/usr/bin/file conftest.$ac_objext` in
9067 *32-bit*)
9068 LD="${LD-ld} -melf32bsmip"
9070 *N32*)
9071 LD="${LD-ld} -melf32bmipn32"
9073 *64-bit*)
9074 LD="${LD-ld} -melf64bmip"
9076 esac
9077 else
9078 case `/usr/bin/file conftest.$ac_objext` in
9079 *32-bit*)
9080 LD="${LD-ld} -32"
9082 *N32*)
9083 LD="${LD-ld} -n32"
9085 *64-bit*)
9086 LD="${LD-ld} -64"
9088 esac
9091 rm -rf conftest*
9094 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9095 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9096 # Find out which ABI we are using.
9097 echo 'int i;' > conftest.$ac_ext
9098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9099 (eval $ac_compile) 2>&5
9100 ac_status=$?
9101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9102 test $ac_status = 0; }; then
9103 case `/usr/bin/file conftest.o` in
9104 *32-bit*)
9105 case $host in
9106 x86_64-*kfreebsd*-gnu)
9107 LD="${LD-ld} -m elf_i386_fbsd"
9109 x86_64-*linux*)
9110 LD="${LD-ld} -m elf_i386"
9112 ppc64-*linux*|powerpc64-*linux*)
9113 LD="${LD-ld} -m elf32ppclinux"
9115 s390x-*linux*)
9116 LD="${LD-ld} -m elf_s390"
9118 sparc64-*linux*)
9119 LD="${LD-ld} -m elf32_sparc"
9121 esac
9123 *64-bit*)
9124 case $host in
9125 x86_64-*kfreebsd*-gnu)
9126 LD="${LD-ld} -m elf_x86_64_fbsd"
9128 x86_64-*linux*)
9129 LD="${LD-ld} -m elf_x86_64"
9131 ppc*-*linux*|powerpc*-*linux*)
9132 LD="${LD-ld} -m elf64ppc"
9134 s390*-*linux*|s390*-*tpf*)
9135 LD="${LD-ld} -m elf64_s390"
9137 sparc*-*linux*)
9138 LD="${LD-ld} -m elf64_sparc"
9140 esac
9142 esac
9144 rm -rf conftest*
9147 *-*-sco3.2v5*)
9148 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9149 SAVE_CFLAGS="$CFLAGS"
9150 CFLAGS="$CFLAGS -belf"
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9152 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9153 if ${lt_cv_cc_needs_belf+:} false; then :
9154 $as_echo_n "(cached) " >&6
9155 else
9156 ac_ext=c
9157 ac_cpp='$CPP $CPPFLAGS'
9158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9166 main ()
9170 return 0;
9172 _ACEOF
9173 if ac_fn_c_try_link "$LINENO"; then :
9174 lt_cv_cc_needs_belf=yes
9175 else
9176 lt_cv_cc_needs_belf=no
9178 rm -f core conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 ac_ext=c
9181 ac_cpp='$CPP $CPPFLAGS'
9182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9188 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9189 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9190 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9191 CFLAGS="$SAVE_CFLAGS"
9194 *-*solaris*)
9195 # Find out which ABI we are using.
9196 echo 'int i;' > conftest.$ac_ext
9197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9198 (eval $ac_compile) 2>&5
9199 ac_status=$?
9200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9201 test $ac_status = 0; }; then
9202 case `/usr/bin/file conftest.o` in
9203 *64-bit*)
9204 case $lt_cv_prog_gnu_ld in
9205 yes*)
9206 case $host in
9207 i?86-*-solaris*)
9208 LD="${LD-ld} -m elf_x86_64"
9210 sparc*-*-solaris*)
9211 LD="${LD-ld} -m elf64_sparc"
9213 esac
9214 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9215 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9216 LD="${LD-ld}_sol2"
9220 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9221 LD="${LD-ld} -64"
9224 esac
9226 esac
9228 rm -rf conftest*
9230 esac
9232 need_locks="$enable_libtool_lock"
9234 if test -n "$ac_tool_prefix"; then
9235 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9236 set dummy ${ac_tool_prefix}mt; ac_word=$2
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 if test -n "$MANIFEST_TOOL"; then
9243 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9244 else
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246 for as_dir in $PATH
9248 IFS=$as_save_IFS
9249 test -z "$as_dir" && as_dir=.
9250 for ac_exec_ext in '' $ac_executable_extensions; do
9251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9252 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254 break 2
9256 done
9257 done
9258 IFS=$as_save_IFS
9262 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9263 if test -n "$MANIFEST_TOOL"; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9265 $as_echo "$MANIFEST_TOOL" >&6; }
9266 else
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268 $as_echo "no" >&6; }
9273 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9274 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9275 # Extract the first word of "mt", so it can be a program name with args.
9276 set dummy mt; ac_word=$2
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278 $as_echo_n "checking for $ac_word... " >&6; }
9279 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 if test -n "$ac_ct_MANIFEST_TOOL"; then
9283 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9284 else
9285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286 for as_dir in $PATH
9288 IFS=$as_save_IFS
9289 test -z "$as_dir" && as_dir=.
9290 for ac_exec_ext in '' $ac_executable_extensions; do
9291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9292 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9294 break 2
9296 done
9297 done
9298 IFS=$as_save_IFS
9302 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9303 if test -n "$ac_ct_MANIFEST_TOOL"; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9305 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9306 else
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308 $as_echo "no" >&6; }
9311 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9312 MANIFEST_TOOL=":"
9313 else
9314 case $cross_compiling:$ac_tool_warned in
9315 yes:)
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9318 ac_tool_warned=yes ;;
9319 esac
9320 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9322 else
9323 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9326 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9328 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9329 if ${lt_cv_path_mainfest_tool+:} false; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 lt_cv_path_mainfest_tool=no
9333 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9334 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9335 cat conftest.err >&5
9336 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9337 lt_cv_path_mainfest_tool=yes
9339 rm -f conftest*
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9342 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9343 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9344 MANIFEST_TOOL=:
9352 case $host_os in
9353 rhapsody* | darwin*)
9354 if test -n "$ac_tool_prefix"; then
9355 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9356 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9358 $as_echo_n "checking for $ac_word... " >&6; }
9359 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 if test -n "$DSYMUTIL"; then
9363 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9364 else
9365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366 for as_dir in $PATH
9368 IFS=$as_save_IFS
9369 test -z "$as_dir" && as_dir=.
9370 for ac_exec_ext in '' $ac_executable_extensions; do
9371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9372 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 break 2
9376 done
9377 done
9378 IFS=$as_save_IFS
9382 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9383 if test -n "$DSYMUTIL"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9385 $as_echo "$DSYMUTIL" >&6; }
9386 else
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9393 if test -z "$ac_cv_prog_DSYMUTIL"; then
9394 ac_ct_DSYMUTIL=$DSYMUTIL
9395 # Extract the first word of "dsymutil", so it can be a program name with args.
9396 set dummy dsymutil; ac_word=$2
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9398 $as_echo_n "checking for $ac_word... " >&6; }
9399 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9400 $as_echo_n "(cached) " >&6
9401 else
9402 if test -n "$ac_ct_DSYMUTIL"; then
9403 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9404 else
9405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 for as_dir in $PATH
9408 IFS=$as_save_IFS
9409 test -z "$as_dir" && as_dir=.
9410 for ac_exec_ext in '' $ac_executable_extensions; do
9411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9412 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9414 break 2
9416 done
9417 done
9418 IFS=$as_save_IFS
9422 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9423 if test -n "$ac_ct_DSYMUTIL"; then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9425 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9426 else
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 $as_echo "no" >&6; }
9431 if test "x$ac_ct_DSYMUTIL" = x; then
9432 DSYMUTIL=":"
9433 else
9434 case $cross_compiling:$ac_tool_warned in
9435 yes:)
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9438 ac_tool_warned=yes ;;
9439 esac
9440 DSYMUTIL=$ac_ct_DSYMUTIL
9442 else
9443 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9446 if test -n "$ac_tool_prefix"; then
9447 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9448 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9450 $as_echo_n "checking for $ac_word... " >&6; }
9451 if ${ac_cv_prog_NMEDIT+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 if test -n "$NMEDIT"; then
9455 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9456 else
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in $PATH
9460 IFS=$as_save_IFS
9461 test -z "$as_dir" && as_dir=.
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9464 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 break 2
9468 done
9469 done
9470 IFS=$as_save_IFS
9474 NMEDIT=$ac_cv_prog_NMEDIT
9475 if test -n "$NMEDIT"; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9477 $as_echo "$NMEDIT" >&6; }
9478 else
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9480 $as_echo "no" >&6; }
9485 if test -z "$ac_cv_prog_NMEDIT"; then
9486 ac_ct_NMEDIT=$NMEDIT
9487 # Extract the first word of "nmedit", so it can be a program name with args.
9488 set dummy nmedit; ac_word=$2
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490 $as_echo_n "checking for $ac_word... " >&6; }
9491 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 if test -n "$ac_ct_NMEDIT"; then
9495 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9496 else
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 for as_dir in $PATH
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9504 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 break 2
9508 done
9509 done
9510 IFS=$as_save_IFS
9514 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9515 if test -n "$ac_ct_NMEDIT"; then
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9517 $as_echo "$ac_ct_NMEDIT" >&6; }
9518 else
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520 $as_echo "no" >&6; }
9523 if test "x$ac_ct_NMEDIT" = x; then
9524 NMEDIT=":"
9525 else
9526 case $cross_compiling:$ac_tool_warned in
9527 yes:)
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9530 ac_tool_warned=yes ;;
9531 esac
9532 NMEDIT=$ac_ct_NMEDIT
9534 else
9535 NMEDIT="$ac_cv_prog_NMEDIT"
9538 if test -n "$ac_tool_prefix"; then
9539 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9540 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542 $as_echo_n "checking for $ac_word... " >&6; }
9543 if ${ac_cv_prog_LIPO+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 if test -n "$LIPO"; then
9547 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9548 else
9549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550 for as_dir in $PATH
9552 IFS=$as_save_IFS
9553 test -z "$as_dir" && as_dir=.
9554 for ac_exec_ext in '' $ac_executable_extensions; do
9555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9556 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 break 2
9560 done
9561 done
9562 IFS=$as_save_IFS
9566 LIPO=$ac_cv_prog_LIPO
9567 if test -n "$LIPO"; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9569 $as_echo "$LIPO" >&6; }
9570 else
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572 $as_echo "no" >&6; }
9577 if test -z "$ac_cv_prog_LIPO"; then
9578 ac_ct_LIPO=$LIPO
9579 # Extract the first word of "lipo", so it can be a program name with args.
9580 set dummy lipo; ac_word=$2
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582 $as_echo_n "checking for $ac_word... " >&6; }
9583 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 if test -n "$ac_ct_LIPO"; then
9587 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9588 else
9589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9590 for as_dir in $PATH
9592 IFS=$as_save_IFS
9593 test -z "$as_dir" && as_dir=.
9594 for ac_exec_ext in '' $ac_executable_extensions; do
9595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9596 ac_cv_prog_ac_ct_LIPO="lipo"
9597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9598 break 2
9600 done
9601 done
9602 IFS=$as_save_IFS
9606 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9607 if test -n "$ac_ct_LIPO"; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9609 $as_echo "$ac_ct_LIPO" >&6; }
9610 else
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9615 if test "x$ac_ct_LIPO" = x; then
9616 LIPO=":"
9617 else
9618 case $cross_compiling:$ac_tool_warned in
9619 yes:)
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9622 ac_tool_warned=yes ;;
9623 esac
9624 LIPO=$ac_ct_LIPO
9626 else
9627 LIPO="$ac_cv_prog_LIPO"
9630 if test -n "$ac_tool_prefix"; then
9631 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9632 set dummy ${ac_tool_prefix}otool; ac_word=$2
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634 $as_echo_n "checking for $ac_word... " >&6; }
9635 if ${ac_cv_prog_OTOOL+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 if test -n "$OTOOL"; then
9639 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9640 else
9641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642 for as_dir in $PATH
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9648 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 break 2
9652 done
9653 done
9654 IFS=$as_save_IFS
9658 OTOOL=$ac_cv_prog_OTOOL
9659 if test -n "$OTOOL"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9661 $as_echo "$OTOOL" >&6; }
9662 else
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9669 if test -z "$ac_cv_prog_OTOOL"; then
9670 ac_ct_OTOOL=$OTOOL
9671 # Extract the first word of "otool", so it can be a program name with args.
9672 set dummy otool; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 if test -n "$ac_ct_OTOOL"; then
9679 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9680 else
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688 ac_cv_prog_ac_ct_OTOOL="otool"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9692 done
9693 done
9694 IFS=$as_save_IFS
9698 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9699 if test -n "$ac_ct_OTOOL"; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9701 $as_echo "$ac_ct_OTOOL" >&6; }
9702 else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9707 if test "x$ac_ct_OTOOL" = x; then
9708 OTOOL=":"
9709 else
9710 case $cross_compiling:$ac_tool_warned in
9711 yes:)
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9714 ac_tool_warned=yes ;;
9715 esac
9716 OTOOL=$ac_ct_OTOOL
9718 else
9719 OTOOL="$ac_cv_prog_OTOOL"
9722 if test -n "$ac_tool_prefix"; then
9723 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9724 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9726 $as_echo_n "checking for $ac_word... " >&6; }
9727 if ${ac_cv_prog_OTOOL64+:} false; then :
9728 $as_echo_n "(cached) " >&6
9729 else
9730 if test -n "$OTOOL64"; then
9731 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9732 else
9733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734 for as_dir in $PATH
9736 IFS=$as_save_IFS
9737 test -z "$as_dir" && as_dir=.
9738 for ac_exec_ext in '' $ac_executable_extensions; do
9739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9740 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 break 2
9744 done
9745 done
9746 IFS=$as_save_IFS
9750 OTOOL64=$ac_cv_prog_OTOOL64
9751 if test -n "$OTOOL64"; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9753 $as_echo "$OTOOL64" >&6; }
9754 else
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756 $as_echo "no" >&6; }
9761 if test -z "$ac_cv_prog_OTOOL64"; then
9762 ac_ct_OTOOL64=$OTOOL64
9763 # Extract the first word of "otool64", so it can be a program name with args.
9764 set dummy otool64; ac_word=$2
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766 $as_echo_n "checking for $ac_word... " >&6; }
9767 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9768 $as_echo_n "(cached) " >&6
9769 else
9770 if test -n "$ac_ct_OTOOL64"; then
9771 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9772 else
9773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774 for as_dir in $PATH
9776 IFS=$as_save_IFS
9777 test -z "$as_dir" && as_dir=.
9778 for ac_exec_ext in '' $ac_executable_extensions; do
9779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9780 ac_cv_prog_ac_ct_OTOOL64="otool64"
9781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 break 2
9784 done
9785 done
9786 IFS=$as_save_IFS
9790 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9791 if test -n "$ac_ct_OTOOL64"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9793 $as_echo "$ac_ct_OTOOL64" >&6; }
9794 else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; }
9799 if test "x$ac_ct_OTOOL64" = x; then
9800 OTOOL64=":"
9801 else
9802 case $cross_compiling:$ac_tool_warned in
9803 yes:)
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9806 ac_tool_warned=yes ;;
9807 esac
9808 OTOOL64=$ac_ct_OTOOL64
9810 else
9811 OTOOL64="$ac_cv_prog_OTOOL64"
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9841 $as_echo_n "checking for -single_module linker flag... " >&6; }
9842 if ${lt_cv_apple_cc_single_mod+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 lt_cv_apple_cc_single_mod=no
9846 if test -z "${LT_MULTI_MODULE}"; then
9847 # By default we will add the -single_module flag. You can override
9848 # by either setting the environment variable LT_MULTI_MODULE
9849 # non-empty at configure time, or by adding -multi_module to the
9850 # link flags.
9851 rm -rf libconftest.dylib*
9852 echo "int foo(void){return 1;}" > conftest.c
9853 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9854 -dynamiclib -Wl,-single_module conftest.c" >&5
9855 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9856 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9857 _lt_result=$?
9858 # If there is a non-empty error log, and "single_module"
9859 # appears in it, assume the flag caused a linker warning
9860 if test -s conftest.err && $GREP single_module conftest.err; then
9861 cat conftest.err >&5
9862 # Otherwise, if the output was created with a 0 exit code from
9863 # the compiler, it worked.
9864 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9865 lt_cv_apple_cc_single_mod=yes
9866 else
9867 cat conftest.err >&5
9869 rm -rf libconftest.dylib*
9870 rm -f conftest.*
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9874 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9877 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9878 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 lt_cv_ld_exported_symbols_list=no
9882 save_LDFLAGS=$LDFLAGS
9883 echo "_main" > conftest.sym
9884 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9889 main ()
9893 return 0;
9895 _ACEOF
9896 if ac_fn_c_try_link "$LINENO"; then :
9897 lt_cv_ld_exported_symbols_list=yes
9898 else
9899 lt_cv_ld_exported_symbols_list=no
9901 rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9903 LDFLAGS="$save_LDFLAGS"
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9907 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9910 $as_echo_n "checking for -force_load linker flag... " >&6; }
9911 if ${lt_cv_ld_force_load+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 lt_cv_ld_force_load=no
9915 cat > conftest.c << _LT_EOF
9916 int forced_loaded() { return 2;}
9917 _LT_EOF
9918 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9919 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9920 echo "$AR cru libconftest.a conftest.o" >&5
9921 $AR cru libconftest.a conftest.o 2>&5
9922 echo "$RANLIB libconftest.a" >&5
9923 $RANLIB libconftest.a 2>&5
9924 cat > conftest.c << _LT_EOF
9925 int main() { return 0;}
9926 _LT_EOF
9927 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9928 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9929 _lt_result=$?
9930 if test -s conftest.err && $GREP force_load conftest.err; then
9931 cat conftest.err >&5
9932 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9933 lt_cv_ld_force_load=yes
9934 else
9935 cat conftest.err >&5
9937 rm -f conftest.err libconftest.a conftest conftest.c
9938 rm -rf conftest.dSYM
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9942 $as_echo "$lt_cv_ld_force_load" >&6; }
9943 case $host_os in
9944 rhapsody* | darwin1.[012])
9945 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9946 darwin1.*)
9947 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9948 darwin*) # darwin 5.x on
9949 # if running on 10.5 or later, the deployment target defaults
9950 # to the OS version, if on x86, and 10.4, the deployment
9951 # target defaults to 10.4. Don't you love it?
9952 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9953 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9954 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9955 10.[012]*)
9956 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9957 10.*)
9958 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9959 esac
9961 esac
9962 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9963 _lt_dar_single_mod='$single_module'
9965 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9966 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9967 else
9968 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9970 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9971 _lt_dsymutil='~$DSYMUTIL $lib || :'
9972 else
9973 _lt_dsymutil=
9976 esac
9978 for ac_header in dlfcn.h
9979 do :
9980 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9982 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9983 cat >>confdefs.h <<_ACEOF
9984 #define HAVE_DLFCN_H 1
9985 _ACEOF
9989 done
9995 # Set options
9999 enable_dlopen=no
10002 enable_win32_dll=no
10005 # Check whether --enable-shared was given.
10006 if test "${enable_shared+set}" = set; then :
10007 enableval=$enable_shared; p=${PACKAGE-default}
10008 case $enableval in
10009 yes) enable_shared=yes ;;
10010 no) enable_shared=no ;;
10012 enable_shared=no
10013 # Look at the argument we got. We use all the common list separators.
10014 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10015 for pkg in $enableval; do
10016 IFS="$lt_save_ifs"
10017 if test "X$pkg" = "X$p"; then
10018 enable_shared=yes
10020 done
10021 IFS="$lt_save_ifs"
10023 esac
10024 else
10025 enable_shared=yes
10036 # Check whether --enable-static was given.
10037 if test "${enable_static+set}" = set; then :
10038 enableval=$enable_static; p=${PACKAGE-default}
10039 case $enableval in
10040 yes) enable_static=yes ;;
10041 no) enable_static=no ;;
10043 enable_static=no
10044 # Look at the argument we got. We use all the common list separators.
10045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10046 for pkg in $enableval; do
10047 IFS="$lt_save_ifs"
10048 if test "X$pkg" = "X$p"; then
10049 enable_static=yes
10051 done
10052 IFS="$lt_save_ifs"
10054 esac
10055 else
10056 enable_static=yes
10068 # Check whether --with-pic was given.
10069 if test "${with_pic+set}" = set; then :
10070 withval=$with_pic; lt_p=${PACKAGE-default}
10071 case $withval in
10072 yes|no) pic_mode=$withval ;;
10074 pic_mode=default
10075 # Look at the argument we got. We use all the common list separators.
10076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10077 for lt_pkg in $withval; do
10078 IFS="$lt_save_ifs"
10079 if test "X$lt_pkg" = "X$lt_p"; then
10080 pic_mode=yes
10082 done
10083 IFS="$lt_save_ifs"
10085 esac
10086 else
10087 pic_mode=default
10091 test -z "$pic_mode" && pic_mode=default
10099 # Check whether --enable-fast-install was given.
10100 if test "${enable_fast_install+set}" = set; then :
10101 enableval=$enable_fast_install; p=${PACKAGE-default}
10102 case $enableval in
10103 yes) enable_fast_install=yes ;;
10104 no) enable_fast_install=no ;;
10106 enable_fast_install=no
10107 # Look at the argument we got. We use all the common list separators.
10108 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10109 for pkg in $enableval; do
10110 IFS="$lt_save_ifs"
10111 if test "X$pkg" = "X$p"; then
10112 enable_fast_install=yes
10114 done
10115 IFS="$lt_save_ifs"
10117 esac
10118 else
10119 enable_fast_install=yes
10132 # This can be used to rebuild libtool when needed
10133 LIBTOOL_DEPS="$ltmain"
10135 # Always use our own libtool.
10136 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10167 test -z "$LN_S" && LN_S="ln -s"
10182 if test -n "${ZSH_VERSION+set}" ; then
10183 setopt NO_GLOB_SUBST
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10187 $as_echo_n "checking for objdir... " >&6; }
10188 if ${lt_cv_objdir+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 rm -f .libs 2>/dev/null
10192 mkdir .libs 2>/dev/null
10193 if test -d .libs; then
10194 lt_cv_objdir=.libs
10195 else
10196 # MS-DOS does not allow filenames that begin with a dot.
10197 lt_cv_objdir=_libs
10199 rmdir .libs 2>/dev/null
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10202 $as_echo "$lt_cv_objdir" >&6; }
10203 objdir=$lt_cv_objdir
10209 cat >>confdefs.h <<_ACEOF
10210 #define LT_OBJDIR "$lt_cv_objdir/"
10211 _ACEOF
10216 case $host_os in
10217 aix3*)
10218 # AIX sometimes has problems with the GCC collect2 program. For some
10219 # reason, if we set the COLLECT_NAMES environment variable, the problems
10220 # vanish in a puff of smoke.
10221 if test "X${COLLECT_NAMES+set}" != Xset; then
10222 COLLECT_NAMES=
10223 export COLLECT_NAMES
10226 esac
10228 # Global variables:
10229 ofile=libtool
10230 can_build_shared=yes
10232 # All known linkers require a `.a' archive for static linking (except MSVC,
10233 # which needs '.lib').
10234 libext=a
10236 with_gnu_ld="$lt_cv_prog_gnu_ld"
10238 old_CC="$CC"
10239 old_CFLAGS="$CFLAGS"
10241 # Set sane defaults for various variables
10242 test -z "$CC" && CC=cc
10243 test -z "$LTCC" && LTCC=$CC
10244 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10245 test -z "$LD" && LD=ld
10246 test -z "$ac_objext" && ac_objext=o
10248 for cc_temp in $compiler""; do
10249 case $cc_temp in
10250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10252 \-*) ;;
10253 *) break;;
10254 esac
10255 done
10256 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10259 # Only perform the check for file, if the check method requires it
10260 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10261 case $deplibs_check_method in
10262 file_magic*)
10263 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10265 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10266 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10267 $as_echo_n "(cached) " >&6
10268 else
10269 case $MAGIC_CMD in
10270 [\\/*] | ?:[\\/]*)
10271 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10274 lt_save_MAGIC_CMD="$MAGIC_CMD"
10275 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10276 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10277 for ac_dir in $ac_dummy; do
10278 IFS="$lt_save_ifs"
10279 test -z "$ac_dir" && ac_dir=.
10280 if test -f $ac_dir/${ac_tool_prefix}file; then
10281 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10282 if test -n "$file_magic_test_file"; then
10283 case $deplibs_check_method in
10284 "file_magic "*)
10285 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10287 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10288 $EGREP "$file_magic_regex" > /dev/null; then
10290 else
10291 cat <<_LT_EOF 1>&2
10293 *** Warning: the command libtool uses to detect shared libraries,
10294 *** $file_magic_cmd, produces output that libtool cannot recognize.
10295 *** The result is that libtool may fail to recognize shared libraries
10296 *** as such. This will affect the creation of libtool libraries that
10297 *** depend on shared libraries, but programs linked with such libtool
10298 *** libraries will work regardless of this problem. Nevertheless, you
10299 *** may want to report the problem to your system manager and/or to
10300 *** bug-libtool@gnu.org
10302 _LT_EOF
10303 fi ;;
10304 esac
10306 break
10308 done
10309 IFS="$lt_save_ifs"
10310 MAGIC_CMD="$lt_save_MAGIC_CMD"
10312 esac
10315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10316 if test -n "$MAGIC_CMD"; then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10318 $as_echo "$MAGIC_CMD" >&6; }
10319 else
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10328 if test -z "$lt_cv_path_MAGIC_CMD"; then
10329 if test -n "$ac_tool_prefix"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10331 $as_echo_n "checking for file... " >&6; }
10332 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 case $MAGIC_CMD in
10336 [\\/*] | ?:[\\/]*)
10337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10340 lt_save_MAGIC_CMD="$MAGIC_CMD"
10341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10342 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10343 for ac_dir in $ac_dummy; do
10344 IFS="$lt_save_ifs"
10345 test -z "$ac_dir" && ac_dir=.
10346 if test -f $ac_dir/file; then
10347 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10348 if test -n "$file_magic_test_file"; then
10349 case $deplibs_check_method in
10350 "file_magic "*)
10351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10354 $EGREP "$file_magic_regex" > /dev/null; then
10356 else
10357 cat <<_LT_EOF 1>&2
10359 *** Warning: the command libtool uses to detect shared libraries,
10360 *** $file_magic_cmd, produces output that libtool cannot recognize.
10361 *** The result is that libtool may fail to recognize shared libraries
10362 *** as such. This will affect the creation of libtool libraries that
10363 *** depend on shared libraries, but programs linked with such libtool
10364 *** libraries will work regardless of this problem. Nevertheless, you
10365 *** may want to report the problem to your system manager and/or to
10366 *** bug-libtool@gnu.org
10368 _LT_EOF
10369 fi ;;
10370 esac
10372 break
10374 done
10375 IFS="$lt_save_ifs"
10376 MAGIC_CMD="$lt_save_MAGIC_CMD"
10378 esac
10381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10382 if test -n "$MAGIC_CMD"; then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10384 $as_echo "$MAGIC_CMD" >&6; }
10385 else
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10391 else
10392 MAGIC_CMD=:
10398 esac
10400 # Use C for the default configuration in the libtool script
10402 lt_save_CC="$CC"
10403 ac_ext=c
10404 ac_cpp='$CPP $CPPFLAGS'
10405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10410 # Source file extension for C test sources.
10411 ac_ext=c
10413 # Object file extension for compiled C test sources.
10414 objext=o
10415 objext=$objext
10417 # Code to be used in simple compile tests
10418 lt_simple_compile_test_code="int some_variable = 0;"
10420 # Code to be used in simple link tests
10421 lt_simple_link_test_code='int main(){return(0);}'
10429 # If no C compiler was specified, use CC.
10430 LTCC=${LTCC-"$CC"}
10432 # If no C compiler flags were specified, use CFLAGS.
10433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10435 # Allow CC to be a program name with arguments.
10436 compiler=$CC
10438 # Save the default compiler, since it gets overwritten when the other
10439 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10440 compiler_DEFAULT=$CC
10442 # save warnings/boilerplate of simple test code
10443 ac_outfile=conftest.$ac_objext
10444 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10445 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10446 _lt_compiler_boilerplate=`cat conftest.err`
10447 $RM conftest*
10449 ac_outfile=conftest.$ac_objext
10450 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10451 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10452 _lt_linker_boilerplate=`cat conftest.err`
10453 $RM -r conftest*
10456 ## CAVEAT EMPTOR:
10457 ## There is no encapsulation within the following macros, do not change
10458 ## the running order or otherwise move them around unless you know exactly
10459 ## what you are doing...
10460 if test -n "$compiler"; then
10462 lt_prog_compiler_no_builtin_flag=
10464 if test "$GCC" = yes; then
10465 case $cc_basename in
10466 nvcc*)
10467 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10469 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10470 esac
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10473 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10474 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10475 $as_echo_n "(cached) " >&6
10476 else
10477 lt_cv_prog_compiler_rtti_exceptions=no
10478 ac_outfile=conftest.$ac_objext
10479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10480 lt_compiler_flag="-fno-rtti -fno-exceptions"
10481 # Insert the option either (1) after the last *FLAGS variable, or
10482 # (2) before a word containing "conftest.", or (3) at the end.
10483 # Note that $ac_compile itself does not contain backslashes and begins
10484 # with a dollar sign (not a hyphen), so the echo should work correctly.
10485 # The option is referenced via a variable to avoid confusing sed.
10486 lt_compile=`echo "$ac_compile" | $SED \
10487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10489 -e 's:$: $lt_compiler_flag:'`
10490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10491 (eval "$lt_compile" 2>conftest.err)
10492 ac_status=$?
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 if (exit $ac_status) && test -s "$ac_outfile"; then
10496 # The compiler can only warn and ignore the option if not recognized
10497 # So say no if there are warnings other than the usual output.
10498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10501 lt_cv_prog_compiler_rtti_exceptions=yes
10504 $RM conftest*
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10508 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10510 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10511 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10512 else
10523 lt_prog_compiler_wl=
10524 lt_prog_compiler_pic=
10525 lt_prog_compiler_static=
10528 if test "$GCC" = yes; then
10529 lt_prog_compiler_wl='-Wl,'
10530 lt_prog_compiler_static='-static'
10532 case $host_os in
10533 aix*)
10534 # All AIX code is PIC.
10535 if test "$host_cpu" = ia64; then
10536 # AIX 5 now supports IA64 processor
10537 lt_prog_compiler_static='-Bstatic'
10541 amigaos*)
10542 case $host_cpu in
10543 powerpc)
10544 # see comment about AmigaOS4 .so support
10545 lt_prog_compiler_pic='-fPIC'
10547 m68k)
10548 # FIXME: we need at least 68020 code to build shared libraries, but
10549 # adding the `-m68020' flag to GCC prevents building anything better,
10550 # like `-m68040'.
10551 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10553 esac
10556 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10557 # PIC is the default for these OSes.
10560 mingw* | cygwin* | pw32* | os2* | cegcc*)
10561 # This hack is so that the source file can tell whether it is being
10562 # built for inclusion in a dll (and should export symbols for example).
10563 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10564 # (--disable-auto-import) libraries
10565 lt_prog_compiler_pic='-DDLL_EXPORT'
10568 darwin* | rhapsody*)
10569 # PIC is the default on this platform
10570 # Common symbols not allowed in MH_DYLIB files
10571 lt_prog_compiler_pic='-fno-common'
10574 haiku*)
10575 # PIC is the default for Haiku.
10576 # The "-static" flag exists, but is broken.
10577 lt_prog_compiler_static=
10580 hpux*)
10581 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10582 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10583 # sets the default TLS model and affects inlining.
10584 case $host_cpu in
10585 hppa*64*)
10586 # +Z the default
10589 lt_prog_compiler_pic='-fPIC'
10591 esac
10594 interix[3-9]*)
10595 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10596 # Instead, we relocate shared libraries at runtime.
10599 msdosdjgpp*)
10600 # Just because we use GCC doesn't mean we suddenly get shared libraries
10601 # on systems that don't support them.
10602 lt_prog_compiler_can_build_shared=no
10603 enable_shared=no
10606 *nto* | *qnx*)
10607 # QNX uses GNU C++, but need to define -shared option too, otherwise
10608 # it will coredump.
10609 lt_prog_compiler_pic='-fPIC -shared'
10612 sysv4*MP*)
10613 if test -d /usr/nec; then
10614 lt_prog_compiler_pic=-Kconform_pic
10619 lt_prog_compiler_pic='-fPIC'
10621 esac
10623 case $cc_basename in
10624 nvcc*) # Cuda Compiler Driver 2.2
10625 lt_prog_compiler_wl='-Xlinker '
10626 if test -n "$lt_prog_compiler_pic"; then
10627 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10630 esac
10631 else
10632 # PORTME Check for flag to pass linker flags through the system compiler.
10633 case $host_os in
10634 aix*)
10635 lt_prog_compiler_wl='-Wl,'
10636 if test "$host_cpu" = ia64; then
10637 # AIX 5 now supports IA64 processor
10638 lt_prog_compiler_static='-Bstatic'
10639 else
10640 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10644 mingw* | cygwin* | pw32* | os2* | cegcc*)
10645 # This hack is so that the source file can tell whether it is being
10646 # built for inclusion in a dll (and should export symbols for example).
10647 lt_prog_compiler_pic='-DDLL_EXPORT'
10650 hpux9* | hpux10* | hpux11*)
10651 lt_prog_compiler_wl='-Wl,'
10652 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10653 # not for PA HP-UX.
10654 case $host_cpu in
10655 hppa*64*|ia64*)
10656 # +Z the default
10659 lt_prog_compiler_pic='+Z'
10661 esac
10662 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10663 lt_prog_compiler_static='${wl}-a ${wl}archive'
10666 irix5* | irix6* | nonstopux*)
10667 lt_prog_compiler_wl='-Wl,'
10668 # PIC (with -KPIC) is the default.
10669 lt_prog_compiler_static='-non_shared'
10672 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10673 case $cc_basename in
10674 # old Intel for x86_64 which still supported -KPIC.
10675 ecc*)
10676 lt_prog_compiler_wl='-Wl,'
10677 lt_prog_compiler_pic='-KPIC'
10678 lt_prog_compiler_static='-static'
10680 # icc used to be incompatible with GCC.
10681 # ICC 10 doesn't accept -KPIC any more.
10682 icc* | ifort*)
10683 lt_prog_compiler_wl='-Wl,'
10684 lt_prog_compiler_pic='-fPIC'
10685 lt_prog_compiler_static='-static'
10687 # Lahey Fortran 8.1.
10688 lf95*)
10689 lt_prog_compiler_wl='-Wl,'
10690 lt_prog_compiler_pic='--shared'
10691 lt_prog_compiler_static='--static'
10693 nagfor*)
10694 # NAG Fortran compiler
10695 lt_prog_compiler_wl='-Wl,-Wl,,'
10696 lt_prog_compiler_pic='-PIC'
10697 lt_prog_compiler_static='-Bstatic'
10699 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10700 # Portland Group compilers (*not* the Pentium gcc compiler,
10701 # which looks to be a dead project)
10702 lt_prog_compiler_wl='-Wl,'
10703 lt_prog_compiler_pic='-fpic'
10704 lt_prog_compiler_static='-Bstatic'
10706 ccc*)
10707 lt_prog_compiler_wl='-Wl,'
10708 # All Alpha code is PIC.
10709 lt_prog_compiler_static='-non_shared'
10711 xl* | bgxl* | bgf* | mpixl*)
10712 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10713 lt_prog_compiler_wl='-Wl,'
10714 lt_prog_compiler_pic='-qpic'
10715 lt_prog_compiler_static='-qstaticlink'
10718 case `$CC -V 2>&1 | sed 5q` in
10719 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10720 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10721 lt_prog_compiler_pic='-KPIC'
10722 lt_prog_compiler_static='-Bstatic'
10723 lt_prog_compiler_wl=''
10725 *Sun\ F* | *Sun*Fortran*)
10726 lt_prog_compiler_pic='-KPIC'
10727 lt_prog_compiler_static='-Bstatic'
10728 lt_prog_compiler_wl='-Qoption ld '
10730 *Sun\ C*)
10731 # Sun C 5.9
10732 lt_prog_compiler_pic='-KPIC'
10733 lt_prog_compiler_static='-Bstatic'
10734 lt_prog_compiler_wl='-Wl,'
10736 *Intel*\ [CF]*Compiler*)
10737 lt_prog_compiler_wl='-Wl,'
10738 lt_prog_compiler_pic='-fPIC'
10739 lt_prog_compiler_static='-static'
10741 *Portland\ Group*)
10742 lt_prog_compiler_wl='-Wl,'
10743 lt_prog_compiler_pic='-fpic'
10744 lt_prog_compiler_static='-Bstatic'
10746 esac
10748 esac
10751 newsos6)
10752 lt_prog_compiler_pic='-KPIC'
10753 lt_prog_compiler_static='-Bstatic'
10756 *nto* | *qnx*)
10757 # QNX uses GNU C++, but need to define -shared option too, otherwise
10758 # it will coredump.
10759 lt_prog_compiler_pic='-fPIC -shared'
10762 osf3* | osf4* | osf5*)
10763 lt_prog_compiler_wl='-Wl,'
10764 # All OSF/1 code is PIC.
10765 lt_prog_compiler_static='-non_shared'
10768 rdos*)
10769 lt_prog_compiler_static='-non_shared'
10772 solaris*)
10773 lt_prog_compiler_pic='-KPIC'
10774 lt_prog_compiler_static='-Bstatic'
10775 case $cc_basename in
10776 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10777 lt_prog_compiler_wl='-Qoption ld ';;
10779 lt_prog_compiler_wl='-Wl,';;
10780 esac
10783 sunos4*)
10784 lt_prog_compiler_wl='-Qoption ld '
10785 lt_prog_compiler_pic='-PIC'
10786 lt_prog_compiler_static='-Bstatic'
10789 sysv4 | sysv4.2uw2* | sysv4.3*)
10790 lt_prog_compiler_wl='-Wl,'
10791 lt_prog_compiler_pic='-KPIC'
10792 lt_prog_compiler_static='-Bstatic'
10795 sysv4*MP*)
10796 if test -d /usr/nec ;then
10797 lt_prog_compiler_pic='-Kconform_pic'
10798 lt_prog_compiler_static='-Bstatic'
10802 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10803 lt_prog_compiler_wl='-Wl,'
10804 lt_prog_compiler_pic='-KPIC'
10805 lt_prog_compiler_static='-Bstatic'
10808 unicos*)
10809 lt_prog_compiler_wl='-Wl,'
10810 lt_prog_compiler_can_build_shared=no
10813 uts4*)
10814 lt_prog_compiler_pic='-pic'
10815 lt_prog_compiler_static='-Bstatic'
10819 lt_prog_compiler_can_build_shared=no
10821 esac
10824 case $host_os in
10825 # For platforms which do not support PIC, -DPIC is meaningless:
10826 *djgpp*)
10827 lt_prog_compiler_pic=
10830 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10832 esac
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10835 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10836 if ${lt_cv_prog_compiler_pic+:} false; then :
10837 $as_echo_n "(cached) " >&6
10838 else
10839 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10842 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10843 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10846 # Check to make sure the PIC flag actually works.
10848 if test -n "$lt_prog_compiler_pic"; then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10850 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10851 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 lt_cv_prog_compiler_pic_works=no
10855 ac_outfile=conftest.$ac_objext
10856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10857 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10858 # Insert the option either (1) after the last *FLAGS variable, or
10859 # (2) before a word containing "conftest.", or (3) at the end.
10860 # Note that $ac_compile itself does not contain backslashes and begins
10861 # with a dollar sign (not a hyphen), so the echo should work correctly.
10862 # The option is referenced via a variable to avoid confusing sed.
10863 lt_compile=`echo "$ac_compile" | $SED \
10864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10866 -e 's:$: $lt_compiler_flag:'`
10867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10868 (eval "$lt_compile" 2>conftest.err)
10869 ac_status=$?
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 if (exit $ac_status) && test -s "$ac_outfile"; then
10873 # The compiler can only warn and ignore the option if not recognized
10874 # So say no if there are warnings other than the usual output.
10875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10877 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10878 lt_cv_prog_compiler_pic_works=yes
10881 $RM conftest*
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10885 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10887 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10888 case $lt_prog_compiler_pic in
10889 "" | " "*) ;;
10890 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10891 esac
10892 else
10893 lt_prog_compiler_pic=
10894 lt_prog_compiler_can_build_shared=no
10910 # Check to make sure the static flag actually works.
10912 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10914 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10915 if ${lt_cv_prog_compiler_static_works+:} false; then :
10916 $as_echo_n "(cached) " >&6
10917 else
10918 lt_cv_prog_compiler_static_works=no
10919 save_LDFLAGS="$LDFLAGS"
10920 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10921 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10922 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10923 # The linker can only warn and ignore the option if not recognized
10924 # So say no if there are warnings
10925 if test -s conftest.err; then
10926 # Append any errors to the config.log.
10927 cat conftest.err 1>&5
10928 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10930 if diff conftest.exp conftest.er2 >/dev/null; then
10931 lt_cv_prog_compiler_static_works=yes
10933 else
10934 lt_cv_prog_compiler_static_works=yes
10937 $RM -r conftest*
10938 LDFLAGS="$save_LDFLAGS"
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10942 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10944 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10946 else
10947 lt_prog_compiler_static=
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10957 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10958 if ${lt_cv_prog_compiler_c_o+:} false; then :
10959 $as_echo_n "(cached) " >&6
10960 else
10961 lt_cv_prog_compiler_c_o=no
10962 $RM -r conftest 2>/dev/null
10963 mkdir conftest
10964 cd conftest
10965 mkdir out
10966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10968 lt_compiler_flag="-o out/conftest2.$ac_objext"
10969 # Insert the option either (1) after the last *FLAGS variable, or
10970 # (2) before a word containing "conftest.", or (3) at the end.
10971 # Note that $ac_compile itself does not contain backslashes and begins
10972 # with a dollar sign (not a hyphen), so the echo should work correctly.
10973 lt_compile=`echo "$ac_compile" | $SED \
10974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10976 -e 's:$: $lt_compiler_flag:'`
10977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10978 (eval "$lt_compile" 2>out/conftest.err)
10979 ac_status=$?
10980 cat out/conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10983 then
10984 # The compiler can only warn and ignore the option if not recognized
10985 # So say no if there are warnings
10986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10989 lt_cv_prog_compiler_c_o=yes
10992 chmod u+w . 2>&5
10993 $RM conftest*
10994 # SGI C++ compiler will create directory out/ii_files/ for
10995 # template instantiation
10996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10997 $RM out/* && rmdir out
10998 cd ..
10999 $RM -r conftest
11000 $RM conftest*
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11004 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11012 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11013 if ${lt_cv_prog_compiler_c_o+:} false; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016 lt_cv_prog_compiler_c_o=no
11017 $RM -r conftest 2>/dev/null
11018 mkdir conftest
11019 cd conftest
11020 mkdir out
11021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11023 lt_compiler_flag="-o out/conftest2.$ac_objext"
11024 # Insert the option either (1) after the last *FLAGS variable, or
11025 # (2) before a word containing "conftest.", or (3) at the end.
11026 # Note that $ac_compile itself does not contain backslashes and begins
11027 # with a dollar sign (not a hyphen), so the echo should work correctly.
11028 lt_compile=`echo "$ac_compile" | $SED \
11029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11031 -e 's:$: $lt_compiler_flag:'`
11032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11033 (eval "$lt_compile" 2>out/conftest.err)
11034 ac_status=$?
11035 cat out/conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11038 then
11039 # The compiler can only warn and ignore the option if not recognized
11040 # So say no if there are warnings
11041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11042 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11043 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11044 lt_cv_prog_compiler_c_o=yes
11047 chmod u+w . 2>&5
11048 $RM conftest*
11049 # SGI C++ compiler will create directory out/ii_files/ for
11050 # template instantiation
11051 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11052 $RM out/* && rmdir out
11053 cd ..
11054 $RM -r conftest
11055 $RM conftest*
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11059 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11064 hard_links="nottested"
11065 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11066 # do not overwrite the value of need_locks provided by the user
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11068 $as_echo_n "checking if we can lock with hard links... " >&6; }
11069 hard_links=yes
11070 $RM conftest*
11071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11072 touch conftest.a
11073 ln conftest.a conftest.b 2>&5 || hard_links=no
11074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11076 $as_echo "$hard_links" >&6; }
11077 if test "$hard_links" = no; then
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11079 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11080 need_locks=warn
11082 else
11083 need_locks=no
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11092 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11094 runpath_var=
11095 allow_undefined_flag=
11096 always_export_symbols=no
11097 archive_cmds=
11098 archive_expsym_cmds=
11099 compiler_needs_object=no
11100 enable_shared_with_static_runtimes=no
11101 export_dynamic_flag_spec=
11102 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11103 hardcode_automatic=no
11104 hardcode_direct=no
11105 hardcode_direct_absolute=no
11106 hardcode_libdir_flag_spec=
11107 hardcode_libdir_separator=
11108 hardcode_minus_L=no
11109 hardcode_shlibpath_var=unsupported
11110 inherit_rpath=no
11111 link_all_deplibs=unknown
11112 module_cmds=
11113 module_expsym_cmds=
11114 old_archive_from_new_cmds=
11115 old_archive_from_expsyms_cmds=
11116 thread_safe_flag_spec=
11117 whole_archive_flag_spec=
11118 # include_expsyms should be a list of space-separated symbols to be *always*
11119 # included in the symbol list
11120 include_expsyms=
11121 # exclude_expsyms can be an extended regexp of symbols to exclude
11122 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11123 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11124 # as well as any symbol that contains `d'.
11125 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11126 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11127 # platforms (ab)use it in PIC code, but their linkers get confused if
11128 # the symbol is explicitly referenced. Since portable code cannot
11129 # rely on this symbol name, it's probably fine to never include it in
11130 # preloaded symbol tables.
11131 # Exclude shared library initialization/finalization symbols.
11132 extract_expsyms_cmds=
11134 case $host_os in
11135 cygwin* | mingw* | pw32* | cegcc*)
11136 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11137 # When not using gcc, we currently assume that we are using
11138 # Microsoft Visual C++.
11139 if test "$GCC" != yes; then
11140 with_gnu_ld=no
11143 interix*)
11144 # we just hope/assume this is gcc and not c89 (= MSVC++)
11145 with_gnu_ld=yes
11147 openbsd*)
11148 with_gnu_ld=no
11150 esac
11152 ld_shlibs=yes
11154 # On some targets, GNU ld is compatible enough with the native linker
11155 # that we're better off using the native interface for both.
11156 lt_use_gnu_ld_interface=no
11157 if test "$with_gnu_ld" = yes; then
11158 case $host_os in
11159 aix*)
11160 # The AIX port of GNU ld has always aspired to compatibility
11161 # with the native linker. However, as the warning in the GNU ld
11162 # block says, versions before 2.19.5* couldn't really create working
11163 # shared libraries, regardless of the interface used.
11164 case `$LD -v 2>&1` in
11165 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11166 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11167 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11169 lt_use_gnu_ld_interface=yes
11171 esac
11174 lt_use_gnu_ld_interface=yes
11176 esac
11179 if test "$lt_use_gnu_ld_interface" = yes; then
11180 # If archive_cmds runs LD, not CC, wlarc should be empty
11181 wlarc='${wl}'
11183 # Set some defaults for GNU ld with shared library support. These
11184 # are reset later if shared libraries are not supported. Putting them
11185 # here allows them to be overridden if necessary.
11186 runpath_var=LD_RUN_PATH
11187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11188 export_dynamic_flag_spec='${wl}--export-dynamic'
11189 # ancient GNU ld didn't support --whole-archive et. al.
11190 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11191 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11192 else
11193 whole_archive_flag_spec=
11195 supports_anon_versioning=no
11196 case `$LD -v 2>&1` in
11197 *GNU\ gold*) supports_anon_versioning=yes ;;
11198 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11199 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11200 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11201 *\ 2.11.*) ;; # other 2.11 versions
11202 *) supports_anon_versioning=yes ;;
11203 esac
11205 # See if GNU ld supports shared libraries.
11206 case $host_os in
11207 aix[3-9]*)
11208 # On AIX/PPC, the GNU linker is very broken
11209 if test "$host_cpu" != ia64; then
11210 ld_shlibs=no
11211 cat <<_LT_EOF 1>&2
11213 *** Warning: the GNU linker, at least up to release 2.19, is reported
11214 *** to be unable to reliably create shared libraries on AIX.
11215 *** Therefore, libtool is disabling shared libraries support. If you
11216 *** really care for shared libraries, you may want to install binutils
11217 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11218 *** You will then need to restart the configuration process.
11220 _LT_EOF
11224 amigaos*)
11225 case $host_cpu in
11226 powerpc)
11227 # see comment about AmigaOS4 .so support
11228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11229 archive_expsym_cmds=''
11231 m68k)
11232 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)'
11233 hardcode_libdir_flag_spec='-L$libdir'
11234 hardcode_minus_L=yes
11236 esac
11239 beos*)
11240 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11241 allow_undefined_flag=unsupported
11242 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11243 # support --undefined. This deserves some investigation. FIXME
11244 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11245 else
11246 ld_shlibs=no
11250 cygwin* | mingw* | pw32* | cegcc*)
11251 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11252 # as there is no search path for DLLs.
11253 hardcode_libdir_flag_spec='-L$libdir'
11254 export_dynamic_flag_spec='${wl}--export-all-symbols'
11255 allow_undefined_flag=unsupported
11256 always_export_symbols=no
11257 enable_shared_with_static_runtimes=yes
11258 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'
11259 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11261 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11263 # If the export-symbols file already is a .def file (1st line
11264 # is EXPORTS), use it as is; otherwise, prepend...
11265 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11266 cp $export_symbols $output_objdir/$soname.def;
11267 else
11268 echo EXPORTS > $output_objdir/$soname.def;
11269 cat $export_symbols >> $output_objdir/$soname.def;
11271 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11272 else
11273 ld_shlibs=no
11277 haiku*)
11278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11279 link_all_deplibs=yes
11282 interix[3-9]*)
11283 hardcode_direct=no
11284 hardcode_shlibpath_var=no
11285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11286 export_dynamic_flag_spec='${wl}-E'
11287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11288 # Instead, shared libraries are loaded at an image base (0x10000000 by
11289 # default) and relocated if they conflict, which is a slow very memory
11290 # consuming and fragmenting process. To avoid this, we pick a random,
11291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11294 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'
11297 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11298 tmp_diet=no
11299 if test "$host_os" = linux-dietlibc; then
11300 case $cc_basename in
11301 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11302 esac
11304 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11305 && test "$tmp_diet" = no
11306 then
11307 tmp_addflag=' $pic_flag'
11308 tmp_sharedflag='-shared'
11309 case $cc_basename,$host_cpu in
11310 pgcc*) # Portland Group C compiler
11311 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'
11312 tmp_addflag=' $pic_flag'
11314 pgf77* | pgf90* | pgf95* | pgfortran*)
11315 # Portland Group f77 and f90 compilers
11316 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'
11317 tmp_addflag=' $pic_flag -Mnomain' ;;
11318 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11319 tmp_addflag=' -i_dynamic' ;;
11320 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11321 tmp_addflag=' -i_dynamic -nofor_main' ;;
11322 ifc* | ifort*) # Intel Fortran compiler
11323 tmp_addflag=' -nofor_main' ;;
11324 lf95*) # Lahey Fortran 8.1
11325 whole_archive_flag_spec=
11326 tmp_sharedflag='--shared' ;;
11327 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11328 tmp_sharedflag='-qmkshrobj'
11329 tmp_addflag= ;;
11330 nvcc*) # Cuda Compiler Driver 2.2
11331 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'
11332 compiler_needs_object=yes
11334 esac
11335 case `$CC -V 2>&1 | sed 5q` in
11336 *Sun\ C*) # Sun C 5.9
11337 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'
11338 compiler_needs_object=yes
11339 tmp_sharedflag='-G' ;;
11340 *Sun\ F*) # Sun Fortran 8.3
11341 tmp_sharedflag='-G' ;;
11342 esac
11343 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11345 if test "x$supports_anon_versioning" = xyes; then
11346 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11347 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11348 echo "local: *; };" >> $output_objdir/$libname.ver~
11349 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11352 case $cc_basename in
11353 xlf* | bgf* | bgxlf* | mpixlf*)
11354 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11355 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11357 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11358 if test "x$supports_anon_versioning" = xyes; then
11359 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11361 echo "local: *; };" >> $output_objdir/$libname.ver~
11362 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11365 esac
11366 else
11367 ld_shlibs=no
11371 netbsd*)
11372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11373 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11374 wlarc=
11375 else
11376 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11377 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11381 solaris*)
11382 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11383 ld_shlibs=no
11384 cat <<_LT_EOF 1>&2
11386 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11387 *** create shared libraries on Solaris systems. Therefore, libtool
11388 *** is disabling shared libraries support. We urge you to upgrade GNU
11389 *** binutils to release 2.9.1 or newer. Another option is to modify
11390 *** your PATH or compiler configuration so that the native linker is
11391 *** used, and then restart.
11393 _LT_EOF
11394 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11395 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11396 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11397 else
11398 ld_shlibs=no
11402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11403 case `$LD -v 2>&1` in
11404 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11405 ld_shlibs=no
11406 cat <<_LT_EOF 1>&2
11408 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11409 *** reliably create shared libraries on SCO systems. Therefore, libtool
11410 *** is disabling shared libraries support. We urge you to upgrade GNU
11411 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11412 *** your PATH or compiler configuration so that the native linker is
11413 *** used, and then restart.
11415 _LT_EOF
11418 # For security reasons, it is highly recommended that you always
11419 # use absolute paths for naming shared libraries, and exclude the
11420 # DT_RUNPATH tag from executables and libraries. But doing so
11421 # requires that you compile everything twice, which is a pain.
11422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11425 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11426 else
11427 ld_shlibs=no
11430 esac
11433 sunos4*)
11434 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11435 wlarc=
11436 hardcode_direct=yes
11437 hardcode_shlibpath_var=no
11441 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11442 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11443 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11444 else
11445 ld_shlibs=no
11448 esac
11450 if test "$ld_shlibs" = no; then
11451 runpath_var=
11452 hardcode_libdir_flag_spec=
11453 export_dynamic_flag_spec=
11454 whole_archive_flag_spec=
11456 else
11457 # PORTME fill in a description of your system's linker (not GNU ld)
11458 case $host_os in
11459 aix3*)
11460 allow_undefined_flag=unsupported
11461 always_export_symbols=yes
11462 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'
11463 # Note: this linker hardcodes the directories in LIBPATH if there
11464 # are no directories specified by -L.
11465 hardcode_minus_L=yes
11466 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11467 # Neither direct hardcoding nor static linking is supported with a
11468 # broken collect2.
11469 hardcode_direct=unsupported
11473 aix[4-9]*)
11474 if test "$host_cpu" = ia64; then
11475 # On IA64, the linker does run time linking by default, so we don't
11476 # have to do anything special.
11477 aix_use_runtimelinking=no
11478 exp_sym_flag='-Bexport'
11479 no_entry_flag=""
11480 else
11481 # If we're using GNU nm, then we don't want the "-C" option.
11482 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11483 # Also, AIX nm treats weak defined symbols like other global
11484 # defined symbols, whereas GNU nm marks them as "W".
11485 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11486 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'
11487 else
11488 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'
11490 aix_use_runtimelinking=no
11492 # Test if we are trying to use run time linking or normal
11493 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11494 # need to do runtime linking.
11495 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11496 for ld_flag in $LDFLAGS; do
11497 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11498 aix_use_runtimelinking=yes
11499 break
11501 done
11503 esac
11505 exp_sym_flag='-bexport'
11506 no_entry_flag='-bnoentry'
11509 # When large executables or shared objects are built, AIX ld can
11510 # have problems creating the table of contents. If linking a library
11511 # or program results in "error TOC overflow" add -mminimal-toc to
11512 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11515 archive_cmds=''
11516 hardcode_direct=yes
11517 hardcode_direct_absolute=yes
11518 hardcode_libdir_separator=':'
11519 link_all_deplibs=yes
11520 file_list_spec='${wl}-f,'
11522 if test "$GCC" = yes; then
11523 case $host_os in aix4.[012]|aix4.[012].*)
11524 # We only want to do this on AIX 4.2 and lower, the check
11525 # below for broken collect2 doesn't work under 4.3+
11526 collect2name=`${CC} -print-prog-name=collect2`
11527 if test -f "$collect2name" &&
11528 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11529 then
11530 # We have reworked collect2
11532 else
11533 # We have old collect2
11534 hardcode_direct=unsupported
11535 # It fails to find uninstalled libraries when the uninstalled
11536 # path is not listed in the libpath. Setting hardcode_minus_L
11537 # to unsupported forces relinking
11538 hardcode_minus_L=yes
11539 hardcode_libdir_flag_spec='-L$libdir'
11540 hardcode_libdir_separator=
11543 esac
11544 shared_flag='-shared'
11545 if test "$aix_use_runtimelinking" = yes; then
11546 shared_flag="$shared_flag "'${wl}-G'
11548 else
11549 # not using gcc
11550 if test "$host_cpu" = ia64; then
11551 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11552 # chokes on -Wl,-G. The following line is correct:
11553 shared_flag='-G'
11554 else
11555 if test "$aix_use_runtimelinking" = yes; then
11556 shared_flag='${wl}-G'
11557 else
11558 shared_flag='${wl}-bM:SRE'
11563 export_dynamic_flag_spec='${wl}-bexpall'
11564 # It seems that -bexpall does not export symbols beginning with
11565 # underscore (_), so it is better to generate a list of symbols to export.
11566 always_export_symbols=yes
11567 if test "$aix_use_runtimelinking" = yes; then
11568 # Warning - without using the other runtime loading flags (-brtl),
11569 # -berok will link without error, but may produce a broken library.
11570 allow_undefined_flag='-berok'
11571 # Determine the default libpath from the value encoded in an
11572 # empty executable.
11573 if test "${lt_cv_aix_libpath+set}" = set; then
11574 aix_libpath=$lt_cv_aix_libpath
11575 else
11576 if ${lt_cv_aix_libpath_+:} false; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11583 main ()
11587 return 0;
11589 _ACEOF
11590 if ac_fn_c_try_link "$LINENO"; then :
11592 lt_aix_libpath_sed='
11593 /Import File Strings/,/^$/ {
11594 /^0/ {
11595 s/^0 *\([^ ]*\) *$/\1/
11599 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11600 # Check for a 64-bit object if we didn't find anything.
11601 if test -z "$lt_cv_aix_libpath_"; then
11602 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11605 rm -f core conftest.err conftest.$ac_objext \
11606 conftest$ac_exeext conftest.$ac_ext
11607 if test -z "$lt_cv_aix_libpath_"; then
11608 lt_cv_aix_libpath_="/usr/lib:/lib"
11613 aix_libpath=$lt_cv_aix_libpath_
11616 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11617 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"
11618 else
11619 if test "$host_cpu" = ia64; then
11620 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11621 allow_undefined_flag="-z nodefs"
11622 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"
11623 else
11624 # Determine the default libpath from the value encoded in an
11625 # empty executable.
11626 if test "${lt_cv_aix_libpath+set}" = set; then
11627 aix_libpath=$lt_cv_aix_libpath
11628 else
11629 if ${lt_cv_aix_libpath_+:} false; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11636 main ()
11640 return 0;
11642 _ACEOF
11643 if ac_fn_c_try_link "$LINENO"; then :
11645 lt_aix_libpath_sed='
11646 /Import File Strings/,/^$/ {
11647 /^0/ {
11648 s/^0 *\([^ ]*\) *$/\1/
11652 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11653 # Check for a 64-bit object if we didn't find anything.
11654 if test -z "$lt_cv_aix_libpath_"; then
11655 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11658 rm -f core conftest.err conftest.$ac_objext \
11659 conftest$ac_exeext conftest.$ac_ext
11660 if test -z "$lt_cv_aix_libpath_"; then
11661 lt_cv_aix_libpath_="/usr/lib:/lib"
11666 aix_libpath=$lt_cv_aix_libpath_
11669 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11670 # Warning - without using the other run time loading flags,
11671 # -berok will link without error, but may produce a broken library.
11672 no_undefined_flag=' ${wl}-bernotok'
11673 allow_undefined_flag=' ${wl}-berok'
11674 if test "$with_gnu_ld" = yes; then
11675 # We only use this code for GNU lds that support --whole-archive.
11676 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11677 else
11678 # Exported symbols can be pulled into shared objects from archives
11679 whole_archive_flag_spec='$convenience'
11681 archive_cmds_need_lc=yes
11682 # This is similar to how AIX traditionally builds its shared libraries.
11683 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'
11688 amigaos*)
11689 case $host_cpu in
11690 powerpc)
11691 # see comment about AmigaOS4 .so support
11692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11693 archive_expsym_cmds=''
11695 m68k)
11696 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)'
11697 hardcode_libdir_flag_spec='-L$libdir'
11698 hardcode_minus_L=yes
11700 esac
11703 bsdi[45]*)
11704 export_dynamic_flag_spec=-rdynamic
11707 cygwin* | mingw* | pw32* | cegcc*)
11708 # When not using gcc, we currently assume that we are using
11709 # Microsoft Visual C++.
11710 # hardcode_libdir_flag_spec is actually meaningless, as there is
11711 # no search path for DLLs.
11712 case $cc_basename in
11713 cl*)
11714 # Native MSVC
11715 hardcode_libdir_flag_spec=' '
11716 allow_undefined_flag=unsupported
11717 always_export_symbols=yes
11718 file_list_spec='@'
11719 # Tell ltmain to make .lib files, not .a files.
11720 libext=lib
11721 # Tell ltmain to make .dll files, not .so files.
11722 shrext_cmds=".dll"
11723 # FIXME: Setting linknames here is a bad hack.
11724 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11725 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11726 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11727 else
11728 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11730 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11731 linknames='
11732 # The linker will not automatically build a static lib if we build a DLL.
11733 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11734 enable_shared_with_static_runtimes=yes
11735 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11736 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11737 # Don't use ranlib
11738 old_postinstall_cmds='chmod 644 $oldlib'
11739 postlink_cmds='lt_outputfile="@OUTPUT@"~
11740 lt_tool_outputfile="@TOOL_OUTPUT@"~
11741 case $lt_outputfile in
11742 *.exe|*.EXE) ;;
11744 lt_outputfile="$lt_outputfile.exe"
11745 lt_tool_outputfile="$lt_tool_outputfile.exe"
11747 esac~
11748 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11749 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11750 $RM "$lt_outputfile.manifest";
11754 # Assume MSVC wrapper
11755 hardcode_libdir_flag_spec=' '
11756 allow_undefined_flag=unsupported
11757 # Tell ltmain to make .lib files, not .a files.
11758 libext=lib
11759 # Tell ltmain to make .dll files, not .so files.
11760 shrext_cmds=".dll"
11761 # FIXME: Setting linknames here is a bad hack.
11762 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11763 # The linker will automatically build a .lib file if we build a DLL.
11764 old_archive_from_new_cmds='true'
11765 # FIXME: Should let the user specify the lib program.
11766 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11767 enable_shared_with_static_runtimes=yes
11769 esac
11772 darwin* | rhapsody*)
11775 archive_cmds_need_lc=no
11776 hardcode_direct=no
11777 hardcode_automatic=yes
11778 hardcode_shlibpath_var=unsupported
11779 if test "$lt_cv_ld_force_load" = "yes"; then
11780 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\"`'
11782 else
11783 whole_archive_flag_spec=''
11785 link_all_deplibs=yes
11786 allow_undefined_flag="$_lt_dar_allow_undefined"
11787 case $cc_basename in
11788 ifort*) _lt_dar_can_shared=yes ;;
11789 *) _lt_dar_can_shared=$GCC ;;
11790 esac
11791 if test "$_lt_dar_can_shared" = "yes"; then
11792 output_verbose_link_cmd=func_echo_all
11793 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11794 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11795 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}"
11796 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}"
11798 else
11799 ld_shlibs=no
11804 dgux*)
11805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11806 hardcode_libdir_flag_spec='-L$libdir'
11807 hardcode_shlibpath_var=no
11810 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11811 # support. Future versions do this automatically, but an explicit c++rt0.o
11812 # does not break anything, and helps significantly (at the cost of a little
11813 # extra space).
11814 freebsd2.2*)
11815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11816 hardcode_libdir_flag_spec='-R$libdir'
11817 hardcode_direct=yes
11818 hardcode_shlibpath_var=no
11821 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11822 freebsd2.*)
11823 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11824 hardcode_direct=yes
11825 hardcode_minus_L=yes
11826 hardcode_shlibpath_var=no
11829 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11830 freebsd* | dragonfly*)
11831 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11832 hardcode_libdir_flag_spec='-R$libdir'
11833 hardcode_direct=yes
11834 hardcode_shlibpath_var=no
11837 hpux9*)
11838 if test "$GCC" = yes; then
11839 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'
11840 else
11841 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'
11843 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11844 hardcode_libdir_separator=:
11845 hardcode_direct=yes
11847 # hardcode_minus_L: Not really in the search PATH,
11848 # but as the default location of the library.
11849 hardcode_minus_L=yes
11850 export_dynamic_flag_spec='${wl}-E'
11853 hpux10*)
11854 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11855 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11856 else
11857 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11859 if test "$with_gnu_ld" = no; then
11860 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11861 hardcode_libdir_separator=:
11862 hardcode_direct=yes
11863 hardcode_direct_absolute=yes
11864 export_dynamic_flag_spec='${wl}-E'
11865 # hardcode_minus_L: Not really in the search PATH,
11866 # but as the default location of the library.
11867 hardcode_minus_L=yes
11871 hpux11*)
11872 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11873 case $host_cpu in
11874 hppa*64*)
11875 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11877 ia64*)
11878 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11881 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11883 esac
11884 else
11885 case $host_cpu in
11886 hppa*64*)
11887 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11889 ia64*)
11890 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11894 # Older versions of the 11.00 compiler do not understand -b yet
11895 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11897 $as_echo_n "checking if $CC understands -b... " >&6; }
11898 if ${lt_cv_prog_compiler__b+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 lt_cv_prog_compiler__b=no
11902 save_LDFLAGS="$LDFLAGS"
11903 LDFLAGS="$LDFLAGS -b"
11904 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11905 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11906 # The linker can only warn and ignore the option if not recognized
11907 # So say no if there are warnings
11908 if test -s conftest.err; then
11909 # Append any errors to the config.log.
11910 cat conftest.err 1>&5
11911 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11913 if diff conftest.exp conftest.er2 >/dev/null; then
11914 lt_cv_prog_compiler__b=yes
11916 else
11917 lt_cv_prog_compiler__b=yes
11920 $RM -r conftest*
11921 LDFLAGS="$save_LDFLAGS"
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11925 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11927 if test x"$lt_cv_prog_compiler__b" = xyes; then
11928 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11929 else
11930 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11934 esac
11936 if test "$with_gnu_ld" = no; then
11937 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11938 hardcode_libdir_separator=:
11940 case $host_cpu in
11941 hppa*64*|ia64*)
11942 hardcode_direct=no
11943 hardcode_shlibpath_var=no
11946 hardcode_direct=yes
11947 hardcode_direct_absolute=yes
11948 export_dynamic_flag_spec='${wl}-E'
11950 # hardcode_minus_L: Not really in the search PATH,
11951 # but as the default location of the library.
11952 hardcode_minus_L=yes
11954 esac
11958 irix5* | irix6* | nonstopux*)
11959 if test "$GCC" = yes; then
11960 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'
11961 # Try to use the -exported_symbol ld option, if it does not
11962 # work, assume that -exports_file does not work either and
11963 # implicitly export all symbols.
11964 # This should be the same for all languages, so no per-tag cache variable.
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11966 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11967 if ${lt_cv_irix_exported_symbol+:} false; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 save_LDFLAGS="$LDFLAGS"
11971 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11974 int foo (void) { return 0; }
11975 _ACEOF
11976 if ac_fn_c_try_link "$LINENO"; then :
11977 lt_cv_irix_exported_symbol=yes
11978 else
11979 lt_cv_irix_exported_symbol=no
11981 rm -f core conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11983 LDFLAGS="$save_LDFLAGS"
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11986 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11987 if test "$lt_cv_irix_exported_symbol" = yes; then
11988 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'
11990 else
11991 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'
11992 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'
11994 archive_cmds_need_lc='no'
11995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11996 hardcode_libdir_separator=:
11997 inherit_rpath=yes
11998 link_all_deplibs=yes
12001 netbsd*)
12002 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12003 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12004 else
12005 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12007 hardcode_libdir_flag_spec='-R$libdir'
12008 hardcode_direct=yes
12009 hardcode_shlibpath_var=no
12012 newsos6)
12013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12014 hardcode_direct=yes
12015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12016 hardcode_libdir_separator=:
12017 hardcode_shlibpath_var=no
12020 *nto* | *qnx*)
12023 openbsd*)
12024 if test -f /usr/libexec/ld.so; then
12025 hardcode_direct=yes
12026 hardcode_shlibpath_var=no
12027 hardcode_direct_absolute=yes
12028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12029 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12030 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12031 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12032 export_dynamic_flag_spec='${wl}-E'
12033 else
12034 case $host_os in
12035 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12037 hardcode_libdir_flag_spec='-R$libdir'
12040 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12041 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12043 esac
12045 else
12046 ld_shlibs=no
12050 os2*)
12051 hardcode_libdir_flag_spec='-L$libdir'
12052 hardcode_minus_L=yes
12053 allow_undefined_flag=unsupported
12054 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'
12055 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12058 osf3*)
12059 if test "$GCC" = yes; then
12060 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12061 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'
12062 else
12063 allow_undefined_flag=' -expect_unresolved \*'
12064 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'
12066 archive_cmds_need_lc='no'
12067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12068 hardcode_libdir_separator=:
12071 osf4* | osf5*) # as osf3* with the addition of -msym flag
12072 if test "$GCC" = yes; then
12073 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12074 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'
12075 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12076 else
12077 allow_undefined_flag=' -expect_unresolved \*'
12078 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'
12079 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~
12080 $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'
12082 # Both c and cxx compiler support -rpath directly
12083 hardcode_libdir_flag_spec='-rpath $libdir'
12085 archive_cmds_need_lc='no'
12086 hardcode_libdir_separator=:
12089 solaris*)
12090 no_undefined_flag=' -z defs'
12091 if test "$GCC" = yes; then
12092 wlarc='${wl}'
12093 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12094 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12095 $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'
12096 else
12097 case `$CC -V 2>&1` in
12098 *"Compilers 5.0"*)
12099 wlarc=''
12100 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12101 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12102 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12105 wlarc='${wl}'
12106 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12107 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12108 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12110 esac
12112 hardcode_libdir_flag_spec='-R$libdir'
12113 hardcode_shlibpath_var=no
12114 case $host_os in
12115 solaris2.[0-5] | solaris2.[0-5].*) ;;
12117 # The compiler driver will combine and reorder linker options,
12118 # but understands `-z linker_flag'. GCC discards it without `$wl',
12119 # but is careful enough not to reorder.
12120 # Supported since Solaris 2.6 (maybe 2.5.1?)
12121 if test "$GCC" = yes; then
12122 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12123 else
12124 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12127 esac
12128 link_all_deplibs=yes
12131 sunos4*)
12132 if test "x$host_vendor" = xsequent; then
12133 # Use $CC to link under sequent, because it throws in some extra .o
12134 # files that make .init and .fini sections work.
12135 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12136 else
12137 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12139 hardcode_libdir_flag_spec='-L$libdir'
12140 hardcode_direct=yes
12141 hardcode_minus_L=yes
12142 hardcode_shlibpath_var=no
12145 sysv4)
12146 case $host_vendor in
12147 sni)
12148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12149 hardcode_direct=yes # is this really true???
12151 siemens)
12152 ## LD is ld it makes a PLAMLIB
12153 ## CC just makes a GrossModule.
12154 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12155 reload_cmds='$CC -r -o $output$reload_objs'
12156 hardcode_direct=no
12158 motorola)
12159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12160 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12162 esac
12163 runpath_var='LD_RUN_PATH'
12164 hardcode_shlibpath_var=no
12167 sysv4.3*)
12168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12169 hardcode_shlibpath_var=no
12170 export_dynamic_flag_spec='-Bexport'
12173 sysv4*MP*)
12174 if test -d /usr/nec; then
12175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12176 hardcode_shlibpath_var=no
12177 runpath_var=LD_RUN_PATH
12178 hardcode_runpath_var=yes
12179 ld_shlibs=yes
12183 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12184 no_undefined_flag='${wl}-z,text'
12185 archive_cmds_need_lc=no
12186 hardcode_shlibpath_var=no
12187 runpath_var='LD_RUN_PATH'
12189 if test "$GCC" = yes; then
12190 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12191 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12192 else
12193 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12194 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12198 sysv5* | sco3.2v5* | sco5v6*)
12199 # Note: We can NOT use -z defs as we might desire, because we do not
12200 # link with -lc, and that would cause any symbols used from libc to
12201 # always be unresolved, which means just about no library would
12202 # ever link correctly. If we're not using GNU ld we use -z text
12203 # though, which does catch some bad symbols but isn't as heavy-handed
12204 # as -z defs.
12205 no_undefined_flag='${wl}-z,text'
12206 allow_undefined_flag='${wl}-z,nodefs'
12207 archive_cmds_need_lc=no
12208 hardcode_shlibpath_var=no
12209 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12210 hardcode_libdir_separator=':'
12211 link_all_deplibs=yes
12212 export_dynamic_flag_spec='${wl}-Bexport'
12213 runpath_var='LD_RUN_PATH'
12215 if test "$GCC" = yes; then
12216 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12217 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12218 else
12219 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12220 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12224 uts4*)
12225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12226 hardcode_libdir_flag_spec='-L$libdir'
12227 hardcode_shlibpath_var=no
12231 ld_shlibs=no
12233 esac
12235 if test x$host_vendor = xsni; then
12236 case $host in
12237 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12238 export_dynamic_flag_spec='${wl}-Blargedynsym'
12240 esac
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12245 $as_echo "$ld_shlibs" >&6; }
12246 test "$ld_shlibs" = no && can_build_shared=no
12248 with_gnu_ld=$with_gnu_ld
12265 # Do we need to explicitly link libc?
12267 case "x$archive_cmds_need_lc" in
12268 x|xyes)
12269 # Assume -lc should be added
12270 archive_cmds_need_lc=yes
12272 if test "$enable_shared" = yes && test "$GCC" = yes; then
12273 case $archive_cmds in
12274 *'~'*)
12275 # FIXME: we may have to deal with multi-command sequences.
12277 '$CC '*)
12278 # Test whether the compiler implicitly links with -lc since on some
12279 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12280 # to ld, don't add -lc before -lgcc.
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12282 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12283 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 $RM conftest*
12287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12290 (eval $ac_compile) 2>&5
12291 ac_status=$?
12292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12293 test $ac_status = 0; } 2>conftest.err; then
12294 soname=conftest
12295 lib=conftest
12296 libobjs=conftest.$ac_objext
12297 deplibs=
12298 wl=$lt_prog_compiler_wl
12299 pic_flag=$lt_prog_compiler_pic
12300 compiler_flags=-v
12301 linker_flags=-v
12302 verstring=
12303 output_objdir=.
12304 libname=conftest
12305 lt_save_allow_undefined_flag=$allow_undefined_flag
12306 allow_undefined_flag=
12307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12308 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12309 ac_status=$?
12310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12311 test $ac_status = 0; }
12312 then
12313 lt_cv_archive_cmds_need_lc=no
12314 else
12315 lt_cv_archive_cmds_need_lc=yes
12317 allow_undefined_flag=$lt_save_allow_undefined_flag
12318 else
12319 cat conftest.err 1>&5
12321 $RM conftest*
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12325 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12326 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12328 esac
12331 esac
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12485 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12487 if test "$GCC" = yes; then
12488 case $host_os in
12489 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12490 *) lt_awk_arg="/^libraries:/" ;;
12491 esac
12492 case $host_os in
12493 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12494 *) lt_sed_strip_eq="s,=/,/,g" ;;
12495 esac
12496 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12497 case $lt_search_path_spec in
12498 *\;*)
12499 # if the path contains ";" then we assume it to be the separator
12500 # otherwise default to the standard path separator (i.e. ":") - it is
12501 # assumed that no part of a normal pathname contains ";" but that should
12502 # okay in the real world where ";" in dirpaths is itself problematic.
12503 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12506 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12508 esac
12509 # Ok, now we have the path, separated by spaces, we can step through it
12510 # and add multilib dir if necessary.
12511 lt_tmp_lt_search_path_spec=
12512 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12513 for lt_sys_path in $lt_search_path_spec; do
12514 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12515 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12516 else
12517 test -d "$lt_sys_path" && \
12518 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12520 done
12521 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12522 BEGIN {RS=" "; FS="/|\n";} {
12523 lt_foo="";
12524 lt_count=0;
12525 for (lt_i = NF; lt_i > 0; lt_i--) {
12526 if ($lt_i != "" && $lt_i != ".") {
12527 if ($lt_i == "..") {
12528 lt_count++;
12529 } else {
12530 if (lt_count == 0) {
12531 lt_foo="/" $lt_i lt_foo;
12532 } else {
12533 lt_count--;
12538 if (lt_foo != "") { lt_freq[lt_foo]++; }
12539 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12541 # AWK program above erroneously prepends '/' to C:/dos/paths
12542 # for these hosts.
12543 case $host_os in
12544 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12545 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12546 esac
12547 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12548 else
12549 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12551 library_names_spec=
12552 libname_spec='lib$name'
12553 soname_spec=
12554 shrext_cmds=".so"
12555 postinstall_cmds=
12556 postuninstall_cmds=
12557 finish_cmds=
12558 finish_eval=
12559 shlibpath_var=
12560 shlibpath_overrides_runpath=unknown
12561 version_type=none
12562 dynamic_linker="$host_os ld.so"
12563 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12564 need_lib_prefix=unknown
12565 hardcode_into_libs=no
12567 # when you set need_version to no, make sure it does not cause -set_version
12568 # flags to be left without arguments
12569 need_version=unknown
12571 case $host_os in
12572 aix3*)
12573 version_type=linux # correct to gnu/linux during the next big refactor
12574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12575 shlibpath_var=LIBPATH
12577 # AIX 3 has no versioning support, so we append a major version to the name.
12578 soname_spec='${libname}${release}${shared_ext}$major'
12581 aix[4-9]*)
12582 version_type=linux # correct to gnu/linux during the next big refactor
12583 need_lib_prefix=no
12584 need_version=no
12585 hardcode_into_libs=yes
12586 if test "$host_cpu" = ia64; then
12587 # AIX 5 supports IA64
12588 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12589 shlibpath_var=LD_LIBRARY_PATH
12590 else
12591 # With GCC up to 2.95.x, collect2 would create an import file
12592 # for dependence libraries. The import file would start with
12593 # the line `#! .'. This would cause the generated library to
12594 # depend on `.', always an invalid library. This was fixed in
12595 # development snapshots of GCC prior to 3.0.
12596 case $host_os in
12597 aix4 | aix4.[01] | aix4.[01].*)
12598 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12599 echo ' yes '
12600 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12602 else
12603 can_build_shared=no
12606 esac
12607 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12608 # soname into executable. Probably we can add versioning support to
12609 # collect2, so additional links can be useful in future.
12610 if test "$aix_use_runtimelinking" = yes; then
12611 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12612 # instead of lib<name>.a to let people know that these are not
12613 # typical AIX shared libraries.
12614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12615 else
12616 # We preserve .a as extension for shared libraries through AIX4.2
12617 # and later when we are not doing run time linking.
12618 library_names_spec='${libname}${release}.a $libname.a'
12619 soname_spec='${libname}${release}${shared_ext}$major'
12621 shlibpath_var=LIBPATH
12625 amigaos*)
12626 case $host_cpu in
12627 powerpc)
12628 # Since July 2007 AmigaOS4 officially supports .so libraries.
12629 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12632 m68k)
12633 library_names_spec='$libname.ixlibrary $libname.a'
12634 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12635 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'
12637 esac
12640 beos*)
12641 library_names_spec='${libname}${shared_ext}'
12642 dynamic_linker="$host_os ld.so"
12643 shlibpath_var=LIBRARY_PATH
12646 bsdi[45]*)
12647 version_type=linux # correct to gnu/linux during the next big refactor
12648 need_version=no
12649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12650 soname_spec='${libname}${release}${shared_ext}$major'
12651 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12652 shlibpath_var=LD_LIBRARY_PATH
12653 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12654 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12655 # the default ld.so.conf also contains /usr/contrib/lib and
12656 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12657 # libtool to hard-code these into programs
12660 cygwin* | mingw* | pw32* | cegcc*)
12661 version_type=windows
12662 shrext_cmds=".dll"
12663 need_version=no
12664 need_lib_prefix=no
12666 case $GCC,$cc_basename in
12667 yes,*)
12668 # gcc
12669 library_names_spec='$libname.dll.a'
12670 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12671 postinstall_cmds='base_file=`basename \${file}`~
12672 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12673 dldir=$destdir/`dirname \$dlpath`~
12674 test -d \$dldir || mkdir -p \$dldir~
12675 $install_prog $dir/$dlname \$dldir/$dlname~
12676 chmod a+x \$dldir/$dlname~
12677 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12678 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12680 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12681 dlpath=$dir/\$dldll~
12682 $RM \$dlpath'
12683 shlibpath_overrides_runpath=yes
12685 case $host_os in
12686 cygwin*)
12687 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12688 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12690 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12692 mingw* | cegcc*)
12693 # MinGW DLLs use traditional 'lib' prefix
12694 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12696 pw32*)
12697 # pw32 DLLs use 'pw' prefix rather than 'lib'
12698 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12700 esac
12701 dynamic_linker='Win32 ld.exe'
12704 *,cl*)
12705 # Native MSVC
12706 libname_spec='$name'
12707 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12708 library_names_spec='${libname}.dll.lib'
12710 case $build_os in
12711 mingw*)
12712 sys_lib_search_path_spec=
12713 lt_save_ifs=$IFS
12714 IFS=';'
12715 for lt_path in $LIB
12717 IFS=$lt_save_ifs
12718 # Let DOS variable expansion print the short 8.3 style file name.
12719 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12720 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12721 done
12722 IFS=$lt_save_ifs
12723 # Convert to MSYS style.
12724 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12726 cygwin*)
12727 # Convert to unix form, then to dos form, then back to unix form
12728 # but this time dos style (no spaces!) so that the unix form looks
12729 # like /cygdrive/c/PROGRA~1:/cygdr...
12730 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12731 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12732 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12735 sys_lib_search_path_spec="$LIB"
12736 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12737 # It is most probably a Windows format PATH.
12738 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12739 else
12740 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12742 # FIXME: find the short name or the path components, as spaces are
12743 # common. (e.g. "Program Files" -> "PROGRA~1")
12745 esac
12747 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12748 postinstall_cmds='base_file=`basename \${file}`~
12749 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12750 dldir=$destdir/`dirname \$dlpath`~
12751 test -d \$dldir || mkdir -p \$dldir~
12752 $install_prog $dir/$dlname \$dldir/$dlname'
12753 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12754 dlpath=$dir/\$dldll~
12755 $RM \$dlpath'
12756 shlibpath_overrides_runpath=yes
12757 dynamic_linker='Win32 link.exe'
12761 # Assume MSVC wrapper
12762 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12763 dynamic_linker='Win32 ld.exe'
12765 esac
12766 # FIXME: first we should search . and the directory the executable is in
12767 shlibpath_var=PATH
12770 darwin* | rhapsody*)
12771 dynamic_linker="$host_os dyld"
12772 version_type=darwin
12773 need_lib_prefix=no
12774 need_version=no
12775 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12776 soname_spec='${libname}${release}${major}$shared_ext'
12777 shlibpath_overrides_runpath=yes
12778 shlibpath_var=DYLD_LIBRARY_PATH
12779 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12781 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12782 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12785 dgux*)
12786 version_type=linux # correct to gnu/linux during the next big refactor
12787 need_lib_prefix=no
12788 need_version=no
12789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12790 soname_spec='${libname}${release}${shared_ext}$major'
12791 shlibpath_var=LD_LIBRARY_PATH
12794 freebsd* | dragonfly*)
12795 # DragonFly does not have aout. When/if they implement a new
12796 # versioning mechanism, adjust this.
12797 if test -x /usr/bin/objformat; then
12798 objformat=`/usr/bin/objformat`
12799 else
12800 case $host_os in
12801 freebsd[23].*) objformat=aout ;;
12802 *) objformat=elf ;;
12803 esac
12805 version_type=freebsd-$objformat
12806 case $version_type in
12807 freebsd-elf*)
12808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12809 need_version=no
12810 need_lib_prefix=no
12812 freebsd-*)
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12814 need_version=yes
12816 esac
12817 shlibpath_var=LD_LIBRARY_PATH
12818 case $host_os in
12819 freebsd2.*)
12820 shlibpath_overrides_runpath=yes
12822 freebsd3.[01]* | freebsdelf3.[01]*)
12823 shlibpath_overrides_runpath=yes
12824 hardcode_into_libs=yes
12826 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12827 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12828 shlibpath_overrides_runpath=no
12829 hardcode_into_libs=yes
12831 *) # from 4.6 on, and DragonFly
12832 shlibpath_overrides_runpath=yes
12833 hardcode_into_libs=yes
12835 esac
12838 gnu*)
12839 version_type=linux # correct to gnu/linux during the next big refactor
12840 need_lib_prefix=no
12841 need_version=no
12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12843 soname_spec='${libname}${release}${shared_ext}$major'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 shlibpath_overrides_runpath=no
12846 hardcode_into_libs=yes
12849 haiku*)
12850 version_type=linux # correct to gnu/linux during the next big refactor
12851 need_lib_prefix=no
12852 need_version=no
12853 dynamic_linker="$host_os runtime_loader"
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12855 soname_spec='${libname}${release}${shared_ext}$major'
12856 shlibpath_var=LIBRARY_PATH
12857 shlibpath_overrides_runpath=yes
12858 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12859 hardcode_into_libs=yes
12862 hpux9* | hpux10* | hpux11*)
12863 # Give a soname corresponding to the major version so that dld.sl refuses to
12864 # link against other versions.
12865 version_type=sunos
12866 need_lib_prefix=no
12867 need_version=no
12868 case $host_cpu in
12869 ia64*)
12870 shrext_cmds='.so'
12871 hardcode_into_libs=yes
12872 dynamic_linker="$host_os dld.so"
12873 shlibpath_var=LD_LIBRARY_PATH
12874 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12876 soname_spec='${libname}${release}${shared_ext}$major'
12877 if test "X$HPUX_IA64_MODE" = X32; then
12878 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12879 else
12880 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12884 hppa*64*)
12885 shrext_cmds='.sl'
12886 hardcode_into_libs=yes
12887 dynamic_linker="$host_os dld.sl"
12888 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12889 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12891 soname_spec='${libname}${release}${shared_ext}$major'
12892 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12893 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12896 shrext_cmds='.sl'
12897 dynamic_linker="$host_os dld.sl"
12898 shlibpath_var=SHLIB_PATH
12899 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12901 soname_spec='${libname}${release}${shared_ext}$major'
12903 esac
12904 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12905 postinstall_cmds='chmod 555 $lib'
12906 # or fails outright, so override atomically:
12907 install_override_mode=555
12910 interix[3-9]*)
12911 version_type=linux # correct to gnu/linux during the next big refactor
12912 need_lib_prefix=no
12913 need_version=no
12914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12915 soname_spec='${libname}${release}${shared_ext}$major'
12916 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12917 shlibpath_var=LD_LIBRARY_PATH
12918 shlibpath_overrides_runpath=no
12919 hardcode_into_libs=yes
12922 irix5* | irix6* | nonstopux*)
12923 case $host_os in
12924 nonstopux*) version_type=nonstopux ;;
12926 if test "$lt_cv_prog_gnu_ld" = yes; then
12927 version_type=linux # correct to gnu/linux during the next big refactor
12928 else
12929 version_type=irix
12930 fi ;;
12931 esac
12932 need_lib_prefix=no
12933 need_version=no
12934 soname_spec='${libname}${release}${shared_ext}$major'
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12936 case $host_os in
12937 irix5* | nonstopux*)
12938 libsuff= shlibsuff=
12941 case $LD in # libtool.m4 will add one of these switches to LD
12942 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12943 libsuff= shlibsuff= libmagic=32-bit;;
12944 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12945 libsuff=32 shlibsuff=N32 libmagic=N32;;
12946 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12947 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12948 *) libsuff= shlibsuff= libmagic=never-match;;
12949 esac
12951 esac
12952 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12953 shlibpath_overrides_runpath=no
12954 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12955 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12956 hardcode_into_libs=yes
12959 # No shared lib support for Linux oldld, aout, or coff.
12960 linux*oldld* | linux*aout* | linux*coff*)
12961 dynamic_linker=no
12964 # This must be glibc/ELF.
12965 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12966 version_type=linux # correct to gnu/linux during the next big refactor
12967 need_lib_prefix=no
12968 need_version=no
12969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12970 soname_spec='${libname}${release}${shared_ext}$major'
12971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12972 shlibpath_var=LD_LIBRARY_PATH
12973 shlibpath_overrides_runpath=no
12975 # Some binutils ld are patched to set DT_RUNPATH
12976 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12977 $as_echo_n "(cached) " >&6
12978 else
12979 lt_cv_shlibpath_overrides_runpath=no
12980 save_LDFLAGS=$LDFLAGS
12981 save_libdir=$libdir
12982 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12983 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h. */
12988 main ()
12992 return 0;
12994 _ACEOF
12995 if ac_fn_c_try_link "$LINENO"; then :
12996 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12997 lt_cv_shlibpath_overrides_runpath=yes
13000 rm -f core conftest.err conftest.$ac_objext \
13001 conftest$ac_exeext conftest.$ac_ext
13002 LDFLAGS=$save_LDFLAGS
13003 libdir=$save_libdir
13007 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13009 # This implies no fast_install, which is unacceptable.
13010 # Some rework will be needed to allow for fast_install
13011 # before this can be enabled.
13012 hardcode_into_libs=yes
13014 # Append ld.so.conf contents to the search path
13015 if test -f /etc/ld.so.conf; then
13016 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' ' '`
13017 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13020 # We used to test for /lib/ld.so.1 and disable shared libraries on
13021 # powerpc, because MkLinux only supported shared libraries with the
13022 # GNU dynamic linker. Since this was broken with cross compilers,
13023 # most powerpc-linux boxes support dynamic linking these days and
13024 # people can always --disable-shared, the test was removed, and we
13025 # assume the GNU/Linux dynamic linker is in use.
13026 dynamic_linker='GNU/Linux ld.so'
13029 netbsd*)
13030 version_type=sunos
13031 need_lib_prefix=no
13032 need_version=no
13033 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13036 dynamic_linker='NetBSD (a.out) ld.so'
13037 else
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13039 soname_spec='${libname}${release}${shared_ext}$major'
13040 dynamic_linker='NetBSD ld.elf_so'
13042 shlibpath_var=LD_LIBRARY_PATH
13043 shlibpath_overrides_runpath=yes
13044 hardcode_into_libs=yes
13047 newsos6)
13048 version_type=linux # correct to gnu/linux during the next big refactor
13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13050 shlibpath_var=LD_LIBRARY_PATH
13051 shlibpath_overrides_runpath=yes
13054 *nto* | *qnx*)
13055 version_type=qnx
13056 need_lib_prefix=no
13057 need_version=no
13058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13059 soname_spec='${libname}${release}${shared_ext}$major'
13060 shlibpath_var=LD_LIBRARY_PATH
13061 shlibpath_overrides_runpath=no
13062 hardcode_into_libs=yes
13063 dynamic_linker='ldqnx.so'
13066 openbsd*)
13067 version_type=sunos
13068 sys_lib_dlsearch_path_spec="/usr/lib"
13069 need_lib_prefix=no
13070 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13071 case $host_os in
13072 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13073 *) need_version=no ;;
13074 esac
13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13077 shlibpath_var=LD_LIBRARY_PATH
13078 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13079 case $host_os in
13080 openbsd2.[89] | openbsd2.[89].*)
13081 shlibpath_overrides_runpath=no
13084 shlibpath_overrides_runpath=yes
13086 esac
13087 else
13088 shlibpath_overrides_runpath=yes
13092 os2*)
13093 libname_spec='$name'
13094 shrext_cmds=".dll"
13095 need_lib_prefix=no
13096 library_names_spec='$libname${shared_ext} $libname.a'
13097 dynamic_linker='OS/2 ld.exe'
13098 shlibpath_var=LIBPATH
13101 osf3* | osf4* | osf5*)
13102 version_type=osf
13103 need_lib_prefix=no
13104 need_version=no
13105 soname_spec='${libname}${release}${shared_ext}$major'
13106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13107 shlibpath_var=LD_LIBRARY_PATH
13108 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13109 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13112 rdos*)
13113 dynamic_linker=no
13116 solaris*)
13117 version_type=linux # correct to gnu/linux during the next big refactor
13118 need_lib_prefix=no
13119 need_version=no
13120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13121 soname_spec='${libname}${release}${shared_ext}$major'
13122 shlibpath_var=LD_LIBRARY_PATH
13123 shlibpath_overrides_runpath=yes
13124 hardcode_into_libs=yes
13125 # ldd complains unless libraries are executable
13126 postinstall_cmds='chmod +x $lib'
13129 sunos4*)
13130 version_type=sunos
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13132 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13133 shlibpath_var=LD_LIBRARY_PATH
13134 shlibpath_overrides_runpath=yes
13135 if test "$with_gnu_ld" = yes; then
13136 need_lib_prefix=no
13138 need_version=yes
13141 sysv4 | sysv4.3*)
13142 version_type=linux # correct to gnu/linux during the next big refactor
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144 soname_spec='${libname}${release}${shared_ext}$major'
13145 shlibpath_var=LD_LIBRARY_PATH
13146 case $host_vendor in
13147 sni)
13148 shlibpath_overrides_runpath=no
13149 need_lib_prefix=no
13150 runpath_var=LD_RUN_PATH
13152 siemens)
13153 need_lib_prefix=no
13155 motorola)
13156 need_lib_prefix=no
13157 need_version=no
13158 shlibpath_overrides_runpath=no
13159 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13161 esac
13164 sysv4*MP*)
13165 if test -d /usr/nec ;then
13166 version_type=linux # correct to gnu/linux during the next big refactor
13167 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13168 soname_spec='$libname${shared_ext}.$major'
13169 shlibpath_var=LD_LIBRARY_PATH
13173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13174 version_type=freebsd-elf
13175 need_lib_prefix=no
13176 need_version=no
13177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13178 soname_spec='${libname}${release}${shared_ext}$major'
13179 shlibpath_var=LD_LIBRARY_PATH
13180 shlibpath_overrides_runpath=yes
13181 hardcode_into_libs=yes
13182 if test "$with_gnu_ld" = yes; then
13183 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13184 else
13185 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13186 case $host_os in
13187 sco3.2v5*)
13188 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13190 esac
13192 sys_lib_dlsearch_path_spec='/usr/lib'
13195 tpf*)
13196 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13197 version_type=linux # correct to gnu/linux during the next big refactor
13198 need_lib_prefix=no
13199 need_version=no
13200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13201 shlibpath_var=LD_LIBRARY_PATH
13202 shlibpath_overrides_runpath=no
13203 hardcode_into_libs=yes
13206 uts4*)
13207 version_type=linux # correct to gnu/linux during the next big refactor
13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13209 soname_spec='${libname}${release}${shared_ext}$major'
13210 shlibpath_var=LD_LIBRARY_PATH
13214 dynamic_linker=no
13216 esac
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13218 $as_echo "$dynamic_linker" >&6; }
13219 test "$dynamic_linker" = no && can_build_shared=no
13221 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13222 if test "$GCC" = yes; then
13223 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13226 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13227 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13229 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13230 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13325 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13326 hardcode_action=
13327 if test -n "$hardcode_libdir_flag_spec" ||
13328 test -n "$runpath_var" ||
13329 test "X$hardcode_automatic" = "Xyes" ; then
13331 # We can hardcode non-existent directories.
13332 if test "$hardcode_direct" != no &&
13333 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13334 # have to relink, otherwise we might link with an installed library
13335 # when we should be linking with a yet-to-be-installed one
13336 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13337 test "$hardcode_minus_L" != no; then
13338 # Linking always hardcodes the temporary library directory.
13339 hardcode_action=relink
13340 else
13341 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13342 hardcode_action=immediate
13344 else
13345 # We cannot hardcode anything, or else we can only hardcode existing
13346 # directories.
13347 hardcode_action=unsupported
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13350 $as_echo "$hardcode_action" >&6; }
13352 if test "$hardcode_action" = relink ||
13353 test "$inherit_rpath" = yes; then
13354 # Fast installation is not supported
13355 enable_fast_install=no
13356 elif test "$shlibpath_overrides_runpath" = yes ||
13357 test "$enable_shared" = no; then
13358 # Fast installation is not necessary
13359 enable_fast_install=needless
13367 if test "x$enable_dlopen" != xyes; then
13368 enable_dlopen=unknown
13369 enable_dlopen_self=unknown
13370 enable_dlopen_self_static=unknown
13371 else
13372 lt_cv_dlopen=no
13373 lt_cv_dlopen_libs=
13375 case $host_os in
13376 beos*)
13377 lt_cv_dlopen="load_add_on"
13378 lt_cv_dlopen_libs=
13379 lt_cv_dlopen_self=yes
13382 mingw* | pw32* | cegcc*)
13383 lt_cv_dlopen="LoadLibrary"
13384 lt_cv_dlopen_libs=
13387 cygwin*)
13388 lt_cv_dlopen="dlopen"
13389 lt_cv_dlopen_libs=
13392 darwin*)
13393 # if libdl is installed we need to link against it
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13395 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13396 if ${ac_cv_lib_dl_dlopen+:} false; then :
13397 $as_echo_n "(cached) " >&6
13398 else
13399 ac_check_lib_save_LIBS=$LIBS
13400 LIBS="-ldl $LIBS"
13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h. */
13404 /* Override any GCC internal prototype to avoid an error.
13405 Use char because int might match the return type of a GCC
13406 builtin and then its argument prototype would still apply. */
13407 #ifdef __cplusplus
13408 extern "C"
13409 #endif
13410 char dlopen ();
13412 main ()
13414 return dlopen ();
13416 return 0;
13418 _ACEOF
13419 if ac_fn_c_try_link "$LINENO"; then :
13420 ac_cv_lib_dl_dlopen=yes
13421 else
13422 ac_cv_lib_dl_dlopen=no
13424 rm -f core conftest.err conftest.$ac_objext \
13425 conftest$ac_exeext conftest.$ac_ext
13426 LIBS=$ac_check_lib_save_LIBS
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13429 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13430 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13432 else
13434 lt_cv_dlopen="dyld"
13435 lt_cv_dlopen_libs=
13436 lt_cv_dlopen_self=yes
13443 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13444 if test "x$ac_cv_func_shl_load" = xyes; then :
13445 lt_cv_dlopen="shl_load"
13446 else
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13448 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13449 if ${ac_cv_lib_dld_shl_load+:} false; then :
13450 $as_echo_n "(cached) " >&6
13451 else
13452 ac_check_lib_save_LIBS=$LIBS
13453 LIBS="-ldld $LIBS"
13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455 /* end confdefs.h. */
13457 /* Override any GCC internal prototype to avoid an error.
13458 Use char because int might match the return type of a GCC
13459 builtin and then its argument prototype would still apply. */
13460 #ifdef __cplusplus
13461 extern "C"
13462 #endif
13463 char shl_load ();
13465 main ()
13467 return shl_load ();
13469 return 0;
13471 _ACEOF
13472 if ac_fn_c_try_link "$LINENO"; then :
13473 ac_cv_lib_dld_shl_load=yes
13474 else
13475 ac_cv_lib_dld_shl_load=no
13477 rm -f core conftest.err conftest.$ac_objext \
13478 conftest$ac_exeext conftest.$ac_ext
13479 LIBS=$ac_check_lib_save_LIBS
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13482 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13483 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13484 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13485 else
13486 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13487 if test "x$ac_cv_func_dlopen" = xyes; then :
13488 lt_cv_dlopen="dlopen"
13489 else
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13491 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13492 if ${ac_cv_lib_dl_dlopen+:} false; then :
13493 $as_echo_n "(cached) " >&6
13494 else
13495 ac_check_lib_save_LIBS=$LIBS
13496 LIBS="-ldl $LIBS"
13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13500 /* Override any GCC internal prototype to avoid an error.
13501 Use char because int might match the return type of a GCC
13502 builtin and then its argument prototype would still apply. */
13503 #ifdef __cplusplus
13504 extern "C"
13505 #endif
13506 char dlopen ();
13508 main ()
13510 return dlopen ();
13512 return 0;
13514 _ACEOF
13515 if ac_fn_c_try_link "$LINENO"; then :
13516 ac_cv_lib_dl_dlopen=yes
13517 else
13518 ac_cv_lib_dl_dlopen=no
13520 rm -f core conftest.err conftest.$ac_objext \
13521 conftest$ac_exeext conftest.$ac_ext
13522 LIBS=$ac_check_lib_save_LIBS
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13525 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13526 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13527 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13528 else
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13530 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13531 if ${ac_cv_lib_svld_dlopen+:} false; then :
13532 $as_echo_n "(cached) " >&6
13533 else
13534 ac_check_lib_save_LIBS=$LIBS
13535 LIBS="-lsvld $LIBS"
13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537 /* end confdefs.h. */
13539 /* Override any GCC internal prototype to avoid an error.
13540 Use char because int might match the return type of a GCC
13541 builtin and then its argument prototype would still apply. */
13542 #ifdef __cplusplus
13543 extern "C"
13544 #endif
13545 char dlopen ();
13547 main ()
13549 return dlopen ();
13551 return 0;
13553 _ACEOF
13554 if ac_fn_c_try_link "$LINENO"; then :
13555 ac_cv_lib_svld_dlopen=yes
13556 else
13557 ac_cv_lib_svld_dlopen=no
13559 rm -f core conftest.err conftest.$ac_objext \
13560 conftest$ac_exeext conftest.$ac_ext
13561 LIBS=$ac_check_lib_save_LIBS
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13564 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13565 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13566 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13567 else
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13569 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13570 if ${ac_cv_lib_dld_dld_link+:} false; then :
13571 $as_echo_n "(cached) " >&6
13572 else
13573 ac_check_lib_save_LIBS=$LIBS
13574 LIBS="-ldld $LIBS"
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13578 /* Override any GCC internal prototype to avoid an error.
13579 Use char because int might match the return type of a GCC
13580 builtin and then its argument prototype would still apply. */
13581 #ifdef __cplusplus
13582 extern "C"
13583 #endif
13584 char dld_link ();
13586 main ()
13588 return dld_link ();
13590 return 0;
13592 _ACEOF
13593 if ac_fn_c_try_link "$LINENO"; then :
13594 ac_cv_lib_dld_dld_link=yes
13595 else
13596 ac_cv_lib_dld_dld_link=no
13598 rm -f core conftest.err conftest.$ac_objext \
13599 conftest$ac_exeext conftest.$ac_ext
13600 LIBS=$ac_check_lib_save_LIBS
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13603 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13604 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13605 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13624 esac
13626 if test "x$lt_cv_dlopen" != xno; then
13627 enable_dlopen=yes
13628 else
13629 enable_dlopen=no
13632 case $lt_cv_dlopen in
13633 dlopen)
13634 save_CPPFLAGS="$CPPFLAGS"
13635 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13637 save_LDFLAGS="$LDFLAGS"
13638 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13640 save_LIBS="$LIBS"
13641 LIBS="$lt_cv_dlopen_libs $LIBS"
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13644 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13645 if ${lt_cv_dlopen_self+:} false; then :
13646 $as_echo_n "(cached) " >&6
13647 else
13648 if test "$cross_compiling" = yes; then :
13649 lt_cv_dlopen_self=cross
13650 else
13651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13652 lt_status=$lt_dlunknown
13653 cat > conftest.$ac_ext <<_LT_EOF
13654 #line $LINENO "configure"
13655 #include "confdefs.h"
13657 #if HAVE_DLFCN_H
13658 #include <dlfcn.h>
13659 #endif
13661 #include <stdio.h>
13663 #ifdef RTLD_GLOBAL
13664 # define LT_DLGLOBAL RTLD_GLOBAL
13665 #else
13666 # ifdef DL_GLOBAL
13667 # define LT_DLGLOBAL DL_GLOBAL
13668 # else
13669 # define LT_DLGLOBAL 0
13670 # endif
13671 #endif
13673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13674 find out it does not work in some platform. */
13675 #ifndef LT_DLLAZY_OR_NOW
13676 # ifdef RTLD_LAZY
13677 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13678 # else
13679 # ifdef DL_LAZY
13680 # define LT_DLLAZY_OR_NOW DL_LAZY
13681 # else
13682 # ifdef RTLD_NOW
13683 # define LT_DLLAZY_OR_NOW RTLD_NOW
13684 # else
13685 # ifdef DL_NOW
13686 # define LT_DLLAZY_OR_NOW DL_NOW
13687 # else
13688 # define LT_DLLAZY_OR_NOW 0
13689 # endif
13690 # endif
13691 # endif
13692 # endif
13693 #endif
13695 /* When -fvisbility=hidden is used, assume the code has been annotated
13696 correspondingly for the symbols needed. */
13697 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13698 int fnord () __attribute__((visibility("default")));
13699 #endif
13701 int fnord () { return 42; }
13702 int main ()
13704 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13705 int status = $lt_dlunknown;
13707 if (self)
13709 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13710 else
13712 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13713 else puts (dlerror ());
13715 /* dlclose (self); */
13717 else
13718 puts (dlerror ());
13720 return status;
13722 _LT_EOF
13723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13724 (eval $ac_link) 2>&5
13725 ac_status=$?
13726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13727 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13728 (./conftest; exit; ) >&5 2>/dev/null
13729 lt_status=$?
13730 case x$lt_status in
13731 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13732 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13733 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13734 esac
13735 else :
13736 # compilation failed
13737 lt_cv_dlopen_self=no
13740 rm -fr conftest*
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13745 $as_echo "$lt_cv_dlopen_self" >&6; }
13747 if test "x$lt_cv_dlopen_self" = xyes; then
13748 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13750 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13751 if ${lt_cv_dlopen_self_static+:} false; then :
13752 $as_echo_n "(cached) " >&6
13753 else
13754 if test "$cross_compiling" = yes; then :
13755 lt_cv_dlopen_self_static=cross
13756 else
13757 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13758 lt_status=$lt_dlunknown
13759 cat > conftest.$ac_ext <<_LT_EOF
13760 #line $LINENO "configure"
13761 #include "confdefs.h"
13763 #if HAVE_DLFCN_H
13764 #include <dlfcn.h>
13765 #endif
13767 #include <stdio.h>
13769 #ifdef RTLD_GLOBAL
13770 # define LT_DLGLOBAL RTLD_GLOBAL
13771 #else
13772 # ifdef DL_GLOBAL
13773 # define LT_DLGLOBAL DL_GLOBAL
13774 # else
13775 # define LT_DLGLOBAL 0
13776 # endif
13777 #endif
13779 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13780 find out it does not work in some platform. */
13781 #ifndef LT_DLLAZY_OR_NOW
13782 # ifdef RTLD_LAZY
13783 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13784 # else
13785 # ifdef DL_LAZY
13786 # define LT_DLLAZY_OR_NOW DL_LAZY
13787 # else
13788 # ifdef RTLD_NOW
13789 # define LT_DLLAZY_OR_NOW RTLD_NOW
13790 # else
13791 # ifdef DL_NOW
13792 # define LT_DLLAZY_OR_NOW DL_NOW
13793 # else
13794 # define LT_DLLAZY_OR_NOW 0
13795 # endif
13796 # endif
13797 # endif
13798 # endif
13799 #endif
13801 /* When -fvisbility=hidden is used, assume the code has been annotated
13802 correspondingly for the symbols needed. */
13803 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13804 int fnord () __attribute__((visibility("default")));
13805 #endif
13807 int fnord () { return 42; }
13808 int main ()
13810 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13811 int status = $lt_dlunknown;
13813 if (self)
13815 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13816 else
13818 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13819 else puts (dlerror ());
13821 /* dlclose (self); */
13823 else
13824 puts (dlerror ());
13826 return status;
13828 _LT_EOF
13829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13830 (eval $ac_link) 2>&5
13831 ac_status=$?
13832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13833 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13834 (./conftest; exit; ) >&5 2>/dev/null
13835 lt_status=$?
13836 case x$lt_status in
13837 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13838 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13839 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13840 esac
13841 else :
13842 # compilation failed
13843 lt_cv_dlopen_self_static=no
13846 rm -fr conftest*
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13851 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13854 CPPFLAGS="$save_CPPFLAGS"
13855 LDFLAGS="$save_LDFLAGS"
13856 LIBS="$save_LIBS"
13858 esac
13860 case $lt_cv_dlopen_self in
13861 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13862 *) enable_dlopen_self=unknown ;;
13863 esac
13865 case $lt_cv_dlopen_self_static in
13866 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13867 *) enable_dlopen_self_static=unknown ;;
13868 esac
13887 striplib=
13888 old_striplib=
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13890 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13891 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13892 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13893 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13895 $as_echo "yes" >&6; }
13896 else
13897 # FIXME - insert some real tests, host_os isn't really good enough
13898 case $host_os in
13899 darwin*)
13900 if test -n "$STRIP" ; then
13901 striplib="$STRIP -x"
13902 old_striplib="$STRIP -S"
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13904 $as_echo "yes" >&6; }
13905 else
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13907 $as_echo "no" >&6; }
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912 $as_echo "no" >&6; }
13914 esac
13928 # Report which library types will actually be built
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13930 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13932 $as_echo "$can_build_shared" >&6; }
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13935 $as_echo_n "checking whether to build shared libraries... " >&6; }
13936 test "$can_build_shared" = "no" && enable_shared=no
13938 # On AIX, shared libraries and static libraries use the same namespace, and
13939 # are all built from PIC.
13940 case $host_os in
13941 aix3*)
13942 test "$enable_shared" = yes && enable_static=no
13943 if test -n "$RANLIB"; then
13944 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13945 postinstall_cmds='$RANLIB $lib'
13949 aix[4-9]*)
13950 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13951 test "$enable_shared" = yes && enable_static=no
13954 esac
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13956 $as_echo "$enable_shared" >&6; }
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13959 $as_echo_n "checking whether to build static libraries... " >&6; }
13960 # Make sure either enable_shared or enable_static is yes.
13961 test "$enable_shared" = yes || enable_static=yes
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13963 $as_echo "$enable_static" >&6; }
13969 ac_ext=c
13970 ac_cpp='$CPP $CPPFLAGS'
13971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13975 CC="$lt_save_CC"
13991 ac_config_commands="$ac_config_commands libtool"
13996 # Only expand once:
14002 if test -n "$ac_tool_prefix"; then
14003 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14004 set dummy ${ac_tool_prefix}ar; ac_word=$2
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14006 $as_echo_n "checking for $ac_word... " >&6; }
14007 if ${ac_cv_prog_AR+:} false; then :
14008 $as_echo_n "(cached) " >&6
14009 else
14010 if test -n "$AR"; then
14011 ac_cv_prog_AR="$AR" # Let the user override the test.
14012 else
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14016 IFS=$as_save_IFS
14017 test -z "$as_dir" && as_dir=.
14018 for ac_exec_ext in '' $ac_executable_extensions; do
14019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14020 ac_cv_prog_AR="${ac_tool_prefix}ar"
14021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14022 break 2
14024 done
14025 done
14026 IFS=$as_save_IFS
14030 AR=$ac_cv_prog_AR
14031 if test -n "$AR"; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14033 $as_echo "$AR" >&6; }
14034 else
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14036 $as_echo "no" >&6; }
14041 if test -z "$ac_cv_prog_AR"; then
14042 ac_ct_AR=$AR
14043 # Extract the first word of "ar", so it can be a program name with args.
14044 set dummy ar; ac_word=$2
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14046 $as_echo_n "checking for $ac_word... " >&6; }
14047 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14048 $as_echo_n "(cached) " >&6
14049 else
14050 if test -n "$ac_ct_AR"; then
14051 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14052 else
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14056 IFS=$as_save_IFS
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14060 ac_cv_prog_ac_ct_AR="ar"
14061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14062 break 2
14064 done
14065 done
14066 IFS=$as_save_IFS
14070 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14071 if test -n "$ac_ct_AR"; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14073 $as_echo "$ac_ct_AR" >&6; }
14074 else
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14079 if test "x$ac_ct_AR" = x; then
14080 AR="ar"
14081 else
14082 case $cross_compiling:$ac_tool_warned in
14083 yes:)
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14086 ac_tool_warned=yes ;;
14087 esac
14088 AR=$ac_ct_AR
14090 else
14091 AR="$ac_cv_prog_AR"
14096 if test "x$EMSCRIPTEN" = "x"; then :
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMX instructions set" >&5
14100 $as_echo_n "checking for MMX instructions set... " >&6; }
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14104 #pragma GCC target("mmx")
14105 #include <mmintrin.h>
14108 main ()
14110 __m64 x = _mm_setzero_si64();
14112 return 0;
14114 _ACEOF
14115 if ac_fn_c_try_compile "$LINENO"; then :
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14117 $as_echo "yes" >&6; }
14119 $as_echo "#define HAVE_MMINTRIN_H 1" >>confdefs.h
14121 else
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14123 $as_echo "no" >&6; }
14125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE2 instructions set" >&5
14128 $as_echo_n "checking for SSE2 instructions set... " >&6; }
14129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h. */
14132 #pragma GCC target("sse2")
14133 #include <emmintrin.h>
14136 main ()
14138 __m128d x = _mm_setzero_pd();
14140 return 0;
14142 _ACEOF
14143 if ac_fn_c_try_compile "$LINENO"; then :
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14145 $as_echo "yes" >&6; }
14147 $as_echo "#define HAVE_EMMINTRIN_H 1" >>confdefs.h
14149 else
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14151 $as_echo "no" >&6; }
14153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE3 instructions set" >&5
14156 $as_echo_n "checking for SSE3 instructions set... " >&6; }
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14160 #pragma GCC target("sse3")
14161 #include <pmmintrin.h>
14164 main ()
14166 __m128 x = _mm_addsub_ps(_mm_cvtpd_ps(_mm_setzero_pd()),
14167 _mm_cvtpd_ps(_mm_setzero_pd()));
14169 return 0;
14171 _ACEOF
14172 if ac_fn_c_try_compile "$LINENO"; then :
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14174 $as_echo "yes" >&6; }
14176 $as_echo "#define HAVE_PMMINTRIN_H 1" >>confdefs.h
14178 else
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14180 $as_echo "no" >&6; }
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14187 for ac_header in sys/mman.h
14188 do :
14189 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14190 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
14191 cat >>confdefs.h <<_ACEOF
14192 #define HAVE_SYS_MMAN_H 1
14193 _ACEOF
14197 done
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14202 $as_echo_n "checking for inline... " >&6; }
14203 if ${ac_cv_c_inline+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 ac_cv_c_inline=no
14207 for ac_kw in inline __inline__ __inline; do
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14210 #ifndef __cplusplus
14211 typedef int foo_t;
14212 static $ac_kw foo_t static_foo () {return 0; }
14213 $ac_kw foo_t foo () {return 0; }
14214 #endif
14216 _ACEOF
14217 if ac_fn_c_try_compile "$LINENO"; then :
14218 ac_cv_c_inline=$ac_kw
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14221 test "$ac_cv_c_inline" != no && break
14222 done
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14226 $as_echo "$ac_cv_c_inline" >&6; }
14228 case $ac_cv_c_inline in
14229 inline | yes) ;;
14231 case $ac_cv_c_inline in
14232 no) ac_val=;;
14233 *) ac_val=$ac_cv_c_inline;;
14234 esac
14235 cat >>confdefs.h <<_ACEOF
14236 #ifndef __cplusplus
14237 #define inline $ac_val
14238 #endif
14239 _ACEOF
14241 esac
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14244 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14245 if ${ac_cv_c_bigendian+:} false; then :
14246 $as_echo_n "(cached) " >&6
14247 else
14248 ac_cv_c_bigendian=unknown
14249 # See if we're dealing with a universal compiler.
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14252 #ifndef __APPLE_CC__
14253 not a universal capable compiler
14254 #endif
14255 typedef int dummy;
14257 _ACEOF
14258 if ac_fn_c_try_compile "$LINENO"; then :
14260 # Check for potential -arch flags. It is not universal unless
14261 # there are at least two -arch flags with different values.
14262 ac_arch=
14263 ac_prev=
14264 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14265 if test -n "$ac_prev"; then
14266 case $ac_word in
14267 i?86 | x86_64 | ppc | ppc64)
14268 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14269 ac_arch=$ac_word
14270 else
14271 ac_cv_c_bigendian=universal
14272 break
14275 esac
14276 ac_prev=
14277 elif test "x$ac_word" = "x-arch"; then
14278 ac_prev=arch
14280 done
14282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14283 if test $ac_cv_c_bigendian = unknown; then
14284 # See if sys/param.h defines the BYTE_ORDER macro.
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14287 #include <sys/types.h>
14288 #include <sys/param.h>
14291 main ()
14293 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14294 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14295 && LITTLE_ENDIAN)
14296 bogus endian macros
14297 #endif
14300 return 0;
14302 _ACEOF
14303 if ac_fn_c_try_compile "$LINENO"; then :
14304 # It does; now see whether it defined to BIG_ENDIAN or not.
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14307 #include <sys/types.h>
14308 #include <sys/param.h>
14311 main ()
14313 #if BYTE_ORDER != BIG_ENDIAN
14314 not big endian
14315 #endif
14318 return 0;
14320 _ACEOF
14321 if ac_fn_c_try_compile "$LINENO"; then :
14322 ac_cv_c_bigendian=yes
14323 else
14324 ac_cv_c_bigendian=no
14326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330 if test $ac_cv_c_bigendian = unknown; then
14331 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334 #include <limits.h>
14337 main ()
14339 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14340 bogus endian macros
14341 #endif
14344 return 0;
14346 _ACEOF
14347 if ac_fn_c_try_compile "$LINENO"; then :
14348 # It does; now see whether it defined to _BIG_ENDIAN or not.
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351 #include <limits.h>
14354 main ()
14356 #ifndef _BIG_ENDIAN
14357 not big endian
14358 #endif
14361 return 0;
14363 _ACEOF
14364 if ac_fn_c_try_compile "$LINENO"; then :
14365 ac_cv_c_bigendian=yes
14366 else
14367 ac_cv_c_bigendian=no
14369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373 if test $ac_cv_c_bigendian = unknown; then
14374 # Compile a test program.
14375 if test "$cross_compiling" = yes; then :
14376 # Try to guess by grepping values from an object file.
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379 short int ascii_mm[] =
14380 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14381 short int ascii_ii[] =
14382 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14383 int use_ascii (int i) {
14384 return ascii_mm[i] + ascii_ii[i];
14386 short int ebcdic_ii[] =
14387 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14388 short int ebcdic_mm[] =
14389 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14390 int use_ebcdic (int i) {
14391 return ebcdic_mm[i] + ebcdic_ii[i];
14393 extern int foo;
14396 main ()
14398 return use_ascii (foo) == use_ebcdic (foo);
14400 return 0;
14402 _ACEOF
14403 if ac_fn_c_try_compile "$LINENO"; then :
14404 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14405 ac_cv_c_bigendian=yes
14407 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14408 if test "$ac_cv_c_bigendian" = unknown; then
14409 ac_cv_c_bigendian=no
14410 else
14411 # finding both strings is unlikely to happen, but who knows?
14412 ac_cv_c_bigendian=unknown
14416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14417 else
14418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h. */
14420 $ac_includes_default
14422 main ()
14425 /* Are we little or big endian? From Harbison&Steele. */
14426 union
14428 long int l;
14429 char c[sizeof (long int)];
14430 } u;
14431 u.l = 1;
14432 return u.c[sizeof (long int) - 1] == 1;
14435 return 0;
14437 _ACEOF
14438 if ac_fn_c_try_run "$LINENO"; then :
14439 ac_cv_c_bigendian=no
14440 else
14441 ac_cv_c_bigendian=yes
14443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14444 conftest.$ac_objext conftest.beam conftest.$ac_ext
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14450 $as_echo "$ac_cv_c_bigendian" >&6; }
14451 case $ac_cv_c_bigendian in #(
14452 yes)
14454 $as_echo "#define NATIVE_BIG_ENDIAN 1" >>confdefs.h
14455 ;; #(
14458 $as_echo "#define NATIVE_LITTLE_ENDIAN 1" >>confdefs.h
14459 ;; #(
14460 universal)
14461 as_fn_error $? "universal endianess is not supported - compile separately and use lipo(1)" "$LINENO" 5
14463 ;; #(
14465 as_fn_error $? "unknown endianess" "$LINENO" 5 ;;
14466 esac
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __STDC_LIMIT_MACROS is required" >&5
14470 $as_echo_n "checking whether __STDC_LIMIT_MACROS is required... " >&6; }
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14474 #include <limits.h>
14475 #include <stdint.h>
14478 main ()
14481 (void) SIZE_MAX;
14482 (void) UINT64_MAX;
14485 return 0;
14487 _ACEOF
14488 if ac_fn_c_try_compile "$LINENO"; then :
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14491 else
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14493 $as_echo "yes" >&6; }
14494 CPPFLAGS="$CPPFLAGS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS"
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14499 HAVE_AMD64_ASM_V=0
14500 if test "$enable_asm" != "no"; then :
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can assemble basic amd64 code" >&5
14503 $as_echo_n "checking whether we can assemble basic amd64 code... " >&6; }
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14509 main ()
14512 #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
14513 /* neat */
14514 #else
14515 # error !amd64
14516 #endif
14517 __asm__("pxor %xmm12,%xmm6");
14520 return 0;
14522 _ACEOF
14523 if ac_fn_c_try_compile "$LINENO"; then :
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14525 $as_echo "yes" >&6; }
14527 $as_echo "#define HAVE_AMD64_ASM 1" >>confdefs.h
14529 HAVE_AMD64_ASM_V=1
14530 else
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14532 $as_echo "no" >&6; }
14534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14537 if test $HAVE_AMD64_ASM_V = 1; then
14538 HAVE_AMD64_ASM_TRUE=
14539 HAVE_AMD64_ASM_FALSE='#'
14540 else
14541 HAVE_AMD64_ASM_TRUE='#'
14542 HAVE_AMD64_ASM_FALSE=
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit arithmetic" >&5
14548 $as_echo_n "checking for 128-bit arithmetic... " >&6; }
14549 HAVE_TI_MODE_V=0
14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14553 #ifndef __GNUC__
14554 # error mode(TI) is a gcc extension
14555 #endif
14556 #if defined(__clang__) && !defined(__x86_64__)
14557 # error clang doesn't properly compile smult_curve25519_donna_c64.c
14558 #endif
14559 #ifndef NATIVE_LITTLE_ENDIAN
14560 # error donna_c64 currently requires a little endian CPU
14561 #endif
14562 #include <stdint.h>
14563 typedef unsigned uint128_t __attribute__((mode(TI)));
14564 void fcontract(uint128_t *t) {
14565 *t += 0x8000000000000 - 1;
14569 main ()
14572 (void) fcontract;
14575 return 0;
14577 _ACEOF
14578 if ac_fn_c_try_compile "$LINENO"; then :
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14580 $as_echo "yes" >&6; }
14582 $as_echo "#define HAVE_TI_MODE 1" >>confdefs.h
14584 HAVE_TI_MODE_V=1
14585 else
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14587 $as_echo "no" >&6; }
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590 if test $HAVE_TI_MODE_V = 1; then
14591 HAVE_TI_MODE_TRUE=
14592 HAVE_TI_MODE_FALSE='#'
14593 else
14594 HAVE_TI_MODE_TRUE='#'
14595 HAVE_TI_MODE_FALSE=
14600 HAVE_CPUID_V=0
14601 if test "$enable_asm" != "no"; then :
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpuid instruction" >&5
14604 $as_echo_n "checking for cpuid instruction... " >&6; }
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14609 main ()
14612 unsigned int cpu_info[4];
14613 __asm__ __volatile__ ("xchgl %%ebx, %k1; cpuid; xchgl %%ebx, %k1" :
14614 "=a" (cpu_info[0]), "=&r" (cpu_info[1]),
14615 "=c" (cpu_info[2]), "=d" (cpu_info[3]) :
14616 "0" (0U), "2" (0U));
14619 return 0;
14621 _ACEOF
14622 if ac_fn_c_try_compile "$LINENO"; then :
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14624 $as_echo "yes" >&6; }
14626 $as_echo "#define HAVE_CPUID 1" >>confdefs.h
14628 HAVE_CPUID_V=1
14629 else
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14631 $as_echo "no" >&6; }
14633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638 case $host_cpu in #(
14639 i*86 | x86_64 | powerpc* | s390*) :
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: data alignment is not required on this target" >&5
14641 $as_echo "$as_me: data alignment is not required on this target" >&6;} ;; #(
14642 *) :
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: data alignment is required on this target" >&5
14644 $as_echo "$as_me: data alignment is required on this target" >&6;}
14646 $as_echo "#define CPU_ALIGNED_ACCESS_REQUIRED 1" >>confdefs.h
14648 ;; #(
14649 *) :
14651 esac
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset_s" >&5
14654 $as_echo_n "checking for memset_s... " >&6; }
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14658 #include <string.h>
14661 main ()
14664 char dummy[42];
14665 (void) memset_s(dummy, (rsize_t) sizeof dummy, 0, (rsize_t) sizeof dummy);
14668 return 0;
14670 _ACEOF
14671 if ac_fn_c_try_compile "$LINENO"; then :
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14673 $as_echo "yes" >&6; }
14675 $as_echo "#define HAVE_MEMSET_S 1" >>confdefs.h
14677 else
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14679 $as_echo "no" >&6; }
14681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14685 if test "x$ac_cv_func_clock_gettime" = xyes; then :
14687 else
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
14689 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
14690 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
14691 $as_echo_n "(cached) " >&6
14692 else
14693 ac_check_lib_save_LIBS=$LIBS
14694 LIBS="-lrt $LIBS"
14695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696 /* end confdefs.h. */
14698 /* Override any GCC internal prototype to avoid an error.
14699 Use char because int might match the return type of a GCC
14700 builtin and then its argument prototype would still apply. */
14701 #ifdef __cplusplus
14702 extern "C"
14703 #endif
14704 char clock_gettime ();
14706 main ()
14708 return clock_gettime ();
14710 return 0;
14712 _ACEOF
14713 if ac_fn_c_try_link "$LINENO"; then :
14714 ac_cv_lib_rt_clock_gettime=yes
14715 else
14716 ac_cv_lib_rt_clock_gettime=no
14718 rm -f core conftest.err conftest.$ac_objext \
14719 conftest$ac_exeext conftest.$ac_ext
14720 LIBS=$ac_check_lib_save_LIBS
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
14723 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
14724 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
14725 cat >>confdefs.h <<_ACEOF
14726 #define HAVE_LIBRT 1
14727 _ACEOF
14729 LIBS="-lrt $LIBS"
14735 ac_fn_c_check_func "$LINENO" "fegetenv" "ac_cv_func_fegetenv"
14736 if test "x$ac_cv_func_fegetenv" = xyes; then :
14738 else
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fegetenv in -lm" >&5
14740 $as_echo_n "checking for fegetenv in -lm... " >&6; }
14741 if ${ac_cv_lib_m_fegetenv+:} false; then :
14742 $as_echo_n "(cached) " >&6
14743 else
14744 ac_check_lib_save_LIBS=$LIBS
14745 LIBS="-lm $LIBS"
14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14749 /* Override any GCC internal prototype to avoid an error.
14750 Use char because int might match the return type of a GCC
14751 builtin and then its argument prototype would still apply. */
14752 #ifdef __cplusplus
14753 extern "C"
14754 #endif
14755 char fegetenv ();
14757 main ()
14759 return fegetenv ();
14761 return 0;
14763 _ACEOF
14764 if ac_fn_c_try_link "$LINENO"; then :
14765 ac_cv_lib_m_fegetenv=yes
14766 else
14767 ac_cv_lib_m_fegetenv=no
14769 rm -f core conftest.err conftest.$ac_objext \
14770 conftest$ac_exeext conftest.$ac_ext
14771 LIBS=$ac_check_lib_save_LIBS
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fegetenv" >&5
14774 $as_echo "$ac_cv_lib_m_fegetenv" >&6; }
14775 if test "x$ac_cv_lib_m_fegetenv" = xyes; then :
14776 cat >>confdefs.h <<_ACEOF
14777 #define HAVE_LIBM 1
14778 _ACEOF
14780 LIBS="-lm $LIBS"
14787 if test "x$EMSCRIPTEN" = "x"; then :
14789 for ac_func in arc4random arc4random_buf
14790 do :
14791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14792 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14793 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14794 cat >>confdefs.h <<_ACEOF
14795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14796 _ACEOF
14799 done
14803 for ac_func in mlock VirtualLock
14804 do :
14805 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14806 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14807 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14808 cat >>confdefs.h <<_ACEOF
14809 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14810 _ACEOF
14813 done
14815 for ac_func in SecureZeroMemory explicit_bzero posix_memalign
14816 do :
14817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14818 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14819 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14820 cat >>confdefs.h <<_ACEOF
14821 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14822 _ACEOF
14825 done
14832 enable_win32_dll=yes
14834 case $host in
14835 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
14836 if test -n "$ac_tool_prefix"; then
14837 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14838 set dummy ${ac_tool_prefix}as; ac_word=$2
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14840 $as_echo_n "checking for $ac_word... " >&6; }
14841 if ${ac_cv_prog_AS+:} false; then :
14842 $as_echo_n "(cached) " >&6
14843 else
14844 if test -n "$AS"; then
14845 ac_cv_prog_AS="$AS" # Let the user override the test.
14846 else
14847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848 for as_dir in $PATH
14850 IFS=$as_save_IFS
14851 test -z "$as_dir" && as_dir=.
14852 for ac_exec_ext in '' $ac_executable_extensions; do
14853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14854 ac_cv_prog_AS="${ac_tool_prefix}as"
14855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14856 break 2
14858 done
14859 done
14860 IFS=$as_save_IFS
14864 AS=$ac_cv_prog_AS
14865 if test -n "$AS"; then
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14867 $as_echo "$AS" >&6; }
14868 else
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14870 $as_echo "no" >&6; }
14875 if test -z "$ac_cv_prog_AS"; then
14876 ac_ct_AS=$AS
14877 # Extract the first word of "as", so it can be a program name with args.
14878 set dummy as; ac_word=$2
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14880 $as_echo_n "checking for $ac_word... " >&6; }
14881 if ${ac_cv_prog_ac_ct_AS+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 if test -n "$ac_ct_AS"; then
14885 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14886 else
14887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14888 for as_dir in $PATH
14890 IFS=$as_save_IFS
14891 test -z "$as_dir" && as_dir=.
14892 for ac_exec_ext in '' $ac_executable_extensions; do
14893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14894 ac_cv_prog_ac_ct_AS="as"
14895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14896 break 2
14898 done
14899 done
14900 IFS=$as_save_IFS
14904 ac_ct_AS=$ac_cv_prog_ac_ct_AS
14905 if test -n "$ac_ct_AS"; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14907 $as_echo "$ac_ct_AS" >&6; }
14908 else
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14910 $as_echo "no" >&6; }
14913 if test "x$ac_ct_AS" = x; then
14914 AS="false"
14915 else
14916 case $cross_compiling:$ac_tool_warned in
14917 yes:)
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14920 ac_tool_warned=yes ;;
14921 esac
14922 AS=$ac_ct_AS
14924 else
14925 AS="$ac_cv_prog_AS"
14928 if test -n "$ac_tool_prefix"; then
14929 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14930 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14932 $as_echo_n "checking for $ac_word... " >&6; }
14933 if ${ac_cv_prog_DLLTOOL+:} false; then :
14934 $as_echo_n "(cached) " >&6
14935 else
14936 if test -n "$DLLTOOL"; then
14937 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14938 else
14939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14940 for as_dir in $PATH
14942 IFS=$as_save_IFS
14943 test -z "$as_dir" && as_dir=.
14944 for ac_exec_ext in '' $ac_executable_extensions; do
14945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14946 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14948 break 2
14950 done
14951 done
14952 IFS=$as_save_IFS
14956 DLLTOOL=$ac_cv_prog_DLLTOOL
14957 if test -n "$DLLTOOL"; then
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14959 $as_echo "$DLLTOOL" >&6; }
14960 else
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14962 $as_echo "no" >&6; }
14967 if test -z "$ac_cv_prog_DLLTOOL"; then
14968 ac_ct_DLLTOOL=$DLLTOOL
14969 # Extract the first word of "dlltool", so it can be a program name with args.
14970 set dummy dlltool; ac_word=$2
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14972 $as_echo_n "checking for $ac_word... " >&6; }
14973 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 if test -n "$ac_ct_DLLTOOL"; then
14977 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14978 else
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14982 IFS=$as_save_IFS
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14988 break 2
14990 done
14991 done
14992 IFS=$as_save_IFS
14996 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14997 if test -n "$ac_ct_DLLTOOL"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14999 $as_echo "$ac_ct_DLLTOOL" >&6; }
15000 else
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002 $as_echo "no" >&6; }
15005 if test "x$ac_ct_DLLTOOL" = x; then
15006 DLLTOOL="false"
15007 else
15008 case $cross_compiling:$ac_tool_warned in
15009 yes:)
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15012 ac_tool_warned=yes ;;
15013 esac
15014 DLLTOOL=$ac_ct_DLLTOOL
15016 else
15017 DLLTOOL="$ac_cv_prog_DLLTOOL"
15020 if test -n "$ac_tool_prefix"; then
15021 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
15022 set dummy ${ac_tool_prefix}objdump; ac_word=$2
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15024 $as_echo_n "checking for $ac_word... " >&6; }
15025 if ${ac_cv_prog_OBJDUMP+:} false; then :
15026 $as_echo_n "(cached) " >&6
15027 else
15028 if test -n "$OBJDUMP"; then
15029 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
15030 else
15031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15032 for as_dir in $PATH
15034 IFS=$as_save_IFS
15035 test -z "$as_dir" && as_dir=.
15036 for ac_exec_ext in '' $ac_executable_extensions; do
15037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15038 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
15039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15040 break 2
15042 done
15043 done
15044 IFS=$as_save_IFS
15048 OBJDUMP=$ac_cv_prog_OBJDUMP
15049 if test -n "$OBJDUMP"; then
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
15051 $as_echo "$OBJDUMP" >&6; }
15052 else
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054 $as_echo "no" >&6; }
15059 if test -z "$ac_cv_prog_OBJDUMP"; then
15060 ac_ct_OBJDUMP=$OBJDUMP
15061 # Extract the first word of "objdump", so it can be a program name with args.
15062 set dummy objdump; ac_word=$2
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15064 $as_echo_n "checking for $ac_word... " >&6; }
15065 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
15066 $as_echo_n "(cached) " >&6
15067 else
15068 if test -n "$ac_ct_OBJDUMP"; then
15069 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
15070 else
15071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15072 for as_dir in $PATH
15074 IFS=$as_save_IFS
15075 test -z "$as_dir" && as_dir=.
15076 for ac_exec_ext in '' $ac_executable_extensions; do
15077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15078 ac_cv_prog_ac_ct_OBJDUMP="objdump"
15079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15080 break 2
15082 done
15083 done
15084 IFS=$as_save_IFS
15088 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
15089 if test -n "$ac_ct_OBJDUMP"; then
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
15091 $as_echo "$ac_ct_OBJDUMP" >&6; }
15092 else
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15094 $as_echo "no" >&6; }
15097 if test "x$ac_ct_OBJDUMP" = x; then
15098 OBJDUMP="false"
15099 else
15100 case $cross_compiling:$ac_tool_warned in
15101 yes:)
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15104 ac_tool_warned=yes ;;
15105 esac
15106 OBJDUMP=$ac_ct_OBJDUMP
15108 else
15109 OBJDUMP="$ac_cv_prog_OBJDUMP"
15113 esac
15115 test -z "$AS" && AS=as
15121 test -z "$DLLTOOL" && DLLTOOL=dlltool
15124 test -z "$OBJDUMP" && OBJDUMP=objdump
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
15131 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
15132 if ${gl_cv_ld_output_def+:} false; then :
15133 $as_echo_n "(cached) " >&6
15134 else
15135 if test "$enable_shared" = no; then
15136 gl_cv_ld_output_def="not needed, shared libraries are disabled"
15137 else
15138 gl_ldflags_save=$LDFLAGS
15139 LDFLAGS="-Wl,--output-def,conftest.def"
15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15144 main ()
15148 return 0;
15150 _ACEOF
15151 if ac_fn_c_try_link "$LINENO"; then :
15152 gl_cv_ld_output_def=yes
15153 else
15154 gl_cv_ld_output_def=no
15156 rm -f core conftest.err conftest.$ac_objext \
15157 conftest$ac_exeext conftest.$ac_ext
15158 rm -f conftest.def
15159 LDFLAGS="$gl_ldflags_save"
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
15163 $as_echo "$gl_cv_ld_output_def" >&6; }
15164 if test "x$gl_cv_ld_output_def" = "xyes"; then
15165 HAVE_LD_OUTPUT_DEF_TRUE=
15166 HAVE_LD_OUTPUT_DEF_FALSE='#'
15167 else
15168 HAVE_LD_OUTPUT_DEF_TRUE='#'
15169 HAVE_LD_OUTPUT_DEF_FALSE=
15177 if test "x$PKG_CONFIG" != "x"; then :
15179 ac_config_files="$ac_config_files libsodium.pc"
15183 ac_config_files="$ac_config_files Makefile dist-build/Makefile msvc-scripts/Makefile src/Makefile src/libsodium/Makefile src/libsodium/include/Makefile src/libsodium/include/sodium/version.h test/default/Makefile test/Makefile"
15185 cat >confcache <<\_ACEOF
15186 # This file is a shell script that caches the results of configure
15187 # tests run on this system so they can be shared between configure
15188 # scripts and configure runs, see configure's option --config-cache.
15189 # It is not useful on other systems. If it contains results you don't
15190 # want to keep, you may remove or edit it.
15192 # config.status only pays attention to the cache file if you give it
15193 # the --recheck option to rerun configure.
15195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15197 # following values.
15199 _ACEOF
15201 # The following way of writing the cache mishandles newlines in values,
15202 # but we know of no workaround that is simple, portable, and efficient.
15203 # So, we kill variables containing newlines.
15204 # Ultrix sh set writes to stderr and can't be redirected directly,
15205 # and sets the high bit in the cache file unless we assign to the vars.
15207 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15208 eval ac_val=\$$ac_var
15209 case $ac_val in #(
15210 *${as_nl}*)
15211 case $ac_var in #(
15212 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15213 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15214 esac
15215 case $ac_var in #(
15216 _ | IFS | as_nl) ;; #(
15217 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15218 *) { eval $ac_var=; unset $ac_var;} ;;
15219 esac ;;
15220 esac
15221 done
15223 (set) 2>&1 |
15224 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15225 *${as_nl}ac_space=\ *)
15226 # `set' does not quote correctly, so add quotes: double-quote
15227 # substitution turns \\\\ into \\, and sed turns \\ into \.
15228 sed -n \
15229 "s/'/'\\\\''/g;
15230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15231 ;; #(
15233 # `set' quotes correctly as required by POSIX, so do not add quotes.
15234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15236 esac |
15237 sort
15239 sed '
15240 /^ac_cv_env_/b end
15241 t clear
15242 :clear
15243 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15244 t end
15245 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15246 :end' >>confcache
15247 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15248 if test -w "$cache_file"; then
15249 if test "x$cache_file" != "x/dev/null"; then
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15251 $as_echo "$as_me: updating cache $cache_file" >&6;}
15252 if test ! -f "$cache_file" || test -h "$cache_file"; then
15253 cat confcache >"$cache_file"
15254 else
15255 case $cache_file in #(
15256 */* | ?:*)
15257 mv -f confcache "$cache_file"$$ &&
15258 mv -f "$cache_file"$$ "$cache_file" ;; #(
15260 mv -f confcache "$cache_file" ;;
15261 esac
15264 else
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15266 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15269 rm -f confcache
15271 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15272 # Let make expand exec_prefix.
15273 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15275 # Transform confdefs.h into DEFS.
15276 # Protect against shell expansion while executing Makefile rules.
15277 # Protect against Makefile macro expansion.
15279 # If the first sed substitution is executed (which looks for macros that
15280 # take arguments), then branch to the quote section. Otherwise,
15281 # look for a macro that doesn't take arguments.
15282 ac_script='
15283 :mline
15284 /\\$/{
15286 s,\\\n,,
15287 b mline
15289 t clear
15290 :clear
15291 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15292 t quote
15293 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15294 t quote
15295 b any
15296 :quote
15297 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15298 s/\[/\\&/g
15299 s/\]/\\&/g
15300 s/\$/$$/g
15302 :any
15305 s/^\n//
15306 s/\n/ /g
15310 DEFS=`sed -n "$ac_script" confdefs.h`
15313 ac_libobjs=
15314 ac_ltlibobjs=
15316 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15317 # 1. Remove the extension, and $U if already installed.
15318 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15319 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15320 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15321 # will be set to the directory where LIBOBJS objects are built.
15322 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15323 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15324 done
15325 LIBOBJS=$ac_libobjs
15327 LTLIBOBJS=$ac_ltlibobjs
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15331 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15332 if test -n "$am_sleep_pid"; then
15333 # Hide warnings about reused PIDs.
15334 wait $am_sleep_pid 2>/dev/null
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15337 $as_echo "done" >&6; }
15338 if test -n "$EXEEXT"; then
15339 am__EXEEXT_TRUE=
15340 am__EXEEXT_FALSE='#'
15341 else
15342 am__EXEEXT_TRUE='#'
15343 am__EXEEXT_FALSE=
15346 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15347 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15350 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15351 as_fn_error $? "conditional \"AMDEP\" was never defined.
15352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15354 if test -z "${HAVE_PKG_CONFIG_TRUE}" && test -z "${HAVE_PKG_CONFIG_FALSE}"; then
15355 as_fn_error $? "conditional \"HAVE_PKG_CONFIG\" was never defined.
15356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15358 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15359 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15362 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15363 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15366 if test -z "${HAVE_AMD64_ASM_TRUE}" && test -z "${HAVE_AMD64_ASM_FALSE}"; then
15367 as_fn_error $? "conditional \"HAVE_AMD64_ASM\" was never defined.
15368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15370 if test -z "${HAVE_TI_MODE_TRUE}" && test -z "${HAVE_TI_MODE_FALSE}"; then
15371 as_fn_error $? "conditional \"HAVE_TI_MODE\" was never defined.
15372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15374 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
15375 as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
15376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15379 : "${CONFIG_STATUS=./config.status}"
15380 ac_write_fail=0
15381 ac_clean_files_save=$ac_clean_files
15382 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15384 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15385 as_write_fail=0
15386 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15387 #! $SHELL
15388 # Generated by $as_me.
15389 # Run this file to recreate the current configuration.
15390 # Compiler output produced by configure, useful for debugging
15391 # configure, is in config.log if it exists.
15393 debug=false
15394 ac_cs_recheck=false
15395 ac_cs_silent=false
15397 SHELL=\${CONFIG_SHELL-$SHELL}
15398 export SHELL
15399 _ASEOF
15400 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15401 ## -------------------- ##
15402 ## M4sh Initialization. ##
15403 ## -------------------- ##
15405 # Be more Bourne compatible
15406 DUALCASE=1; export DUALCASE # for MKS sh
15407 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15408 emulate sh
15409 NULLCMD=:
15410 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15411 # is contrary to our usage. Disable this feature.
15412 alias -g '${1+"$@"}'='"$@"'
15413 setopt NO_GLOB_SUBST
15414 else
15415 case `(set -o) 2>/dev/null` in #(
15416 *posix*) :
15417 set -o posix ;; #(
15418 *) :
15420 esac
15424 as_nl='
15426 export as_nl
15427 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15428 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15429 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15430 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15431 # Prefer a ksh shell builtin over an external printf program on Solaris,
15432 # but without wasting forks for bash or zsh.
15433 if test -z "$BASH_VERSION$ZSH_VERSION" \
15434 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15435 as_echo='print -r --'
15436 as_echo_n='print -rn --'
15437 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15438 as_echo='printf %s\n'
15439 as_echo_n='printf %s'
15440 else
15441 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15442 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15443 as_echo_n='/usr/ucb/echo -n'
15444 else
15445 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15446 as_echo_n_body='eval
15447 arg=$1;
15448 case $arg in #(
15449 *"$as_nl"*)
15450 expr "X$arg" : "X\\(.*\\)$as_nl";
15451 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15452 esac;
15453 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15455 export as_echo_n_body
15456 as_echo_n='sh -c $as_echo_n_body as_echo'
15458 export as_echo_body
15459 as_echo='sh -c $as_echo_body as_echo'
15462 # The user is always right.
15463 if test "${PATH_SEPARATOR+set}" != set; then
15464 PATH_SEPARATOR=:
15465 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15466 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15467 PATH_SEPARATOR=';'
15472 # IFS
15473 # We need space, tab and new line, in precisely that order. Quoting is
15474 # there to prevent editors from complaining about space-tab.
15475 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15476 # splitting by setting IFS to empty value.)
15477 IFS=" "" $as_nl"
15479 # Find who we are. Look in the path if we contain no directory separator.
15480 as_myself=
15481 case $0 in #((
15482 *[\\/]* ) as_myself=$0 ;;
15483 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15484 for as_dir in $PATH
15486 IFS=$as_save_IFS
15487 test -z "$as_dir" && as_dir=.
15488 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15489 done
15490 IFS=$as_save_IFS
15493 esac
15494 # We did not find ourselves, most probably we were run as `sh COMMAND'
15495 # in which case we are not to be found in the path.
15496 if test "x$as_myself" = x; then
15497 as_myself=$0
15499 if test ! -f "$as_myself"; then
15500 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15501 exit 1
15504 # Unset variables that we do not need and which cause bugs (e.g. in
15505 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15506 # suppresses any "Segmentation fault" message there. '((' could
15507 # trigger a bug in pdksh 5.2.14.
15508 for as_var in BASH_ENV ENV MAIL MAILPATH
15509 do eval test x\${$as_var+set} = xset \
15510 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15511 done
15512 PS1='$ '
15513 PS2='> '
15514 PS4='+ '
15516 # NLS nuisances.
15517 LC_ALL=C
15518 export LC_ALL
15519 LANGUAGE=C
15520 export LANGUAGE
15522 # CDPATH.
15523 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15526 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15527 # ----------------------------------------
15528 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15529 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15530 # script with STATUS, using 1 if that was 0.
15531 as_fn_error ()
15533 as_status=$1; test $as_status -eq 0 && as_status=1
15534 if test "$4"; then
15535 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15536 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15538 $as_echo "$as_me: error: $2" >&2
15539 as_fn_exit $as_status
15540 } # as_fn_error
15543 # as_fn_set_status STATUS
15544 # -----------------------
15545 # Set $? to STATUS, without forking.
15546 as_fn_set_status ()
15548 return $1
15549 } # as_fn_set_status
15551 # as_fn_exit STATUS
15552 # -----------------
15553 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15554 as_fn_exit ()
15556 set +e
15557 as_fn_set_status $1
15558 exit $1
15559 } # as_fn_exit
15561 # as_fn_unset VAR
15562 # ---------------
15563 # Portably unset VAR.
15564 as_fn_unset ()
15566 { eval $1=; unset $1;}
15568 as_unset=as_fn_unset
15569 # as_fn_append VAR VALUE
15570 # ----------------------
15571 # Append the text in VALUE to the end of the definition contained in VAR. Take
15572 # advantage of any shell optimizations that allow amortized linear growth over
15573 # repeated appends, instead of the typical quadratic growth present in naive
15574 # implementations.
15575 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15576 eval 'as_fn_append ()
15578 eval $1+=\$2
15580 else
15581 as_fn_append ()
15583 eval $1=\$$1\$2
15585 fi # as_fn_append
15587 # as_fn_arith ARG...
15588 # ------------------
15589 # Perform arithmetic evaluation on the ARGs, and store the result in the
15590 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15591 # must be portable across $(()) and expr.
15592 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15593 eval 'as_fn_arith ()
15595 as_val=$(( $* ))
15597 else
15598 as_fn_arith ()
15600 as_val=`expr "$@" || test $? -eq 1`
15602 fi # as_fn_arith
15605 if expr a : '\(a\)' >/dev/null 2>&1 &&
15606 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15607 as_expr=expr
15608 else
15609 as_expr=false
15612 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15613 as_basename=basename
15614 else
15615 as_basename=false
15618 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15619 as_dirname=dirname
15620 else
15621 as_dirname=false
15624 as_me=`$as_basename -- "$0" ||
15625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15626 X"$0" : 'X\(//\)$' \| \
15627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15628 $as_echo X/"$0" |
15629 sed '/^.*\/\([^/][^/]*\)\/*$/{
15630 s//\1/
15633 /^X\/\(\/\/\)$/{
15634 s//\1/
15637 /^X\/\(\/\).*/{
15638 s//\1/
15641 s/.*/./; q'`
15643 # Avoid depending upon Character Ranges.
15644 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15645 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15646 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15647 as_cr_digits='0123456789'
15648 as_cr_alnum=$as_cr_Letters$as_cr_digits
15650 ECHO_C= ECHO_N= ECHO_T=
15651 case `echo -n x` in #(((((
15652 -n*)
15653 case `echo 'xy\c'` in
15654 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15655 xy) ECHO_C='\c';;
15656 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15657 ECHO_T=' ';;
15658 esac;;
15660 ECHO_N='-n';;
15661 esac
15663 rm -f conf$$ conf$$.exe conf$$.file
15664 if test -d conf$$.dir; then
15665 rm -f conf$$.dir/conf$$.file
15666 else
15667 rm -f conf$$.dir
15668 mkdir conf$$.dir 2>/dev/null
15670 if (echo >conf$$.file) 2>/dev/null; then
15671 if ln -s conf$$.file conf$$ 2>/dev/null; then
15672 as_ln_s='ln -s'
15673 # ... but there are two gotchas:
15674 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15675 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15676 # In both cases, we have to default to `cp -pR'.
15677 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15678 as_ln_s='cp -pR'
15679 elif ln conf$$.file conf$$ 2>/dev/null; then
15680 as_ln_s=ln
15681 else
15682 as_ln_s='cp -pR'
15684 else
15685 as_ln_s='cp -pR'
15687 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15688 rmdir conf$$.dir 2>/dev/null
15691 # as_fn_mkdir_p
15692 # -------------
15693 # Create "$as_dir" as a directory, including parents if necessary.
15694 as_fn_mkdir_p ()
15697 case $as_dir in #(
15698 -*) as_dir=./$as_dir;;
15699 esac
15700 test -d "$as_dir" || eval $as_mkdir_p || {
15701 as_dirs=
15702 while :; do
15703 case $as_dir in #(
15704 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15705 *) as_qdir=$as_dir;;
15706 esac
15707 as_dirs="'$as_qdir' $as_dirs"
15708 as_dir=`$as_dirname -- "$as_dir" ||
15709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15710 X"$as_dir" : 'X\(//\)[^/]' \| \
15711 X"$as_dir" : 'X\(//\)$' \| \
15712 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15713 $as_echo X"$as_dir" |
15714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15715 s//\1/
15718 /^X\(\/\/\)[^/].*/{
15719 s//\1/
15722 /^X\(\/\/\)$/{
15723 s//\1/
15726 /^X\(\/\).*/{
15727 s//\1/
15730 s/.*/./; q'`
15731 test -d "$as_dir" && break
15732 done
15733 test -z "$as_dirs" || eval "mkdir $as_dirs"
15734 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15737 } # as_fn_mkdir_p
15738 if mkdir -p . 2>/dev/null; then
15739 as_mkdir_p='mkdir -p "$as_dir"'
15740 else
15741 test -d ./-p && rmdir ./-p
15742 as_mkdir_p=false
15746 # as_fn_executable_p FILE
15747 # -----------------------
15748 # Test if FILE is an executable regular file.
15749 as_fn_executable_p ()
15751 test -f "$1" && test -x "$1"
15752 } # as_fn_executable_p
15753 as_test_x='test -x'
15754 as_executable_p=as_fn_executable_p
15756 # Sed expression to map a string onto a valid CPP name.
15757 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15759 # Sed expression to map a string onto a valid variable name.
15760 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15763 exec 6>&1
15764 ## ----------------------------------- ##
15765 ## Main body of $CONFIG_STATUS script. ##
15766 ## ----------------------------------- ##
15767 _ASEOF
15768 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15771 # Save the log message, to keep $0 and so on meaningful, and to
15772 # report actual input values of CONFIG_FILES etc. instead of their
15773 # values after options handling.
15774 ac_log="
15775 This file was extended by libsodium $as_me 0.5.0, which was
15776 generated by GNU Autoconf 2.69. Invocation command line was
15778 CONFIG_FILES = $CONFIG_FILES
15779 CONFIG_HEADERS = $CONFIG_HEADERS
15780 CONFIG_LINKS = $CONFIG_LINKS
15781 CONFIG_COMMANDS = $CONFIG_COMMANDS
15782 $ $0 $@
15784 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15787 _ACEOF
15789 case $ac_config_files in *"
15790 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15791 esac
15795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15796 # Files that config.status was made for.
15797 config_files="$ac_config_files"
15798 config_commands="$ac_config_commands"
15800 _ACEOF
15802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15803 ac_cs_usage="\
15804 \`$as_me' instantiates files and other configuration actions
15805 from templates according to the current configuration. Unless the files
15806 and actions are specified as TAGs, all are instantiated by default.
15808 Usage: $0 [OPTION]... [TAG]...
15810 -h, --help print this help, then exit
15811 -V, --version print version number and configuration settings, then exit
15812 --config print configuration, then exit
15813 -q, --quiet, --silent
15814 do not print progress messages
15815 -d, --debug don't remove temporary files
15816 --recheck update $as_me by reconfiguring in the same conditions
15817 --file=FILE[:TEMPLATE]
15818 instantiate the configuration file FILE
15820 Configuration files:
15821 $config_files
15823 Configuration commands:
15824 $config_commands
15826 Report bugs to <https://github.com/jedisct1/libsodium/issues>.
15827 libsodium home page: <https://github.com/jedisct1/libsodium>."
15829 _ACEOF
15830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15831 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15832 ac_cs_version="\\
15833 libsodium config.status 0.5.0
15834 configured by $0, generated by GNU Autoconf 2.69,
15835 with options \\"\$ac_cs_config\\"
15837 Copyright (C) 2012 Free Software Foundation, Inc.
15838 This config.status script is free software; the Free Software Foundation
15839 gives unlimited permission to copy, distribute and modify it."
15841 ac_pwd='$ac_pwd'
15842 srcdir='$srcdir'
15843 INSTALL='$INSTALL'
15844 MKDIR_P='$MKDIR_P'
15845 AWK='$AWK'
15846 test -n "\$AWK" || AWK=awk
15847 _ACEOF
15849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15850 # The default lists apply if the user does not specify any file.
15851 ac_need_defaults=:
15852 while test $# != 0
15854 case $1 in
15855 --*=?*)
15856 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15857 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15858 ac_shift=:
15860 --*=)
15861 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15862 ac_optarg=
15863 ac_shift=:
15866 ac_option=$1
15867 ac_optarg=$2
15868 ac_shift=shift
15870 esac
15872 case $ac_option in
15873 # Handling of the options.
15874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15875 ac_cs_recheck=: ;;
15876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15877 $as_echo "$ac_cs_version"; exit ;;
15878 --config | --confi | --conf | --con | --co | --c )
15879 $as_echo "$ac_cs_config"; exit ;;
15880 --debug | --debu | --deb | --de | --d | -d )
15881 debug=: ;;
15882 --file | --fil | --fi | --f )
15883 $ac_shift
15884 case $ac_optarg in
15885 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15886 '') as_fn_error $? "missing file argument" ;;
15887 esac
15888 as_fn_append CONFIG_FILES " '$ac_optarg'"
15889 ac_need_defaults=false;;
15890 --he | --h | --help | --hel | -h )
15891 $as_echo "$ac_cs_usage"; exit ;;
15892 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15893 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15894 ac_cs_silent=: ;;
15896 # This is an error.
15897 -*) as_fn_error $? "unrecognized option: \`$1'
15898 Try \`$0 --help' for more information." ;;
15900 *) as_fn_append ac_config_targets " $1"
15901 ac_need_defaults=false ;;
15903 esac
15904 shift
15905 done
15907 ac_configure_extra_args=
15909 if $ac_cs_silent; then
15910 exec 6>/dev/null
15911 ac_configure_extra_args="$ac_configure_extra_args --silent"
15914 _ACEOF
15915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15916 if \$ac_cs_recheck; then
15917 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15918 shift
15919 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15920 CONFIG_SHELL='$SHELL'
15921 export CONFIG_SHELL
15922 exec "\$@"
15925 _ACEOF
15926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15927 exec 5>>config.log
15929 echo
15930 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15931 ## Running $as_me. ##
15932 _ASBOX
15933 $as_echo "$ac_log"
15934 } >&5
15936 _ACEOF
15937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15939 # INIT-COMMANDS
15941 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15944 # The HP-UX ksh and POSIX shell print the target directory to stdout
15945 # if CDPATH is set.
15946 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15948 sed_quote_subst='$sed_quote_subst'
15949 double_quote_subst='$double_quote_subst'
15950 delay_variable_subst='$delay_variable_subst'
15951 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15952 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15953 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15954 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15955 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15956 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15957 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15958 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15959 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15960 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15961 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15962 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15963 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15964 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15965 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15966 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15967 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15968 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15969 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15970 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15971 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15972 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15973 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15974 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15975 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15976 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15977 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15978 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15979 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15980 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15981 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15982 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15983 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15984 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15985 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15986 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15987 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15988 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15989 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15990 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15991 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15992 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15993 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15994 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15995 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15996 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15997 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15998 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15999 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16000 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16001 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16002 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16003 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16004 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16005 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16006 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16007 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"`'
16008 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16009 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16010 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16011 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16012 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16013 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16014 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16015 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16016 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16017 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16018 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16019 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16020 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16021 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16022 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16023 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16024 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16025 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16026 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16027 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16028 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16029 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16030 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16031 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16032 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16033 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16034 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16035 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16036 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16037 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16038 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16039 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16040 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16041 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16042 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16043 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16044 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16045 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16046 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16047 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16048 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16049 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16050 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16051 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16052 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16053 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16054 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16055 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16056 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16057 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16058 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16059 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16060 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16061 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16062 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16063 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16064 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16065 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16066 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16067 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16068 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16069 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16070 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16071 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16072 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16073 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16074 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16075 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16076 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16077 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16078 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16079 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16080 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16081 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16083 LTCC='$LTCC'
16084 LTCFLAGS='$LTCFLAGS'
16085 compiler='$compiler_DEFAULT'
16087 # A function that is used when there is no print builtin or printf.
16088 func_fallback_echo ()
16090 eval 'cat <<_LTECHO_EOF
16092 _LTECHO_EOF'
16095 # Quote evaled strings.
16096 for var in SHELL \
16097 ECHO \
16098 PATH_SEPARATOR \
16099 SED \
16100 GREP \
16101 EGREP \
16102 FGREP \
16103 LD \
16104 NM \
16105 LN_S \
16106 lt_SP2NL \
16107 lt_NL2SP \
16108 reload_flag \
16109 OBJDUMP \
16110 deplibs_check_method \
16111 file_magic_cmd \
16112 file_magic_glob \
16113 want_nocaseglob \
16114 DLLTOOL \
16115 sharedlib_from_linklib_cmd \
16116 AR \
16117 AR_FLAGS \
16118 archiver_list_spec \
16119 STRIP \
16120 RANLIB \
16121 CC \
16122 CFLAGS \
16123 compiler \
16124 lt_cv_sys_global_symbol_pipe \
16125 lt_cv_sys_global_symbol_to_cdecl \
16126 lt_cv_sys_global_symbol_to_c_name_address \
16127 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16128 nm_file_list_spec \
16129 lt_prog_compiler_no_builtin_flag \
16130 lt_prog_compiler_pic \
16131 lt_prog_compiler_wl \
16132 lt_prog_compiler_static \
16133 lt_cv_prog_compiler_c_o \
16134 need_locks \
16135 MANIFEST_TOOL \
16136 DSYMUTIL \
16137 NMEDIT \
16138 LIPO \
16139 OTOOL \
16140 OTOOL64 \
16141 shrext_cmds \
16142 export_dynamic_flag_spec \
16143 whole_archive_flag_spec \
16144 compiler_needs_object \
16145 with_gnu_ld \
16146 allow_undefined_flag \
16147 no_undefined_flag \
16148 hardcode_libdir_flag_spec \
16149 hardcode_libdir_separator \
16150 exclude_expsyms \
16151 include_expsyms \
16152 file_list_spec \
16153 variables_saved_for_relink \
16154 libname_spec \
16155 library_names_spec \
16156 soname_spec \
16157 install_override_mode \
16158 finish_eval \
16159 old_striplib \
16160 striplib \
16161 AS; do
16162 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16163 *[\\\\\\\`\\"\\\$]*)
16164 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16167 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16169 esac
16170 done
16172 # Double-quote double-evaled strings.
16173 for var in reload_cmds \
16174 old_postinstall_cmds \
16175 old_postuninstall_cmds \
16176 old_archive_cmds \
16177 extract_expsyms_cmds \
16178 old_archive_from_new_cmds \
16179 old_archive_from_expsyms_cmds \
16180 archive_cmds \
16181 archive_expsym_cmds \
16182 module_cmds \
16183 module_expsym_cmds \
16184 export_symbols_cmds \
16185 prelink_cmds \
16186 postlink_cmds \
16187 postinstall_cmds \
16188 postuninstall_cmds \
16189 finish_cmds \
16190 sys_lib_search_path_spec \
16191 sys_lib_dlsearch_path_spec; do
16192 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16193 *[\\\\\\\`\\"\\\$]*)
16194 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16197 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16199 esac
16200 done
16202 ac_aux_dir='$ac_aux_dir'
16203 xsi_shell='$xsi_shell'
16204 lt_shell_append='$lt_shell_append'
16206 # See if we are running on zsh, and set the options which allow our
16207 # commands through without removal of \ escapes INIT.
16208 if test -n "\${ZSH_VERSION+set}" ; then
16209 setopt NO_GLOB_SUBST
16213 PACKAGE='$PACKAGE'
16214 VERSION='$VERSION'
16215 TIMESTAMP='$TIMESTAMP'
16216 RM='$RM'
16217 ofile='$ofile'
16222 _ACEOF
16224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16226 # Handling of arguments.
16227 for ac_config_target in $ac_config_targets
16229 case $ac_config_target in
16230 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16231 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16232 "libsodium.pc") CONFIG_FILES="$CONFIG_FILES libsodium.pc" ;;
16233 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16234 "dist-build/Makefile") CONFIG_FILES="$CONFIG_FILES dist-build/Makefile" ;;
16235 "msvc-scripts/Makefile") CONFIG_FILES="$CONFIG_FILES msvc-scripts/Makefile" ;;
16236 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16237 "src/libsodium/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/Makefile" ;;
16238 "src/libsodium/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/Makefile" ;;
16239 "src/libsodium/include/sodium/version.h") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/sodium/version.h" ;;
16240 "test/default/Makefile") CONFIG_FILES="$CONFIG_FILES test/default/Makefile" ;;
16241 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16243 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16244 esac
16245 done
16248 # If the user did not use the arguments to specify the items to instantiate,
16249 # then the envvar interface is used. Set only those that are not.
16250 # We use the long form for the default assignment because of an extremely
16251 # bizarre bug on SunOS 4.1.3.
16252 if $ac_need_defaults; then
16253 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16257 # Have a temporary directory for convenience. Make it in the build tree
16258 # simply because there is no reason against having it here, and in addition,
16259 # creating and moving files from /tmp can sometimes cause problems.
16260 # Hook for its removal unless debugging.
16261 # Note that there is a small window in which the directory will not be cleaned:
16262 # after its creation but before its name has been assigned to `$tmp'.
16263 $debug ||
16265 tmp= ac_tmp=
16266 trap 'exit_status=$?
16267 : "${ac_tmp:=$tmp}"
16268 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16270 trap 'as_fn_exit 1' 1 2 13 15
16272 # Create a (secure) tmp directory for tmp files.
16275 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16276 test -d "$tmp"
16277 } ||
16279 tmp=./conf$$-$RANDOM
16280 (umask 077 && mkdir "$tmp")
16281 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16282 ac_tmp=$tmp
16284 # Set up the scripts for CONFIG_FILES section.
16285 # No need to generate them if there are no CONFIG_FILES.
16286 # This happens for instance with `./config.status config.h'.
16287 if test -n "$CONFIG_FILES"; then
16290 ac_cr=`echo X | tr X '\015'`
16291 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16292 # But we know of no other shell where ac_cr would be empty at this
16293 # point, so we can use a bashism as a fallback.
16294 if test "x$ac_cr" = x; then
16295 eval ac_cr=\$\'\\r\'
16297 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16298 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16299 ac_cs_awk_cr='\\r'
16300 else
16301 ac_cs_awk_cr=$ac_cr
16304 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16305 _ACEOF
16309 echo "cat >conf$$subs.awk <<_ACEOF" &&
16310 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16311 echo "_ACEOF"
16312 } >conf$$subs.sh ||
16313 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16314 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16315 ac_delim='%!_!# '
16316 for ac_last_try in false false false false false :; do
16317 . ./conf$$subs.sh ||
16318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16320 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16321 if test $ac_delim_n = $ac_delim_num; then
16322 break
16323 elif $ac_last_try; then
16324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16325 else
16326 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16328 done
16329 rm -f conf$$subs.sh
16331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16332 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16333 _ACEOF
16334 sed -n '
16336 s/^/S["/; s/!.*/"]=/
16339 s/^[^!]*!//
16340 :repl
16341 t repl
16342 s/'"$ac_delim"'$//
16343 t delim
16346 s/\(.\{148\}\)..*/\1/
16347 t more1
16348 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16351 b repl
16352 :more1
16353 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16356 s/.\{148\}//
16357 t nl
16358 :delim
16360 s/\(.\{148\}\)..*/\1/
16361 t more2
16362 s/["\\]/\\&/g; s/^/"/; s/$/"/
16365 :more2
16366 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16369 s/.\{148\}//
16370 t delim
16371 ' <conf$$subs.awk | sed '
16372 /^[^""]/{
16374 s/\n//
16376 ' >>$CONFIG_STATUS || ac_write_fail=1
16377 rm -f conf$$subs.awk
16378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16379 _ACAWK
16380 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16381 for (key in S) S_is_set[key] = 1
16382 FS = "\a"
16386 line = $ 0
16387 nfields = split(line, field, "@")
16388 substed = 0
16389 len = length(field[1])
16390 for (i = 2; i < nfields; i++) {
16391 key = field[i]
16392 keylen = length(key)
16393 if (S_is_set[key]) {
16394 value = S[key]
16395 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16396 len += length(value) + length(field[++i])
16397 substed = 1
16398 } else
16399 len += 1 + keylen
16402 print line
16405 _ACAWK
16406 _ACEOF
16407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16408 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16409 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16410 else
16412 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16413 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16414 _ACEOF
16416 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16417 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16418 # trailing colons and then remove the whole line if VPATH becomes empty
16419 # (actually we leave an empty line to preserve line numbers).
16420 if test "x$srcdir" = x.; then
16421 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16423 s///
16424 s/^/:/
16425 s/[ ]*$/:/
16426 s/:\$(srcdir):/:/g
16427 s/:\${srcdir}:/:/g
16428 s/:@srcdir@:/:/g
16429 s/^:*//
16430 s/:*$//
16432 s/\(=[ ]*\).*/\1/
16434 s/\n//
16435 s/^[^=]*=[ ]*$//
16439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16440 fi # test -n "$CONFIG_FILES"
16443 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16444 shift
16445 for ac_tag
16447 case $ac_tag in
16448 :[FHLC]) ac_mode=$ac_tag; continue;;
16449 esac
16450 case $ac_mode$ac_tag in
16451 :[FHL]*:*);;
16452 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16453 :[FH]-) ac_tag=-:-;;
16454 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16455 esac
16456 ac_save_IFS=$IFS
16457 IFS=:
16458 set x $ac_tag
16459 IFS=$ac_save_IFS
16460 shift
16461 ac_file=$1
16462 shift
16464 case $ac_mode in
16465 :L) ac_source=$1;;
16466 :[FH])
16467 ac_file_inputs=
16468 for ac_f
16470 case $ac_f in
16471 -) ac_f="$ac_tmp/stdin";;
16472 *) # Look for the file first in the build tree, then in the source tree
16473 # (if the path is not absolute). The absolute path cannot be DOS-style,
16474 # because $ac_f cannot contain `:'.
16475 test -f "$ac_f" ||
16476 case $ac_f in
16477 [\\/$]*) false;;
16478 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16479 esac ||
16480 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16481 esac
16482 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16483 as_fn_append ac_file_inputs " '$ac_f'"
16484 done
16486 # Let's still pretend it is `configure' which instantiates (i.e., don't
16487 # use $as_me), people would be surprised to read:
16488 # /* config.h. Generated by config.status. */
16489 configure_input='Generated from '`
16490 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16491 `' by configure.'
16492 if test x"$ac_file" != x-; then
16493 configure_input="$ac_file. $configure_input"
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16495 $as_echo "$as_me: creating $ac_file" >&6;}
16497 # Neutralize special characters interpreted by sed in replacement strings.
16498 case $configure_input in #(
16499 *\&* | *\|* | *\\* )
16500 ac_sed_conf_input=`$as_echo "$configure_input" |
16501 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16502 *) ac_sed_conf_input=$configure_input;;
16503 esac
16505 case $ac_tag in
16506 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16508 esac
16510 esac
16512 ac_dir=`$as_dirname -- "$ac_file" ||
16513 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16514 X"$ac_file" : 'X\(//\)[^/]' \| \
16515 X"$ac_file" : 'X\(//\)$' \| \
16516 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16517 $as_echo X"$ac_file" |
16518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16519 s//\1/
16522 /^X\(\/\/\)[^/].*/{
16523 s//\1/
16526 /^X\(\/\/\)$/{
16527 s//\1/
16530 /^X\(\/\).*/{
16531 s//\1/
16534 s/.*/./; q'`
16535 as_dir="$ac_dir"; as_fn_mkdir_p
16536 ac_builddir=.
16538 case "$ac_dir" in
16539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16541 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16542 # A ".." for each directory in $ac_dir_suffix.
16543 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16544 case $ac_top_builddir_sub in
16545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16547 esac ;;
16548 esac
16549 ac_abs_top_builddir=$ac_pwd
16550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16551 # for backward compatibility:
16552 ac_top_builddir=$ac_top_build_prefix
16554 case $srcdir in
16555 .) # We are building in place.
16556 ac_srcdir=.
16557 ac_top_srcdir=$ac_top_builddir_sub
16558 ac_abs_top_srcdir=$ac_pwd ;;
16559 [\\/]* | ?:[\\/]* ) # Absolute name.
16560 ac_srcdir=$srcdir$ac_dir_suffix;
16561 ac_top_srcdir=$srcdir
16562 ac_abs_top_srcdir=$srcdir ;;
16563 *) # Relative name.
16564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16565 ac_top_srcdir=$ac_top_build_prefix$srcdir
16566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16567 esac
16568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16571 case $ac_mode in
16574 # CONFIG_FILE
16577 case $INSTALL in
16578 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16579 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16580 esac
16581 ac_MKDIR_P=$MKDIR_P
16582 case $MKDIR_P in
16583 [\\/$]* | ?:[\\/]* ) ;;
16584 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16585 esac
16586 _ACEOF
16588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16589 # If the template does not know about datarootdir, expand it.
16590 # FIXME: This hack should be removed a few years after 2.60.
16591 ac_datarootdir_hack=; ac_datarootdir_seen=
16592 ac_sed_dataroot='
16593 /datarootdir/ {
16597 /@datadir@/p
16598 /@docdir@/p
16599 /@infodir@/p
16600 /@localedir@/p
16601 /@mandir@/p'
16602 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16603 *datarootdir*) ac_datarootdir_seen=yes;;
16604 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16606 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16607 _ACEOF
16608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16609 ac_datarootdir_hack='
16610 s&@datadir@&$datadir&g
16611 s&@docdir@&$docdir&g
16612 s&@infodir@&$infodir&g
16613 s&@localedir@&$localedir&g
16614 s&@mandir@&$mandir&g
16615 s&\\\${datarootdir}&$datarootdir&g' ;;
16616 esac
16617 _ACEOF
16619 # Neutralize VPATH when `$srcdir' = `.'.
16620 # Shell code in configure.ac might set extrasub.
16621 # FIXME: do we really want to maintain this feature?
16622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16623 ac_sed_extra="$ac_vpsub
16624 $extrasub
16625 _ACEOF
16626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16629 s|@configure_input@|$ac_sed_conf_input|;t t
16630 s&@top_builddir@&$ac_top_builddir_sub&;t t
16631 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16632 s&@srcdir@&$ac_srcdir&;t t
16633 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16634 s&@top_srcdir@&$ac_top_srcdir&;t t
16635 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16636 s&@builddir@&$ac_builddir&;t t
16637 s&@abs_builddir@&$ac_abs_builddir&;t t
16638 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16639 s&@INSTALL@&$ac_INSTALL&;t t
16640 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16641 $ac_datarootdir_hack
16643 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16644 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16646 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16647 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16648 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16649 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16651 which seems to be undefined. Please make sure it is defined" >&5
16652 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16653 which seems to be undefined. Please make sure it is defined" >&2;}
16655 rm -f "$ac_tmp/stdin"
16656 case $ac_file in
16657 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16658 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16659 esac \
16660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16664 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16665 $as_echo "$as_me: executing $ac_file commands" >&6;}
16667 esac
16670 case $ac_file$ac_mode in
16671 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16672 # Older Autoconf quotes --file arguments for eval, but not when files
16673 # are listed without --file. Let's play safe and only enable the eval
16674 # if we detect the quoting.
16675 case $CONFIG_FILES in
16676 *\'*) eval set x "$CONFIG_FILES" ;;
16677 *) set x $CONFIG_FILES ;;
16678 esac
16679 shift
16680 for mf
16682 # Strip MF so we end up with the name of the file.
16683 mf=`echo "$mf" | sed -e 's/:.*$//'`
16684 # Check whether this is an Automake generated Makefile or not.
16685 # We used to match only the files named 'Makefile.in', but
16686 # some people rename them; so instead we look at the file content.
16687 # Grep'ing the first line is not enough: some people post-process
16688 # each Makefile.in and add a new line on top of each file to say so.
16689 # Grep'ing the whole file is not good either: AIX grep has a line
16690 # limit of 2048, but all sed's we know have understand at least 4000.
16691 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16692 dirpart=`$as_dirname -- "$mf" ||
16693 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16694 X"$mf" : 'X\(//\)[^/]' \| \
16695 X"$mf" : 'X\(//\)$' \| \
16696 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16697 $as_echo X"$mf" |
16698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16699 s//\1/
16702 /^X\(\/\/\)[^/].*/{
16703 s//\1/
16706 /^X\(\/\/\)$/{
16707 s//\1/
16710 /^X\(\/\).*/{
16711 s//\1/
16714 s/.*/./; q'`
16715 else
16716 continue
16718 # Extract the definition of DEPDIR, am__include, and am__quote
16719 # from the Makefile without running 'make'.
16720 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16721 test -z "$DEPDIR" && continue
16722 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16723 test -z "$am__include" && continue
16724 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16725 # Find all dependency output files, they are included files with
16726 # $(DEPDIR) in their names. We invoke sed twice because it is the
16727 # simplest approach to changing $(DEPDIR) to its actual value in the
16728 # expansion.
16729 for file in `sed -n "
16730 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16731 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16732 # Make sure the directory exists.
16733 test -f "$dirpart/$file" && continue
16734 fdir=`$as_dirname -- "$file" ||
16735 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16736 X"$file" : 'X\(//\)[^/]' \| \
16737 X"$file" : 'X\(//\)$' \| \
16738 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16739 $as_echo X"$file" |
16740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16741 s//\1/
16744 /^X\(\/\/\)[^/].*/{
16745 s//\1/
16748 /^X\(\/\/\)$/{
16749 s//\1/
16752 /^X\(\/\).*/{
16753 s//\1/
16756 s/.*/./; q'`
16757 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16758 # echo "creating $dirpart/$file"
16759 echo '# dummy' > "$dirpart/$file"
16760 done
16761 done
16764 "libtool":C)
16766 # See if we are running on zsh, and set the options which allow our
16767 # commands through without removal of \ escapes.
16768 if test -n "${ZSH_VERSION+set}" ; then
16769 setopt NO_GLOB_SUBST
16772 cfgfile="${ofile}T"
16773 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16774 $RM "$cfgfile"
16776 cat <<_LT_EOF >> "$cfgfile"
16777 #! $SHELL
16779 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16780 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16781 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16782 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16784 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16785 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16786 # Foundation, Inc.
16787 # Written by Gordon Matzigkeit, 1996
16789 # This file is part of GNU Libtool.
16791 # GNU Libtool is free software; you can redistribute it and/or
16792 # modify it under the terms of the GNU General Public License as
16793 # published by the Free Software Foundation; either version 2 of
16794 # the License, or (at your option) any later version.
16796 # As a special exception to the GNU General Public License,
16797 # if you distribute this file as part of a program or library that
16798 # is built using GNU Libtool, you may include this file under the
16799 # same distribution terms that you use for the rest of that program.
16801 # GNU Libtool is distributed in the hope that it will be useful,
16802 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16803 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16804 # GNU General Public License for more details.
16806 # You should have received a copy of the GNU General Public License
16807 # along with GNU Libtool; see the file COPYING. If not, a copy
16808 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16809 # obtained by writing to the Free Software Foundation, Inc.,
16810 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16813 # The names of the tagged configurations supported by this script.
16814 available_tags=""
16816 # ### BEGIN LIBTOOL CONFIG
16818 # Which release of libtool.m4 was used?
16819 macro_version=$macro_version
16820 macro_revision=$macro_revision
16822 # Whether or not to build shared libraries.
16823 build_libtool_libs=$enable_shared
16825 # Whether or not to build static libraries.
16826 build_old_libs=$enable_static
16828 # What type of objects to build.
16829 pic_mode=$pic_mode
16831 # Whether or not to optimize for fast installation.
16832 fast_install=$enable_fast_install
16834 # Shell to use when invoking shell scripts.
16835 SHELL=$lt_SHELL
16837 # An echo program that protects backslashes.
16838 ECHO=$lt_ECHO
16840 # The PATH separator for the build system.
16841 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16843 # The host system.
16844 host_alias=$host_alias
16845 host=$host
16846 host_os=$host_os
16848 # The build system.
16849 build_alias=$build_alias
16850 build=$build
16851 build_os=$build_os
16853 # A sed program that does not truncate output.
16854 SED=$lt_SED
16856 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16857 Xsed="\$SED -e 1s/^X//"
16859 # A grep program that handles long lines.
16860 GREP=$lt_GREP
16862 # An ERE matcher.
16863 EGREP=$lt_EGREP
16865 # A literal string matcher.
16866 FGREP=$lt_FGREP
16868 # A BSD- or MS-compatible name lister.
16869 NM=$lt_NM
16871 # Whether we need soft or hard links.
16872 LN_S=$lt_LN_S
16874 # What is the maximum length of a command?
16875 max_cmd_len=$max_cmd_len
16877 # Object file suffix (normally "o").
16878 objext=$ac_objext
16880 # Executable file suffix (normally "").
16881 exeext=$exeext
16883 # whether the shell understands "unset".
16884 lt_unset=$lt_unset
16886 # turn spaces into newlines.
16887 SP2NL=$lt_lt_SP2NL
16889 # turn newlines into spaces.
16890 NL2SP=$lt_lt_NL2SP
16892 # convert \$build file names to \$host format.
16893 to_host_file_cmd=$lt_cv_to_host_file_cmd
16895 # convert \$build files to toolchain format.
16896 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16898 # An object symbol dumper.
16899 OBJDUMP=$lt_OBJDUMP
16901 # Method to check whether dependent libraries are shared objects.
16902 deplibs_check_method=$lt_deplibs_check_method
16904 # Command to use when deplibs_check_method = "file_magic".
16905 file_magic_cmd=$lt_file_magic_cmd
16907 # How to find potential files when deplibs_check_method = "file_magic".
16908 file_magic_glob=$lt_file_magic_glob
16910 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16911 want_nocaseglob=$lt_want_nocaseglob
16913 # DLL creation program.
16914 DLLTOOL=$lt_DLLTOOL
16916 # Command to associate shared and link libraries.
16917 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16919 # The archiver.
16920 AR=$lt_AR
16922 # Flags to create an archive.
16923 AR_FLAGS=$lt_AR_FLAGS
16925 # How to feed a file listing to the archiver.
16926 archiver_list_spec=$lt_archiver_list_spec
16928 # A symbol stripping program.
16929 STRIP=$lt_STRIP
16931 # Commands used to install an old-style archive.
16932 RANLIB=$lt_RANLIB
16933 old_postinstall_cmds=$lt_old_postinstall_cmds
16934 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16936 # Whether to use a lock for old archive extraction.
16937 lock_old_archive_extraction=$lock_old_archive_extraction
16939 # A C compiler.
16940 LTCC=$lt_CC
16942 # LTCC compiler flags.
16943 LTCFLAGS=$lt_CFLAGS
16945 # Take the output of nm and produce a listing of raw symbols and C names.
16946 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16948 # Transform the output of nm in a proper C declaration.
16949 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16951 # Transform the output of nm in a C name address pair.
16952 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16954 # Transform the output of nm in a C name address pair when lib prefix is needed.
16955 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16957 # Specify filename containing input files for \$NM.
16958 nm_file_list_spec=$lt_nm_file_list_spec
16960 # The root where to search for dependent libraries,and in which our libraries should be installed.
16961 lt_sysroot=$lt_sysroot
16963 # The name of the directory that contains temporary libtool files.
16964 objdir=$objdir
16966 # Used to examine libraries when file_magic_cmd begins with "file".
16967 MAGIC_CMD=$MAGIC_CMD
16969 # Must we lock files when doing compilation?
16970 need_locks=$lt_need_locks
16972 # Manifest tool.
16973 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16975 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16976 DSYMUTIL=$lt_DSYMUTIL
16978 # Tool to change global to local symbols on Mac OS X.
16979 NMEDIT=$lt_NMEDIT
16981 # Tool to manipulate fat objects and archives on Mac OS X.
16982 LIPO=$lt_LIPO
16984 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16985 OTOOL=$lt_OTOOL
16987 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16988 OTOOL64=$lt_OTOOL64
16990 # Old archive suffix (normally "a").
16991 libext=$libext
16993 # Shared library suffix (normally ".so").
16994 shrext_cmds=$lt_shrext_cmds
16996 # The commands to extract the exported symbol list from a shared archive.
16997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16999 # Variables whose values should be saved in libtool wrapper scripts and
17000 # restored at link time.
17001 variables_saved_for_relink=$lt_variables_saved_for_relink
17003 # Do we need the "lib" prefix for modules?
17004 need_lib_prefix=$need_lib_prefix
17006 # Do we need a version for libraries?
17007 need_version=$need_version
17009 # Library versioning type.
17010 version_type=$version_type
17012 # Shared library runtime path variable.
17013 runpath_var=$runpath_var
17015 # Shared library path variable.
17016 shlibpath_var=$shlibpath_var
17018 # Is shlibpath searched before the hard-coded library search path?
17019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17021 # Format of library name prefix.
17022 libname_spec=$lt_libname_spec
17024 # List of archive names. First name is the real one, the rest are links.
17025 # The last name is the one that the linker finds with -lNAME
17026 library_names_spec=$lt_library_names_spec
17028 # The coded name of the library, if different from the real name.
17029 soname_spec=$lt_soname_spec
17031 # Permission mode override for installation of shared libraries.
17032 install_override_mode=$lt_install_override_mode
17034 # Command to use after installation of a shared archive.
17035 postinstall_cmds=$lt_postinstall_cmds
17037 # Command to use after uninstallation of a shared archive.
17038 postuninstall_cmds=$lt_postuninstall_cmds
17040 # Commands used to finish a libtool library installation in a directory.
17041 finish_cmds=$lt_finish_cmds
17043 # As "finish_cmds", except a single script fragment to be evaled but
17044 # not shown.
17045 finish_eval=$lt_finish_eval
17047 # Whether we should hardcode library paths into libraries.
17048 hardcode_into_libs=$hardcode_into_libs
17050 # Compile-time system search path for libraries.
17051 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17053 # Run-time system search path for libraries.
17054 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17056 # Whether dlopen is supported.
17057 dlopen_support=$enable_dlopen
17059 # Whether dlopen of programs is supported.
17060 dlopen_self=$enable_dlopen_self
17062 # Whether dlopen of statically linked programs is supported.
17063 dlopen_self_static=$enable_dlopen_self_static
17065 # Commands to strip libraries.
17066 old_striplib=$lt_old_striplib
17067 striplib=$lt_striplib
17069 # Assembler program.
17070 AS=$lt_AS
17073 # The linker used to build libraries.
17074 LD=$lt_LD
17076 # How to create reloadable object files.
17077 reload_flag=$lt_reload_flag
17078 reload_cmds=$lt_reload_cmds
17080 # Commands used to build an old-style archive.
17081 old_archive_cmds=$lt_old_archive_cmds
17083 # A language specific compiler.
17084 CC=$lt_compiler
17086 # Is the compiler the GNU compiler?
17087 with_gcc=$GCC
17089 # Compiler flag to turn off builtin functions.
17090 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17092 # Additional compiler flags for building library objects.
17093 pic_flag=$lt_lt_prog_compiler_pic
17095 # How to pass a linker flag through the compiler.
17096 wl=$lt_lt_prog_compiler_wl
17098 # Compiler flag to prevent dynamic linking.
17099 link_static_flag=$lt_lt_prog_compiler_static
17101 # Does compiler simultaneously support -c and -o options?
17102 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17104 # Whether or not to add -lc for building shared libraries.
17105 build_libtool_need_lc=$archive_cmds_need_lc
17107 # Whether or not to disallow shared libs when runtime libs are static.
17108 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17110 # Compiler flag to allow reflexive dlopens.
17111 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17113 # Compiler flag to generate shared objects directly from archives.
17114 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17116 # Whether the compiler copes with passing no objects directly.
17117 compiler_needs_object=$lt_compiler_needs_object
17119 # Create an old-style archive from a shared archive.
17120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17122 # Create a temporary old-style archive to link instead of a shared archive.
17123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17125 # Commands used to build a shared archive.
17126 archive_cmds=$lt_archive_cmds
17127 archive_expsym_cmds=$lt_archive_expsym_cmds
17129 # Commands used to build a loadable module if different from building
17130 # a shared archive.
17131 module_cmds=$lt_module_cmds
17132 module_expsym_cmds=$lt_module_expsym_cmds
17134 # Whether we are building with GNU ld or not.
17135 with_gnu_ld=$lt_with_gnu_ld
17137 # Flag that allows shared libraries with undefined symbols to be built.
17138 allow_undefined_flag=$lt_allow_undefined_flag
17140 # Flag that enforces no undefined symbols.
17141 no_undefined_flag=$lt_no_undefined_flag
17143 # Flag to hardcode \$libdir into a binary during linking.
17144 # This must work even if \$libdir does not exist
17145 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17147 # Whether we need a single "-rpath" flag with a separated argument.
17148 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17150 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17151 # DIR into the resulting binary.
17152 hardcode_direct=$hardcode_direct
17154 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17155 # DIR into the resulting binary and the resulting library dependency is
17156 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17157 # library is relocated.
17158 hardcode_direct_absolute=$hardcode_direct_absolute
17160 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17161 # into the resulting binary.
17162 hardcode_minus_L=$hardcode_minus_L
17164 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17165 # into the resulting binary.
17166 hardcode_shlibpath_var=$hardcode_shlibpath_var
17168 # Set to "yes" if building a shared library automatically hardcodes DIR
17169 # into the library and all subsequent libraries and executables linked
17170 # against it.
17171 hardcode_automatic=$hardcode_automatic
17173 # Set to yes if linker adds runtime paths of dependent libraries
17174 # to runtime path list.
17175 inherit_rpath=$inherit_rpath
17177 # Whether libtool must link a program against all its dependency libraries.
17178 link_all_deplibs=$link_all_deplibs
17180 # Set to "yes" if exported symbols are required.
17181 always_export_symbols=$always_export_symbols
17183 # The commands to list exported symbols.
17184 export_symbols_cmds=$lt_export_symbols_cmds
17186 # Symbols that should not be listed in the preloaded symbols.
17187 exclude_expsyms=$lt_exclude_expsyms
17189 # Symbols that must always be exported.
17190 include_expsyms=$lt_include_expsyms
17192 # Commands necessary for linking programs (against libraries) with templates.
17193 prelink_cmds=$lt_prelink_cmds
17195 # Commands necessary for finishing linking programs.
17196 postlink_cmds=$lt_postlink_cmds
17198 # Specify filename containing input files.
17199 file_list_spec=$lt_file_list_spec
17201 # How to hardcode a shared library path into an executable.
17202 hardcode_action=$hardcode_action
17204 # ### END LIBTOOL CONFIG
17206 _LT_EOF
17208 case $host_os in
17209 aix3*)
17210 cat <<\_LT_EOF >> "$cfgfile"
17211 # AIX sometimes has problems with the GCC collect2 program. For some
17212 # reason, if we set the COLLECT_NAMES environment variable, the problems
17213 # vanish in a puff of smoke.
17214 if test "X${COLLECT_NAMES+set}" != Xset; then
17215 COLLECT_NAMES=
17216 export COLLECT_NAMES
17218 _LT_EOF
17220 esac
17223 ltmain="$ac_aux_dir/ltmain.sh"
17226 # We use sed instead of cat because bash on DJGPP gets confused if
17227 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17228 # text mode, it properly converts lines to CR/LF. This bash problem
17229 # is reportedly fixed, but why not run on old versions too?
17230 sed '$q' "$ltmain" >> "$cfgfile" \
17231 || (rm -f "$cfgfile"; exit 1)
17233 if test x"$xsi_shell" = xyes; then
17234 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17235 func_dirname ()\
17237 \ case ${1} in\
17238 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17239 \ * ) func_dirname_result="${3}" ;;\
17240 \ esac\
17241 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17242 && mv -f "$cfgfile.tmp" "$cfgfile" \
17243 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17244 test 0 -eq $? || _lt_function_replace_fail=:
17247 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17248 func_basename ()\
17250 \ func_basename_result="${1##*/}"\
17251 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17252 && mv -f "$cfgfile.tmp" "$cfgfile" \
17253 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17254 test 0 -eq $? || _lt_function_replace_fail=:
17257 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17258 func_dirname_and_basename ()\
17260 \ case ${1} in\
17261 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17262 \ * ) func_dirname_result="${3}" ;;\
17263 \ esac\
17264 \ func_basename_result="${1##*/}"\
17265 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17266 && mv -f "$cfgfile.tmp" "$cfgfile" \
17267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17268 test 0 -eq $? || _lt_function_replace_fail=:
17271 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17272 func_stripname ()\
17274 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17275 \ # positional parameters, so assign one to ordinary parameter first.\
17276 \ func_stripname_result=${3}\
17277 \ func_stripname_result=${func_stripname_result#"${1}"}\
17278 \ func_stripname_result=${func_stripname_result%"${2}"}\
17279 } # Extended-shell func_stripname 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_split_long_opt ()$/,/^} # func_split_long_opt /c\
17286 func_split_long_opt ()\
17288 \ func_split_long_opt_name=${1%%=*}\
17289 \ func_split_long_opt_arg=${1#*=}\
17290 } # Extended-shell func_split_long_opt 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 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17297 func_split_short_opt ()\
17299 \ func_split_short_opt_arg=${1#??}\
17300 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17301 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17302 && mv -f "$cfgfile.tmp" "$cfgfile" \
17303 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17304 test 0 -eq $? || _lt_function_replace_fail=:
17307 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17308 func_lo2o ()\
17310 \ case ${1} in\
17311 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17312 \ *) func_lo2o_result=${1} ;;\
17313 \ esac\
17314 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17315 && mv -f "$cfgfile.tmp" "$cfgfile" \
17316 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17317 test 0 -eq $? || _lt_function_replace_fail=:
17320 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17321 func_xform ()\
17323 func_xform_result=${1%.*}.lo\
17324 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17325 && mv -f "$cfgfile.tmp" "$cfgfile" \
17326 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17327 test 0 -eq $? || _lt_function_replace_fail=:
17330 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17331 func_arith ()\
17333 func_arith_result=$(( $* ))\
17334 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17335 && mv -f "$cfgfile.tmp" "$cfgfile" \
17336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17337 test 0 -eq $? || _lt_function_replace_fail=:
17340 sed -e '/^func_len ()$/,/^} # func_len /c\
17341 func_len ()\
17343 func_len_result=${#1}\
17344 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17345 && mv -f "$cfgfile.tmp" "$cfgfile" \
17346 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17347 test 0 -eq $? || _lt_function_replace_fail=:
17351 if test x"$lt_shell_append" = xyes; then
17352 sed -e '/^func_append ()$/,/^} # func_append /c\
17353 func_append ()\
17355 eval "${1}+=\\${2}"\
17356 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17357 && mv -f "$cfgfile.tmp" "$cfgfile" \
17358 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17359 test 0 -eq $? || _lt_function_replace_fail=:
17362 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17363 func_append_quoted ()\
17365 \ func_quote_for_eval "${2}"\
17366 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17367 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17368 && mv -f "$cfgfile.tmp" "$cfgfile" \
17369 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17370 test 0 -eq $? || _lt_function_replace_fail=:
17373 # Save a `func_append' function call where possible by direct use of '+='
17374 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17375 && mv -f "$cfgfile.tmp" "$cfgfile" \
17376 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17377 test 0 -eq $? || _lt_function_replace_fail=:
17378 else
17379 # Save a `func_append' function call even when '+=' is not available
17380 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17381 && mv -f "$cfgfile.tmp" "$cfgfile" \
17382 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17383 test 0 -eq $? || _lt_function_replace_fail=:
17386 if test x"$_lt_function_replace_fail" = x":"; then
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17388 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17392 mv -f "$cfgfile" "$ofile" ||
17393 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17394 chmod +x "$ofile"
17398 esac
17399 done # for ac_tag
17402 as_fn_exit 0
17403 _ACEOF
17404 ac_clean_files=$ac_clean_files_save
17406 test $ac_write_fail = 0 ||
17407 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17410 # configure is writing to config.log, and then calls config.status.
17411 # config.status does its own redirection, appending to config.log.
17412 # Unfortunately, on DOS this fails, as config.log is still kept open
17413 # by configure, so config.status won't be able to write to it; its
17414 # output is simply discarded. So we exec the FD to /dev/null,
17415 # effectively closing config.log, so it can be properly (re)opened and
17416 # appended to by config.status. When coming back to configure, we
17417 # need to make the FD available again.
17418 if test "$no_create" != yes; then
17419 ac_cs_success=:
17420 ac_config_status_args=
17421 test "$silent" = yes &&
17422 ac_config_status_args="$ac_config_status_args --quiet"
17423 exec 5>/dev/null
17424 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17425 exec 5>>config.log
17426 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17427 # would make configure fail if this is the last instruction.
17428 $ac_cs_success || as_fn_exit 1
17430 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17432 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}