libsodium: updated to 1.0.10
[tomato.git] / release / src / router / libsodium / configure
blob0a825b67f1f14834d0572591be088d9e4b295d6a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libsodium 1.0.10.
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='1.0.10'
594 PACKAGE_STRING='libsodium 1.0.10'
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 NATIVECLIENT_FALSE
643 NATIVECLIENT_TRUE
644 EMSCRIPTEN_FALSE
645 EMSCRIPTEN_TRUE
646 TEST_LDFLAGS
647 LIBTOOL_EXTRA_FLAGS
648 HAVE_CPUID_V
649 HAVE_TI_MODE_V
650 HAVE_TI_MODE_FALSE
651 HAVE_TI_MODE_TRUE
652 HAVE_AVX_ASM_V
653 HAVE_AVX_ASM_FALSE
654 HAVE_AVX_ASM_TRUE
655 HAVE_AMD64_ASM_V
656 HAVE_AMD64_ASM_FALSE
657 HAVE_AMD64_ASM_TRUE
658 CFLAGS_PCLMUL
659 CFLAGS_AESNI
660 CFLAGS_AVX2
661 CFLAGS_AVX
662 CFLAGS_SSE41
663 CFLAGS_SSSE3
664 CFLAGS_SSE3
665 CFLAGS_SSE2
666 CFLAGS_MMX
667 LIBTOOL_DEPS
668 LT_SYS_LIBRARY_PATH
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 ac_ct_AR
678 DLLTOOL
679 OBJDUMP
680 LN_S
682 ac_ct_DUMPBIN
683 DUMPBIN
685 FGREP
687 LIBTOOL
688 CWFLAGS
689 EGREP
690 GREP
692 am__fastdepCCAS_FALSE
693 am__fastdepCCAS_TRUE
694 CCASDEPMODE
695 CCASFLAGS
696 CCAS
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__quote
701 am__include
702 DEPDIR
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
710 VALGRIND_CHECK_RULES
711 VALGRIND_HAVE_TOOL_exp_sgcheck
712 VALGRIND_HAVE_TOOL_drd
713 VALGRIND_HAVE_TOOL_helgrind
714 VALGRIND_HAVE_TOOL_memcheck
715 VALGRIND_ENABLED
716 VALGRIND_ENABLED_FALSE
717 VALGRIND_ENABLED_TRUE
718 VALGRIND
719 SAFECODE_HOME
720 MINIMAL_FALSE
721 MINIMAL_TRUE
722 DLL_VERSION
723 SODIUM_LIBRARY_VERSION
724 SODIUM_LIBRARY_VERSION_MINOR
725 SODIUM_LIBRARY_VERSION_MAJOR
726 ISODATE
727 am__nodep
728 AMDEPBACKSLASH
729 AMDEP_FALSE
730 AMDEP_TRUE
731 MAINT
732 MAINTAINER_MODE_FALSE
733 MAINTAINER_MODE_TRUE
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 host_os
762 host_vendor
763 host_cpu
764 host
765 build_os
766 build_vendor
767 build_cpu
768 build
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_silent_rules
811 enable_maintainer_mode
812 enable_dependency_tracking
813 enable_ssp
814 enable_asm
815 enable_pie
816 enable_blocking_random
817 enable_minimal
818 with_safecode
819 enable_debug
820 enable_opt
821 enable_valgrind
822 enable_soname_versions
823 enable_shared
824 enable_static
825 with_pic
826 enable_fast_install
827 with_aix_soname
828 with_gnu_ld
829 with_sysroot
830 enable_libtool_lock
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
835 SAFECODE_HOME
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 CCAS
842 CCASFLAGS
844 CWFLAGS
845 LT_SYS_LIBRARY_PATH
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
888 infodir='${datarootdir}/info'
889 htmldir='${docdir}'
890 dvidir='${docdir}'
891 pdfdir='${docdir}'
892 psdir='${docdir}'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
897 ac_prev=
898 ac_dashdash=
899 for ac_option
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
904 ac_prev=
905 continue
908 case $ac_option in
909 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *=) ac_optarg= ;;
911 *) ac_optarg=yes ;;
912 esac
914 # Accept the important Cygnus configure options, so we can diagnose typos.
916 case $ac_dashdash$ac_option in
918 ac_dashdash=yes ;;
920 -bindir | --bindir | --bindi | --bind | --bin | --bi)
921 ac_prev=bindir ;;
922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923 bindir=$ac_optarg ;;
925 -build | --build | --buil | --bui | --bu)
926 ac_prev=build_alias ;;
927 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928 build_alias=$ac_optarg ;;
930 -cache-file | --cache-file | --cache-fil | --cache-fi \
931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932 ac_prev=cache_file ;;
933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935 cache_file=$ac_optarg ;;
937 --config-cache | -C)
938 cache_file=config.cache ;;
940 -datadir | --datadir | --datadi | --datad)
941 ac_prev=datadir ;;
942 -datadir=* | --datadir=* | --datadi=* | --datad=*)
943 datadir=$ac_optarg ;;
945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946 | --dataroo | --dataro | --datar)
947 ac_prev=datarootdir ;;
948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950 datarootdir=$ac_optarg ;;
952 -disable-* | --disable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=no ;;
968 -docdir | --docdir | --docdi | --doc | --do)
969 ac_prev=docdir ;;
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971 docdir=$ac_optarg ;;
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974 ac_prev=dvidir ;;
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976 dvidir=$ac_optarg ;;
978 -enable-* | --enable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error $? "invalid feature name: $ac_useropt"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
987 "enable_$ac_useropt"
988 "*) ;;
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
991 esac
992 eval enable_$ac_useropt=\$ac_optarg ;;
994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996 | --exec | --exe | --ex)
997 ac_prev=exec_prefix ;;
998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000 | --exec=* | --exe=* | --ex=*)
1001 exec_prefix=$ac_optarg ;;
1003 -gas | --gas | --ga | --g)
1004 # Obsolete; use --with-gas.
1005 with_gas=yes ;;
1007 -help | --help | --hel | --he | -h)
1008 ac_init_help=long ;;
1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010 ac_init_help=recursive ;;
1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012 ac_init_help=short ;;
1014 -host | --host | --hos | --ho)
1015 ac_prev=host_alias ;;
1016 -host=* | --host=* | --hos=* | --ho=*)
1017 host_alias=$ac_optarg ;;
1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020 ac_prev=htmldir ;;
1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022 | --ht=*)
1023 htmldir=$ac_optarg ;;
1025 -includedir | --includedir | --includedi | --included | --include \
1026 | --includ | --inclu | --incl | --inc)
1027 ac_prev=includedir ;;
1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029 | --includ=* | --inclu=* | --incl=* | --inc=*)
1030 includedir=$ac_optarg ;;
1032 -infodir | --infodir | --infodi | --infod | --info | --inf)
1033 ac_prev=infodir ;;
1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035 infodir=$ac_optarg ;;
1037 -libdir | --libdir | --libdi | --libd)
1038 ac_prev=libdir ;;
1039 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040 libdir=$ac_optarg ;;
1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043 | --libexe | --libex | --libe)
1044 ac_prev=libexecdir ;;
1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046 | --libexe=* | --libex=* | --libe=*)
1047 libexecdir=$ac_optarg ;;
1049 -localedir | --localedir | --localedi | --localed | --locale)
1050 ac_prev=localedir ;;
1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052 localedir=$ac_optarg ;;
1054 -localstatedir | --localstatedir | --localstatedi | --localstated \
1055 | --localstate | --localstat | --localsta | --localst | --locals)
1056 ac_prev=localstatedir ;;
1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059 localstatedir=$ac_optarg ;;
1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062 ac_prev=mandir ;;
1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064 mandir=$ac_optarg ;;
1066 -nfp | --nfp | --nf)
1067 # Obsolete; use --without-fp.
1068 with_fp=no ;;
1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071 | --no-cr | --no-c | -n)
1072 no_create=yes ;;
1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076 no_recursion=yes ;;
1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080 | --oldin | --oldi | --old | --ol | --o)
1081 ac_prev=oldincludedir ;;
1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085 oldincludedir=$ac_optarg ;;
1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088 ac_prev=prefix ;;
1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090 prefix=$ac_optarg ;;
1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093 | --program-pre | --program-pr | --program-p)
1094 ac_prev=program_prefix ;;
1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097 program_prefix=$ac_optarg ;;
1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100 | --program-suf | --program-su | --program-s)
1101 ac_prev=program_suffix ;;
1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104 program_suffix=$ac_optarg ;;
1106 -program-transform-name | --program-transform-name \
1107 | --program-transform-nam | --program-transform-na \
1108 | --program-transform-n | --program-transform- \
1109 | --program-transform | --program-transfor \
1110 | --program-transfo | --program-transf \
1111 | --program-trans | --program-tran \
1112 | --progr-tra | --program-tr | --program-t)
1113 ac_prev=program_transform_name ;;
1114 -program-transform-name=* | --program-transform-name=* \
1115 | --program-transform-nam=* | --program-transform-na=* \
1116 | --program-transform-n=* | --program-transform-=* \
1117 | --program-transform=* | --program-transfor=* \
1118 | --program-transfo=* | --program-transf=* \
1119 | --program-trans=* | --program-tran=* \
1120 | --progr-tra=* | --program-tr=* | --program-t=*)
1121 program_transform_name=$ac_optarg ;;
1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124 ac_prev=pdfdir ;;
1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126 pdfdir=$ac_optarg ;;
1128 -psdir | --psdir | --psdi | --psd | --ps)
1129 ac_prev=psdir ;;
1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131 psdir=$ac_optarg ;;
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1135 silent=yes ;;
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 ac_prev=sbindir ;;
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 | --sbi=* | --sb=*)
1141 sbindir=$ac_optarg ;;
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1146 | --sha | --sh)
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 | --sha=* | --sh=*)
1152 sharedstatedir=$ac_optarg ;;
1154 -site | --site | --sit)
1155 ac_prev=site ;;
1156 -site=* | --site=* | --sit=*)
1157 site=$ac_optarg ;;
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 ac_prev=srcdir ;;
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 verbose=yes ;;
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1182 -with-* | --with-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=\$ac_optarg ;;
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=no ;;
1214 --x)
1215 # Obsolete; use --with-x.
1216 with_x=yes ;;
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1232 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information"
1236 *=*)
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1242 esac
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1247 # FIXME: should be removed in autoconf 3.0.
1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1254 esac
1255 done
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error $? "missing argument to $ac_option"
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1264 no) ;;
1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 esac
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1278 case $ac_val in
1279 */ )
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1282 esac
1283 # Be sure to have absolute directory names.
1284 case $ac_val in
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 esac
1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289 done
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error $? "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error $? "pwd does not report name of working directory"
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1339 /^X\(\/\/\)$/{
1340 s//\1/
1343 /^X\(\/\).*/{
1344 s//\1/
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1352 else
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362 pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1381 # Report the --help message.
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 \`configure' configures libsodium 1.0.10 to adapt to many kinds of systems.
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1394 Defaults for the options are specified in brackets.
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking ...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1418 For better control, use the options below.
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/libsodium]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1442 cat <<\_ACEOF
1444 Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 _ACEOF
1455 if test -n "$ac_init_help"; then
1456 case $ac_init_help in
1457 short | recursive ) echo "Configuration of libsodium 1.0.10:";;
1458 esac
1459 cat <<\_ACEOF
1461 Optional Features:
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-silent-rules less verbose build output (undo: "make V=1")
1466 --disable-silent-rules verbose build output (undo: "make V=0")
1467 --enable-maintainer-mode
1468 enable make rules and dependencies not useful (and
1469 sometimes confusing) to the casual installer
1470 --enable-dependency-tracking
1471 do not reject slow dependency extractors
1472 --disable-dependency-tracking
1473 speeds up one-time build
1474 --disable-ssp Do not compile with -fstack-protector
1475 --disable-asm Disable assembly implementations
1476 --disable-pie Do not produce position independent executables
1477 --enable-blocking-random
1478 Enable this switch only if /dev/urandom is totally
1479 broken on the target platform
1480 --enable-minimal Only compile the minimum set of functions required
1481 for the high-level API
1482 --enable-debug For maintainers only - please do not use
1483 --enable-opt Optimize for the native CPU - The resulting library
1484 will be faster but not portable
1485 --enable-valgrind Whether to enable Valgrind on the unit tests
1486 (requires GNU make)
1487 --enable-soname-versions
1488 enable soname versions (must be disabled for
1489 Android) (default: enabled)
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1496 Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-safecode For maintainers only - please do not use
1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1501 both]
1502 --with-aix-soname=aix|svr4|both
1503 shared library versioning (aka "SONAME") variant to
1504 provide on AIX, [default=aix].
1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1506 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1507 compiler's sysroot if not specified).
1509 Some influential environment variables:
1510 SAFECODE_HOME
1511 set to the safecode base directory
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 LIBS libraries to pass to the linker, e.g. -l<library>
1517 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1518 you have headers in a nonstandard directory <include dir>
1519 CCAS assembler compiler command (defaults to CC)
1520 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1521 CPP C preprocessor
1522 CWFLAGS define to compilation flags for generating extra warnings
1523 LT_SYS_LIBRARY_PATH
1524 User-defined run-time library search path.
1525 AR path to the ar utility
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1530 Report bugs to <https://github.com/jedisct1/libsodium/issues>.
1531 libsodium home page: <https://github.com/jedisct1/libsodium>.
1532 _ACEOF
1533 ac_status=$?
1536 if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539 test -d "$ac_dir" ||
1540 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541 continue
1542 ac_builddir=.
1544 case "$ac_dir" in
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 esac ;;
1554 esac
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1560 case $srcdir in
1561 .) # We are building in place.
1562 ac_srcdir=.
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
1566 ac_srcdir=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1569 *) # Relative name.
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 esac
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for guested configure.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1584 else
1585 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 fi || ac_status=$?
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1588 done
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1593 cat <<\_ACEOF
1594 libsodium configure 1.0.10
1595 generated by GNU Autoconf 2.69
1597 Copyright (C) 2012 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it.
1600 _ACEOF
1601 exit
1604 ## ------------------------ ##
1605 ## Autoconf initialization. ##
1606 ## ------------------------ ##
1608 # ac_fn_c_try_compile LINENO
1609 # --------------------------
1610 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_compile ()
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext
1615 if { { ac_try="$ac_compile"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_compile") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest.$ac_objext; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1639 ac_retval=1
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1644 } # ac_fn_c_try_compile
1646 # ac_fn_c_try_cpp LINENO
1647 # ----------------------
1648 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_cpp ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_cpp conftest.$ac_ext"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } > conftest.i && {
1668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 }; then :
1671 ac_retval=0
1672 else
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1676 ac_retval=1
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1681 } # ac_fn_c_try_cpp
1683 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1684 # -------------------------------------------------------
1685 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1686 # the include files in INCLUDES and setting the cache variable VAR
1687 # accordingly.
1688 ac_fn_c_check_header_mongrel ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if eval \${$3+:} false; then :
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1697 eval ac_res=\$$3
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1700 else
1701 # Is the header compilable?
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1703 $as_echo_n "checking $2 usability... " >&6; }
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1707 #include <$2>
1708 _ACEOF
1709 if ac_fn_c_try_compile "$LINENO"; then :
1710 ac_header_compiler=yes
1711 else
1712 ac_header_compiler=no
1714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1716 $as_echo "$ac_header_compiler" >&6; }
1718 # Is the header present?
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1720 $as_echo_n "checking $2 presence... " >&6; }
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_cpp "$LINENO"; then :
1726 ac_header_preproc=yes
1727 else
1728 ac_header_preproc=no
1730 rm -f conftest.err conftest.i conftest.$ac_ext
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1732 $as_echo "$ac_header_preproc" >&6; }
1734 # So? What about this header?
1735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1736 yes:no: )
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1738 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1740 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1742 no:yes:* )
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1744 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1746 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1748 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1750 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1752 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1753 ( $as_echo "## ----------------------------------------------------------- ##
1754 ## Report this to https://github.com/jedisct1/libsodium/issues ##
1755 ## ----------------------------------------------------------- ##"
1756 ) | sed "s/^/$as_me: WARNING: /" >&2
1758 esac
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 eval "$3=\$ac_header_compiler"
1766 eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 } # ac_fn_c_check_header_mongrel
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1778 ac_fn_c_try_run ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1808 ac_retval=$ac_status
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1814 } # ac_fn_c_try_run
1816 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1817 # -------------------------------------------------------
1818 # Tests whether HEADER exists and can be compiled using the include files in
1819 # INCLUDES, setting the cache variable VAR accordingly.
1820 ac_fn_c_check_header_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1827 else
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834 eval "$3=yes"
1835 else
1836 eval "$3=no"
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 } # ac_fn_c_check_header_compile
1847 # ac_fn_c_try_link LINENO
1848 # -----------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_c_try_link ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest$ac_exeext && {
1873 test "$cross_compiling" = yes ||
1874 test -x conftest$ac_exeext
1875 }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=1
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_c_try_link
1893 # ac_fn_c_check_func LINENO FUNC VAR
1894 # ----------------------------------
1895 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1896 ac_fn_c_check_func ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1908 #define $2 innocuous_$2
1910 /* System header to define __stub macros and hopefully few prototypes,
1911 which can conflict with char $2 (); below.
1912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1913 <limits.h> exists even on freestanding compilers. */
1915 #ifdef __STDC__
1916 # include <limits.h>
1917 #else
1918 # include <assert.h>
1919 #endif
1921 #undef $2
1923 /* Override any GCC internal prototype to avoid an error.
1924 Use char because int might match the return type of a GCC
1925 builtin and then its argument prototype would still apply. */
1926 #ifdef __cplusplus
1927 extern "C"
1928 #endif
1929 char $2 ();
1930 /* The GNU C library defines this for functions which it implements
1931 to always fail with ENOSYS. Some functions are actually named
1932 something starting with __ and the normal name is an alias. */
1933 #if defined __stub_$2 || defined __stub___$2
1934 choke me
1935 #endif
1938 main ()
1940 return $2 ();
1942 return 0;
1944 _ACEOF
1945 if ac_fn_c_try_link "$LINENO"; then :
1946 eval "$3=yes"
1947 else
1948 eval "$3=no"
1950 rm -f core conftest.err conftest.$ac_objext \
1951 conftest$ac_exeext conftest.$ac_ext
1953 eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 } # ac_fn_c_check_func
1959 cat >config.log <<_ACEOF
1960 This file contains any messages produced by compilers while
1961 running configure, to aid debugging if configure makes a mistake.
1963 It was created by libsodium $as_me 1.0.10, which was
1964 generated by GNU Autoconf 2.69. Invocation command line was
1966 $ $0 $@
1968 _ACEOF
1969 exec 5>>config.log
1971 cat <<_ASUNAME
1972 ## --------- ##
1973 ## Platform. ##
1974 ## --------- ##
1976 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1977 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1978 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1979 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1980 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1982 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1983 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1985 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1986 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1987 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1988 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1989 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1990 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1991 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1993 _ASUNAME
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 $as_echo "PATH: $as_dir"
2001 done
2002 IFS=$as_save_IFS
2004 } >&5
2006 cat >&5 <<_ACEOF
2009 ## ----------- ##
2010 ## Core tests. ##
2011 ## ----------- ##
2013 _ACEOF
2016 # Keep a trace of the command line.
2017 # Strip out --no-create and --no-recursion so they do not pile up.
2018 # Strip out --silent because we don't want to record it for future runs.
2019 # Also quote any args containing shell meta-characters.
2020 # Make two passes to allow for proper duplicate-argument suppression.
2021 ac_configure_args=
2022 ac_configure_args0=
2023 ac_configure_args1=
2024 ac_must_keep_next=false
2025 for ac_pass in 1 2
2027 for ac_arg
2029 case $ac_arg in
2030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2032 | -silent | --silent | --silen | --sile | --sil)
2033 continue ;;
2034 *\'*)
2035 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2036 esac
2037 case $ac_pass in
2038 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2040 as_fn_append ac_configure_args1 " '$ac_arg'"
2041 if test $ac_must_keep_next = true; then
2042 ac_must_keep_next=false # Got value, back to normal.
2043 else
2044 case $ac_arg in
2045 *=* | --config-cache | -C | -disable-* | --disable-* \
2046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2048 | -with-* | --with-* | -without-* | --without-* | --x)
2049 case "$ac_configure_args0 " in
2050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2051 esac
2053 -* ) ac_must_keep_next=true ;;
2054 esac
2056 as_fn_append ac_configure_args " '$ac_arg'"
2058 esac
2059 done
2060 done
2061 { ac_configure_args0=; unset ac_configure_args0;}
2062 { ac_configure_args1=; unset ac_configure_args1;}
2064 # When interrupted or exit'd, cleanup temporary files, and complete
2065 # config.log. We remove comments because anyway the quotes in there
2066 # would cause problems or look ugly.
2067 # WARNING: Use '\'' to represent an apostrophe within the trap.
2068 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2069 trap 'exit_status=$?
2070 # Save into config.log some information that might help in debugging.
2072 echo
2074 $as_echo "## ---------------- ##
2075 ## Cache variables. ##
2076 ## ---------------- ##"
2077 echo
2078 # The following way of writing the cache mishandles newlines in values,
2080 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in #(
2083 *${as_nl}*)
2084 case $ac_var in #(
2085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2087 esac
2088 case $ac_var in #(
2089 _ | IFS | as_nl) ;; #(
2090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2091 *) { eval $ac_var=; unset $ac_var;} ;;
2092 esac ;;
2093 esac
2094 done
2095 (set) 2>&1 |
2096 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2097 *${as_nl}ac_space=\ *)
2098 sed -n \
2099 "s/'\''/'\''\\\\'\'''\''/g;
2100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2101 ;; #(
2103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2105 esac |
2106 sort
2108 echo
2110 $as_echo "## ----------------- ##
2111 ## Output variables. ##
2112 ## ----------------- ##"
2113 echo
2114 for ac_var in $ac_subst_vars
2116 eval ac_val=\$$ac_var
2117 case $ac_val in
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 esac
2120 $as_echo "$ac_var='\''$ac_val'\''"
2121 done | sort
2122 echo
2124 if test -n "$ac_subst_files"; then
2125 $as_echo "## ------------------- ##
2126 ## File substitutions. ##
2127 ## ------------------- ##"
2128 echo
2129 for ac_var in $ac_subst_files
2131 eval ac_val=\$$ac_var
2132 case $ac_val in
2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 esac
2135 $as_echo "$ac_var='\''$ac_val'\''"
2136 done | sort
2137 echo
2140 if test -s confdefs.h; then
2141 $as_echo "## ----------- ##
2142 ## confdefs.h. ##
2143 ## ----------- ##"
2144 echo
2145 cat confdefs.h
2146 echo
2148 test "$ac_signal" != 0 &&
2149 $as_echo "$as_me: caught signal $ac_signal"
2150 $as_echo "$as_me: exit $exit_status"
2151 } >&5
2152 rm -f core *.core core.conftest.* &&
2153 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2154 exit $exit_status
2156 for ac_signal in 1 2 13 15; do
2157 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2158 done
2159 ac_signal=0
2161 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2162 rm -f -r conftest* confdefs.h
2164 $as_echo "/* confdefs.h */" > confdefs.h
2166 # Predefined preprocessor variables.
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_NAME "$PACKAGE_NAME"
2170 _ACEOF
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2174 _ACEOF
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2178 _ACEOF
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_STRING "$PACKAGE_STRING"
2182 _ACEOF
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2186 _ACEOF
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_URL "$PACKAGE_URL"
2190 _ACEOF
2193 # Let the site file select an alternate cache file if it wants to.
2194 # Prefer an explicitly selected file to automatically selected ones.
2195 ac_site_file1=NONE
2196 ac_site_file2=NONE
2197 if test -n "$CONFIG_SITE"; then
2198 # We do not want a PATH search for config.site.
2199 case $CONFIG_SITE in #((
2200 -*) ac_site_file1=./$CONFIG_SITE;;
2201 */*) ac_site_file1=$CONFIG_SITE;;
2202 *) ac_site_file1=./$CONFIG_SITE;;
2203 esac
2204 elif test "x$prefix" != xNONE; then
2205 ac_site_file1=$prefix/share/config.site
2206 ac_site_file2=$prefix/etc/config.site
2207 else
2208 ac_site_file1=$ac_default_prefix/share/config.site
2209 ac_site_file2=$ac_default_prefix/etc/config.site
2211 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2213 test "x$ac_site_file" = xNONE && continue
2214 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2216 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2217 sed 's/^/| /' "$ac_site_file" >&5
2218 . "$ac_site_file" \
2219 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2221 as_fn_error $? "failed to load site script $ac_site_file
2222 See \`config.log' for more details" "$LINENO" 5; }
2224 done
2226 if test -r "$cache_file"; then
2227 # Some versions of bash will fail to source /dev/null (special files
2228 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2229 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2231 $as_echo "$as_me: loading cache $cache_file" >&6;}
2232 case $cache_file in
2233 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2234 *) . "./$cache_file";;
2235 esac
2237 else
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2239 $as_echo "$as_me: creating cache $cache_file" >&6;}
2240 >$cache_file
2243 # Check that the precious variables saved in the cache have kept the same
2244 # value.
2245 ac_cache_corrupted=false
2246 for ac_var in $ac_precious_vars; do
2247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2248 eval ac_new_set=\$ac_env_${ac_var}_set
2249 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2250 eval ac_new_val=\$ac_env_${ac_var}_value
2251 case $ac_old_set,$ac_new_set in
2252 set,)
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2254 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2255 ac_cache_corrupted=: ;;
2256 ,set)
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2258 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2259 ac_cache_corrupted=: ;;
2260 ,);;
2262 if test "x$ac_old_val" != "x$ac_new_val"; then
2263 # differences in whitespace do not lead to failure.
2264 ac_old_val_w=`echo x $ac_old_val`
2265 ac_new_val_w=`echo x $ac_new_val`
2266 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2268 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2269 ac_cache_corrupted=:
2270 else
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2272 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2273 eval $ac_var=\$ac_old_val
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2276 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2278 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2279 fi;;
2280 esac
2281 # Pass precious variables to config.status.
2282 if test "$ac_new_set" = set; then
2283 case $ac_new_val in
2284 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2285 *) ac_arg=$ac_var=$ac_new_val ;;
2286 esac
2287 case " $ac_configure_args " in
2288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2289 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2290 esac
2292 done
2293 if $ac_cache_corrupted; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2297 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2298 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2300 ## -------------------- ##
2301 ## Main body of script. ##
2302 ## -------------------- ##
2304 ac_ext=c
2305 ac_cpp='$CPP $CPPFLAGS'
2306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311 ac_aux_dir=
2312 for ac_dir in build-aux "$srcdir"/build-aux; do
2313 if test -f "$ac_dir/install-sh"; then
2314 ac_aux_dir=$ac_dir
2315 ac_install_sh="$ac_aux_dir/install-sh -c"
2316 break
2317 elif test -f "$ac_dir/install.sh"; then
2318 ac_aux_dir=$ac_dir
2319 ac_install_sh="$ac_aux_dir/install.sh -c"
2320 break
2321 elif test -f "$ac_dir/shtool"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/shtool install -c"
2324 break
2326 done
2327 if test -z "$ac_aux_dir"; then
2328 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2331 # These three variables are undocumented and unsupported,
2332 # and are intended to be withdrawn in a future Autoconf release.
2333 # They can cause serious problems if a builder's source tree is in a directory
2334 # whose full name contains unusual characters.
2335 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2336 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2337 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2342 # Make sure we can run config.sub.
2343 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2344 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2347 $as_echo_n "checking build system type... " >&6; }
2348 if ${ac_cv_build+:} false; then :
2349 $as_echo_n "(cached) " >&6
2350 else
2351 ac_build_alias=$build_alias
2352 test "x$ac_build_alias" = x &&
2353 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2354 test "x$ac_build_alias" = x &&
2355 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2356 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2357 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2361 $as_echo "$ac_cv_build" >&6; }
2362 case $ac_cv_build in
2363 *-*-*) ;;
2364 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2365 esac
2366 build=$ac_cv_build
2367 ac_save_IFS=$IFS; IFS='-'
2368 set x $ac_cv_build
2369 shift
2370 build_cpu=$1
2371 build_vendor=$2
2372 shift; shift
2373 # Remember, the first character of IFS is used to create $*,
2374 # except with old shells:
2375 build_os=$*
2376 IFS=$ac_save_IFS
2377 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2381 $as_echo_n "checking host system type... " >&6; }
2382 if ${ac_cv_host+:} false; then :
2383 $as_echo_n "(cached) " >&6
2384 else
2385 if test "x$host_alias" = x; then
2386 ac_cv_host=$ac_cv_build
2387 else
2388 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2389 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2394 $as_echo "$ac_cv_host" >&6; }
2395 case $ac_cv_host in
2396 *-*-*) ;;
2397 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2398 esac
2399 host=$ac_cv_host
2400 ac_save_IFS=$IFS; IFS='-'
2401 set x $ac_cv_host
2402 shift
2403 host_cpu=$1
2404 host_vendor=$2
2405 shift; shift
2406 # Remember, the first character of IFS is used to create $*,
2407 # except with old shells:
2408 host_os=$*
2409 IFS=$ac_save_IFS
2410 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2413 am__api_version='1.15'
2415 # Find a good install program. We prefer a C program (faster),
2416 # so one script is as good as another. But avoid the broken or
2417 # incompatible versions:
2418 # SysV /etc/install, /usr/sbin/install
2419 # SunOS /usr/etc/install
2420 # IRIX /sbin/install
2421 # AIX /bin/install
2422 # AmigaOS /C/install, which installs bootblocks on floppy discs
2423 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2424 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2425 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2426 # OS/2's system install, which has a completely different semantic
2427 # ./install, which can be erroneously created by make from ./install.sh.
2428 # Reject install programs that cannot install multiple files.
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2430 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2431 if test -z "$INSTALL"; then
2432 if ${ac_cv_path_install+:} false; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 # Account for people who put trailing slashes in PATH elements.
2441 case $as_dir/ in #((
2442 ./ | .// | /[cC]/* | \
2443 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2444 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2445 /usr/ucb/* ) ;;
2447 # OSF1 and SCO ODT 3.0 have their own names for install.
2448 # Don't use installbsd from OSF since it installs stuff as root
2449 # by default.
2450 for ac_prog in ginstall scoinst install; do
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2453 if test $ac_prog = install &&
2454 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2455 # AIX install. It has an incompatible calling convention.
2457 elif test $ac_prog = install &&
2458 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2459 # program-specific install script used by HP pwplus--don't use.
2461 else
2462 rm -rf conftest.one conftest.two conftest.dir
2463 echo one > conftest.one
2464 echo two > conftest.two
2465 mkdir conftest.dir
2466 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2467 test -s conftest.one && test -s conftest.two &&
2468 test -s conftest.dir/conftest.one &&
2469 test -s conftest.dir/conftest.two
2470 then
2471 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2472 break 3
2476 done
2477 done
2479 esac
2481 done
2482 IFS=$as_save_IFS
2484 rm -rf conftest.one conftest.two conftest.dir
2487 if test "${ac_cv_path_install+set}" = set; then
2488 INSTALL=$ac_cv_path_install
2489 else
2490 # As a last resort, use the slow shell script. Don't cache a
2491 # value for INSTALL within a source directory, because that will
2492 # break other packages using the cache if that directory is
2493 # removed, or if the value is a relative name.
2494 INSTALL=$ac_install_sh
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2498 $as_echo "$INSTALL" >&6; }
2500 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2501 # It thinks the first close brace ends the variable substitution.
2502 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2504 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2506 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2509 $as_echo_n "checking whether build environment is sane... " >&6; }
2510 # Reject unsafe characters in $srcdir or the absolute working directory
2511 # name. Accept space and tab only in the latter.
2512 am_lf='
2514 case `pwd` in
2515 *[\\\"\#\$\&\'\`$am_lf]*)
2516 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2517 esac
2518 case $srcdir in
2519 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2520 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2521 esac
2523 # Do 'set' in a subshell so we don't clobber the current shell's
2524 # arguments. Must try -L first in case configure is actually a
2525 # symlink; some systems play weird games with the mod time of symlinks
2526 # (eg FreeBSD returns the mod time of the symlink's containing
2527 # directory).
2528 if (
2529 am_has_slept=no
2530 for am_try in 1 2; do
2531 echo "timestamp, slept: $am_has_slept" > conftest.file
2532 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2533 if test "$*" = "X"; then
2534 # -L didn't work.
2535 set X `ls -t "$srcdir/configure" conftest.file`
2537 if test "$*" != "X $srcdir/configure conftest.file" \
2538 && test "$*" != "X conftest.file $srcdir/configure"; then
2540 # If neither matched, then we have a broken ls. This can happen
2541 # if, for instance, CONFIG_SHELL is bash and it inherits a
2542 # broken ls alias from the environment. This has actually
2543 # happened. Such a system could not be considered "sane".
2544 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2545 alias in your environment" "$LINENO" 5
2547 if test "$2" = conftest.file || test $am_try -eq 2; then
2548 break
2550 # Just in case.
2551 sleep 1
2552 am_has_slept=yes
2553 done
2554 test "$2" = conftest.file
2556 then
2557 # Ok.
2559 else
2560 as_fn_error $? "newly created file is older than distributed files!
2561 Check your system clock" "$LINENO" 5
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564 $as_echo "yes" >&6; }
2565 # If we didn't sleep, we still need to ensure time stamps of config.status and
2566 # generated files are strictly newer.
2567 am_sleep_pid=
2568 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2569 ( sleep 1 ) &
2570 am_sleep_pid=$!
2573 rm -f conftest.file
2575 test "$program_prefix" != NONE &&
2576 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2577 # Use a double $ so make ignores it.
2578 test "$program_suffix" != NONE &&
2579 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2580 # Double any \ or $.
2581 # By default was `s,x,x', remove it if useless.
2582 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2583 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2585 # Expand $ac_aux_dir to an absolute path.
2586 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2588 if test x"${MISSING+set}" != xset; then
2589 case $am_aux_dir in
2590 *\ * | *\ *)
2591 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2593 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2594 esac
2596 # Use eval to expand $SHELL
2597 if eval "$MISSING --is-lightweight"; then
2598 am_missing_run="$MISSING "
2599 else
2600 am_missing_run=
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2602 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2605 if test x"${install_sh+set}" != xset; then
2606 case $am_aux_dir in
2607 *\ * | *\ *)
2608 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2610 install_sh="\${SHELL} $am_aux_dir/install-sh"
2611 esac
2614 # Installed binaries are usually stripped using 'strip' when the user
2615 # run "make install-strip". However 'strip' might not be the right
2616 # tool to use in cross-compilation environments, therefore Automake
2617 # will honor the 'STRIP' environment variable to overrule this program.
2618 if test "$cross_compiling" != no; then
2619 if test -n "$ac_tool_prefix"; then
2620 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}strip; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_STRIP+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 if test -n "$STRIP"; then
2628 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2641 done
2642 done
2643 IFS=$as_save_IFS
2647 STRIP=$ac_cv_prog_STRIP
2648 if test -n "$STRIP"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2650 $as_echo "$STRIP" >&6; }
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2658 if test -z "$ac_cv_prog_STRIP"; then
2659 ac_ct_STRIP=$STRIP
2660 # Extract the first word of "strip", so it can be a program name with args.
2661 set dummy strip; ac_word=$2
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663 $as_echo_n "checking for $ac_word... " >&6; }
2664 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 if test -n "$ac_ct_STRIP"; then
2668 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2677 ac_cv_prog_ac_ct_STRIP="strip"
2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2681 done
2682 done
2683 IFS=$as_save_IFS
2687 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2688 if test -n "$ac_ct_STRIP"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2690 $as_echo "$ac_ct_STRIP" >&6; }
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2696 if test "x$ac_ct_STRIP" = x; then
2697 STRIP=":"
2698 else
2699 case $cross_compiling:$ac_tool_warned in
2700 yes:)
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2703 ac_tool_warned=yes ;;
2704 esac
2705 STRIP=$ac_ct_STRIP
2707 else
2708 STRIP="$ac_cv_prog_STRIP"
2712 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2715 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2716 if test -z "$MKDIR_P"; then
2717 if ${ac_cv_path_mkdir+:} false; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_prog in mkdir gmkdir; do
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2728 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2729 'mkdir (GNU coreutils) '* | \
2730 'mkdir (coreutils) '* | \
2731 'mkdir (fileutils) '4.1*)
2732 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2733 break 3;;
2734 esac
2735 done
2736 done
2737 done
2738 IFS=$as_save_IFS
2742 test -d ./--version && rmdir ./--version
2743 if test "${ac_cv_path_mkdir+set}" = set; then
2744 MKDIR_P="$ac_cv_path_mkdir -p"
2745 else
2746 # As a last resort, use the slow shell script. Don't cache a
2747 # value for MKDIR_P within a source directory, because that will
2748 # break other packages using the cache if that directory is
2749 # removed, or if the value is a relative name.
2750 MKDIR_P="$ac_install_sh -d"
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2754 $as_echo "$MKDIR_P" >&6; }
2756 for ac_prog in gawk mawk nawk awk
2758 # Extract the first word of "$ac_prog", so it can be a program name with args.
2759 set dummy $ac_prog; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_AWK+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 if test -n "$AWK"; then
2766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_AWK="$ac_prog"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2779 done
2780 done
2781 IFS=$as_save_IFS
2785 AWK=$ac_cv_prog_AWK
2786 if test -n "$AWK"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2788 $as_echo "$AWK" >&6; }
2789 else
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2795 test -n "$AWK" && break
2796 done
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2799 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2800 set x ${MAKE-make}
2801 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2802 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 cat >conftest.make <<\_ACEOF
2806 SHELL = /bin/sh
2807 all:
2808 @echo '@@@%%%=$(MAKE)=@@@%%%'
2809 _ACEOF
2810 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2811 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2812 *@@@%%%=?*=@@@%%%*)
2813 eval ac_cv_prog_make_${ac_make}_set=yes;;
2815 eval ac_cv_prog_make_${ac_make}_set=no;;
2816 esac
2817 rm -f conftest.make
2819 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2821 $as_echo "yes" >&6; }
2822 SET_MAKE=
2823 else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 SET_MAKE="MAKE=${MAKE-make}"
2829 rm -rf .tst 2>/dev/null
2830 mkdir .tst 2>/dev/null
2831 if test -d .tst; then
2832 am__leading_dot=.
2833 else
2834 am__leading_dot=_
2836 rmdir .tst 2>/dev/null
2838 # Check whether --enable-silent-rules was given.
2839 if test "${enable_silent_rules+set}" = set; then :
2840 enableval=$enable_silent_rules;
2843 case $enable_silent_rules in # (((
2844 yes) AM_DEFAULT_VERBOSITY=0;;
2845 no) AM_DEFAULT_VERBOSITY=1;;
2846 *) AM_DEFAULT_VERBOSITY=1;;
2847 esac
2848 am_make=${MAKE-make}
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2850 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2851 if ${am_cv_make_support_nested_variables+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if $as_echo 'TRUE=$(BAR$(V))
2855 BAR0=false
2856 BAR1=true
2858 am__doit:
2859 @$(TRUE)
2860 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2861 am_cv_make_support_nested_variables=yes
2862 else
2863 am_cv_make_support_nested_variables=no
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2867 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2868 if test $am_cv_make_support_nested_variables = yes; then
2869 AM_V='$(V)'
2870 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2871 else
2872 AM_V=$AM_DEFAULT_VERBOSITY
2873 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2875 AM_BACKSLASH='\'
2877 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2878 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2879 # is not polluted with repeated "-I."
2880 am__isrc=' -I$(srcdir)'
2881 # test to see if srcdir already configured
2882 if test -f $srcdir/config.status; then
2883 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2887 # test whether we have cygpath
2888 if test -z "$CYGPATH_W"; then
2889 if (cygpath --version) >/dev/null 2>/dev/null; then
2890 CYGPATH_W='cygpath -w'
2891 else
2892 CYGPATH_W=echo
2897 # Define the identity of the package.
2898 PACKAGE='libsodium'
2899 VERSION='1.0.10'
2902 cat >>confdefs.h <<_ACEOF
2903 #define PACKAGE "$PACKAGE"
2904 _ACEOF
2907 cat >>confdefs.h <<_ACEOF
2908 #define VERSION "$VERSION"
2909 _ACEOF
2911 # Some tools Automake needs.
2913 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2916 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2919 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2922 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2925 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2927 # For better backward compatibility. To be removed once Automake 1.9.x
2928 # dies out for good. For more background, see:
2929 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2930 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2931 mkdir_p='$(MKDIR_P)'
2933 # We need awk for the "check" target (and possibly the TAP driver). The
2934 # system "awk" is bad on some platforms.
2935 # Always define AMTAR for backward compatibility. Yes, it's still used
2936 # in the wild :-( We should find a proper way to deprecate it ...
2937 AMTAR='$${TAR-tar}'
2940 # We'll loop over all known methods to create a tar archive until one works.
2941 _am_tools='gnutar plaintar pax cpio none'
2943 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
2944 # There is notably a 21 bits limit for the UID and the GID. In fact,
2945 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2946 # and bug#13588).
2947 am_max_uid=2097151 # 2^21 - 1
2948 am_max_gid=$am_max_uid
2949 # The $UID and $GID variables are not portable, so we need to resort
2950 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
2951 # below are definitely unexpected, so allow the users to see them
2952 # (that is, avoid stderr redirection).
2953 am_uid=`id -u || echo unknown`
2954 am_gid=`id -g || echo unknown`
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2956 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2957 if test $am_uid -le $am_max_uid; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959 $as_echo "yes" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 _am_tools=none
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2966 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2967 if test $am_gid -le $am_max_gid; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2969 $as_echo "yes" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 _am_tools=none
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2977 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2979 # Go ahead even if we have the value already cached. We do so because we
2980 # need to set the values for the 'am__tar' and 'am__untar' variables.
2981 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2983 for _am_tool in $_am_tools; do
2984 case $_am_tool in
2985 gnutar)
2986 for _am_tar in tar gnutar gtar; do
2987 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2988 ($_am_tar --version) >&5 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } && break
2992 done
2993 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2994 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2995 am__untar="$_am_tar -xf -"
2997 plaintar)
2998 # Must skip GNU tar: if it does not support --format= it doesn't create
2999 # ustar tarball either.
3000 (tar --version) >/dev/null 2>&1 && continue
3001 am__tar='tar chf - "$$tardir"'
3002 am__tar_='tar chf - "$tardir"'
3003 am__untar='tar xf -'
3005 pax)
3006 am__tar='pax -L -x ustar -w "$$tardir"'
3007 am__tar_='pax -L -x ustar -w "$tardir"'
3008 am__untar='pax -r'
3010 cpio)
3011 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3012 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3013 am__untar='cpio -i -H ustar -d'
3015 none)
3016 am__tar=false
3017 am__tar_=false
3018 am__untar=false
3020 esac
3022 # If the value was cached, stop now. We just wanted to have am__tar
3023 # and am__untar set.
3024 test -n "${am_cv_prog_tar_ustar}" && break
3026 # tar/untar a dummy directory, and stop if the command works.
3027 rm -rf conftest.dir
3028 mkdir conftest.dir
3029 echo GrepMe > conftest.dir/file
3030 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3031 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }
3035 rm -rf conftest.dir
3036 if test -s conftest.tar; then
3037 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3038 ($am__untar <conftest.tar) >&5 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3043 (cat conftest.dir/file) >&5 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3049 done
3050 rm -rf conftest.dir
3052 if ${am_cv_prog_tar_ustar+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 am_cv_prog_tar_ustar=$_am_tool
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3059 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3066 # POSIX will say in a future version that running "rm -f" with no argument
3067 # is OK; and we want to be able to make that assumption in our Makefile
3068 # recipes. So use an aggressive probe to check that the usage we want is
3069 # actually supported "in the wild" to an acceptable degree.
3070 # See automake bug#10828.
3071 # To make any issue more visible, cause the running configure to be aborted
3072 # by default if the 'rm' program in use doesn't match our expectations; the
3073 # user can still override this though.
3074 if rm -f && rm -fr && rm -rf; then : OK; else
3075 cat >&2 <<'END'
3076 Oops!
3078 Your 'rm' program seems unable to run without file operands specified
3079 on the command line, even when the '-f' option is present. This is contrary
3080 to the behaviour of most rm programs out there, and not conforming with
3081 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3083 Please tell bug-automake@gnu.org about your system, including the value
3084 of your $PATH and any error possibly output before this message. This
3085 can help us improve future automake versions.
3088 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3089 echo 'Configuration will proceed anyway, since you have set the' >&2
3090 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3091 echo >&2
3092 else
3093 cat >&2 <<'END'
3094 Aborting the configuration process, to ensure you take notice of the issue.
3096 You can download and install GNU coreutils to get an 'rm' implementation
3097 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3099 If you want to complete the configuration process using your problematic
3100 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3101 to "yes", and re-run configure.
3104 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3108 # Check whether --enable-silent-rules was given.
3109 if test "${enable_silent_rules+set}" = set; then :
3110 enableval=$enable_silent_rules;
3113 case $enable_silent_rules in # (((
3114 yes) AM_DEFAULT_VERBOSITY=0;;
3115 no) AM_DEFAULT_VERBOSITY=1;;
3116 *) AM_DEFAULT_VERBOSITY=0;;
3117 esac
3118 am_make=${MAKE-make}
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3120 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3121 if ${am_cv_make_support_nested_variables+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if $as_echo 'TRUE=$(BAR$(V))
3125 BAR0=false
3126 BAR1=true
3128 am__doit:
3129 @$(TRUE)
3130 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3131 am_cv_make_support_nested_variables=yes
3132 else
3133 am_cv_make_support_nested_variables=no
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3137 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3138 if test $am_cv_make_support_nested_variables = yes; then
3139 AM_V='$(V)'
3140 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3141 else
3142 AM_V=$AM_DEFAULT_VERBOSITY
3143 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3145 AM_BACKSLASH='\'
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3149 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3150 # Check whether --enable-maintainer-mode was given.
3151 if test "${enable_maintainer_mode+set}" = set; then :
3152 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3153 else
3154 USE_MAINTAINER_MODE=no
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3158 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3159 if test $USE_MAINTAINER_MODE = yes; then
3160 MAINTAINER_MODE_TRUE=
3161 MAINTAINER_MODE_FALSE='#'
3162 else
3163 MAINTAINER_MODE_TRUE='#'
3164 MAINTAINER_MODE_FALSE=
3167 MAINT=$MAINTAINER_MODE_TRUE
3170 # Check whether --enable-dependency-tracking was given.
3171 if test "${enable_dependency_tracking+set}" = set; then :
3172 enableval=$enable_dependency_tracking;
3175 if test "x$enable_dependency_tracking" != xno; then
3176 am_depcomp="$ac_aux_dir/depcomp"
3177 AMDEPBACKSLASH='\'
3178 am__nodep='_no'
3180 if test "x$enable_dependency_tracking" != xno; then
3181 AMDEP_TRUE=
3182 AMDEP_FALSE='#'
3183 else
3184 AMDEP_TRUE='#'
3185 AMDEP_FALSE=
3191 ISODATE=`date +%Y-%m-%d`
3194 SODIUM_LIBRARY_VERSION_MAJOR=9
3195 SODIUM_LIBRARY_VERSION_MINOR=2
3196 DLL_VERSION=8
3197 SODIUM_LIBRARY_VERSION=19:0:1
3198 # | | |
3199 # +------+ | +---+
3200 # | | |
3201 # current:revision:age
3202 # | | |
3203 # | | +- increment if interfaces have been added
3204 # | | set to zero if interfaces have been removed
3205 # | | or changed
3206 # | +- increment if source code has changed
3207 # | set to zero if current is incremented
3208 # +- increment if interfaces have been added, removed or changed
3214 LX_CFLAGS=${CFLAGS-NONE}
3217 if test pwd | fgrep ' ' > /dev/null 2>&1; then :
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The build directory contains whitespaces - This can cause tests/installation to fail due to limitations of some libtool versions" >&5
3219 $as_echo "$as_me: WARNING: The build directory contains whitespaces - This can cause tests/installation to fail due to limitations of some libtool versions" >&2;}
3224 # Check whether --enable-ssp was given.
3225 if test "${enable_ssp+set}" = set; then :
3226 enableval=$enable_ssp;
3227 if test "x$enableval" = "xno"; then :
3229 enable_ssp="no"
3231 else
3233 enable_ssp="yes"
3237 else
3239 enable_ssp="yes"
3244 # Check whether --enable-asm was given.
3245 if test "${enable_asm+set}" = set; then :
3246 enableval=$enable_asm;
3247 if test "x$enableval" = "xno"; then :
3249 enable_asm="no"
3251 else
3253 enable_asm="yes"
3257 else
3259 enable_asm="yes"
3264 if test "x$EMSCRIPTEN" != "x"; then :
3266 enable_asm="no"
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiling to javascript - asm implementations disabled" >&5
3268 $as_echo "$as_me: WARNING: compiling to javascript - asm implementations disabled" >&2;}
3272 # Check whether --enable-pie was given.
3273 if test "${enable_pie+set}" = set; then :
3274 enableval=$enable_pie; enable_pie=$enableval
3275 else
3276 enable_pie="maybe"
3280 case $host_os in #(
3281 mingw*|cygwin*|msys) :
3282 enable_pie="no" ;; #(
3283 *) :
3285 esac
3287 # Check whether --enable-blocking-random was given.
3288 if test "${enable_blocking_random+set}" = set; then :
3289 enableval=$enable_blocking_random;
3290 if test "x$enableval" = "xyes"; then :
3293 $as_echo "#define USE_BLOCKING_RANDOM 1" >>confdefs.h
3301 # Check whether --enable-minimal was given.
3302 if test "${enable_minimal+set}" = set; then :
3303 enableval=$enable_minimal;
3304 if test "x$enableval" = "xyes"; then :
3306 enable_minimal="yes"
3308 else
3310 enable_minimal="no"
3314 else
3316 enable_minimal="no"
3320 if test x$enable_minimal = xyes; then
3321 MINIMAL_TRUE=
3322 MINIMAL_FALSE='#'
3323 else
3324 MINIMAL_TRUE='#'
3325 MINIMAL_FALSE=
3330 # Check whether --with-safecode was given.
3331 if test "${with_safecode+set}" = set; then :
3332 withval=$with_safecode; if test "x$withval" = "xyes"; then :
3335 : ${SAFECODE_HOME:=/opt/safecode}
3336 LDFLAGS="$LDFLAGS -L${SAFECODE_HOME}/lib"
3337 LIBS="$LIBS -lsc_dbg_rt -lpoolalloc_bitmap -lstdc++"
3338 CFLAGS="$CFLAGS -fmemsafety"
3345 # Check whether --enable-debug was given.
3346 if test "${enable_debug+set}" = set; then :
3347 enableval=$enable_debug;
3348 if test "x$enableval" = "xyes"; then :
3350 if test "x$LX_CFLAGS" = "xNONE"; then :
3352 nxflags=""
3353 for flag in `echo $CFLAGS`; do
3354 case $flag in #(
3355 -O*) :
3356 ;; #(
3357 -g*) :
3358 ;; #(
3359 *) :
3360 as_fn_append nxflags " $flag" ;; #(
3361 *) :
3363 esac
3364 done
3365 CFLAGS="$nxflags -O0 -g3"
3368 CPPFLAGS="$CPPFLAGS -DDEBUG=1"
3375 # Check whether --enable-opt was given.
3376 if test "${enable_opt+set}" = set; then :
3377 enableval=$enable_opt;
3378 if test "x$enableval" = "xyes"; then :
3380 CFLAGS="$CFLAGS -O3 -march=native"
3381 LDFLAGS="$LDFLAGS -O3 -march=native"
3390 # Check whether --enable-valgrind was given.
3391 if test "${enable_valgrind+set}" = set; then :
3392 enableval=$enable_valgrind; enable_valgrind=$enableval
3393 else
3394 enable_valgrind=no
3398 if test "$enable_valgrind" != "no"; then :
3400 # Check for Valgrind.
3401 # Extract the first word of "valgrind", so it can be a program name with args.
3402 set dummy valgrind; ac_word=$2
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404 $as_echo_n "checking for $ac_word... " >&6; }
3405 if ${ac_cv_prog_VALGRIND+:} false; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 if test -n "$VALGRIND"; then
3409 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
3410 else
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 for as_dir in $PATH
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418 ac_cv_prog_VALGRIND="valgrind"
3419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 break 2
3422 done
3423 done
3424 IFS=$as_save_IFS
3428 VALGRIND=$ac_cv_prog_VALGRIND
3429 if test -n "$VALGRIND"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
3431 $as_echo "$VALGRIND" >&6; }
3432 else
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3438 if test "$VALGRIND" = ""; then :
3440 if test "$enable_valgrind" = "yes"; then :
3442 as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5
3444 else
3446 enable_valgrind=no
3450 else
3452 enable_valgrind=yes
3458 if test "$enable_valgrind" = "yes"; then
3459 VALGRIND_ENABLED_TRUE=
3460 VALGRIND_ENABLED_FALSE='#'
3461 else
3462 VALGRIND_ENABLED_TRUE='#'
3463 VALGRIND_ENABLED_FALSE=
3466 VALGRIND_ENABLED=$enable_valgrind
3469 # Check for Valgrind tools we care about.
3472 if test "$VALGRIND" != ""; then :
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5
3478 $as_echo_n "checking for Valgrind tool memcheck... " >&6; }
3479 if ${ax_cv_valgrind_tool_memcheck+:} false; then :
3480 $as_echo_n "(cached) " >&6
3481 else
3483 ax_cv_valgrind_tool_memcheck=
3484 if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1`; then :
3486 ax_cv_valgrind_tool_memcheck="memcheck"
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5
3492 $as_echo "$ax_cv_valgrind_tool_memcheck" >&6; }
3494 VALGRIND_HAVE_TOOL_memcheck=$ax_cv_valgrind_tool_memcheck
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool helgrind" >&5
3500 $as_echo_n "checking for Valgrind tool helgrind... " >&6; }
3501 if ${ax_cv_valgrind_tool_helgrind+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3505 ax_cv_valgrind_tool_helgrind=
3506 if `$VALGRIND --tool=helgrind --help >/dev/null 2>&1`; then :
3508 ax_cv_valgrind_tool_helgrind="helgrind"
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_helgrind" >&5
3514 $as_echo "$ax_cv_valgrind_tool_helgrind" >&6; }
3516 VALGRIND_HAVE_TOOL_helgrind=$ax_cv_valgrind_tool_helgrind
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool drd" >&5
3522 $as_echo_n "checking for Valgrind tool drd... " >&6; }
3523 if ${ax_cv_valgrind_tool_drd+:} false; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3527 ax_cv_valgrind_tool_drd=
3528 if `$VALGRIND --tool=drd --help >/dev/null 2>&1`; then :
3530 ax_cv_valgrind_tool_drd="drd"
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_drd" >&5
3536 $as_echo "$ax_cv_valgrind_tool_drd" >&6; }
3538 VALGRIND_HAVE_TOOL_drd=$ax_cv_valgrind_tool_drd
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool exp-sgcheck" >&5
3544 $as_echo_n "checking for Valgrind tool exp-sgcheck... " >&6; }
3545 if ${ax_cv_valgrind_tool_exp_sgcheck+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3549 ax_cv_valgrind_tool_exp_sgcheck=
3550 if `$VALGRIND --tool=exp-sgcheck --help >/dev/null 2>&1`; then :
3552 ax_cv_valgrind_tool_exp_sgcheck="exp-sgcheck"
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_exp_sgcheck" >&5
3558 $as_echo "$ax_cv_valgrind_tool_exp_sgcheck" >&6; }
3560 VALGRIND_HAVE_TOOL_exp_sgcheck=$ax_cv_valgrind_tool_exp_sgcheck
3566 VALGRIND_CHECK_RULES='
3567 # Valgrind check
3569 # Optional:
3570 # - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions
3571 # files to load. (Default: empty)
3572 # - VALGRIND_FLAGS: General flags to pass to all Valgrind tools.
3573 # (Default: --num-callers=30)
3574 # - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of:
3575 # memcheck, helgrind, drd, sgcheck). (Default: various)
3577 # Optional variables
3578 VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES))
3579 VALGRIND_FLAGS ?= --num-callers=30
3580 VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no
3581 VALGRIND_helgrind_FLAGS ?= --history-level=approx
3582 VALGRIND_drd_FLAGS ?=
3583 VALGRIND_sgcheck_FLAGS ?=
3585 # Internal use
3586 valgrind_tools = memcheck helgrind drd sgcheck
3587 valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools)))
3589 valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS)
3590 valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS)
3591 valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS)
3592 valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS)
3594 valgrind_quiet = $(valgrind_quiet_$(V))
3595 valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY))
3596 valgrind_quiet_0 = --quiet
3598 # Support running with and without libtool.
3599 ifneq ($(LIBTOOL),)
3600 valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute
3601 else
3602 valgrind_lt =
3603 endif
3605 # Use recursive makes in order to ignore errors during check
3606 check-valgrind:
3607 ifeq ($(VALGRIND_ENABLED),yes)
3608 -$(foreach tool,$(valgrind_tools), \
3609 $(if $(VALGRIND_HAVE_TOOL_$(tool))$(VALGRIND_HAVE_TOOL_exp_$(tool)), \
3610 $(MAKE) $(AM_MAKEFLAGS) -k check-valgrind-tool VALGRIND_TOOL=$(tool); \
3613 else
3614 @echo "Need to reconfigure with --enable-valgrind"
3615 endif
3617 # Valgrind running
3618 VALGRIND_TESTS_ENVIRONMENT = \
3619 $(TESTS_ENVIRONMENT) \
3620 env VALGRIND=$(VALGRIND) \
3621 G_SLICE=always-malloc,debug-blocks \
3622 G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly
3624 VALGRIND_LOG_COMPILER = \
3625 $(valgrind_lt) \
3626 $(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS)
3628 check-valgrind-tool:
3629 ifeq ($(VALGRIND_ENABLED),yes)
3630 $(MAKE) check-TESTS \
3631 TESTS_ENVIRONMENT="$(VALGRIND_TESTS_ENVIRONMENT)" \
3632 LOG_COMPILER="$(VALGRIND_LOG_COMPILER)" \
3633 LOG_FLAGS="$(valgrind_$(VALGRIND_TOOL)_flags)" \
3634 TEST_SUITE_LOG=test-suite-$(VALGRIND_TOOL).log
3635 else
3636 @echo "Need to reconfigure with --enable-valgrind"
3637 endif
3639 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
3640 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind
3642 MOSTLYCLEANFILES ?=
3643 MOSTLYCLEANFILES += $(valgrind_log_files)
3645 .PHONY: check-valgrind check-valgrind-tool
3648 if test "$enable_valgrind" != "yes"; then :
3650 VALGRIND_CHECK_RULES='
3651 check-valgrind:
3652 @echo "Need to use GNU make and reconfigure with --enable-valgrind"'
3660 DEPDIR="${am__leading_dot}deps"
3662 ac_config_commands="$ac_config_commands depfiles"
3665 am_make=${MAKE-make}
3666 cat > confinc << 'END'
3667 am__doit:
3668 @echo this is the am__doit target
3669 .PHONY: am__doit
3671 # If we don't find an include directive, just comment out the code.
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3673 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3674 am__include="#"
3675 am__quote=
3676 _am_result=none
3677 # First try GNU make style include.
3678 echo "include confinc" > confmf
3679 # Ignore all kinds of additional output from 'make'.
3680 case `$am_make -s -f confmf 2> /dev/null` in #(
3681 *the\ am__doit\ target*)
3682 am__include=include
3683 am__quote=
3684 _am_result=GNU
3686 esac
3687 # Now try BSD make style include.
3688 if test "$am__include" = "#"; then
3689 echo '.include "confinc"' > confmf
3690 case `$am_make -s -f confmf 2> /dev/null` in #(
3691 *the\ am__doit\ target*)
3692 am__include=.include
3693 am__quote="\""
3694 _am_result=BSD
3696 esac
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3701 $as_echo "$_am_result" >&6; }
3702 rm -f confinc confmf
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709 if test -n "$ac_tool_prefix"; then
3710 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3711 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if ${ac_cv_prog_CC+:} false; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 if test -n "$CC"; then
3718 ac_cv_prog_CC="$CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3723 IFS=$as_save_IFS
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 break 2
3731 done
3732 done
3733 IFS=$as_save_IFS
3737 CC=$ac_cv_prog_CC
3738 if test -n "$CC"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 $as_echo "$CC" >&6; }
3741 else
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3748 if test -z "$ac_cv_prog_CC"; then
3749 ac_ct_CC=$CC
3750 # Extract the first word of "gcc", so it can be a program name with args.
3751 set dummy gcc; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -n "$ac_ct_CC"; then
3758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_ac_ct_CC="gcc"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3771 done
3772 done
3773 IFS=$as_save_IFS
3777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3778 if test -n "$ac_ct_CC"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3780 $as_echo "$ac_ct_CC" >&6; }
3781 else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3786 if test "x$ac_ct_CC" = x; then
3787 CC=""
3788 else
3789 case $cross_compiling:$ac_tool_warned in
3790 yes:)
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3793 ac_tool_warned=yes ;;
3794 esac
3795 CC=$ac_ct_CC
3797 else
3798 CC="$ac_cv_prog_CC"
3801 if test -z "$CC"; then
3802 if test -n "$ac_tool_prefix"; then
3803 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3804 set dummy ${ac_tool_prefix}cc; ac_word=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if ${ac_cv_prog_CC+:} false; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 if test -n "$CC"; then
3811 ac_cv_prog_CC="$CC" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_CC="${ac_tool_prefix}cc"
3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3824 done
3825 done
3826 IFS=$as_save_IFS
3830 CC=$ac_cv_prog_CC
3831 if test -n "$CC"; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3833 $as_echo "$CC" >&6; }
3834 else
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3842 if test -z "$CC"; then
3843 # Extract the first word of "cc", so it can be a program name with args.
3844 set dummy cc; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if ${ac_cv_prog_CC+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 if test -n "$CC"; then
3851 ac_cv_prog_CC="$CC" # Let the user override the test.
3852 else
3853 ac_prog_rejected=no
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3861 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3862 ac_prog_rejected=yes
3863 continue
3865 ac_cv_prog_CC="cc"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 break 2
3869 done
3870 done
3871 IFS=$as_save_IFS
3873 if test $ac_prog_rejected = yes; then
3874 # We found a bogon in the path, so make sure we never use it.
3875 set dummy $ac_cv_prog_CC
3876 shift
3877 if test $# != 0; then
3878 # We chose a different compiler from the bogus one.
3879 # However, it has the same basename, so the bogon will be chosen
3880 # first if we set CC to just the basename; use the full file name.
3881 shift
3882 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3887 CC=$ac_cv_prog_CC
3888 if test -n "$CC"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3890 $as_echo "$CC" >&6; }
3891 else
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3898 if test -z "$CC"; then
3899 if test -n "$ac_tool_prefix"; then
3900 for ac_prog in cl.exe
3902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 $as_echo_n "checking for $ac_word... " >&6; }
3906 if ${ac_cv_prog_CC+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 if test -n "$CC"; then
3910 ac_cv_prog_CC="$CC" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3923 done
3924 done
3925 IFS=$as_save_IFS
3929 CC=$ac_cv_prog_CC
3930 if test -n "$CC"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3932 $as_echo "$CC" >&6; }
3933 else
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 $as_echo "no" >&6; }
3939 test -n "$CC" && break
3940 done
3942 if test -z "$CC"; then
3943 ac_ct_CC=$CC
3944 for ac_prog in cl.exe
3946 # Extract the first word of "$ac_prog", so it can be a program name with args.
3947 set dummy $ac_prog; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$ac_ct_CC"; then
3954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963 ac_cv_prog_ac_ct_CC="$ac_prog"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3967 done
3968 done
3969 IFS=$as_save_IFS
3973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3974 if test -n "$ac_ct_CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3976 $as_echo "$ac_ct_CC" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3983 test -n "$ac_ct_CC" && break
3984 done
3986 if test "x$ac_ct_CC" = x; then
3987 CC=""
3988 else
3989 case $cross_compiling:$ac_tool_warned in
3990 yes:)
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3993 ac_tool_warned=yes ;;
3994 esac
3995 CC=$ac_ct_CC
4002 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error $? "no acceptable C compiler found in \$PATH
4005 See \`config.log' for more details" "$LINENO" 5; }
4007 # Provide some information about the compiler.
4008 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4009 set X $ac_compile
4010 ac_compiler=$2
4011 for ac_option in --version -v -V -qversion; do
4012 { { ac_try="$ac_compiler $ac_option >&5"
4013 case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 $as_echo "$ac_try_echo"; } >&5
4019 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4020 ac_status=$?
4021 if test -s conftest.err; then
4022 sed '10a\
4023 ... rest of stderr output deleted ...
4024 10q' conftest.err >conftest.er1
4025 cat conftest.er1 >&5
4027 rm -f conftest.er1 conftest.err
4028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }
4030 done
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4036 main ()
4040 return 0;
4042 _ACEOF
4043 ac_clean_files_save=$ac_clean_files
4044 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4045 # Try to create an executable without -o first, disregard a.out.
4046 # It will help us diagnose broken compilers, and finding out an intuition
4047 # of exeext.
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4049 $as_echo_n "checking whether the C compiler works... " >&6; }
4050 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4052 # The possible output files:
4053 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4055 ac_rmfiles=
4056 for ac_file in $ac_files
4058 case $ac_file in
4059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4060 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4061 esac
4062 done
4063 rm -f $ac_rmfiles
4065 if { { ac_try="$ac_link_default"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071 $as_echo "$ac_try_echo"; } >&5
4072 (eval "$ac_link_default") 2>&5
4073 ac_status=$?
4074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075 test $ac_status = 0; }; then :
4076 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4077 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4078 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4079 # so that the user can short-circuit this test for compilers unknown to
4080 # Autoconf.
4081 for ac_file in $ac_files ''
4083 test -f "$ac_file" || continue
4084 case $ac_file in
4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4087 [ab].out )
4088 # We found the default executable, but exeext='' is most
4089 # certainly right.
4090 break;;
4091 *.* )
4092 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4093 then :; else
4094 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4096 # We set ac_cv_exeext here because the later test for it is not
4097 # safe: cross compilers may not add the suffix if given an `-o'
4098 # argument, so we may need to know it at that point already.
4099 # Even if this section looks crufty: it has the advantage of
4100 # actually working.
4101 break;;
4103 break;;
4104 esac
4105 done
4106 test "$ac_cv_exeext" = no && ac_cv_exeext=
4108 else
4109 ac_file=''
4111 if test -z "$ac_file"; then :
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4114 $as_echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4119 as_fn_error 77 "C compiler cannot create executables
4120 See \`config.log' for more details" "$LINENO" 5; }
4121 else
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4123 $as_echo "yes" >&6; }
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4126 $as_echo_n "checking for C compiler default output file name... " >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4128 $as_echo "$ac_file" >&6; }
4129 ac_exeext=$ac_cv_exeext
4131 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4132 ac_clean_files=$ac_clean_files_save
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4134 $as_echo_n "checking for suffix of executables... " >&6; }
4135 if { { ac_try="$ac_link"
4136 case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139 esac
4140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4141 $as_echo "$ac_try_echo"; } >&5
4142 (eval "$ac_link") 2>&5
4143 ac_status=$?
4144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4145 test $ac_status = 0; }; then :
4146 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4147 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4148 # work properly (i.e., refer to `conftest.exe'), while it won't with
4149 # `rm'.
4150 for ac_file in conftest.exe conftest conftest.*; do
4151 test -f "$ac_file" || continue
4152 case $ac_file in
4153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4155 break;;
4156 * ) break;;
4157 esac
4158 done
4159 else
4160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4162 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4163 See \`config.log' for more details" "$LINENO" 5; }
4165 rm -f conftest conftest$ac_cv_exeext
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4167 $as_echo "$ac_cv_exeext" >&6; }
4169 rm -f conftest.$ac_ext
4170 EXEEXT=$ac_cv_exeext
4171 ac_exeext=$EXEEXT
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <stdio.h>
4176 main ()
4178 FILE *f = fopen ("conftest.out", "w");
4179 return ferror (f) || fclose (f) != 0;
4182 return 0;
4184 _ACEOF
4185 ac_clean_files="$ac_clean_files conftest.out"
4186 # Check that the compiler produces executables we can run. If not, either
4187 # the compiler is broken, or we cross compile.
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4189 $as_echo_n "checking whether we are cross compiling... " >&6; }
4190 if test "$cross_compiling" != yes; then
4191 { { ac_try="$ac_link"
4192 case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197 $as_echo "$ac_try_echo"; } >&5
4198 (eval "$ac_link") 2>&5
4199 ac_status=$?
4200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201 test $ac_status = 0; }
4202 if { ac_try='./conftest$ac_cv_exeext'
4203 { { case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206 esac
4207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208 $as_echo "$ac_try_echo"; } >&5
4209 (eval "$ac_try") 2>&5
4210 ac_status=$?
4211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212 test $ac_status = 0; }; }; then
4213 cross_compiling=no
4214 else
4215 if test "$cross_compiling" = maybe; then
4216 cross_compiling=yes
4217 else
4218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4220 as_fn_error $? "cannot run C compiled programs.
4221 If you meant to cross compile, use \`--host'.
4222 See \`config.log' for more details" "$LINENO" 5; }
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4227 $as_echo "$cross_compiling" >&6; }
4229 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4230 ac_clean_files=$ac_clean_files_save
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4232 $as_echo_n "checking for suffix of object files... " >&6; }
4233 if ${ac_cv_objext+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4240 main ()
4244 return 0;
4246 _ACEOF
4247 rm -f conftest.o conftest.obj
4248 if { { ac_try="$ac_compile"
4249 case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252 esac
4253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254 $as_echo "$ac_try_echo"; } >&5
4255 (eval "$ac_compile") 2>&5
4256 ac_status=$?
4257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258 test $ac_status = 0; }; then :
4259 for ac_file in conftest.o conftest.obj conftest.*; do
4260 test -f "$ac_file" || continue;
4261 case $ac_file in
4262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4263 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4264 break;;
4265 esac
4266 done
4267 else
4268 $as_echo "$as_me: failed program was:" >&5
4269 sed 's/^/| /' conftest.$ac_ext >&5
4271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273 as_fn_error $? "cannot compute suffix of object files: cannot compile
4274 See \`config.log' for more details" "$LINENO" 5; }
4276 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4279 $as_echo "$ac_cv_objext" >&6; }
4280 OBJEXT=$ac_cv_objext
4281 ac_objext=$OBJEXT
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4283 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4284 if ${ac_cv_c_compiler_gnu+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4291 main ()
4293 #ifndef __GNUC__
4294 choke me
4295 #endif
4298 return 0;
4300 _ACEOF
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_compiler_gnu=yes
4303 else
4304 ac_compiler_gnu=no
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4311 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4312 if test $ac_compiler_gnu = yes; then
4313 GCC=yes
4314 else
4315 GCC=
4317 ac_test_CFLAGS=${CFLAGS+set}
4318 ac_save_CFLAGS=$CFLAGS
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4320 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4321 if ${ac_cv_prog_cc_g+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 ac_save_c_werror_flag=$ac_c_werror_flag
4325 ac_c_werror_flag=yes
4326 ac_cv_prog_cc_g=no
4327 CFLAGS="-g"
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4332 main ()
4336 return 0;
4338 _ACEOF
4339 if ac_fn_c_try_compile "$LINENO"; then :
4340 ac_cv_prog_cc_g=yes
4341 else
4342 CFLAGS=""
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4347 main ()
4351 return 0;
4353 _ACEOF
4354 if ac_fn_c_try_compile "$LINENO"; then :
4356 else
4357 ac_c_werror_flag=$ac_save_c_werror_flag
4358 CFLAGS="-g"
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4363 main ()
4367 return 0;
4369 _ACEOF
4370 if ac_fn_c_try_compile "$LINENO"; then :
4371 ac_cv_prog_cc_g=yes
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378 ac_c_werror_flag=$ac_save_c_werror_flag
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4381 $as_echo "$ac_cv_prog_cc_g" >&6; }
4382 if test "$ac_test_CFLAGS" = set; then
4383 CFLAGS=$ac_save_CFLAGS
4384 elif test $ac_cv_prog_cc_g = yes; then
4385 if test "$GCC" = yes; then
4386 CFLAGS="-g -O2"
4387 else
4388 CFLAGS="-g"
4390 else
4391 if test "$GCC" = yes; then
4392 CFLAGS="-O2"
4393 else
4394 CFLAGS=
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4398 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4399 if ${ac_cv_prog_cc_c89+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 ac_cv_prog_cc_c89=no
4403 ac_save_CC=$CC
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406 #include <stdarg.h>
4407 #include <stdio.h>
4408 struct stat;
4409 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4410 struct buf { int x; };
4411 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4412 static char *e (p, i)
4413 char **p;
4414 int i;
4416 return p[i];
4418 static char *f (char * (*g) (char **, int), char **p, ...)
4420 char *s;
4421 va_list v;
4422 va_start (v,p);
4423 s = g (p, va_arg (v,int));
4424 va_end (v);
4425 return s;
4428 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4429 function prototypes and stuff, but not '\xHH' hex character constants.
4430 These don't provoke an error unfortunately, instead are silently treated
4431 as 'x'. The following induces an error, until -std is added to get
4432 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4433 array size at least. It's necessary to write '\x00'==0 to get something
4434 that's true only with -std. */
4435 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4437 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4438 inside strings and character constants. */
4439 #define FOO(x) 'x'
4440 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4442 int test (int i, double x);
4443 struct s1 {int (*f) (int a);};
4444 struct s2 {int (*f) (double a);};
4445 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4446 int argc;
4447 char **argv;
4449 main ()
4451 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4453 return 0;
4455 _ACEOF
4456 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4457 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4459 CC="$ac_save_CC $ac_arg"
4460 if ac_fn_c_try_compile "$LINENO"; then :
4461 ac_cv_prog_cc_c89=$ac_arg
4463 rm -f core conftest.err conftest.$ac_objext
4464 test "x$ac_cv_prog_cc_c89" != "xno" && break
4465 done
4466 rm -f conftest.$ac_ext
4467 CC=$ac_save_CC
4470 # AC_CACHE_VAL
4471 case "x$ac_cv_prog_cc_c89" in
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4474 $as_echo "none needed" >&6; } ;;
4475 xno)
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4477 $as_echo "unsupported" >&6; } ;;
4479 CC="$CC $ac_cv_prog_cc_c89"
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4481 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4482 esac
4483 if test "x$ac_cv_prog_cc_c89" != xno; then :
4487 ac_ext=c
4488 ac_cpp='$CPP $CPPFLAGS'
4489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4493 ac_ext=c
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4499 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4500 if ${am_cv_prog_cc_c_o+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4507 main ()
4511 return 0;
4513 _ACEOF
4514 # Make sure it works both with $CC and with simple cc.
4515 # Following AC_PROG_CC_C_O, we do the test twice because some
4516 # compilers refuse to overwrite an existing .o file with -o,
4517 # though they will create one.
4518 am_cv_prog_cc_c_o=yes
4519 for am_i in 1 2; do
4520 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4521 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } \
4525 && test -f conftest2.$ac_objext; then
4526 : OK
4527 else
4528 am_cv_prog_cc_c_o=no
4529 break
4531 done
4532 rm -f core conftest*
4533 unset am_i
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4536 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4537 if test "$am_cv_prog_cc_c_o" != yes; then
4538 # Losing compiler, so override with the script.
4539 # FIXME: It is wrong to rewrite CC.
4540 # But if we don't then we get into trouble of one sort or another.
4541 # A longer-term fix would be to have automake use am__CC in this case,
4542 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4543 CC="$am_aux_dir/compile $CC"
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 depcc="$CC" am_compiler_list=
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4555 $as_echo_n "checking dependency style of $depcc... " >&6; }
4556 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4560 # We make a subdir and do the tests there. Otherwise we can end up
4561 # making bogus files that we don't know about and never remove. For
4562 # instance it was reported that on HP-UX the gcc test will end up
4563 # making a dummy file named 'D' -- because '-MD' means "put the output
4564 # in D".
4565 rm -rf conftest.dir
4566 mkdir conftest.dir
4567 # Copy depcomp to subdir because otherwise we won't find it if we're
4568 # using a relative directory.
4569 cp "$am_depcomp" conftest.dir
4570 cd conftest.dir
4571 # We will build objects and dependencies in a subdirectory because
4572 # it helps to detect inapplicable dependency modes. For instance
4573 # both Tru64's cc and ICC support -MD to output dependencies as a
4574 # side effect of compilation, but ICC will put the dependencies in
4575 # the current directory while Tru64 will put them in the object
4576 # directory.
4577 mkdir sub
4579 am_cv_CC_dependencies_compiler_type=none
4580 if test "$am_compiler_list" = ""; then
4581 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4583 am__universal=false
4584 case " $depcc " in #(
4585 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4586 esac
4588 for depmode in $am_compiler_list; do
4589 # Setup a source with many dependencies, because some compilers
4590 # like to wrap large dependency lists on column 80 (with \), and
4591 # we should not choose a depcomp mode which is confused by this.
4593 # We need to recreate these files for each test, as the compiler may
4594 # overwrite some of them when testing with obscure command lines.
4595 # This happens at least with the AIX C compiler.
4596 : > sub/conftest.c
4597 for i in 1 2 3 4 5 6; do
4598 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4599 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4600 # Solaris 10 /bin/sh.
4601 echo '/* dummy */' > sub/conftst$i.h
4602 done
4603 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4605 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4606 # mode. It turns out that the SunPro C++ compiler does not properly
4607 # handle '-M -o', and we need to detect this. Also, some Intel
4608 # versions had trouble with output in subdirs.
4609 am__obj=sub/conftest.${OBJEXT-o}
4610 am__minus_obj="-o $am__obj"
4611 case $depmode in
4612 gcc)
4613 # This depmode causes a compiler race in universal mode.
4614 test "$am__universal" = false || continue
4616 nosideeffect)
4617 # After this tag, mechanisms are not by side-effect, so they'll
4618 # only be used when explicitly requested.
4619 if test "x$enable_dependency_tracking" = xyes; then
4620 continue
4621 else
4622 break
4625 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4626 # This compiler won't grok '-c -o', but also, the minuso test has
4627 # not run yet. These depmodes are late enough in the game, and
4628 # so weak that their functioning should not be impacted.
4629 am__obj=conftest.${OBJEXT-o}
4630 am__minus_obj=
4632 none) break ;;
4633 esac
4634 if depmode=$depmode \
4635 source=sub/conftest.c object=$am__obj \
4636 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4637 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4638 >/dev/null 2>conftest.err &&
4639 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4641 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4643 # icc doesn't choke on unknown options, it will just issue warnings
4644 # or remarks (even with -Werror). So we grep stderr for any message
4645 # that says an option was ignored or not supported.
4646 # When given -MP, icc 7.0 and 7.1 complain thusly:
4647 # icc: Command line warning: ignoring option '-M'; no argument required
4648 # The diagnosis changed in icc 8.0:
4649 # icc: Command line remark: option '-MP' not supported
4650 if (grep 'ignoring option' conftest.err ||
4651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4652 am_cv_CC_dependencies_compiler_type=$depmode
4653 break
4656 done
4658 cd ..
4659 rm -rf conftest.dir
4660 else
4661 am_cv_CC_dependencies_compiler_type=none
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4666 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4667 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4670 test "x$enable_dependency_tracking" != xno \
4671 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4672 am__fastdepCC_TRUE=
4673 am__fastdepCC_FALSE='#'
4674 else
4675 am__fastdepCC_TRUE='#'
4676 am__fastdepCC_FALSE=
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4681 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4682 if ${ac_cv_prog_cc_c99+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 ac_cv_prog_cc_c99=no
4686 ac_save_CC=$CC
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 #include <stdarg.h>
4690 #include <stdbool.h>
4691 #include <stdlib.h>
4692 #include <wchar.h>
4693 #include <stdio.h>
4695 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4696 #define debug(...) fprintf (stderr, __VA_ARGS__)
4697 #define showlist(...) puts (#__VA_ARGS__)
4698 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4699 static void
4700 test_varargs_macros (void)
4702 int x = 1234;
4703 int y = 5678;
4704 debug ("Flag");
4705 debug ("X = %d\n", x);
4706 showlist (The first, second, and third items.);
4707 report (x>y, "x is %d but y is %d", x, y);
4710 // Check long long types.
4711 #define BIG64 18446744073709551615ull
4712 #define BIG32 4294967295ul
4713 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4714 #if !BIG_OK
4715 your preprocessor is broken;
4716 #endif
4717 #if BIG_OK
4718 #else
4719 your preprocessor is broken;
4720 #endif
4721 static long long int bignum = -9223372036854775807LL;
4722 static unsigned long long int ubignum = BIG64;
4724 struct incomplete_array
4726 int datasize;
4727 double data[];
4730 struct named_init {
4731 int number;
4732 const wchar_t *name;
4733 double average;
4736 typedef const char *ccp;
4738 static inline int
4739 test_restrict (ccp restrict text)
4741 // See if C++-style comments work.
4742 // Iterate through items via the restricted pointer.
4743 // Also check for declarations in for loops.
4744 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4745 continue;
4746 return 0;
4749 // Check varargs and va_copy.
4750 static void
4751 test_varargs (const char *format, ...)
4753 va_list args;
4754 va_start (args, format);
4755 va_list args_copy;
4756 va_copy (args_copy, args);
4758 const char *str;
4759 int number;
4760 float fnumber;
4762 while (*format)
4764 switch (*format++)
4766 case 's': // string
4767 str = va_arg (args_copy, const char *);
4768 break;
4769 case 'd': // int
4770 number = va_arg (args_copy, int);
4771 break;
4772 case 'f': // float
4773 fnumber = va_arg (args_copy, double);
4774 break;
4775 default:
4776 break;
4779 va_end (args_copy);
4780 va_end (args);
4784 main ()
4787 // Check bool.
4788 _Bool success = false;
4790 // Check restrict.
4791 if (test_restrict ("String literal") == 0)
4792 success = true;
4793 char *restrict newvar = "Another string";
4795 // Check varargs.
4796 test_varargs ("s, d' f .", "string", 65, 34.234);
4797 test_varargs_macros ();
4799 // Check flexible array members.
4800 struct incomplete_array *ia =
4801 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4802 ia->datasize = 10;
4803 for (int i = 0; i < ia->datasize; ++i)
4804 ia->data[i] = i * 1.234;
4806 // Check named initializers.
4807 struct named_init ni = {
4808 .number = 34,
4809 .name = L"Test wide string",
4810 .average = 543.34343,
4813 ni.number = 58;
4815 int dynamic_array[ni.number];
4816 dynamic_array[ni.number - 1] = 543;
4818 // work around unused variable warnings
4819 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4820 || dynamic_array[ni.number - 1] != 543);
4823 return 0;
4825 _ACEOF
4826 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4828 CC="$ac_save_CC $ac_arg"
4829 if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_cv_prog_cc_c99=$ac_arg
4832 rm -f core conftest.err conftest.$ac_objext
4833 test "x$ac_cv_prog_cc_c99" != "xno" && break
4834 done
4835 rm -f conftest.$ac_ext
4836 CC=$ac_save_CC
4839 # AC_CACHE_VAL
4840 case "x$ac_cv_prog_cc_c99" in
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4843 $as_echo "none needed" >&6; } ;;
4844 xno)
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4846 $as_echo "unsupported" >&6; } ;;
4848 CC="$CC $ac_cv_prog_cc_c99"
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4850 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4851 esac
4852 if test "x$ac_cv_prog_cc_c99" != xno; then :
4857 # By default we simply use the C compiler to build assembly code.
4859 test "${CCAS+set}" = set || CCAS=$CC
4860 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4864 depcc="$CCAS" am_compiler_list=
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4867 $as_echo_n "checking dependency style of $depcc... " >&6; }
4868 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4872 # We make a subdir and do the tests there. Otherwise we can end up
4873 # making bogus files that we don't know about and never remove. For
4874 # instance it was reported that on HP-UX the gcc test will end up
4875 # making a dummy file named 'D' -- because '-MD' means "put the output
4876 # in D".
4877 rm -rf conftest.dir
4878 mkdir conftest.dir
4879 # Copy depcomp to subdir because otherwise we won't find it if we're
4880 # using a relative directory.
4881 cp "$am_depcomp" conftest.dir
4882 cd conftest.dir
4883 # We will build objects and dependencies in a subdirectory because
4884 # it helps to detect inapplicable dependency modes. For instance
4885 # both Tru64's cc and ICC support -MD to output dependencies as a
4886 # side effect of compilation, but ICC will put the dependencies in
4887 # the current directory while Tru64 will put them in the object
4888 # directory.
4889 mkdir sub
4891 am_cv_CCAS_dependencies_compiler_type=none
4892 if test "$am_compiler_list" = ""; then
4893 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4895 am__universal=false
4898 for depmode in $am_compiler_list; do
4899 # Setup a source with many dependencies, because some compilers
4900 # like to wrap large dependency lists on column 80 (with \), and
4901 # we should not choose a depcomp mode which is confused by this.
4903 # We need to recreate these files for each test, as the compiler may
4904 # overwrite some of them when testing with obscure command lines.
4905 # This happens at least with the AIX C compiler.
4906 : > sub/conftest.c
4907 for i in 1 2 3 4 5 6; do
4908 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4909 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4910 # Solaris 10 /bin/sh.
4911 echo '/* dummy */' > sub/conftst$i.h
4912 done
4913 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4915 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4916 # mode. It turns out that the SunPro C++ compiler does not properly
4917 # handle '-M -o', and we need to detect this. Also, some Intel
4918 # versions had trouble with output in subdirs.
4919 am__obj=sub/conftest.${OBJEXT-o}
4920 am__minus_obj="-o $am__obj"
4921 case $depmode in
4922 gcc)
4923 # This depmode causes a compiler race in universal mode.
4924 test "$am__universal" = false || continue
4926 nosideeffect)
4927 # After this tag, mechanisms are not by side-effect, so they'll
4928 # only be used when explicitly requested.
4929 if test "x$enable_dependency_tracking" = xyes; then
4930 continue
4931 else
4932 break
4935 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4936 # This compiler won't grok '-c -o', but also, the minuso test has
4937 # not run yet. These depmodes are late enough in the game, and
4938 # so weak that their functioning should not be impacted.
4939 am__obj=conftest.${OBJEXT-o}
4940 am__minus_obj=
4942 none) break ;;
4943 esac
4944 if depmode=$depmode \
4945 source=sub/conftest.c object=$am__obj \
4946 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4947 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4948 >/dev/null 2>conftest.err &&
4949 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4950 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4951 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4952 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4953 # icc doesn't choke on unknown options, it will just issue warnings
4954 # or remarks (even with -Werror). So we grep stderr for any message
4955 # that says an option was ignored or not supported.
4956 # When given -MP, icc 7.0 and 7.1 complain thusly:
4957 # icc: Command line warning: ignoring option '-M'; no argument required
4958 # The diagnosis changed in icc 8.0:
4959 # icc: Command line remark: option '-MP' not supported
4960 if (grep 'ignoring option' conftest.err ||
4961 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4962 am_cv_CCAS_dependencies_compiler_type=$depmode
4963 break
4966 done
4968 cd ..
4969 rm -rf conftest.dir
4970 else
4971 am_cv_CCAS_dependencies_compiler_type=none
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4976 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4977 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4980 test "x$enable_dependency_tracking" != xno \
4981 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4982 am__fastdepCCAS_TRUE=
4983 am__fastdepCCAS_FALSE='#'
4984 else
4985 am__fastdepCCAS_TRUE='#'
4986 am__fastdepCCAS_FALSE=
4991 ac_ext=c
4992 ac_cpp='$CPP $CPPFLAGS'
4993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4997 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4998 # On Suns, sometimes $CPP names a directory.
4999 if test -n "$CPP" && test -d "$CPP"; then
5000 CPP=
5002 if test -z "$CPP"; then
5003 if ${ac_cv_prog_CPP+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 # Double quotes because CPP needs to be expanded
5007 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5009 ac_preproc_ok=false
5010 for ac_c_preproc_warn_flag in '' yes
5012 # Use a header file that comes with gcc, so configuring glibc
5013 # with a fresh cross-compiler works.
5014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5015 # <limits.h> exists even on freestanding compilers.
5016 # On the NeXT, cc -E runs the code through the compiler's parser,
5017 # not just through cpp. "Syntax error" is here to catch this case.
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 #ifdef __STDC__
5021 # include <limits.h>
5022 #else
5023 # include <assert.h>
5024 #endif
5025 Syntax error
5026 _ACEOF
5027 if ac_fn_c_try_cpp "$LINENO"; then :
5029 else
5030 # Broken: fails on valid input.
5031 continue
5033 rm -f conftest.err conftest.i conftest.$ac_ext
5035 # OK, works on sane cases. Now check whether nonexistent headers
5036 # can be detected and how.
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039 #include <ac_nonexistent.h>
5040 _ACEOF
5041 if ac_fn_c_try_cpp "$LINENO"; then :
5042 # Broken: success on invalid input.
5043 continue
5044 else
5045 # Passes both tests.
5046 ac_preproc_ok=:
5047 break
5049 rm -f conftest.err conftest.i conftest.$ac_ext
5051 done
5052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5053 rm -f conftest.i conftest.err conftest.$ac_ext
5054 if $ac_preproc_ok; then :
5055 break
5058 done
5059 ac_cv_prog_CPP=$CPP
5062 CPP=$ac_cv_prog_CPP
5063 else
5064 ac_cv_prog_CPP=$CPP
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5067 $as_echo "$CPP" >&6; }
5068 ac_preproc_ok=false
5069 for ac_c_preproc_warn_flag in '' yes
5071 # Use a header file that comes with gcc, so configuring glibc
5072 # with a fresh cross-compiler works.
5073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5074 # <limits.h> exists even on freestanding compilers.
5075 # On the NeXT, cc -E runs the code through the compiler's parser,
5076 # not just through cpp. "Syntax error" is here to catch this case.
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079 #ifdef __STDC__
5080 # include <limits.h>
5081 #else
5082 # include <assert.h>
5083 #endif
5084 Syntax error
5085 _ACEOF
5086 if ac_fn_c_try_cpp "$LINENO"; then :
5088 else
5089 # Broken: fails on valid input.
5090 continue
5092 rm -f conftest.err conftest.i conftest.$ac_ext
5094 # OK, works on sane cases. Now check whether nonexistent headers
5095 # can be detected and how.
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 #include <ac_nonexistent.h>
5099 _ACEOF
5100 if ac_fn_c_try_cpp "$LINENO"; then :
5101 # Broken: success on invalid input.
5102 continue
5103 else
5104 # Passes both tests.
5105 ac_preproc_ok=:
5106 break
5108 rm -f conftest.err conftest.i conftest.$ac_ext
5110 done
5111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112 rm -f conftest.i conftest.err conftest.$ac_ext
5113 if $ac_preproc_ok; then :
5115 else
5116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5118 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5119 See \`config.log' for more details" "$LINENO" 5; }
5122 ac_ext=c
5123 ac_cpp='$CPP $CPPFLAGS'
5124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5130 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5131 if ${ac_cv_path_GREP+:} false; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -z "$GREP"; then
5135 ac_path_GREP_found=false
5136 # Loop through the user's path and test for each of PROGNAME-LIST
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_prog in grep ggrep; do
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5145 as_fn_executable_p "$ac_path_GREP" || continue
5146 # Check for GNU ac_path_GREP and select it if it is found.
5147 # Check for GNU $ac_path_GREP
5148 case `"$ac_path_GREP" --version 2>&1` in
5149 *GNU*)
5150 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5152 ac_count=0
5153 $as_echo_n 0123456789 >"conftest.in"
5154 while :
5156 cat "conftest.in" "conftest.in" >"conftest.tmp"
5157 mv "conftest.tmp" "conftest.in"
5158 cp "conftest.in" "conftest.nl"
5159 $as_echo 'GREP' >> "conftest.nl"
5160 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5162 as_fn_arith $ac_count + 1 && ac_count=$as_val
5163 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5164 # Best one so far, save it but keep looking for a better one
5165 ac_cv_path_GREP="$ac_path_GREP"
5166 ac_path_GREP_max=$ac_count
5168 # 10*(2^10) chars as input seems more than enough
5169 test $ac_count -gt 10 && break
5170 done
5171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5172 esac
5174 $ac_path_GREP_found && break 3
5175 done
5176 done
5177 done
5178 IFS=$as_save_IFS
5179 if test -z "$ac_cv_path_GREP"; then
5180 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5182 else
5183 ac_cv_path_GREP=$GREP
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5188 $as_echo "$ac_cv_path_GREP" >&6; }
5189 GREP="$ac_cv_path_GREP"
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5193 $as_echo_n "checking for egrep... " >&6; }
5194 if ${ac_cv_path_EGREP+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5198 then ac_cv_path_EGREP="$GREP -E"
5199 else
5200 if test -z "$EGREP"; then
5201 ac_path_EGREP_found=false
5202 # Loop through the user's path and test for each of PROGNAME-LIST
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_prog in egrep; do
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5211 as_fn_executable_p "$ac_path_EGREP" || continue
5212 # Check for GNU ac_path_EGREP and select it if it is found.
5213 # Check for GNU $ac_path_EGREP
5214 case `"$ac_path_EGREP" --version 2>&1` in
5215 *GNU*)
5216 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5218 ac_count=0
5219 $as_echo_n 0123456789 >"conftest.in"
5220 while :
5222 cat "conftest.in" "conftest.in" >"conftest.tmp"
5223 mv "conftest.tmp" "conftest.in"
5224 cp "conftest.in" "conftest.nl"
5225 $as_echo 'EGREP' >> "conftest.nl"
5226 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5228 as_fn_arith $ac_count + 1 && ac_count=$as_val
5229 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5230 # Best one so far, save it but keep looking for a better one
5231 ac_cv_path_EGREP="$ac_path_EGREP"
5232 ac_path_EGREP_max=$ac_count
5234 # 10*(2^10) chars as input seems more than enough
5235 test $ac_count -gt 10 && break
5236 done
5237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5238 esac
5240 $ac_path_EGREP_found && break 3
5241 done
5242 done
5243 done
5244 IFS=$as_save_IFS
5245 if test -z "$ac_cv_path_EGREP"; then
5246 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5248 else
5249 ac_cv_path_EGREP=$EGREP
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5255 $as_echo "$ac_cv_path_EGREP" >&6; }
5256 EGREP="$ac_cv_path_EGREP"
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5260 $as_echo_n "checking for ANSI C header files... " >&6; }
5261 if ${ac_cv_header_stdc+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 #include <stdlib.h>
5267 #include <stdarg.h>
5268 #include <string.h>
5269 #include <float.h>
5272 main ()
5276 return 0;
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_header_stdc=yes
5281 else
5282 ac_cv_header_stdc=no
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 if test $ac_cv_header_stdc = yes; then
5287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 #include <string.h>
5292 _ACEOF
5293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5294 $EGREP "memchr" >/dev/null 2>&1; then :
5296 else
5297 ac_cv_header_stdc=no
5299 rm -f conftest*
5303 if test $ac_cv_header_stdc = yes; then
5304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307 #include <stdlib.h>
5309 _ACEOF
5310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5311 $EGREP "free" >/dev/null 2>&1; then :
5313 else
5314 ac_cv_header_stdc=no
5316 rm -f conftest*
5320 if test $ac_cv_header_stdc = yes; then
5321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5322 if test "$cross_compiling" = yes; then :
5324 else
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 #include <ctype.h>
5328 #include <stdlib.h>
5329 #if ((' ' & 0x0FF) == 0x020)
5330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5332 #else
5333 # define ISLOWER(c) \
5334 (('a' <= (c) && (c) <= 'i') \
5335 || ('j' <= (c) && (c) <= 'r') \
5336 || ('s' <= (c) && (c) <= 'z'))
5337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5338 #endif
5340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5342 main ()
5344 int i;
5345 for (i = 0; i < 256; i++)
5346 if (XOR (islower (i), ISLOWER (i))
5347 || toupper (i) != TOUPPER (i))
5348 return 2;
5349 return 0;
5351 _ACEOF
5352 if ac_fn_c_try_run "$LINENO"; then :
5354 else
5355 ac_cv_header_stdc=no
5357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5358 conftest.$ac_objext conftest.beam conftest.$ac_ext
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5364 $as_echo "$ac_cv_header_stdc" >&6; }
5365 if test $ac_cv_header_stdc = yes; then
5367 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5371 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5372 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5373 inttypes.h stdint.h unistd.h
5374 do :
5375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5376 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5378 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5379 cat >>confdefs.h <<_ACEOF
5380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5381 _ACEOF
5385 done
5389 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5390 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5391 MINIX=yes
5392 else
5393 MINIX=
5397 if test "$MINIX" = yes; then
5399 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5402 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5405 $as_echo "#define _MINIX 1" >>confdefs.h
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5411 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5412 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5418 # define __EXTENSIONS__ 1
5419 $ac_includes_default
5421 main ()
5425 return 0;
5427 _ACEOF
5428 if ac_fn_c_try_compile "$LINENO"; then :
5429 ac_cv_safe_to_define___extensions__=yes
5430 else
5431 ac_cv_safe_to_define___extensions__=no
5433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5436 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5437 test $ac_cv_safe_to_define___extensions__ = yes &&
5438 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5440 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5442 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5444 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5446 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __native_client__ defined" >&5
5452 $as_echo_n "checking for __native_client__ defined... " >&6; }
5453 if ${ac_cv_defined___native_client__+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5460 main ()
5463 #ifdef __native_client__
5464 int ok;
5465 #else
5466 choke me
5467 #endif
5470 return 0;
5472 _ACEOF
5473 if ac_fn_c_try_compile "$LINENO"; then :
5474 ac_cv_defined___native_client__=yes
5475 else
5476 ac_cv_defined___native_client__=no
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___native_client__" >&5
5481 $as_echo "$ac_cv_defined___native_client__" >&6; }
5482 if test $ac_cv_defined___native_client__ != "no"; then :
5483 NATIVECLIENT="yes"
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE defined" >&5
5488 $as_echo_n "checking for _FORTIFY_SOURCE defined... " >&6; }
5489 if ${ac_cv_defined__FORTIFY_SOURCE+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5496 main ()
5499 #ifdef _FORTIFY_SOURCE
5500 int ok;
5501 #else
5502 choke me
5503 #endif
5506 return 0;
5508 _ACEOF
5509 if ac_fn_c_try_compile "$LINENO"; then :
5510 ac_cv_defined__FORTIFY_SOURCE=yes
5511 else
5512 ac_cv_defined__FORTIFY_SOURCE=no
5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__FORTIFY_SOURCE" >&5
5517 $as_echo "$ac_cv_defined__FORTIFY_SOURCE" >&6; }
5518 if test $ac_cv_defined__FORTIFY_SOURCE != "no"; then :
5520 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
5523 $as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
5524 if ${ax_cv_check_cflags___D_FORTIFY_SOURCE_2+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5528 ax_check_save_flags=$CFLAGS
5529 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 #include <stdio.h>
5534 main ()
5536 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5538 return 0;
5540 _ACEOF
5541 if ac_fn_c_try_compile "$LINENO"; then :
5542 ax_cv_check_cflags___D_FORTIFY_SOURCE_2=yes
5543 else
5544 ax_cv_check_cflags___D_FORTIFY_SOURCE_2=no
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 CFLAGS=$ax_check_save_flags
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&5
5550 $as_echo "$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&6; }
5551 if test "x$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" = xyes; then :
5552 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
5553 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
5561 $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
5562 if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5566 ax_check_save_flags=$CFLAGS
5567 CFLAGS="$CFLAGS -fvisibility=hidden"
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 #include <stdio.h>
5572 main ()
5574 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5576 return 0;
5578 _ACEOF
5579 if ac_fn_c_try_compile "$LINENO"; then :
5580 ax_cv_check_cflags___fvisibility_hidden=yes
5581 else
5582 ax_cv_check_cflags___fvisibility_hidden=no
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 CFLAGS=$ax_check_save_flags
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
5588 $as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
5589 if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
5590 CFLAGS="$CFLAGS -fvisibility=hidden"
5591 else
5596 case $host_os in #(
5597 cygwin*|mingw*|msys|pw32*|cegcc*) :
5598 ;; #(
5599 *) :
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
5602 $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
5603 if ${ax_cv_check_cflags___fPIC+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5607 ax_check_save_flags=$CFLAGS
5608 CFLAGS="$CFLAGS -fPIC"
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5611 #include <stdio.h>
5613 main ()
5615 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5617 return 0;
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621 ax_cv_check_cflags___fPIC=yes
5622 else
5623 ax_cv_check_cflags___fPIC=no
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 CFLAGS=$ax_check_save_flags
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
5629 $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
5630 if test "x$ax_cv_check_cflags___fPIC" = xyes; then :
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIC" >&5
5633 $as_echo_n "checking whether the linker accepts -fPIC... " >&6; }
5634 if ${ax_cv_check_ldflags___fPIC+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5638 ax_check_save_flags=$LDFLAGS
5639 LDFLAGS="$LDFLAGS -fPIC"
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 #include <stdio.h>
5644 main ()
5646 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5648 return 0;
5650 _ACEOF
5651 if ac_fn_c_try_link "$LINENO"; then :
5652 ax_cv_check_ldflags___fPIC=yes
5653 else
5654 ax_cv_check_ldflags___fPIC=no
5656 rm -f core conftest.err conftest.$ac_objext \
5657 conftest$ac_exeext conftest.$ac_ext
5658 LDFLAGS=$ax_check_save_flags
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIC" >&5
5661 $as_echo "$ax_cv_check_ldflags___fPIC" >&6; }
5662 if test "x$ax_cv_check_ldflags___fPIC" = xyes; then :
5663 CFLAGS="$CFLAGS -fPIC"
5665 else
5670 else
5675 esac
5677 if test "$enable_pie" != "no"; then :
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
5680 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
5681 if ${ax_cv_check_cflags___fPIE+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5685 ax_check_save_flags=$CFLAGS
5686 CFLAGS="$CFLAGS -fPIE"
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include <stdio.h>
5691 main ()
5693 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5695 return 0;
5697 _ACEOF
5698 if ac_fn_c_try_compile "$LINENO"; then :
5699 ax_cv_check_cflags___fPIE=yes
5700 else
5701 ax_cv_check_cflags___fPIE=no
5703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704 CFLAGS=$ax_check_save_flags
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
5707 $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
5708 if test "x$ax_cv_check_cflags___fPIE" = xyes; then :
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE" >&5
5711 $as_echo_n "checking whether the linker accepts -fPIE... " >&6; }
5712 if ${ax_cv_check_ldflags___fPIE+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5716 ax_check_save_flags=$LDFLAGS
5717 LDFLAGS="$LDFLAGS -fPIE"
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5720 #include <stdio.h>
5722 main ()
5724 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5726 return 0;
5728 _ACEOF
5729 if ac_fn_c_try_link "$LINENO"; then :
5730 ax_cv_check_ldflags___fPIE=yes
5731 else
5732 ax_cv_check_ldflags___fPIE=no
5734 rm -f core conftest.err conftest.$ac_objext \
5735 conftest$ac_exeext conftest.$ac_ext
5736 LDFLAGS=$ax_check_save_flags
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIE" >&5
5739 $as_echo "$ax_cv_check_ldflags___fPIE" >&6; }
5740 if test "x$ax_cv_check_ldflags___fPIE" = xyes; then :
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
5742 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
5743 if ${ax_cv_check_ldflags___pie+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5747 ax_check_save_flags=$LDFLAGS
5748 LDFLAGS="$LDFLAGS -pie"
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #include <stdio.h>
5753 main ()
5755 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5757 return 0;
5759 _ACEOF
5760 if ac_fn_c_try_link "$LINENO"; then :
5761 ax_cv_check_ldflags___pie=yes
5762 else
5763 ax_cv_check_ldflags___pie=no
5765 rm -f core conftest.err conftest.$ac_objext \
5766 conftest$ac_exeext conftest.$ac_ext
5767 LDFLAGS=$ax_check_save_flags
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
5770 $as_echo "$ax_cv_check_ldflags___pie" >&6; }
5771 if test "x$ax_cv_check_ldflags___pie" = xyes; then :
5772 CFLAGS="$CFLAGS -fPIE"
5773 LDFLAGS="$LDFLAGS -pie"
5774 else
5779 else
5784 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
5792 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
5793 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5797 ax_check_save_flags=$CFLAGS
5798 CFLAGS="$CFLAGS -fno-strict-aliasing"
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 #include <stdio.h>
5803 main ()
5805 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5807 return 0;
5809 _ACEOF
5810 if ac_fn_c_try_compile "$LINENO"; then :
5811 ax_cv_check_cflags___fno_strict_aliasing=yes
5812 else
5813 ax_cv_check_cflags___fno_strict_aliasing=no
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816 CFLAGS=$ax_check_save_flags
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
5819 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
5820 if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
5821 CFLAGS="$CFLAGS -fno-strict-aliasing"
5822 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
5827 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
5828 if ${ax_cv_check_cflags___fno_strict_overflow+:} false; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5832 ax_check_save_flags=$CFLAGS
5833 CFLAGS="$CFLAGS -fno-strict-overflow"
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 #include <stdio.h>
5838 main ()
5840 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5842 return 0;
5844 _ACEOF
5845 if ac_fn_c_try_compile "$LINENO"; then :
5846 ax_cv_check_cflags___fno_strict_overflow=yes
5847 else
5848 ax_cv_check_cflags___fno_strict_overflow=no
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 CFLAGS=$ax_check_save_flags
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
5854 $as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
5855 if test "x$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
5856 CFLAGS="$CFLAGS -fno-strict-overflow"
5857 else
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
5860 $as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
5861 if ${ax_cv_check_cflags___fwrapv+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5865 ax_check_save_flags=$CFLAGS
5866 CFLAGS="$CFLAGS -fwrapv"
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 #include <stdio.h>
5871 main ()
5873 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5875 return 0;
5877 _ACEOF
5878 if ac_fn_c_try_compile "$LINENO"; then :
5879 ax_cv_check_cflags___fwrapv=yes
5880 else
5881 ax_cv_check_cflags___fwrapv=no
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 CFLAGS=$ax_check_save_flags
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
5887 $as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
5888 if test "x$ax_cv_check_cflags___fwrapv" = xyes; then :
5889 CFLAGS="$CFLAGS -fwrapv"
5890 else
5898 if test "$GCC" = "yes" ; then :
5900 case $host_cpu in #(
5901 i?86|amd64|x86_64) :
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5906 #if !defined(__clang__) && defined(__GNUC__) && ((__GNUC__ << 8) | __GNUC_MINOR__) < 0x403
5907 # error old gcc
5908 #endif
5909 int main(void) { return 0; }
5911 _ACEOF
5912 if ac_fn_c_try_compile "$LINENO"; then :
5914 else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flax-vector-conversions" >&5
5917 $as_echo_n "checking whether C compiler accepts -flax-vector-conversions... " >&6; }
5918 if ${ax_cv_check_cflags___flax_vector_conversions+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5922 ax_check_save_flags=$CFLAGS
5923 CFLAGS="$CFLAGS -flax-vector-conversions"
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 #include <stdio.h>
5928 main ()
5930 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5932 return 0;
5934 _ACEOF
5935 if ac_fn_c_try_compile "$LINENO"; then :
5936 ax_cv_check_cflags___flax_vector_conversions=yes
5937 else
5938 ax_cv_check_cflags___flax_vector_conversions=no
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 CFLAGS=$ax_check_save_flags
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flax_vector_conversions" >&5
5944 $as_echo "$ax_cv_check_cflags___flax_vector_conversions" >&6; }
5945 if test "x$ax_cv_check_cflags___flax_vector_conversions" = xyes; then :
5946 CFLAGS="$CFLAGS -flax-vector-conversions"
5947 else
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955 ;; #(
5956 *) :
5958 esac
5962 LIBTOOL_OLD_FLAGS="$LIBTOOL_EXTRA_FLAGS"
5963 LIBTOOL_EXTRA_FLAGS="$LIBTOOL_EXTRA_FLAGS -version-info $SODIUM_LIBRARY_VERSION"
5964 # Check whether --enable-soname-versions was given.
5965 if test "${enable_soname_versions+set}" = set; then :
5966 enableval=$enable_soname_versions;
5967 if test "x$enableval" = "xno"; then :
5969 LIBTOOL_EXTRA_FLAGS="$LIBTOOL_OLD_FLAGS -avoid-version"
5977 case $host_os in #(
5978 cygwin*|mingw*|msys|pw32*|cegcc*) :
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
5981 $as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
5982 if ${ax_cv_check_ldflags___Wl___dynamicbase+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5986 ax_check_save_flags=$LDFLAGS
5987 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5990 #include <stdio.h>
5992 main ()
5994 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5996 return 0;
5998 _ACEOF
5999 if ac_fn_c_try_link "$LINENO"; then :
6000 ax_cv_check_ldflags___Wl___dynamicbase=yes
6001 else
6002 ax_cv_check_ldflags___Wl___dynamicbase=no
6004 rm -f core conftest.err conftest.$ac_objext \
6005 conftest$ac_exeext conftest.$ac_ext
6006 LDFLAGS=$ax_check_save_flags
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
6009 $as_echo "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
6010 if test "x$ax_cv_check_ldflags___Wl___dynamicbase" = xyes; then :
6011 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
6012 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--high-entropy-va" >&5
6017 $as_echo_n "checking whether the linker accepts -Wl,--high-entropy-va... " >&6; }
6018 if ${ax_cv_check_ldflags___Wl___high_entropy_va+:} false; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6022 ax_check_save_flags=$LDFLAGS
6023 LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 #include <stdio.h>
6028 main ()
6030 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6032 return 0;
6034 _ACEOF
6035 if ac_fn_c_try_link "$LINENO"; then :
6036 ax_cv_check_ldflags___Wl___high_entropy_va=yes
6037 else
6038 ax_cv_check_ldflags___Wl___high_entropy_va=no
6040 rm -f core conftest.err conftest.$ac_objext \
6041 conftest$ac_exeext conftest.$ac_ext
6042 LDFLAGS=$ax_check_save_flags
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___high_entropy_va" >&5
6045 $as_echo "$ax_cv_check_ldflags___Wl___high_entropy_va" >&6; }
6046 if test "x$ax_cv_check_ldflags___Wl___high_entropy_va" = xyes; then :
6047 LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
6048 else
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
6053 $as_echo_n "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
6054 if ${ax_cv_check_ldflags___Wl___nxcompat+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6058 ax_check_save_flags=$LDFLAGS
6059 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 #include <stdio.h>
6064 main ()
6066 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6068 return 0;
6070 _ACEOF
6071 if ac_fn_c_try_link "$LINENO"; then :
6072 ax_cv_check_ldflags___Wl___nxcompat=yes
6073 else
6074 ax_cv_check_ldflags___Wl___nxcompat=no
6076 rm -f core conftest.err conftest.$ac_objext \
6077 conftest$ac_exeext conftest.$ac_ext
6078 LDFLAGS=$ax_check_save_flags
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
6081 $as_echo "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
6082 if test "x$ax_cv_check_ldflags___Wl___nxcompat" = xyes; then :
6083 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
6084 else
6088 ;; #(
6089 *) :
6091 esac
6093 if test "x$enable_ssp" != "xno"; then :
6096 case $host_os in #(
6097 cygwin*|mingw*|msys|pw32*|cegcc*) :
6098 ;; #(
6099 *) :
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
6102 $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
6103 if ${ax_cv_check_cflags___fstack_protector+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6107 ax_check_save_flags=$CFLAGS
6108 CFLAGS="$CFLAGS -fstack-protector"
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6111 #include <stdio.h>
6113 main ()
6115 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6117 return 0;
6119 _ACEOF
6120 if ac_fn_c_try_compile "$LINENO"; then :
6121 ax_cv_check_cflags___fstack_protector=yes
6122 else
6123 ax_cv_check_cflags___fstack_protector=no
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 CFLAGS=$ax_check_save_flags
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
6129 $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
6130 if test "x$ax_cv_check_cflags___fstack_protector" = xyes; then :
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
6133 $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
6134 if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6138 ax_check_save_flags=$LDFLAGS
6139 LDFLAGS="$LDFLAGS -fstack-protector"
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6142 #include <stdio.h>
6144 main ()
6146 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6148 return 0;
6150 _ACEOF
6151 if ac_fn_c_try_link "$LINENO"; then :
6152 ax_cv_check_ldflags___fstack_protector=yes
6153 else
6154 ax_cv_check_ldflags___fstack_protector=no
6156 rm -f core conftest.err conftest.$ac_objext \
6157 conftest$ac_exeext conftest.$ac_ext
6158 LDFLAGS=$ax_check_save_flags
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
6161 $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
6162 if test "x$ax_cv_check_ldflags___fstack_protector" = xyes; then :
6163 CFLAGS="$CFLAGS -fstack-protector"
6165 else
6170 else
6174 ;; #(
6175 *) :
6177 esac
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
6182 $as_echo_n "checking whether C compiler accepts -Wwrite-strings... " >&6; }
6183 if ${ax_cv_check_cflags___Wwrite_strings+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6187 ax_check_save_flags=$CFLAGS
6188 CFLAGS="$CFLAGS -Wwrite-strings"
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 #include <stdio.h>
6193 main ()
6195 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6197 return 0;
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"; then :
6201 ax_cv_check_cflags___Wwrite_strings=yes
6202 else
6203 ax_cv_check_cflags___Wwrite_strings=no
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 CFLAGS=$ax_check_save_flags
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
6209 $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
6210 if test "x$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
6211 CFLAGS="$CFLAGS -Wwrite-strings"
6212 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
6217 $as_echo_n "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
6218 if ${ax_cv_check_cflags___Wdiv_by_zero+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6222 ax_check_save_flags=$CFLAGS
6223 CFLAGS="$CFLAGS -Wdiv-by-zero"
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 #include <stdio.h>
6228 main ()
6230 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6232 return 0;
6234 _ACEOF
6235 if ac_fn_c_try_compile "$LINENO"; then :
6236 ax_cv_check_cflags___Wdiv_by_zero=yes
6237 else
6238 ax_cv_check_cflags___Wdiv_by_zero=no
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 CFLAGS=$ax_check_save_flags
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
6244 $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
6245 if test "x$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
6246 CFLAGS="$CFLAGS -Wdiv-by-zero"
6247 else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsometimes-uninitialized" >&5
6252 $as_echo_n "checking whether C compiler accepts -Wsometimes-uninitialized... " >&6; }
6253 if ${ax_cv_check_cflags___Wsometimes_uninitialized+:} false; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6257 ax_check_save_flags=$CFLAGS
6258 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 #include <stdio.h>
6263 main ()
6265 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6267 return 0;
6269 _ACEOF
6270 if ac_fn_c_try_compile "$LINENO"; then :
6271 ax_cv_check_cflags___Wsometimes_uninitialized=yes
6272 else
6273 ax_cv_check_cflags___Wsometimes_uninitialized=no
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 CFLAGS=$ax_check_save_flags
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
6279 $as_echo "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
6280 if test "x$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes; then :
6281 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
6282 else
6289 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wall" | $as_tr_sh`
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wall" >&5
6291 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wall... " >&6; }
6292 if eval \${$as_CACHEVAR+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6296 ax_check_save_flags=$CFLAGS
6297 CFLAGS="$CFLAGS $CWFLAGS -Wall"
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6300 #include <stdio.h>
6302 main ()
6304 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6306 return 0;
6308 _ACEOF
6309 if ac_fn_c_try_compile "$LINENO"; then :
6310 eval "$as_CACHEVAR=yes"
6311 else
6312 eval "$as_CACHEVAR=no"
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 CFLAGS=$ax_check_save_flags
6317 eval ac_res=\$$as_CACHEVAR
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6319 $as_echo "$ac_res" >&6; }
6320 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6321 CWFLAGS="$CWFLAGS -Wall"
6322 else
6326 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wextra" | $as_tr_sh`
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wextra" >&5
6328 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wextra... " >&6; }
6329 if eval \${$as_CACHEVAR+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6333 ax_check_save_flags=$CFLAGS
6334 CFLAGS="$CFLAGS $CWFLAGS -Wextra"
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337 #include <stdio.h>
6339 main ()
6341 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6343 return 0;
6345 _ACEOF
6346 if ac_fn_c_try_compile "$LINENO"; then :
6347 eval "$as_CACHEVAR=yes"
6348 else
6349 eval "$as_CACHEVAR=no"
6351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352 CFLAGS=$ax_check_save_flags
6354 eval ac_res=\$$as_CACHEVAR
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6356 $as_echo "$ac_res" >&6; }
6357 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6358 CWFLAGS="$CWFLAGS -Wextra"
6359 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
6365 $as_echo_n "checking for clang... " >&6; }
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6370 main ()
6373 #ifndef __clang__
6374 be sad
6375 #endif
6378 return 0;
6380 _ACEOF
6381 if ac_fn_c_try_compile "$LINENO"; then :
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6383 $as_echo "yes" >&6; }
6384 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | $as_tr_sh`
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
6386 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
6387 if eval \${$as_CACHEVAR+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6391 ax_check_save_flags=$CFLAGS
6392 CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-warning-option"
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6395 #include <stdio.h>
6397 main ()
6399 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6401 return 0;
6403 _ACEOF
6404 if ac_fn_c_try_compile "$LINENO"; then :
6405 eval "$as_CACHEVAR=yes"
6406 else
6407 eval "$as_CACHEVAR=no"
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 CFLAGS=$ax_check_save_flags
6412 eval ac_res=\$$as_CACHEVAR
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6414 $as_echo "$ac_res" >&6; }
6415 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6416 CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
6417 else
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
6431 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
6432 if eval \${$as_CACHEVAR+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6436 ax_check_save_flags=$CFLAGS
6437 CFLAGS="$CFLAGS $CWFLAGS -Wbad-function-cast"
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6440 #include <stdio.h>
6442 main ()
6444 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6446 return 0;
6448 _ACEOF
6449 if ac_fn_c_try_compile "$LINENO"; then :
6450 eval "$as_CACHEVAR=yes"
6451 else
6452 eval "$as_CACHEVAR=no"
6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 CFLAGS=$ax_check_save_flags
6457 eval ac_res=\$$as_CACHEVAR
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6459 $as_echo "$ac_res" >&6; }
6460 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6461 CWFLAGS="$CWFLAGS -Wbad-function-cast"
6462 else
6466 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-align" | $as_tr_sh`
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-align" >&5
6468 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-align... " >&6; }
6469 if eval \${$as_CACHEVAR+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6473 ax_check_save_flags=$CFLAGS
6474 CFLAGS="$CFLAGS $CWFLAGS -Wcast-align"
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 #include <stdio.h>
6479 main ()
6481 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6483 return 0;
6485 _ACEOF
6486 if ac_fn_c_try_compile "$LINENO"; then :
6487 eval "$as_CACHEVAR=yes"
6488 else
6489 eval "$as_CACHEVAR=no"
6491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 CFLAGS=$ax_check_save_flags
6494 eval ac_res=\$$as_CACHEVAR
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6496 $as_echo "$ac_res" >&6; }
6497 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6498 CWFLAGS="$CWFLAGS -Wcast-align"
6499 else
6503 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | $as_tr_sh`
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
6505 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
6506 if eval \${$as_CACHEVAR+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6510 ax_check_save_flags=$CFLAGS
6511 CFLAGS="$CFLAGS $CWFLAGS -Wcast-qual"
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 #include <stdio.h>
6516 main ()
6518 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6520 return 0;
6522 _ACEOF
6523 if ac_fn_c_try_compile "$LINENO"; then :
6524 eval "$as_CACHEVAR=yes"
6525 else
6526 eval "$as_CACHEVAR=no"
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 CFLAGS=$ax_check_save_flags
6531 eval ac_res=\$$as_CACHEVAR
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6533 $as_echo "$ac_res" >&6; }
6534 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6535 CWFLAGS="$CWFLAGS -Wcast-qual"
6536 else
6540 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wduplicated-cond" | $as_tr_sh`
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wduplicated-cond" >&5
6542 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wduplicated-cond... " >&6; }
6543 if eval \${$as_CACHEVAR+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6547 ax_check_save_flags=$CFLAGS
6548 CFLAGS="$CFLAGS $CWFLAGS -Wduplicated-cond"
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 #include <stdio.h>
6553 main ()
6555 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6557 return 0;
6559 _ACEOF
6560 if ac_fn_c_try_compile "$LINENO"; then :
6561 eval "$as_CACHEVAR=yes"
6562 else
6563 eval "$as_CACHEVAR=no"
6565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 CFLAGS=$ax_check_save_flags
6568 eval ac_res=\$$as_CACHEVAR
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6570 $as_echo "$ac_res" >&6; }
6571 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6572 CWFLAGS="$CWFLAGS -Wduplicated-cond"
6573 else
6577 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | $as_tr_sh`
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
6579 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
6580 if eval \${$as_CACHEVAR+:} false; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6584 ax_check_save_flags=$CFLAGS
6585 CFLAGS="$CFLAGS $CWFLAGS -Wfloat-equal"
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6588 #include <stdio.h>
6590 main ()
6592 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6594 return 0;
6596 _ACEOF
6597 if ac_fn_c_try_compile "$LINENO"; then :
6598 eval "$as_CACHEVAR=yes"
6599 else
6600 eval "$as_CACHEVAR=no"
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 CFLAGS=$ax_check_save_flags
6605 eval ac_res=\$$as_CACHEVAR
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6607 $as_echo "$ac_res" >&6; }
6608 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6609 CWFLAGS="$CWFLAGS -Wfloat-equal"
6610 else
6614 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | $as_tr_sh`
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
6616 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
6617 if eval \${$as_CACHEVAR+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6621 ax_check_save_flags=$CFLAGS
6622 CFLAGS="$CFLAGS $CWFLAGS -Wformat=2"
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 #include <stdio.h>
6627 main ()
6629 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6631 return 0;
6633 _ACEOF
6634 if ac_fn_c_try_compile "$LINENO"; then :
6635 eval "$as_CACHEVAR=yes"
6636 else
6637 eval "$as_CACHEVAR=no"
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 CFLAGS=$ax_check_save_flags
6642 eval ac_res=\$$as_CACHEVAR
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6644 $as_echo "$ac_res" >&6; }
6645 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6646 CWFLAGS="$CWFLAGS -Wformat=2"
6647 else
6651 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-declarations" | $as_tr_sh`
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-declarations" >&5
6653 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-declarations... " >&6; }
6654 if eval \${$as_CACHEVAR+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6658 ax_check_save_flags=$CFLAGS
6659 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-declarations"
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6662 #include <stdio.h>
6664 main ()
6666 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6668 return 0;
6670 _ACEOF
6671 if ac_fn_c_try_compile "$LINENO"; then :
6672 eval "$as_CACHEVAR=yes"
6673 else
6674 eval "$as_CACHEVAR=no"
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 CFLAGS=$ax_check_save_flags
6679 eval ac_res=\$$as_CACHEVAR
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681 $as_echo "$ac_res" >&6; }
6682 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6683 CWFLAGS="$CWFLAGS -Wmissing-declarations"
6684 else
6688 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-prototypes" | $as_tr_sh`
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes" >&5
6690 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes... " >&6; }
6691 if eval \${$as_CACHEVAR+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6695 ax_check_save_flags=$CFLAGS
6696 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-prototypes"
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699 #include <stdio.h>
6701 main ()
6703 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6705 return 0;
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709 eval "$as_CACHEVAR=yes"
6710 else
6711 eval "$as_CACHEVAR=no"
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 CFLAGS=$ax_check_save_flags
6716 eval ac_res=\$$as_CACHEVAR
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6718 $as_echo "$ac_res" >&6; }
6719 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6720 CWFLAGS="$CWFLAGS -Wmissing-prototypes"
6721 else
6725 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnested-externs" | $as_tr_sh`
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnested-externs" >&5
6727 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnested-externs... " >&6; }
6728 if eval \${$as_CACHEVAR+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6732 ax_check_save_flags=$CFLAGS
6733 CFLAGS="$CFLAGS $CWFLAGS -Wnested-externs"
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 #include <stdio.h>
6738 main ()
6740 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6742 return 0;
6744 _ACEOF
6745 if ac_fn_c_try_compile "$LINENO"; then :
6746 eval "$as_CACHEVAR=yes"
6747 else
6748 eval "$as_CACHEVAR=no"
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 CFLAGS=$ax_check_save_flags
6753 eval ac_res=\$$as_CACHEVAR
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6755 $as_echo "$ac_res" >&6; }
6756 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6757 CWFLAGS="$CWFLAGS -Wnested-externs"
6758 else
6762 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-pragmas" | $as_tr_sh`
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas" >&5
6764 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas... " >&6; }
6765 if eval \${$as_CACHEVAR+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6769 ax_check_save_flags=$CFLAGS
6770 CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-pragmas"
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6773 #include <stdio.h>
6775 main ()
6777 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6779 return 0;
6781 _ACEOF
6782 if ac_fn_c_try_compile "$LINENO"; then :
6783 eval "$as_CACHEVAR=yes"
6784 else
6785 eval "$as_CACHEVAR=no"
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 CFLAGS=$ax_check_save_flags
6790 eval ac_res=\$$as_CACHEVAR
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6792 $as_echo "$ac_res" >&6; }
6793 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6794 CWFLAGS="$CWFLAGS -Wno-unknown-pragmas"
6795 else
6799 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnormalized=id" | $as_tr_sh`
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnormalized=id" >&5
6801 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnormalized=id... " >&6; }
6802 if eval \${$as_CACHEVAR+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6806 ax_check_save_flags=$CFLAGS
6807 CFLAGS="$CFLAGS $CWFLAGS -Wnormalized=id"
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 #include <stdio.h>
6812 main ()
6814 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6816 return 0;
6818 _ACEOF
6819 if ac_fn_c_try_compile "$LINENO"; then :
6820 eval "$as_CACHEVAR=yes"
6821 else
6822 eval "$as_CACHEVAR=no"
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825 CFLAGS=$ax_check_save_flags
6827 eval ac_res=\$$as_CACHEVAR
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6829 $as_echo "$ac_res" >&6; }
6830 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6831 CWFLAGS="$CWFLAGS -Wnormalized=id"
6832 else
6836 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnull-dereference" | $as_tr_sh`
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnull-dereference" >&5
6838 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnull-dereference... " >&6; }
6839 if eval \${$as_CACHEVAR+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6843 ax_check_save_flags=$CFLAGS
6844 CFLAGS="$CFLAGS $CWFLAGS -Wnull-dereference"
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 #include <stdio.h>
6849 main ()
6851 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6853 return 0;
6855 _ACEOF
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857 eval "$as_CACHEVAR=yes"
6858 else
6859 eval "$as_CACHEVAR=no"
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862 CFLAGS=$ax_check_save_flags
6864 eval ac_res=\$$as_CACHEVAR
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6866 $as_echo "$ac_res" >&6; }
6867 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6868 CWFLAGS="$CWFLAGS -Wnull-dereference"
6869 else
6873 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wpointer-arith" | $as_tr_sh`
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wpointer-arith" >&5
6875 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wpointer-arith... " >&6; }
6876 if eval \${$as_CACHEVAR+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6880 ax_check_save_flags=$CFLAGS
6881 CFLAGS="$CFLAGS $CWFLAGS -Wpointer-arith"
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 #include <stdio.h>
6886 main ()
6888 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6890 return 0;
6892 _ACEOF
6893 if ac_fn_c_try_compile "$LINENO"; then :
6894 eval "$as_CACHEVAR=yes"
6895 else
6896 eval "$as_CACHEVAR=no"
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 CFLAGS=$ax_check_save_flags
6901 eval ac_res=\$$as_CACHEVAR
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6903 $as_echo "$ac_res" >&6; }
6904 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6905 CWFLAGS="$CWFLAGS -Wpointer-arith"
6906 else
6910 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wredundant-decls" | $as_tr_sh`
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wredundant-decls" >&5
6912 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wredundant-decls... " >&6; }
6913 if eval \${$as_CACHEVAR+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6917 ax_check_save_flags=$CFLAGS
6918 CFLAGS="$CFLAGS $CWFLAGS -Wredundant-decls"
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 #include <stdio.h>
6923 main ()
6925 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6927 return 0;
6929 _ACEOF
6930 if ac_fn_c_try_compile "$LINENO"; then :
6931 eval "$as_CACHEVAR=yes"
6932 else
6933 eval "$as_CACHEVAR=no"
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936 CFLAGS=$ax_check_save_flags
6938 eval ac_res=\$$as_CACHEVAR
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6940 $as_echo "$ac_res" >&6; }
6941 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6942 CWFLAGS="$CWFLAGS -Wredundant-decls"
6943 else
6947 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | $as_tr_sh`
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
6949 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
6950 if eval \${$as_CACHEVAR+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6954 ax_check_save_flags=$CFLAGS
6955 CFLAGS="$CFLAGS $CWFLAGS -Wstrict-prototypes"
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958 #include <stdio.h>
6960 main ()
6962 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6964 return 0;
6966 _ACEOF
6967 if ac_fn_c_try_compile "$LINENO"; then :
6968 eval "$as_CACHEVAR=yes"
6969 else
6970 eval "$as_CACHEVAR=no"
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 CFLAGS=$ax_check_save_flags
6975 eval ac_res=\$$as_CACHEVAR
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6977 $as_echo "$ac_res" >&6; }
6978 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6979 CWFLAGS="$CWFLAGS -Wstrict-prototypes"
6980 else
6984 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | $as_tr_sh`
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
6986 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
6987 if eval \${$as_CACHEVAR+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6991 ax_check_save_flags=$CFLAGS
6992 CFLAGS="$CFLAGS $CWFLAGS -Wswitch-enum"
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6995 #include <stdio.h>
6997 main ()
6999 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7001 return 0;
7003 _ACEOF
7004 if ac_fn_c_try_compile "$LINENO"; then :
7005 eval "$as_CACHEVAR=yes"
7006 else
7007 eval "$as_CACHEVAR=no"
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 CFLAGS=$ax_check_save_flags
7012 eval ac_res=\$$as_CACHEVAR
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7014 $as_echo "$ac_res" >&6; }
7015 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7016 CWFLAGS="$CWFLAGS -Wswitch-enum"
7017 else
7021 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | $as_tr_sh`
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
7023 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
7024 if eval \${$as_CACHEVAR+:} false; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7028 ax_check_save_flags=$CFLAGS
7029 CFLAGS="$CFLAGS $CWFLAGS -Wvariable-decl"
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7032 #include <stdio.h>
7034 main ()
7036 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7038 return 0;
7040 _ACEOF
7041 if ac_fn_c_try_compile "$LINENO"; then :
7042 eval "$as_CACHEVAR=yes"
7043 else
7044 eval "$as_CACHEVAR=no"
7046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7047 CFLAGS=$ax_check_save_flags
7049 eval ac_res=\$$as_CACHEVAR
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7051 $as_echo "$ac_res" >&6; }
7052 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7053 CWFLAGS="$CWFLAGS -Wvariable-decl"
7054 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
7060 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
7061 if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7065 ax_check_save_flags=$LDFLAGS
7066 LDFLAGS="$LDFLAGS -Wl,-z,relro"
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7069 #include <stdio.h>
7071 main ()
7073 char x[42U];if (fgets(x,1000,stdin)) puts(x)
7075 return 0;
7077 _ACEOF
7078 if ac_fn_c_try_link "$LINENO"; then :
7079 ax_cv_check_ldflags___Wl__z_relro=yes
7080 else
7081 ax_cv_check_ldflags___Wl__z_relro=no
7083 rm -f core conftest.err conftest.$ac_objext \
7084 conftest$ac_exeext conftest.$ac_ext
7085 LDFLAGS=$ax_check_save_flags
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
7088 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
7089 if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
7090 LDFLAGS="$LDFLAGS -Wl,-z,relro"
7091 else
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
7096 $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
7097 if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7101 ax_check_save_flags=$LDFLAGS
7102 LDFLAGS="$LDFLAGS -Wl,-z,now"
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7105 #include <stdio.h>
7107 main ()
7109 char x[42U];if (fgets(x,1000,stdin)) puts(x)
7111 return 0;
7113 _ACEOF
7114 if ac_fn_c_try_link "$LINENO"; then :
7115 ax_cv_check_ldflags___Wl__z_now=yes
7116 else
7117 ax_cv_check_ldflags___Wl__z_now=no
7119 rm -f core conftest.err conftest.$ac_objext \
7120 conftest$ac_exeext conftest.$ac_ext
7121 LDFLAGS=$ax_check_save_flags
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
7124 $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
7125 if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
7126 LDFLAGS="$LDFLAGS -Wl,-z,now"
7127 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
7132 $as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
7133 if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7137 ax_check_save_flags=$LDFLAGS
7138 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 #include <stdio.h>
7143 main ()
7145 char x[42U];if (fgets(x,1000,stdin)) puts(x)
7147 return 0;
7149 _ACEOF
7150 if ac_fn_c_try_link "$LINENO"; then :
7151 ax_cv_check_ldflags___Wl__z_noexecstack=yes
7152 else
7153 ax_cv_check_ldflags___Wl__z_noexecstack=no
7155 rm -f core conftest.err conftest.$ac_objext \
7156 conftest$ac_exeext conftest.$ac_ext
7157 LDFLAGS=$ax_check_save_flags
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
7160 $as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
7161 if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
7162 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
7163 else
7168 case `pwd` in
7169 *\ * | *\ *)
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7171 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7172 esac
7176 macro_version='2.4.6'
7177 macro_revision='2.4.6'
7191 ltmain=$ac_aux_dir/ltmain.sh
7193 # Backslashify metacharacters that are still active within
7194 # double-quoted strings.
7195 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7197 # Same as above, but do not quote variable references.
7198 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7200 # Sed substitution to delay expansion of an escaped shell variable in a
7201 # double_quote_subst'ed string.
7202 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7204 # Sed substitution to delay expansion of an escaped single quote.
7205 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7207 # Sed substitution to avoid accidental globbing in evaled expressions
7208 no_glob_subst='s/\*/\\\*/g'
7210 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7211 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7212 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7215 $as_echo_n "checking how to print strings... " >&6; }
7216 # Test print first, because it will be a builtin if present.
7217 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7218 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7219 ECHO='print -r --'
7220 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7221 ECHO='printf %s\n'
7222 else
7223 # Use this function as a fallback that always works.
7224 func_fallback_echo ()
7226 eval 'cat <<_LTECHO_EOF
7228 _LTECHO_EOF'
7230 ECHO='func_fallback_echo'
7233 # func_echo_all arg...
7234 # Invoke $ECHO with all args, space-separated.
7235 func_echo_all ()
7237 $ECHO ""
7240 case $ECHO in
7241 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7242 $as_echo "printf" >&6; } ;;
7243 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7244 $as_echo "print -r" >&6; } ;;
7245 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7246 $as_echo "cat" >&6; } ;;
7247 esac
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7263 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7264 if ${ac_cv_path_SED+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7268 for ac_i in 1 2 3 4 5 6 7; do
7269 ac_script="$ac_script$as_nl$ac_script"
7270 done
7271 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7272 { ac_script=; unset ac_script;}
7273 if test -z "$SED"; then
7274 ac_path_SED_found=false
7275 # Loop through the user's path and test for each of PROGNAME-LIST
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_prog in sed gsed; do
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7284 as_fn_executable_p "$ac_path_SED" || continue
7285 # Check for GNU ac_path_SED and select it if it is found.
7286 # Check for GNU $ac_path_SED
7287 case `"$ac_path_SED" --version 2>&1` in
7288 *GNU*)
7289 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7291 ac_count=0
7292 $as_echo_n 0123456789 >"conftest.in"
7293 while :
7295 cat "conftest.in" "conftest.in" >"conftest.tmp"
7296 mv "conftest.tmp" "conftest.in"
7297 cp "conftest.in" "conftest.nl"
7298 $as_echo '' >> "conftest.nl"
7299 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7301 as_fn_arith $ac_count + 1 && ac_count=$as_val
7302 if test $ac_count -gt ${ac_path_SED_max-0}; then
7303 # Best one so far, save it but keep looking for a better one
7304 ac_cv_path_SED="$ac_path_SED"
7305 ac_path_SED_max=$ac_count
7307 # 10*(2^10) chars as input seems more than enough
7308 test $ac_count -gt 10 && break
7309 done
7310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7311 esac
7313 $ac_path_SED_found && break 3
7314 done
7315 done
7316 done
7317 IFS=$as_save_IFS
7318 if test -z "$ac_cv_path_SED"; then
7319 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7321 else
7322 ac_cv_path_SED=$SED
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7327 $as_echo "$ac_cv_path_SED" >&6; }
7328 SED="$ac_cv_path_SED"
7329 rm -f conftest.sed
7331 test -z "$SED" && SED=sed
7332 Xsed="$SED -e 1s/^X//"
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7345 $as_echo_n "checking for fgrep... " >&6; }
7346 if ${ac_cv_path_FGREP+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7350 then ac_cv_path_FGREP="$GREP -F"
7351 else
7352 if test -z "$FGREP"; then
7353 ac_path_FGREP_found=false
7354 # Loop through the user's path and test for each of PROGNAME-LIST
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_prog in fgrep; do
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7363 as_fn_executable_p "$ac_path_FGREP" || continue
7364 # Check for GNU ac_path_FGREP and select it if it is found.
7365 # Check for GNU $ac_path_FGREP
7366 case `"$ac_path_FGREP" --version 2>&1` in
7367 *GNU*)
7368 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7370 ac_count=0
7371 $as_echo_n 0123456789 >"conftest.in"
7372 while :
7374 cat "conftest.in" "conftest.in" >"conftest.tmp"
7375 mv "conftest.tmp" "conftest.in"
7376 cp "conftest.in" "conftest.nl"
7377 $as_echo 'FGREP' >> "conftest.nl"
7378 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7380 as_fn_arith $ac_count + 1 && ac_count=$as_val
7381 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7382 # Best one so far, save it but keep looking for a better one
7383 ac_cv_path_FGREP="$ac_path_FGREP"
7384 ac_path_FGREP_max=$ac_count
7386 # 10*(2^10) chars as input seems more than enough
7387 test $ac_count -gt 10 && break
7388 done
7389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7390 esac
7392 $ac_path_FGREP_found && break 3
7393 done
7394 done
7395 done
7396 IFS=$as_save_IFS
7397 if test -z "$ac_cv_path_FGREP"; then
7398 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7400 else
7401 ac_cv_path_FGREP=$FGREP
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7407 $as_echo "$ac_cv_path_FGREP" >&6; }
7408 FGREP="$ac_cv_path_FGREP"
7411 test -z "$GREP" && GREP=grep
7431 # Check whether --with-gnu-ld was given.
7432 if test "${with_gnu_ld+set}" = set; then :
7433 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7434 else
7435 with_gnu_ld=no
7438 ac_prog=ld
7439 if test yes = "$GCC"; then
7440 # Check if gcc -print-prog-name=ld gives a path.
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7442 $as_echo_n "checking for ld used by $CC... " >&6; }
7443 case $host in
7444 *-*-mingw*)
7445 # gcc leaves a trailing carriage return, which upsets mingw
7446 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7448 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7449 esac
7450 case $ac_prog in
7451 # Accept absolute paths.
7452 [\\/]* | ?:[\\/]*)
7453 re_direlt='/[^/][^/]*/\.\./'
7454 # Canonicalize the pathname of ld
7455 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7456 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7457 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7458 done
7459 test -z "$LD" && LD=$ac_prog
7462 # If it fails, then pretend we aren't using GCC.
7463 ac_prog=ld
7466 # If it is relative, then search for the first ld in PATH.
7467 with_gnu_ld=unknown
7469 esac
7470 elif test yes = "$with_gnu_ld"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7472 $as_echo_n "checking for GNU ld... " >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7475 $as_echo_n "checking for non-GNU ld... " >&6; }
7477 if ${lt_cv_path_LD+:} false; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 if test -z "$LD"; then
7481 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7482 for ac_dir in $PATH; do
7483 IFS=$lt_save_ifs
7484 test -z "$ac_dir" && ac_dir=.
7485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7486 lt_cv_path_LD=$ac_dir/$ac_prog
7487 # Check to see if the program is GNU ld. I'd rather use --version,
7488 # but apparently some variants of GNU ld only accept -v.
7489 # Break only if it was the GNU/non-GNU ld that we prefer.
7490 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7491 *GNU* | *'with BFD'*)
7492 test no != "$with_gnu_ld" && break
7495 test yes != "$with_gnu_ld" && break
7497 esac
7499 done
7500 IFS=$lt_save_ifs
7501 else
7502 lt_cv_path_LD=$LD # Let the user override the test with a path.
7506 LD=$lt_cv_path_LD
7507 if test -n "$LD"; then
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7509 $as_echo "$LD" >&6; }
7510 else
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7514 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7516 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7517 if ${lt_cv_prog_gnu_ld+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7521 case `$LD -v 2>&1 </dev/null` in
7522 *GNU* | *'with BFD'*)
7523 lt_cv_prog_gnu_ld=yes
7526 lt_cv_prog_gnu_ld=no
7528 esac
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7531 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7532 with_gnu_ld=$lt_cv_prog_gnu_ld
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7543 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7544 if ${lt_cv_path_NM+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 if test -n "$NM"; then
7548 # Let the user override the test.
7549 lt_cv_path_NM=$NM
7550 else
7551 lt_nm_to_check=${ac_tool_prefix}nm
7552 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7553 lt_nm_to_check="$lt_nm_to_check nm"
7555 for lt_tmp_nm in $lt_nm_to_check; do
7556 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7557 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7558 IFS=$lt_save_ifs
7559 test -z "$ac_dir" && ac_dir=.
7560 tmp_nm=$ac_dir/$lt_tmp_nm
7561 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7562 # Check to see if the nm accepts a BSD-compat flag.
7563 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7564 # nm: unknown option "B" ignored
7565 # Tru64's nm complains that /dev/null is an invalid object file
7566 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7567 case $build_os in
7568 mingw*) lt_bad_file=conftest.nm/nofile ;;
7569 *) lt_bad_file=/dev/null ;;
7570 esac
7571 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7572 *$lt_bad_file* | *'Invalid file or object type'*)
7573 lt_cv_path_NM="$tmp_nm -B"
7574 break 2
7577 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7578 */dev/null*)
7579 lt_cv_path_NM="$tmp_nm -p"
7580 break 2
7583 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7584 continue # so that we can try to find one that supports BSD flags
7586 esac
7588 esac
7590 done
7591 IFS=$lt_save_ifs
7592 done
7593 : ${lt_cv_path_NM=no}
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7597 $as_echo "$lt_cv_path_NM" >&6; }
7598 if test no != "$lt_cv_path_NM"; then
7599 NM=$lt_cv_path_NM
7600 else
7601 # Didn't find any BSD compatible name lister, look for dumpbin.
7602 if test -n "$DUMPBIN"; then :
7603 # Let the user override the test.
7604 else
7605 if test -n "$ac_tool_prefix"; then
7606 for ac_prog in dumpbin "link -dump"
7608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_DUMPBIN+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 if test -n "$DUMPBIN"; then
7616 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 break 2
7629 done
7630 done
7631 IFS=$as_save_IFS
7635 DUMPBIN=$ac_cv_prog_DUMPBIN
7636 if test -n "$DUMPBIN"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7638 $as_echo "$DUMPBIN" >&6; }
7639 else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7645 test -n "$DUMPBIN" && break
7646 done
7648 if test -z "$DUMPBIN"; then
7649 ac_ct_DUMPBIN=$DUMPBIN
7650 for ac_prog in dumpbin "link -dump"
7652 # Extract the first word of "$ac_prog", so it can be a program name with args.
7653 set dummy $ac_prog; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 if test -n "$ac_ct_DUMPBIN"; then
7660 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7661 else
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7665 IFS=$as_save_IFS
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7669 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 break 2
7673 done
7674 done
7675 IFS=$as_save_IFS
7679 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7680 if test -n "$ac_ct_DUMPBIN"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7682 $as_echo "$ac_ct_DUMPBIN" >&6; }
7683 else
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7689 test -n "$ac_ct_DUMPBIN" && break
7690 done
7692 if test "x$ac_ct_DUMPBIN" = x; then
7693 DUMPBIN=":"
7694 else
7695 case $cross_compiling:$ac_tool_warned in
7696 yes:)
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned=yes ;;
7700 esac
7701 DUMPBIN=$ac_ct_DUMPBIN
7705 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7706 *COFF*)
7707 DUMPBIN="$DUMPBIN -symbols -headers"
7710 DUMPBIN=:
7712 esac
7715 if test : != "$DUMPBIN"; then
7716 NM=$DUMPBIN
7719 test -z "$NM" && NM=nm
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7727 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7728 if ${lt_cv_nm_interface+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 lt_cv_nm_interface="BSD nm"
7732 echo "int some_variable = 0;" > conftest.$ac_ext
7733 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7734 (eval "$ac_compile" 2>conftest.err)
7735 cat conftest.err >&5
7736 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7737 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7738 cat conftest.err >&5
7739 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7740 cat conftest.out >&5
7741 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7742 lt_cv_nm_interface="MS dumpbin"
7744 rm -f conftest*
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7747 $as_echo "$lt_cv_nm_interface" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7750 $as_echo_n "checking whether ln -s works... " >&6; }
7751 LN_S=$as_ln_s
7752 if test "$LN_S" = "ln -s"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7754 $as_echo "yes" >&6; }
7755 else
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7757 $as_echo "no, using $LN_S" >&6; }
7760 # find the maximum length of command line arguments
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7762 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7763 if ${lt_cv_sys_max_cmd_len+:} false; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7767 teststring=ABCD
7769 case $build_os in
7770 msdosdjgpp*)
7771 # On DJGPP, this test can blow up pretty badly due to problems in libc
7772 # (any single argument exceeding 2000 bytes causes a buffer overrun
7773 # during glob expansion). Even if it were fixed, the result of this
7774 # check would be larger than it should be.
7775 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7778 gnu*)
7779 # Under GNU Hurd, this test is not required because there is
7780 # no limit to the length of command line arguments.
7781 # Libtool will interpret -1 as no limit whatsoever
7782 lt_cv_sys_max_cmd_len=-1;
7785 cygwin* | mingw* | cegcc*)
7786 # On Win9x/ME, this test blows up -- it succeeds, but takes
7787 # about 5 minutes as the teststring grows exponentially.
7788 # Worse, since 9x/ME are not pre-emptively multitasking,
7789 # you end up with a "frozen" computer, even though with patience
7790 # the test eventually succeeds (with a max line length of 256k).
7791 # Instead, let's just punt: use the minimum linelength reported by
7792 # all of the supported platforms: 8192 (on NT/2K/XP).
7793 lt_cv_sys_max_cmd_len=8192;
7796 mint*)
7797 # On MiNT this can take a long time and run out of memory.
7798 lt_cv_sys_max_cmd_len=8192;
7801 amigaos*)
7802 # On AmigaOS with pdksh, this test takes hours, literally.
7803 # So we just punt and use a minimum line length of 8192.
7804 lt_cv_sys_max_cmd_len=8192;
7807 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7808 # This has been around since 386BSD, at least. Likely further.
7809 if test -x /sbin/sysctl; then
7810 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7811 elif test -x /usr/sbin/sysctl; then
7812 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7813 else
7814 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7816 # And add a safety zone
7817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7821 interix*)
7822 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7823 lt_cv_sys_max_cmd_len=196608
7826 os2*)
7827 # The test takes a long time on OS/2.
7828 lt_cv_sys_max_cmd_len=8192
7831 osf*)
7832 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7833 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7834 # nice to cause kernel panics so lets avoid the loop below.
7835 # First set a reasonable default.
7836 lt_cv_sys_max_cmd_len=16384
7838 if test -x /sbin/sysconfig; then
7839 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7840 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7841 esac
7844 sco3.2v5*)
7845 lt_cv_sys_max_cmd_len=102400
7847 sysv5* | sco5v6* | sysv4.2uw2*)
7848 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7849 if test -n "$kargmax"; then
7850 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7851 else
7852 lt_cv_sys_max_cmd_len=32768
7856 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7857 if test -n "$lt_cv_sys_max_cmd_len" && \
7858 test undefined != "$lt_cv_sys_max_cmd_len"; then
7859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7861 else
7862 # Make teststring a little bigger before we do anything with it.
7863 # a 1K string should be a reasonable start.
7864 for i in 1 2 3 4 5 6 7 8; do
7865 teststring=$teststring$teststring
7866 done
7867 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7868 # If test is not a shell built-in, we'll probably end up computing a
7869 # maximum length that is only half of the actual maximum length, but
7870 # we can't tell.
7871 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7872 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7873 test 17 != "$i" # 1/2 MB should be enough
7875 i=`expr $i + 1`
7876 teststring=$teststring$teststring
7877 done
7878 # Only check the string length outside the loop.
7879 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7880 teststring=
7881 # Add a significant safety factor because C++ compilers can tack on
7882 # massive amounts of additional arguments before passing them to the
7883 # linker. It appears as though 1/2 is a usable value.
7884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7887 esac
7891 if test -n "$lt_cv_sys_max_cmd_len"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7893 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7894 else
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7896 $as_echo "none" >&6; }
7898 max_cmd_len=$lt_cv_sys_max_cmd_len
7905 : ${CP="cp -f"}
7906 : ${MV="mv -f"}
7907 : ${RM="rm -f"}
7909 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7910 lt_unset=unset
7911 else
7912 lt_unset=false
7919 # test EBCDIC or ASCII
7920 case `echo X|tr X '\101'` in
7921 A) # ASCII based system
7922 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7923 lt_SP2NL='tr \040 \012'
7924 lt_NL2SP='tr \015\012 \040\040'
7926 *) # EBCDIC based system
7927 lt_SP2NL='tr \100 \n'
7928 lt_NL2SP='tr \r\n \100\100'
7930 esac
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7941 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7942 if ${lt_cv_to_host_file_cmd+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 case $host in
7946 *-*-mingw* )
7947 case $build in
7948 *-*-mingw* ) # actually msys
7949 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7951 *-*-cygwin* )
7952 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7954 * ) # otherwise, assume *nix
7955 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7957 esac
7959 *-*-cygwin* )
7960 case $build in
7961 *-*-mingw* ) # actually msys
7962 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7964 *-*-cygwin* )
7965 lt_cv_to_host_file_cmd=func_convert_file_noop
7967 * ) # otherwise, assume *nix
7968 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7970 esac
7972 * ) # unhandled hosts (and "normal" native builds)
7973 lt_cv_to_host_file_cmd=func_convert_file_noop
7975 esac
7979 to_host_file_cmd=$lt_cv_to_host_file_cmd
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7981 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7988 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7989 if ${lt_cv_to_tool_file_cmd+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 #assume ordinary cross tools, or native build.
7993 lt_cv_to_tool_file_cmd=func_convert_file_noop
7994 case $host in
7995 *-*-mingw* )
7996 case $build in
7997 *-*-mingw* ) # actually msys
7998 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8000 esac
8002 esac
8006 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8008 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8015 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8016 if ${lt_cv_ld_reload_flag+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 lt_cv_ld_reload_flag='-r'
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8022 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8023 reload_flag=$lt_cv_ld_reload_flag
8024 case $reload_flag in
8025 "" | " "*) ;;
8026 *) reload_flag=" $reload_flag" ;;
8027 esac
8028 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8029 case $host_os in
8030 cygwin* | mingw* | pw32* | cegcc*)
8031 if test yes != "$GCC"; then
8032 reload_cmds=false
8035 darwin*)
8036 if test yes = "$GCC"; then
8037 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8038 else
8039 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8042 esac
8052 if test -n "$ac_tool_prefix"; then
8053 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8054 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056 $as_echo_n "checking for $ac_word... " >&6; }
8057 if ${ac_cv_prog_OBJDUMP+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 if test -n "$OBJDUMP"; then
8061 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8062 else
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8070 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 break 2
8074 done
8075 done
8076 IFS=$as_save_IFS
8080 OBJDUMP=$ac_cv_prog_OBJDUMP
8081 if test -n "$OBJDUMP"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8083 $as_echo "$OBJDUMP" >&6; }
8084 else
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }
8091 if test -z "$ac_cv_prog_OBJDUMP"; then
8092 ac_ct_OBJDUMP=$OBJDUMP
8093 # Extract the first word of "objdump", so it can be a program name with args.
8094 set dummy objdump; ac_word=$2
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096 $as_echo_n "checking for $ac_word... " >&6; }
8097 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 if test -n "$ac_ct_OBJDUMP"; then
8101 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8102 else
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 break 2
8114 done
8115 done
8116 IFS=$as_save_IFS
8120 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8121 if test -n "$ac_ct_OBJDUMP"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8123 $as_echo "$ac_ct_OBJDUMP" >&6; }
8124 else
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 $as_echo "no" >&6; }
8129 if test "x$ac_ct_OBJDUMP" = x; then
8130 OBJDUMP="false"
8131 else
8132 case $cross_compiling:$ac_tool_warned in
8133 yes:)
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8136 ac_tool_warned=yes ;;
8137 esac
8138 OBJDUMP=$ac_ct_OBJDUMP
8140 else
8141 OBJDUMP="$ac_cv_prog_OBJDUMP"
8144 test -z "$OBJDUMP" && OBJDUMP=objdump
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8155 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8156 if ${lt_cv_deplibs_check_method+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 lt_cv_file_magic_cmd='$MAGIC_CMD'
8160 lt_cv_file_magic_test_file=
8161 lt_cv_deplibs_check_method='unknown'
8162 # Need to set the preceding variable on all platforms that support
8163 # interlibrary dependencies.
8164 # 'none' -- dependencies not supported.
8165 # 'unknown' -- same as none, but documents that we really don't know.
8166 # 'pass_all' -- all dependencies passed with no checks.
8167 # 'test_compile' -- check by making test program.
8168 # 'file_magic [[regex]]' -- check by looking for files in library path
8169 # that responds to the $file_magic_cmd with a given extended regex.
8170 # If you have 'file' or equivalent on your system and you're not sure
8171 # whether 'pass_all' will *always* work, you probably want this one.
8173 case $host_os in
8174 aix[4-9]*)
8175 lt_cv_deplibs_check_method=pass_all
8178 beos*)
8179 lt_cv_deplibs_check_method=pass_all
8182 bsdi[45]*)
8183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8184 lt_cv_file_magic_cmd='/usr/bin/file -L'
8185 lt_cv_file_magic_test_file=/shlib/libc.so
8188 cygwin*)
8189 # func_win32_libid is a shell function defined in ltmain.sh
8190 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8191 lt_cv_file_magic_cmd='func_win32_libid'
8194 mingw* | pw32*)
8195 # Base MSYS/MinGW do not provide the 'file' command needed by
8196 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8197 # unless we find 'file', for example because we are cross-compiling.
8198 if ( file / ) >/dev/null 2>&1; then
8199 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8200 lt_cv_file_magic_cmd='func_win32_libid'
8201 else
8202 # Keep this pattern in sync with the one in func_win32_libid.
8203 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8204 lt_cv_file_magic_cmd='$OBJDUMP -f'
8208 cegcc*)
8209 # use the weaker test based on 'objdump'. See mingw*.
8210 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8211 lt_cv_file_magic_cmd='$OBJDUMP -f'
8214 darwin* | rhapsody*)
8215 lt_cv_deplibs_check_method=pass_all
8218 freebsd* | dragonfly*)
8219 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8220 case $host_cpu in
8221 i*86 )
8222 # Not sure whether the presence of OpenBSD here was a mistake.
8223 # Let's accept both of them until this is cleared up.
8224 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8225 lt_cv_file_magic_cmd=/usr/bin/file
8226 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8228 esac
8229 else
8230 lt_cv_deplibs_check_method=pass_all
8234 haiku*)
8235 lt_cv_deplibs_check_method=pass_all
8238 hpux10.20* | hpux11*)
8239 lt_cv_file_magic_cmd=/usr/bin/file
8240 case $host_cpu in
8241 ia64*)
8242 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8243 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8245 hppa*64*)
8246 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]'
8247 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8250 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8251 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8253 esac
8256 interix[3-9]*)
8257 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8261 irix5* | irix6* | nonstopux*)
8262 case $LD in
8263 *-32|*"-32 ") libmagic=32-bit;;
8264 *-n32|*"-n32 ") libmagic=N32;;
8265 *-64|*"-64 ") libmagic=64-bit;;
8266 *) libmagic=never-match;;
8267 esac
8268 lt_cv_deplibs_check_method=pass_all
8271 # This must be glibc/ELF.
8272 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8273 lt_cv_deplibs_check_method=pass_all
8276 netbsd*)
8277 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8279 else
8280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8284 newos6*)
8285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8286 lt_cv_file_magic_cmd=/usr/bin/file
8287 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8290 *nto* | *qnx*)
8291 lt_cv_deplibs_check_method=pass_all
8294 openbsd* | bitrig*)
8295 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8297 else
8298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8302 osf3* | osf4* | osf5*)
8303 lt_cv_deplibs_check_method=pass_all
8306 rdos*)
8307 lt_cv_deplibs_check_method=pass_all
8310 solaris*)
8311 lt_cv_deplibs_check_method=pass_all
8314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8315 lt_cv_deplibs_check_method=pass_all
8318 sysv4 | sysv4.3*)
8319 case $host_vendor in
8320 motorola)
8321 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]'
8322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8324 ncr)
8325 lt_cv_deplibs_check_method=pass_all
8327 sequent)
8328 lt_cv_file_magic_cmd='/bin/file'
8329 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8331 sni)
8332 lt_cv_file_magic_cmd='/bin/file'
8333 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8334 lt_cv_file_magic_test_file=/lib/libc.so
8336 siemens)
8337 lt_cv_deplibs_check_method=pass_all
8340 lt_cv_deplibs_check_method=pass_all
8342 esac
8345 tpf*)
8346 lt_cv_deplibs_check_method=pass_all
8348 os2*)
8349 lt_cv_deplibs_check_method=pass_all
8351 esac
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8355 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8357 file_magic_glob=
8358 want_nocaseglob=no
8359 if test "$build" = "$host"; then
8360 case $host_os in
8361 mingw* | pw32*)
8362 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8363 want_nocaseglob=yes
8364 else
8365 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8368 esac
8371 file_magic_cmd=$lt_cv_file_magic_cmd
8372 deplibs_check_method=$lt_cv_deplibs_check_method
8373 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8396 if test -n "$ac_tool_prefix"; then
8397 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8398 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_prog_DLLTOOL+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 if test -n "$DLLTOOL"; then
8405 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8418 done
8419 done
8420 IFS=$as_save_IFS
8424 DLLTOOL=$ac_cv_prog_DLLTOOL
8425 if test -n "$DLLTOOL"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8427 $as_echo "$DLLTOOL" >&6; }
8428 else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8435 if test -z "$ac_cv_prog_DLLTOOL"; then
8436 ac_ct_DLLTOOL=$DLLTOOL
8437 # Extract the first word of "dlltool", so it can be a program name with args.
8438 set dummy dlltool; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 if test -n "$ac_ct_DLLTOOL"; then
8445 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 break 2
8458 done
8459 done
8460 IFS=$as_save_IFS
8464 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8465 if test -n "$ac_ct_DLLTOOL"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8467 $as_echo "$ac_ct_DLLTOOL" >&6; }
8468 else
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8473 if test "x$ac_ct_DLLTOOL" = x; then
8474 DLLTOOL="false"
8475 else
8476 case $cross_compiling:$ac_tool_warned in
8477 yes:)
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8480 ac_tool_warned=yes ;;
8481 esac
8482 DLLTOOL=$ac_ct_DLLTOOL
8484 else
8485 DLLTOOL="$ac_cv_prog_DLLTOOL"
8488 test -z "$DLLTOOL" && DLLTOOL=dlltool
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8500 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8501 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 lt_cv_sharedlib_from_linklib_cmd='unknown'
8506 case $host_os in
8507 cygwin* | mingw* | pw32* | cegcc*)
8508 # two different shell functions defined in ltmain.sh;
8509 # decide which one to use based on capabilities of $DLLTOOL
8510 case `$DLLTOOL --help 2>&1` in
8511 *--identify-strict*)
8512 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8515 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8517 esac
8520 # fallback: assume linklib IS sharedlib
8521 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8523 esac
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8527 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8528 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8529 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8537 if test -n "$ac_tool_prefix"; then
8538 for ac_prog in ar
8540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543 $as_echo_n "checking for $ac_word... " >&6; }
8544 if ${ac_cv_prog_AR+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 if test -n "$AR"; then
8548 ac_cv_prog_AR="$AR" # Let the user override the test.
8549 else
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 for as_dir in $PATH
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8557 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8561 done
8562 done
8563 IFS=$as_save_IFS
8567 AR=$ac_cv_prog_AR
8568 if test -n "$AR"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8570 $as_echo "$AR" >&6; }
8571 else
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8577 test -n "$AR" && break
8578 done
8580 if test -z "$AR"; then
8581 ac_ct_AR=$AR
8582 for ac_prog in ar
8584 # Extract the first word of "$ac_prog", so it can be a program name with args.
8585 set dummy $ac_prog; ac_word=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 if test -n "$ac_ct_AR"; then
8592 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8593 else
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601 ac_cv_prog_ac_ct_AR="$ac_prog"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8605 done
8606 done
8607 IFS=$as_save_IFS
8611 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8612 if test -n "$ac_ct_AR"; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8614 $as_echo "$ac_ct_AR" >&6; }
8615 else
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8621 test -n "$ac_ct_AR" && break
8622 done
8624 if test "x$ac_ct_AR" = x; then
8625 AR="false"
8626 else
8627 case $cross_compiling:$ac_tool_warned in
8628 yes:)
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8631 ac_tool_warned=yes ;;
8632 esac
8633 AR=$ac_ct_AR
8637 : ${AR=ar}
8638 : ${AR_FLAGS=cru}
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8651 $as_echo_n "checking for archiver @FILE support... " >&6; }
8652 if ${lt_cv_ar_at_file+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 lt_cv_ar_at_file=no
8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8660 main ()
8664 return 0;
8666 _ACEOF
8667 if ac_fn_c_try_compile "$LINENO"; then :
8668 echo conftest.$ac_objext > conftest.lst
8669 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8671 (eval $lt_ar_try) 2>&5
8672 ac_status=$?
8673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8674 test $ac_status = 0; }
8675 if test 0 -eq "$ac_status"; then
8676 # Ensure the archiver fails upon bogus file names.
8677 rm -f conftest.$ac_objext libconftest.a
8678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8679 (eval $lt_ar_try) 2>&5
8680 ac_status=$?
8681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8682 test $ac_status = 0; }
8683 if test 0 -ne "$ac_status"; then
8684 lt_cv_ar_at_file=@
8687 rm -f conftest.* libconftest.a
8690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8694 $as_echo "$lt_cv_ar_at_file" >&6; }
8696 if test no = "$lt_cv_ar_at_file"; then
8697 archiver_list_spec=
8698 else
8699 archiver_list_spec=$lt_cv_ar_at_file
8708 if test -n "$ac_tool_prefix"; then
8709 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8710 set dummy ${ac_tool_prefix}strip; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if ${ac_cv_prog_STRIP+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 if test -n "$STRIP"; then
8717 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8718 else
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 for as_dir in $PATH
8722 IFS=$as_save_IFS
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8726 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 break 2
8730 done
8731 done
8732 IFS=$as_save_IFS
8736 STRIP=$ac_cv_prog_STRIP
8737 if test -n "$STRIP"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8739 $as_echo "$STRIP" >&6; }
8740 else
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8747 if test -z "$ac_cv_prog_STRIP"; then
8748 ac_ct_STRIP=$STRIP
8749 # Extract the first word of "strip", so it can be a program name with args.
8750 set dummy strip; ac_word=$2
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752 $as_echo_n "checking for $ac_word... " >&6; }
8753 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 if test -n "$ac_ct_STRIP"; then
8757 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8758 else
8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760 for as_dir in $PATH
8762 IFS=$as_save_IFS
8763 test -z "$as_dir" && as_dir=.
8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8766 ac_cv_prog_ac_ct_STRIP="strip"
8767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 break 2
8770 done
8771 done
8772 IFS=$as_save_IFS
8776 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8777 if test -n "$ac_ct_STRIP"; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8779 $as_echo "$ac_ct_STRIP" >&6; }
8780 else
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782 $as_echo "no" >&6; }
8785 if test "x$ac_ct_STRIP" = x; then
8786 STRIP=":"
8787 else
8788 case $cross_compiling:$ac_tool_warned in
8789 yes:)
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8792 ac_tool_warned=yes ;;
8793 esac
8794 STRIP=$ac_ct_STRIP
8796 else
8797 STRIP="$ac_cv_prog_STRIP"
8800 test -z "$STRIP" && STRIP=:
8807 if test -n "$ac_tool_prefix"; then
8808 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8809 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 $as_echo_n "checking for $ac_word... " >&6; }
8812 if ${ac_cv_prog_RANLIB+:} false; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 if test -n "$RANLIB"; then
8816 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8817 else
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 for as_dir in $PATH
8821 IFS=$as_save_IFS
8822 test -z "$as_dir" && as_dir=.
8823 for ac_exec_ext in '' $ac_executable_extensions; do
8824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8825 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827 break 2
8829 done
8830 done
8831 IFS=$as_save_IFS
8835 RANLIB=$ac_cv_prog_RANLIB
8836 if test -n "$RANLIB"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8838 $as_echo "$RANLIB" >&6; }
8839 else
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8846 if test -z "$ac_cv_prog_RANLIB"; then
8847 ac_ct_RANLIB=$RANLIB
8848 # Extract the first word of "ranlib", so it can be a program name with args.
8849 set dummy ranlib; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 if test -n "$ac_ct_RANLIB"; then
8856 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8857 else
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 for as_dir in $PATH
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865 ac_cv_prog_ac_ct_RANLIB="ranlib"
8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 break 2
8869 done
8870 done
8871 IFS=$as_save_IFS
8875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8876 if test -n "$ac_ct_RANLIB"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8878 $as_echo "$ac_ct_RANLIB" >&6; }
8879 else
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8884 if test "x$ac_ct_RANLIB" = x; then
8885 RANLIB=":"
8886 else
8887 case $cross_compiling:$ac_tool_warned in
8888 yes:)
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8891 ac_tool_warned=yes ;;
8892 esac
8893 RANLIB=$ac_ct_RANLIB
8895 else
8896 RANLIB="$ac_cv_prog_RANLIB"
8899 test -z "$RANLIB" && RANLIB=:
8906 # Determine commands to create old-style static archives.
8907 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8908 old_postinstall_cmds='chmod 644 $oldlib'
8909 old_postuninstall_cmds=
8911 if test -n "$RANLIB"; then
8912 case $host_os in
8913 bitrig* | openbsd*)
8914 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8917 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8919 esac
8920 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8923 case $host_os in
8924 darwin*)
8925 lock_old_archive_extraction=yes ;;
8927 lock_old_archive_extraction=no ;;
8928 esac
8968 # If no C compiler was specified, use CC.
8969 LTCC=${LTCC-"$CC"}
8971 # If no C compiler flags were specified, use CFLAGS.
8972 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8974 # Allow CC to be a program name with arguments.
8975 compiler=$CC
8978 # Check for command to grab the raw symbol name followed by C symbol from nm.
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8980 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8981 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8985 # These are sane defaults that work on at least a few old systems.
8986 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8988 # Character class describing NM global symbol codes.
8989 symcode='[BCDEGRST]'
8991 # Regexp to match symbols that can be accessed directly from C.
8992 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8994 # Define system-specific variables.
8995 case $host_os in
8996 aix*)
8997 symcode='[BCDT]'
8999 cygwin* | mingw* | pw32* | cegcc*)
9000 symcode='[ABCDGISTW]'
9002 hpux*)
9003 if test ia64 = "$host_cpu"; then
9004 symcode='[ABCDEGRST]'
9007 irix* | nonstopux*)
9008 symcode='[BCDEGRST]'
9010 osf*)
9011 symcode='[BCDEGQRST]'
9013 solaris*)
9014 symcode='[BDRT]'
9016 sco3.2v5*)
9017 symcode='[DT]'
9019 sysv4.2uw2*)
9020 symcode='[DT]'
9022 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9023 symcode='[ABDT]'
9025 sysv4)
9026 symcode='[DFNSTU]'
9028 esac
9030 # If we're using GNU nm, then use its standard symbol codes.
9031 case `$NM -V 2>&1` in
9032 *GNU* | *'with BFD'*)
9033 symcode='[ABCDGIRSTW]' ;;
9034 esac
9036 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9037 # Gets list of data symbols to import.
9038 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9039 # Adjust the below global symbol transforms to fixup imported variables.
9040 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9041 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9042 lt_c_name_lib_hook="\
9043 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9044 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9045 else
9046 # Disable hooks by default.
9047 lt_cv_sys_global_symbol_to_import=
9048 lt_cdecl_hook=
9049 lt_c_name_hook=
9050 lt_c_name_lib_hook=
9053 # Transform an extracted symbol line into a proper C declaration.
9054 # Some systems (esp. on ia64) link data and code symbols differently,
9055 # so use this general approach.
9056 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9057 $lt_cdecl_hook\
9058 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9059 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9061 # Transform an extracted symbol line into symbol name and symbol address
9062 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9063 $lt_c_name_hook\
9064 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9065 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9067 # Transform an extracted symbol line into symbol name with lib prefix and
9068 # symbol address.
9069 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9070 $lt_c_name_lib_hook\
9071 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9072 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9073 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9075 # Handle CRLF in mingw tool chain
9076 opt_cr=
9077 case $build_os in
9078 mingw*)
9079 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9081 esac
9083 # Try without a prefix underscore, then with it.
9084 for ac_symprfx in "" "_"; do
9086 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9087 symxfrm="\\1 $ac_symprfx\\2 \\2"
9089 # Write the raw and C identifiers.
9090 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9091 # Fake it for dumpbin and say T for any non-static function,
9092 # D for any global variable and I for any imported variable.
9093 # Also find C++ and __fastcall symbols from MSVC++,
9094 # which start with @ or ?.
9095 lt_cv_sys_global_symbol_pipe="$AWK '"\
9096 " {last_section=section; section=\$ 3};"\
9097 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9098 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9099 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9100 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9101 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9102 " \$ 0!~/External *\|/{next};"\
9103 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9104 " {if(hide[section]) next};"\
9105 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9106 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9107 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9108 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9109 " ' prfx=^$ac_symprfx"
9110 else
9111 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9113 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9115 # Check to see that the pipe works correctly.
9116 pipe_works=no
9118 rm -f conftest*
9119 cat > conftest.$ac_ext <<_LT_EOF
9120 #ifdef __cplusplus
9121 extern "C" {
9122 #endif
9123 char nm_test_var;
9124 void nm_test_func(void);
9125 void nm_test_func(void){}
9126 #ifdef __cplusplus
9128 #endif
9129 int main(){nm_test_var='a';nm_test_func();return(0);}
9130 _LT_EOF
9132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9133 (eval $ac_compile) 2>&5
9134 ac_status=$?
9135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9136 test $ac_status = 0; }; then
9137 # Now try to grab the symbols.
9138 nlist=conftest.nm
9139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9140 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9141 ac_status=$?
9142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9143 test $ac_status = 0; } && test -s "$nlist"; then
9144 # Try sorting and uniquifying the output.
9145 if sort "$nlist" | uniq > "$nlist"T; then
9146 mv -f "$nlist"T "$nlist"
9147 else
9148 rm -f "$nlist"T
9151 # Make sure that we snagged all the symbols we need.
9152 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9153 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9154 cat <<_LT_EOF > conftest.$ac_ext
9155 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9156 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9157 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9158 relocations are performed -- see ld's documentation on pseudo-relocs. */
9159 # define LT_DLSYM_CONST
9160 #elif defined __osf__
9161 /* This system does not cope well with relocations in const data. */
9162 # define LT_DLSYM_CONST
9163 #else
9164 # define LT_DLSYM_CONST const
9165 #endif
9167 #ifdef __cplusplus
9168 extern "C" {
9169 #endif
9171 _LT_EOF
9172 # Now generate the symbol file.
9173 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9175 cat <<_LT_EOF >> conftest.$ac_ext
9177 /* The mapping between symbol names and symbols. */
9178 LT_DLSYM_CONST struct {
9179 const char *name;
9180 void *address;
9182 lt__PROGRAM__LTX_preloaded_symbols[] =
9184 { "@PROGRAM@", (void *) 0 },
9185 _LT_EOF
9186 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9187 cat <<\_LT_EOF >> conftest.$ac_ext
9188 {0, (void *) 0}
9191 /* This works around a problem in FreeBSD linker */
9192 #ifdef FREEBSD_WORKAROUND
9193 static const void *lt_preloaded_setup() {
9194 return lt__PROGRAM__LTX_preloaded_symbols;
9196 #endif
9198 #ifdef __cplusplus
9200 #endif
9201 _LT_EOF
9202 # Now try linking the two files.
9203 mv conftest.$ac_objext conftstm.$ac_objext
9204 lt_globsym_save_LIBS=$LIBS
9205 lt_globsym_save_CFLAGS=$CFLAGS
9206 LIBS=conftstm.$ac_objext
9207 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9209 (eval $ac_link) 2>&5
9210 ac_status=$?
9211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9212 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9213 pipe_works=yes
9215 LIBS=$lt_globsym_save_LIBS
9216 CFLAGS=$lt_globsym_save_CFLAGS
9217 else
9218 echo "cannot find nm_test_func in $nlist" >&5
9220 else
9221 echo "cannot find nm_test_var in $nlist" >&5
9223 else
9224 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9226 else
9227 echo "$progname: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9230 rm -rf conftest* conftst*
9232 # Do not use the global_symbol_pipe unless it works.
9233 if test yes = "$pipe_works"; then
9234 break
9235 else
9236 lt_cv_sys_global_symbol_pipe=
9238 done
9242 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9243 lt_cv_sys_global_symbol_to_cdecl=
9245 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9247 $as_echo "failed" >&6; }
9248 else
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9250 $as_echo "ok" >&6; }
9253 # Response file support.
9254 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9255 nm_file_list_spec='@'
9256 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9257 nm_file_list_spec='@'
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9297 $as_echo_n "checking for sysroot... " >&6; }
9299 # Check whether --with-sysroot was given.
9300 if test "${with_sysroot+set}" = set; then :
9301 withval=$with_sysroot;
9302 else
9303 with_sysroot=no
9307 lt_sysroot=
9308 case $with_sysroot in #(
9309 yes)
9310 if test yes = "$GCC"; then
9311 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9313 ;; #(
9315 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9316 ;; #(
9317 no|'')
9318 ;; #(
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9321 $as_echo "$with_sysroot" >&6; }
9322 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9324 esac
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9327 $as_echo "${lt_sysroot:-no}" >&6; }
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9334 $as_echo_n "checking for a working dd... " >&6; }
9335 if ${ac_cv_path_lt_DD+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 printf 0123456789abcdef0123456789abcdef >conftest.i
9339 cat conftest.i conftest.i >conftest2.i
9340 : ${lt_DD:=$DD}
9341 if test -z "$lt_DD"; then
9342 ac_path_lt_DD_found=false
9343 # Loop through the user's path and test for each of PROGNAME-LIST
9344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 for as_dir in $PATH
9347 IFS=$as_save_IFS
9348 test -z "$as_dir" && as_dir=.
9349 for ac_prog in dd; do
9350 for ac_exec_ext in '' $ac_executable_extensions; do
9351 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9352 as_fn_executable_p "$ac_path_lt_DD" || continue
9353 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9354 cmp -s conftest.i conftest.out \
9355 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9357 $ac_path_lt_DD_found && break 3
9358 done
9359 done
9360 done
9361 IFS=$as_save_IFS
9362 if test -z "$ac_cv_path_lt_DD"; then
9365 else
9366 ac_cv_path_lt_DD=$lt_DD
9369 rm -f conftest.i conftest2.i conftest.out
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9372 $as_echo "$ac_cv_path_lt_DD" >&6; }
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9376 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9377 if ${lt_cv_truncate_bin+:} false; then :
9378 $as_echo_n "(cached) " >&6
9379 else
9380 printf 0123456789abcdef0123456789abcdef >conftest.i
9381 cat conftest.i conftest.i >conftest2.i
9382 lt_cv_truncate_bin=
9383 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9384 cmp -s conftest.i conftest.out \
9385 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9387 rm -f conftest.i conftest2.i conftest.out
9388 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9391 $as_echo "$lt_cv_truncate_bin" >&6; }
9399 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9400 func_cc_basename ()
9402 for cc_temp in $*""; do
9403 case $cc_temp in
9404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9406 \-*) ;;
9407 *) break;;
9408 esac
9409 done
9410 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9413 # Check whether --enable-libtool-lock was given.
9414 if test "${enable_libtool_lock+set}" = set; then :
9415 enableval=$enable_libtool_lock;
9418 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9420 # Some flags need to be propagated to the compiler or linker for good
9421 # libtool support.
9422 case $host in
9423 ia64-*-hpux*)
9424 # Find out what ABI is being produced by ac_compile, and set mode
9425 # options accordingly.
9426 echo 'int i;' > conftest.$ac_ext
9427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9428 (eval $ac_compile) 2>&5
9429 ac_status=$?
9430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9431 test $ac_status = 0; }; then
9432 case `/usr/bin/file conftest.$ac_objext` in
9433 *ELF-32*)
9434 HPUX_IA64_MODE=32
9436 *ELF-64*)
9437 HPUX_IA64_MODE=64
9439 esac
9441 rm -rf conftest*
9443 *-*-irix6*)
9444 # Find out what ABI is being produced by ac_compile, and set linker
9445 # options accordingly.
9446 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9448 (eval $ac_compile) 2>&5
9449 ac_status=$?
9450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9451 test $ac_status = 0; }; then
9452 if test yes = "$lt_cv_prog_gnu_ld"; then
9453 case `/usr/bin/file conftest.$ac_objext` in
9454 *32-bit*)
9455 LD="${LD-ld} -melf32bsmip"
9457 *N32*)
9458 LD="${LD-ld} -melf32bmipn32"
9460 *64-bit*)
9461 LD="${LD-ld} -melf64bmip"
9463 esac
9464 else
9465 case `/usr/bin/file conftest.$ac_objext` in
9466 *32-bit*)
9467 LD="${LD-ld} -32"
9469 *N32*)
9470 LD="${LD-ld} -n32"
9472 *64-bit*)
9473 LD="${LD-ld} -64"
9475 esac
9478 rm -rf conftest*
9481 mips64*-*linux*)
9482 # Find out what ABI is being produced by ac_compile, and set linker
9483 # options accordingly.
9484 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9486 (eval $ac_compile) 2>&5
9487 ac_status=$?
9488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9489 test $ac_status = 0; }; then
9490 emul=elf
9491 case `/usr/bin/file conftest.$ac_objext` in
9492 *32-bit*)
9493 emul="${emul}32"
9495 *64-bit*)
9496 emul="${emul}64"
9498 esac
9499 case `/usr/bin/file conftest.$ac_objext` in
9500 *MSB*)
9501 emul="${emul}btsmip"
9503 *LSB*)
9504 emul="${emul}ltsmip"
9506 esac
9507 case `/usr/bin/file conftest.$ac_objext` in
9508 *N32*)
9509 emul="${emul}n32"
9511 esac
9512 LD="${LD-ld} -m $emul"
9514 rm -rf conftest*
9517 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9518 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9519 # Find out what ABI is being produced by ac_compile, and set linker
9520 # options accordingly. Note that the listed cases only cover the
9521 # situations where additional linker options are needed (such as when
9522 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9523 # vice versa); the common cases where no linker options are needed do
9524 # not appear in the list.
9525 echo 'int i;' > conftest.$ac_ext
9526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9527 (eval $ac_compile) 2>&5
9528 ac_status=$?
9529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9530 test $ac_status = 0; }; then
9531 case `/usr/bin/file conftest.o` in
9532 *32-bit*)
9533 case $host in
9534 x86_64-*kfreebsd*-gnu)
9535 LD="${LD-ld} -m elf_i386_fbsd"
9537 x86_64-*linux*)
9538 case `/usr/bin/file conftest.o` in
9539 *x86-64*)
9540 LD="${LD-ld} -m elf32_x86_64"
9543 LD="${LD-ld} -m elf_i386"
9545 esac
9547 powerpc64le-*linux*)
9548 LD="${LD-ld} -m elf32lppclinux"
9550 powerpc64-*linux*)
9551 LD="${LD-ld} -m elf32ppclinux"
9553 s390x-*linux*)
9554 LD="${LD-ld} -m elf_s390"
9556 sparc64-*linux*)
9557 LD="${LD-ld} -m elf32_sparc"
9559 esac
9561 *64-bit*)
9562 case $host in
9563 x86_64-*kfreebsd*-gnu)
9564 LD="${LD-ld} -m elf_x86_64_fbsd"
9566 x86_64-*linux*)
9567 LD="${LD-ld} -m elf_x86_64"
9569 powerpcle-*linux*)
9570 LD="${LD-ld} -m elf64lppc"
9572 powerpc-*linux*)
9573 LD="${LD-ld} -m elf64ppc"
9575 s390*-*linux*|s390*-*tpf*)
9576 LD="${LD-ld} -m elf64_s390"
9578 sparc*-*linux*)
9579 LD="${LD-ld} -m elf64_sparc"
9581 esac
9583 esac
9585 rm -rf conftest*
9588 *-*-sco3.2v5*)
9589 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9590 SAVE_CFLAGS=$CFLAGS
9591 CFLAGS="$CFLAGS -belf"
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9593 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9594 if ${lt_cv_cc_needs_belf+:} false; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 ac_ext=c
9598 ac_cpp='$CPP $CPPFLAGS'
9599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9607 main ()
9611 return 0;
9613 _ACEOF
9614 if ac_fn_c_try_link "$LINENO"; then :
9615 lt_cv_cc_needs_belf=yes
9616 else
9617 lt_cv_cc_needs_belf=no
9619 rm -f core conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9621 ac_ext=c
9622 ac_cpp='$CPP $CPPFLAGS'
9623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9629 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9630 if test yes != "$lt_cv_cc_needs_belf"; then
9631 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9632 CFLAGS=$SAVE_CFLAGS
9635 *-*solaris*)
9636 # Find out what ABI is being produced by ac_compile, and set linker
9637 # options accordingly.
9638 echo 'int i;' > conftest.$ac_ext
9639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9640 (eval $ac_compile) 2>&5
9641 ac_status=$?
9642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9643 test $ac_status = 0; }; then
9644 case `/usr/bin/file conftest.o` in
9645 *64-bit*)
9646 case $lt_cv_prog_gnu_ld in
9647 yes*)
9648 case $host in
9649 i?86-*-solaris*|x86_64-*-solaris*)
9650 LD="${LD-ld} -m elf_x86_64"
9652 sparc*-*-solaris*)
9653 LD="${LD-ld} -m elf64_sparc"
9655 esac
9656 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9657 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9658 LD=${LD-ld}_sol2
9662 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9663 LD="${LD-ld} -64"
9666 esac
9668 esac
9670 rm -rf conftest*
9672 esac
9674 need_locks=$enable_libtool_lock
9676 if test -n "$ac_tool_prefix"; then
9677 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9678 set dummy ${ac_tool_prefix}mt; ac_word=$2
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 $as_echo_n "checking for $ac_word... " >&6; }
9681 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 if test -n "$MANIFEST_TOOL"; then
9685 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9686 else
9687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688 for as_dir in $PATH
9690 IFS=$as_save_IFS
9691 test -z "$as_dir" && as_dir=.
9692 for ac_exec_ext in '' $ac_executable_extensions; do
9693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9694 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9696 break 2
9698 done
9699 done
9700 IFS=$as_save_IFS
9704 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9705 if test -n "$MANIFEST_TOOL"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9707 $as_echo "$MANIFEST_TOOL" >&6; }
9708 else
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9715 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9716 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9717 # Extract the first word of "mt", so it can be a program name with args.
9718 set dummy mt; ac_word=$2
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720 $as_echo_n "checking for $ac_word... " >&6; }
9721 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9722 $as_echo_n "(cached) " >&6
9723 else
9724 if test -n "$ac_ct_MANIFEST_TOOL"; then
9725 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9726 else
9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728 for as_dir in $PATH
9730 IFS=$as_save_IFS
9731 test -z "$as_dir" && as_dir=.
9732 for ac_exec_ext in '' $ac_executable_extensions; do
9733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9734 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9736 break 2
9738 done
9739 done
9740 IFS=$as_save_IFS
9744 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9745 if test -n "$ac_ct_MANIFEST_TOOL"; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9747 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9748 else
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 $as_echo "no" >&6; }
9753 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9754 MANIFEST_TOOL=":"
9755 else
9756 case $cross_compiling:$ac_tool_warned in
9757 yes:)
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9760 ac_tool_warned=yes ;;
9761 esac
9762 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9764 else
9765 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9768 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9770 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9771 if ${lt_cv_path_mainfest_tool+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 lt_cv_path_mainfest_tool=no
9775 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9776 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9777 cat conftest.err >&5
9778 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9779 lt_cv_path_mainfest_tool=yes
9781 rm -f conftest*
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9784 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9785 if test yes != "$lt_cv_path_mainfest_tool"; then
9786 MANIFEST_TOOL=:
9794 case $host_os in
9795 rhapsody* | darwin*)
9796 if test -n "$ac_tool_prefix"; then
9797 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9798 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9800 $as_echo_n "checking for $ac_word... " >&6; }
9801 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 if test -n "$DSYMUTIL"; then
9805 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9806 else
9807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9808 for as_dir in $PATH
9810 IFS=$as_save_IFS
9811 test -z "$as_dir" && as_dir=.
9812 for ac_exec_ext in '' $ac_executable_extensions; do
9813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9814 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9816 break 2
9818 done
9819 done
9820 IFS=$as_save_IFS
9824 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9825 if test -n "$DSYMUTIL"; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9827 $as_echo "$DSYMUTIL" >&6; }
9828 else
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9830 $as_echo "no" >&6; }
9835 if test -z "$ac_cv_prog_DSYMUTIL"; then
9836 ac_ct_DSYMUTIL=$DSYMUTIL
9837 # Extract the first word of "dsymutil", so it can be a program name with args.
9838 set dummy dsymutil; ac_word=$2
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 if test -n "$ac_ct_DSYMUTIL"; then
9845 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9846 else
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 for as_dir in $PATH
9850 IFS=$as_save_IFS
9851 test -z "$as_dir" && as_dir=.
9852 for ac_exec_ext in '' $ac_executable_extensions; do
9853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9854 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9856 break 2
9858 done
9859 done
9860 IFS=$as_save_IFS
9864 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9865 if test -n "$ac_ct_DSYMUTIL"; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9867 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9868 else
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9873 if test "x$ac_ct_DSYMUTIL" = x; then
9874 DSYMUTIL=":"
9875 else
9876 case $cross_compiling:$ac_tool_warned in
9877 yes:)
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9880 ac_tool_warned=yes ;;
9881 esac
9882 DSYMUTIL=$ac_ct_DSYMUTIL
9884 else
9885 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9888 if test -n "$ac_tool_prefix"; then
9889 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9890 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9892 $as_echo_n "checking for $ac_word... " >&6; }
9893 if ${ac_cv_prog_NMEDIT+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 if test -n "$NMEDIT"; then
9897 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9898 else
9899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900 for as_dir in $PATH
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
9904 for ac_exec_ext in '' $ac_executable_extensions; do
9905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9906 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9908 break 2
9910 done
9911 done
9912 IFS=$as_save_IFS
9916 NMEDIT=$ac_cv_prog_NMEDIT
9917 if test -n "$NMEDIT"; then
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9919 $as_echo "$NMEDIT" >&6; }
9920 else
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9922 $as_echo "no" >&6; }
9927 if test -z "$ac_cv_prog_NMEDIT"; then
9928 ac_ct_NMEDIT=$NMEDIT
9929 # Extract the first word of "nmedit", so it can be a program name with args.
9930 set dummy nmedit; ac_word=$2
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932 $as_echo_n "checking for $ac_word... " >&6; }
9933 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 if test -n "$ac_ct_NMEDIT"; then
9937 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9938 else
9939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 for as_dir in $PATH
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9946 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9948 break 2
9950 done
9951 done
9952 IFS=$as_save_IFS
9956 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9957 if test -n "$ac_ct_NMEDIT"; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9959 $as_echo "$ac_ct_NMEDIT" >&6; }
9960 else
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }
9965 if test "x$ac_ct_NMEDIT" = x; then
9966 NMEDIT=":"
9967 else
9968 case $cross_compiling:$ac_tool_warned in
9969 yes:)
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9972 ac_tool_warned=yes ;;
9973 esac
9974 NMEDIT=$ac_ct_NMEDIT
9976 else
9977 NMEDIT="$ac_cv_prog_NMEDIT"
9980 if test -n "$ac_tool_prefix"; then
9981 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9982 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984 $as_echo_n "checking for $ac_word... " >&6; }
9985 if ${ac_cv_prog_LIPO+:} false; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 if test -n "$LIPO"; then
9989 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9990 else
9991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992 for as_dir in $PATH
9994 IFS=$as_save_IFS
9995 test -z "$as_dir" && as_dir=.
9996 for ac_exec_ext in '' $ac_executable_extensions; do
9997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9998 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10000 break 2
10002 done
10003 done
10004 IFS=$as_save_IFS
10008 LIPO=$ac_cv_prog_LIPO
10009 if test -n "$LIPO"; then
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10011 $as_echo "$LIPO" >&6; }
10012 else
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 $as_echo "no" >&6; }
10019 if test -z "$ac_cv_prog_LIPO"; then
10020 ac_ct_LIPO=$LIPO
10021 # Extract the first word of "lipo", so it can be a program name with args.
10022 set dummy lipo; ac_word=$2
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10024 $as_echo_n "checking for $ac_word... " >&6; }
10025 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 if test -n "$ac_ct_LIPO"; then
10029 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10030 else
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10038 ac_cv_prog_ac_ct_LIPO="lipo"
10039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10042 done
10043 done
10044 IFS=$as_save_IFS
10048 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10049 if test -n "$ac_ct_LIPO"; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10051 $as_echo "$ac_ct_LIPO" >&6; }
10052 else
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054 $as_echo "no" >&6; }
10057 if test "x$ac_ct_LIPO" = x; then
10058 LIPO=":"
10059 else
10060 case $cross_compiling:$ac_tool_warned in
10061 yes:)
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10064 ac_tool_warned=yes ;;
10065 esac
10066 LIPO=$ac_ct_LIPO
10068 else
10069 LIPO="$ac_cv_prog_LIPO"
10072 if test -n "$ac_tool_prefix"; then
10073 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10074 set dummy ${ac_tool_prefix}otool; ac_word=$2
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076 $as_echo_n "checking for $ac_word... " >&6; }
10077 if ${ac_cv_prog_OTOOL+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 if test -n "$OTOOL"; then
10081 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10082 else
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10090 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10094 done
10095 done
10096 IFS=$as_save_IFS
10100 OTOOL=$ac_cv_prog_OTOOL
10101 if test -n "$OTOOL"; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10103 $as_echo "$OTOOL" >&6; }
10104 else
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106 $as_echo "no" >&6; }
10111 if test -z "$ac_cv_prog_OTOOL"; then
10112 ac_ct_OTOOL=$OTOOL
10113 # Extract the first word of "otool", so it can be a program name with args.
10114 set dummy otool; ac_word=$2
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10116 $as_echo_n "checking for $ac_word... " >&6; }
10117 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 if test -n "$ac_ct_OTOOL"; then
10121 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10122 else
10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124 for as_dir in $PATH
10126 IFS=$as_save_IFS
10127 test -z "$as_dir" && as_dir=.
10128 for ac_exec_ext in '' $ac_executable_extensions; do
10129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10130 ac_cv_prog_ac_ct_OTOOL="otool"
10131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10132 break 2
10134 done
10135 done
10136 IFS=$as_save_IFS
10140 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10141 if test -n "$ac_ct_OTOOL"; then
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10143 $as_echo "$ac_ct_OTOOL" >&6; }
10144 else
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10146 $as_echo "no" >&6; }
10149 if test "x$ac_ct_OTOOL" = x; then
10150 OTOOL=":"
10151 else
10152 case $cross_compiling:$ac_tool_warned in
10153 yes:)
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10156 ac_tool_warned=yes ;;
10157 esac
10158 OTOOL=$ac_ct_OTOOL
10160 else
10161 OTOOL="$ac_cv_prog_OTOOL"
10164 if test -n "$ac_tool_prefix"; then
10165 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10166 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168 $as_echo_n "checking for $ac_word... " >&6; }
10169 if ${ac_cv_prog_OTOOL64+:} false; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 if test -n "$OTOOL64"; then
10173 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10174 else
10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176 for as_dir in $PATH
10178 IFS=$as_save_IFS
10179 test -z "$as_dir" && as_dir=.
10180 for ac_exec_ext in '' $ac_executable_extensions; do
10181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10182 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10184 break 2
10186 done
10187 done
10188 IFS=$as_save_IFS
10192 OTOOL64=$ac_cv_prog_OTOOL64
10193 if test -n "$OTOOL64"; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10195 $as_echo "$OTOOL64" >&6; }
10196 else
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10203 if test -z "$ac_cv_prog_OTOOL64"; then
10204 ac_ct_OTOOL64=$OTOOL64
10205 # Extract the first word of "otool64", so it can be a program name with args.
10206 set dummy otool64; ac_word=$2
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208 $as_echo_n "checking for $ac_word... " >&6; }
10209 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 if test -n "$ac_ct_OTOOL64"; then
10213 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10214 else
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10218 IFS=$as_save_IFS
10219 test -z "$as_dir" && as_dir=.
10220 for ac_exec_ext in '' $ac_executable_extensions; do
10221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10222 ac_cv_prog_ac_ct_OTOOL64="otool64"
10223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10224 break 2
10226 done
10227 done
10228 IFS=$as_save_IFS
10232 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10233 if test -n "$ac_ct_OTOOL64"; then
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10235 $as_echo "$ac_ct_OTOOL64" >&6; }
10236 else
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 $as_echo "no" >&6; }
10241 if test "x$ac_ct_OTOOL64" = x; then
10242 OTOOL64=":"
10243 else
10244 case $cross_compiling:$ac_tool_warned in
10245 yes:)
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10248 ac_tool_warned=yes ;;
10249 esac
10250 OTOOL64=$ac_ct_OTOOL64
10252 else
10253 OTOOL64="$ac_cv_prog_OTOOL64"
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10283 $as_echo_n "checking for -single_module linker flag... " >&6; }
10284 if ${lt_cv_apple_cc_single_mod+:} false; then :
10285 $as_echo_n "(cached) " >&6
10286 else
10287 lt_cv_apple_cc_single_mod=no
10288 if test -z "$LT_MULTI_MODULE"; then
10289 # By default we will add the -single_module flag. You can override
10290 # by either setting the environment variable LT_MULTI_MODULE
10291 # non-empty at configure time, or by adding -multi_module to the
10292 # link flags.
10293 rm -rf libconftest.dylib*
10294 echo "int foo(void){return 1;}" > conftest.c
10295 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10296 -dynamiclib -Wl,-single_module conftest.c" >&5
10297 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10298 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10299 _lt_result=$?
10300 # If there is a non-empty error log, and "single_module"
10301 # appears in it, assume the flag caused a linker warning
10302 if test -s conftest.err && $GREP single_module conftest.err; then
10303 cat conftest.err >&5
10304 # Otherwise, if the output was created with a 0 exit code from
10305 # the compiler, it worked.
10306 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10307 lt_cv_apple_cc_single_mod=yes
10308 else
10309 cat conftest.err >&5
10311 rm -rf libconftest.dylib*
10312 rm -f conftest.*
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10316 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10319 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10320 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10321 $as_echo_n "(cached) " >&6
10322 else
10323 lt_cv_ld_exported_symbols_list=no
10324 save_LDFLAGS=$LDFLAGS
10325 echo "_main" > conftest.sym
10326 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10331 main ()
10335 return 0;
10337 _ACEOF
10338 if ac_fn_c_try_link "$LINENO"; then :
10339 lt_cv_ld_exported_symbols_list=yes
10340 else
10341 lt_cv_ld_exported_symbols_list=no
10343 rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 LDFLAGS=$save_LDFLAGS
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10349 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10352 $as_echo_n "checking for -force_load linker flag... " >&6; }
10353 if ${lt_cv_ld_force_load+:} false; then :
10354 $as_echo_n "(cached) " >&6
10355 else
10356 lt_cv_ld_force_load=no
10357 cat > conftest.c << _LT_EOF
10358 int forced_loaded() { return 2;}
10359 _LT_EOF
10360 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10361 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10362 echo "$AR cru libconftest.a conftest.o" >&5
10363 $AR cru libconftest.a conftest.o 2>&5
10364 echo "$RANLIB libconftest.a" >&5
10365 $RANLIB libconftest.a 2>&5
10366 cat > conftest.c << _LT_EOF
10367 int main() { return 0;}
10368 _LT_EOF
10369 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10370 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10371 _lt_result=$?
10372 if test -s conftest.err && $GREP force_load conftest.err; then
10373 cat conftest.err >&5
10374 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10375 lt_cv_ld_force_load=yes
10376 else
10377 cat conftest.err >&5
10379 rm -f conftest.err libconftest.a conftest conftest.c
10380 rm -rf conftest.dSYM
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10384 $as_echo "$lt_cv_ld_force_load" >&6; }
10385 case $host_os in
10386 rhapsody* | darwin1.[012])
10387 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10388 darwin1.*)
10389 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10390 darwin*) # darwin 5.x on
10391 # if running on 10.5 or later, the deployment target defaults
10392 # to the OS version, if on x86, and 10.4, the deployment
10393 # target defaults to 10.4. Don't you love it?
10394 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10395 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10396 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10397 10.[012][,.]*)
10398 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10399 10.*)
10400 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10401 esac
10403 esac
10404 if test yes = "$lt_cv_apple_cc_single_mod"; then
10405 _lt_dar_single_mod='$single_module'
10407 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10408 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10409 else
10410 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10412 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10413 _lt_dsymutil='~$DSYMUTIL $lib || :'
10414 else
10415 _lt_dsymutil=
10418 esac
10420 # func_munge_path_list VARIABLE PATH
10421 # -----------------------------------
10422 # VARIABLE is name of variable containing _space_ separated list of
10423 # directories to be munged by the contents of PATH, which is string
10424 # having a format:
10425 # "DIR[:DIR]:"
10426 # string "DIR[ DIR]" will be prepended to VARIABLE
10427 # ":DIR[:DIR]"
10428 # string "DIR[ DIR]" will be appended to VARIABLE
10429 # "DIRP[:DIRP]::[DIRA:]DIRA"
10430 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10431 # "DIRA[ DIRA]" will be appended to VARIABLE
10432 # "DIR[:DIR]"
10433 # VARIABLE will be replaced by "DIR[ DIR]"
10434 func_munge_path_list ()
10436 case x$2 in
10440 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10442 x:*)
10443 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10445 *::*)
10446 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10447 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10450 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10452 esac
10455 for ac_header in dlfcn.h
10456 do :
10457 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10459 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10460 cat >>confdefs.h <<_ACEOF
10461 #define HAVE_DLFCN_H 1
10462 _ACEOF
10466 done
10472 # Set options
10476 enable_dlopen=no
10479 enable_win32_dll=no
10482 # Check whether --enable-shared was given.
10483 if test "${enable_shared+set}" = set; then :
10484 enableval=$enable_shared; p=${PACKAGE-default}
10485 case $enableval in
10486 yes) enable_shared=yes ;;
10487 no) enable_shared=no ;;
10489 enable_shared=no
10490 # Look at the argument we got. We use all the common list separators.
10491 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10492 for pkg in $enableval; do
10493 IFS=$lt_save_ifs
10494 if test "X$pkg" = "X$p"; then
10495 enable_shared=yes
10497 done
10498 IFS=$lt_save_ifs
10500 esac
10501 else
10502 enable_shared=yes
10513 # Check whether --enable-static was given.
10514 if test "${enable_static+set}" = set; then :
10515 enableval=$enable_static; p=${PACKAGE-default}
10516 case $enableval in
10517 yes) enable_static=yes ;;
10518 no) enable_static=no ;;
10520 enable_static=no
10521 # Look at the argument we got. We use all the common list separators.
10522 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10523 for pkg in $enableval; do
10524 IFS=$lt_save_ifs
10525 if test "X$pkg" = "X$p"; then
10526 enable_static=yes
10528 done
10529 IFS=$lt_save_ifs
10531 esac
10532 else
10533 enable_static=yes
10545 # Check whether --with-pic was given.
10546 if test "${with_pic+set}" = set; then :
10547 withval=$with_pic; lt_p=${PACKAGE-default}
10548 case $withval in
10549 yes|no) pic_mode=$withval ;;
10551 pic_mode=default
10552 # Look at the argument we got. We use all the common list separators.
10553 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10554 for lt_pkg in $withval; do
10555 IFS=$lt_save_ifs
10556 if test "X$lt_pkg" = "X$lt_p"; then
10557 pic_mode=yes
10559 done
10560 IFS=$lt_save_ifs
10562 esac
10563 else
10564 pic_mode=default
10574 # Check whether --enable-fast-install was given.
10575 if test "${enable_fast_install+set}" = set; then :
10576 enableval=$enable_fast_install; p=${PACKAGE-default}
10577 case $enableval in
10578 yes) enable_fast_install=yes ;;
10579 no) enable_fast_install=no ;;
10581 enable_fast_install=no
10582 # Look at the argument we got. We use all the common list separators.
10583 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10584 for pkg in $enableval; do
10585 IFS=$lt_save_ifs
10586 if test "X$pkg" = "X$p"; then
10587 enable_fast_install=yes
10589 done
10590 IFS=$lt_save_ifs
10592 esac
10593 else
10594 enable_fast_install=yes
10604 shared_archive_member_spec=
10605 case $host,$enable_shared in
10606 power*-*-aix[5-9]*,yes)
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10608 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10610 # Check whether --with-aix-soname was given.
10611 if test "${with_aix_soname+set}" = set; then :
10612 withval=$with_aix_soname; case $withval in
10613 aix|svr4|both)
10616 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10618 esac
10619 lt_cv_with_aix_soname=$with_aix_soname
10620 else
10621 if ${lt_cv_with_aix_soname+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 lt_cv_with_aix_soname=aix
10627 with_aix_soname=$lt_cv_with_aix_soname
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10631 $as_echo "$with_aix_soname" >&6; }
10632 if test aix != "$with_aix_soname"; then
10633 # For the AIX way of multilib, we name the shared archive member
10634 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10635 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10636 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10637 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10638 if test 64 = "${OBJECT_MODE-32}"; then
10639 shared_archive_member_spec=shr_64
10640 else
10641 shared_archive_member_spec=shr
10646 with_aix_soname=aix
10648 esac
10659 # This can be used to rebuild libtool when needed
10660 LIBTOOL_DEPS=$ltmain
10662 # Always use our own libtool.
10663 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10694 test -z "$LN_S" && LN_S="ln -s"
10709 if test -n "${ZSH_VERSION+set}"; then
10710 setopt NO_GLOB_SUBST
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10714 $as_echo_n "checking for objdir... " >&6; }
10715 if ${lt_cv_objdir+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 rm -f .libs 2>/dev/null
10719 mkdir .libs 2>/dev/null
10720 if test -d .libs; then
10721 lt_cv_objdir=.libs
10722 else
10723 # MS-DOS does not allow filenames that begin with a dot.
10724 lt_cv_objdir=_libs
10726 rmdir .libs 2>/dev/null
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10729 $as_echo "$lt_cv_objdir" >&6; }
10730 objdir=$lt_cv_objdir
10736 cat >>confdefs.h <<_ACEOF
10737 #define LT_OBJDIR "$lt_cv_objdir/"
10738 _ACEOF
10743 case $host_os in
10744 aix3*)
10745 # AIX sometimes has problems with the GCC collect2 program. For some
10746 # reason, if we set the COLLECT_NAMES environment variable, the problems
10747 # vanish in a puff of smoke.
10748 if test set != "${COLLECT_NAMES+set}"; then
10749 COLLECT_NAMES=
10750 export COLLECT_NAMES
10753 esac
10755 # Global variables:
10756 ofile=libtool
10757 can_build_shared=yes
10759 # All known linkers require a '.a' archive for static linking (except MSVC,
10760 # which needs '.lib').
10761 libext=a
10763 with_gnu_ld=$lt_cv_prog_gnu_ld
10765 old_CC=$CC
10766 old_CFLAGS=$CFLAGS
10768 # Set sane defaults for various variables
10769 test -z "$CC" && CC=cc
10770 test -z "$LTCC" && LTCC=$CC
10771 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10772 test -z "$LD" && LD=ld
10773 test -z "$ac_objext" && ac_objext=o
10775 func_cc_basename $compiler
10776 cc_basename=$func_cc_basename_result
10779 # Only perform the check for file, if the check method requires it
10780 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10781 case $deplibs_check_method in
10782 file_magic*)
10783 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10785 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10786 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10787 $as_echo_n "(cached) " >&6
10788 else
10789 case $MAGIC_CMD in
10790 [\\/*] | ?:[\\/]*)
10791 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10794 lt_save_MAGIC_CMD=$MAGIC_CMD
10795 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10796 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10797 for ac_dir in $ac_dummy; do
10798 IFS=$lt_save_ifs
10799 test -z "$ac_dir" && ac_dir=.
10800 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10801 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10802 if test -n "$file_magic_test_file"; then
10803 case $deplibs_check_method in
10804 "file_magic "*)
10805 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10806 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10807 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10808 $EGREP "$file_magic_regex" > /dev/null; then
10810 else
10811 cat <<_LT_EOF 1>&2
10813 *** Warning: the command libtool uses to detect shared libraries,
10814 *** $file_magic_cmd, produces output that libtool cannot recognize.
10815 *** The result is that libtool may fail to recognize shared libraries
10816 *** as such. This will affect the creation of libtool libraries that
10817 *** depend on shared libraries, but programs linked with such libtool
10818 *** libraries will work regardless of this problem. Nevertheless, you
10819 *** may want to report the problem to your system manager and/or to
10820 *** bug-libtool@gnu.org
10822 _LT_EOF
10823 fi ;;
10824 esac
10826 break
10828 done
10829 IFS=$lt_save_ifs
10830 MAGIC_CMD=$lt_save_MAGIC_CMD
10832 esac
10835 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10836 if test -n "$MAGIC_CMD"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10838 $as_echo "$MAGIC_CMD" >&6; }
10839 else
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10848 if test -z "$lt_cv_path_MAGIC_CMD"; then
10849 if test -n "$ac_tool_prefix"; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10851 $as_echo_n "checking for file... " >&6; }
10852 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 case $MAGIC_CMD in
10856 [\\/*] | ?:[\\/]*)
10857 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10860 lt_save_MAGIC_CMD=$MAGIC_CMD
10861 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10862 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10863 for ac_dir in $ac_dummy; do
10864 IFS=$lt_save_ifs
10865 test -z "$ac_dir" && ac_dir=.
10866 if test -f "$ac_dir/file"; then
10867 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10868 if test -n "$file_magic_test_file"; then
10869 case $deplibs_check_method in
10870 "file_magic "*)
10871 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10872 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10873 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10874 $EGREP "$file_magic_regex" > /dev/null; then
10876 else
10877 cat <<_LT_EOF 1>&2
10879 *** Warning: the command libtool uses to detect shared libraries,
10880 *** $file_magic_cmd, produces output that libtool cannot recognize.
10881 *** The result is that libtool may fail to recognize shared libraries
10882 *** as such. This will affect the creation of libtool libraries that
10883 *** depend on shared libraries, but programs linked with such libtool
10884 *** libraries will work regardless of this problem. Nevertheless, you
10885 *** may want to report the problem to your system manager and/or to
10886 *** bug-libtool@gnu.org
10888 _LT_EOF
10889 fi ;;
10890 esac
10892 break
10894 done
10895 IFS=$lt_save_ifs
10896 MAGIC_CMD=$lt_save_MAGIC_CMD
10898 esac
10901 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10902 if test -n "$MAGIC_CMD"; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10904 $as_echo "$MAGIC_CMD" >&6; }
10905 else
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10911 else
10912 MAGIC_CMD=:
10918 esac
10920 # Use C for the default configuration in the libtool script
10922 lt_save_CC=$CC
10923 ac_ext=c
10924 ac_cpp='$CPP $CPPFLAGS'
10925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10930 # Source file extension for C test sources.
10931 ac_ext=c
10933 # Object file extension for compiled C test sources.
10934 objext=o
10935 objext=$objext
10937 # Code to be used in simple compile tests
10938 lt_simple_compile_test_code="int some_variable = 0;"
10940 # Code to be used in simple link tests
10941 lt_simple_link_test_code='int main(){return(0);}'
10949 # If no C compiler was specified, use CC.
10950 LTCC=${LTCC-"$CC"}
10952 # If no C compiler flags were specified, use CFLAGS.
10953 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10955 # Allow CC to be a program name with arguments.
10956 compiler=$CC
10958 # Save the default compiler, since it gets overwritten when the other
10959 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10960 compiler_DEFAULT=$CC
10962 # save warnings/boilerplate of simple test code
10963 ac_outfile=conftest.$ac_objext
10964 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10966 _lt_compiler_boilerplate=`cat conftest.err`
10967 $RM conftest*
10969 ac_outfile=conftest.$ac_objext
10970 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10972 _lt_linker_boilerplate=`cat conftest.err`
10973 $RM -r conftest*
10976 ## CAVEAT EMPTOR:
10977 ## There is no encapsulation within the following macros, do not change
10978 ## the running order or otherwise move them around unless you know exactly
10979 ## what you are doing...
10980 if test -n "$compiler"; then
10982 lt_prog_compiler_no_builtin_flag=
10984 if test yes = "$GCC"; then
10985 case $cc_basename in
10986 nvcc*)
10987 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10989 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10990 esac
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10993 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10994 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 lt_cv_prog_compiler_rtti_exceptions=no
10998 ac_outfile=conftest.$ac_objext
10999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11000 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11001 # Insert the option either (1) after the last *FLAGS variable, or
11002 # (2) before a word containing "conftest.", or (3) at the end.
11003 # Note that $ac_compile itself does not contain backslashes and begins
11004 # with a dollar sign (not a hyphen), so the echo should work correctly.
11005 # The option is referenced via a variable to avoid confusing sed.
11006 lt_compile=`echo "$ac_compile" | $SED \
11007 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11008 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11009 -e 's:$: $lt_compiler_flag:'`
11010 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11011 (eval "$lt_compile" 2>conftest.err)
11012 ac_status=$?
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 if (exit $ac_status) && test -s "$ac_outfile"; then
11016 # The compiler can only warn and ignore the option if not recognized
11017 # So say no if there are warnings other than the usual output.
11018 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11019 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11020 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11021 lt_cv_prog_compiler_rtti_exceptions=yes
11024 $RM conftest*
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11028 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11030 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11031 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11032 else
11043 lt_prog_compiler_wl=
11044 lt_prog_compiler_pic=
11045 lt_prog_compiler_static=
11048 if test yes = "$GCC"; then
11049 lt_prog_compiler_wl='-Wl,'
11050 lt_prog_compiler_static='-static'
11052 case $host_os in
11053 aix*)
11054 # All AIX code is PIC.
11055 if test ia64 = "$host_cpu"; then
11056 # AIX 5 now supports IA64 processor
11057 lt_prog_compiler_static='-Bstatic'
11059 lt_prog_compiler_pic='-fPIC'
11062 amigaos*)
11063 case $host_cpu in
11064 powerpc)
11065 # see comment about AmigaOS4 .so support
11066 lt_prog_compiler_pic='-fPIC'
11068 m68k)
11069 # FIXME: we need at least 68020 code to build shared libraries, but
11070 # adding the '-m68020' flag to GCC prevents building anything better,
11071 # like '-m68040'.
11072 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11074 esac
11077 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11078 # PIC is the default for these OSes.
11081 mingw* | cygwin* | pw32* | os2* | cegcc*)
11082 # This hack is so that the source file can tell whether it is being
11083 # built for inclusion in a dll (and should export symbols for example).
11084 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11085 # (--disable-auto-import) libraries
11086 lt_prog_compiler_pic='-DDLL_EXPORT'
11087 case $host_os in
11088 os2*)
11089 lt_prog_compiler_static='$wl-static'
11091 esac
11094 darwin* | rhapsody*)
11095 # PIC is the default on this platform
11096 # Common symbols not allowed in MH_DYLIB files
11097 lt_prog_compiler_pic='-fno-common'
11100 haiku*)
11101 # PIC is the default for Haiku.
11102 # The "-static" flag exists, but is broken.
11103 lt_prog_compiler_static=
11106 hpux*)
11107 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11108 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11109 # sets the default TLS model and affects inlining.
11110 case $host_cpu in
11111 hppa*64*)
11112 # +Z the default
11115 lt_prog_compiler_pic='-fPIC'
11117 esac
11120 interix[3-9]*)
11121 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11122 # Instead, we relocate shared libraries at runtime.
11125 msdosdjgpp*)
11126 # Just because we use GCC doesn't mean we suddenly get shared libraries
11127 # on systems that don't support them.
11128 lt_prog_compiler_can_build_shared=no
11129 enable_shared=no
11132 *nto* | *qnx*)
11133 # QNX uses GNU C++, but need to define -shared option too, otherwise
11134 # it will coredump.
11135 lt_prog_compiler_pic='-fPIC -shared'
11138 sysv4*MP*)
11139 if test -d /usr/nec; then
11140 lt_prog_compiler_pic=-Kconform_pic
11145 lt_prog_compiler_pic='-fPIC'
11147 esac
11149 case $cc_basename in
11150 nvcc*) # Cuda Compiler Driver 2.2
11151 lt_prog_compiler_wl='-Xlinker '
11152 if test -n "$lt_prog_compiler_pic"; then
11153 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11156 esac
11157 else
11158 # PORTME Check for flag to pass linker flags through the system compiler.
11159 case $host_os in
11160 aix*)
11161 lt_prog_compiler_wl='-Wl,'
11162 if test ia64 = "$host_cpu"; then
11163 # AIX 5 now supports IA64 processor
11164 lt_prog_compiler_static='-Bstatic'
11165 else
11166 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11170 darwin* | rhapsody*)
11171 # PIC is the default on this platform
11172 # Common symbols not allowed in MH_DYLIB files
11173 lt_prog_compiler_pic='-fno-common'
11174 case $cc_basename in
11175 nagfor*)
11176 # NAG Fortran compiler
11177 lt_prog_compiler_wl='-Wl,-Wl,,'
11178 lt_prog_compiler_pic='-PIC'
11179 lt_prog_compiler_static='-Bstatic'
11181 esac
11184 mingw* | cygwin* | pw32* | os2* | cegcc*)
11185 # This hack is so that the source file can tell whether it is being
11186 # built for inclusion in a dll (and should export symbols for example).
11187 lt_prog_compiler_pic='-DDLL_EXPORT'
11188 case $host_os in
11189 os2*)
11190 lt_prog_compiler_static='$wl-static'
11192 esac
11195 hpux9* | hpux10* | hpux11*)
11196 lt_prog_compiler_wl='-Wl,'
11197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11198 # not for PA HP-UX.
11199 case $host_cpu in
11200 hppa*64*|ia64*)
11201 # +Z the default
11204 lt_prog_compiler_pic='+Z'
11206 esac
11207 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11208 lt_prog_compiler_static='$wl-a ${wl}archive'
11211 irix5* | irix6* | nonstopux*)
11212 lt_prog_compiler_wl='-Wl,'
11213 # PIC (with -KPIC) is the default.
11214 lt_prog_compiler_static='-non_shared'
11217 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11218 case $cc_basename in
11219 # old Intel for x86_64, which still supported -KPIC.
11220 ecc*)
11221 lt_prog_compiler_wl='-Wl,'
11222 lt_prog_compiler_pic='-KPIC'
11223 lt_prog_compiler_static='-static'
11225 # icc used to be incompatible with GCC.
11226 # ICC 10 doesn't accept -KPIC any more.
11227 icc* | ifort*)
11228 lt_prog_compiler_wl='-Wl,'
11229 lt_prog_compiler_pic='-fPIC'
11230 lt_prog_compiler_static='-static'
11232 # Lahey Fortran 8.1.
11233 lf95*)
11234 lt_prog_compiler_wl='-Wl,'
11235 lt_prog_compiler_pic='--shared'
11236 lt_prog_compiler_static='--static'
11238 nagfor*)
11239 # NAG Fortran compiler
11240 lt_prog_compiler_wl='-Wl,-Wl,,'
11241 lt_prog_compiler_pic='-PIC'
11242 lt_prog_compiler_static='-Bstatic'
11244 tcc*)
11245 # Fabrice Bellard et al's Tiny C Compiler
11246 lt_prog_compiler_wl='-Wl,'
11247 lt_prog_compiler_pic='-fPIC'
11248 lt_prog_compiler_static='-static'
11250 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11251 # Portland Group compilers (*not* the Pentium gcc compiler,
11252 # which looks to be a dead project)
11253 lt_prog_compiler_wl='-Wl,'
11254 lt_prog_compiler_pic='-fpic'
11255 lt_prog_compiler_static='-Bstatic'
11257 ccc*)
11258 lt_prog_compiler_wl='-Wl,'
11259 # All Alpha code is PIC.
11260 lt_prog_compiler_static='-non_shared'
11262 xl* | bgxl* | bgf* | mpixl*)
11263 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11264 lt_prog_compiler_wl='-Wl,'
11265 lt_prog_compiler_pic='-qpic'
11266 lt_prog_compiler_static='-qstaticlink'
11269 case `$CC -V 2>&1 | sed 5q` in
11270 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11271 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11272 lt_prog_compiler_pic='-KPIC'
11273 lt_prog_compiler_static='-Bstatic'
11274 lt_prog_compiler_wl=''
11276 *Sun\ F* | *Sun*Fortran*)
11277 lt_prog_compiler_pic='-KPIC'
11278 lt_prog_compiler_static='-Bstatic'
11279 lt_prog_compiler_wl='-Qoption ld '
11281 *Sun\ C*)
11282 # Sun C 5.9
11283 lt_prog_compiler_pic='-KPIC'
11284 lt_prog_compiler_static='-Bstatic'
11285 lt_prog_compiler_wl='-Wl,'
11287 *Intel*\ [CF]*Compiler*)
11288 lt_prog_compiler_wl='-Wl,'
11289 lt_prog_compiler_pic='-fPIC'
11290 lt_prog_compiler_static='-static'
11292 *Portland\ Group*)
11293 lt_prog_compiler_wl='-Wl,'
11294 lt_prog_compiler_pic='-fpic'
11295 lt_prog_compiler_static='-Bstatic'
11297 esac
11299 esac
11302 newsos6)
11303 lt_prog_compiler_pic='-KPIC'
11304 lt_prog_compiler_static='-Bstatic'
11307 *nto* | *qnx*)
11308 # QNX uses GNU C++, but need to define -shared option too, otherwise
11309 # it will coredump.
11310 lt_prog_compiler_pic='-fPIC -shared'
11313 osf3* | osf4* | osf5*)
11314 lt_prog_compiler_wl='-Wl,'
11315 # All OSF/1 code is PIC.
11316 lt_prog_compiler_static='-non_shared'
11319 rdos*)
11320 lt_prog_compiler_static='-non_shared'
11323 solaris*)
11324 lt_prog_compiler_pic='-KPIC'
11325 lt_prog_compiler_static='-Bstatic'
11326 case $cc_basename in
11327 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11328 lt_prog_compiler_wl='-Qoption ld ';;
11330 lt_prog_compiler_wl='-Wl,';;
11331 esac
11334 sunos4*)
11335 lt_prog_compiler_wl='-Qoption ld '
11336 lt_prog_compiler_pic='-PIC'
11337 lt_prog_compiler_static='-Bstatic'
11340 sysv4 | sysv4.2uw2* | sysv4.3*)
11341 lt_prog_compiler_wl='-Wl,'
11342 lt_prog_compiler_pic='-KPIC'
11343 lt_prog_compiler_static='-Bstatic'
11346 sysv4*MP*)
11347 if test -d /usr/nec; then
11348 lt_prog_compiler_pic='-Kconform_pic'
11349 lt_prog_compiler_static='-Bstatic'
11353 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11354 lt_prog_compiler_wl='-Wl,'
11355 lt_prog_compiler_pic='-KPIC'
11356 lt_prog_compiler_static='-Bstatic'
11359 unicos*)
11360 lt_prog_compiler_wl='-Wl,'
11361 lt_prog_compiler_can_build_shared=no
11364 uts4*)
11365 lt_prog_compiler_pic='-pic'
11366 lt_prog_compiler_static='-Bstatic'
11370 lt_prog_compiler_can_build_shared=no
11372 esac
11375 case $host_os in
11376 # For platforms that do not support PIC, -DPIC is meaningless:
11377 *djgpp*)
11378 lt_prog_compiler_pic=
11381 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11383 esac
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11386 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11387 if ${lt_cv_prog_compiler_pic+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11393 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11394 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11397 # Check to make sure the PIC flag actually works.
11399 if test -n "$lt_prog_compiler_pic"; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11401 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11402 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 lt_cv_prog_compiler_pic_works=no
11406 ac_outfile=conftest.$ac_objext
11407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11408 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11409 # Insert the option either (1) after the last *FLAGS variable, or
11410 # (2) before a word containing "conftest.", or (3) at the end.
11411 # Note that $ac_compile itself does not contain backslashes and begins
11412 # with a dollar sign (not a hyphen), so the echo should work correctly.
11413 # The option is referenced via a variable to avoid confusing sed.
11414 lt_compile=`echo "$ac_compile" | $SED \
11415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11417 -e 's:$: $lt_compiler_flag:'`
11418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11419 (eval "$lt_compile" 2>conftest.err)
11420 ac_status=$?
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 if (exit $ac_status) && test -s "$ac_outfile"; then
11424 # The compiler can only warn and ignore the option if not recognized
11425 # So say no if there are warnings other than the usual output.
11426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11429 lt_cv_prog_compiler_pic_works=yes
11432 $RM conftest*
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11436 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11438 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11439 case $lt_prog_compiler_pic in
11440 "" | " "*) ;;
11441 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11442 esac
11443 else
11444 lt_prog_compiler_pic=
11445 lt_prog_compiler_can_build_shared=no
11461 # Check to make sure the static flag actually works.
11463 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11465 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11466 if ${lt_cv_prog_compiler_static_works+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 lt_cv_prog_compiler_static_works=no
11470 save_LDFLAGS=$LDFLAGS
11471 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11472 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11473 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11474 # The linker can only warn and ignore the option if not recognized
11475 # So say no if there are warnings
11476 if test -s conftest.err; then
11477 # Append any errors to the config.log.
11478 cat conftest.err 1>&5
11479 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11481 if diff conftest.exp conftest.er2 >/dev/null; then
11482 lt_cv_prog_compiler_static_works=yes
11484 else
11485 lt_cv_prog_compiler_static_works=yes
11488 $RM -r conftest*
11489 LDFLAGS=$save_LDFLAGS
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11493 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11495 if test yes = "$lt_cv_prog_compiler_static_works"; then
11497 else
11498 lt_prog_compiler_static=
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11508 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11509 if ${lt_cv_prog_compiler_c_o+:} false; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 lt_cv_prog_compiler_c_o=no
11513 $RM -r conftest 2>/dev/null
11514 mkdir conftest
11515 cd conftest
11516 mkdir out
11517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11519 lt_compiler_flag="-o out/conftest2.$ac_objext"
11520 # Insert the option either (1) after the last *FLAGS variable, or
11521 # (2) before a word containing "conftest.", or (3) at the end.
11522 # Note that $ac_compile itself does not contain backslashes and begins
11523 # with a dollar sign (not a hyphen), so the echo should work correctly.
11524 lt_compile=`echo "$ac_compile" | $SED \
11525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11527 -e 's:$: $lt_compiler_flag:'`
11528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11529 (eval "$lt_compile" 2>out/conftest.err)
11530 ac_status=$?
11531 cat out/conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11534 then
11535 # The compiler can only warn and ignore the option if not recognized
11536 # So say no if there are warnings
11537 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11538 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11539 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11540 lt_cv_prog_compiler_c_o=yes
11543 chmod u+w . 2>&5
11544 $RM conftest*
11545 # SGI C++ compiler will create directory out/ii_files/ for
11546 # template instantiation
11547 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11548 $RM out/* && rmdir out
11549 cd ..
11550 $RM -r conftest
11551 $RM conftest*
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11555 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11563 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11564 if ${lt_cv_prog_compiler_c_o+:} false; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 lt_cv_prog_compiler_c_o=no
11568 $RM -r conftest 2>/dev/null
11569 mkdir conftest
11570 cd conftest
11571 mkdir out
11572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11574 lt_compiler_flag="-o out/conftest2.$ac_objext"
11575 # Insert the option either (1) after the last *FLAGS variable, or
11576 # (2) before a word containing "conftest.", or (3) at the end.
11577 # Note that $ac_compile itself does not contain backslashes and begins
11578 # with a dollar sign (not a hyphen), so the echo should work correctly.
11579 lt_compile=`echo "$ac_compile" | $SED \
11580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11582 -e 's:$: $lt_compiler_flag:'`
11583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11584 (eval "$lt_compile" 2>out/conftest.err)
11585 ac_status=$?
11586 cat out/conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11589 then
11590 # The compiler can only warn and ignore the option if not recognized
11591 # So say no if there are warnings
11592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11593 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11594 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11595 lt_cv_prog_compiler_c_o=yes
11598 chmod u+w . 2>&5
11599 $RM conftest*
11600 # SGI C++ compiler will create directory out/ii_files/ for
11601 # template instantiation
11602 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11603 $RM out/* && rmdir out
11604 cd ..
11605 $RM -r conftest
11606 $RM conftest*
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11610 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11615 hard_links=nottested
11616 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11617 # do not overwrite the value of need_locks provided by the user
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11619 $as_echo_n "checking if we can lock with hard links... " >&6; }
11620 hard_links=yes
11621 $RM conftest*
11622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11623 touch conftest.a
11624 ln conftest.a conftest.b 2>&5 || hard_links=no
11625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11627 $as_echo "$hard_links" >&6; }
11628 if test no = "$hard_links"; then
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11630 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11631 need_locks=warn
11633 else
11634 need_locks=no
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11643 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11645 runpath_var=
11646 allow_undefined_flag=
11647 always_export_symbols=no
11648 archive_cmds=
11649 archive_expsym_cmds=
11650 compiler_needs_object=no
11651 enable_shared_with_static_runtimes=no
11652 export_dynamic_flag_spec=
11653 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11654 hardcode_automatic=no
11655 hardcode_direct=no
11656 hardcode_direct_absolute=no
11657 hardcode_libdir_flag_spec=
11658 hardcode_libdir_separator=
11659 hardcode_minus_L=no
11660 hardcode_shlibpath_var=unsupported
11661 inherit_rpath=no
11662 link_all_deplibs=unknown
11663 module_cmds=
11664 module_expsym_cmds=
11665 old_archive_from_new_cmds=
11666 old_archive_from_expsyms_cmds=
11667 thread_safe_flag_spec=
11668 whole_archive_flag_spec=
11669 # include_expsyms should be a list of space-separated symbols to be *always*
11670 # included in the symbol list
11671 include_expsyms=
11672 # exclude_expsyms can be an extended regexp of symbols to exclude
11673 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11674 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11675 # as well as any symbol that contains 'd'.
11676 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11677 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11678 # platforms (ab)use it in PIC code, but their linkers get confused if
11679 # the symbol is explicitly referenced. Since portable code cannot
11680 # rely on this symbol name, it's probably fine to never include it in
11681 # preloaded symbol tables.
11682 # Exclude shared library initialization/finalization symbols.
11683 extract_expsyms_cmds=
11685 case $host_os in
11686 cygwin* | mingw* | pw32* | cegcc*)
11687 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11688 # When not using gcc, we currently assume that we are using
11689 # Microsoft Visual C++.
11690 if test yes != "$GCC"; then
11691 with_gnu_ld=no
11694 interix*)
11695 # we just hope/assume this is gcc and not c89 (= MSVC++)
11696 with_gnu_ld=yes
11698 openbsd* | bitrig*)
11699 with_gnu_ld=no
11701 esac
11703 ld_shlibs=yes
11705 # On some targets, GNU ld is compatible enough with the native linker
11706 # that we're better off using the native interface for both.
11707 lt_use_gnu_ld_interface=no
11708 if test yes = "$with_gnu_ld"; then
11709 case $host_os in
11710 aix*)
11711 # The AIX port of GNU ld has always aspired to compatibility
11712 # with the native linker. However, as the warning in the GNU ld
11713 # block says, versions before 2.19.5* couldn't really create working
11714 # shared libraries, regardless of the interface used.
11715 case `$LD -v 2>&1` in
11716 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11717 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11718 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11720 lt_use_gnu_ld_interface=yes
11722 esac
11725 lt_use_gnu_ld_interface=yes
11727 esac
11730 if test yes = "$lt_use_gnu_ld_interface"; then
11731 # If archive_cmds runs LD, not CC, wlarc should be empty
11732 wlarc='$wl'
11734 # Set some defaults for GNU ld with shared library support. These
11735 # are reset later if shared libraries are not supported. Putting them
11736 # here allows them to be overridden if necessary.
11737 runpath_var=LD_RUN_PATH
11738 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11739 export_dynamic_flag_spec='$wl--export-dynamic'
11740 # ancient GNU ld didn't support --whole-archive et. al.
11741 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11742 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11743 else
11744 whole_archive_flag_spec=
11746 supports_anon_versioning=no
11747 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11748 *GNU\ gold*) supports_anon_versioning=yes ;;
11749 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11750 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11751 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11752 *\ 2.11.*) ;; # other 2.11 versions
11753 *) supports_anon_versioning=yes ;;
11754 esac
11756 # See if GNU ld supports shared libraries.
11757 case $host_os in
11758 aix[3-9]*)
11759 # On AIX/PPC, the GNU linker is very broken
11760 if test ia64 != "$host_cpu"; then
11761 ld_shlibs=no
11762 cat <<_LT_EOF 1>&2
11764 *** Warning: the GNU linker, at least up to release 2.19, is reported
11765 *** to be unable to reliably create shared libraries on AIX.
11766 *** Therefore, libtool is disabling shared libraries support. If you
11767 *** really care for shared libraries, you may want to install binutils
11768 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11769 *** You will then need to restart the configuration process.
11771 _LT_EOF
11775 amigaos*)
11776 case $host_cpu in
11777 powerpc)
11778 # see comment about AmigaOS4 .so support
11779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11780 archive_expsym_cmds=''
11782 m68k)
11783 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)'
11784 hardcode_libdir_flag_spec='-L$libdir'
11785 hardcode_minus_L=yes
11787 esac
11790 beos*)
11791 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11792 allow_undefined_flag=unsupported
11793 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11794 # support --undefined. This deserves some investigation. FIXME
11795 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11796 else
11797 ld_shlibs=no
11801 cygwin* | mingw* | pw32* | cegcc*)
11802 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11803 # as there is no search path for DLLs.
11804 hardcode_libdir_flag_spec='-L$libdir'
11805 export_dynamic_flag_spec='$wl--export-all-symbols'
11806 allow_undefined_flag=unsupported
11807 always_export_symbols=no
11808 enable_shared_with_static_runtimes=yes
11809 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'
11810 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11812 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11814 # If the export-symbols file already is a .def file, use it as
11815 # is; otherwise, prepend EXPORTS...
11816 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11817 cp $export_symbols $output_objdir/$soname.def;
11818 else
11819 echo EXPORTS > $output_objdir/$soname.def;
11820 cat $export_symbols >> $output_objdir/$soname.def;
11822 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11823 else
11824 ld_shlibs=no
11828 haiku*)
11829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11830 link_all_deplibs=yes
11833 os2*)
11834 hardcode_libdir_flag_spec='-L$libdir'
11835 hardcode_minus_L=yes
11836 allow_undefined_flag=unsupported
11837 shrext_cmds=.dll
11838 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11839 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11840 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11841 $ECHO EXPORTS >> $output_objdir/$libname.def~
11842 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11843 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11844 emximp -o $lib $output_objdir/$libname.def'
11845 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11846 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11847 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11848 $ECHO EXPORTS >> $output_objdir/$libname.def~
11849 prefix_cmds="$SED"~
11850 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11851 prefix_cmds="$prefix_cmds -e 1d";
11853 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11854 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11855 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11856 emximp -o $lib $output_objdir/$libname.def'
11857 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11858 enable_shared_with_static_runtimes=yes
11861 interix[3-9]*)
11862 hardcode_direct=no
11863 hardcode_shlibpath_var=no
11864 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11865 export_dynamic_flag_spec='$wl-E'
11866 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11867 # Instead, shared libraries are loaded at an image base (0x10000000 by
11868 # default) and relocated if they conflict, which is a slow very memory
11869 # consuming and fragmenting process. To avoid this, we pick a random,
11870 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11871 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11872 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11873 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'
11876 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11877 tmp_diet=no
11878 if test linux-dietlibc = "$host_os"; then
11879 case $cc_basename in
11880 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11881 esac
11883 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11884 && test no = "$tmp_diet"
11885 then
11886 tmp_addflag=' $pic_flag'
11887 tmp_sharedflag='-shared'
11888 case $cc_basename,$host_cpu in
11889 pgcc*) # Portland Group C compiler
11890 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'
11891 tmp_addflag=' $pic_flag'
11893 pgf77* | pgf90* | pgf95* | pgfortran*)
11894 # Portland Group f77 and f90 compilers
11895 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'
11896 tmp_addflag=' $pic_flag -Mnomain' ;;
11897 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11898 tmp_addflag=' -i_dynamic' ;;
11899 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11900 tmp_addflag=' -i_dynamic -nofor_main' ;;
11901 ifc* | ifort*) # Intel Fortran compiler
11902 tmp_addflag=' -nofor_main' ;;
11903 lf95*) # Lahey Fortran 8.1
11904 whole_archive_flag_spec=
11905 tmp_sharedflag='--shared' ;;
11906 nagfor*) # NAGFOR 5.3
11907 tmp_sharedflag='-Wl,-shared' ;;
11908 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11909 tmp_sharedflag='-qmkshrobj'
11910 tmp_addflag= ;;
11911 nvcc*) # Cuda Compiler Driver 2.2
11912 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'
11913 compiler_needs_object=yes
11915 esac
11916 case `$CC -V 2>&1 | sed 5q` in
11917 *Sun\ C*) # Sun C 5.9
11918 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'
11919 compiler_needs_object=yes
11920 tmp_sharedflag='-G' ;;
11921 *Sun\ F*) # Sun Fortran 8.3
11922 tmp_sharedflag='-G' ;;
11923 esac
11924 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11926 if test yes = "$supports_anon_versioning"; then
11927 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11928 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11929 echo "local: *; };" >> $output_objdir/$libname.ver~
11930 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11933 case $cc_basename in
11934 tcc*)
11935 export_dynamic_flag_spec='-rdynamic'
11937 xlf* | bgf* | bgxlf* | mpixlf*)
11938 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11939 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11940 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11941 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11942 if test yes = "$supports_anon_versioning"; then
11943 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11945 echo "local: *; };" >> $output_objdir/$libname.ver~
11946 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11949 esac
11950 else
11951 ld_shlibs=no
11955 netbsd*)
11956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11957 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11958 wlarc=
11959 else
11960 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11961 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11965 solaris*)
11966 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11967 ld_shlibs=no
11968 cat <<_LT_EOF 1>&2
11970 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11971 *** create shared libraries on Solaris systems. Therefore, libtool
11972 *** is disabling shared libraries support. We urge you to upgrade GNU
11973 *** binutils to release 2.9.1 or newer. Another option is to modify
11974 *** your PATH or compiler configuration so that the native linker is
11975 *** used, and then restart.
11977 _LT_EOF
11978 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11979 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11980 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11981 else
11982 ld_shlibs=no
11986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11987 case `$LD -v 2>&1` in
11988 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11989 ld_shlibs=no
11990 cat <<_LT_EOF 1>&2
11992 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11993 *** reliably create shared libraries on SCO systems. Therefore, libtool
11994 *** is disabling shared libraries support. We urge you to upgrade GNU
11995 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11996 *** your PATH or compiler configuration so that the native linker is
11997 *** used, and then restart.
11999 _LT_EOF
12002 # For security reasons, it is highly recommended that you always
12003 # use absolute paths for naming shared libraries, and exclude the
12004 # DT_RUNPATH tag from executables and libraries. But doing so
12005 # requires that you compile everything twice, which is a pain.
12006 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12007 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12010 else
12011 ld_shlibs=no
12014 esac
12017 sunos4*)
12018 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12019 wlarc=
12020 hardcode_direct=yes
12021 hardcode_shlibpath_var=no
12025 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12026 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12027 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12028 else
12029 ld_shlibs=no
12032 esac
12034 if test no = "$ld_shlibs"; then
12035 runpath_var=
12036 hardcode_libdir_flag_spec=
12037 export_dynamic_flag_spec=
12038 whole_archive_flag_spec=
12040 else
12041 # PORTME fill in a description of your system's linker (not GNU ld)
12042 case $host_os in
12043 aix3*)
12044 allow_undefined_flag=unsupported
12045 always_export_symbols=yes
12046 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'
12047 # Note: this linker hardcodes the directories in LIBPATH if there
12048 # are no directories specified by -L.
12049 hardcode_minus_L=yes
12050 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12051 # Neither direct hardcoding nor static linking is supported with a
12052 # broken collect2.
12053 hardcode_direct=unsupported
12057 aix[4-9]*)
12058 if test ia64 = "$host_cpu"; then
12059 # On IA64, the linker does run time linking by default, so we don't
12060 # have to do anything special.
12061 aix_use_runtimelinking=no
12062 exp_sym_flag='-Bexport'
12063 no_entry_flag=
12064 else
12065 # If we're using GNU nm, then we don't want the "-C" option.
12066 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12067 # Without the "-l" option, or with the "-B" option, AIX nm treats
12068 # weak defined symbols like other global defined symbols, whereas
12069 # GNU nm marks them as "W".
12070 # While the 'weak' keyword is ignored in the Export File, we need
12071 # it in the Import File for the 'aix-soname' feature, so we have
12072 # to replace the "-B" option with "-P" for AIX nm.
12073 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12074 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12075 else
12076 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12078 aix_use_runtimelinking=no
12080 # Test if we are trying to use run time linking or normal
12081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12082 # have runtime linking enabled, and use it for executables.
12083 # For shared libraries, we enable/disable runtime linking
12084 # depending on the kind of the shared library created -
12085 # when "with_aix_soname,aix_use_runtimelinking" is:
12086 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12087 # "aix,yes" lib.so shared, rtl:yes, for executables
12088 # lib.a static archive
12089 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12090 # lib.a(lib.so.V) shared, rtl:no, for executables
12091 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12092 # lib.a(lib.so.V) shared, rtl:no
12093 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12094 # lib.a static archive
12095 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12096 for ld_flag in $LDFLAGS; do
12097 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12098 aix_use_runtimelinking=yes
12099 break
12101 done
12102 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12103 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12104 # so we don't have lib.a shared libs to link our executables.
12105 # We have to force runtime linking in this case.
12106 aix_use_runtimelinking=yes
12107 LDFLAGS="$LDFLAGS -Wl,-brtl"
12110 esac
12112 exp_sym_flag='-bexport'
12113 no_entry_flag='-bnoentry'
12116 # When large executables or shared objects are built, AIX ld can
12117 # have problems creating the table of contents. If linking a library
12118 # or program results in "error TOC overflow" add -mminimal-toc to
12119 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12120 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12122 archive_cmds=''
12123 hardcode_direct=yes
12124 hardcode_direct_absolute=yes
12125 hardcode_libdir_separator=':'
12126 link_all_deplibs=yes
12127 file_list_spec='$wl-f,'
12128 case $with_aix_soname,$aix_use_runtimelinking in
12129 aix,*) ;; # traditional, no import file
12130 svr4,* | *,yes) # use import file
12131 # The Import File defines what to hardcode.
12132 hardcode_direct=no
12133 hardcode_direct_absolute=no
12135 esac
12137 if test yes = "$GCC"; then
12138 case $host_os in aix4.[012]|aix4.[012].*)
12139 # We only want to do this on AIX 4.2 and lower, the check
12140 # below for broken collect2 doesn't work under 4.3+
12141 collect2name=`$CC -print-prog-name=collect2`
12142 if test -f "$collect2name" &&
12143 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12144 then
12145 # We have reworked collect2
12147 else
12148 # We have old collect2
12149 hardcode_direct=unsupported
12150 # It fails to find uninstalled libraries when the uninstalled
12151 # path is not listed in the libpath. Setting hardcode_minus_L
12152 # to unsupported forces relinking
12153 hardcode_minus_L=yes
12154 hardcode_libdir_flag_spec='-L$libdir'
12155 hardcode_libdir_separator=
12158 esac
12159 shared_flag='-shared'
12160 if test yes = "$aix_use_runtimelinking"; then
12161 shared_flag="$shared_flag "'$wl-G'
12163 # Need to ensure runtime linking is disabled for the traditional
12164 # shared library, or the linker may eventually find shared libraries
12165 # /with/ Import File - we do not want to mix them.
12166 shared_flag_aix='-shared'
12167 shared_flag_svr4='-shared $wl-G'
12168 else
12169 # not using gcc
12170 if test ia64 = "$host_cpu"; then
12171 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12172 # chokes on -Wl,-G. The following line is correct:
12173 shared_flag='-G'
12174 else
12175 if test yes = "$aix_use_runtimelinking"; then
12176 shared_flag='$wl-G'
12177 else
12178 shared_flag='$wl-bM:SRE'
12180 shared_flag_aix='$wl-bM:SRE'
12181 shared_flag_svr4='$wl-G'
12185 export_dynamic_flag_spec='$wl-bexpall'
12186 # It seems that -bexpall does not export symbols beginning with
12187 # underscore (_), so it is better to generate a list of symbols to export.
12188 always_export_symbols=yes
12189 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12190 # Warning - without using the other runtime loading flags (-brtl),
12191 # -berok will link without error, but may produce a broken library.
12192 allow_undefined_flag='-berok'
12193 # Determine the default libpath from the value encoded in an
12194 # empty executable.
12195 if test set = "${lt_cv_aix_libpath+set}"; then
12196 aix_libpath=$lt_cv_aix_libpath
12197 else
12198 if ${lt_cv_aix_libpath_+:} false; then :
12199 $as_echo_n "(cached) " >&6
12200 else
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12205 main ()
12209 return 0;
12211 _ACEOF
12212 if ac_fn_c_try_link "$LINENO"; then :
12214 lt_aix_libpath_sed='
12215 /Import File Strings/,/^$/ {
12216 /^0/ {
12217 s/^0 *\([^ ]*\) *$/\1/
12221 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12222 # Check for a 64-bit object if we didn't find anything.
12223 if test -z "$lt_cv_aix_libpath_"; then
12224 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12227 rm -f core conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
12229 if test -z "$lt_cv_aix_libpath_"; then
12230 lt_cv_aix_libpath_=/usr/lib:/lib
12235 aix_libpath=$lt_cv_aix_libpath_
12238 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12239 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12240 else
12241 if test ia64 = "$host_cpu"; then
12242 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12243 allow_undefined_flag="-z nodefs"
12244 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"
12245 else
12246 # Determine the default libpath from the value encoded in an
12247 # empty executable.
12248 if test set = "${lt_cv_aix_libpath+set}"; then
12249 aix_libpath=$lt_cv_aix_libpath
12250 else
12251 if ${lt_cv_aix_libpath_+:} false; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12258 main ()
12262 return 0;
12264 _ACEOF
12265 if ac_fn_c_try_link "$LINENO"; then :
12267 lt_aix_libpath_sed='
12268 /Import File Strings/,/^$/ {
12269 /^0/ {
12270 s/^0 *\([^ ]*\) *$/\1/
12274 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12275 # Check for a 64-bit object if we didn't find anything.
12276 if test -z "$lt_cv_aix_libpath_"; then
12277 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12280 rm -f core conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 if test -z "$lt_cv_aix_libpath_"; then
12283 lt_cv_aix_libpath_=/usr/lib:/lib
12288 aix_libpath=$lt_cv_aix_libpath_
12291 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12292 # Warning - without using the other run time loading flags,
12293 # -berok will link without error, but may produce a broken library.
12294 no_undefined_flag=' $wl-bernotok'
12295 allow_undefined_flag=' $wl-berok'
12296 if test yes = "$with_gnu_ld"; then
12297 # We only use this code for GNU lds that support --whole-archive.
12298 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12299 else
12300 # Exported symbols can be pulled into shared objects from archives
12301 whole_archive_flag_spec='$convenience'
12303 archive_cmds_need_lc=yes
12304 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12305 # -brtl affects multiple linker settings, -berok does not and is overridden later
12306 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12307 if test svr4 != "$with_aix_soname"; then
12308 # This is similar to how AIX traditionally builds its shared libraries.
12309 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12311 if test aix != "$with_aix_soname"; then
12312 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12313 else
12314 # used by -dlpreopen to get the symbols
12315 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12317 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12322 amigaos*)
12323 case $host_cpu in
12324 powerpc)
12325 # see comment about AmigaOS4 .so support
12326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12327 archive_expsym_cmds=''
12329 m68k)
12330 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)'
12331 hardcode_libdir_flag_spec='-L$libdir'
12332 hardcode_minus_L=yes
12334 esac
12337 bsdi[45]*)
12338 export_dynamic_flag_spec=-rdynamic
12341 cygwin* | mingw* | pw32* | cegcc*)
12342 # When not using gcc, we currently assume that we are using
12343 # Microsoft Visual C++.
12344 # hardcode_libdir_flag_spec is actually meaningless, as there is
12345 # no search path for DLLs.
12346 case $cc_basename in
12347 cl*)
12348 # Native MSVC
12349 hardcode_libdir_flag_spec=' '
12350 allow_undefined_flag=unsupported
12351 always_export_symbols=yes
12352 file_list_spec='@'
12353 # Tell ltmain to make .lib files, not .a files.
12354 libext=lib
12355 # Tell ltmain to make .dll files, not .so files.
12356 shrext_cmds=.dll
12357 # FIXME: Setting linknames here is a bad hack.
12358 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12359 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12360 cp "$export_symbols" "$output_objdir/$soname.def";
12361 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12362 else
12363 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12365 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12366 linknames='
12367 # The linker will not automatically build a static lib if we build a DLL.
12368 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12369 enable_shared_with_static_runtimes=yes
12370 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12371 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12372 # Don't use ranlib
12373 old_postinstall_cmds='chmod 644 $oldlib'
12374 postlink_cmds='lt_outputfile="@OUTPUT@"~
12375 lt_tool_outputfile="@TOOL_OUTPUT@"~
12376 case $lt_outputfile in
12377 *.exe|*.EXE) ;;
12379 lt_outputfile=$lt_outputfile.exe
12380 lt_tool_outputfile=$lt_tool_outputfile.exe
12382 esac~
12383 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12384 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12385 $RM "$lt_outputfile.manifest";
12389 # Assume MSVC wrapper
12390 hardcode_libdir_flag_spec=' '
12391 allow_undefined_flag=unsupported
12392 # Tell ltmain to make .lib files, not .a files.
12393 libext=lib
12394 # Tell ltmain to make .dll files, not .so files.
12395 shrext_cmds=.dll
12396 # FIXME: Setting linknames here is a bad hack.
12397 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12398 # The linker will automatically build a .lib file if we build a DLL.
12399 old_archive_from_new_cmds='true'
12400 # FIXME: Should let the user specify the lib program.
12401 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12402 enable_shared_with_static_runtimes=yes
12404 esac
12407 darwin* | rhapsody*)
12410 archive_cmds_need_lc=no
12411 hardcode_direct=no
12412 hardcode_automatic=yes
12413 hardcode_shlibpath_var=unsupported
12414 if test yes = "$lt_cv_ld_force_load"; then
12415 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\"`'
12417 else
12418 whole_archive_flag_spec=''
12420 link_all_deplibs=yes
12421 allow_undefined_flag=$_lt_dar_allow_undefined
12422 case $cc_basename in
12423 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12424 *) _lt_dar_can_shared=$GCC ;;
12425 esac
12426 if test yes = "$_lt_dar_can_shared"; then
12427 output_verbose_link_cmd=func_echo_all
12428 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12429 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12430 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"
12431 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"
12433 else
12434 ld_shlibs=no
12439 dgux*)
12440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12441 hardcode_libdir_flag_spec='-L$libdir'
12442 hardcode_shlibpath_var=no
12445 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12446 # support. Future versions do this automatically, but an explicit c++rt0.o
12447 # does not break anything, and helps significantly (at the cost of a little
12448 # extra space).
12449 freebsd2.2*)
12450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12451 hardcode_libdir_flag_spec='-R$libdir'
12452 hardcode_direct=yes
12453 hardcode_shlibpath_var=no
12456 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12457 freebsd2.*)
12458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12459 hardcode_direct=yes
12460 hardcode_minus_L=yes
12461 hardcode_shlibpath_var=no
12464 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12465 freebsd* | dragonfly*)
12466 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12467 hardcode_libdir_flag_spec='-R$libdir'
12468 hardcode_direct=yes
12469 hardcode_shlibpath_var=no
12472 hpux9*)
12473 if test yes = "$GCC"; then
12474 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12475 else
12476 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12478 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12479 hardcode_libdir_separator=:
12480 hardcode_direct=yes
12482 # hardcode_minus_L: Not really in the search PATH,
12483 # but as the default location of the library.
12484 hardcode_minus_L=yes
12485 export_dynamic_flag_spec='$wl-E'
12488 hpux10*)
12489 if test yes,no = "$GCC,$with_gnu_ld"; then
12490 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12491 else
12492 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12494 if test no = "$with_gnu_ld"; then
12495 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12496 hardcode_libdir_separator=:
12497 hardcode_direct=yes
12498 hardcode_direct_absolute=yes
12499 export_dynamic_flag_spec='$wl-E'
12500 # hardcode_minus_L: Not really in the search PATH,
12501 # but as the default location of the library.
12502 hardcode_minus_L=yes
12506 hpux11*)
12507 if test yes,no = "$GCC,$with_gnu_ld"; then
12508 case $host_cpu in
12509 hppa*64*)
12510 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12512 ia64*)
12513 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12516 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12518 esac
12519 else
12520 case $host_cpu in
12521 hppa*64*)
12522 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12524 ia64*)
12525 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12529 # Older versions of the 11.00 compiler do not understand -b yet
12530 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12532 $as_echo_n "checking if $CC understands -b... " >&6; }
12533 if ${lt_cv_prog_compiler__b+:} false; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 lt_cv_prog_compiler__b=no
12537 save_LDFLAGS=$LDFLAGS
12538 LDFLAGS="$LDFLAGS -b"
12539 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12540 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12541 # The linker can only warn and ignore the option if not recognized
12542 # So say no if there are warnings
12543 if test -s conftest.err; then
12544 # Append any errors to the config.log.
12545 cat conftest.err 1>&5
12546 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12548 if diff conftest.exp conftest.er2 >/dev/null; then
12549 lt_cv_prog_compiler__b=yes
12551 else
12552 lt_cv_prog_compiler__b=yes
12555 $RM -r conftest*
12556 LDFLAGS=$save_LDFLAGS
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12560 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12562 if test yes = "$lt_cv_prog_compiler__b"; then
12563 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12564 else
12565 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12569 esac
12571 if test no = "$with_gnu_ld"; then
12572 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12573 hardcode_libdir_separator=:
12575 case $host_cpu in
12576 hppa*64*|ia64*)
12577 hardcode_direct=no
12578 hardcode_shlibpath_var=no
12581 hardcode_direct=yes
12582 hardcode_direct_absolute=yes
12583 export_dynamic_flag_spec='$wl-E'
12585 # hardcode_minus_L: Not really in the search PATH,
12586 # but as the default location of the library.
12587 hardcode_minus_L=yes
12589 esac
12593 irix5* | irix6* | nonstopux*)
12594 if test yes = "$GCC"; then
12595 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'
12596 # Try to use the -exported_symbol ld option, if it does not
12597 # work, assume that -exports_file does not work either and
12598 # implicitly export all symbols.
12599 # This should be the same for all languages, so no per-tag cache variable.
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12601 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12602 if ${lt_cv_irix_exported_symbol+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 save_LDFLAGS=$LDFLAGS
12606 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12609 int foo (void) { return 0; }
12610 _ACEOF
12611 if ac_fn_c_try_link "$LINENO"; then :
12612 lt_cv_irix_exported_symbol=yes
12613 else
12614 lt_cv_irix_exported_symbol=no
12616 rm -f core conftest.err conftest.$ac_objext \
12617 conftest$ac_exeext conftest.$ac_ext
12618 LDFLAGS=$save_LDFLAGS
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12621 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12622 if test yes = "$lt_cv_irix_exported_symbol"; then
12623 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'
12625 else
12626 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'
12627 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'
12629 archive_cmds_need_lc='no'
12630 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12631 hardcode_libdir_separator=:
12632 inherit_rpath=yes
12633 link_all_deplibs=yes
12636 linux*)
12637 case $cc_basename in
12638 tcc*)
12639 # Fabrice Bellard et al's Tiny C Compiler
12640 ld_shlibs=yes
12641 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12643 esac
12646 netbsd*)
12647 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12649 else
12650 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12652 hardcode_libdir_flag_spec='-R$libdir'
12653 hardcode_direct=yes
12654 hardcode_shlibpath_var=no
12657 newsos6)
12658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12659 hardcode_direct=yes
12660 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12661 hardcode_libdir_separator=:
12662 hardcode_shlibpath_var=no
12665 *nto* | *qnx*)
12668 openbsd* | bitrig*)
12669 if test -f /usr/libexec/ld.so; then
12670 hardcode_direct=yes
12671 hardcode_shlibpath_var=no
12672 hardcode_direct_absolute=yes
12673 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12675 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12676 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12677 export_dynamic_flag_spec='$wl-E'
12678 else
12679 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12680 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12682 else
12683 ld_shlibs=no
12687 os2*)
12688 hardcode_libdir_flag_spec='-L$libdir'
12689 hardcode_minus_L=yes
12690 allow_undefined_flag=unsupported
12691 shrext_cmds=.dll
12692 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12693 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12694 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12695 $ECHO EXPORTS >> $output_objdir/$libname.def~
12696 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12697 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12698 emximp -o $lib $output_objdir/$libname.def'
12699 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12700 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12701 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12702 $ECHO EXPORTS >> $output_objdir/$libname.def~
12703 prefix_cmds="$SED"~
12704 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12705 prefix_cmds="$prefix_cmds -e 1d";
12707 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12708 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12709 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12710 emximp -o $lib $output_objdir/$libname.def'
12711 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12712 enable_shared_with_static_runtimes=yes
12715 osf3*)
12716 if test yes = "$GCC"; then
12717 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12718 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'
12719 else
12720 allow_undefined_flag=' -expect_unresolved \*'
12721 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'
12723 archive_cmds_need_lc='no'
12724 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12725 hardcode_libdir_separator=:
12728 osf4* | osf5*) # as osf3* with the addition of -msym flag
12729 if test yes = "$GCC"; then
12730 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12731 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'
12732 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12733 else
12734 allow_undefined_flag=' -expect_unresolved \*'
12735 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'
12736 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~
12737 $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'
12739 # Both c and cxx compiler support -rpath directly
12740 hardcode_libdir_flag_spec='-rpath $libdir'
12742 archive_cmds_need_lc='no'
12743 hardcode_libdir_separator=:
12746 solaris*)
12747 no_undefined_flag=' -z defs'
12748 if test yes = "$GCC"; then
12749 wlarc='$wl'
12750 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12751 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12752 $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'
12753 else
12754 case `$CC -V 2>&1` in
12755 *"Compilers 5.0"*)
12756 wlarc=''
12757 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12758 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12759 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12762 wlarc='$wl'
12763 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12764 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12765 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12767 esac
12769 hardcode_libdir_flag_spec='-R$libdir'
12770 hardcode_shlibpath_var=no
12771 case $host_os in
12772 solaris2.[0-5] | solaris2.[0-5].*) ;;
12774 # The compiler driver will combine and reorder linker options,
12775 # but understands '-z linker_flag'. GCC discards it without '$wl',
12776 # but is careful enough not to reorder.
12777 # Supported since Solaris 2.6 (maybe 2.5.1?)
12778 if test yes = "$GCC"; then
12779 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12780 else
12781 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12784 esac
12785 link_all_deplibs=yes
12788 sunos4*)
12789 if test sequent = "$host_vendor"; then
12790 # Use $CC to link under sequent, because it throws in some extra .o
12791 # files that make .init and .fini sections work.
12792 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12793 else
12794 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12796 hardcode_libdir_flag_spec='-L$libdir'
12797 hardcode_direct=yes
12798 hardcode_minus_L=yes
12799 hardcode_shlibpath_var=no
12802 sysv4)
12803 case $host_vendor in
12804 sni)
12805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12806 hardcode_direct=yes # is this really true???
12808 siemens)
12809 ## LD is ld it makes a PLAMLIB
12810 ## CC just makes a GrossModule.
12811 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12812 reload_cmds='$CC -r -o $output$reload_objs'
12813 hardcode_direct=no
12815 motorola)
12816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12817 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12819 esac
12820 runpath_var='LD_RUN_PATH'
12821 hardcode_shlibpath_var=no
12824 sysv4.3*)
12825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12826 hardcode_shlibpath_var=no
12827 export_dynamic_flag_spec='-Bexport'
12830 sysv4*MP*)
12831 if test -d /usr/nec; then
12832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12833 hardcode_shlibpath_var=no
12834 runpath_var=LD_RUN_PATH
12835 hardcode_runpath_var=yes
12836 ld_shlibs=yes
12840 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12841 no_undefined_flag='$wl-z,text'
12842 archive_cmds_need_lc=no
12843 hardcode_shlibpath_var=no
12844 runpath_var='LD_RUN_PATH'
12846 if test yes = "$GCC"; then
12847 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12848 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12849 else
12850 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12851 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12855 sysv5* | sco3.2v5* | sco5v6*)
12856 # Note: We CANNOT use -z defs as we might desire, because we do not
12857 # link with -lc, and that would cause any symbols used from libc to
12858 # always be unresolved, which means just about no library would
12859 # ever link correctly. If we're not using GNU ld we use -z text
12860 # though, which does catch some bad symbols but isn't as heavy-handed
12861 # as -z defs.
12862 no_undefined_flag='$wl-z,text'
12863 allow_undefined_flag='$wl-z,nodefs'
12864 archive_cmds_need_lc=no
12865 hardcode_shlibpath_var=no
12866 hardcode_libdir_flag_spec='$wl-R,$libdir'
12867 hardcode_libdir_separator=':'
12868 link_all_deplibs=yes
12869 export_dynamic_flag_spec='$wl-Bexport'
12870 runpath_var='LD_RUN_PATH'
12872 if test yes = "$GCC"; then
12873 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12874 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12875 else
12876 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12877 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12881 uts4*)
12882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12883 hardcode_libdir_flag_spec='-L$libdir'
12884 hardcode_shlibpath_var=no
12888 ld_shlibs=no
12890 esac
12892 if test sni = "$host_vendor"; then
12893 case $host in
12894 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12895 export_dynamic_flag_spec='$wl-Blargedynsym'
12897 esac
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12902 $as_echo "$ld_shlibs" >&6; }
12903 test no = "$ld_shlibs" && can_build_shared=no
12905 with_gnu_ld=$with_gnu_ld
12922 # Do we need to explicitly link libc?
12924 case "x$archive_cmds_need_lc" in
12925 x|xyes)
12926 # Assume -lc should be added
12927 archive_cmds_need_lc=yes
12929 if test yes,yes = "$GCC,$enable_shared"; then
12930 case $archive_cmds in
12931 *'~'*)
12932 # FIXME: we may have to deal with multi-command sequences.
12934 '$CC '*)
12935 # Test whether the compiler implicitly links with -lc since on some
12936 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12937 # to ld, don't add -lc before -lgcc.
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12939 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12940 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12941 $as_echo_n "(cached) " >&6
12942 else
12943 $RM conftest*
12944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12947 (eval $ac_compile) 2>&5
12948 ac_status=$?
12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950 test $ac_status = 0; } 2>conftest.err; then
12951 soname=conftest
12952 lib=conftest
12953 libobjs=conftest.$ac_objext
12954 deplibs=
12955 wl=$lt_prog_compiler_wl
12956 pic_flag=$lt_prog_compiler_pic
12957 compiler_flags=-v
12958 linker_flags=-v
12959 verstring=
12960 output_objdir=.
12961 libname=conftest
12962 lt_save_allow_undefined_flag=$allow_undefined_flag
12963 allow_undefined_flag=
12964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12965 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12966 ac_status=$?
12967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12968 test $ac_status = 0; }
12969 then
12970 lt_cv_archive_cmds_need_lc=no
12971 else
12972 lt_cv_archive_cmds_need_lc=yes
12974 allow_undefined_flag=$lt_save_allow_undefined_flag
12975 else
12976 cat conftest.err 1>&5
12978 $RM conftest*
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12982 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12983 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12985 esac
12988 esac
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13142 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13144 if test yes = "$GCC"; then
13145 case $host_os in
13146 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13147 *) lt_awk_arg='/^libraries:/' ;;
13148 esac
13149 case $host_os in
13150 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13151 *) lt_sed_strip_eq='s|=/|/|g' ;;
13152 esac
13153 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13154 case $lt_search_path_spec in
13155 *\;*)
13156 # if the path contains ";" then we assume it to be the separator
13157 # otherwise default to the standard path separator (i.e. ":") - it is
13158 # assumed that no part of a normal pathname contains ";" but that should
13159 # okay in the real world where ";" in dirpaths is itself problematic.
13160 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13163 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13165 esac
13166 # Ok, now we have the path, separated by spaces, we can step through it
13167 # and add multilib dir if necessary...
13168 lt_tmp_lt_search_path_spec=
13169 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13170 # ...but if some path component already ends with the multilib dir we assume
13171 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13172 case "$lt_multi_os_dir; $lt_search_path_spec " in
13173 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13174 lt_multi_os_dir=
13176 esac
13177 for lt_sys_path in $lt_search_path_spec; do
13178 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13179 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13180 elif test -n "$lt_multi_os_dir"; then
13181 test -d "$lt_sys_path" && \
13182 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13184 done
13185 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13186 BEGIN {RS = " "; FS = "/|\n";} {
13187 lt_foo = "";
13188 lt_count = 0;
13189 for (lt_i = NF; lt_i > 0; lt_i--) {
13190 if ($lt_i != "" && $lt_i != ".") {
13191 if ($lt_i == "..") {
13192 lt_count++;
13193 } else {
13194 if (lt_count == 0) {
13195 lt_foo = "/" $lt_i lt_foo;
13196 } else {
13197 lt_count--;
13202 if (lt_foo != "") { lt_freq[lt_foo]++; }
13203 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13205 # AWK program above erroneously prepends '/' to C:/dos/paths
13206 # for these hosts.
13207 case $host_os in
13208 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13209 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13210 esac
13211 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13212 else
13213 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13215 library_names_spec=
13216 libname_spec='lib$name'
13217 soname_spec=
13218 shrext_cmds=.so
13219 postinstall_cmds=
13220 postuninstall_cmds=
13221 finish_cmds=
13222 finish_eval=
13223 shlibpath_var=
13224 shlibpath_overrides_runpath=unknown
13225 version_type=none
13226 dynamic_linker="$host_os ld.so"
13227 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13228 need_lib_prefix=unknown
13229 hardcode_into_libs=no
13231 # when you set need_version to no, make sure it does not cause -set_version
13232 # flags to be left without arguments
13233 need_version=unknown
13237 case $host_os in
13238 aix3*)
13239 version_type=linux # correct to gnu/linux during the next big refactor
13240 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13241 shlibpath_var=LIBPATH
13243 # AIX 3 has no versioning support, so we append a major version to the name.
13244 soname_spec='$libname$release$shared_ext$major'
13247 aix[4-9]*)
13248 version_type=linux # correct to gnu/linux during the next big refactor
13249 need_lib_prefix=no
13250 need_version=no
13251 hardcode_into_libs=yes
13252 if test ia64 = "$host_cpu"; then
13253 # AIX 5 supports IA64
13254 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13255 shlibpath_var=LD_LIBRARY_PATH
13256 else
13257 # With GCC up to 2.95.x, collect2 would create an import file
13258 # for dependence libraries. The import file would start with
13259 # the line '#! .'. This would cause the generated library to
13260 # depend on '.', always an invalid library. This was fixed in
13261 # development snapshots of GCC prior to 3.0.
13262 case $host_os in
13263 aix4 | aix4.[01] | aix4.[01].*)
13264 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13265 echo ' yes '
13266 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13268 else
13269 can_build_shared=no
13272 esac
13273 # Using Import Files as archive members, it is possible to support
13274 # filename-based versioning of shared library archives on AIX. While
13275 # this would work for both with and without runtime linking, it will
13276 # prevent static linking of such archives. So we do filename-based
13277 # shared library versioning with .so extension only, which is used
13278 # when both runtime linking and shared linking is enabled.
13279 # Unfortunately, runtime linking may impact performance, so we do
13280 # not want this to be the default eventually. Also, we use the
13281 # versioned .so libs for executables only if there is the -brtl
13282 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13283 # To allow for filename-based versioning support, we need to create
13284 # libNAME.so.V as an archive file, containing:
13285 # *) an Import File, referring to the versioned filename of the
13286 # archive as well as the shared archive member, telling the
13287 # bitwidth (32 or 64) of that shared object, and providing the
13288 # list of exported symbols of that shared object, eventually
13289 # decorated with the 'weak' keyword
13290 # *) the shared object with the F_LOADONLY flag set, to really avoid
13291 # it being seen by the linker.
13292 # At run time we better use the real file rather than another symlink,
13293 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13295 case $with_aix_soname,$aix_use_runtimelinking in
13296 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13297 # soname into executable. Probably we can add versioning support to
13298 # collect2, so additional links can be useful in future.
13299 aix,yes) # traditional libtool
13300 dynamic_linker='AIX unversionable lib.so'
13301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13302 # instead of lib<name>.a to let people know that these are not
13303 # typical AIX shared libraries.
13304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13306 aix,no) # traditional AIX only
13307 dynamic_linker='AIX lib.a(lib.so.V)'
13308 # We preserve .a as extension for shared libraries through AIX4.2
13309 # and later when we are not doing run time linking.
13310 library_names_spec='$libname$release.a $libname.a'
13311 soname_spec='$libname$release$shared_ext$major'
13313 svr4,*) # full svr4 only
13314 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13315 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13316 # We do not specify a path in Import Files, so LIBPATH fires.
13317 shlibpath_overrides_runpath=yes
13319 *,yes) # both, prefer svr4
13320 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13321 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13322 # unpreferred sharedlib libNAME.a needs extra handling
13323 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13324 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13325 # We do not specify a path in Import Files, so LIBPATH fires.
13326 shlibpath_overrides_runpath=yes
13328 *,no) # both, prefer aix
13329 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13330 library_names_spec='$libname$release.a $libname.a'
13331 soname_spec='$libname$release$shared_ext$major'
13332 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13333 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13334 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13336 esac
13337 shlibpath_var=LIBPATH
13341 amigaos*)
13342 case $host_cpu in
13343 powerpc)
13344 # Since July 2007 AmigaOS4 officially supports .so libraries.
13345 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13348 m68k)
13349 library_names_spec='$libname.ixlibrary $libname.a'
13350 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13351 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13353 esac
13356 beos*)
13357 library_names_spec='$libname$shared_ext'
13358 dynamic_linker="$host_os ld.so"
13359 shlibpath_var=LIBRARY_PATH
13362 bsdi[45]*)
13363 version_type=linux # correct to gnu/linux during the next big refactor
13364 need_version=no
13365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13366 soname_spec='$libname$release$shared_ext$major'
13367 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13368 shlibpath_var=LD_LIBRARY_PATH
13369 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13370 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13371 # the default ld.so.conf also contains /usr/contrib/lib and
13372 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13373 # libtool to hard-code these into programs
13376 cygwin* | mingw* | pw32* | cegcc*)
13377 version_type=windows
13378 shrext_cmds=.dll
13379 need_version=no
13380 need_lib_prefix=no
13382 case $GCC,$cc_basename in
13383 yes,*)
13384 # gcc
13385 library_names_spec='$libname.dll.a'
13386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13387 postinstall_cmds='base_file=`basename \$file`~
13388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13389 dldir=$destdir/`dirname \$dlpath`~
13390 test -d \$dldir || mkdir -p \$dldir~
13391 $install_prog $dir/$dlname \$dldir/$dlname~
13392 chmod a+x \$dldir/$dlname~
13393 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13394 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13396 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13397 dlpath=$dir/\$dldll~
13398 $RM \$dlpath'
13399 shlibpath_overrides_runpath=yes
13401 case $host_os in
13402 cygwin*)
13403 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13404 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13406 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13408 mingw* | cegcc*)
13409 # MinGW DLLs use traditional 'lib' prefix
13410 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13412 pw32*)
13413 # pw32 DLLs use 'pw' prefix rather than 'lib'
13414 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13416 esac
13417 dynamic_linker='Win32 ld.exe'
13420 *,cl*)
13421 # Native MSVC
13422 libname_spec='$name'
13423 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13424 library_names_spec='$libname.dll.lib'
13426 case $build_os in
13427 mingw*)
13428 sys_lib_search_path_spec=
13429 lt_save_ifs=$IFS
13430 IFS=';'
13431 for lt_path in $LIB
13433 IFS=$lt_save_ifs
13434 # Let DOS variable expansion print the short 8.3 style file name.
13435 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13436 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13437 done
13438 IFS=$lt_save_ifs
13439 # Convert to MSYS style.
13440 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13442 cygwin*)
13443 # Convert to unix form, then to dos form, then back to unix form
13444 # but this time dos style (no spaces!) so that the unix form looks
13445 # like /cygdrive/c/PROGRA~1:/cygdr...
13446 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13447 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13448 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13451 sys_lib_search_path_spec=$LIB
13452 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13453 # It is most probably a Windows format PATH.
13454 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13455 else
13456 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13458 # FIXME: find the short name or the path components, as spaces are
13459 # common. (e.g. "Program Files" -> "PROGRA~1")
13461 esac
13463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13464 postinstall_cmds='base_file=`basename \$file`~
13465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13466 dldir=$destdir/`dirname \$dlpath`~
13467 test -d \$dldir || mkdir -p \$dldir~
13468 $install_prog $dir/$dlname \$dldir/$dlname'
13469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13470 dlpath=$dir/\$dldll~
13471 $RM \$dlpath'
13472 shlibpath_overrides_runpath=yes
13473 dynamic_linker='Win32 link.exe'
13477 # Assume MSVC wrapper
13478 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13479 dynamic_linker='Win32 ld.exe'
13481 esac
13482 # FIXME: first we should search . and the directory the executable is in
13483 shlibpath_var=PATH
13486 darwin* | rhapsody*)
13487 dynamic_linker="$host_os dyld"
13488 version_type=darwin
13489 need_lib_prefix=no
13490 need_version=no
13491 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13492 soname_spec='$libname$release$major$shared_ext'
13493 shlibpath_overrides_runpath=yes
13494 shlibpath_var=DYLD_LIBRARY_PATH
13495 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13497 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13498 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13501 dgux*)
13502 version_type=linux # correct to gnu/linux during the next big refactor
13503 need_lib_prefix=no
13504 need_version=no
13505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13506 soname_spec='$libname$release$shared_ext$major'
13507 shlibpath_var=LD_LIBRARY_PATH
13510 freebsd* | dragonfly*)
13511 # DragonFly does not have aout. When/if they implement a new
13512 # versioning mechanism, adjust this.
13513 if test -x /usr/bin/objformat; then
13514 objformat=`/usr/bin/objformat`
13515 else
13516 case $host_os in
13517 freebsd[23].*) objformat=aout ;;
13518 *) objformat=elf ;;
13519 esac
13521 version_type=freebsd-$objformat
13522 case $version_type in
13523 freebsd-elf*)
13524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13525 soname_spec='$libname$release$shared_ext$major'
13526 need_version=no
13527 need_lib_prefix=no
13529 freebsd-*)
13530 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13531 need_version=yes
13533 esac
13534 shlibpath_var=LD_LIBRARY_PATH
13535 case $host_os in
13536 freebsd2.*)
13537 shlibpath_overrides_runpath=yes
13539 freebsd3.[01]* | freebsdelf3.[01]*)
13540 shlibpath_overrides_runpath=yes
13541 hardcode_into_libs=yes
13543 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13544 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13545 shlibpath_overrides_runpath=no
13546 hardcode_into_libs=yes
13548 *) # from 4.6 on, and DragonFly
13549 shlibpath_overrides_runpath=yes
13550 hardcode_into_libs=yes
13552 esac
13555 haiku*)
13556 version_type=linux # correct to gnu/linux during the next big refactor
13557 need_lib_prefix=no
13558 need_version=no
13559 dynamic_linker="$host_os runtime_loader"
13560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13561 soname_spec='$libname$release$shared_ext$major'
13562 shlibpath_var=LIBRARY_PATH
13563 shlibpath_overrides_runpath=no
13564 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13565 hardcode_into_libs=yes
13568 hpux9* | hpux10* | hpux11*)
13569 # Give a soname corresponding to the major version so that dld.sl refuses to
13570 # link against other versions.
13571 version_type=sunos
13572 need_lib_prefix=no
13573 need_version=no
13574 case $host_cpu in
13575 ia64*)
13576 shrext_cmds='.so'
13577 hardcode_into_libs=yes
13578 dynamic_linker="$host_os dld.so"
13579 shlibpath_var=LD_LIBRARY_PATH
13580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13582 soname_spec='$libname$release$shared_ext$major'
13583 if test 32 = "$HPUX_IA64_MODE"; then
13584 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13585 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13586 else
13587 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13588 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13591 hppa*64*)
13592 shrext_cmds='.sl'
13593 hardcode_into_libs=yes
13594 dynamic_linker="$host_os dld.sl"
13595 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13598 soname_spec='$libname$release$shared_ext$major'
13599 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13603 shrext_cmds='.sl'
13604 dynamic_linker="$host_os dld.sl"
13605 shlibpath_var=SHLIB_PATH
13606 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13608 soname_spec='$libname$release$shared_ext$major'
13610 esac
13611 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13612 postinstall_cmds='chmod 555 $lib'
13613 # or fails outright, so override atomically:
13614 install_override_mode=555
13617 interix[3-9]*)
13618 version_type=linux # correct to gnu/linux during the next big refactor
13619 need_lib_prefix=no
13620 need_version=no
13621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13622 soname_spec='$libname$release$shared_ext$major'
13623 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13624 shlibpath_var=LD_LIBRARY_PATH
13625 shlibpath_overrides_runpath=no
13626 hardcode_into_libs=yes
13629 irix5* | irix6* | nonstopux*)
13630 case $host_os in
13631 nonstopux*) version_type=nonstopux ;;
13633 if test yes = "$lt_cv_prog_gnu_ld"; then
13634 version_type=linux # correct to gnu/linux during the next big refactor
13635 else
13636 version_type=irix
13637 fi ;;
13638 esac
13639 need_lib_prefix=no
13640 need_version=no
13641 soname_spec='$libname$release$shared_ext$major'
13642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13643 case $host_os in
13644 irix5* | nonstopux*)
13645 libsuff= shlibsuff=
13648 case $LD in # libtool.m4 will add one of these switches to LD
13649 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13650 libsuff= shlibsuff= libmagic=32-bit;;
13651 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13652 libsuff=32 shlibsuff=N32 libmagic=N32;;
13653 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13654 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13655 *) libsuff= shlibsuff= libmagic=never-match;;
13656 esac
13658 esac
13659 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13660 shlibpath_overrides_runpath=no
13661 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13662 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13663 hardcode_into_libs=yes
13666 # No shared lib support for Linux oldld, aout, or coff.
13667 linux*oldld* | linux*aout* | linux*coff*)
13668 dynamic_linker=no
13671 linux*android*)
13672 version_type=none # Android doesn't support versioned libraries.
13673 need_lib_prefix=no
13674 need_version=no
13675 library_names_spec='$libname$release$shared_ext'
13676 soname_spec='$libname$release$shared_ext'
13677 finish_cmds=
13678 shlibpath_var=LD_LIBRARY_PATH
13679 shlibpath_overrides_runpath=yes
13681 # This implies no fast_install, which is unacceptable.
13682 # Some rework will be needed to allow for fast_install
13683 # before this can be enabled.
13684 hardcode_into_libs=yes
13686 dynamic_linker='Android linker'
13687 # Don't embed -rpath directories since the linker doesn't support them.
13688 hardcode_libdir_flag_spec='-L$libdir'
13691 # This must be glibc/ELF.
13692 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13693 version_type=linux # correct to gnu/linux during the next big refactor
13694 need_lib_prefix=no
13695 need_version=no
13696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13697 soname_spec='$libname$release$shared_ext$major'
13698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13699 shlibpath_var=LD_LIBRARY_PATH
13700 shlibpath_overrides_runpath=no
13702 # Some binutils ld are patched to set DT_RUNPATH
13703 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13704 $as_echo_n "(cached) " >&6
13705 else
13706 lt_cv_shlibpath_overrides_runpath=no
13707 save_LDFLAGS=$LDFLAGS
13708 save_libdir=$libdir
13709 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13710 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13715 main ()
13719 return 0;
13721 _ACEOF
13722 if ac_fn_c_try_link "$LINENO"; then :
13723 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13724 lt_cv_shlibpath_overrides_runpath=yes
13727 rm -f core conftest.err conftest.$ac_objext \
13728 conftest$ac_exeext conftest.$ac_ext
13729 LDFLAGS=$save_LDFLAGS
13730 libdir=$save_libdir
13734 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13736 # This implies no fast_install, which is unacceptable.
13737 # Some rework will be needed to allow for fast_install
13738 # before this can be enabled.
13739 hardcode_into_libs=yes
13741 # Ideally, we could use ldconfig to report *all* directores which are
13742 # searched for libraries, however this is still not possible. Aside from not
13743 # being certain /sbin/ldconfig is available, command
13744 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13745 # even though it is searched at run-time. Try to do the best guess by
13746 # appending ld.so.conf contents (and includes) to the search path.
13747 if test -f /etc/ld.so.conf; then
13748 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' ' '`
13749 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13752 # We used to test for /lib/ld.so.1 and disable shared libraries on
13753 # powerpc, because MkLinux only supported shared libraries with the
13754 # GNU dynamic linker. Since this was broken with cross compilers,
13755 # most powerpc-linux boxes support dynamic linking these days and
13756 # people can always --disable-shared, the test was removed, and we
13757 # assume the GNU/Linux dynamic linker is in use.
13758 dynamic_linker='GNU/Linux ld.so'
13761 netbsd*)
13762 version_type=sunos
13763 need_lib_prefix=no
13764 need_version=no
13765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13766 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13768 dynamic_linker='NetBSD (a.out) ld.so'
13769 else
13770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13771 soname_spec='$libname$release$shared_ext$major'
13772 dynamic_linker='NetBSD ld.elf_so'
13774 shlibpath_var=LD_LIBRARY_PATH
13775 shlibpath_overrides_runpath=yes
13776 hardcode_into_libs=yes
13779 newsos6)
13780 version_type=linux # correct to gnu/linux during the next big refactor
13781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13782 shlibpath_var=LD_LIBRARY_PATH
13783 shlibpath_overrides_runpath=yes
13786 *nto* | *qnx*)
13787 version_type=qnx
13788 need_lib_prefix=no
13789 need_version=no
13790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13791 soname_spec='$libname$release$shared_ext$major'
13792 shlibpath_var=LD_LIBRARY_PATH
13793 shlibpath_overrides_runpath=no
13794 hardcode_into_libs=yes
13795 dynamic_linker='ldqnx.so'
13798 openbsd* | bitrig*)
13799 version_type=sunos
13800 sys_lib_dlsearch_path_spec=/usr/lib
13801 need_lib_prefix=no
13802 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13803 need_version=no
13804 else
13805 need_version=yes
13807 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13809 shlibpath_var=LD_LIBRARY_PATH
13810 shlibpath_overrides_runpath=yes
13813 os2*)
13814 libname_spec='$name'
13815 version_type=windows
13816 shrext_cmds=.dll
13817 need_version=no
13818 need_lib_prefix=no
13819 # OS/2 can only load a DLL with a base name of 8 characters or less.
13820 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13821 v=$($ECHO $release$versuffix | tr -d .-);
13822 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13823 $ECHO $n$v`$shared_ext'
13824 library_names_spec='${libname}_dll.$libext'
13825 dynamic_linker='OS/2 ld.exe'
13826 shlibpath_var=BEGINLIBPATH
13827 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13829 postinstall_cmds='base_file=`basename \$file`~
13830 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13831 dldir=$destdir/`dirname \$dlpath`~
13832 test -d \$dldir || mkdir -p \$dldir~
13833 $install_prog $dir/$dlname \$dldir/$dlname~
13834 chmod a+x \$dldir/$dlname~
13835 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13836 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13839 dlpath=$dir/\$dldll~
13840 $RM \$dlpath'
13843 osf3* | osf4* | osf5*)
13844 version_type=osf
13845 need_lib_prefix=no
13846 need_version=no
13847 soname_spec='$libname$release$shared_ext$major'
13848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13849 shlibpath_var=LD_LIBRARY_PATH
13850 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13854 rdos*)
13855 dynamic_linker=no
13858 solaris*)
13859 version_type=linux # correct to gnu/linux during the next big refactor
13860 need_lib_prefix=no
13861 need_version=no
13862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13863 soname_spec='$libname$release$shared_ext$major'
13864 shlibpath_var=LD_LIBRARY_PATH
13865 shlibpath_overrides_runpath=yes
13866 hardcode_into_libs=yes
13867 # ldd complains unless libraries are executable
13868 postinstall_cmds='chmod +x $lib'
13871 sunos4*)
13872 version_type=sunos
13873 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13874 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13875 shlibpath_var=LD_LIBRARY_PATH
13876 shlibpath_overrides_runpath=yes
13877 if test yes = "$with_gnu_ld"; then
13878 need_lib_prefix=no
13880 need_version=yes
13883 sysv4 | sysv4.3*)
13884 version_type=linux # correct to gnu/linux during the next big refactor
13885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13886 soname_spec='$libname$release$shared_ext$major'
13887 shlibpath_var=LD_LIBRARY_PATH
13888 case $host_vendor in
13889 sni)
13890 shlibpath_overrides_runpath=no
13891 need_lib_prefix=no
13892 runpath_var=LD_RUN_PATH
13894 siemens)
13895 need_lib_prefix=no
13897 motorola)
13898 need_lib_prefix=no
13899 need_version=no
13900 shlibpath_overrides_runpath=no
13901 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13903 esac
13906 sysv4*MP*)
13907 if test -d /usr/nec; then
13908 version_type=linux # correct to gnu/linux during the next big refactor
13909 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13910 soname_spec='$libname$shared_ext.$major'
13911 shlibpath_var=LD_LIBRARY_PATH
13915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13916 version_type=sco
13917 need_lib_prefix=no
13918 need_version=no
13919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13920 soname_spec='$libname$release$shared_ext$major'
13921 shlibpath_var=LD_LIBRARY_PATH
13922 shlibpath_overrides_runpath=yes
13923 hardcode_into_libs=yes
13924 if test yes = "$with_gnu_ld"; then
13925 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13926 else
13927 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13928 case $host_os in
13929 sco3.2v5*)
13930 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13932 esac
13934 sys_lib_dlsearch_path_spec='/usr/lib'
13937 tpf*)
13938 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13939 version_type=linux # correct to gnu/linux during the next big refactor
13940 need_lib_prefix=no
13941 need_version=no
13942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13943 shlibpath_var=LD_LIBRARY_PATH
13944 shlibpath_overrides_runpath=no
13945 hardcode_into_libs=yes
13948 uts4*)
13949 version_type=linux # correct to gnu/linux during the next big refactor
13950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13951 soname_spec='$libname$release$shared_ext$major'
13952 shlibpath_var=LD_LIBRARY_PATH
13956 dynamic_linker=no
13958 esac
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13960 $as_echo "$dynamic_linker" >&6; }
13961 test no = "$dynamic_linker" && can_build_shared=no
13963 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13964 if test yes = "$GCC"; then
13965 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13968 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13969 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13972 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13973 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13976 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13977 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13979 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13980 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13982 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13983 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14082 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14083 hardcode_action=
14084 if test -n "$hardcode_libdir_flag_spec" ||
14085 test -n "$runpath_var" ||
14086 test yes = "$hardcode_automatic"; then
14088 # We can hardcode non-existent directories.
14089 if test no != "$hardcode_direct" &&
14090 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14091 # have to relink, otherwise we might link with an installed library
14092 # when we should be linking with a yet-to-be-installed one
14093 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14094 test no != "$hardcode_minus_L"; then
14095 # Linking always hardcodes the temporary library directory.
14096 hardcode_action=relink
14097 else
14098 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14099 hardcode_action=immediate
14101 else
14102 # We cannot hardcode anything, or else we can only hardcode existing
14103 # directories.
14104 hardcode_action=unsupported
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14107 $as_echo "$hardcode_action" >&6; }
14109 if test relink = "$hardcode_action" ||
14110 test yes = "$inherit_rpath"; then
14111 # Fast installation is not supported
14112 enable_fast_install=no
14113 elif test yes = "$shlibpath_overrides_runpath" ||
14114 test no = "$enable_shared"; then
14115 # Fast installation is not necessary
14116 enable_fast_install=needless
14124 if test yes != "$enable_dlopen"; then
14125 enable_dlopen=unknown
14126 enable_dlopen_self=unknown
14127 enable_dlopen_self_static=unknown
14128 else
14129 lt_cv_dlopen=no
14130 lt_cv_dlopen_libs=
14132 case $host_os in
14133 beos*)
14134 lt_cv_dlopen=load_add_on
14135 lt_cv_dlopen_libs=
14136 lt_cv_dlopen_self=yes
14139 mingw* | pw32* | cegcc*)
14140 lt_cv_dlopen=LoadLibrary
14141 lt_cv_dlopen_libs=
14144 cygwin*)
14145 lt_cv_dlopen=dlopen
14146 lt_cv_dlopen_libs=
14149 darwin*)
14150 # if libdl is installed we need to link against it
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14152 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14153 if ${ac_cv_lib_dl_dlopen+:} false; then :
14154 $as_echo_n "(cached) " >&6
14155 else
14156 ac_check_lib_save_LIBS=$LIBS
14157 LIBS="-ldl $LIBS"
14158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159 /* end confdefs.h. */
14161 /* Override any GCC internal prototype to avoid an error.
14162 Use char because int might match the return type of a GCC
14163 builtin and then its argument prototype would still apply. */
14164 #ifdef __cplusplus
14165 extern "C"
14166 #endif
14167 char dlopen ();
14169 main ()
14171 return dlopen ();
14173 return 0;
14175 _ACEOF
14176 if ac_fn_c_try_link "$LINENO"; then :
14177 ac_cv_lib_dl_dlopen=yes
14178 else
14179 ac_cv_lib_dl_dlopen=no
14181 rm -f core conftest.err conftest.$ac_objext \
14182 conftest$ac_exeext conftest.$ac_ext
14183 LIBS=$ac_check_lib_save_LIBS
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14186 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14187 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14188 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14189 else
14191 lt_cv_dlopen=dyld
14192 lt_cv_dlopen_libs=
14193 lt_cv_dlopen_self=yes
14199 tpf*)
14200 # Don't try to run any link tests for TPF. We know it's impossible
14201 # because TPF is a cross-compiler, and we know how we open DSOs.
14202 lt_cv_dlopen=dlopen
14203 lt_cv_dlopen_libs=
14204 lt_cv_dlopen_self=no
14208 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14209 if test "x$ac_cv_func_shl_load" = xyes; then :
14210 lt_cv_dlopen=shl_load
14211 else
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14213 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14214 if ${ac_cv_lib_dld_shl_load+:} false; then :
14215 $as_echo_n "(cached) " >&6
14216 else
14217 ac_check_lib_save_LIBS=$LIBS
14218 LIBS="-ldld $LIBS"
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14222 /* Override any GCC internal prototype to avoid an error.
14223 Use char because int might match the return type of a GCC
14224 builtin and then its argument prototype would still apply. */
14225 #ifdef __cplusplus
14226 extern "C"
14227 #endif
14228 char shl_load ();
14230 main ()
14232 return shl_load ();
14234 return 0;
14236 _ACEOF
14237 if ac_fn_c_try_link "$LINENO"; then :
14238 ac_cv_lib_dld_shl_load=yes
14239 else
14240 ac_cv_lib_dld_shl_load=no
14242 rm -f core conftest.err conftest.$ac_objext \
14243 conftest$ac_exeext conftest.$ac_ext
14244 LIBS=$ac_check_lib_save_LIBS
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14247 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14248 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14249 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14250 else
14251 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14252 if test "x$ac_cv_func_dlopen" = xyes; then :
14253 lt_cv_dlopen=dlopen
14254 else
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14256 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14257 if ${ac_cv_lib_dl_dlopen+:} false; then :
14258 $as_echo_n "(cached) " >&6
14259 else
14260 ac_check_lib_save_LIBS=$LIBS
14261 LIBS="-ldl $LIBS"
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14265 /* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14268 #ifdef __cplusplus
14269 extern "C"
14270 #endif
14271 char dlopen ();
14273 main ()
14275 return dlopen ();
14277 return 0;
14279 _ACEOF
14280 if ac_fn_c_try_link "$LINENO"; then :
14281 ac_cv_lib_dl_dlopen=yes
14282 else
14283 ac_cv_lib_dl_dlopen=no
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 LIBS=$ac_check_lib_save_LIBS
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14290 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14291 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14292 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14293 else
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14295 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14296 if ${ac_cv_lib_svld_dlopen+:} false; then :
14297 $as_echo_n "(cached) " >&6
14298 else
14299 ac_check_lib_save_LIBS=$LIBS
14300 LIBS="-lsvld $LIBS"
14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14304 /* Override any GCC internal prototype to avoid an error.
14305 Use char because int might match the return type of a GCC
14306 builtin and then its argument prototype would still apply. */
14307 #ifdef __cplusplus
14308 extern "C"
14309 #endif
14310 char dlopen ();
14312 main ()
14314 return dlopen ();
14316 return 0;
14318 _ACEOF
14319 if ac_fn_c_try_link "$LINENO"; then :
14320 ac_cv_lib_svld_dlopen=yes
14321 else
14322 ac_cv_lib_svld_dlopen=no
14324 rm -f core conftest.err conftest.$ac_objext \
14325 conftest$ac_exeext conftest.$ac_ext
14326 LIBS=$ac_check_lib_save_LIBS
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14329 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14330 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14331 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14332 else
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14334 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14335 if ${ac_cv_lib_dld_dld_link+:} false; then :
14336 $as_echo_n "(cached) " >&6
14337 else
14338 ac_check_lib_save_LIBS=$LIBS
14339 LIBS="-ldld $LIBS"
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14343 /* Override any GCC internal prototype to avoid an error.
14344 Use char because int might match the return type of a GCC
14345 builtin and then its argument prototype would still apply. */
14346 #ifdef __cplusplus
14347 extern "C"
14348 #endif
14349 char dld_link ();
14351 main ()
14353 return dld_link ();
14355 return 0;
14357 _ACEOF
14358 if ac_fn_c_try_link "$LINENO"; then :
14359 ac_cv_lib_dld_dld_link=yes
14360 else
14361 ac_cv_lib_dld_dld_link=no
14363 rm -f core conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14365 LIBS=$ac_check_lib_save_LIBS
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14368 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14369 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14370 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14389 esac
14391 if test no = "$lt_cv_dlopen"; then
14392 enable_dlopen=no
14393 else
14394 enable_dlopen=yes
14397 case $lt_cv_dlopen in
14398 dlopen)
14399 save_CPPFLAGS=$CPPFLAGS
14400 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14402 save_LDFLAGS=$LDFLAGS
14403 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14405 save_LIBS=$LIBS
14406 LIBS="$lt_cv_dlopen_libs $LIBS"
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14409 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14410 if ${lt_cv_dlopen_self+:} false; then :
14411 $as_echo_n "(cached) " >&6
14412 else
14413 if test yes = "$cross_compiling"; then :
14414 lt_cv_dlopen_self=cross
14415 else
14416 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14417 lt_status=$lt_dlunknown
14418 cat > conftest.$ac_ext <<_LT_EOF
14419 #line $LINENO "configure"
14420 #include "confdefs.h"
14422 #if HAVE_DLFCN_H
14423 #include <dlfcn.h>
14424 #endif
14426 #include <stdio.h>
14428 #ifdef RTLD_GLOBAL
14429 # define LT_DLGLOBAL RTLD_GLOBAL
14430 #else
14431 # ifdef DL_GLOBAL
14432 # define LT_DLGLOBAL DL_GLOBAL
14433 # else
14434 # define LT_DLGLOBAL 0
14435 # endif
14436 #endif
14438 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14439 find out it does not work in some platform. */
14440 #ifndef LT_DLLAZY_OR_NOW
14441 # ifdef RTLD_LAZY
14442 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14443 # else
14444 # ifdef DL_LAZY
14445 # define LT_DLLAZY_OR_NOW DL_LAZY
14446 # else
14447 # ifdef RTLD_NOW
14448 # define LT_DLLAZY_OR_NOW RTLD_NOW
14449 # else
14450 # ifdef DL_NOW
14451 # define LT_DLLAZY_OR_NOW DL_NOW
14452 # else
14453 # define LT_DLLAZY_OR_NOW 0
14454 # endif
14455 # endif
14456 # endif
14457 # endif
14458 #endif
14460 /* When -fvisibility=hidden is used, assume the code has been annotated
14461 correspondingly for the symbols needed. */
14462 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14463 int fnord () __attribute__((visibility("default")));
14464 #endif
14466 int fnord () { return 42; }
14467 int main ()
14469 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14470 int status = $lt_dlunknown;
14472 if (self)
14474 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14475 else
14477 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14478 else puts (dlerror ());
14480 /* dlclose (self); */
14482 else
14483 puts (dlerror ());
14485 return status;
14487 _LT_EOF
14488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14489 (eval $ac_link) 2>&5
14490 ac_status=$?
14491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14492 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14493 (./conftest; exit; ) >&5 2>/dev/null
14494 lt_status=$?
14495 case x$lt_status in
14496 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14497 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14498 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14499 esac
14500 else :
14501 # compilation failed
14502 lt_cv_dlopen_self=no
14505 rm -fr conftest*
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14510 $as_echo "$lt_cv_dlopen_self" >&6; }
14512 if test yes = "$lt_cv_dlopen_self"; then
14513 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14515 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14516 if ${lt_cv_dlopen_self_static+:} false; then :
14517 $as_echo_n "(cached) " >&6
14518 else
14519 if test yes = "$cross_compiling"; then :
14520 lt_cv_dlopen_self_static=cross
14521 else
14522 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14523 lt_status=$lt_dlunknown
14524 cat > conftest.$ac_ext <<_LT_EOF
14525 #line $LINENO "configure"
14526 #include "confdefs.h"
14528 #if HAVE_DLFCN_H
14529 #include <dlfcn.h>
14530 #endif
14532 #include <stdio.h>
14534 #ifdef RTLD_GLOBAL
14535 # define LT_DLGLOBAL RTLD_GLOBAL
14536 #else
14537 # ifdef DL_GLOBAL
14538 # define LT_DLGLOBAL DL_GLOBAL
14539 # else
14540 # define LT_DLGLOBAL 0
14541 # endif
14542 #endif
14544 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14545 find out it does not work in some platform. */
14546 #ifndef LT_DLLAZY_OR_NOW
14547 # ifdef RTLD_LAZY
14548 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14549 # else
14550 # ifdef DL_LAZY
14551 # define LT_DLLAZY_OR_NOW DL_LAZY
14552 # else
14553 # ifdef RTLD_NOW
14554 # define LT_DLLAZY_OR_NOW RTLD_NOW
14555 # else
14556 # ifdef DL_NOW
14557 # define LT_DLLAZY_OR_NOW DL_NOW
14558 # else
14559 # define LT_DLLAZY_OR_NOW 0
14560 # endif
14561 # endif
14562 # endif
14563 # endif
14564 #endif
14566 /* When -fvisibility=hidden is used, assume the code has been annotated
14567 correspondingly for the symbols needed. */
14568 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14569 int fnord () __attribute__((visibility("default")));
14570 #endif
14572 int fnord () { return 42; }
14573 int main ()
14575 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14576 int status = $lt_dlunknown;
14578 if (self)
14580 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14581 else
14583 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14584 else puts (dlerror ());
14586 /* dlclose (self); */
14588 else
14589 puts (dlerror ());
14591 return status;
14593 _LT_EOF
14594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14595 (eval $ac_link) 2>&5
14596 ac_status=$?
14597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14598 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14599 (./conftest; exit; ) >&5 2>/dev/null
14600 lt_status=$?
14601 case x$lt_status in
14602 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14603 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14604 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14605 esac
14606 else :
14607 # compilation failed
14608 lt_cv_dlopen_self_static=no
14611 rm -fr conftest*
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14616 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14619 CPPFLAGS=$save_CPPFLAGS
14620 LDFLAGS=$save_LDFLAGS
14621 LIBS=$save_LIBS
14623 esac
14625 case $lt_cv_dlopen_self in
14626 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14627 *) enable_dlopen_self=unknown ;;
14628 esac
14630 case $lt_cv_dlopen_self_static in
14631 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14632 *) enable_dlopen_self_static=unknown ;;
14633 esac
14652 striplib=
14653 old_striplib=
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14655 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14656 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14657 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14658 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14660 $as_echo "yes" >&6; }
14661 else
14662 # FIXME - insert some real tests, host_os isn't really good enough
14663 case $host_os in
14664 darwin*)
14665 if test -n "$STRIP"; then
14666 striplib="$STRIP -x"
14667 old_striplib="$STRIP -S"
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14669 $as_echo "yes" >&6; }
14670 else
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14672 $as_echo "no" >&6; }
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14677 $as_echo "no" >&6; }
14679 esac
14693 # Report what library types will actually be built
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14695 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14697 $as_echo "$can_build_shared" >&6; }
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14700 $as_echo_n "checking whether to build shared libraries... " >&6; }
14701 test no = "$can_build_shared" && enable_shared=no
14703 # On AIX, shared libraries and static libraries use the same namespace, and
14704 # are all built from PIC.
14705 case $host_os in
14706 aix3*)
14707 test yes = "$enable_shared" && enable_static=no
14708 if test -n "$RANLIB"; then
14709 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14710 postinstall_cmds='$RANLIB $lib'
14714 aix[4-9]*)
14715 if test ia64 != "$host_cpu"; then
14716 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14717 yes,aix,yes) ;; # shared object as lib.so file only
14718 yes,svr4,*) ;; # shared object as lib.so archive member only
14719 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14720 esac
14723 esac
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14725 $as_echo "$enable_shared" >&6; }
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14728 $as_echo_n "checking whether to build static libraries... " >&6; }
14729 # Make sure either enable_shared or enable_static is yes.
14730 test yes = "$enable_shared" || enable_static=yes
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14732 $as_echo "$enable_static" >&6; }
14738 ac_ext=c
14739 ac_cpp='$CPP $CPPFLAGS'
14740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14744 CC=$lt_save_CC
14760 ac_config_commands="$ac_config_commands libtool"
14765 # Only expand once:
14771 if test -n "$ac_tool_prefix"; then
14772 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14773 set dummy ${ac_tool_prefix}ar; ac_word=$2
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14775 $as_echo_n "checking for $ac_word... " >&6; }
14776 if ${ac_cv_prog_AR+:} false; then :
14777 $as_echo_n "(cached) " >&6
14778 else
14779 if test -n "$AR"; then
14780 ac_cv_prog_AR="$AR" # Let the user override the test.
14781 else
14782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14783 for as_dir in $PATH
14785 IFS=$as_save_IFS
14786 test -z "$as_dir" && as_dir=.
14787 for ac_exec_ext in '' $ac_executable_extensions; do
14788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14789 ac_cv_prog_AR="${ac_tool_prefix}ar"
14790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14791 break 2
14793 done
14794 done
14795 IFS=$as_save_IFS
14799 AR=$ac_cv_prog_AR
14800 if test -n "$AR"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14802 $as_echo "$AR" >&6; }
14803 else
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14805 $as_echo "no" >&6; }
14810 if test -z "$ac_cv_prog_AR"; then
14811 ac_ct_AR=$AR
14812 # Extract the first word of "ar", so it can be a program name with args.
14813 set dummy ar; ac_word=$2
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14815 $as_echo_n "checking for $ac_word... " >&6; }
14816 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14817 $as_echo_n "(cached) " >&6
14818 else
14819 if test -n "$ac_ct_AR"; then
14820 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14821 else
14822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14823 for as_dir in $PATH
14825 IFS=$as_save_IFS
14826 test -z "$as_dir" && as_dir=.
14827 for ac_exec_ext in '' $ac_executable_extensions; do
14828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14829 ac_cv_prog_ac_ct_AR="ar"
14830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14831 break 2
14833 done
14834 done
14835 IFS=$as_save_IFS
14839 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14840 if test -n "$ac_ct_AR"; then
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14842 $as_echo "$ac_ct_AR" >&6; }
14843 else
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14845 $as_echo "no" >&6; }
14848 if test "x$ac_ct_AR" = x; then
14849 AR="ar"
14850 else
14851 case $cross_compiling:$ac_tool_warned in
14852 yes:)
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14855 ac_tool_warned=yes ;;
14856 esac
14857 AR=$ac_ct_AR
14859 else
14860 AR="$ac_cv_prog_AR"
14865 if test "x$EMSCRIPTEN" = "x"; then :
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMX instructions set" >&5
14869 $as_echo_n "checking for MMX instructions set... " >&6; }
14870 oldcflags="$CFLAGS"
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
14872 $as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
14873 if ${ax_cv_check_cflags___mmmx+:} false; then :
14874 $as_echo_n "(cached) " >&6
14875 else
14877 ax_check_save_flags=$CFLAGS
14878 CFLAGS="$CFLAGS -mmmx"
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14881 #include <stdio.h>
14883 main ()
14885 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
14887 return 0;
14889 _ACEOF
14890 if ac_fn_c_try_compile "$LINENO"; then :
14891 ax_cv_check_cflags___mmmx=yes
14892 else
14893 ax_cv_check_cflags___mmmx=no
14895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14896 CFLAGS=$ax_check_save_flags
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
14899 $as_echo "$ax_cv_check_cflags___mmmx" >&6; }
14900 if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
14901 CFLAGS="$CFLAGS -mmmx"
14902 else
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14909 #pragma GCC target("mmx")
14910 #include <mmintrin.h>
14913 main ()
14915 __m64 x = _mm_setzero_si64();
14917 return 0;
14919 _ACEOF
14920 if ac_fn_c_try_compile "$LINENO"; then :
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14922 $as_echo "yes" >&6; }
14924 $as_echo "#define HAVE_MMINTRIN_H 1" >>confdefs.h
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
14927 $as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
14928 if ${ax_cv_check_cflags___mmmx+:} false; then :
14929 $as_echo_n "(cached) " >&6
14930 else
14932 ax_check_save_flags=$CFLAGS
14933 CFLAGS="$CFLAGS -mmmx"
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14936 #include <stdio.h>
14938 main ()
14940 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
14942 return 0;
14944 _ACEOF
14945 if ac_fn_c_try_compile "$LINENO"; then :
14946 ax_cv_check_cflags___mmmx=yes
14947 else
14948 ax_cv_check_cflags___mmmx=no
14950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14951 CFLAGS=$ax_check_save_flags
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
14954 $as_echo "$ax_cv_check_cflags___mmmx" >&6; }
14955 if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
14956 CFLAGS_MMX="-mmmx"
14957 else
14961 else
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14963 $as_echo "no" >&6; }
14965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14966 CFLAGS="$oldcflags"
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE2 instructions set" >&5
14969 $as_echo_n "checking for SSE2 instructions set... " >&6; }
14970 oldcflags="$CFLAGS"
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
14972 $as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
14973 if ${ax_cv_check_cflags___msse2+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14977 ax_check_save_flags=$CFLAGS
14978 CFLAGS="$CFLAGS -msse2"
14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980 /* end confdefs.h. */
14981 #include <stdio.h>
14983 main ()
14985 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
14987 return 0;
14989 _ACEOF
14990 if ac_fn_c_try_compile "$LINENO"; then :
14991 ax_cv_check_cflags___msse2=yes
14992 else
14993 ax_cv_check_cflags___msse2=no
14995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14996 CFLAGS=$ax_check_save_flags
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
14999 $as_echo "$ax_cv_check_cflags___msse2" >&6; }
15000 if test "x$ax_cv_check_cflags___msse2" = xyes; then :
15001 CFLAGS="$CFLAGS -msse2"
15002 else
15006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h. */
15009 #pragma GCC target("sse2")
15010 #ifndef __SSE2__
15011 # define __SSE2__
15012 #endif
15013 #include <emmintrin.h>
15016 main ()
15018 __m128d x = _mm_setzero_pd();
15019 __m128i y = _mm_srli_epi64(_mm_setzero_si128(), 26);
15021 return 0;
15023 _ACEOF
15024 if ac_fn_c_try_compile "$LINENO"; then :
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15026 $as_echo "yes" >&6; }
15028 $as_echo "#define HAVE_EMMINTRIN_H 1" >>confdefs.h
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
15031 $as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
15032 if ${ax_cv_check_cflags___msse2+:} false; then :
15033 $as_echo_n "(cached) " >&6
15034 else
15036 ax_check_save_flags=$CFLAGS
15037 CFLAGS="$CFLAGS -msse2"
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15040 #include <stdio.h>
15042 main ()
15044 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15046 return 0;
15048 _ACEOF
15049 if ac_fn_c_try_compile "$LINENO"; then :
15050 ax_cv_check_cflags___msse2=yes
15051 else
15052 ax_cv_check_cflags___msse2=no
15054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055 CFLAGS=$ax_check_save_flags
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
15058 $as_echo "$ax_cv_check_cflags___msse2" >&6; }
15059 if test "x$ax_cv_check_cflags___msse2" = xyes; then :
15060 CFLAGS_SSE2="-msse2"
15061 else
15065 else
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15067 $as_echo "no" >&6; }
15069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15070 CFLAGS="$oldcflags"
15072 oldcflags="$CFLAGS"
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
15074 $as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
15075 if ${ax_cv_check_cflags___msse3+:} false; then :
15076 $as_echo_n "(cached) " >&6
15077 else
15079 ax_check_save_flags=$CFLAGS
15080 CFLAGS="$CFLAGS -msse3"
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15083 #include <stdio.h>
15085 main ()
15087 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15089 return 0;
15091 _ACEOF
15092 if ac_fn_c_try_compile "$LINENO"; then :
15093 ax_cv_check_cflags___msse3=yes
15094 else
15095 ax_cv_check_cflags___msse3=no
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 CFLAGS=$ax_check_save_flags
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
15101 $as_echo "$ax_cv_check_cflags___msse3" >&6; }
15102 if test "x$ax_cv_check_cflags___msse3" = xyes; then :
15103 CFLAGS="$CFLAGS -msse3"
15104 else
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE3 instructions set" >&5
15109 $as_echo_n "checking for SSE3 instructions set... " >&6; }
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15113 #pragma GCC target("sse3")
15114 #include <pmmintrin.h>
15117 main ()
15119 __m128 x = _mm_addsub_ps(_mm_cvtpd_ps(_mm_setzero_pd()),
15120 _mm_cvtpd_ps(_mm_setzero_pd()));
15122 return 0;
15124 _ACEOF
15125 if ac_fn_c_try_compile "$LINENO"; then :
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15127 $as_echo "yes" >&6; }
15129 $as_echo "#define HAVE_PMMINTRIN_H 1" >>confdefs.h
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
15132 $as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
15133 if ${ax_cv_check_cflags___msse3+:} false; then :
15134 $as_echo_n "(cached) " >&6
15135 else
15137 ax_check_save_flags=$CFLAGS
15138 CFLAGS="$CFLAGS -msse3"
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15141 #include <stdio.h>
15143 main ()
15145 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15147 return 0;
15149 _ACEOF
15150 if ac_fn_c_try_compile "$LINENO"; then :
15151 ax_cv_check_cflags___msse3=yes
15152 else
15153 ax_cv_check_cflags___msse3=no
15155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156 CFLAGS=$ax_check_save_flags
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
15159 $as_echo "$ax_cv_check_cflags___msse3" >&6; }
15160 if test "x$ax_cv_check_cflags___msse3" = xyes; then :
15161 CFLAGS_SSE3="-msse3"
15162 else
15166 else
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15168 $as_echo "no" >&6; }
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171 CFLAGS="$oldcflags"
15173 oldcflags="$CFLAGS"
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
15175 $as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
15176 if ${ax_cv_check_cflags___mssse3+:} false; then :
15177 $as_echo_n "(cached) " >&6
15178 else
15180 ax_check_save_flags=$CFLAGS
15181 CFLAGS="$CFLAGS -mssse3"
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15184 #include <stdio.h>
15186 main ()
15188 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15190 return 0;
15192 _ACEOF
15193 if ac_fn_c_try_compile "$LINENO"; then :
15194 ax_cv_check_cflags___mssse3=yes
15195 else
15196 ax_cv_check_cflags___mssse3=no
15198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15199 CFLAGS=$ax_check_save_flags
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
15202 $as_echo "$ax_cv_check_cflags___mssse3" >&6; }
15203 if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
15204 CFLAGS="$CFLAGS -mssse3"
15205 else
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSSE3 instructions set" >&5
15210 $as_echo_n "checking for SSSE3 instructions set... " >&6; }
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15214 #pragma GCC target("ssse3")
15215 #include <tmmintrin.h>
15218 main ()
15220 __m64 x = _mm_abs_pi32(_m_from_int(0));
15222 return 0;
15224 _ACEOF
15225 if ac_fn_c_try_compile "$LINENO"; then :
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15227 $as_echo "yes" >&6; }
15229 $as_echo "#define HAVE_TMMINTRIN_H 1" >>confdefs.h
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
15232 $as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
15233 if ${ax_cv_check_cflags___mssse3+:} false; then :
15234 $as_echo_n "(cached) " >&6
15235 else
15237 ax_check_save_flags=$CFLAGS
15238 CFLAGS="$CFLAGS -mssse3"
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15241 #include <stdio.h>
15243 main ()
15245 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15247 return 0;
15249 _ACEOF
15250 if ac_fn_c_try_compile "$LINENO"; then :
15251 ax_cv_check_cflags___mssse3=yes
15252 else
15253 ax_cv_check_cflags___mssse3=no
15255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15256 CFLAGS=$ax_check_save_flags
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
15259 $as_echo "$ax_cv_check_cflags___mssse3" >&6; }
15260 if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
15261 CFLAGS_SSSE3="-mssse3"
15262 else
15266 else
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271 CFLAGS="$oldcflags"
15273 oldcflags="$CFLAGS"
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
15275 $as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
15276 if ${ax_cv_check_cflags___msse4_1+:} false; then :
15277 $as_echo_n "(cached) " >&6
15278 else
15280 ax_check_save_flags=$CFLAGS
15281 CFLAGS="$CFLAGS -msse4.1"
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 #include <stdio.h>
15286 main ()
15288 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15290 return 0;
15292 _ACEOF
15293 if ac_fn_c_try_compile "$LINENO"; then :
15294 ax_cv_check_cflags___msse4_1=yes
15295 else
15296 ax_cv_check_cflags___msse4_1=no
15298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15299 CFLAGS=$ax_check_save_flags
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
15302 $as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
15303 if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
15304 CFLAGS="$CFLAGS -msse4.1"
15305 else
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.1 instructions set" >&5
15310 $as_echo_n "checking for SSE4.1 instructions set... " >&6; }
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15314 #pragma GCC target("sse4.1")
15315 #include <smmintrin.h>
15318 main ()
15320 __m128i x = _mm_minpos_epu16(_mm_setzero_si128());
15322 return 0;
15324 _ACEOF
15325 if ac_fn_c_try_compile "$LINENO"; then :
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15327 $as_echo "yes" >&6; }
15329 $as_echo "#define HAVE_SMMINTRIN_H 1" >>confdefs.h
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
15332 $as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
15333 if ${ax_cv_check_cflags___msse4_1+:} false; then :
15334 $as_echo_n "(cached) " >&6
15335 else
15337 ax_check_save_flags=$CFLAGS
15338 CFLAGS="$CFLAGS -msse4.1"
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15341 #include <stdio.h>
15343 main ()
15345 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15347 return 0;
15349 _ACEOF
15350 if ac_fn_c_try_compile "$LINENO"; then :
15351 ax_cv_check_cflags___msse4_1=yes
15352 else
15353 ax_cv_check_cflags___msse4_1=no
15355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356 CFLAGS=$ax_check_save_flags
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
15359 $as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
15360 if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
15361 CFLAGS_SSE41="-msse4.1"
15362 else
15366 else
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15368 $as_echo "no" >&6; }
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371 CFLAGS="$oldcflags"
15373 oldcflags="$CFLAGS"
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
15375 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
15376 if ${ax_cv_check_cflags___mavx+:} false; then :
15377 $as_echo_n "(cached) " >&6
15378 else
15380 ax_check_save_flags=$CFLAGS
15381 CFLAGS="$CFLAGS -mavx"
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15384 #include <stdio.h>
15386 main ()
15388 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15390 return 0;
15392 _ACEOF
15393 if ac_fn_c_try_compile "$LINENO"; then :
15394 ax_cv_check_cflags___mavx=yes
15395 else
15396 ax_cv_check_cflags___mavx=no
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 CFLAGS=$ax_check_save_flags
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
15402 $as_echo "$ax_cv_check_cflags___mavx" >&6; }
15403 if test "x$ax_cv_check_cflags___mavx" = xyes; then :
15404 CFLAGS="$CFLAGS -mavx"
15405 else
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX instructions set" >&5
15410 $as_echo_n "checking for AVX instructions set... " >&6; }
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15414 #pragma GCC target("avx")
15415 #include <immintrin.h>
15418 main ()
15420 _mm256_zeroall();
15422 return 0;
15424 _ACEOF
15425 if ac_fn_c_try_compile "$LINENO"; then :
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15427 $as_echo "yes" >&6; }
15429 $as_echo "#define HAVE_AVXINTRIN_H 1" >>confdefs.h
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
15432 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
15433 if ${ax_cv_check_cflags___mavx+:} false; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15437 ax_check_save_flags=$CFLAGS
15438 CFLAGS="$CFLAGS -mavx"
15439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440 /* end confdefs.h. */
15441 #include <stdio.h>
15443 main ()
15445 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15447 return 0;
15449 _ACEOF
15450 if ac_fn_c_try_compile "$LINENO"; then :
15451 ax_cv_check_cflags___mavx=yes
15452 else
15453 ax_cv_check_cflags___mavx=no
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456 CFLAGS=$ax_check_save_flags
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
15459 $as_echo "$ax_cv_check_cflags___mavx" >&6; }
15460 if test "x$ax_cv_check_cflags___mavx" = xyes; then :
15461 CFLAGS_AVX="-mavx"
15462 else
15466 else
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15468 $as_echo "no" >&6; }
15470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15471 CFLAGS="$oldcflags"
15473 oldcflags="$CFLAGS"
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
15475 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
15476 if ${ax_cv_check_cflags___mavx2+:} false; then :
15477 $as_echo_n "(cached) " >&6
15478 else
15480 ax_check_save_flags=$CFLAGS
15481 CFLAGS="$CFLAGS -mavx2"
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15484 #include <stdio.h>
15486 main ()
15488 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15490 return 0;
15492 _ACEOF
15493 if ac_fn_c_try_compile "$LINENO"; then :
15494 ax_cv_check_cflags___mavx2=yes
15495 else
15496 ax_cv_check_cflags___mavx2=no
15498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15499 CFLAGS=$ax_check_save_flags
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
15502 $as_echo "$ax_cv_check_cflags___mavx2" >&6; }
15503 if test "x$ax_cv_check_cflags___mavx2" = xyes; then :
15504 CFLAGS="$CFLAGS -mavx2"
15505 else
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX2 instructions set" >&5
15510 $as_echo_n "checking for AVX2 instructions set... " >&6; }
15511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h. */
15514 #pragma GCC target("avx2")
15515 #include <immintrin.h>
15518 main ()
15520 __m256i x = _mm256_abs_epi8(_mm256_setzero_si256());
15522 return 0;
15524 _ACEOF
15525 if ac_fn_c_try_compile "$LINENO"; then :
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15527 $as_echo "yes" >&6; }
15529 $as_echo "#define HAVE_AVX2INTRIN_H 1" >>confdefs.h
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
15532 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
15533 if ${ax_cv_check_cflags___mavx2+:} false; then :
15534 $as_echo_n "(cached) " >&6
15535 else
15537 ax_check_save_flags=$CFLAGS
15538 CFLAGS="$CFLAGS -mavx2"
15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540 /* end confdefs.h. */
15541 #include <stdio.h>
15543 main ()
15545 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15547 return 0;
15549 _ACEOF
15550 if ac_fn_c_try_compile "$LINENO"; then :
15551 ax_cv_check_cflags___mavx2=yes
15552 else
15553 ax_cv_check_cflags___mavx2=no
15555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15556 CFLAGS=$ax_check_save_flags
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
15559 $as_echo "$ax_cv_check_cflags___mavx2" >&6; }
15560 if test "x$ax_cv_check_cflags___mavx2" = xyes; then :
15561 CFLAGS_AVX="-mavx2"
15562 else
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _mm256_broadcastsi128_si256 is correctly defined" >&5
15567 $as_echo_n "checking if _mm256_broadcastsi128_si256 is correctly defined... " >&6; }
15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h. */
15571 #pragma GCC target("avx2")
15572 #include <immintrin.h>
15575 main ()
15577 __m256i y = _mm256_broadcastsi128_si256(_mm_setzero_si128());
15579 return 0;
15581 _ACEOF
15582 if ac_fn_c_try_compile "$LINENO"; then :
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15584 $as_echo "yes" >&6; }
15585 else
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15587 $as_echo "no" >&6; }
15589 $as_echo "#define _mm256_broadcastsi128_si256 _mm_broadcastsi128_si256" >>confdefs.h
15592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15594 else
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15596 $as_echo "no" >&6; }
15598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15599 CFLAGS="$oldcflags"
15601 oldcflags="$CFLAGS"
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
15603 $as_echo_n "checking whether C compiler accepts -maes... " >&6; }
15604 if ${ax_cv_check_cflags___maes+:} false; then :
15605 $as_echo_n "(cached) " >&6
15606 else
15608 ax_check_save_flags=$CFLAGS
15609 CFLAGS="$CFLAGS -maes"
15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h. */
15612 #include <stdio.h>
15614 main ()
15616 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15618 return 0;
15620 _ACEOF
15621 if ac_fn_c_try_compile "$LINENO"; then :
15622 ax_cv_check_cflags___maes=yes
15623 else
15624 ax_cv_check_cflags___maes=no
15626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627 CFLAGS=$ax_check_save_flags
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
15630 $as_echo "$ax_cv_check_cflags___maes" >&6; }
15631 if test "x$ax_cv_check_cflags___maes" = xyes; then :
15632 CFLAGS="$CFLAGS -maes"
15633 else
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
15638 $as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
15639 if ${ax_cv_check_cflags___mpclmul+:} false; then :
15640 $as_echo_n "(cached) " >&6
15641 else
15643 ax_check_save_flags=$CFLAGS
15644 CFLAGS="$CFLAGS -mpclmul"
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15647 #include <stdio.h>
15649 main ()
15651 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15653 return 0;
15655 _ACEOF
15656 if ac_fn_c_try_compile "$LINENO"; then :
15657 ax_cv_check_cflags___mpclmul=yes
15658 else
15659 ax_cv_check_cflags___mpclmul=no
15661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15662 CFLAGS=$ax_check_save_flags
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
15665 $as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
15666 if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
15667 CFLAGS="$CFLAGS -mpclmul"
15668 else
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AESNI instructions set and PCLMULQDQ" >&5
15673 $as_echo_n "checking for AESNI instructions set and PCLMULQDQ... " >&6; }
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15677 #pragma GCC target("aes")
15678 #pragma GCC target("pclmul")
15679 #include <wmmintrin.h>
15682 main ()
15684 __m128i x = _mm_aesimc_si128(_mm_setzero_si128());
15685 __m128i y = _mm_clmulepi64_si128(_mm_setzero_si128(), _mm_setzero_si128(), 0);
15687 return 0;
15689 _ACEOF
15690 if ac_fn_c_try_compile "$LINENO"; then :
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15692 $as_echo "yes" >&6; }
15694 $as_echo "#define HAVE_WMMINTRIN_H 1" >>confdefs.h
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
15697 $as_echo_n "checking whether C compiler accepts -maes... " >&6; }
15698 if ${ax_cv_check_cflags___maes+:} false; then :
15699 $as_echo_n "(cached) " >&6
15700 else
15702 ax_check_save_flags=$CFLAGS
15703 CFLAGS="$CFLAGS -maes"
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706 #include <stdio.h>
15708 main ()
15710 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15712 return 0;
15714 _ACEOF
15715 if ac_fn_c_try_compile "$LINENO"; then :
15716 ax_cv_check_cflags___maes=yes
15717 else
15718 ax_cv_check_cflags___maes=no
15720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15721 CFLAGS=$ax_check_save_flags
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
15724 $as_echo "$ax_cv_check_cflags___maes" >&6; }
15725 if test "x$ax_cv_check_cflags___maes" = xyes; then :
15726 CFLAGS_AESNI="-maes"
15727 else
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
15732 $as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
15733 if ${ax_cv_check_cflags___mpclmul+:} false; then :
15734 $as_echo_n "(cached) " >&6
15735 else
15737 ax_check_save_flags=$CFLAGS
15738 CFLAGS="$CFLAGS -mpclmul"
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 #include <stdio.h>
15743 main ()
15745 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15747 return 0;
15749 _ACEOF
15750 if ac_fn_c_try_compile "$LINENO"; then :
15751 ax_cv_check_cflags___mpclmul=yes
15752 else
15753 ax_cv_check_cflags___mpclmul=no
15755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756 CFLAGS=$ax_check_save_flags
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
15759 $as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
15760 if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
15761 CFLAGS_PCLMUL="-mpclmul"
15762 else
15767 else
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15769 $as_echo "no" >&6; }
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772 CFLAGS="$oldcflags"
15787 for ac_header in sys/mman.h
15788 do :
15789 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15790 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15791 cat >>confdefs.h <<_ACEOF
15792 #define HAVE_SYS_MMAN_H 1
15793 _ACEOF
15797 done
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15802 $as_echo_n "checking for inline... " >&6; }
15803 if ${ac_cv_c_inline+:} false; then :
15804 $as_echo_n "(cached) " >&6
15805 else
15806 ac_cv_c_inline=no
15807 for ac_kw in inline __inline__ __inline; do
15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809 /* end confdefs.h. */
15810 #ifndef __cplusplus
15811 typedef int foo_t;
15812 static $ac_kw foo_t static_foo () {return 0; }
15813 $ac_kw foo_t foo () {return 0; }
15814 #endif
15816 _ACEOF
15817 if ac_fn_c_try_compile "$LINENO"; then :
15818 ac_cv_c_inline=$ac_kw
15820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15821 test "$ac_cv_c_inline" != no && break
15822 done
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15826 $as_echo "$ac_cv_c_inline" >&6; }
15828 case $ac_cv_c_inline in
15829 inline | yes) ;;
15831 case $ac_cv_c_inline in
15832 no) ac_val=;;
15833 *) ac_val=$ac_cv_c_inline;;
15834 esac
15835 cat >>confdefs.h <<_ACEOF
15836 #ifndef __cplusplus
15837 #define inline $ac_val
15838 #endif
15839 _ACEOF
15841 esac
15843 case $host_cpu in #(
15844 i?86|amd64|x86_64) :
15845 ac_cv_c_bigendian=no
15846 ;; #(
15847 *) :
15849 esac
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15851 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15852 if ${ac_cv_c_bigendian+:} false; then :
15853 $as_echo_n "(cached) " >&6
15854 else
15855 ac_cv_c_bigendian=unknown
15856 # See if we're dealing with a universal compiler.
15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15859 #ifndef __APPLE_CC__
15860 not a universal capable compiler
15861 #endif
15862 typedef int dummy;
15864 _ACEOF
15865 if ac_fn_c_try_compile "$LINENO"; then :
15867 # Check for potential -arch flags. It is not universal unless
15868 # there are at least two -arch flags with different values.
15869 ac_arch=
15870 ac_prev=
15871 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15872 if test -n "$ac_prev"; then
15873 case $ac_word in
15874 i?86 | x86_64 | ppc | ppc64)
15875 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15876 ac_arch=$ac_word
15877 else
15878 ac_cv_c_bigendian=universal
15879 break
15882 esac
15883 ac_prev=
15884 elif test "x$ac_word" = "x-arch"; then
15885 ac_prev=arch
15887 done
15889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15890 if test $ac_cv_c_bigendian = unknown; then
15891 # See if sys/param.h defines the BYTE_ORDER macro.
15892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15893 /* end confdefs.h. */
15894 #include <sys/types.h>
15895 #include <sys/param.h>
15898 main ()
15900 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15901 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15902 && LITTLE_ENDIAN)
15903 bogus endian macros
15904 #endif
15907 return 0;
15909 _ACEOF
15910 if ac_fn_c_try_compile "$LINENO"; then :
15911 # It does; now see whether it defined to BIG_ENDIAN or not.
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15914 #include <sys/types.h>
15915 #include <sys/param.h>
15918 main ()
15920 #if BYTE_ORDER != BIG_ENDIAN
15921 not big endian
15922 #endif
15925 return 0;
15927 _ACEOF
15928 if ac_fn_c_try_compile "$LINENO"; then :
15929 ac_cv_c_bigendian=yes
15930 else
15931 ac_cv_c_bigendian=no
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15937 if test $ac_cv_c_bigendian = unknown; then
15938 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15941 #include <limits.h>
15944 main ()
15946 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15947 bogus endian macros
15948 #endif
15951 return 0;
15953 _ACEOF
15954 if ac_fn_c_try_compile "$LINENO"; then :
15955 # It does; now see whether it defined to _BIG_ENDIAN or not.
15956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957 /* end confdefs.h. */
15958 #include <limits.h>
15961 main ()
15963 #ifndef _BIG_ENDIAN
15964 not big endian
15965 #endif
15968 return 0;
15970 _ACEOF
15971 if ac_fn_c_try_compile "$LINENO"; then :
15972 ac_cv_c_bigendian=yes
15973 else
15974 ac_cv_c_bigendian=no
15976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980 if test $ac_cv_c_bigendian = unknown; then
15981 # Compile a test program.
15982 if test "$cross_compiling" = yes; then :
15983 # Try to guess by grepping values from an object file.
15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15986 short int ascii_mm[] =
15987 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15988 short int ascii_ii[] =
15989 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15990 int use_ascii (int i) {
15991 return ascii_mm[i] + ascii_ii[i];
15993 short int ebcdic_ii[] =
15994 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15995 short int ebcdic_mm[] =
15996 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15997 int use_ebcdic (int i) {
15998 return ebcdic_mm[i] + ebcdic_ii[i];
16000 extern int foo;
16003 main ()
16005 return use_ascii (foo) == use_ebcdic (foo);
16007 return 0;
16009 _ACEOF
16010 if ac_fn_c_try_compile "$LINENO"; then :
16011 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16012 ac_cv_c_bigendian=yes
16014 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16015 if test "$ac_cv_c_bigendian" = unknown; then
16016 ac_cv_c_bigendian=no
16017 else
16018 # finding both strings is unlikely to happen, but who knows?
16019 ac_cv_c_bigendian=unknown
16023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024 else
16025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026 /* end confdefs.h. */
16027 $ac_includes_default
16029 main ()
16032 /* Are we little or big endian? From Harbison&Steele. */
16033 union
16035 long int l;
16036 char c[sizeof (long int)];
16037 } u;
16038 u.l = 1;
16039 return u.c[sizeof (long int) - 1] == 1;
16042 return 0;
16044 _ACEOF
16045 if ac_fn_c_try_run "$LINENO"; then :
16046 ac_cv_c_bigendian=no
16047 else
16048 ac_cv_c_bigendian=yes
16050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16051 conftest.$ac_objext conftest.beam conftest.$ac_ext
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16057 $as_echo "$ac_cv_c_bigendian" >&6; }
16058 case $ac_cv_c_bigendian in #(
16059 yes)
16061 $as_echo "#define NATIVE_BIG_ENDIAN 1" >>confdefs.h
16062 ;; #(
16065 $as_echo "#define NATIVE_LITTLE_ENDIAN 1" >>confdefs.h
16066 ;; #(
16067 universal)
16068 as_fn_error $? "universal endianness is not supported - compile separately and use lipo(1)" "$LINENO" 5
16070 ;; #(
16072 as_fn_error $? "unknown endianness" "$LINENO" 5 ;;
16073 esac
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __STDC_LIMIT_MACROS is required" >&5
16077 $as_echo_n "checking whether __STDC_LIMIT_MACROS is required... " >&6; }
16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079 /* end confdefs.h. */
16081 #include <limits.h>
16082 #include <stdint.h>
16085 main ()
16088 (void) SIZE_MAX;
16089 (void) UINT64_MAX;
16092 return 0;
16094 _ACEOF
16095 if ac_fn_c_try_compile "$LINENO"; then :
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16097 $as_echo "no" >&6; }
16098 else
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16100 $as_echo "yes" >&6; }
16101 CPPFLAGS="$CPPFLAGS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS"
16104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16106 HAVE_AMD64_ASM_V=0
16107 if test "$enable_asm" != "no"; then :
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use x86_64 asm code" >&5
16110 $as_echo_n "checking whether we can use x86_64 asm code... " >&6; }
16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h. */
16116 main ()
16119 #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
16120 # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
16121 # error Windows x86_64 calling conventions are not supported yet
16122 # endif
16123 /* neat */
16124 #else
16125 # error !x86_64
16126 #endif
16127 unsigned char i = 0, o = 0, t;
16128 __asm__ __volatile__ ("pxor %%xmm12, %%xmm6 \n"
16129 "movb (%[i]), %[t] \n"
16130 "addb %[t], (%[o]) \n"
16131 : [t] "=&r"(t)
16132 : [o] "D"(&o), [i] "S"(&i)
16133 : "memory", "flags", "cc");
16136 return 0;
16138 _ACEOF
16139 if ac_fn_c_try_compile "$LINENO"; then :
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16141 $as_echo "yes" >&6; }
16143 $as_echo "#define HAVE_AMD64_ASM 1" >>confdefs.h
16145 HAVE_AMD64_ASM_V=1
16146 else
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16148 $as_echo "no" >&6; }
16150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16153 if test $HAVE_AMD64_ASM_V = 1; then
16154 HAVE_AMD64_ASM_TRUE=
16155 HAVE_AMD64_ASM_FALSE='#'
16156 else
16157 HAVE_AMD64_ASM_TRUE='#'
16158 HAVE_AMD64_ASM_FALSE=
16163 HAVE_AVX_ASM_V=0
16164 if test "$enable_asm" != "no"; then :
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can assemble AVX opcodes" >&5
16167 $as_echo_n "checking whether we can assemble AVX opcodes... " >&6; }
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16173 main ()
16176 #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
16177 # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
16178 # error Windows x86_64 calling conventions are not supported yet
16179 # endif
16180 /* neat */
16181 #else
16182 # error !x86_64
16183 #endif
16184 __asm__ __volatile__ ("vpunpcklqdq %xmm0,%xmm13,%xmm0");
16187 return 0;
16189 _ACEOF
16190 if ac_fn_c_try_compile "$LINENO"; then :
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16192 $as_echo "yes" >&6; }
16194 $as_echo "#define HAVE_AVX_ASM 1" >>confdefs.h
16196 HAVE_AVX_ASM_V=1
16197 else
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16199 $as_echo "no" >&6; }
16201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204 if test $HAVE_AVX_ASM_V = 1; then
16205 HAVE_AVX_ASM_TRUE=
16206 HAVE_AVX_ASM_FALSE='#'
16207 else
16208 HAVE_AVX_ASM_TRUE='#'
16209 HAVE_AVX_ASM_FALSE=
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit arithmetic" >&5
16215 $as_echo_n "checking for 128-bit arithmetic... " >&6; }
16216 HAVE_TI_MODE_V=0
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16220 #if !defined(__GNUC__) && !defined(__SIZEOF_INT128__)
16221 # error mode(TI) is a gcc extension, and __int128 is not available
16222 #endif
16223 #if defined(__clang__) && !defined(__x86_64__)
16224 # error clang does not properly handle the 128-bit type on 32-bit systems
16225 #endif
16226 #ifndef NATIVE_LITTLE_ENDIAN
16227 # error libsodium currently expects a little endian CPU for the 128-bit type
16228 #endif
16229 #ifdef __EMSCRIPTEN__
16230 # error emscripten currently supports only shift operations on integers \
16231 # larger than 64 bits
16232 #endif
16233 #include <stddef.h>
16234 #include <stdint.h>
16235 #if defined(__SIZEOF_INT128__)
16236 typedef unsigned __int128 uint128_t;
16237 #else
16238 typedef unsigned uint128_t __attribute__((mode(TI)));
16239 #endif
16240 void fcontract(uint128_t *t) {
16241 *t += 0x8000000000000 - 1;
16245 main ()
16248 (void) fcontract;
16251 return 0;
16253 _ACEOF
16254 if ac_fn_c_try_compile "$LINENO"; then :
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16256 $as_echo "yes" >&6; }
16258 $as_echo "#define HAVE_TI_MODE 1" >>confdefs.h
16260 HAVE_TI_MODE_V=1
16261 else
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263 $as_echo "no" >&6; }
16265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16266 if test $HAVE_TI_MODE_V = 1; then
16267 HAVE_TI_MODE_TRUE=
16268 HAVE_TI_MODE_FALSE='#'
16269 else
16270 HAVE_TI_MODE_TRUE='#'
16271 HAVE_TI_MODE_FALSE=
16276 HAVE_CPUID_V=0
16277 if test "$enable_asm" != "no"; then :
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpuid instruction" >&5
16280 $as_echo_n "checking for cpuid instruction... " >&6; }
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16285 main ()
16288 unsigned int cpu_info[4];
16289 __asm__ __volatile__ ("xchgl %%ebx, %k1; cpuid; xchgl %%ebx, %k1" :
16290 "=a" (cpu_info[0]), "=&r" (cpu_info[1]),
16291 "=c" (cpu_info[2]), "=d" (cpu_info[3]) :
16292 "0" (0U), "2" (0U));
16295 return 0;
16297 _ACEOF
16298 if ac_fn_c_try_compile "$LINENO"; then :
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16300 $as_echo "yes" >&6; }
16302 $as_echo "#define HAVE_CPUID 1" >>confdefs.h
16304 HAVE_CPUID_V=1
16305 else
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16307 $as_echo "no" >&6; }
16309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16314 asm_hide_symbol="unsupported"
16315 if test "$enable_asm" != "no"; then :
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .private_extern asm directive is supported" >&5
16318 $as_echo_n "checking if the .private_extern asm directive is supported... " >&6; }
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16323 main ()
16326 __asm__ __volatile__ (".private_extern dummy_symbol \n"
16327 ".private_extern _dummy_symbol \n"
16328 ".globl dummy_symbol \n"
16329 ".globl _dummy_symbol \n"
16330 "dummy_symbol: \n"
16331 "_dummy_symbol: \n"
16332 " nop \n"
16336 return 0;
16338 _ACEOF
16339 if ac_fn_c_try_link "$LINENO"; then :
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16341 $as_echo "yes" >&6; }
16342 asm_hide_symbol=".private_extern"
16343 else
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16345 $as_echo "no" >&6; }
16347 rm -f core conftest.err conftest.$ac_objext \
16348 conftest$ac_exeext conftest.$ac_ext
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .hidden asm directive is supported" >&5
16351 $as_echo_n "checking if the .hidden asm directive is supported... " >&6; }
16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16356 main ()
16359 __asm__ __volatile__ (".hidden dummy_symbol \n"
16360 ".hidden _dummy_symbol \n"
16361 ".globl dummy_symbol \n"
16362 ".globl _dummy_symbol \n"
16363 "dummy_symbol: \n"
16364 "_dummy_symbol: \n"
16365 " nop \n"
16369 return 0;
16371 _ACEOF
16372 if ac_fn_c_try_link "$LINENO"; then :
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16374 $as_echo "yes" >&6; }
16375 if test "$asm_hide_symbol" = "unsupported"; then :
16376 asm_hide_symbol=".hidden"
16377 else
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: unable to reliably tag symbols as private" >&5
16379 $as_echo "$as_me: unable to reliably tag symbols as private" >&6;}
16380 asm_hide_symbol="unsupported"
16383 else
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16385 $as_echo "no" >&6; }
16387 rm -f core conftest.err conftest.$ac_objext \
16388 conftest$ac_exeext conftest.$ac_ext
16390 if test "$asm_hide_symbol" != "unsupported"; then :
16393 cat >>confdefs.h <<_ACEOF
16394 #define ASM_HIDE_SYMBOL $asm_hide_symbol
16395 _ACEOF
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if weak symbols are supported" >&5
16403 $as_echo_n "checking if weak symbols are supported... " >&6; }
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16407 __attribute__((weak)) void __dummy(void *x) { }
16408 void f(void *x) { __dummy(x); }
16411 main ()
16416 return 0;
16418 _ACEOF
16419 if ac_fn_c_try_link "$LINENO"; then :
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16421 $as_echo "yes" >&6; }
16423 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
16425 else
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427 $as_echo "no" >&6; }
16429 rm -f core conftest.err conftest.$ac_objext \
16430 conftest$ac_exeext conftest.$ac_ext
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if data alignment is required" >&5
16433 $as_echo_n "checking if data alignment is required... " >&6; }
16434 aligned_access_required=yes
16435 case $host_cpu in #(
16436 i?86|amd64|x86_64|powerpc*|s390*) :
16437 aligned_access_required=no ;; #(
16438 arm*) :
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16442 #ifndef __ARM_FEATURE_UNALIGNED
16443 # error data alignment is required
16444 #endif
16447 main ()
16451 return 0;
16453 _ACEOF
16454 if ac_fn_c_try_compile "$LINENO"; then :
16455 aligned_access_required=no
16457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16458 ;; #(
16459 *) :
16461 esac
16462 if test "x$aligned_access_required" = "xyes"; then :
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16464 $as_echo "yes" >&6; }
16465 else
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16467 $as_echo "no" >&6; }
16469 $as_echo "#define CPU_UNALIGNED_ACCESS 1" >>confdefs.h
16474 if test "x$EMSCRIPTEN" = "x"; then :
16476 for ac_func in arc4random arc4random_buf
16477 do :
16478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16479 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16480 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16481 cat >>confdefs.h <<_ACEOF
16482 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16483 _ACEOF
16486 done
16488 for ac_func in mmap mlock madvise mprotect explicit_bzero
16489 do :
16490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16491 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16492 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16493 cat >>confdefs.h <<_ACEOF
16494 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16495 _ACEOF
16498 done
16502 for ac_func in posix_memalign getpid
16503 do :
16504 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16505 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16506 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16507 cat >>confdefs.h <<_ACEOF
16508 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16509 _ACEOF
16512 done
16517 TEST_LDFLAGS=''
16518 if test "x$EMSCRIPTEN" != "x"; then :
16520 EXEEXT=.js
16521 TEST_LDFLAGS='--memory-init-file 0 --pre-js pre.js.inc -s RESERVED_FUNCTION_POINTERS=8'
16525 if test "x$EMSCRIPTEN" != "x"; then
16526 EMSCRIPTEN_TRUE=
16527 EMSCRIPTEN_FALSE='#'
16528 else
16529 EMSCRIPTEN_TRUE='#'
16530 EMSCRIPTEN_FALSE=
16534 if test "x$NATIVECLIENT" != "x"; then
16535 NATIVECLIENT_TRUE=
16536 NATIVECLIENT_FALSE='#'
16537 else
16538 NATIVECLIENT_TRUE='#'
16539 NATIVECLIENT_FALSE=
16545 enable_win32_dll=yes
16547 case $host in
16548 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
16549 if test -n "$ac_tool_prefix"; then
16550 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
16551 set dummy ${ac_tool_prefix}as; ac_word=$2
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16553 $as_echo_n "checking for $ac_word... " >&6; }
16554 if ${ac_cv_prog_AS+:} false; then :
16555 $as_echo_n "(cached) " >&6
16556 else
16557 if test -n "$AS"; then
16558 ac_cv_prog_AS="$AS" # Let the user override the test.
16559 else
16560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16561 for as_dir in $PATH
16563 IFS=$as_save_IFS
16564 test -z "$as_dir" && as_dir=.
16565 for ac_exec_ext in '' $ac_executable_extensions; do
16566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16567 ac_cv_prog_AS="${ac_tool_prefix}as"
16568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16569 break 2
16571 done
16572 done
16573 IFS=$as_save_IFS
16577 AS=$ac_cv_prog_AS
16578 if test -n "$AS"; then
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
16580 $as_echo "$AS" >&6; }
16581 else
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16583 $as_echo "no" >&6; }
16588 if test -z "$ac_cv_prog_AS"; then
16589 ac_ct_AS=$AS
16590 # Extract the first word of "as", so it can be a program name with args.
16591 set dummy as; ac_word=$2
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16593 $as_echo_n "checking for $ac_word... " >&6; }
16594 if ${ac_cv_prog_ac_ct_AS+:} false; then :
16595 $as_echo_n "(cached) " >&6
16596 else
16597 if test -n "$ac_ct_AS"; then
16598 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
16599 else
16600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16601 for as_dir in $PATH
16603 IFS=$as_save_IFS
16604 test -z "$as_dir" && as_dir=.
16605 for ac_exec_ext in '' $ac_executable_extensions; do
16606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16607 ac_cv_prog_ac_ct_AS="as"
16608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16609 break 2
16611 done
16612 done
16613 IFS=$as_save_IFS
16617 ac_ct_AS=$ac_cv_prog_ac_ct_AS
16618 if test -n "$ac_ct_AS"; then
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
16620 $as_echo "$ac_ct_AS" >&6; }
16621 else
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16623 $as_echo "no" >&6; }
16626 if test "x$ac_ct_AS" = x; then
16627 AS="false"
16628 else
16629 case $cross_compiling:$ac_tool_warned in
16630 yes:)
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16633 ac_tool_warned=yes ;;
16634 esac
16635 AS=$ac_ct_AS
16637 else
16638 AS="$ac_cv_prog_AS"
16641 if test -n "$ac_tool_prefix"; then
16642 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16643 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16645 $as_echo_n "checking for $ac_word... " >&6; }
16646 if ${ac_cv_prog_DLLTOOL+:} false; then :
16647 $as_echo_n "(cached) " >&6
16648 else
16649 if test -n "$DLLTOOL"; then
16650 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16651 else
16652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16653 for as_dir in $PATH
16655 IFS=$as_save_IFS
16656 test -z "$as_dir" && as_dir=.
16657 for ac_exec_ext in '' $ac_executable_extensions; do
16658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16659 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16661 break 2
16663 done
16664 done
16665 IFS=$as_save_IFS
16669 DLLTOOL=$ac_cv_prog_DLLTOOL
16670 if test -n "$DLLTOOL"; then
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16672 $as_echo "$DLLTOOL" >&6; }
16673 else
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16675 $as_echo "no" >&6; }
16680 if test -z "$ac_cv_prog_DLLTOOL"; then
16681 ac_ct_DLLTOOL=$DLLTOOL
16682 # Extract the first word of "dlltool", so it can be a program name with args.
16683 set dummy dlltool; ac_word=$2
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16685 $as_echo_n "checking for $ac_word... " >&6; }
16686 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16687 $as_echo_n "(cached) " >&6
16688 else
16689 if test -n "$ac_ct_DLLTOOL"; then
16690 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16691 else
16692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16693 for as_dir in $PATH
16695 IFS=$as_save_IFS
16696 test -z "$as_dir" && as_dir=.
16697 for ac_exec_ext in '' $ac_executable_extensions; do
16698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16699 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16701 break 2
16703 done
16704 done
16705 IFS=$as_save_IFS
16709 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16710 if test -n "$ac_ct_DLLTOOL"; then
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16712 $as_echo "$ac_ct_DLLTOOL" >&6; }
16713 else
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16715 $as_echo "no" >&6; }
16718 if test "x$ac_ct_DLLTOOL" = x; then
16719 DLLTOOL="false"
16720 else
16721 case $cross_compiling:$ac_tool_warned in
16722 yes:)
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16725 ac_tool_warned=yes ;;
16726 esac
16727 DLLTOOL=$ac_ct_DLLTOOL
16729 else
16730 DLLTOOL="$ac_cv_prog_DLLTOOL"
16733 if test -n "$ac_tool_prefix"; then
16734 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16735 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16737 $as_echo_n "checking for $ac_word... " >&6; }
16738 if ${ac_cv_prog_OBJDUMP+:} false; then :
16739 $as_echo_n "(cached) " >&6
16740 else
16741 if test -n "$OBJDUMP"; then
16742 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16743 else
16744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16745 for as_dir in $PATH
16747 IFS=$as_save_IFS
16748 test -z "$as_dir" && as_dir=.
16749 for ac_exec_ext in '' $ac_executable_extensions; do
16750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16751 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16753 break 2
16755 done
16756 done
16757 IFS=$as_save_IFS
16761 OBJDUMP=$ac_cv_prog_OBJDUMP
16762 if test -n "$OBJDUMP"; then
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16764 $as_echo "$OBJDUMP" >&6; }
16765 else
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767 $as_echo "no" >&6; }
16772 if test -z "$ac_cv_prog_OBJDUMP"; then
16773 ac_ct_OBJDUMP=$OBJDUMP
16774 # Extract the first word of "objdump", so it can be a program name with args.
16775 set dummy objdump; ac_word=$2
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16777 $as_echo_n "checking for $ac_word... " >&6; }
16778 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16779 $as_echo_n "(cached) " >&6
16780 else
16781 if test -n "$ac_ct_OBJDUMP"; then
16782 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16783 else
16784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16785 for as_dir in $PATH
16787 IFS=$as_save_IFS
16788 test -z "$as_dir" && as_dir=.
16789 for ac_exec_ext in '' $ac_executable_extensions; do
16790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16791 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16793 break 2
16795 done
16796 done
16797 IFS=$as_save_IFS
16801 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16802 if test -n "$ac_ct_OBJDUMP"; then
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16804 $as_echo "$ac_ct_OBJDUMP" >&6; }
16805 else
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16807 $as_echo "no" >&6; }
16810 if test "x$ac_ct_OBJDUMP" = x; then
16811 OBJDUMP="false"
16812 else
16813 case $cross_compiling:$ac_tool_warned in
16814 yes:)
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16817 ac_tool_warned=yes ;;
16818 esac
16819 OBJDUMP=$ac_ct_OBJDUMP
16821 else
16822 OBJDUMP="$ac_cv_prog_OBJDUMP"
16826 esac
16828 test -z "$AS" && AS=as
16834 test -z "$DLLTOOL" && DLLTOOL=dlltool
16837 test -z "$OBJDUMP" && OBJDUMP=objdump
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
16844 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
16845 if ${gl_cv_ld_output_def+:} false; then :
16846 $as_echo_n "(cached) " >&6
16847 else
16848 if test "$enable_shared" = no; then
16849 gl_cv_ld_output_def="not needed, shared libraries are disabled"
16850 else
16851 gl_ldflags_save=$LDFLAGS
16852 LDFLAGS="-Wl,--output-def,conftest.def"
16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854 /* end confdefs.h. */
16857 main ()
16861 return 0;
16863 _ACEOF
16864 if ac_fn_c_try_link "$LINENO"; then :
16865 gl_cv_ld_output_def=yes
16866 else
16867 gl_cv_ld_output_def=no
16869 rm -f core conftest.err conftest.$ac_objext \
16870 conftest$ac_exeext conftest.$ac_ext
16871 rm -f conftest.def
16872 LDFLAGS="$gl_ldflags_save"
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
16876 $as_echo "$gl_cv_ld_output_def" >&6; }
16877 if test "x$gl_cv_ld_output_def" = "xyes"; then
16878 HAVE_LD_OUTPUT_DEF_TRUE=
16879 HAVE_LD_OUTPUT_DEF_FALSE='#'
16880 else
16881 HAVE_LD_OUTPUT_DEF_TRUE='#'
16882 HAVE_LD_OUTPUT_DEF_FALSE=
16890 ac_config_files="$ac_config_files Makefile dist-build/Makefile libsodium.pc libsodium-uninstalled.pc msvc-scripts/Makefile src/Makefile src/libsodium/Makefile src/libsodium/include/Makefile src/libsodium/include/sodium/version.h test/default/Makefile test/Makefile"
16892 cat >confcache <<\_ACEOF
16893 # This file is a shell script that caches the results of configure
16894 # tests run on this system so they can be shared between configure
16895 # scripts and configure runs, see configure's option --config-cache.
16896 # It is not useful on other systems. If it contains results you don't
16897 # want to keep, you may remove or edit it.
16899 # config.status only pays attention to the cache file if you give it
16900 # the --recheck option to rerun configure.
16902 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16903 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16904 # following values.
16906 _ACEOF
16908 # The following way of writing the cache mishandles newlines in values,
16909 # but we know of no workaround that is simple, portable, and efficient.
16910 # So, we kill variables containing newlines.
16911 # Ultrix sh set writes to stderr and can't be redirected directly,
16912 # and sets the high bit in the cache file unless we assign to the vars.
16914 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16915 eval ac_val=\$$ac_var
16916 case $ac_val in #(
16917 *${as_nl}*)
16918 case $ac_var in #(
16919 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16920 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16921 esac
16922 case $ac_var in #(
16923 _ | IFS | as_nl) ;; #(
16924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16925 *) { eval $ac_var=; unset $ac_var;} ;;
16926 esac ;;
16927 esac
16928 done
16930 (set) 2>&1 |
16931 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16932 *${as_nl}ac_space=\ *)
16933 # `set' does not quote correctly, so add quotes: double-quote
16934 # substitution turns \\\\ into \\, and sed turns \\ into \.
16935 sed -n \
16936 "s/'/'\\\\''/g;
16937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16938 ;; #(
16940 # `set' quotes correctly as required by POSIX, so do not add quotes.
16941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16943 esac |
16944 sort
16946 sed '
16947 /^ac_cv_env_/b end
16948 t clear
16949 :clear
16950 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16951 t end
16952 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16953 :end' >>confcache
16954 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16955 if test -w "$cache_file"; then
16956 if test "x$cache_file" != "x/dev/null"; then
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16958 $as_echo "$as_me: updating cache $cache_file" >&6;}
16959 if test ! -f "$cache_file" || test -h "$cache_file"; then
16960 cat confcache >"$cache_file"
16961 else
16962 case $cache_file in #(
16963 */* | ?:*)
16964 mv -f confcache "$cache_file"$$ &&
16965 mv -f "$cache_file"$$ "$cache_file" ;; #(
16967 mv -f confcache "$cache_file" ;;
16968 esac
16971 else
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16973 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16976 rm -f confcache
16978 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16979 # Let make expand exec_prefix.
16980 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16982 # Transform confdefs.h into DEFS.
16983 # Protect against shell expansion while executing Makefile rules.
16984 # Protect against Makefile macro expansion.
16986 # If the first sed substitution is executed (which looks for macros that
16987 # take arguments), then branch to the quote section. Otherwise,
16988 # look for a macro that doesn't take arguments.
16989 ac_script='
16990 :mline
16991 /\\$/{
16993 s,\\\n,,
16994 b mline
16996 t clear
16997 :clear
16998 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16999 t quote
17000 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17001 t quote
17002 b any
17003 :quote
17004 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17005 s/\[/\\&/g
17006 s/\]/\\&/g
17007 s/\$/$$/g
17009 :any
17012 s/^\n//
17013 s/\n/ /g
17017 DEFS=`sed -n "$ac_script" confdefs.h`
17020 ac_libobjs=
17021 ac_ltlibobjs=
17023 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17024 # 1. Remove the extension, and $U if already installed.
17025 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17026 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17027 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17028 # will be set to the directory where LIBOBJS objects are built.
17029 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17030 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17031 done
17032 LIBOBJS=$ac_libobjs
17034 LTLIBOBJS=$ac_ltlibobjs
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17038 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17039 if test -n "$am_sleep_pid"; then
17040 # Hide warnings about reused PIDs.
17041 wait $am_sleep_pid 2>/dev/null
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17044 $as_echo "done" >&6; }
17045 if test -n "$EXEEXT"; then
17046 am__EXEEXT_TRUE=
17047 am__EXEEXT_FALSE='#'
17048 else
17049 am__EXEEXT_TRUE='#'
17050 am__EXEEXT_FALSE=
17053 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17054 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17057 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17058 as_fn_error $? "conditional \"AMDEP\" was never defined.
17059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17061 if test -z "${MINIMAL_TRUE}" && test -z "${MINIMAL_FALSE}"; then
17062 as_fn_error $? "conditional \"MINIMAL\" was never defined.
17063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17065 if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then
17066 as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined.
17067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17069 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17070 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17073 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17074 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17077 if test -z "${HAVE_AMD64_ASM_TRUE}" && test -z "${HAVE_AMD64_ASM_FALSE}"; then
17078 as_fn_error $? "conditional \"HAVE_AMD64_ASM\" was never defined.
17079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17081 if test -z "${HAVE_AVX_ASM_TRUE}" && test -z "${HAVE_AVX_ASM_FALSE}"; then
17082 as_fn_error $? "conditional \"HAVE_AVX_ASM\" was never defined.
17083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17085 if test -z "${HAVE_TI_MODE_TRUE}" && test -z "${HAVE_TI_MODE_FALSE}"; then
17086 as_fn_error $? "conditional \"HAVE_TI_MODE\" was never defined.
17087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17089 if test -z "${EMSCRIPTEN_TRUE}" && test -z "${EMSCRIPTEN_FALSE}"; then
17090 as_fn_error $? "conditional \"EMSCRIPTEN\" was never defined.
17091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17093 if test -z "${NATIVECLIENT_TRUE}" && test -z "${NATIVECLIENT_FALSE}"; then
17094 as_fn_error $? "conditional \"NATIVECLIENT\" was never defined.
17095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17097 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
17098 as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
17099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17102 : "${CONFIG_STATUS=./config.status}"
17103 ac_write_fail=0
17104 ac_clean_files_save=$ac_clean_files
17105 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17107 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17108 as_write_fail=0
17109 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17110 #! $SHELL
17111 # Generated by $as_me.
17112 # Run this file to recreate the current configuration.
17113 # Compiler output produced by configure, useful for debugging
17114 # configure, is in config.log if it exists.
17116 debug=false
17117 ac_cs_recheck=false
17118 ac_cs_silent=false
17120 SHELL=\${CONFIG_SHELL-$SHELL}
17121 export SHELL
17122 _ASEOF
17123 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17124 ## -------------------- ##
17125 ## M4sh Initialization. ##
17126 ## -------------------- ##
17128 # Be more Bourne compatible
17129 DUALCASE=1; export DUALCASE # for MKS sh
17130 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17131 emulate sh
17132 NULLCMD=:
17133 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17134 # is contrary to our usage. Disable this feature.
17135 alias -g '${1+"$@"}'='"$@"'
17136 setopt NO_GLOB_SUBST
17137 else
17138 case `(set -o) 2>/dev/null` in #(
17139 *posix*) :
17140 set -o posix ;; #(
17141 *) :
17143 esac
17147 as_nl='
17149 export as_nl
17150 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17151 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17152 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17153 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17154 # Prefer a ksh shell builtin over an external printf program on Solaris,
17155 # but without wasting forks for bash or zsh.
17156 if test -z "$BASH_VERSION$ZSH_VERSION" \
17157 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17158 as_echo='print -r --'
17159 as_echo_n='print -rn --'
17160 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17161 as_echo='printf %s\n'
17162 as_echo_n='printf %s'
17163 else
17164 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17165 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17166 as_echo_n='/usr/ucb/echo -n'
17167 else
17168 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17169 as_echo_n_body='eval
17170 arg=$1;
17171 case $arg in #(
17172 *"$as_nl"*)
17173 expr "X$arg" : "X\\(.*\\)$as_nl";
17174 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17175 esac;
17176 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17178 export as_echo_n_body
17179 as_echo_n='sh -c $as_echo_n_body as_echo'
17181 export as_echo_body
17182 as_echo='sh -c $as_echo_body as_echo'
17185 # The user is always right.
17186 if test "${PATH_SEPARATOR+set}" != set; then
17187 PATH_SEPARATOR=:
17188 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17189 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17190 PATH_SEPARATOR=';'
17195 # IFS
17196 # We need space, tab and new line, in precisely that order. Quoting is
17197 # there to prevent editors from complaining about space-tab.
17198 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17199 # splitting by setting IFS to empty value.)
17200 IFS=" "" $as_nl"
17202 # Find who we are. Look in the path if we contain no directory separator.
17203 as_myself=
17204 case $0 in #((
17205 *[\\/]* ) as_myself=$0 ;;
17206 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17207 for as_dir in $PATH
17209 IFS=$as_save_IFS
17210 test -z "$as_dir" && as_dir=.
17211 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17212 done
17213 IFS=$as_save_IFS
17216 esac
17217 # We did not find ourselves, most probably we were run as `sh COMMAND'
17218 # in which case we are not to be found in the path.
17219 if test "x$as_myself" = x; then
17220 as_myself=$0
17222 if test ! -f "$as_myself"; then
17223 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17224 exit 1
17227 # Unset variables that we do not need and which cause bugs (e.g. in
17228 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17229 # suppresses any "Segmentation fault" message there. '((' could
17230 # trigger a bug in pdksh 5.2.14.
17231 for as_var in BASH_ENV ENV MAIL MAILPATH
17232 do eval test x\${$as_var+set} = xset \
17233 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17234 done
17235 PS1='$ '
17236 PS2='> '
17237 PS4='+ '
17239 # NLS nuisances.
17240 LC_ALL=C
17241 export LC_ALL
17242 LANGUAGE=C
17243 export LANGUAGE
17245 # CDPATH.
17246 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17249 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17250 # ----------------------------------------
17251 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17252 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17253 # script with STATUS, using 1 if that was 0.
17254 as_fn_error ()
17256 as_status=$1; test $as_status -eq 0 && as_status=1
17257 if test "$4"; then
17258 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17259 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17261 $as_echo "$as_me: error: $2" >&2
17262 as_fn_exit $as_status
17263 } # as_fn_error
17266 # as_fn_set_status STATUS
17267 # -----------------------
17268 # Set $? to STATUS, without forking.
17269 as_fn_set_status ()
17271 return $1
17272 } # as_fn_set_status
17274 # as_fn_exit STATUS
17275 # -----------------
17276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17277 as_fn_exit ()
17279 set +e
17280 as_fn_set_status $1
17281 exit $1
17282 } # as_fn_exit
17284 # as_fn_unset VAR
17285 # ---------------
17286 # Portably unset VAR.
17287 as_fn_unset ()
17289 { eval $1=; unset $1;}
17291 as_unset=as_fn_unset
17292 # as_fn_append VAR VALUE
17293 # ----------------------
17294 # Append the text in VALUE to the end of the definition contained in VAR. Take
17295 # advantage of any shell optimizations that allow amortized linear growth over
17296 # repeated appends, instead of the typical quadratic growth present in naive
17297 # implementations.
17298 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17299 eval 'as_fn_append ()
17301 eval $1+=\$2
17303 else
17304 as_fn_append ()
17306 eval $1=\$$1\$2
17308 fi # as_fn_append
17310 # as_fn_arith ARG...
17311 # ------------------
17312 # Perform arithmetic evaluation on the ARGs, and store the result in the
17313 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17314 # must be portable across $(()) and expr.
17315 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17316 eval 'as_fn_arith ()
17318 as_val=$(( $* ))
17320 else
17321 as_fn_arith ()
17323 as_val=`expr "$@" || test $? -eq 1`
17325 fi # as_fn_arith
17328 if expr a : '\(a\)' >/dev/null 2>&1 &&
17329 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17330 as_expr=expr
17331 else
17332 as_expr=false
17335 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17336 as_basename=basename
17337 else
17338 as_basename=false
17341 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17342 as_dirname=dirname
17343 else
17344 as_dirname=false
17347 as_me=`$as_basename -- "$0" ||
17348 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17349 X"$0" : 'X\(//\)$' \| \
17350 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17351 $as_echo X/"$0" |
17352 sed '/^.*\/\([^/][^/]*\)\/*$/{
17353 s//\1/
17356 /^X\/\(\/\/\)$/{
17357 s//\1/
17360 /^X\/\(\/\).*/{
17361 s//\1/
17364 s/.*/./; q'`
17366 # Avoid depending upon Character Ranges.
17367 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17368 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17369 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17370 as_cr_digits='0123456789'
17371 as_cr_alnum=$as_cr_Letters$as_cr_digits
17373 ECHO_C= ECHO_N= ECHO_T=
17374 case `echo -n x` in #(((((
17375 -n*)
17376 case `echo 'xy\c'` in
17377 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17378 xy) ECHO_C='\c';;
17379 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17380 ECHO_T=' ';;
17381 esac;;
17383 ECHO_N='-n';;
17384 esac
17386 rm -f conf$$ conf$$.exe conf$$.file
17387 if test -d conf$$.dir; then
17388 rm -f conf$$.dir/conf$$.file
17389 else
17390 rm -f conf$$.dir
17391 mkdir conf$$.dir 2>/dev/null
17393 if (echo >conf$$.file) 2>/dev/null; then
17394 if ln -s conf$$.file conf$$ 2>/dev/null; then
17395 as_ln_s='ln -s'
17396 # ... but there are two gotchas:
17397 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17398 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17399 # In both cases, we have to default to `cp -pR'.
17400 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17401 as_ln_s='cp -pR'
17402 elif ln conf$$.file conf$$ 2>/dev/null; then
17403 as_ln_s=ln
17404 else
17405 as_ln_s='cp -pR'
17407 else
17408 as_ln_s='cp -pR'
17410 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17411 rmdir conf$$.dir 2>/dev/null
17414 # as_fn_mkdir_p
17415 # -------------
17416 # Create "$as_dir" as a directory, including parents if necessary.
17417 as_fn_mkdir_p ()
17420 case $as_dir in #(
17421 -*) as_dir=./$as_dir;;
17422 esac
17423 test -d "$as_dir" || eval $as_mkdir_p || {
17424 as_dirs=
17425 while :; do
17426 case $as_dir in #(
17427 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17428 *) as_qdir=$as_dir;;
17429 esac
17430 as_dirs="'$as_qdir' $as_dirs"
17431 as_dir=`$as_dirname -- "$as_dir" ||
17432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17433 X"$as_dir" : 'X\(//\)[^/]' \| \
17434 X"$as_dir" : 'X\(//\)$' \| \
17435 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17436 $as_echo X"$as_dir" |
17437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17438 s//\1/
17441 /^X\(\/\/\)[^/].*/{
17442 s//\1/
17445 /^X\(\/\/\)$/{
17446 s//\1/
17449 /^X\(\/\).*/{
17450 s//\1/
17453 s/.*/./; q'`
17454 test -d "$as_dir" && break
17455 done
17456 test -z "$as_dirs" || eval "mkdir $as_dirs"
17457 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17460 } # as_fn_mkdir_p
17461 if mkdir -p . 2>/dev/null; then
17462 as_mkdir_p='mkdir -p "$as_dir"'
17463 else
17464 test -d ./-p && rmdir ./-p
17465 as_mkdir_p=false
17469 # as_fn_executable_p FILE
17470 # -----------------------
17471 # Test if FILE is an executable regular file.
17472 as_fn_executable_p ()
17474 test -f "$1" && test -x "$1"
17475 } # as_fn_executable_p
17476 as_test_x='test -x'
17477 as_executable_p=as_fn_executable_p
17479 # Sed expression to map a string onto a valid CPP name.
17480 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17482 # Sed expression to map a string onto a valid variable name.
17483 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17486 exec 6>&1
17487 ## ----------------------------------- ##
17488 ## Main body of $CONFIG_STATUS script. ##
17489 ## ----------------------------------- ##
17490 _ASEOF
17491 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17494 # Save the log message, to keep $0 and so on meaningful, and to
17495 # report actual input values of CONFIG_FILES etc. instead of their
17496 # values after options handling.
17497 ac_log="
17498 This file was extended by libsodium $as_me 1.0.10, which was
17499 generated by GNU Autoconf 2.69. Invocation command line was
17501 CONFIG_FILES = $CONFIG_FILES
17502 CONFIG_HEADERS = $CONFIG_HEADERS
17503 CONFIG_LINKS = $CONFIG_LINKS
17504 CONFIG_COMMANDS = $CONFIG_COMMANDS
17505 $ $0 $@
17507 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17510 _ACEOF
17512 case $ac_config_files in *"
17513 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17514 esac
17518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17519 # Files that config.status was made for.
17520 config_files="$ac_config_files"
17521 config_commands="$ac_config_commands"
17523 _ACEOF
17525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17526 ac_cs_usage="\
17527 \`$as_me' instantiates files and other configuration actions
17528 from templates according to the current configuration. Unless the files
17529 and actions are specified as TAGs, all are instantiated by default.
17531 Usage: $0 [OPTION]... [TAG]...
17533 -h, --help print this help, then exit
17534 -V, --version print version number and configuration settings, then exit
17535 --config print configuration, then exit
17536 -q, --quiet, --silent
17537 do not print progress messages
17538 -d, --debug don't remove temporary files
17539 --recheck update $as_me by reconfiguring in the same conditions
17540 --file=FILE[:TEMPLATE]
17541 instantiate the configuration file FILE
17543 Configuration files:
17544 $config_files
17546 Configuration commands:
17547 $config_commands
17549 Report bugs to <https://github.com/jedisct1/libsodium/issues>.
17550 libsodium home page: <https://github.com/jedisct1/libsodium>."
17552 _ACEOF
17553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17554 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17555 ac_cs_version="\\
17556 libsodium config.status 1.0.10
17557 configured by $0, generated by GNU Autoconf 2.69,
17558 with options \\"\$ac_cs_config\\"
17560 Copyright (C) 2012 Free Software Foundation, Inc.
17561 This config.status script is free software; the Free Software Foundation
17562 gives unlimited permission to copy, distribute and modify it."
17564 ac_pwd='$ac_pwd'
17565 srcdir='$srcdir'
17566 INSTALL='$INSTALL'
17567 MKDIR_P='$MKDIR_P'
17568 AWK='$AWK'
17569 test -n "\$AWK" || AWK=awk
17570 _ACEOF
17572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17573 # The default lists apply if the user does not specify any file.
17574 ac_need_defaults=:
17575 while test $# != 0
17577 case $1 in
17578 --*=?*)
17579 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17580 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17581 ac_shift=:
17583 --*=)
17584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17585 ac_optarg=
17586 ac_shift=:
17589 ac_option=$1
17590 ac_optarg=$2
17591 ac_shift=shift
17593 esac
17595 case $ac_option in
17596 # Handling of the options.
17597 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17598 ac_cs_recheck=: ;;
17599 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17600 $as_echo "$ac_cs_version"; exit ;;
17601 --config | --confi | --conf | --con | --co | --c )
17602 $as_echo "$ac_cs_config"; exit ;;
17603 --debug | --debu | --deb | --de | --d | -d )
17604 debug=: ;;
17605 --file | --fil | --fi | --f )
17606 $ac_shift
17607 case $ac_optarg in
17608 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17609 '') as_fn_error $? "missing file argument" ;;
17610 esac
17611 as_fn_append CONFIG_FILES " '$ac_optarg'"
17612 ac_need_defaults=false;;
17613 --he | --h | --help | --hel | -h )
17614 $as_echo "$ac_cs_usage"; exit ;;
17615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17617 ac_cs_silent=: ;;
17619 # This is an error.
17620 -*) as_fn_error $? "unrecognized option: \`$1'
17621 Try \`$0 --help' for more information." ;;
17623 *) as_fn_append ac_config_targets " $1"
17624 ac_need_defaults=false ;;
17626 esac
17627 shift
17628 done
17630 ac_configure_extra_args=
17632 if $ac_cs_silent; then
17633 exec 6>/dev/null
17634 ac_configure_extra_args="$ac_configure_extra_args --silent"
17637 _ACEOF
17638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17639 if \$ac_cs_recheck; then
17640 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17641 shift
17642 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17643 CONFIG_SHELL='$SHELL'
17644 export CONFIG_SHELL
17645 exec "\$@"
17648 _ACEOF
17649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17650 exec 5>>config.log
17652 echo
17653 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17654 ## Running $as_me. ##
17655 _ASBOX
17656 $as_echo "$ac_log"
17657 } >&5
17659 _ACEOF
17660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17662 # INIT-COMMANDS
17664 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17667 # The HP-UX ksh and POSIX shell print the target directory to stdout
17668 # if CDPATH is set.
17669 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17671 sed_quote_subst='$sed_quote_subst'
17672 double_quote_subst='$double_quote_subst'
17673 delay_variable_subst='$delay_variable_subst'
17674 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17675 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17676 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17677 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17678 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17679 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17680 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17681 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17682 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17683 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17684 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17685 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17686 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17687 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17688 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17689 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17690 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17691 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17692 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17693 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17694 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17695 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17696 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17697 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17698 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17699 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17700 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17701 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17702 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17703 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17704 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17705 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17706 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17707 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17708 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17709 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17710 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17711 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17712 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17713 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17714 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17715 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17716 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17717 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17718 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17719 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17720 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17721 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17722 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17723 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17724 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17725 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17726 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17727 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17728 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17729 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17730 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17731 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17732 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"`'
17733 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17734 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17735 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17736 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17737 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17738 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17739 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17740 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17741 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17742 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17743 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17744 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17745 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17746 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17747 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17748 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17749 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17750 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17751 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17752 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17753 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17754 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17755 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17756 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17757 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17758 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17759 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17760 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17761 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17762 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17763 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17764 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17765 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17766 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17767 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17768 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17769 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17770 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17771 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17772 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17773 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17774 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17775 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17776 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17777 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17778 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17779 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17780 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17781 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17782 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17783 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17784 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17785 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17786 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17787 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17788 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17789 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17790 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17791 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17792 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17793 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17794 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17795 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17796 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17797 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17798 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17799 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17800 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17801 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17802 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17803 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17804 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17805 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17806 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17807 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17808 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17809 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17811 LTCC='$LTCC'
17812 LTCFLAGS='$LTCFLAGS'
17813 compiler='$compiler_DEFAULT'
17815 # A function that is used when there is no print builtin or printf.
17816 func_fallback_echo ()
17818 eval 'cat <<_LTECHO_EOF
17820 _LTECHO_EOF'
17823 # Quote evaled strings.
17824 for var in SHELL \
17825 ECHO \
17826 PATH_SEPARATOR \
17827 SED \
17828 GREP \
17829 EGREP \
17830 FGREP \
17831 LD \
17832 NM \
17833 LN_S \
17834 lt_SP2NL \
17835 lt_NL2SP \
17836 reload_flag \
17837 OBJDUMP \
17838 deplibs_check_method \
17839 file_magic_cmd \
17840 file_magic_glob \
17841 want_nocaseglob \
17842 DLLTOOL \
17843 sharedlib_from_linklib_cmd \
17844 AR \
17845 AR_FLAGS \
17846 archiver_list_spec \
17847 STRIP \
17848 RANLIB \
17849 CC \
17850 CFLAGS \
17851 compiler \
17852 lt_cv_sys_global_symbol_pipe \
17853 lt_cv_sys_global_symbol_to_cdecl \
17854 lt_cv_sys_global_symbol_to_import \
17855 lt_cv_sys_global_symbol_to_c_name_address \
17856 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17857 lt_cv_nm_interface \
17858 nm_file_list_spec \
17859 lt_cv_truncate_bin \
17860 lt_prog_compiler_no_builtin_flag \
17861 lt_prog_compiler_pic \
17862 lt_prog_compiler_wl \
17863 lt_prog_compiler_static \
17864 lt_cv_prog_compiler_c_o \
17865 need_locks \
17866 MANIFEST_TOOL \
17867 DSYMUTIL \
17868 NMEDIT \
17869 LIPO \
17870 OTOOL \
17871 OTOOL64 \
17872 shrext_cmds \
17873 export_dynamic_flag_spec \
17874 whole_archive_flag_spec \
17875 compiler_needs_object \
17876 with_gnu_ld \
17877 allow_undefined_flag \
17878 no_undefined_flag \
17879 hardcode_libdir_flag_spec \
17880 hardcode_libdir_separator \
17881 exclude_expsyms \
17882 include_expsyms \
17883 file_list_spec \
17884 variables_saved_for_relink \
17885 libname_spec \
17886 library_names_spec \
17887 soname_spec \
17888 install_override_mode \
17889 finish_eval \
17890 old_striplib \
17891 striplib \
17892 AS; do
17893 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17894 *[\\\\\\\`\\"\\\$]*)
17895 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17898 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17900 esac
17901 done
17903 # Double-quote double-evaled strings.
17904 for var in reload_cmds \
17905 old_postinstall_cmds \
17906 old_postuninstall_cmds \
17907 old_archive_cmds \
17908 extract_expsyms_cmds \
17909 old_archive_from_new_cmds \
17910 old_archive_from_expsyms_cmds \
17911 archive_cmds \
17912 archive_expsym_cmds \
17913 module_cmds \
17914 module_expsym_cmds \
17915 export_symbols_cmds \
17916 prelink_cmds \
17917 postlink_cmds \
17918 postinstall_cmds \
17919 postuninstall_cmds \
17920 finish_cmds \
17921 sys_lib_search_path_spec \
17922 configure_time_dlsearch_path \
17923 configure_time_lt_sys_library_path; do
17924 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17925 *[\\\\\\\`\\"\\\$]*)
17926 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17929 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17931 esac
17932 done
17934 ac_aux_dir='$ac_aux_dir'
17936 # See if we are running on zsh, and set the options that allow our
17937 # commands through without removal of \ escapes INIT.
17938 if test -n "\${ZSH_VERSION+set}"; then
17939 setopt NO_GLOB_SUBST
17943 PACKAGE='$PACKAGE'
17944 VERSION='$VERSION'
17945 RM='$RM'
17946 ofile='$ofile'
17951 _ACEOF
17953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17955 # Handling of arguments.
17956 for ac_config_target in $ac_config_targets
17958 case $ac_config_target in
17959 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17960 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17961 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17962 "dist-build/Makefile") CONFIG_FILES="$CONFIG_FILES dist-build/Makefile" ;;
17963 "libsodium.pc") CONFIG_FILES="$CONFIG_FILES libsodium.pc" ;;
17964 "libsodium-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libsodium-uninstalled.pc" ;;
17965 "msvc-scripts/Makefile") CONFIG_FILES="$CONFIG_FILES msvc-scripts/Makefile" ;;
17966 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17967 "src/libsodium/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/Makefile" ;;
17968 "src/libsodium/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/Makefile" ;;
17969 "src/libsodium/include/sodium/version.h") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/sodium/version.h" ;;
17970 "test/default/Makefile") CONFIG_FILES="$CONFIG_FILES test/default/Makefile" ;;
17971 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
17973 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17974 esac
17975 done
17978 # If the user did not use the arguments to specify the items to instantiate,
17979 # then the envvar interface is used. Set only those that are not.
17980 # We use the long form for the default assignment because of an extremely
17981 # bizarre bug on SunOS 4.1.3.
17982 if $ac_need_defaults; then
17983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17984 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17987 # Have a temporary directory for convenience. Make it in the build tree
17988 # simply because there is no reason against having it here, and in addition,
17989 # creating and moving files from /tmp can sometimes cause problems.
17990 # Hook for its removal unless debugging.
17991 # Note that there is a small window in which the directory will not be cleaned:
17992 # after its creation but before its name has been assigned to `$tmp'.
17993 $debug ||
17995 tmp= ac_tmp=
17996 trap 'exit_status=$?
17997 : "${ac_tmp:=$tmp}"
17998 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18000 trap 'as_fn_exit 1' 1 2 13 15
18002 # Create a (secure) tmp directory for tmp files.
18005 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18006 test -d "$tmp"
18007 } ||
18009 tmp=./conf$$-$RANDOM
18010 (umask 077 && mkdir "$tmp")
18011 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18012 ac_tmp=$tmp
18014 # Set up the scripts for CONFIG_FILES section.
18015 # No need to generate them if there are no CONFIG_FILES.
18016 # This happens for instance with `./config.status config.h'.
18017 if test -n "$CONFIG_FILES"; then
18020 ac_cr=`echo X | tr X '\015'`
18021 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18022 # But we know of no other shell where ac_cr would be empty at this
18023 # point, so we can use a bashism as a fallback.
18024 if test "x$ac_cr" = x; then
18025 eval ac_cr=\$\'\\r\'
18027 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18028 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18029 ac_cs_awk_cr='\\r'
18030 else
18031 ac_cs_awk_cr=$ac_cr
18034 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18035 _ACEOF
18039 echo "cat >conf$$subs.awk <<_ACEOF" &&
18040 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18041 echo "_ACEOF"
18042 } >conf$$subs.sh ||
18043 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18044 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18045 ac_delim='%!_!# '
18046 for ac_last_try in false false false false false :; do
18047 . ./conf$$subs.sh ||
18048 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18050 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18051 if test $ac_delim_n = $ac_delim_num; then
18052 break
18053 elif $ac_last_try; then
18054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18055 else
18056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18058 done
18059 rm -f conf$$subs.sh
18061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18062 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18063 _ACEOF
18064 sed -n '
18066 s/^/S["/; s/!.*/"]=/
18069 s/^[^!]*!//
18070 :repl
18071 t repl
18072 s/'"$ac_delim"'$//
18073 t delim
18076 s/\(.\{148\}\)..*/\1/
18077 t more1
18078 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18081 b repl
18082 :more1
18083 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18086 s/.\{148\}//
18087 t nl
18088 :delim
18090 s/\(.\{148\}\)..*/\1/
18091 t more2
18092 s/["\\]/\\&/g; s/^/"/; s/$/"/
18095 :more2
18096 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18099 s/.\{148\}//
18100 t delim
18101 ' <conf$$subs.awk | sed '
18102 /^[^""]/{
18104 s/\n//
18106 ' >>$CONFIG_STATUS || ac_write_fail=1
18107 rm -f conf$$subs.awk
18108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18109 _ACAWK
18110 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18111 for (key in S) S_is_set[key] = 1
18112 FS = "\a"
18116 line = $ 0
18117 nfields = split(line, field, "@")
18118 substed = 0
18119 len = length(field[1])
18120 for (i = 2; i < nfields; i++) {
18121 key = field[i]
18122 keylen = length(key)
18123 if (S_is_set[key]) {
18124 value = S[key]
18125 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18126 len += length(value) + length(field[++i])
18127 substed = 1
18128 } else
18129 len += 1 + keylen
18132 print line
18135 _ACAWK
18136 _ACEOF
18137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18138 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18139 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18140 else
18142 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18143 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18144 _ACEOF
18146 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18147 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18148 # trailing colons and then remove the whole line if VPATH becomes empty
18149 # (actually we leave an empty line to preserve line numbers).
18150 if test "x$srcdir" = x.; then
18151 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18153 s///
18154 s/^/:/
18155 s/[ ]*$/:/
18156 s/:\$(srcdir):/:/g
18157 s/:\${srcdir}:/:/g
18158 s/:@srcdir@:/:/g
18159 s/^:*//
18160 s/:*$//
18162 s/\(=[ ]*\).*/\1/
18164 s/\n//
18165 s/^[^=]*=[ ]*$//
18169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18170 fi # test -n "$CONFIG_FILES"
18173 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
18174 shift
18175 for ac_tag
18177 case $ac_tag in
18178 :[FHLC]) ac_mode=$ac_tag; continue;;
18179 esac
18180 case $ac_mode$ac_tag in
18181 :[FHL]*:*);;
18182 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18183 :[FH]-) ac_tag=-:-;;
18184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18185 esac
18186 ac_save_IFS=$IFS
18187 IFS=:
18188 set x $ac_tag
18189 IFS=$ac_save_IFS
18190 shift
18191 ac_file=$1
18192 shift
18194 case $ac_mode in
18195 :L) ac_source=$1;;
18196 :[FH])
18197 ac_file_inputs=
18198 for ac_f
18200 case $ac_f in
18201 -) ac_f="$ac_tmp/stdin";;
18202 *) # Look for the file first in the build tree, then in the source tree
18203 # (if the path is not absolute). The absolute path cannot be DOS-style,
18204 # because $ac_f cannot contain `:'.
18205 test -f "$ac_f" ||
18206 case $ac_f in
18207 [\\/$]*) false;;
18208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18209 esac ||
18210 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18211 esac
18212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18213 as_fn_append ac_file_inputs " '$ac_f'"
18214 done
18216 # Let's still pretend it is `configure' which instantiates (i.e., don't
18217 # use $as_me), people would be surprised to read:
18218 # /* config.h. Generated by config.status. */
18219 configure_input='Generated from '`
18220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18221 `' by configure.'
18222 if test x"$ac_file" != x-; then
18223 configure_input="$ac_file. $configure_input"
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18225 $as_echo "$as_me: creating $ac_file" >&6;}
18227 # Neutralize special characters interpreted by sed in replacement strings.
18228 case $configure_input in #(
18229 *\&* | *\|* | *\\* )
18230 ac_sed_conf_input=`$as_echo "$configure_input" |
18231 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18232 *) ac_sed_conf_input=$configure_input;;
18233 esac
18235 case $ac_tag in
18236 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18238 esac
18240 esac
18242 ac_dir=`$as_dirname -- "$ac_file" ||
18243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18244 X"$ac_file" : 'X\(//\)[^/]' \| \
18245 X"$ac_file" : 'X\(//\)$' \| \
18246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18247 $as_echo X"$ac_file" |
18248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18249 s//\1/
18252 /^X\(\/\/\)[^/].*/{
18253 s//\1/
18256 /^X\(\/\/\)$/{
18257 s//\1/
18260 /^X\(\/\).*/{
18261 s//\1/
18264 s/.*/./; q'`
18265 as_dir="$ac_dir"; as_fn_mkdir_p
18266 ac_builddir=.
18268 case "$ac_dir" in
18269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18272 # A ".." for each directory in $ac_dir_suffix.
18273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18274 case $ac_top_builddir_sub in
18275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18277 esac ;;
18278 esac
18279 ac_abs_top_builddir=$ac_pwd
18280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18281 # for backward compatibility:
18282 ac_top_builddir=$ac_top_build_prefix
18284 case $srcdir in
18285 .) # We are building in place.
18286 ac_srcdir=.
18287 ac_top_srcdir=$ac_top_builddir_sub
18288 ac_abs_top_srcdir=$ac_pwd ;;
18289 [\\/]* | ?:[\\/]* ) # Absolute name.
18290 ac_srcdir=$srcdir$ac_dir_suffix;
18291 ac_top_srcdir=$srcdir
18292 ac_abs_top_srcdir=$srcdir ;;
18293 *) # Relative name.
18294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18295 ac_top_srcdir=$ac_top_build_prefix$srcdir
18296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18297 esac
18298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18301 case $ac_mode in
18304 # CONFIG_FILE
18307 case $INSTALL in
18308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18310 esac
18311 ac_MKDIR_P=$MKDIR_P
18312 case $MKDIR_P in
18313 [\\/$]* | ?:[\\/]* ) ;;
18314 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18315 esac
18316 _ACEOF
18318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18319 # If the template does not know about datarootdir, expand it.
18320 # FIXME: This hack should be removed a few years after 2.60.
18321 ac_datarootdir_hack=; ac_datarootdir_seen=
18322 ac_sed_dataroot='
18323 /datarootdir/ {
18327 /@datadir@/p
18328 /@docdir@/p
18329 /@infodir@/p
18330 /@localedir@/p
18331 /@mandir@/p'
18332 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18333 *datarootdir*) ac_datarootdir_seen=yes;;
18334 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18336 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18337 _ACEOF
18338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18339 ac_datarootdir_hack='
18340 s&@datadir@&$datadir&g
18341 s&@docdir@&$docdir&g
18342 s&@infodir@&$infodir&g
18343 s&@localedir@&$localedir&g
18344 s&@mandir@&$mandir&g
18345 s&\\\${datarootdir}&$datarootdir&g' ;;
18346 esac
18347 _ACEOF
18349 # Neutralize VPATH when `$srcdir' = `.'.
18350 # Shell code in configure.ac might set extrasub.
18351 # FIXME: do we really want to maintain this feature?
18352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18353 ac_sed_extra="$ac_vpsub
18354 $extrasub
18355 _ACEOF
18356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18359 s|@configure_input@|$ac_sed_conf_input|;t t
18360 s&@top_builddir@&$ac_top_builddir_sub&;t t
18361 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18362 s&@srcdir@&$ac_srcdir&;t t
18363 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18364 s&@top_srcdir@&$ac_top_srcdir&;t t
18365 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18366 s&@builddir@&$ac_builddir&;t t
18367 s&@abs_builddir@&$ac_abs_builddir&;t t
18368 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18369 s&@INSTALL@&$ac_INSTALL&;t t
18370 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18371 $ac_datarootdir_hack
18373 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18374 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18376 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18377 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18379 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18381 which seems to be undefined. Please make sure it is defined" >&5
18382 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18383 which seems to be undefined. Please make sure it is defined" >&2;}
18385 rm -f "$ac_tmp/stdin"
18386 case $ac_file in
18387 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18388 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18389 esac \
18390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18394 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18395 $as_echo "$as_me: executing $ac_file commands" >&6;}
18397 esac
18400 case $ac_file$ac_mode in
18401 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18402 # Older Autoconf quotes --file arguments for eval, but not when files
18403 # are listed without --file. Let's play safe and only enable the eval
18404 # if we detect the quoting.
18405 case $CONFIG_FILES in
18406 *\'*) eval set x "$CONFIG_FILES" ;;
18407 *) set x $CONFIG_FILES ;;
18408 esac
18409 shift
18410 for mf
18412 # Strip MF so we end up with the name of the file.
18413 mf=`echo "$mf" | sed -e 's/:.*$//'`
18414 # Check whether this is an Automake generated Makefile or not.
18415 # We used to match only the files named 'Makefile.in', but
18416 # some people rename them; so instead we look at the file content.
18417 # Grep'ing the first line is not enough: some people post-process
18418 # each Makefile.in and add a new line on top of each file to say so.
18419 # Grep'ing the whole file is not good either: AIX grep has a line
18420 # limit of 2048, but all sed's we know have understand at least 4000.
18421 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18422 dirpart=`$as_dirname -- "$mf" ||
18423 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18424 X"$mf" : 'X\(//\)[^/]' \| \
18425 X"$mf" : 'X\(//\)$' \| \
18426 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18427 $as_echo X"$mf" |
18428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18429 s//\1/
18432 /^X\(\/\/\)[^/].*/{
18433 s//\1/
18436 /^X\(\/\/\)$/{
18437 s//\1/
18440 /^X\(\/\).*/{
18441 s//\1/
18444 s/.*/./; q'`
18445 else
18446 continue
18448 # Extract the definition of DEPDIR, am__include, and am__quote
18449 # from the Makefile without running 'make'.
18450 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18451 test -z "$DEPDIR" && continue
18452 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18453 test -z "$am__include" && continue
18454 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18455 # Find all dependency output files, they are included files with
18456 # $(DEPDIR) in their names. We invoke sed twice because it is the
18457 # simplest approach to changing $(DEPDIR) to its actual value in the
18458 # expansion.
18459 for file in `sed -n "
18460 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18461 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18462 # Make sure the directory exists.
18463 test -f "$dirpart/$file" && continue
18464 fdir=`$as_dirname -- "$file" ||
18465 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18466 X"$file" : 'X\(//\)[^/]' \| \
18467 X"$file" : 'X\(//\)$' \| \
18468 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18469 $as_echo X"$file" |
18470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18471 s//\1/
18474 /^X\(\/\/\)[^/].*/{
18475 s//\1/
18478 /^X\(\/\/\)$/{
18479 s//\1/
18482 /^X\(\/\).*/{
18483 s//\1/
18486 s/.*/./; q'`
18487 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18488 # echo "creating $dirpart/$file"
18489 echo '# dummy' > "$dirpart/$file"
18490 done
18491 done
18494 "libtool":C)
18496 # See if we are running on zsh, and set the options that allow our
18497 # commands through without removal of \ escapes.
18498 if test -n "${ZSH_VERSION+set}"; then
18499 setopt NO_GLOB_SUBST
18502 cfgfile=${ofile}T
18503 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18504 $RM "$cfgfile"
18506 cat <<_LT_EOF >> "$cfgfile"
18507 #! $SHELL
18508 # Generated automatically by $as_me ($PACKAGE) $VERSION
18509 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18510 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18512 # Provide generalized library-building support services.
18513 # Written by Gordon Matzigkeit, 1996
18515 # Copyright (C) 2014 Free Software Foundation, Inc.
18516 # This is free software; see the source for copying conditions. There is NO
18517 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18519 # GNU Libtool is free software; you can redistribute it and/or modify
18520 # it under the terms of the GNU General Public License as published by
18521 # the Free Software Foundation; either version 2 of of the License, or
18522 # (at your option) any later version.
18524 # As a special exception to the GNU General Public License, if you
18525 # distribute this file as part of a program or library that is built
18526 # using GNU Libtool, you may include this file under the same
18527 # distribution terms that you use for the rest of that program.
18529 # GNU Libtool is distributed in the hope that it will be useful, but
18530 # WITHOUT ANY WARRANTY; without even the implied warranty of
18531 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18532 # GNU General Public License for more details.
18534 # You should have received a copy of the GNU General Public License
18535 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18538 # The names of the tagged configurations supported by this script.
18539 available_tags=''
18541 # Configured defaults for sys_lib_dlsearch_path munging.
18542 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18544 # ### BEGIN LIBTOOL CONFIG
18546 # Which release of libtool.m4 was used?
18547 macro_version=$macro_version
18548 macro_revision=$macro_revision
18550 # Whether or not to build shared libraries.
18551 build_libtool_libs=$enable_shared
18553 # Whether or not to build static libraries.
18554 build_old_libs=$enable_static
18556 # What type of objects to build.
18557 pic_mode=$pic_mode
18559 # Whether or not to optimize for fast installation.
18560 fast_install=$enable_fast_install
18562 # Shared archive member basename,for filename based shared library versioning on AIX.
18563 shared_archive_member_spec=$shared_archive_member_spec
18565 # Shell to use when invoking shell scripts.
18566 SHELL=$lt_SHELL
18568 # An echo program that protects backslashes.
18569 ECHO=$lt_ECHO
18571 # The PATH separator for the build system.
18572 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18574 # The host system.
18575 host_alias=$host_alias
18576 host=$host
18577 host_os=$host_os
18579 # The build system.
18580 build_alias=$build_alias
18581 build=$build
18582 build_os=$build_os
18584 # A sed program that does not truncate output.
18585 SED=$lt_SED
18587 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18588 Xsed="\$SED -e 1s/^X//"
18590 # A grep program that handles long lines.
18591 GREP=$lt_GREP
18593 # An ERE matcher.
18594 EGREP=$lt_EGREP
18596 # A literal string matcher.
18597 FGREP=$lt_FGREP
18599 # A BSD- or MS-compatible name lister.
18600 NM=$lt_NM
18602 # Whether we need soft or hard links.
18603 LN_S=$lt_LN_S
18605 # What is the maximum length of a command?
18606 max_cmd_len=$max_cmd_len
18608 # Object file suffix (normally "o").
18609 objext=$ac_objext
18611 # Executable file suffix (normally "").
18612 exeext=$exeext
18614 # whether the shell understands "unset".
18615 lt_unset=$lt_unset
18617 # turn spaces into newlines.
18618 SP2NL=$lt_lt_SP2NL
18620 # turn newlines into spaces.
18621 NL2SP=$lt_lt_NL2SP
18623 # convert \$build file names to \$host format.
18624 to_host_file_cmd=$lt_cv_to_host_file_cmd
18626 # convert \$build files to toolchain format.
18627 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18629 # An object symbol dumper.
18630 OBJDUMP=$lt_OBJDUMP
18632 # Method to check whether dependent libraries are shared objects.
18633 deplibs_check_method=$lt_deplibs_check_method
18635 # Command to use when deplibs_check_method = "file_magic".
18636 file_magic_cmd=$lt_file_magic_cmd
18638 # How to find potential files when deplibs_check_method = "file_magic".
18639 file_magic_glob=$lt_file_magic_glob
18641 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18642 want_nocaseglob=$lt_want_nocaseglob
18644 # DLL creation program.
18645 DLLTOOL=$lt_DLLTOOL
18647 # Command to associate shared and link libraries.
18648 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18650 # The archiver.
18651 AR=$lt_AR
18653 # Flags to create an archive.
18654 AR_FLAGS=$lt_AR_FLAGS
18656 # How to feed a file listing to the archiver.
18657 archiver_list_spec=$lt_archiver_list_spec
18659 # A symbol stripping program.
18660 STRIP=$lt_STRIP
18662 # Commands used to install an old-style archive.
18663 RANLIB=$lt_RANLIB
18664 old_postinstall_cmds=$lt_old_postinstall_cmds
18665 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18667 # Whether to use a lock for old archive extraction.
18668 lock_old_archive_extraction=$lock_old_archive_extraction
18670 # A C compiler.
18671 LTCC=$lt_CC
18673 # LTCC compiler flags.
18674 LTCFLAGS=$lt_CFLAGS
18676 # Take the output of nm and produce a listing of raw symbols and C names.
18677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18679 # Transform the output of nm in a proper C declaration.
18680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18682 # Transform the output of nm into a list of symbols to manually relocate.
18683 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18685 # Transform the output of nm in a C name address pair.
18686 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18688 # Transform the output of nm in a C name address pair when lib prefix is needed.
18689 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18691 # The name lister interface.
18692 nm_interface=$lt_lt_cv_nm_interface
18694 # Specify filename containing input files for \$NM.
18695 nm_file_list_spec=$lt_nm_file_list_spec
18697 # The root where to search for dependent libraries,and where our libraries should be installed.
18698 lt_sysroot=$lt_sysroot
18700 # Command to truncate a binary pipe.
18701 lt_truncate_bin=$lt_lt_cv_truncate_bin
18703 # The name of the directory that contains temporary libtool files.
18704 objdir=$objdir
18706 # Used to examine libraries when file_magic_cmd begins with "file".
18707 MAGIC_CMD=$MAGIC_CMD
18709 # Must we lock files when doing compilation?
18710 need_locks=$lt_need_locks
18712 # Manifest tool.
18713 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18715 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18716 DSYMUTIL=$lt_DSYMUTIL
18718 # Tool to change global to local symbols on Mac OS X.
18719 NMEDIT=$lt_NMEDIT
18721 # Tool to manipulate fat objects and archives on Mac OS X.
18722 LIPO=$lt_LIPO
18724 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18725 OTOOL=$lt_OTOOL
18727 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18728 OTOOL64=$lt_OTOOL64
18730 # Old archive suffix (normally "a").
18731 libext=$libext
18733 # Shared library suffix (normally ".so").
18734 shrext_cmds=$lt_shrext_cmds
18736 # The commands to extract the exported symbol list from a shared archive.
18737 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18739 # Variables whose values should be saved in libtool wrapper scripts and
18740 # restored at link time.
18741 variables_saved_for_relink=$lt_variables_saved_for_relink
18743 # Do we need the "lib" prefix for modules?
18744 need_lib_prefix=$need_lib_prefix
18746 # Do we need a version for libraries?
18747 need_version=$need_version
18749 # Library versioning type.
18750 version_type=$version_type
18752 # Shared library runtime path variable.
18753 runpath_var=$runpath_var
18755 # Shared library path variable.
18756 shlibpath_var=$shlibpath_var
18758 # Is shlibpath searched before the hard-coded library search path?
18759 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18761 # Format of library name prefix.
18762 libname_spec=$lt_libname_spec
18764 # List of archive names. First name is the real one, the rest are links.
18765 # The last name is the one that the linker finds with -lNAME
18766 library_names_spec=$lt_library_names_spec
18768 # The coded name of the library, if different from the real name.
18769 soname_spec=$lt_soname_spec
18771 # Permission mode override for installation of shared libraries.
18772 install_override_mode=$lt_install_override_mode
18774 # Command to use after installation of a shared archive.
18775 postinstall_cmds=$lt_postinstall_cmds
18777 # Command to use after uninstallation of a shared archive.
18778 postuninstall_cmds=$lt_postuninstall_cmds
18780 # Commands used to finish a libtool library installation in a directory.
18781 finish_cmds=$lt_finish_cmds
18783 # As "finish_cmds", except a single script fragment to be evaled but
18784 # not shown.
18785 finish_eval=$lt_finish_eval
18787 # Whether we should hardcode library paths into libraries.
18788 hardcode_into_libs=$hardcode_into_libs
18790 # Compile-time system search path for libraries.
18791 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18793 # Detected run-time system search path for libraries.
18794 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18796 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18797 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18799 # Whether dlopen is supported.
18800 dlopen_support=$enable_dlopen
18802 # Whether dlopen of programs is supported.
18803 dlopen_self=$enable_dlopen_self
18805 # Whether dlopen of statically linked programs is supported.
18806 dlopen_self_static=$enable_dlopen_self_static
18808 # Commands to strip libraries.
18809 old_striplib=$lt_old_striplib
18810 striplib=$lt_striplib
18812 # Assembler program.
18813 AS=$lt_AS
18816 # The linker used to build libraries.
18817 LD=$lt_LD
18819 # How to create reloadable object files.
18820 reload_flag=$lt_reload_flag
18821 reload_cmds=$lt_reload_cmds
18823 # Commands used to build an old-style archive.
18824 old_archive_cmds=$lt_old_archive_cmds
18826 # A language specific compiler.
18827 CC=$lt_compiler
18829 # Is the compiler the GNU compiler?
18830 with_gcc=$GCC
18832 # Compiler flag to turn off builtin functions.
18833 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18835 # Additional compiler flags for building library objects.
18836 pic_flag=$lt_lt_prog_compiler_pic
18838 # How to pass a linker flag through the compiler.
18839 wl=$lt_lt_prog_compiler_wl
18841 # Compiler flag to prevent dynamic linking.
18842 link_static_flag=$lt_lt_prog_compiler_static
18844 # Does compiler simultaneously support -c and -o options?
18845 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18847 # Whether or not to add -lc for building shared libraries.
18848 build_libtool_need_lc=$archive_cmds_need_lc
18850 # Whether or not to disallow shared libs when runtime libs are static.
18851 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18853 # Compiler flag to allow reflexive dlopens.
18854 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18856 # Compiler flag to generate shared objects directly from archives.
18857 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18859 # Whether the compiler copes with passing no objects directly.
18860 compiler_needs_object=$lt_compiler_needs_object
18862 # Create an old-style archive from a shared archive.
18863 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18865 # Create a temporary old-style archive to link instead of a shared archive.
18866 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18868 # Commands used to build a shared archive.
18869 archive_cmds=$lt_archive_cmds
18870 archive_expsym_cmds=$lt_archive_expsym_cmds
18872 # Commands used to build a loadable module if different from building
18873 # a shared archive.
18874 module_cmds=$lt_module_cmds
18875 module_expsym_cmds=$lt_module_expsym_cmds
18877 # Whether we are building with GNU ld or not.
18878 with_gnu_ld=$lt_with_gnu_ld
18880 # Flag that allows shared libraries with undefined symbols to be built.
18881 allow_undefined_flag=$lt_allow_undefined_flag
18883 # Flag that enforces no undefined symbols.
18884 no_undefined_flag=$lt_no_undefined_flag
18886 # Flag to hardcode \$libdir into a binary during linking.
18887 # This must work even if \$libdir does not exist
18888 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18890 # Whether we need a single "-rpath" flag with a separated argument.
18891 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18893 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18894 # DIR into the resulting binary.
18895 hardcode_direct=$hardcode_direct
18897 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18898 # DIR into the resulting binary and the resulting library dependency is
18899 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18900 # library is relocated.
18901 hardcode_direct_absolute=$hardcode_direct_absolute
18903 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18904 # into the resulting binary.
18905 hardcode_minus_L=$hardcode_minus_L
18907 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18908 # into the resulting binary.
18909 hardcode_shlibpath_var=$hardcode_shlibpath_var
18911 # Set to "yes" if building a shared library automatically hardcodes DIR
18912 # into the library and all subsequent libraries and executables linked
18913 # against it.
18914 hardcode_automatic=$hardcode_automatic
18916 # Set to yes if linker adds runtime paths of dependent libraries
18917 # to runtime path list.
18918 inherit_rpath=$inherit_rpath
18920 # Whether libtool must link a program against all its dependency libraries.
18921 link_all_deplibs=$link_all_deplibs
18923 # Set to "yes" if exported symbols are required.
18924 always_export_symbols=$always_export_symbols
18926 # The commands to list exported symbols.
18927 export_symbols_cmds=$lt_export_symbols_cmds
18929 # Symbols that should not be listed in the preloaded symbols.
18930 exclude_expsyms=$lt_exclude_expsyms
18932 # Symbols that must always be exported.
18933 include_expsyms=$lt_include_expsyms
18935 # Commands necessary for linking programs (against libraries) with templates.
18936 prelink_cmds=$lt_prelink_cmds
18938 # Commands necessary for finishing linking programs.
18939 postlink_cmds=$lt_postlink_cmds
18941 # Specify filename containing input files.
18942 file_list_spec=$lt_file_list_spec
18944 # How to hardcode a shared library path into an executable.
18945 hardcode_action=$hardcode_action
18947 # ### END LIBTOOL CONFIG
18949 _LT_EOF
18951 cat <<'_LT_EOF' >> "$cfgfile"
18953 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18955 # func_munge_path_list VARIABLE PATH
18956 # -----------------------------------
18957 # VARIABLE is name of variable containing _space_ separated list of
18958 # directories to be munged by the contents of PATH, which is string
18959 # having a format:
18960 # "DIR[:DIR]:"
18961 # string "DIR[ DIR]" will be prepended to VARIABLE
18962 # ":DIR[:DIR]"
18963 # string "DIR[ DIR]" will be appended to VARIABLE
18964 # "DIRP[:DIRP]::[DIRA:]DIRA"
18965 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18966 # "DIRA[ DIRA]" will be appended to VARIABLE
18967 # "DIR[:DIR]"
18968 # VARIABLE will be replaced by "DIR[ DIR]"
18969 func_munge_path_list ()
18971 case x$2 in
18975 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18977 x:*)
18978 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18980 *::*)
18981 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18982 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18985 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18987 esac
18991 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18992 func_cc_basename ()
18994 for cc_temp in $*""; do
18995 case $cc_temp in
18996 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18997 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18998 \-*) ;;
18999 *) break;;
19000 esac
19001 done
19002 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19006 # ### END FUNCTIONS SHARED WITH CONFIGURE
19008 _LT_EOF
19010 case $host_os in
19011 aix3*)
19012 cat <<\_LT_EOF >> "$cfgfile"
19013 # AIX sometimes has problems with the GCC collect2 program. For some
19014 # reason, if we set the COLLECT_NAMES environment variable, the problems
19015 # vanish in a puff of smoke.
19016 if test set != "${COLLECT_NAMES+set}"; then
19017 COLLECT_NAMES=
19018 export COLLECT_NAMES
19020 _LT_EOF
19022 esac
19025 ltmain=$ac_aux_dir/ltmain.sh
19028 # We use sed instead of cat because bash on DJGPP gets confused if
19029 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19030 # text mode, it properly converts lines to CR/LF. This bash problem
19031 # is reportedly fixed, but why not run on old versions too?
19032 sed '$q' "$ltmain" >> "$cfgfile" \
19033 || (rm -f "$cfgfile"; exit 1)
19035 mv -f "$cfgfile" "$ofile" ||
19036 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19037 chmod +x "$ofile"
19041 esac
19042 done # for ac_tag
19045 as_fn_exit 0
19046 _ACEOF
19047 ac_clean_files=$ac_clean_files_save
19049 test $ac_write_fail = 0 ||
19050 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19053 # configure is writing to config.log, and then calls config.status.
19054 # config.status does its own redirection, appending to config.log.
19055 # Unfortunately, on DOS this fails, as config.log is still kept open
19056 # by configure, so config.status won't be able to write to it; its
19057 # output is simply discarded. So we exec the FD to /dev/null,
19058 # effectively closing config.log, so it can be properly (re)opened and
19059 # appended to by config.status. When coming back to configure, we
19060 # need to make the FD available again.
19061 if test "$no_create" != yes; then
19062 ac_cs_success=:
19063 ac_config_status_args=
19064 test "$silent" = yes &&
19065 ac_config_status_args="$ac_config_status_args --quiet"
19066 exec 5>/dev/null
19067 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19068 exec 5>>config.log
19069 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19070 # would make configure fail if this is the last instruction.
19071 $ac_cs_success || as_fn_exit 1
19073 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19075 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}