Debian Codegraph @

src/libsodium/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libsodium 1.0.20.
4 #
5 # Report bugs to <https://github.com/jedisct1/libsodium/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: https://github.com/jedisct1/libsodium/issues about your
283 $0: system, including any error possibly output before this
284 $0: message. Then install a modern shell, or manually run
285 $0: the script under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='libsodium'
616 PACKAGE_TARNAME='libsodium'
617 PACKAGE_VERSION='1.0.20'
618 PACKAGE_STRING='libsodium 1.0.20'
619 PACKAGE_BUGREPORT='https://github.com/jedisct1/libsodium/issues'
620 PACKAGE_URL='https://libsodium.org'
621
622 ac_unique_file="src/libsodium/sodium/version.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 ac_subst_vars='am__EXEEXT_FALSE
656 am__EXEEXT_TRUE
657 LTLIBOBJS
658 LIBOBJS
659 HAVE_LD_OUTPUT_DEF_FALSE
660 HAVE_LD_OUTPUT_DEF_TRUE
661 WASI_FALSE
662 WASI_TRUE
663 EMSCRIPTEN_FALSE
664 EMSCRIPTEN_TRUE
665 TEST_LDFLAGS
666 LIBTOOL_EXTRA_FLAGS
667 ALLOCA
668 HAVE_CPUID_V
669 HAVE_TI_MODE_V
670 HAVE_TI_MODE_FALSE
671 HAVE_TI_MODE_TRUE
672 HAVE_AVX_ASM_V
673 HAVE_AVX_ASM_FALSE
674 HAVE_AVX_ASM_TRUE
675 HAVE_AMD64_ASM_V
676 HAVE_AMD64_ASM_FALSE
677 HAVE_AMD64_ASM_TRUE
678 CFLAGS_RDRAND
679 CFLAGS_PCLMUL
680 CFLAGS_AESNI
681 CFLAGS_AVX512F
682 CFLAGS_AVX2
683 CFLAGS_AVX
684 CFLAGS_SSE41
685 CFLAGS_SSSE3
686 CFLAGS_SSE3
687 CFLAGS_SSE2
688 CFLAGS_MMX
689 CFLAGS_ARMCRYPTO
690 LIBTOOL_DEPS
691 LT_SYS_LIBRARY_PATH
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 MANIFEST_TOOL
698 RANLIB
699 ac_ct_AR
700 AR
701 DLLTOOL
702 OBJDUMP
703 FILECMD
704 LN_S
705 NM
706 ac_ct_DUMPBIN
707 DUMPBIN
708 LD
709 FGREP
710 EGREP
711 GREP
712 LIBTOOL
713 CWFLAGS
714 VALGRIND_CHECK_RULES
715 valgrind_enabled_tools
716 valgrind_tools
717 ENABLE_VALGRIND_sgcheck
718 ENABLE_VALGRIND_drd
719 ENABLE_VALGRIND_helgrind
720 ENABLE_VALGRIND_memcheck
721 VALGRIND_ENABLED
722 VALGRIND_ENABLED_FALSE
723 VALGRIND_ENABLED_TRUE
724 VALGRIND
725 PKGCONFIG_LIBS_PRIVATE
726 SAFECODE_HOME
727 PTHREAD_CFLAGS
728 PTHREAD_LIBS
729 PTHREAD_CXX
730 PTHREAD_CC
731 ax_pthread_config
732 CPP
733 SED
734 SODIUM_LIBRARY_MINIMAL_DEF
735 MINIMAL_FALSE
736 MINIMAL_TRUE
737 am__fastdepCCAS_FALSE
738 am__fastdepCCAS_TRUE
739 CCASDEPMODE
740 CCASFLAGS
741 CCAS
742 am__fastdepCC_FALSE
743 am__fastdepCC_TRUE
744 CCDEPMODE
745 am__include
746 DEPDIR
747 OBJEXT
748 EXEEXT
749 ac_ct_CC
750 CPPFLAGS
751 LDFLAGS
752 CFLAGS
753 CC
754 DLL_VERSION
755 SODIUM_LIBRARY_VERSION
756 SODIUM_LIBRARY_VERSION_MINOR
757 SODIUM_LIBRARY_VERSION_MAJOR
758 am__nodep
759 AMDEPBACKSLASH
760 AMDEP_FALSE
761 AMDEP_TRUE
762 MAINT
763 MAINTAINER_MODE_FALSE
764 MAINTAINER_MODE_TRUE
765 am__xargs_n
766 am__rm_f_notfound
767 AM_BACKSLASH
768 AM_DEFAULT_VERBOSITY
769 AM_DEFAULT_V
770 AM_V
771 CSCOPE
772 ETAGS
773 CTAGS
774 am__untar
775 am__tar
776 AMTAR
777 am__leading_dot
778 SET_MAKE
779 AWK
780 mkdir_p
781 MKDIR_P
782 INSTALL_STRIP_PROGRAM
783 STRIP
784 install_sh
785 MAKEINFO
786 AUTOHEADER
787 AUTOMAKE
788 AUTOCONF
789 ACLOCAL
790 VERSION
791 PACKAGE
792 CYGPATH_W
793 am__isrc
794 INSTALL_DATA
795 INSTALL_SCRIPT
796 INSTALL_PROGRAM
797 target_os
798 target_vendor
799 target_cpu
800 target
801 host_os
802 host_vendor
803 host_cpu
804 host
805 build_os
806 build_vendor
807 build_cpu
808 build
809 target_alias
810 host_alias
811 build_alias
812 LIBS
813 ECHO_T
814 ECHO_N
815 ECHO_C
816 DEFS
817 mandir
818 localedir
819 libdir
820 psdir
821 pdfdir
822 dvidir
823 htmldir
824 infodir
825 docdir
826 oldincludedir
827 includedir
828 runstatedir
829 localstatedir
830 sharedstatedir
831 sysconfdir
832 datadir
833 datarootdir
834 libexecdir
835 sbindir
836 bindir
837 program_transform_name
838 prefix
839 exec_prefix
840 PACKAGE_URL
841 PACKAGE_BUGREPORT
842 PACKAGE_STRING
843 PACKAGE_VERSION
844 PACKAGE_TARNAME
845 PACKAGE_NAME
846 PATH_SEPARATOR
847 SHELL
848 am__quote'
849 ac_subst_files=''
850 ac_user_opts='
851 enable_option_checking
852 enable_silent_rules
853 enable_maintainer_mode
854 enable_dependency_tracking
855 enable_ssp
856 enable_asm
857 enable_pie
858 enable_blocking_random
859 enable_minimal
860 with_pthreads
861 with_safecode
862 with_ctgrind
863 enable_retpoline
864 enable_debug
865 enable_opt
866 enable_valgrind
867 enable_valgrind_memcheck
868 enable_valgrind_helgrind
869 enable_valgrind_drd
870 enable_valgrind_sgcheck
871 enable_soname_versions
872 enable_shared
873 enable_static
874 enable_pic
875 with_pic
876 enable_fast_install
877 enable_aix_soname
878 with_aix_soname
879 with_gnu_ld
880 with_sysroot
881 enable_libtool_lock
882 '
883 ac_precious_vars='build_alias
884 host_alias
885 target_alias
886 CC
887 CFLAGS
888 LDFLAGS
889 LIBS
890 CPPFLAGS
891 CCAS
892 CCASFLAGS
893 CPP
894 SAFECODE_HOME
895 CWFLAGS
896 LT_SYS_LIBRARY_PATH
897 AR'
898
899
900 # Initialize some variables set by options.
901 ac_init_help=
902 ac_init_version=false
903 ac_unrecognized_opts=
904 ac_unrecognized_sep=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
921
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 runstatedir='${localstatedir}/run'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
948
949 ac_prev=
950 ac_dashdash=
951 for ac_option
952 do
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
956 ac_prev=
957 continue
958 fi
959
960 case $ac_option in
961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *=) ac_optarg= ;;
963 *) ac_optarg=yes ;;
964 esac
965
966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
974
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
989
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
994
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
1002 -disable-* | --disable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: '$ac_useropt'"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=no ;;
1017
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1022
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1027
1028 -enable-* | --enable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: '$ac_useropt'"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037 "enable_$ac_useropt"
1038 "*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=\$ac_optarg ;;
1043
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1052
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1056
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1063
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1068
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1074
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1081
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1086
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1091
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1098
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1103
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1110
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1115
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1119
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1122 no_create=yes ;;
1123
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1127
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1136
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1141
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1148
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1155
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1172
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1177
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1182
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1186
1187 -runstatedir | --runstatedir | --runstatedi | --runstated \
1188 | --runstate | --runstat | --runsta | --runst | --runs \
1189 | --run | --ru | --r)
1190 ac_prev=runstatedir ;;
1191 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1192 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1193 | --run=* | --ru=* | --r=*)
1194 runstatedir=$ac_optarg ;;
1195
1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197 ac_prev=sbindir ;;
1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199 | --sbi=* | --sb=*)
1200 sbindir=$ac_optarg ;;
1201
1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204 | --sharedst | --shareds | --shared | --share | --shar \
1205 | --sha | --sh)
1206 ac_prev=sharedstatedir ;;
1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210 | --sha=* | --sh=*)
1211 sharedstatedir=$ac_optarg ;;
1212
1213 -site | --site | --sit)
1214 ac_prev=site ;;
1215 -site=* | --site=* | --sit=*)
1216 site=$ac_optarg ;;
1217
1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219 ac_prev=srcdir ;;
1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221 srcdir=$ac_optarg ;;
1222
1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224 | --syscon | --sysco | --sysc | --sys | --sy)
1225 ac_prev=sysconfdir ;;
1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228 sysconfdir=$ac_optarg ;;
1229
1230 -target | --target | --targe | --targ | --tar | --ta | --t)
1231 ac_prev=target_alias ;;
1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233 target_alias=$ac_optarg ;;
1234
1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236 verbose=yes ;;
1237
1238 -version | --version | --versio | --versi | --vers | -V)
1239 ac_init_version=: ;;
1240
1241 -with-* | --with-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: '$ac_useropt'"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1249 *"
1250 "with_$ac_useropt"
1251 "*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=\$ac_optarg ;;
1256
1257 -without-* | --without-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: '$ac_useropt'"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1265 *"
1266 "with_$ac_useropt"
1267 "*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval with_$ac_useropt=no ;;
1272
1273 --x)
1274 # Obsolete; use --with-x.
1275 with_x=yes ;;
1276
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1283
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1290
1291 -*) as_fn_error $? "unrecognized option: '$ac_option'
1292 Try '$0 --help' for more information"
1293 ;;
1294
1295 *=*)
1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 case $ac_envvar in #(
1299 '' | [0-9]* | *[!_$as_cr_alnum]* )
1300 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1301 esac
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1304
1305 *)
1306 # FIXME: should be removed in autoconf 3.0.
1307 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1311 ;;
1312
1313 esac
1314 done
1315
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 as_fn_error $? "missing argument to $ac_option"
1319 fi
1320
1321 if test -n "$ac_unrecognized_opts"; then
1322 case $enable_option_checking in
1323 no) ;;
1324 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1325 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1326 esac
1327 fi
1328
1329 # Check all directory arguments for consistency.
1330 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir runstatedir
1334 do
1335 eval ac_val=\$$ac_var
1336 # Remove trailing slashes.
1337 case $ac_val in
1338 */ )
1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\$ac_val;;
1341 esac
1342 # Be sure to have absolute directory names.
1343 case $ac_val in
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346 esac
1347 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1348 done
1349
1350 # There might be people who depend on the old broken behavior: '$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1353 build=$build_alias
1354 host=$host_alias
1355 target=$target_alias
1356
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 elif test "x$build_alias" != "x$host_alias"; then
1362 cross_compiling=yes
1363 fi
1364 fi
1365
1366 ac_tool_prefix=
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369 test "$silent" = yes && exec 6>/dev/null
1370
1371
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 as_fn_error $? "working directory cannot be determined"
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 as_fn_error $? "pwd does not report name of working directory"
1378
1379
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir=`$as_dirname -- "$as_myself" ||
1385 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389 printf "%s\n" X"$as_myself" |
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\/\)[^/].*/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\).*/{
1403 s//\1/
1404 q
1405 }
1406 s/.*/./; q'`
1407 srcdir=$ac_confdir
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 srcdir=..
1410 fi
1411 else
1412 ac_srcdir_defaulted=no
1413 fi
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1417 fi
1418 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1419 ac_abs_confdir=`(
1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1421 pwd)`
1422 # When building in place, set srcdir=.
1423 if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 srcdir=.
1425 fi
1426 # Remove unnecessary trailing slashes from srcdir.
1427 # Double slashes in file names in object file debugging info
1428 # mess up M-x gdb in Emacs.
1429 case $srcdir in
1430 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431 esac
1432 for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437 done
1438
1439 #
1440 # Report the --help message.
1441 #
1442 if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1445 cat <<_ACEOF
1446 'configure' configures libsodium 1.0.20 to adapt to many kinds of systems.
1447
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE. See below for descriptions of some of the useful variables.
1452
1453 Defaults for the options are specified in brackets.
1454
1455 Configuration:
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print 'checking ...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for '--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or '..']
1465
1466 Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
1468 [$ac_default_prefix]
1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1470 [PREFIX]
1471
1472 By default, 'make install' will install all the files in
1473 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1474 an installation prefix other than '$ac_default_prefix' using '--prefix',
1475 for instance '--prefix=\$HOME'.
1476
1477 For better control, use the options below.
1478
1479 Fine tuning of the installation directories:
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/libsodium]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
1500 _ACEOF
1501
1502 cat <<\_ACEOF
1503
1504 Program names:
1505 --program-prefix=PREFIX prepend PREFIX to installed program names
1506 --program-suffix=SUFFIX append SUFFIX to installed program names
1507 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1508
1509 System types:
1510 --build=BUILD configure for building on BUILD [guessed]
1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1512 --target=TARGET configure for building compilers for TARGET [HOST]
1513 _ACEOF
1514 fi
1515
1516 if test -n "$ac_init_help"; then
1517 case $ac_init_help in
1518 short | recursive ) echo "Configuration of libsodium 1.0.20:";;
1519 esac
1520 cat <<\_ACEOF
1521
1522 Optional Features:
1523 --disable-option-checking ignore unrecognized --enable/--with options
1524 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1525 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1526 --enable-silent-rules less verbose build output (undo: "make V=1")
1527 --disable-silent-rules verbose build output (undo: "make V=0")
1528 --enable-maintainer-mode
1529 enable make rules and dependencies not useful (and
1530 sometimes confusing) to the casual installer
1531 --enable-dependency-tracking
1532 do not reject slow dependency extractors
1533 --disable-dependency-tracking
1534 speeds up one-time build
1535 --disable-ssp Do not compile with -fstack-protector
1536 --disable-asm Do not compile assembly code -- As a side effect,
1537 this disables CPU-specific implementations on
1538 non-Windows platforms. Only for use with targets
1539 such as WebAssembly.
1540 --disable-pie Do not produce position independent executables
1541 --enable-blocking-random
1542 Enable this switch only if /dev/urandom is totally
1543 broken on the target platform
1544 --enable-minimal Only compile the minimum set of functions required
1545 for the high-level API
1546 --enable-retpoline Use return trampolines for indirect calls
1547 --enable-debug For maintainers only - please do not use
1548 --enable-opt Optimize for the native CPU - The resulting library
1549 will be faster but not portable
1550 --enable-valgrind Whether to enable Valgrind on the unit tests
1551 (requires GNU make)
1552 --disable-valgrind-memcheck
1553 Whether to skip memcheck during the Valgrind tests
1554 --disable-valgrind-helgrind
1555 Whether to skip helgrind during the Valgrind tests
1556 --disable-valgrind-drd Whether to skip drd during the Valgrind tests
1557 --disable-valgrind-sgcheck
1558 Whether to skip sgcheck during the Valgrind tests
1559 --enable-soname-versions
1560 enable soname versions (must be disabled for
1561 Android) (default: enabled)
1562 --enable-shared[=PKGS] build shared libraries [default=yes]
1563 --enable-static[=PKGS] build static libraries [default=yes]
1564 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1565 both]
1566 --enable-fast-install[=PKGS]
1567 optimize for fast installation [default=yes]
1568 --enable-aix-soname=aix|svr4|both
1569 shared library versioning (aka "SONAME") variant to
1570 provide on AIX, [default=aix].
1571 --disable-libtool-lock avoid locking (might break parallel builds)
1572
1573 Optional Packages:
1574 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1575 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1576 --with-pthreads use pthreads library, or --without-pthreads to
1577 disable threading support
1578 --with-safecode For maintainers only - please do not use
1579 --with-ctgrind For maintainers only - please do not use
1580 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1581 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1582 compiler's sysroot if not specified).
1583
1584 Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 LIBS libraries to pass to the linker, e.g. -l<library>
1590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1591 you have headers in a nonstandard directory <include dir>
1592 CCAS assembler compiler command (defaults to CC)
1593 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1594 CPP C preprocessor
1595 SAFECODE_HOME
1596 set to the safecode base directory
1597 CWFLAGS compilation flags for generating extra warnings
1598 LT_SYS_LIBRARY_PATH
1599 User-defined run-time library search path.
1600 AR path to the ar utility
1601
1602 Use these variables to override the choices made by 'configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1604
1605 Report bugs to <https://github.com/jedisct1/libsodium/issues>.
1606 libsodium home page: <https://libsodium.org>.
1607 _ACEOF
1608 ac_status=$?
1609 fi
1610
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" ||
1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 continue
1617 ac_builddir=.
1618
1619 case "$ac_dir" in
1620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *)
1622 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1623 # A ".." for each directory in $ac_dir_suffix.
1624 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625 case $ac_top_builddir_sub in
1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628 esac ;;
1629 esac
1630 ac_abs_top_builddir=$ac_pwd
1631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632 # for backward compatibility:
1633 ac_top_builddir=$ac_top_build_prefix
1634
1635 case $srcdir in
1636 .) # We are building in place.
1637 ac_srcdir=.
1638 ac_top_srcdir=$ac_top_builddir_sub
1639 ac_abs_top_srcdir=$ac_pwd ;;
1640 [\\/]* | ?:[\\/]* ) # Absolute name.
1641 ac_srcdir=$srcdir$ac_dir_suffix;
1642 ac_top_srcdir=$srcdir
1643 ac_abs_top_srcdir=$srcdir ;;
1644 *) # Relative name.
1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646 ac_top_srcdir=$ac_top_build_prefix$srcdir
1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 esac
1649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650
1651 cd "$ac_dir" || { ac_status=$?; continue; }
1652 # Check for configure.gnu first; this name is used for a wrapper for
1653 # Metaconfig's "Configure" on case-insensitive file systems.
1654 if test -f "$ac_srcdir/configure.gnu"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657 elif test -f "$ac_srcdir/configure"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure" --help=recursive
1660 else
1661 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1662 fi || ac_status=$?
1663 cd "$ac_pwd" || { ac_status=$?; break; }
1664 done
1665 fi
1666
1667 test -n "$ac_init_help" && exit $ac_status
1668 if $ac_init_version; then
1669 cat <<\_ACEOF
1670 libsodium configure 1.0.20
1671 generated by GNU Autoconf 2.72
1672
1673 Copyright (C) 2023 Free Software Foundation, Inc.
1674 This configure script is free software; the Free Software Foundation
1675 gives unlimited permission to copy, distribute and modify it.
1676 _ACEOF
1677 exit
1678 fi
1679
1680 ## ------------------------ ##
1681 ## Autoconf initialization. ##
1682 ## ------------------------ ##
1683
1684 # ac_fn_c_try_compile LINENO
1685 # --------------------------
1686 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_compile ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext conftest.beam
1691 if { { ac_try="$ac_compile"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 printf "%s\n" "$ac_try_echo"; } >&5
1698 (eval "$ac_compile") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest.$ac_objext
1710 then :
1711 ac_retval=0
1712 else case e in #(
1713 e) printf "%s\n" "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1 ;;
1717 esac
1718 fi
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_compile
1723
1724 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1725 # -------------------------------------------------------
1726 # Tests whether HEADER exists and can be compiled using the include files in
1727 # INCLUDES, setting the cache variable VAR accordingly.
1728 ac_fn_c_check_header_compile ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 printf %s "checking for $2... " >&6; }
1733 if eval test \${$3+y}
1734 then :
1735 printf %s "(cached) " >&6
1736 else case e in #(
1737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 $4
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_compile "$LINENO"
1743 then :
1744 eval "$3=yes"
1745 else case e in #(
1746 e) eval "$3=no" ;;
1747 esac
1748 fi
1749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1750 esac
1751 fi
1752 eval ac_res=\$$3
1753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 printf "%s\n" "$ac_res" >&6; }
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757 } # ac_fn_c_check_header_compile
1758
1759 # ac_fn_c_try_link LINENO
1760 # -----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_c_try_link ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1766 if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 printf "%s\n" "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1779 fi
1780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest$ac_exeext && {
1785 test "$cross_compiling" = yes ||
1786 test -x conftest$ac_exeext
1787 }
1788 then :
1789 ac_retval=0
1790 else case e in #(
1791 e) printf "%s\n" "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1793
1794 ac_retval=1 ;;
1795 esac
1796 fi
1797 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1798 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1799 # interfere with the next link command; also delete a directory that is
1800 # left behind by Apple's compiler. We do this before executing the actions.
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_link
1806
1807 # ac_fn_c_try_cpp LINENO
1808 # ----------------------
1809 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_c_try_cpp ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_cpp conftest.$ac_ext"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 printf "%s\n" "$ac_try_echo"; } >&5
1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } > conftest.i && {
1829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 }
1832 then :
1833 ac_retval=0
1834 else case e in #(
1835 e) printf "%s\n" "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1 ;;
1839 esac
1840 fi
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1843
1844 } # ac_fn_c_try_cpp
1845
1846 # ac_fn_c_try_run LINENO
1847 # ----------------------
1848 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1849 # executables *can* be run.
1850 ac_fn_c_try_run ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 printf "%s\n" "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>&5
1861 ac_status=$?
1862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864 { { case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 printf "%s\n" "$ac_try_echo"; } >&5
1870 (eval "$ac_try") 2>&5
1871 ac_status=$?
1872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; }; }
1874 then :
1875 ac_retval=0
1876 else case e in #(
1877 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1878 printf "%s\n" "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=$ac_status ;;
1882 esac
1883 fi
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1887
1888 } # ac_fn_c_try_run
1889
1890 # ac_fn_c_check_func LINENO FUNC VAR
1891 # ----------------------------------
1892 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1893 ac_fn_c_check_func ()
1894 {
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 printf %s "checking for $2... " >&6; }
1898 if eval test \${$3+y}
1899 then :
1900 printf %s "(cached) " >&6
1901 else case e in #(
1902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1906 #define $2 innocuous_$2
1907
1908 /* System header to define __stub macros and hopefully few prototypes,
1909 which can conflict with char $2 (void); below. */
1910
1911 #include <limits.h>
1912 #undef $2
1913
1914 /* Override any GCC internal prototype to avoid an error.
1915 Use char because int might match the return type of a GCC
1916 builtin and then its argument prototype would still apply. */
1917 #ifdef __cplusplus
1918 extern "C"
1919 #endif
1920 char $2 (void);
1921 /* The GNU C library defines this for functions which it implements
1922 to always fail with ENOSYS. Some functions are actually named
1923 something starting with __ and the normal name is an alias. */
1924 #if defined __stub_$2 || defined __stub___$2
1925 choke me
1926 #endif
1927
1928 int
1929 main (void)
1930 {
1931 return $2 ();
1932 ;
1933 return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_link "$LINENO"
1937 then :
1938 eval "$3=yes"
1939 else case e in #(
1940 e) eval "$3=no" ;;
1941 esac
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1944 conftest$ac_exeext conftest.$ac_ext ;;
1945 esac
1946 fi
1947 eval ac_res=\$$3
1948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 printf "%s\n" "$ac_res" >&6; }
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952 } # ac_fn_c_check_func
1953
1954 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1955 # -------------------------------------------
1956 # Tests whether TYPE exists after having included INCLUDES, setting cache
1957 # variable VAR accordingly.
1958 ac_fn_c_check_type ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 printf %s "checking for $2... " >&6; }
1963 if eval test \${$3+y}
1964 then :
1965 printf %s "(cached) " >&6
1966 else case e in #(
1967 e) eval "$3=no"
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 $4
1971 int
1972 main (void)
1973 {
1974 if (sizeof ($2))
1975 return 0;
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"
1981 then :
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 $4
1985 int
1986 main (void)
1987 {
1988 if (sizeof (($2)))
1989 return 0;
1990 ;
1991 return 0;
1992 }
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"
1995 then :
1996
1997 else case e in #(
1998 e) eval "$3=yes" ;;
1999 esac
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2004 esac
2005 fi
2006 eval ac_res=\$$3
2007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 printf "%s\n" "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011 } # ac_fn_c_check_type
2012 ac_configure_args_raw=
2013 for ac_arg
2014 do
2015 case $ac_arg in
2016 *\'*)
2017 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018 esac
2019 as_fn_append ac_configure_args_raw " '$ac_arg'"
2020 done
2021
2022 case $ac_configure_args_raw in
2023 *$as_nl*)
2024 ac_safe_unquote= ;;
2025 *)
2026 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2027 ac_unsafe_a="$ac_unsafe_z#~"
2028 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2029 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2030 esac
2031
2032 cat >config.log <<_ACEOF
2033 This file contains any messages produced by compilers while
2034 running configure, to aid debugging if configure makes a mistake.
2035
2036 It was created by libsodium $as_me 1.0.20, which was
2037 generated by GNU Autoconf 2.72. Invocation command line was
2038
2039 $ $0$ac_configure_args_raw
2040
2041 _ACEOF
2042 exec 5>>config.log
2043 {
2044 cat <<_ASUNAME
2045 ## --------- ##
2046 ## Platform. ##
2047 ## --------- ##
2048
2049 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2050 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2051 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2052 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2053 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2054
2055 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2056 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2057
2058 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2059 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2060 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2061 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2062 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2063 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2064 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2065
2066 _ASUNAME
2067
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 for as_dir in $PATH
2070 do
2071 IFS=$as_save_IFS
2072 case $as_dir in #(((
2073 '') as_dir=./ ;;
2074 */) ;;
2075 *) as_dir=$as_dir/ ;;
2076 esac
2077 printf "%s\n" "PATH: $as_dir"
2078 done
2079 IFS=$as_save_IFS
2080
2081 } >&5
2082
2083 cat >&5 <<_ACEOF
2084
2085
2086 ## ----------- ##
2087 ## Core tests. ##
2088 ## ----------- ##
2089
2090 _ACEOF
2091
2092
2093 # Keep a trace of the command line.
2094 # Strip out --no-create and --no-recursion so they do not pile up.
2095 # Strip out --silent because we don't want to record it for future runs.
2096 # Also quote any args containing shell meta-characters.
2097 # Make two passes to allow for proper duplicate-argument suppression.
2098 ac_configure_args=
2099 ac_configure_args0=
2100 ac_configure_args1=
2101 ac_must_keep_next=false
2102 for ac_pass in 1 2
2103 do
2104 for ac_arg
2105 do
2106 case $ac_arg in
2107 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2109 | -silent | --silent | --silen | --sile | --sil)
2110 continue ;;
2111 *\'*)
2112 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2113 esac
2114 case $ac_pass in
2115 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2116 2)
2117 as_fn_append ac_configure_args1 " '$ac_arg'"
2118 if test $ac_must_keep_next = true; then
2119 ac_must_keep_next=false # Got value, back to normal.
2120 else
2121 case $ac_arg in
2122 *=* | --config-cache | -C | -disable-* | --disable-* \
2123 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2124 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2125 | -with-* | --with-* | -without-* | --without-* | --x)
2126 case "$ac_configure_args0 " in
2127 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2128 esac
2129 ;;
2130 -* ) ac_must_keep_next=true ;;
2131 esac
2132 fi
2133 as_fn_append ac_configure_args " '$ac_arg'"
2134 ;;
2135 esac
2136 done
2137 done
2138 { ac_configure_args0=; unset ac_configure_args0;}
2139 { ac_configure_args1=; unset ac_configure_args1;}
2140
2141 # When interrupted or exit'd, cleanup temporary files, and complete
2142 # config.log. We remove comments because anyway the quotes in there
2143 # would cause problems or look ugly.
2144 # WARNING: Use '\'' to represent an apostrophe within the trap.
2145 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2146 trap 'exit_status=$?
2147 # Sanitize IFS.
2148 IFS=" "" $as_nl"
2149 # Save into config.log some information that might help in debugging.
2150 {
2151 echo
2152
2153 printf "%s\n" "## ---------------- ##
2154 ## Cache variables. ##
2155 ## ---------------- ##"
2156 echo
2157 # The following way of writing the cache mishandles newlines in values,
2158 (
2159 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2160 eval ac_val=\$$ac_var
2161 case $ac_val in #(
2162 *${as_nl}*)
2163 case $ac_var in #(
2164 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2165 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2166 esac
2167 case $ac_var in #(
2168 _ | IFS | as_nl) ;; #(
2169 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2170 *) { eval $ac_var=; unset $ac_var;} ;;
2171 esac ;;
2172 esac
2173 done
2174 (set) 2>&1 |
2175 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2176 *${as_nl}ac_space=\ *)
2177 sed -n \
2178 "s/'\''/'\''\\\\'\'''\''/g;
2179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2180 ;; #(
2181 *)
2182 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2183 ;;
2184 esac |
2185 sort
2186 )
2187 echo
2188
2189 printf "%s\n" "## ----------------- ##
2190 ## Output variables. ##
2191 ## ----------------- ##"
2192 echo
2193 for ac_var in $ac_subst_vars
2194 do
2195 eval ac_val=\$$ac_var
2196 case $ac_val in
2197 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2198 esac
2199 printf "%s\n" "$ac_var='\''$ac_val'\''"
2200 done | sort
2201 echo
2202
2203 if test -n "$ac_subst_files"; then
2204 printf "%s\n" "## ------------------- ##
2205 ## File substitutions. ##
2206 ## ------------------- ##"
2207 echo
2208 for ac_var in $ac_subst_files
2209 do
2210 eval ac_val=\$$ac_var
2211 case $ac_val in
2212 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2213 esac
2214 printf "%s\n" "$ac_var='\''$ac_val'\''"
2215 done | sort
2216 echo
2217 fi
2218
2219 if test -s confdefs.h; then
2220 printf "%s\n" "## ----------- ##
2221 ## confdefs.h. ##
2222 ## ----------- ##"
2223 echo
2224 cat confdefs.h
2225 echo
2226 fi
2227 test "$ac_signal" != 0 &&
2228 printf "%s\n" "$as_me: caught signal $ac_signal"
2229 printf "%s\n" "$as_me: exit $exit_status"
2230 } >&5
2231 rm -f core *.core core.conftest.* &&
2232 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2233 exit $exit_status
2234 ' 0
2235 for ac_signal in 1 2 13 15; do
2236 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2237 done
2238 ac_signal=0
2239
2240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2241 rm -f -r conftest* confdefs.h
2242
2243 printf "%s\n" "/* confdefs.h */" > confdefs.h
2244
2245 # Predefined preprocessor variables.
2246
2247 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2248
2249 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2250
2251 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2252
2253 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2254
2255 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2256
2257 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2258
2259
2260 # Let the site file select an alternate cache file if it wants to.
2261 # Prefer an explicitly selected file to automatically selected ones.
2262 if test -n "$CONFIG_SITE"; then
2263 ac_site_files="$CONFIG_SITE"
2264 elif test "x$prefix" != xNONE; then
2265 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2266 else
2267 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2268 fi
2269
2270 for ac_site_file in $ac_site_files
2271 do
2272 case $ac_site_file in #(
2273 */*) :
2274 ;; #(
2275 *) :
2276 ac_site_file=./$ac_site_file ;;
2277 esac
2278 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2280 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2281 sed 's/^/| /' "$ac_site_file" >&5
2282 . "$ac_site_file" \
2283 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2284 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2285 as_fn_error $? "failed to load site script $ac_site_file
2286 See 'config.log' for more details" "$LINENO" 5; }
2287 fi
2288 done
2289
2290 if test -r "$cache_file"; then
2291 # Some versions of bash will fail to source /dev/null (special files
2292 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2293 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2295 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2296 case $cache_file in
2297 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2298 *) . "./$cache_file";;
2299 esac
2300 fi
2301 else
2302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2303 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2304 >$cache_file
2305 fi
2306
2307 # Test code for whether the C compiler supports C89 (global declarations)
2308 ac_c_conftest_c89_globals='
2309 /* Does the compiler advertise C89 conformance?
2310 Do not test the value of __STDC__, because some compilers set it to 0
2311 while being otherwise adequately conformant. */
2312 #if !defined __STDC__
2313 # error "Compiler does not advertise C89 conformance"
2314 #endif
2315
2316 #include <stddef.h>
2317 #include <stdarg.h>
2318 struct stat;
2319 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2320 struct buf { int x; };
2321 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2322 static char *e (char **p, int i)
2323 {
2324 return p[i];
2325 }
2326 static char *f (char * (*g) (char **, int), char **p, ...)
2327 {
2328 char *s;
2329 va_list v;
2330 va_start (v,p);
2331 s = g (p, va_arg (v,int));
2332 va_end (v);
2333 return s;
2334 }
2335
2336 /* C89 style stringification. */
2337 #define noexpand_stringify(a) #a
2338 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2339
2340 /* C89 style token pasting. Exercises some of the corner cases that
2341 e.g. old MSVC gets wrong, but not very hard. */
2342 #define noexpand_concat(a,b) a##b
2343 #define expand_concat(a,b) noexpand_concat(a,b)
2344 extern int vA;
2345 extern int vbee;
2346 #define aye A
2347 #define bee B
2348 int *pvA = &expand_concat(v,aye);
2349 int *pvbee = &noexpand_concat(v,bee);
2350
2351 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2352 function prototypes and stuff, but not \xHH hex character constants.
2353 These do not provoke an error unfortunately, instead are silently treated
2354 as an "x". The following induces an error, until -std is added to get
2355 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2356 array size at least. It is necessary to write \x00 == 0 to get something
2357 that is true only with -std. */
2358 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2359
2360 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2361 inside strings and character constants. */
2362 #define FOO(x) '\''x'\''
2363 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2364
2365 int test (int i, double x);
2366 struct s1 {int (*f) (int a);};
2367 struct s2 {int (*f) (double a);};
2368 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2369 int, int);'
2370
2371 # Test code for whether the C compiler supports C89 (body of main).
2372 ac_c_conftest_c89_main='
2373 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2374 '
2375
2376 # Test code for whether the C compiler supports C99 (global declarations)
2377 ac_c_conftest_c99_globals='
2378 /* Does the compiler advertise C99 conformance? */
2379 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2380 # error "Compiler does not advertise C99 conformance"
2381 #endif
2382
2383 // See if C++-style comments work.
2384
2385 #include <stdbool.h>
2386 extern int puts (const char *);
2387 extern int printf (const char *, ...);
2388 extern int dprintf (int, const char *, ...);
2389 extern void *malloc (size_t);
2390 extern void free (void *);
2391
2392 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2393 // dprintf is used instead of fprintf to avoid needing to declare
2394 // FILE and stderr.
2395 #define debug(...) dprintf (2, __VA_ARGS__)
2396 #define showlist(...) puts (#__VA_ARGS__)
2397 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2398 static void
2399 test_varargs_macros (void)
2400 {
2401 int x = 1234;
2402 int y = 5678;
2403 debug ("Flag");
2404 debug ("X = %d\n", x);
2405 showlist (The first, second, and third items.);
2406 report (x>y, "x is %d but y is %d", x, y);
2407 }
2408
2409 // Check long long types.
2410 #define BIG64 18446744073709551615ull
2411 #define BIG32 4294967295ul
2412 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2413 #if !BIG_OK
2414 #error "your preprocessor is broken"
2415 #endif
2416 #if BIG_OK
2417 #else
2418 #error "your preprocessor is broken"
2419 #endif
2420 static long long int bignum = -9223372036854775807LL;
2421 static unsigned long long int ubignum = BIG64;
2422
2423 struct incomplete_array
2424 {
2425 int datasize;
2426 double data[];
2427 };
2428
2429 struct named_init {
2430 int number;
2431 const wchar_t *name;
2432 double average;
2433 };
2434
2435 typedef const char *ccp;
2436
2437 static inline int
2438 test_restrict (ccp restrict text)
2439 {
2440 // Iterate through items via the restricted pointer.
2441 // Also check for declarations in for loops.
2442 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2443 continue;
2444 return 0;
2445 }
2446
2447 // Check varargs and va_copy.
2448 static bool
2449 test_varargs (const char *format, ...)
2450 {
2451 va_list args;
2452 va_start (args, format);
2453 va_list args_copy;
2454 va_copy (args_copy, args);
2455
2456 const char *str = "";
2457 int number = 0;
2458 float fnumber = 0;
2459
2460 while (*format)
2461 {
2462 switch (*format++)
2463 {
2464 case '\''s'\'': // string
2465 str = va_arg (args_copy, const char *);
2466 break;
2467 case '\''d'\'': // int
2468 number = va_arg (args_copy, int);
2469 break;
2470 case '\''f'\'': // float
2471 fnumber = va_arg (args_copy, double);
2472 break;
2473 default:
2474 break;
2475 }
2476 }
2477 va_end (args_copy);
2478 va_end (args);
2479
2480 return *str && number && fnumber;
2481 }
2482 '
2483
2484 # Test code for whether the C compiler supports C99 (body of main).
2485 ac_c_conftest_c99_main='
2486 // Check bool.
2487 _Bool success = false;
2488 success |= (argc != 0);
2489
2490 // Check restrict.
2491 if (test_restrict ("String literal") == 0)
2492 success = true;
2493 char *restrict newvar = "Another string";
2494
2495 // Check varargs.
2496 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2497 test_varargs_macros ();
2498
2499 // Check flexible array members.
2500 struct incomplete_array *ia =
2501 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2502 ia->datasize = 10;
2503 for (int i = 0; i < ia->datasize; ++i)
2504 ia->data[i] = i * 1.234;
2505 // Work around memory leak warnings.
2506 free (ia);
2507
2508 // Check named initializers.
2509 struct named_init ni = {
2510 .number = 34,
2511 .name = L"Test wide string",
2512 .average = 543.34343,
2513 };
2514
2515 ni.number = 58;
2516
2517 int dynamic_array[ni.number];
2518 dynamic_array[0] = argv[0][0];
2519 dynamic_array[ni.number - 1] = 543;
2520
2521 // work around unused variable warnings
2522 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2523 || dynamic_array[ni.number - 1] != 543);
2524 '
2525
2526 # Test code for whether the C compiler supports C11 (global declarations)
2527 ac_c_conftest_c11_globals='
2528 /* Does the compiler advertise C11 conformance? */
2529 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2530 # error "Compiler does not advertise C11 conformance"
2531 #endif
2532
2533 // Check _Alignas.
2534 char _Alignas (double) aligned_as_double;
2535 char _Alignas (0) no_special_alignment;
2536 extern char aligned_as_int;
2537 char _Alignas (0) _Alignas (int) aligned_as_int;
2538
2539 // Check _Alignof.
2540 enum
2541 {
2542 int_alignment = _Alignof (int),
2543 int_array_alignment = _Alignof (int[100]),
2544 char_alignment = _Alignof (char)
2545 };
2546 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2547
2548 // Check _Noreturn.
2549 int _Noreturn does_not_return (void) { for (;;) continue; }
2550
2551 // Check _Static_assert.
2552 struct test_static_assert
2553 {
2554 int x;
2555 _Static_assert (sizeof (int) <= sizeof (long int),
2556 "_Static_assert does not work in struct");
2557 long int y;
2558 };
2559
2560 // Check UTF-8 literals.
2561 #define u8 syntax error!
2562 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2563
2564 // Check duplicate typedefs.
2565 typedef long *long_ptr;
2566 typedef long int *long_ptr;
2567 typedef long_ptr long_ptr;
2568
2569 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2570 struct anonymous
2571 {
2572 union {
2573 struct { int i; int j; };
2574 struct { int k; long int l; } w;
2575 };
2576 int m;
2577 } v1;
2578 '
2579
2580 # Test code for whether the C compiler supports C11 (body of main).
2581 ac_c_conftest_c11_main='
2582 _Static_assert ((offsetof (struct anonymous, i)
2583 == offsetof (struct anonymous, w.k)),
2584 "Anonymous union alignment botch");
2585 v1.i = 2;
2586 v1.w.k = 5;
2587 ok |= v1.i != 5;
2588 '
2589
2590 # Test code for whether the C compiler supports C11 (complete).
2591 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2592 ${ac_c_conftest_c99_globals}
2593 ${ac_c_conftest_c11_globals}
2594
2595 int
2596 main (int argc, char **argv)
2597 {
2598 int ok = 0;
2599 ${ac_c_conftest_c89_main}
2600 ${ac_c_conftest_c99_main}
2601 ${ac_c_conftest_c11_main}
2602 return ok;
2603 }
2604 "
2605
2606 # Test code for whether the C compiler supports C99 (complete).
2607 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2608 ${ac_c_conftest_c99_globals}
2609
2610 int
2611 main (int argc, char **argv)
2612 {
2613 int ok = 0;
2614 ${ac_c_conftest_c89_main}
2615 ${ac_c_conftest_c99_main}
2616 return ok;
2617 }
2618 "
2619
2620 # Test code for whether the C compiler supports C89 (complete).
2621 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2622
2623 int
2624 main (int argc, char **argv)
2625 {
2626 int ok = 0;
2627 ${ac_c_conftest_c89_main}
2628 return ok;
2629 }
2630 "
2631
2632 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2633 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2634 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2635 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2636 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2637 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2638 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2639 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2640 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2641 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2642 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2643
2644 # Auxiliary files required by this configure script.
2645 ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub"
2646
2647 # Locations in which to look for auxiliary files.
2648 ac_aux_dir_candidates="${srcdir}/build-aux"
2649
2650 # Search for a directory containing all of the required auxiliary files,
2651 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2652 # If we don't find one directory that contains all the files we need,
2653 # we report the set of missing files from the *first* directory in
2654 # $ac_aux_dir_candidates and give up.
2655 ac_missing_aux_files=""
2656 ac_first_candidate=:
2657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 as_found=false
2660 for as_dir in $ac_aux_dir_candidates
2661 do
2662 IFS=$as_save_IFS
2663 case $as_dir in #(((
2664 '') as_dir=./ ;;
2665 */) ;;
2666 *) as_dir=$as_dir/ ;;
2667 esac
2668 as_found=:
2669
2670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2671 ac_aux_dir_found=yes
2672 ac_install_sh=
2673 for ac_aux in $ac_aux_files
2674 do
2675 # As a special case, if "install-sh" is required, that requirement
2676 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2677 # and $ac_install_sh is set appropriately for whichever one is found.
2678 if test x"$ac_aux" = x"install-sh"
2679 then
2680 if test -f "${as_dir}install-sh"; then
2681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2682 ac_install_sh="${as_dir}install-sh -c"
2683 elif test -f "${as_dir}install.sh"; then
2684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2685 ac_install_sh="${as_dir}install.sh -c"
2686 elif test -f "${as_dir}shtool"; then
2687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2688 ac_install_sh="${as_dir}shtool install -c"
2689 else
2690 ac_aux_dir_found=no
2691 if $ac_first_candidate; then
2692 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2693 else
2694 break
2695 fi
2696 fi
2697 else
2698 if test -f "${as_dir}${ac_aux}"; then
2699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2700 else
2701 ac_aux_dir_found=no
2702 if $ac_first_candidate; then
2703 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2704 else
2705 break
2706 fi
2707 fi
2708 fi
2709 done
2710 if test "$ac_aux_dir_found" = yes; then
2711 ac_aux_dir="$as_dir"
2712 break
2713 fi
2714 ac_first_candidate=false
2715
2716 as_found=false
2717 done
2718 IFS=$as_save_IFS
2719 if $as_found
2720 then :
2721
2722 else case e in #(
2723 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2724 esac
2725 fi
2726
2727
2728 # These three variables are undocumented and unsupported,
2729 # and are intended to be withdrawn in a future Autoconf release.
2730 # They can cause serious problems if a builder's source tree is in a directory
2731 # whose full name contains unusual characters.
2732 if test -f "${ac_aux_dir}config.guess"; then
2733 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2734 fi
2735 if test -f "${ac_aux_dir}config.sub"; then
2736 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2737 fi
2738 if test -f "$ac_aux_dir/configure"; then
2739 ac_configure="$SHELL ${ac_aux_dir}configure"
2740 fi
2741
2742 # Check that the precious variables saved in the cache have kept the same
2743 # value.
2744 ac_cache_corrupted=false
2745 for ac_var in $ac_precious_vars; do
2746 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2747 eval ac_new_set=\$ac_env_${ac_var}_set
2748 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2749 eval ac_new_val=\$ac_env_${ac_var}_value
2750 case $ac_old_set,$ac_new_set in
2751 set,)
2752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2753 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2754 ac_cache_corrupted=: ;;
2755 ,set)
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2757 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2758 ac_cache_corrupted=: ;;
2759 ,);;
2760 *)
2761 if test "x$ac_old_val" != "x$ac_new_val"; then
2762 # differences in whitespace do not lead to failure.
2763 ac_old_val_w=`echo x $ac_old_val`
2764 ac_new_val_w=`echo x $ac_new_val`
2765 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2767 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2768 ac_cache_corrupted=:
2769 else
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2771 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2772 eval $ac_var=\$ac_old_val
2773 fi
2774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2775 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2777 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2778 fi;;
2779 esac
2780 # Pass precious variables to config.status.
2781 if test "$ac_new_set" = set; then
2782 case $ac_new_val in
2783 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2784 *) ac_arg=$ac_var=$ac_new_val ;;
2785 esac
2786 case " $ac_configure_args " in
2787 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2788 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2789 esac
2790 fi
2791 done
2792 if $ac_cache_corrupted; then
2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2794 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2796 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2797 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2798 and start over" "$LINENO" 5
2799 fi
2800 ## -------------------- ##
2801 ## Main body of script. ##
2802 ## -------------------- ##
2803
2804 ac_ext=c
2805 ac_cpp='$CPP $CPPFLAGS'
2806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809
2810
2811
2812
2813
2814
2815
2816
2817 # Make sure we can run config.sub.
2818 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2819 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2820
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2822 printf %s "checking build system type... " >&6; }
2823 if test ${ac_cv_build+y}
2824 then :
2825 printf %s "(cached) " >&6
2826 else case e in #(
2827 e) ac_build_alias=$build_alias
2828 test "x$ac_build_alias" = x &&
2829 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2830 test "x$ac_build_alias" = x &&
2831 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2832 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2833 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2834 ;;
2835 esac
2836 fi
2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2838 printf "%s\n" "$ac_cv_build" >&6; }
2839 case $ac_cv_build in
2840 *-*-*) ;;
2841 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2842 esac
2843 build=$ac_cv_build
2844 ac_save_IFS=$IFS; IFS='-'
2845 set x $ac_cv_build
2846 shift
2847 build_cpu=$1
2848 build_vendor=$2
2849 shift; shift
2850 # Remember, the first character of IFS is used to create $*,
2851 # except with old shells:
2852 build_os=$*
2853 IFS=$ac_save_IFS
2854 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2855
2856
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2858 printf %s "checking host system type... " >&6; }
2859 if test ${ac_cv_host+y}
2860 then :
2861 printf %s "(cached) " >&6
2862 else case e in #(
2863 e) if test "x$host_alias" = x; then
2864 ac_cv_host=$ac_cv_build
2865 else
2866 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2867 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2868 fi
2869 ;;
2870 esac
2871 fi
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2873 printf "%s\n" "$ac_cv_host" >&6; }
2874 case $ac_cv_host in
2875 *-*-*) ;;
2876 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2877 esac
2878 host=$ac_cv_host
2879 ac_save_IFS=$IFS; IFS='-'
2880 set x $ac_cv_host
2881 shift
2882 host_cpu=$1
2883 host_vendor=$2
2884 shift; shift
2885 # Remember, the first character of IFS is used to create $*,
2886 # except with old shells:
2887 host_os=$*
2888 IFS=$ac_save_IFS
2889 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2890
2891
2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2893 printf %s "checking target system type... " >&6; }
2894 if test ${ac_cv_target+y}
2895 then :
2896 printf %s "(cached) " >&6
2897 else case e in #(
2898 e) if test "x$target_alias" = x; then
2899 ac_cv_target=$ac_cv_host
2900 else
2901 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2902 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2903 fi
2904 ;;
2905 esac
2906 fi
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2908 printf "%s\n" "$ac_cv_target" >&6; }
2909 case $ac_cv_target in
2910 *-*-*) ;;
2911 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2912 esac
2913 target=$ac_cv_target
2914 ac_save_IFS=$IFS; IFS='-'
2915 set x $ac_cv_target
2916 shift
2917 target_cpu=$1
2918 target_vendor=$2
2919 shift; shift
2920 # Remember, the first character of IFS is used to create $*,
2921 # except with old shells:
2922 target_os=$*
2923 IFS=$ac_save_IFS
2924 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2925
2926
2927 # The aliases save the names the user supplied, while $host etc.
2928 # will get canonicalized.
2929 test -n "$target_alias" &&
2930 test "$program_prefix$program_suffix$program_transform_name" = \
2931 NONENONEs,x,x, &&
2932 program_prefix=${target_alias}-
2933 am__api_version='1.18'
2934
2935
2936 # Find a good install program. We prefer a C program (faster),
2937 # so one script is as good as another. But avoid the broken or
2938 # incompatible versions:
2939 # SysV /etc/install, /usr/sbin/install
2940 # SunOS /usr/etc/install
2941 # IRIX /sbin/install
2942 # AIX /bin/install
2943 # AmigaOS /C/install, which installs bootblocks on floppy discs
2944 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2945 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2946 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2947 # OS/2's system install, which has a completely different semantic
2948 # ./install, which can be erroneously created by make from ./install.sh.
2949 # Reject install programs that cannot install multiple files.
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2951 printf %s "checking for a BSD-compatible install... " >&6; }
2952 if test -z "$INSTALL"; then
2953 if test ${ac_cv_path_install+y}
2954 then :
2955 printf %s "(cached) " >&6
2956 else case e in #(
2957 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960 IFS=$as_save_IFS
2961 case $as_dir in #(((
2962 '') as_dir=./ ;;
2963 */) ;;
2964 *) as_dir=$as_dir/ ;;
2965 esac
2966 # Account for fact that we put trailing slashes in our PATH walk.
2967 case $as_dir in #((
2968 ./ | /[cC]/* | \
2969 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2970 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2971 /usr/ucb/* ) ;;
2972 *)
2973 # OSF1 and SCO ODT 3.0 have their own names for install.
2974 # Don't use installbsd from OSF since it installs stuff as root
2975 # by default.
2976 for ac_prog in ginstall scoinst install; do
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2979 if test $ac_prog = install &&
2980 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2981 # AIX install. It has an incompatible calling convention.
2982 :
2983 elif test $ac_prog = install &&
2984 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2985 # program-specific install script used by HP pwplus--don't use.
2986 :
2987 else
2988 rm -rf conftest.one conftest.two conftest.dir
2989 echo one > conftest.one
2990 echo two > conftest.two
2991 mkdir conftest.dir
2992 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2993 test -s conftest.one && test -s conftest.two &&
2994 test -s conftest.dir/conftest.one &&
2995 test -s conftest.dir/conftest.two
2996 then
2997 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2998 break 3
2999 fi
3000 fi
3001 fi
3002 done
3003 done
3004 ;;
3005 esac
3006
3007 done
3008 IFS=$as_save_IFS
3009
3010 rm -rf conftest.one conftest.two conftest.dir
3011 ;;
3012 esac
3013 fi
3014 if test ${ac_cv_path_install+y}; then
3015 INSTALL=$ac_cv_path_install
3016 else
3017 # As a last resort, use the slow shell script. Don't cache a
3018 # value for INSTALL within a source directory, because that will
3019 # break other packages using the cache if that directory is
3020 # removed, or if the value is a relative name.
3021 INSTALL=$ac_install_sh
3022 fi
3023 fi
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3025 printf "%s\n" "$INSTALL" >&6; }
3026
3027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3028 # It thinks the first close brace ends the variable substitution.
3029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3030
3031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3032
3033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3036 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3037 if test ${am_cv_sleep_fractional_seconds+y}
3038 then :
3039 printf %s "(cached) " >&6
3040 else case e in #(
3041 e) if sleep 0.001 2>/dev/null
3042 then :
3043 am_cv_sleep_fractional_seconds=yes
3044 else case e in #(
3045 e) am_cv_sleep_fractional_seconds=no ;;
3046 esac
3047 fi
3048 ;;
3049 esac
3050 fi
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3052 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3053
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3055 printf %s "checking filesystem timestamp resolution... " >&6; }
3056 if test ${am_cv_filesystem_timestamp_resolution+y}
3057 then :
3058 printf %s "(cached) " >&6
3059 else case e in #(
3060 e) # Default to the worst case.
3061 am_cv_filesystem_timestamp_resolution=2
3062
3063 # Only try to go finer than 1 sec if sleep can do it.
3064 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3065 # - 1 sec is not much of a win compared to 2 sec, and
3066 # - it takes 2 seconds to perform the test whether 1 sec works.
3067 #
3068 # Instead, just use the default 2s on platforms that have 1s resolution,
3069 # accept the extra 1s delay when using $sleep in the Automake tests, in
3070 # exchange for not incurring the 2s delay for running the test for all
3071 # packages.
3072 #
3073 am_try_resolutions=
3074 if test "$am_cv_sleep_fractional_seconds" = yes; then
3075 # Even a millisecond often causes a bunch of false positives,
3076 # so just try a hundredth of a second. The time saved between .001 and
3077 # .01 is not terribly consequential.
3078 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3079 fi
3080
3081 # In order to catch current-generation FAT out, we must *modify* files
3082 # that already exist; the *creation* timestamp is finer. Use names
3083 # that make ls -t sort them differently when they have equal
3084 # timestamps than when they have distinct timestamps, keeping
3085 # in mind that ls -t prints the *newest* file first.
3086 rm -f conftest.ts?
3087 : > conftest.ts1
3088 : > conftest.ts2
3089 : > conftest.ts3
3090
3091 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3092 # clobber the current shell's arguments. (Outer-level square brackets
3093 # are removed by m4; they're present so that m4 does not expand
3094 # <dollar><star>; be careful, easy to get confused.)
3095 if (
3096 set X `ls -t conftest.ts[12]` &&
3097 {
3098 test "$*" != "X conftest.ts1 conftest.ts2" ||
3099 test "$*" != "X conftest.ts2 conftest.ts1";
3100 }
3101 ); then :; else
3102 # If neither matched, then we have a broken ls. This can happen
3103 # if, for instance, CONFIG_SHELL is bash and it inherits a
3104 # broken ls alias from the environment. This has actually
3105 # happened. Such a system could not be considered "sane".
3106 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3107 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3108 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3109 as_fn_error $? "ls -t produces unexpected output.
3110 Make sure there is not a broken ls alias in your environment.
3111 See 'config.log' for more details" "$LINENO" 5; }
3112 fi
3113
3114 for am_try_res in $am_try_resolutions; do
3115 # Any one fine-grained sleep might happen to cross the boundary
3116 # between two values of a coarser actual resolution, but if we do
3117 # two fine-grained sleeps in a row, at least one of them will fall
3118 # entirely within a coarse interval.
3119 echo alpha > conftest.ts1
3120 sleep $am_try_res
3121 echo beta > conftest.ts2
3122 sleep $am_try_res
3123 echo gamma > conftest.ts3
3124
3125 # We assume that 'ls -t' will make use of high-resolution
3126 # timestamps if the operating system supports them at all.
3127 if (set X `ls -t conftest.ts?` &&
3128 test "$2" = conftest.ts3 &&
3129 test "$3" = conftest.ts2 &&
3130 test "$4" = conftest.ts1); then
3131 #
3132 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3133 # because we don't need to test make.
3134 make_ok=true
3135 if test $am_try_res != 1; then
3136 # But if we've succeeded so far with a subsecond resolution, we
3137 # have one more thing to check: make. It can happen that
3138 # everything else supports the subsecond mtimes, but make doesn't;
3139 # notably on macOS, which ships make 3.81 from 2006 (the last one
3140 # released under GPLv2). https://bugs.gnu.org/68808
3141 #
3142 # We test $MAKE if it is defined in the environment, else "make".
3143 # It might get overridden later, but our hope is that in practice
3144 # it does not matter: it is the system "make" which is (by far)
3145 # the most likely to be broken, whereas if the user overrides it,
3146 # probably they did so with a better, or at least not worse, make.
3147 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3148 #
3149 # Create a Makefile (real tab character here):
3150 rm -f conftest.mk
3151 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3152 echo ' touch conftest.ts2' >>conftest.mk
3153 #
3154 # Now, running
3155 # touch conftest.ts1; touch conftest.ts2; make
3156 # should touch ts1 because ts2 is newer. This could happen by luck,
3157 # but most often, it will fail if make's support is insufficient. So
3158 # test for several consecutive successes.
3159 #
3160 # (We reuse conftest.ts[12] because we still want to modify existing
3161 # files, not create new ones, per above.)
3162 n=0
3163 make=${MAKE-make}
3164 until test $n -eq 3; do
3165 echo one > conftest.ts1
3166 sleep $am_try_res
3167 echo two > conftest.ts2 # ts2 should now be newer than ts1
3168 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3169 make_ok=false
3170 break # out of $n loop
3171 fi
3172 n=`expr $n + 1`
3173 done
3174 fi
3175 #
3176 if $make_ok; then
3177 # Everything we know to check worked out, so call this resolution good.
3178 am_cv_filesystem_timestamp_resolution=$am_try_res
3179 break # out of $am_try_res loop
3180 fi
3181 # Otherwise, we'll go on to check the next resolution.
3182 fi
3183 done
3184 rm -f conftest.ts?
3185 # (end _am_filesystem_timestamp_resolution)
3186 ;;
3187 esac
3188 fi
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3190 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3191
3192 # This check should not be cached, as it may vary across builds of
3193 # different projects.
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3195 printf %s "checking whether build environment is sane... " >&6; }
3196 # Reject unsafe characters in $srcdir or the absolute working directory
3197 # name. Accept space and tab only in the latter.
3198 am_lf='
3199 '
3200 case `pwd` in
3201 *[\\\"\#\$\&\'\`$am_lf]*)
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 printf "%s\n" "no" >&6; }
3204 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3205 esac
3206 case $srcdir in
3207 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 printf "%s\n" "no" >&6; }
3210 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3211 esac
3212
3213 # Do 'set' in a subshell so we don't clobber the current shell's
3214 # arguments. Must try -L first in case configure is actually a
3215 # symlink; some systems play weird games with the mod time of symlinks
3216 # (eg FreeBSD returns the mod time of the symlink's containing
3217 # directory).
3218 am_build_env_is_sane=no
3219 am_has_slept=no
3220 rm -f conftest.file
3221 for am_try in 1 2; do
3222 echo "timestamp, slept: $am_has_slept" > conftest.file
3223 if (
3224 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3225 if test "$*" = "X"; then
3226 # -L didn't work.
3227 set X `ls -t "$srcdir/configure" conftest.file`
3228 fi
3229 test "$2" = conftest.file
3230 ); then
3231 am_build_env_is_sane=yes
3232 break
3233 fi
3234 # Just in case.
3235 sleep "$am_cv_filesystem_timestamp_resolution"
3236 am_has_slept=yes
3237 done
3238
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3240 printf "%s\n" "$am_build_env_is_sane" >&6; }
3241 if test "$am_build_env_is_sane" = no; then
3242 as_fn_error $? "newly created file is older than distributed files!
3243 Check your system clock" "$LINENO" 5
3244 fi
3245
3246 # If we didn't sleep, we still need to ensure time stamps of config.status and
3247 # generated files are strictly newer.
3248 am_sleep_pid=
3249 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3250 then :
3251
3252 else case e in #(
3253 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3254 am_sleep_pid=$!
3255 ;;
3256 esac
3257 fi
3258
3259 rm -f conftest.file
3260
3261 test "$program_prefix" != NONE &&
3262 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3263 # Use a double $ so make ignores it.
3264 test "$program_suffix" != NONE &&
3265 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3266 # Double any \ or $.
3267 # By default was 's,x,x', remove it if useless.
3268 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3269 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3270
3271
3272 # Expand $ac_aux_dir to an absolute path.
3273 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3274
3275
3276 if test x"${MISSING+set}" != xset; then
3277 MISSING="\${SHELL} '$am_aux_dir/missing'"
3278 fi
3279 # Use eval to expand $SHELL
3280 if eval "$MISSING --is-lightweight"; then
3281 am_missing_run="$MISSING "
3282 else
3283 am_missing_run=
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3285 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3286 fi
3287
3288 if test x"${install_sh+set}" != xset; then
3289 case $am_aux_dir in
3290 *\ * | *\ *)
3291 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3292 *)
3293 install_sh="\${SHELL} $am_aux_dir/install-sh"
3294 esac
3295 fi
3296
3297 # Installed binaries are usually stripped using 'strip' when the user
3298 # run "make install-strip". However 'strip' might not be the right
3299 # tool to use in cross-compilation environments, therefore Automake
3300 # will honor the 'STRIP' environment variable to overrule this program.
3301 if test "$cross_compiling" != no; then
3302 if test -n "$ac_tool_prefix"; then
3303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}strip; ac_word=$2
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 printf %s "checking for $ac_word... " >&6; }
3307 if test ${ac_cv_prog_STRIP+y}
3308 then :
3309 printf %s "(cached) " >&6
3310 else case e in #(
3311 e) if test -n "$STRIP"; then
3312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317 IFS=$as_save_IFS
3318 case $as_dir in #(((
3319 '') as_dir=./ ;;
3320 */) ;;
3321 *) as_dir=$as_dir/ ;;
3322 esac
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329 done
3330 done
3331 IFS=$as_save_IFS
3332
3333 fi ;;
3334 esac
3335 fi
3336 STRIP=$ac_cv_prog_STRIP
3337 if test -n "$STRIP"; then
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3339 printf "%s\n" "$STRIP" >&6; }
3340 else
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 printf "%s\n" "no" >&6; }
3343 fi
3344
3345
3346 fi
3347 if test -z "$ac_cv_prog_STRIP"; then
3348 ac_ct_STRIP=$STRIP
3349 # Extract the first word of "strip", so it can be a program name with args.
3350 set dummy strip; ac_word=$2
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 printf %s "checking for $ac_word... " >&6; }
3353 if test ${ac_cv_prog_ac_ct_STRIP+y}
3354 then :
3355 printf %s "(cached) " >&6
3356 else case e in #(
3357 e) if test -n "$ac_ct_STRIP"; then
3358 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363 IFS=$as_save_IFS
3364 case $as_dir in #(((
3365 '') as_dir=./ ;;
3366 */) ;;
3367 *) as_dir=$as_dir/ ;;
3368 esac
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3371 ac_cv_prog_ac_ct_STRIP="strip"
3372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375 done
3376 done
3377 IFS=$as_save_IFS
3378
3379 fi ;;
3380 esac
3381 fi
3382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3383 if test -n "$ac_ct_STRIP"; then
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3385 printf "%s\n" "$ac_ct_STRIP" >&6; }
3386 else
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 printf "%s\n" "no" >&6; }
3389 fi
3390
3391 if test "x$ac_ct_STRIP" = x; then
3392 STRIP=":"
3393 else
3394 case $cross_compiling:$ac_tool_warned in
3395 yes:)
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3397 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3398 ac_tool_warned=yes ;;
3399 esac
3400 STRIP=$ac_ct_STRIP
3401 fi
3402 else
3403 STRIP="$ac_cv_prog_STRIP"
3404 fi
3405
3406 fi
3407 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3408
3409
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3411 printf %s "checking for a race-free mkdir -p... " >&6; }
3412 if test -z "$MKDIR_P"; then
3413 if test ${ac_cv_path_mkdir+y}
3414 then :
3415 printf %s "(cached) " >&6
3416 else case e in #(
3417 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3419 do
3420 IFS=$as_save_IFS
3421 case $as_dir in #(((
3422 '') as_dir=./ ;;
3423 */) ;;
3424 *) as_dir=$as_dir/ ;;
3425 esac
3426 for ac_prog in mkdir gmkdir; do
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3429 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3430 'mkdir ('*'coreutils) '* | \
3431 *'BusyBox '* | \
3432 'mkdir (fileutils) '4.1*)
3433 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3434 break 3;;
3435 esac
3436 done
3437 done
3438 done
3439 IFS=$as_save_IFS
3440 ;;
3441 esac
3442 fi
3443
3444 test -d ./--version && rmdir ./--version
3445 if test ${ac_cv_path_mkdir+y}; then
3446 MKDIR_P="$ac_cv_path_mkdir -p"
3447 else
3448 # As a last resort, use plain mkdir -p,
3449 # in the hope it doesn't have the bugs of ancient mkdir.
3450 MKDIR_P='mkdir -p'
3451 fi
3452 fi
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3454 printf "%s\n" "$MKDIR_P" >&6; }
3455
3456 for ac_prog in gawk mawk nawk awk
3457 do
3458 # Extract the first word of "$ac_prog", so it can be a program name with args.
3459 set dummy $ac_prog; ac_word=$2
3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 printf %s "checking for $ac_word... " >&6; }
3462 if test ${ac_cv_prog_AWK+y}
3463 then :
3464 printf %s "(cached) " >&6
3465 else case e in #(
3466 e) if test -n "$AWK"; then
3467 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472 IFS=$as_save_IFS
3473 case $as_dir in #(((
3474 '') as_dir=./ ;;
3475 */) ;;
3476 *) as_dir=$as_dir/ ;;
3477 esac
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_AWK="$ac_prog"
3481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3482 break 2
3483 fi
3484 done
3485 done
3486 IFS=$as_save_IFS
3487
3488 fi ;;
3489 esac
3490 fi
3491 AWK=$ac_cv_prog_AWK
3492 if test -n "$AWK"; then
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3494 printf "%s\n" "$AWK" >&6; }
3495 else
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 printf "%s\n" "no" >&6; }
3498 fi
3499
3500
3501 test -n "$AWK" && break
3502 done
3503
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3505 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3506 set x ${MAKE-make}
3507 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3508 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3509 then :
3510 printf %s "(cached) " >&6
3511 else case e in #(
3512 e) cat >conftest.make <<\_ACEOF
3513 SHELL = /bin/sh
3514 all:
3515 @echo '@@@%%%=$(MAKE)=@@@%%%'
3516 _ACEOF
3517 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3518 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3519 *@@@%%%=?*=@@@%%%*)
3520 eval ac_cv_prog_make_${ac_make}_set=yes;;
3521 *)
3522 eval ac_cv_prog_make_${ac_make}_set=no;;
3523 esac
3524 rm -f conftest.make ;;
3525 esac
3526 fi
3527 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3529 printf "%s\n" "yes" >&6; }
3530 SET_MAKE=
3531 else
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 printf "%s\n" "no" >&6; }
3534 SET_MAKE="MAKE=${MAKE-make}"
3535 fi
3536
3537 rm -rf .tst 2>/dev/null
3538 mkdir .tst 2>/dev/null
3539 if test -d .tst; then
3540 am__leading_dot=.
3541 else
3542 am__leading_dot=_
3543 fi
3544 rmdir .tst 2>/dev/null
3545
3546 AM_DEFAULT_VERBOSITY=1
3547 # Check whether --enable-silent-rules was given.
3548 if test ${enable_silent_rules+y}
3549 then :
3550 enableval=$enable_silent_rules;
3551 fi
3552
3553 am_make=${MAKE-make}
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3555 printf %s "checking whether $am_make supports nested variables... " >&6; }
3556 if test ${am_cv_make_support_nested_variables+y}
3557 then :
3558 printf %s "(cached) " >&6
3559 else case e in #(
3560 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3561 BAR0=false
3562 BAR1=true
3563 V=1
3564 am__doit:
3565 @$(TRUE)
3566 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3567 am_cv_make_support_nested_variables=yes
3568 else
3569 am_cv_make_support_nested_variables=no
3570 fi ;;
3571 esac
3572 fi
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3574 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3575 AM_BACKSLASH='\'
3576
3577 am__rm_f_notfound=
3578 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3579 then :
3580
3581 else case e in #(
3582 e) am__rm_f_notfound='""' ;;
3583 esac
3584 fi
3585
3586
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3588 printf %s "checking xargs -n works... " >&6; }
3589 if test ${am_cv_xargs_n_works+y}
3590 then :
3591 printf %s "(cached) " >&6
3592 else case e in #(
3593 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3594 3"
3595 then :
3596 am_cv_xargs_n_works=yes
3597 else case e in #(
3598 e) am_cv_xargs_n_works=no ;;
3599 esac
3600 fi ;;
3601 esac
3602 fi
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3604 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3605 if test "$am_cv_xargs_n_works" = yes
3606 then :
3607 am__xargs_n='xargs -n'
3608 else case e in #(
3609 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3610 ;;
3611 esac
3612 fi
3613
3614 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3615 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3616 # is not polluted with repeated "-I."
3617 am__isrc=' -I$(srcdir)'
3618 # test to see if srcdir already configured
3619 if test -f $srcdir/config.status; then
3620 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3621 fi
3622 fi
3623
3624 # test whether we have cygpath
3625 if test -z "$CYGPATH_W"; then
3626 if (cygpath --version) >/dev/null 2>/dev/null; then
3627 CYGPATH_W='cygpath -w'
3628 else
3629 CYGPATH_W=echo
3630 fi
3631 fi
3632
3633
3634 # Define the identity of the package.
3635 PACKAGE='libsodium'
3636 VERSION='1.0.20'
3637
3638
3639 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3640
3641
3642 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3643
3644 # Some tools Automake needs.
3645
3646 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3647
3648
3649 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3650
3651
3652 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3653
3654
3655 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3656
3657
3658 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3659
3660 # For better backward compatibility. To be removed once Automake 1.9.x
3661 # dies out for good. For more background, see:
3662 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3663 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3664 mkdir_p='$(MKDIR_P)'
3665
3666 # We need awk for the "check" target (and possibly the TAP driver). The
3667 # system "awk" is bad on some platforms.
3668 # Always define AMTAR for backward compatibility. Yes, it's still used
3669 # in the wild :-( We should find a proper way to deprecate it ...
3670 AMTAR='$${TAR-tar}'
3671
3672
3673 # We'll loop over all known methods to create a tar archive until one works.
3674 _am_tools='gnutar plaintar pax cpio none'
3675
3676 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3677 # There is notably a 21 bits limit for the UID and the GID. In fact,
3678 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3679 # and bug#13588).
3680 am_max_uid=2097151 # 2^21 - 1
3681 am_max_gid=$am_max_uid
3682 # The $UID and $GID variables are not portable, so we need to resort
3683 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3684 # below are definitely unexpected, so allow the users to see them
3685 # (that is, avoid stderr redirection).
3686 am_uid=`id -u || echo unknown`
3687 am_gid=`id -g || echo unknown`
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3689 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3690 if test x$am_uid = xunknown; then
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3692 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3693 elif test $am_uid -le $am_max_uid; then
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3695 printf "%s\n" "yes" >&6; }
3696 else
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 printf "%s\n" "no" >&6; }
3699 _am_tools=none
3700 fi
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3702 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3703 if test x$gm_gid = xunknown; then
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3705 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3706 elif test $am_gid -le $am_max_gid; then
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708 printf "%s\n" "yes" >&6; }
3709 else
3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 printf "%s\n" "no" >&6; }
3712 _am_tools=none
3713 fi
3714
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3716 printf %s "checking how to create a ustar tar archive... " >&6; }
3717
3718 # Go ahead even if we have the value already cached. We do so because we
3719 # need to set the values for the 'am__tar' and 'am__untar' variables.
3720 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3721
3722 for _am_tool in $_am_tools; do
3723 case $_am_tool in
3724 gnutar)
3725 for _am_tar in tar gnutar gtar; do
3726 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3727 ($_am_tar --version) >&5 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } && break
3731 done
3732 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3733 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3734 am__untar="$_am_tar -xf -"
3735 ;;
3736 plaintar)
3737 # Must skip GNU tar: if it does not support --format= it doesn't create
3738 # ustar tarball either.
3739 (tar --version) >/dev/null 2>&1 && continue
3740 am__tar='tar chf - "$$tardir"'
3741 am__tar_='tar chf - "$tardir"'
3742 am__untar='tar xf -'
3743 ;;
3744 pax)
3745 am__tar='pax -L -x ustar -w "$$tardir"'
3746 am__tar_='pax -L -x ustar -w "$tardir"'
3747 am__untar='pax -r'
3748 ;;
3749 cpio)
3750 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3751 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3752 am__untar='cpio -i -H ustar -d'
3753 ;;
3754 none)
3755 am__tar=false
3756 am__tar_=false
3757 am__untar=false
3758 ;;
3759 esac
3760
3761 # If the value was cached, stop now. We just wanted to have am__tar
3762 # and am__untar set.
3763 test -n "${am_cv_prog_tar_ustar}" && break
3764
3765 # tar/untar a dummy directory, and stop if the command works.
3766 rm -rf conftest.dir
3767 mkdir conftest.dir
3768 echo GrepMe > conftest.dir/file
3769 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3770 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }
3774 rm -rf conftest.dir
3775 if test -s conftest.tar; then
3776 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3777 ($am__untar <conftest.tar) >&5 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }
3781 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3782 (cat conftest.dir/file) >&5 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }
3786 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3787 fi
3788 done
3789 rm -rf conftest.dir
3790
3791 if test ${am_cv_prog_tar_ustar+y}
3792 then :
3793 printf %s "(cached) " >&6
3794 else case e in #(
3795 e) am_cv_prog_tar_ustar=$_am_tool ;;
3796 esac
3797 fi
3798
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3800 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3801
3802
3803
3804
3805
3806 # Variables for tags utilities; see am/tags.am
3807 if test -z "$CTAGS"; then
3808 CTAGS=ctags
3809 fi
3810
3811 if test -z "$ETAGS"; then
3812 ETAGS=etags
3813 fi
3814
3815 if test -z "$CSCOPE"; then
3816 CSCOPE=cscope
3817 fi
3818
3819
3820
3821
3822
3823
3824
3825
3826 AM_DEFAULT_VERBOSITY=0
3827
3828
3829
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3831 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3832 # Check whether --enable-maintainer-mode was given.
3833 if test ${enable_maintainer_mode+y}
3834 then :
3835 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3836 else case e in #(
3837 e) USE_MAINTAINER_MODE=no ;;
3838 esac
3839 fi
3840
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3842 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3843 if test $USE_MAINTAINER_MODE = yes; then
3844 MAINTAINER_MODE_TRUE=
3845 MAINTAINER_MODE_FALSE='#'
3846 else
3847 MAINTAINER_MODE_TRUE='#'
3848 MAINTAINER_MODE_FALSE=
3849 fi
3850
3851 MAINT=$MAINTAINER_MODE_TRUE
3852
3853
3854 # Check whether --enable-dependency-tracking was given.
3855 if test ${enable_dependency_tracking+y}
3856 then :
3857 enableval=$enable_dependency_tracking;
3858 fi
3859
3860 if test "x$enable_dependency_tracking" != xno; then
3861 am_depcomp="$ac_aux_dir/depcomp"
3862 AMDEPBACKSLASH='\'
3863 am__nodep='_no'
3864 fi
3865 if test "x$enable_dependency_tracking" != xno; then
3866 AMDEP_TRUE=
3867 AMDEP_FALSE='#'
3868 else
3869 AMDEP_TRUE='#'
3870 AMDEP_FALSE=
3871 fi
3872
3873
3874
3875
3876
3877 SODIUM_LIBRARY_VERSION_MAJOR=26
3878 SODIUM_LIBRARY_VERSION_MINOR=2
3879 DLL_VERSION=26
3880 SODIUM_LIBRARY_VERSION=28:0:2
3881 # | | |
3882 # +------+ | +---+
3883 # | | |
3884 # current:revision:age
3885 # | | |
3886 # | | +- increment if interfaces have been added
3887 # | | set to zero if interfaces have been removed
3888 # | | or changed
3889 # | +- increment if source code has changed
3890 # | set to zero if current is incremented
3891 # +- increment if interfaces have been added, removed or changed
3892
3893
3894
3895
3896
3897
3898 LX_CFLAGS=${CFLAGS-NONE}
3899 PKGCONFIG_LIBS_PRIVATE=""
3900
3901
3902 if pwd | fgrep ' ' > /dev/null 2>&1
3903 then :
3904 as_fn_error $? "The build directory contains whitespaces - This can cause tests/installation to fail due to limitations of some libtool versions" "$LINENO" 5
3905
3906 fi
3907
3908 sodium_CFLAGS=${CFLAGS+set}
3909 : ${CFLAGS=""}
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920 ac_ext=c
3921 ac_cpp='$CPP $CPPFLAGS'
3922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925 if test -n "$ac_tool_prefix"; then
3926 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3927 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 printf %s "checking for $ac_word... " >&6; }
3930 if test ${ac_cv_prog_CC+y}
3931 then :
3932 printf %s "(cached) " >&6
3933 else case e in #(
3934 e) if test -n "$CC"; then
3935 ac_cv_prog_CC="$CC" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940 IFS=$as_save_IFS
3941 case $as_dir in #(((
3942 '') as_dir=./ ;;
3943 */) ;;
3944 *) as_dir=$as_dir/ ;;
3945 esac
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3948 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952 done
3953 done
3954 IFS=$as_save_IFS
3955
3956 fi ;;
3957 esac
3958 fi
3959 CC=$ac_cv_prog_CC
3960 if test -n "$CC"; then
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 printf "%s\n" "$CC" >&6; }
3963 else
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 printf "%s\n" "no" >&6; }
3966 fi
3967
3968
3969 fi
3970 if test -z "$ac_cv_prog_CC"; then
3971 ac_ct_CC=$CC
3972 # Extract the first word of "gcc", so it can be a program name with args.
3973 set dummy gcc; ac_word=$2
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 printf %s "checking for $ac_word... " >&6; }
3976 if test ${ac_cv_prog_ac_ct_CC+y}
3977 then :
3978 printf %s "(cached) " >&6
3979 else case e in #(
3980 e) if test -n "$ac_ct_CC"; then
3981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986 IFS=$as_save_IFS
3987 case $as_dir in #(((
3988 '') as_dir=./ ;;
3989 */) ;;
3990 *) as_dir=$as_dir/ ;;
3991 esac
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_ac_ct_CC="gcc"
3995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3996 break 2
3997 fi
3998 done
3999 done
4000 IFS=$as_save_IFS
4001
4002 fi ;;
4003 esac
4004 fi
4005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4006 if test -n "$ac_ct_CC"; then
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4008 printf "%s\n" "$ac_ct_CC" >&6; }
4009 else
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 printf "%s\n" "no" >&6; }
4012 fi
4013
4014 if test "x$ac_ct_CC" = x; then
4015 CC=""
4016 else
4017 case $cross_compiling:$ac_tool_warned in
4018 yes:)
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4020 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4021 ac_tool_warned=yes ;;
4022 esac
4023 CC=$ac_ct_CC
4024 fi
4025 else
4026 CC="$ac_cv_prog_CC"
4027 fi
4028
4029 if test -z "$CC"; then
4030 if test -n "$ac_tool_prefix"; then
4031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4032 set dummy ${ac_tool_prefix}cc; ac_word=$2
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 printf %s "checking for $ac_word... " >&6; }
4035 if test ${ac_cv_prog_CC+y}
4036 then :
4037 printf %s "(cached) " >&6
4038 else case e in #(
4039 e) if test -n "$CC"; then
4040 ac_cv_prog_CC="$CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045 IFS=$as_save_IFS
4046 case $as_dir in #(((
4047 '') as_dir=./ ;;
4048 */) ;;
4049 *) as_dir=$as_dir/ ;;
4050 esac
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_CC="${ac_tool_prefix}cc"
4054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057 done
4058 done
4059 IFS=$as_save_IFS
4060
4061 fi ;;
4062 esac
4063 fi
4064 CC=$ac_cv_prog_CC
4065 if test -n "$CC"; then
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4067 printf "%s\n" "$CC" >&6; }
4068 else
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 printf "%s\n" "no" >&6; }
4071 fi
4072
4073
4074 fi
4075 fi
4076 if test -z "$CC"; then
4077 # Extract the first word of "cc", so it can be a program name with args.
4078 set dummy cc; ac_word=$2
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080 printf %s "checking for $ac_word... " >&6; }
4081 if test ${ac_cv_prog_CC+y}
4082 then :
4083 printf %s "(cached) " >&6
4084 else case e in #(
4085 e) if test -n "$CC"; then
4086 ac_cv_prog_CC="$CC" # Let the user override the test.
4087 else
4088 ac_prog_rejected=no
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092 IFS=$as_save_IFS
4093 case $as_dir in #(((
4094 '') as_dir=./ ;;
4095 */) ;;
4096 *) as_dir=$as_dir/ ;;
4097 esac
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4100 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4101 ac_prog_rejected=yes
4102 continue
4103 fi
4104 ac_cv_prog_CC="cc"
4105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4106 break 2
4107 fi
4108 done
4109 done
4110 IFS=$as_save_IFS
4111
4112 if test $ac_prog_rejected = yes; then
4113 # We found a bogon in the path, so make sure we never use it.
4114 set dummy $ac_cv_prog_CC
4115 shift
4116 if test $# != 0; then
4117 # We chose a different compiler from the bogus one.
4118 # However, it has the same basename, so the bogon will be chosen
4119 # first if we set CC to just the basename; use the full file name.
4120 shift
4121 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4122 fi
4123 fi
4124 fi ;;
4125 esac
4126 fi
4127 CC=$ac_cv_prog_CC
4128 if test -n "$CC"; then
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4130 printf "%s\n" "$CC" >&6; }
4131 else
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 printf "%s\n" "no" >&6; }
4134 fi
4135
4136
4137 fi
4138 if test -z "$CC"; then
4139 if test -n "$ac_tool_prefix"; then
4140 for ac_prog in cl.exe
4141 do
4142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 printf %s "checking for $ac_word... " >&6; }
4146 if test ${ac_cv_prog_CC+y}
4147 then :
4148 printf %s "(cached) " >&6
4149 else case e in #(
4150 e) if test -n "$CC"; then
4151 ac_cv_prog_CC="$CC" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4155 do
4156 IFS=$as_save_IFS
4157 case $as_dir in #(((
4158 '') as_dir=./ ;;
4159 */) ;;
4160 *) as_dir=$as_dir/ ;;
4161 esac
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4164 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4166 break 2
4167 fi
4168 done
4169 done
4170 IFS=$as_save_IFS
4171
4172 fi ;;
4173 esac
4174 fi
4175 CC=$ac_cv_prog_CC
4176 if test -n "$CC"; then
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4178 printf "%s\n" "$CC" >&6; }
4179 else
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 printf "%s\n" "no" >&6; }
4182 fi
4183
4184
4185 test -n "$CC" && break
4186 done
4187 fi
4188 if test -z "$CC"; then
4189 ac_ct_CC=$CC
4190 for ac_prog in cl.exe
4191 do
4192 # Extract the first word of "$ac_prog", so it can be a program name with args.
4193 set dummy $ac_prog; ac_word=$2
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 printf %s "checking for $ac_word... " >&6; }
4196 if test ${ac_cv_prog_ac_ct_CC+y}
4197 then :
4198 printf %s "(cached) " >&6
4199 else case e in #(
4200 e) if test -n "$ac_ct_CC"; then
4201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206 IFS=$as_save_IFS
4207 case $as_dir in #(((
4208 '') as_dir=./ ;;
4209 */) ;;
4210 *) as_dir=$as_dir/ ;;
4211 esac
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4214 ac_cv_prog_ac_ct_CC="$ac_prog"
4215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4216 break 2
4217 fi
4218 done
4219 done
4220 IFS=$as_save_IFS
4221
4222 fi ;;
4223 esac
4224 fi
4225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4226 if test -n "$ac_ct_CC"; then
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4228 printf "%s\n" "$ac_ct_CC" >&6; }
4229 else
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 printf "%s\n" "no" >&6; }
4232 fi
4233
4234
4235 test -n "$ac_ct_CC" && break
4236 done
4237
4238 if test "x$ac_ct_CC" = x; then
4239 CC=""
4240 else
4241 case $cross_compiling:$ac_tool_warned in
4242 yes:)
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4244 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4245 ac_tool_warned=yes ;;
4246 esac
4247 CC=$ac_ct_CC
4248 fi
4249 fi
4250
4251 fi
4252 if test -z "$CC"; then
4253 if test -n "$ac_tool_prefix"; then
4254 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4255 set dummy ${ac_tool_prefix}clang; ac_word=$2
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257 printf %s "checking for $ac_word... " >&6; }
4258 if test ${ac_cv_prog_CC+y}
4259 then :
4260 printf %s "(cached) " >&6
4261 else case e in #(
4262 e) if test -n "$CC"; then
4263 ac_cv_prog_CC="$CC" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268 IFS=$as_save_IFS
4269 case $as_dir in #(((
4270 '') as_dir=./ ;;
4271 */) ;;
4272 *) as_dir=$as_dir/ ;;
4273 esac
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4276 ac_cv_prog_CC="${ac_tool_prefix}clang"
4277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4278 break 2
4279 fi
4280 done
4281 done
4282 IFS=$as_save_IFS
4283
4284 fi ;;
4285 esac
4286 fi
4287 CC=$ac_cv_prog_CC
4288 if test -n "$CC"; then
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4290 printf "%s\n" "$CC" >&6; }
4291 else
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 printf "%s\n" "no" >&6; }
4294 fi
4295
4296
4297 fi
4298 if test -z "$ac_cv_prog_CC"; then
4299 ac_ct_CC=$CC
4300 # Extract the first word of "clang", so it can be a program name with args.
4301 set dummy clang; ac_word=$2
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 printf %s "checking for $ac_word... " >&6; }
4304 if test ${ac_cv_prog_ac_ct_CC+y}
4305 then :
4306 printf %s "(cached) " >&6
4307 else case e in #(
4308 e) if test -n "$ac_ct_CC"; then
4309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314 IFS=$as_save_IFS
4315 case $as_dir in #(((
4316 '') as_dir=./ ;;
4317 */) ;;
4318 *) as_dir=$as_dir/ ;;
4319 esac
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4322 ac_cv_prog_ac_ct_CC="clang"
4323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4324 break 2
4325 fi
4326 done
4327 done
4328 IFS=$as_save_IFS
4329
4330 fi ;;
4331 esac
4332 fi
4333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4334 if test -n "$ac_ct_CC"; then
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4336 printf "%s\n" "$ac_ct_CC" >&6; }
4337 else
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 printf "%s\n" "no" >&6; }
4340 fi
4341
4342 if test "x$ac_ct_CC" = x; then
4343 CC=""
4344 else
4345 case $cross_compiling:$ac_tool_warned in
4346 yes:)
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4348 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4349 ac_tool_warned=yes ;;
4350 esac
4351 CC=$ac_ct_CC
4352 fi
4353 else
4354 CC="$ac_cv_prog_CC"
4355 fi
4356
4357 fi
4358
4359
4360 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4361 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4362 as_fn_error $? "no acceptable C compiler found in \$PATH
4363 See 'config.log' for more details" "$LINENO" 5; }
4364
4365 # Provide some information about the compiler.
4366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4367 set X $ac_compile
4368 ac_compiler=$2
4369 for ac_option in --version -v -V -qversion -version; do
4370 { { ac_try="$ac_compiler $ac_option >&5"
4371 case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374 esac
4375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4376 printf "%s\n" "$ac_try_echo"; } >&5
4377 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4378 ac_status=$?
4379 if test -s conftest.err; then
4380 sed '10a\
4381 ... rest of stderr output deleted ...
4382 10q' conftest.err >conftest.er1
4383 cat conftest.er1 >&5
4384 fi
4385 rm -f conftest.er1 conftest.err
4386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; }
4388 done
4389
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392
4393 int
4394 main (void)
4395 {
4396
4397 ;
4398 return 0;
4399 }
4400 _ACEOF
4401 ac_clean_files_save=$ac_clean_files
4402 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4403 # Try to create an executable without -o first, disregard a.out.
4404 # It will help us diagnose broken compilers, and finding out an intuition
4405 # of exeext.
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4407 printf %s "checking whether the C compiler works... " >&6; }
4408 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4409
4410 # The possible output files:
4411 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4412
4413 ac_rmfiles=
4414 for ac_file in $ac_files
4415 do
4416 case $ac_file in
4417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4418 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4419 esac
4420 done
4421 rm -f $ac_rmfiles
4422
4423 if { { ac_try="$ac_link_default"
4424 case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427 esac
4428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429 printf "%s\n" "$ac_try_echo"; } >&5
4430 (eval "$ac_link_default") 2>&5
4431 ac_status=$?
4432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433 test $ac_status = 0; }
4434 then :
4435 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4436 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4437 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4438 # so that the user can short-circuit this test for compilers unknown to
4439 # Autoconf.
4440 for ac_file in $ac_files ''
4441 do
4442 test -f "$ac_file" || continue
4443 case $ac_file in
4444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4445 ;;
4446 [ab].out )
4447 # We found the default executable, but exeext='' is most
4448 # certainly right.
4449 break;;
4450 *.* )
4451 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4452 then :; else
4453 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4454 fi
4455 # We set ac_cv_exeext here because the later test for it is not
4456 # safe: cross compilers may not add the suffix if given an '-o'
4457 # argument, so we may need to know it at that point already.
4458 # Even if this section looks crufty: it has the advantage of
4459 # actually working.
4460 break;;
4461 * )
4462 break;;
4463 esac
4464 done
4465 test "$ac_cv_exeext" = no && ac_cv_exeext=
4466
4467 else case e in #(
4468 e) ac_file='' ;;
4469 esac
4470 fi
4471 if test -z "$ac_file"
4472 then :
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 printf "%s\n" "no" >&6; }
4475 printf "%s\n" "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4479 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4480 as_fn_error 77 "C compiler cannot create executables
4481 See 'config.log' for more details" "$LINENO" 5; }
4482 else case e in #(
4483 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484 printf "%s\n" "yes" >&6; } ;;
4485 esac
4486 fi
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4488 printf %s "checking for C compiler default output file name... " >&6; }
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4490 printf "%s\n" "$ac_file" >&6; }
4491 ac_exeext=$ac_cv_exeext
4492
4493 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4494 ac_clean_files=$ac_clean_files_save
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4496 printf %s "checking for suffix of executables... " >&6; }
4497 if { { ac_try="$ac_link"
4498 case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501 esac
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 printf "%s\n" "$ac_try_echo"; } >&5
4504 (eval "$ac_link") 2>&5
4505 ac_status=$?
4506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }
4508 then :
4509 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4510 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4511 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4512 # 'rm'.
4513 for ac_file in conftest.exe conftest conftest.*; do
4514 test -f "$ac_file" || continue
4515 case $ac_file in
4516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4517 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4518 break;;
4519 * ) break;;
4520 esac
4521 done
4522 else case e in #(
4523 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4524 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4525 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4526 See 'config.log' for more details" "$LINENO" 5; } ;;
4527 esac
4528 fi
4529 rm -f conftest conftest$ac_cv_exeext
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4531 printf "%s\n" "$ac_cv_exeext" >&6; }
4532
4533 rm -f conftest.$ac_ext
4534 EXEEXT=$ac_cv_exeext
4535 ac_exeext=$EXEEXT
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 #include <stdio.h>
4539 int
4540 main (void)
4541 {
4542 FILE *f = fopen ("conftest.out", "w");
4543 if (!f)
4544 return 1;
4545 return ferror (f) || fclose (f) != 0;
4546
4547 ;
4548 return 0;
4549 }
4550 _ACEOF
4551 ac_clean_files="$ac_clean_files conftest.out"
4552 # Check that the compiler produces executables we can run. If not, either
4553 # the compiler is broken, or we cross compile.
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4555 printf %s "checking whether we are cross compiling... " >&6; }
4556 if test "$cross_compiling" != yes; then
4557 { { ac_try="$ac_link"
4558 case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561 esac
4562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563 printf "%s\n" "$ac_try_echo"; } >&5
4564 (eval "$ac_link") 2>&5
4565 ac_status=$?
4566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }
4568 if { ac_try='./conftest$ac_cv_exeext'
4569 { { case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572 esac
4573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4574 printf "%s\n" "$ac_try_echo"; } >&5
4575 (eval "$ac_try") 2>&5
4576 ac_status=$?
4577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4578 test $ac_status = 0; }; }; then
4579 cross_compiling=no
4580 else
4581 if test "$cross_compiling" = maybe; then
4582 cross_compiling=yes
4583 else
4584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4585 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4586 as_fn_error 77 "cannot run C compiled programs.
4587 If you meant to cross compile, use '--host'.
4588 See 'config.log' for more details" "$LINENO" 5; }
4589 fi
4590 fi
4591 fi
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4593 printf "%s\n" "$cross_compiling" >&6; }
4594
4595 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4596 conftest.o conftest.obj conftest.out
4597 ac_clean_files=$ac_clean_files_save
4598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4599 printf %s "checking for suffix of object files... " >&6; }
4600 if test ${ac_cv_objext+y}
4601 then :
4602 printf %s "(cached) " >&6
4603 else case e in #(
4604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606
4607 int
4608 main (void)
4609 {
4610
4611 ;
4612 return 0;
4613 }
4614 _ACEOF
4615 rm -f conftest.o conftest.obj
4616 if { { ac_try="$ac_compile"
4617 case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620 esac
4621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4622 printf "%s\n" "$ac_try_echo"; } >&5
4623 (eval "$ac_compile") 2>&5
4624 ac_status=$?
4625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4626 test $ac_status = 0; }
4627 then :
4628 for ac_file in conftest.o conftest.obj conftest.*; do
4629 test -f "$ac_file" || continue;
4630 case $ac_file in
4631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4632 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4633 break;;
4634 esac
4635 done
4636 else case e in #(
4637 e) printf "%s\n" "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4639
4640 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4641 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4642 as_fn_error $? "cannot compute suffix of object files: cannot compile
4643 See 'config.log' for more details" "$LINENO" 5; } ;;
4644 esac
4645 fi
4646 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4647 esac
4648 fi
4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4650 printf "%s\n" "$ac_cv_objext" >&6; }
4651 OBJEXT=$ac_cv_objext
4652 ac_objext=$OBJEXT
4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4654 printf %s "checking whether the compiler supports GNU C... " >&6; }
4655 if test ${ac_cv_c_compiler_gnu+y}
4656 then :
4657 printf %s "(cached) " >&6
4658 else case e in #(
4659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661
4662 int
4663 main (void)
4664 {
4665 #ifndef __GNUC__
4666 choke me
4667 #endif
4668
4669 ;
4670 return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_c_try_compile "$LINENO"
4674 then :
4675 ac_compiler_gnu=yes
4676 else case e in #(
4677 e) ac_compiler_gnu=no ;;
4678 esac
4679 fi
4680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4681 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4682 ;;
4683 esac
4684 fi
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4686 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688
4689 if test $ac_compiler_gnu = yes; then
4690 GCC=yes
4691 else
4692 GCC=
4693 fi
4694 ac_test_CFLAGS=${CFLAGS+y}
4695 ac_save_CFLAGS=$CFLAGS
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4697 printf %s "checking whether $CC accepts -g... " >&6; }
4698 if test ${ac_cv_prog_cc_g+y}
4699 then :
4700 printf %s "(cached) " >&6
4701 else case e in #(
4702 e) ac_save_c_werror_flag=$ac_c_werror_flag
4703 ac_c_werror_flag=yes
4704 ac_cv_prog_cc_g=no
4705 CFLAGS="-g"
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708
4709 int
4710 main (void)
4711 {
4712
4713 ;
4714 return 0;
4715 }
4716 _ACEOF
4717 if ac_fn_c_try_compile "$LINENO"
4718 then :
4719 ac_cv_prog_cc_g=yes
4720 else case e in #(
4721 e) CFLAGS=""
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724
4725 int
4726 main (void)
4727 {
4728
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 if ac_fn_c_try_compile "$LINENO"
4734 then :
4735
4736 else case e in #(
4737 e) ac_c_werror_flag=$ac_save_c_werror_flag
4738 CFLAGS="-g"
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741
4742 int
4743 main (void)
4744 {
4745
4746 ;
4747 return 0;
4748 }
4749 _ACEOF
4750 if ac_fn_c_try_compile "$LINENO"
4751 then :
4752 ac_cv_prog_cc_g=yes
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4755 esac
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4758 esac
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4761 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4762 esac
4763 fi
4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4765 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4766 if test $ac_test_CFLAGS; then
4767 CFLAGS=$ac_save_CFLAGS
4768 elif test $ac_cv_prog_cc_g = yes; then
4769 if test "$GCC" = yes; then
4770 CFLAGS="-g -O2"
4771 else
4772 CFLAGS="-g"
4773 fi
4774 else
4775 if test "$GCC" = yes; then
4776 CFLAGS="-O2"
4777 else
4778 CFLAGS=
4779 fi
4780 fi
4781 ac_prog_cc_stdc=no
4782 if test x$ac_prog_cc_stdc = xno
4783 then :
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4785 printf %s "checking for $CC option to enable C11 features... " >&6; }
4786 if test ${ac_cv_prog_cc_c11+y}
4787 then :
4788 printf %s "(cached) " >&6
4789 else case e in #(
4790 e) ac_cv_prog_cc_c11=no
4791 ac_save_CC=$CC
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 $ac_c_conftest_c11_program
4795 _ACEOF
4796 for ac_arg in '' -std=gnu11
4797 do
4798 CC="$ac_save_CC $ac_arg"
4799 if ac_fn_c_try_compile "$LINENO"
4800 then :
4801 ac_cv_prog_cc_c11=$ac_arg
4802 fi
4803 rm -f core conftest.err conftest.$ac_objext conftest.beam
4804 test "x$ac_cv_prog_cc_c11" != "xno" && break
4805 done
4806 rm -f conftest.$ac_ext
4807 CC=$ac_save_CC ;;
4808 esac
4809 fi
4810
4811 if test "x$ac_cv_prog_cc_c11" = xno
4812 then :
4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4814 printf "%s\n" "unsupported" >&6; }
4815 else case e in #(
4816 e) if test "x$ac_cv_prog_cc_c11" = x
4817 then :
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4819 printf "%s\n" "none needed" >&6; }
4820 else case e in #(
4821 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4822 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4823 CC="$CC $ac_cv_prog_cc_c11" ;;
4824 esac
4825 fi
4826 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4827 ac_prog_cc_stdc=c11 ;;
4828 esac
4829 fi
4830 fi
4831 if test x$ac_prog_cc_stdc = xno
4832 then :
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4834 printf %s "checking for $CC option to enable C99 features... " >&6; }
4835 if test ${ac_cv_prog_cc_c99+y}
4836 then :
4837 printf %s "(cached) " >&6
4838 else case e in #(
4839 e) ac_cv_prog_cc_c99=no
4840 ac_save_CC=$CC
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843 $ac_c_conftest_c99_program
4844 _ACEOF
4845 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4846 do
4847 CC="$ac_save_CC $ac_arg"
4848 if ac_fn_c_try_compile "$LINENO"
4849 then :
4850 ac_cv_prog_cc_c99=$ac_arg
4851 fi
4852 rm -f core conftest.err conftest.$ac_objext conftest.beam
4853 test "x$ac_cv_prog_cc_c99" != "xno" && break
4854 done
4855 rm -f conftest.$ac_ext
4856 CC=$ac_save_CC ;;
4857 esac
4858 fi
4859
4860 if test "x$ac_cv_prog_cc_c99" = xno
4861 then :
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4863 printf "%s\n" "unsupported" >&6; }
4864 else case e in #(
4865 e) if test "x$ac_cv_prog_cc_c99" = x
4866 then :
4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4868 printf "%s\n" "none needed" >&6; }
4869 else case e in #(
4870 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4871 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4872 CC="$CC $ac_cv_prog_cc_c99" ;;
4873 esac
4874 fi
4875 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4876 ac_prog_cc_stdc=c99 ;;
4877 esac
4878 fi
4879 fi
4880 if test x$ac_prog_cc_stdc = xno
4881 then :
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4883 printf %s "checking for $CC option to enable C89 features... " >&6; }
4884 if test ${ac_cv_prog_cc_c89+y}
4885 then :
4886 printf %s "(cached) " >&6
4887 else case e in #(
4888 e) ac_cv_prog_cc_c89=no
4889 ac_save_CC=$CC
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 $ac_c_conftest_c89_program
4893 _ACEOF
4894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4895 do
4896 CC="$ac_save_CC $ac_arg"
4897 if ac_fn_c_try_compile "$LINENO"
4898 then :
4899 ac_cv_prog_cc_c89=$ac_arg
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext conftest.beam
4902 test "x$ac_cv_prog_cc_c89" != "xno" && break
4903 done
4904 rm -f conftest.$ac_ext
4905 CC=$ac_save_CC ;;
4906 esac
4907 fi
4908
4909 if test "x$ac_cv_prog_cc_c89" = xno
4910 then :
4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4912 printf "%s\n" "unsupported" >&6; }
4913 else case e in #(
4914 e) if test "x$ac_cv_prog_cc_c89" = x
4915 then :
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4917 printf "%s\n" "none needed" >&6; }
4918 else case e in #(
4919 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4920 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4921 CC="$CC $ac_cv_prog_cc_c89" ;;
4922 esac
4923 fi
4924 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4925 ac_prog_cc_stdc=c89 ;;
4926 esac
4927 fi
4928 fi
4929
4930 ac_ext=c
4931 ac_cpp='$CPP $CPPFLAGS'
4932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4935
4936
4937 ac_ext=c
4938 ac_cpp='$CPP $CPPFLAGS'
4939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4943 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4944 if test ${am_cv_prog_cc_c_o+y}
4945 then :
4946 printf %s "(cached) " >&6
4947 else case e in #(
4948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950
4951 int
4952 main (void)
4953 {
4954
4955 ;
4956 return 0;
4957 }
4958 _ACEOF
4959 # Make sure it works both with $CC and with simple cc.
4960 # Following AC_PROG_CC_C_O, we do the test twice because some
4961 # compilers refuse to overwrite an existing .o file with -o,
4962 # though they will create one.
4963 am_cv_prog_cc_c_o=yes
4964 for am_i in 1 2; do
4965 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4966 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } \
4970 && test -f conftest2.$ac_objext; then
4971 : OK
4972 else
4973 am_cv_prog_cc_c_o=no
4974 break
4975 fi
4976 done
4977 # aligned with autoconf, so not including core; see bug#72225.
4978 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4979 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4980 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4981 unset am_i ;;
4982 esac
4983 fi
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4985 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4986 if test "$am_cv_prog_cc_c_o" != yes; then
4987 # Losing compiler, so override with the script.
4988 # FIXME: It is wrong to rewrite CC.
4989 # But if we don't then we get into trouble of one sort or another.
4990 # A longer-term fix would be to have automake use am__CC in this case,
4991 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4992 CC="$am_aux_dir/compile $CC"
4993 fi
4994 ac_ext=c
4995 ac_cpp='$CPP $CPPFLAGS'
4996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4999
5000 DEPDIR="${am__leading_dot}deps"
5001
5002 ac_config_commands="$ac_config_commands depfiles"
5003
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5005 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5006 cat > confinc.mk << 'END'
5007 am__doit:
5008 @echo this is the am__doit target >confinc.out
5009 .PHONY: am__doit
5010 END
5011 am__include="#"
5012 am__quote=
5013 # BSD make does it like this.
5014 echo '.include "confinc.mk" # ignored' > confmf.BSD
5015 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5016 echo 'include confinc.mk # ignored' > confmf.GNU
5017 _am_result=no
5018 for s in GNU BSD; do
5019 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5020 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }
5024 case $?:`cat confinc.out 2>/dev/null` in #(
5025 '0:this is the am__doit target') :
5026 case $s in #(
5027 BSD) :
5028 am__include='.include' am__quote='"' ;; #(
5029 *) :
5030 am__include='include' am__quote='' ;;
5031 esac ;; #(
5032 *) :
5033 ;;
5034 esac
5035 if test "$am__include" != "#"; then
5036 _am_result="yes ($s style)"
5037 break
5038 fi
5039 done
5040 rm -f confinc.* confmf.*
5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5042 printf "%s\n" "${_am_result}" >&6; }
5043
5044
5045 depcc="$CC" am_compiler_list=
5046
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5048 printf %s "checking dependency style of $depcc... " >&6; }
5049 if test ${am_cv_CC_dependencies_compiler_type+y}
5050 then :
5051 printf %s "(cached) " >&6
5052 else case e in #(
5053 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5054 # We make a subdir and do the tests there. Otherwise we can end up
5055 # making bogus files that we don't know about and never remove. For
5056 # instance it was reported that on HP-UX the gcc test will end up
5057 # making a dummy file named 'D' -- because '-MD' means "put the output
5058 # in D".
5059 rm -rf conftest.dir
5060 mkdir conftest.dir
5061 # Copy depcomp to subdir because otherwise we won't find it if we're
5062 # using a relative directory.
5063 cp "$am_depcomp" conftest.dir
5064 cd conftest.dir
5065 # We will build objects and dependencies in a subdirectory because
5066 # it helps to detect inapplicable dependency modes. For instance
5067 # both Tru64's cc and ICC support -MD to output dependencies as a
5068 # side effect of compilation, but ICC will put the dependencies in
5069 # the current directory while Tru64 will put them in the object
5070 # directory.
5071 mkdir sub
5072
5073 am_cv_CC_dependencies_compiler_type=none
5074 if test "$am_compiler_list" = ""; then
5075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5076 fi
5077 am__universal=false
5078 case " $depcc " in #(
5079 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5080 esac
5081
5082 for depmode in $am_compiler_list; do
5083 # Setup a source with many dependencies, because some compilers
5084 # like to wrap large dependency lists on column 80 (with \), and
5085 # we should not choose a depcomp mode which is confused by this.
5086 #
5087 # We need to recreate these files for each test, as the compiler may
5088 # overwrite some of them when testing with obscure command lines.
5089 # This happens at least with the AIX C compiler.
5090 : > sub/conftest.c
5091 for i in 1 2 3 4 5 6; do
5092 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5093 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5094 # Solaris 10 /bin/sh.
5095 echo '/* dummy */' > sub/conftst$i.h
5096 done
5097 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5098
5099 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5100 # mode. It turns out that the SunPro C++ compiler does not properly
5101 # handle '-M -o', and we need to detect this. Also, some Intel
5102 # versions had trouble with output in subdirs.
5103 am__obj=sub/conftest.${OBJEXT-o}
5104 am__minus_obj="-o $am__obj"
5105 case $depmode in
5106 gcc)
5107 # This depmode causes a compiler race in universal mode.
5108 test "$am__universal" = false || continue
5109 ;;
5110 nosideeffect)
5111 # After this tag, mechanisms are not by side-effect, so they'll
5112 # only be used when explicitly requested.
5113 if test "x$enable_dependency_tracking" = xyes; then
5114 continue
5115 else
5116 break
5117 fi
5118 ;;
5119 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5120 # This compiler won't grok '-c -o', but also, the minuso test has
5121 # not run yet. These depmodes are late enough in the game, and
5122 # so weak that their functioning should not be impacted.
5123 am__obj=conftest.${OBJEXT-o}
5124 am__minus_obj=
5125 ;;
5126 none) break ;;
5127 esac
5128 if depmode=$depmode \
5129 source=sub/conftest.c object=$am__obj \
5130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5131 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5132 >/dev/null 2>conftest.err &&
5133 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5134 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5135 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5136 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5137 # icc doesn't choke on unknown options, it will just issue warnings
5138 # or remarks (even with -Werror). So we grep stderr for any message
5139 # that says an option was ignored or not supported.
5140 # When given -MP, icc 7.0 and 7.1 complain thus:
5141 # icc: Command line warning: ignoring option '-M'; no argument required
5142 # The diagnosis changed in icc 8.0:
5143 # icc: Command line remark: option '-MP' not supported
5144 if (grep 'ignoring option' conftest.err ||
5145 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5146 am_cv_CC_dependencies_compiler_type=$depmode
5147 break
5148 fi
5149 fi
5150 done
5151
5152 cd ..
5153 rm -rf conftest.dir
5154 else
5155 am_cv_CC_dependencies_compiler_type=none
5156 fi
5157 ;;
5158 esac
5159 fi
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5161 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5162 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5163
5164 if
5165 test "x$enable_dependency_tracking" != xno \
5166 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5167 am__fastdepCC_TRUE=
5168 am__fastdepCC_FALSE='#'
5169 else
5170 am__fastdepCC_TRUE='#'
5171 am__fastdepCC_FALSE=
5172 fi
5173
5174
5175 # By default we simply use the C compiler to build assembly code.
5176
5177 test "${CCAS+set}" = set || CCAS=$CC
5178 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5179
5180
5181
5182 depcc="$CCAS" am_compiler_list=
5183
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5185 printf %s "checking dependency style of $depcc... " >&6; }
5186 if test ${am_cv_CCAS_dependencies_compiler_type+y}
5187 then :
5188 printf %s "(cached) " >&6
5189 else case e in #(
5190 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5191 # We make a subdir and do the tests there. Otherwise we can end up
5192 # making bogus files that we don't know about and never remove. For
5193 # instance it was reported that on HP-UX the gcc test will end up
5194 # making a dummy file named 'D' -- because '-MD' means "put the output
5195 # in D".
5196 rm -rf conftest.dir
5197 mkdir conftest.dir
5198 # Copy depcomp to subdir because otherwise we won't find it if we're
5199 # using a relative directory.
5200 cp "$am_depcomp" conftest.dir
5201 cd conftest.dir
5202 # We will build objects and dependencies in a subdirectory because
5203 # it helps to detect inapplicable dependency modes. For instance
5204 # both Tru64's cc and ICC support -MD to output dependencies as a
5205 # side effect of compilation, but ICC will put the dependencies in
5206 # the current directory while Tru64 will put them in the object
5207 # directory.
5208 mkdir sub
5209
5210 am_cv_CCAS_dependencies_compiler_type=none
5211 if test "$am_compiler_list" = ""; then
5212 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5213 fi
5214 am__universal=false
5215
5216
5217 for depmode in $am_compiler_list; do
5218 # Setup a source with many dependencies, because some compilers
5219 # like to wrap large dependency lists on column 80 (with \), and
5220 # we should not choose a depcomp mode which is confused by this.
5221 #
5222 # We need to recreate these files for each test, as the compiler may
5223 # overwrite some of them when testing with obscure command lines.
5224 # This happens at least with the AIX C compiler.
5225 : > sub/conftest.c
5226 for i in 1 2 3 4 5 6; do
5227 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5228 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5229 # Solaris 10 /bin/sh.
5230 echo '/* dummy */' > sub/conftst$i.h
5231 done
5232 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5233
5234 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5235 # mode. It turns out that the SunPro C++ compiler does not properly
5236 # handle '-M -o', and we need to detect this. Also, some Intel
5237 # versions had trouble with output in subdirs.
5238 am__obj=sub/conftest.${OBJEXT-o}
5239 am__minus_obj="-o $am__obj"
5240 case $depmode in
5241 gcc)
5242 # This depmode causes a compiler race in universal mode.
5243 test "$am__universal" = false || continue
5244 ;;
5245 nosideeffect)
5246 # After this tag, mechanisms are not by side-effect, so they'll
5247 # only be used when explicitly requested.
5248 if test "x$enable_dependency_tracking" = xyes; then
5249 continue
5250 else
5251 break
5252 fi
5253 ;;
5254 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5255 # This compiler won't grok '-c -o', but also, the minuso test has
5256 # not run yet. These depmodes are late enough in the game, and
5257 # so weak that their functioning should not be impacted.
5258 am__obj=conftest.${OBJEXT-o}
5259 am__minus_obj=
5260 ;;
5261 none) break ;;
5262 esac
5263 if depmode=$depmode \
5264 source=sub/conftest.c object=$am__obj \
5265 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5266 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5267 >/dev/null 2>conftest.err &&
5268 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5269 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5270 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5271 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5272 # icc doesn't choke on unknown options, it will just issue warnings
5273 # or remarks (even with -Werror). So we grep stderr for any message
5274 # that says an option was ignored or not supported.
5275 # When given -MP, icc 7.0 and 7.1 complain thus:
5276 # icc: Command line warning: ignoring option '-M'; no argument required
5277 # The diagnosis changed in icc 8.0:
5278 # icc: Command line remark: option '-MP' not supported
5279 if (grep 'ignoring option' conftest.err ||
5280 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5281 am_cv_CCAS_dependencies_compiler_type=$depmode
5282 break
5283 fi
5284 fi
5285 done
5286
5287 cd ..
5288 rm -rf conftest.dir
5289 else
5290 am_cv_CCAS_dependencies_compiler_type=none
5291 fi
5292 ;;
5293 esac
5294 fi
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5296 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5297 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5298
5299 if
5300 test "x$enable_dependency_tracking" != xno \
5301 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5302 am__fastdepCCAS_TRUE=
5303 am__fastdepCCAS_FALSE='#'
5304 else
5305 am__fastdepCCAS_TRUE='#'
5306 am__fastdepCCAS_FALSE=
5307 fi
5308
5309
5310
5311 ac_header= ac_cache=
5312 for ac_item in $ac_header_c_list
5313 do
5314 if test $ac_cache; then
5315 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5316 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5317 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5318 fi
5319 ac_header= ac_cache=
5320 elif test $ac_header; then
5321 ac_cache=$ac_item
5322 else
5323 ac_header=$ac_item
5324 fi
5325 done
5326
5327
5328
5329
5330
5331
5332
5333
5334 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5335 then :
5336
5337 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5338
5339 fi
5340
5341
5342
5343
5344
5345
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5347 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5348 if test ${ac_cv_safe_to_define___extensions__+y}
5349 then :
5350 printf %s "(cached) " >&6
5351 else case e in #(
5352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354
5355 # define __EXTENSIONS__ 1
5356 $ac_includes_default
5357 int
5358 main (void)
5359 {
5360
5361 ;
5362 return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"
5366 then :
5367 ac_cv_safe_to_define___extensions__=yes
5368 else case e in #(
5369 e) ac_cv_safe_to_define___extensions__=no ;;
5370 esac
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5373 esac
5374 fi
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5376 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5377
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5379 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5380 if test ${ac_cv_should_define__xopen_source+y}
5381 then :
5382 printf %s "(cached) " >&6
5383 else case e in #(
5384 e) ac_cv_should_define__xopen_source=no
5385 if test $ac_cv_header_wchar_h = yes
5386 then :
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389
5390 #include <wchar.h>
5391 mbstate_t x;
5392 int
5393 main (void)
5394 {
5395
5396 ;
5397 return 0;
5398 }
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"
5401 then :
5402
5403 else case e in #(
5404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406
5407 #define _XOPEN_SOURCE 500
5408 #include <wchar.h>
5409 mbstate_t x;
5410 int
5411 main (void)
5412 {
5413
5414 ;
5415 return 0;
5416 }
5417 _ACEOF
5418 if ac_fn_c_try_compile "$LINENO"
5419 then :
5420 ac_cv_should_define__xopen_source=yes
5421 fi
5422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5423 esac
5424 fi
5425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5426 fi ;;
5427 esac
5428 fi
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5430 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5431
5432 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5433
5434 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5435
5436 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5437
5438 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5439
5440 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5441
5442 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5443
5444 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5445
5446 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5447
5448 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5449
5450 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5451
5452 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5453
5454 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5455
5456 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5457
5458 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5459
5460 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5461
5462 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5463
5464 if test $ac_cv_header_minix_config_h = yes
5465 then :
5466 MINIX=yes
5467 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5468
5469 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5470
5471 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5472
5473 else case e in #(
5474 e) MINIX= ;;
5475 esac
5476 fi
5477 if test $ac_cv_safe_to_define___extensions__ = yes
5478 then :
5479 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5480
5481 fi
5482 if test $ac_cv_should_define__xopen_source = yes
5483 then :
5484 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5485
5486 fi
5487
5488
5489
5490 if test "$sodium_CFLAGS" != "set" ; then
5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -O3" >&5
5492 printf %s "checking whether C compiler accepts -O3... " >&6; }
5493 if test ${ax_cv_check_cflags___O3+y}
5494 then :
5495 printf %s "(cached) " >&6
5496 else case e in #(
5497 e)
5498 ax_check_save_flags=$CFLAGS
5499 CFLAGS="$CFLAGS -O3"
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502 #include <time.h>
5503 int
5504 main (void)
5505 {
5506 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5507
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 if ac_fn_c_try_link "$LINENO"
5513 then :
5514 ax_cv_check_cflags___O3=yes
5515 else case e in #(
5516 e) ax_cv_check_cflags___O3=no ;;
5517 esac
5518 fi
5519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5520 conftest$ac_exeext conftest.$ac_ext
5521 CFLAGS=$ax_check_save_flags ;;
5522 esac
5523 fi
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___O3" >&5
5525 printf "%s\n" "$ax_cv_check_cflags___O3" >&6; }
5526 if test "x$ax_cv_check_cflags___O3" = xyes
5527 then :
5528 CFLAGS="$CFLAGS -O3"
5529 else case e in #(
5530 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -O2" >&5
5531 printf %s "checking whether C compiler accepts -O2... " >&6; }
5532 if test ${ax_cv_check_cflags___O2+y}
5533 then :
5534 printf %s "(cached) " >&6
5535 else case e in #(
5536 e)
5537 ax_check_save_flags=$CFLAGS
5538 CFLAGS="$CFLAGS -O2"
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <time.h>
5542 int
5543 main (void)
5544 {
5545 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5546
5547 ;
5548 return 0;
5549 }
5550 _ACEOF
5551 if ac_fn_c_try_link "$LINENO"
5552 then :
5553 ax_cv_check_cflags___O2=yes
5554 else case e in #(
5555 e) ax_cv_check_cflags___O2=no ;;
5556 esac
5557 fi
5558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5559 conftest$ac_exeext conftest.$ac_ext
5560 CFLAGS=$ax_check_save_flags ;;
5561 esac
5562 fi
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___O2" >&5
5564 printf "%s\n" "$ax_cv_check_cflags___O2" >&6; }
5565 if test "x$ax_cv_check_cflags___O2" = xyes
5566 then :
5567 CFLAGS="$CFLAGS -O2"
5568 else case e in #(
5569 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -O1" >&5
5570 printf %s "checking whether C compiler accepts -O1... " >&6; }
5571 if test ${ax_cv_check_cflags___O1+y}
5572 then :
5573 printf %s "(cached) " >&6
5574 else case e in #(
5575 e)
5576 ax_check_save_flags=$CFLAGS
5577 CFLAGS="$CFLAGS -O1"
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580 #include <time.h>
5581 int
5582 main (void)
5583 {
5584 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5585
5586 ;
5587 return 0;
5588 }
5589 _ACEOF
5590 if ac_fn_c_try_link "$LINENO"
5591 then :
5592 ax_cv_check_cflags___O1=yes
5593 else case e in #(
5594 e) ax_cv_check_cflags___O1=no ;;
5595 esac
5596 fi
5597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5598 conftest$ac_exeext conftest.$ac_ext
5599 CFLAGS=$ax_check_save_flags ;;
5600 esac
5601 fi
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___O1" >&5
5603 printf "%s\n" "$ax_cv_check_cflags___O1" >&6; }
5604 if test "x$ax_cv_check_cflags___O1" = xyes
5605 then :
5606 CFLAGS="$CFLAGS -O1"
5607 else case e in #(
5608 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -O" >&5
5609 printf %s "checking whether C compiler accepts -O... " >&6; }
5610 if test ${ax_cv_check_cflags___O+y}
5611 then :
5612 printf %s "(cached) " >&6
5613 else case e in #(
5614 e)
5615 ax_check_save_flags=$CFLAGS
5616 CFLAGS="$CFLAGS -O"
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #include <time.h>
5620 int
5621 main (void)
5622 {
5623 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5624
5625 ;
5626 return 0;
5627 }
5628 _ACEOF
5629 if ac_fn_c_try_link "$LINENO"
5630 then :
5631 ax_cv_check_cflags___O=yes
5632 else case e in #(
5633 e) ax_cv_check_cflags___O=no ;;
5634 esac
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5637 conftest$ac_exeext conftest.$ac_ext
5638 CFLAGS=$ax_check_save_flags ;;
5639 esac
5640 fi
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___O" >&5
5642 printf "%s\n" "$ax_cv_check_cflags___O" >&6; }
5643 if test "x$ax_cv_check_cflags___O" = xyes
5644 then :
5645 CFLAGS="$CFLAGS -O"
5646 else case e in #(
5647 e) : ;;
5648 esac
5649 fi
5650 ;;
5651 esac
5652 fi
5653 ;;
5654 esac
5655 fi
5656 ;;
5657 esac
5658 fi
5659
5660 fi
5661
5662
5663 # Check whether --enable-ssp was given.
5664 if test ${enable_ssp+y}
5665 then :
5666 enableval=$enable_ssp;
5667 if test "x$enableval" = "xno"
5668 then :
5669
5670 enable_ssp="no"
5671
5672 else case e in #(
5673 e)
5674 enable_ssp="yes"
5675 ;;
5676 esac
5677 fi
5678
5679 else case e in #(
5680 e)
5681 enable_ssp="yes"
5682 ;;
5683 esac
5684 fi
5685
5686
5687 # Check whether --enable-asm was given.
5688 if test ${enable_asm+y}
5689 then :
5690 enableval=$enable_asm;
5691 if test "x$enableval" = "xno"
5692 then :
5693
5694 enable_asm="no"
5695
5696 else case e in #(
5697 e)
5698 enable_asm="yes"
5699 ;;
5700 esac
5701 fi
5702
5703 else case e in #(
5704 e)
5705 enable_asm="yes"
5706 ;;
5707 esac
5708 fi
5709
5710
5711 if test "x$EMSCRIPTEN" != "x"
5712 then :
5713
5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -s ASSERTIONS=0" >&5
5715 printf %s "checking whether C compiler accepts -s ASSERTIONS=0... " >&6; }
5716 if test ${ax_cv_check_cflags___s_ASSERTIONS_0+y}
5717 then :
5718 printf %s "(cached) " >&6
5719 else case e in #(
5720 e)
5721 ax_check_save_flags=$CFLAGS
5722 CFLAGS="$CFLAGS -s ASSERTIONS=0"
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 #include <time.h>
5726 int
5727 main (void)
5728 {
5729 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5730
5731 ;
5732 return 0;
5733 }
5734 _ACEOF
5735 if ac_fn_c_try_link "$LINENO"
5736 then :
5737 ax_cv_check_cflags___s_ASSERTIONS_0=yes
5738 else case e in #(
5739 e) ax_cv_check_cflags___s_ASSERTIONS_0=no ;;
5740 esac
5741 fi
5742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5743 conftest$ac_exeext conftest.$ac_ext
5744 CFLAGS=$ax_check_save_flags ;;
5745 esac
5746 fi
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___s_ASSERTIONS_0" >&5
5748 printf "%s\n" "$ax_cv_check_cflags___s_ASSERTIONS_0" >&6; }
5749 if test "x$ax_cv_check_cflags___s_ASSERTIONS_0" = xyes
5750 then :
5751
5752 enable_asm="no"
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiling to JavaScript - asm implementations disabled" >&5
5754 printf "%s\n" "$as_me: WARNING: compiling to JavaScript - asm implementations disabled" >&2;}
5755
5756 else case e in #(
5757 e)
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: EMSCRIPTEN environment variable defined, but emcc doesn\'t appear to be used - Assuming compilation to native code" >&5
5759 printf "%s\n" "$as_me: WARNING: EMSCRIPTEN environment variable defined, but emcc doesn\'t appear to be used - Assuming compilation to native code" >&2;}
5760 CFLAGS="$CFLAGS -U__EMSCRIPTEN__"
5761 unset EMSCRIPTEN
5762 ;;
5763 esac
5764 fi
5765
5766
5767 fi
5768
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we are using FilC" >&5
5770 printf %s "checking if we are using FilC... " >&6; }
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773
5774 #ifndef __FILC__
5775 # error __FILC__ is not defined
5776 #endif
5777
5778 int
5779 main (void)
5780 {
5781
5782 ;
5783 return 0;
5784 }
5785 _ACEOF
5786 if ac_fn_c_try_compile "$LINENO"
5787 then :
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5789 printf "%s\n" "yes" >&6; }
5790 enable_asm="no"
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiling with FilC - asm implementations disabled" >&5
5792 printf "%s\n" "$as_me: WARNING: compiling with FilC - asm implementations disabled" >&2;}
5793 else case e in #(
5794 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 printf "%s\n" "no" >&6; } ;;
5796 esac
5797 fi
5798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5799
5800 # Check whether --enable-pie was given.
5801 if test ${enable_pie+y}
5802 then :
5803 enableval=$enable_pie; enable_pie=$enableval
5804 else case e in #(
5805 e) enable_pie="maybe" ;;
5806 esac
5807 fi
5808
5809
5810 case $host_os in #(
5811 mingw*|cygwin*|msys|eabi*) :
5812 enable_pie="no" ;; #(
5813 *) :
5814 ;;
5815 esac
5816
5817 # Check whether --enable-blocking-random was given.
5818 if test ${enable_blocking_random+y}
5819 then :
5820 enableval=$enable_blocking_random;
5821 if test "x$enableval" = "xyes"
5822 then :
5823
5824
5825 printf "%s\n" "#define USE_BLOCKING_RANDOM 1" >>confdefs.h
5826
5827
5828 fi
5829
5830 fi
5831
5832
5833 # Check whether --enable-minimal was given.
5834 if test ${enable_minimal+y}
5835 then :
5836 enableval=$enable_minimal;
5837 if test "x$enableval" = "xyes"
5838 then :
5839
5840 enable_minimal="yes"
5841 SODIUM_LIBRARY_MINIMAL_DEF="#define SODIUM_LIBRARY_MINIMAL 1"
5842
5843 printf "%s\n" "#define MINIMAL 1" >>confdefs.h
5844
5845
5846 else case e in #(
5847 e)
5848 enable_minimal="no"
5849 ;;
5850 esac
5851 fi
5852
5853 else case e in #(
5854 e)
5855 enable_minimal="no"
5856 ;;
5857 esac
5858 fi
5859
5860 if test x$enable_minimal = xyes; then
5861 MINIMAL_TRUE=
5862 MINIMAL_FALSE='#'
5863 else
5864 MINIMAL_TRUE='#'
5865 MINIMAL_FALSE=
5866 fi
5867
5868
5869
5870
5871 # Check whether --with-pthreads was given.
5872 if test ${with_pthreads+y}
5873 then :
5874 withval=$with_pthreads;
5875 else case e in #(
5876 e) withval="yes" ;;
5877 esac
5878 fi
5879
5880
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5882 printf %s "checking for a sed that does not truncate output... " >&6; }
5883 if test ${ac_cv_path_SED+y}
5884 then :
5885 printf %s "(cached) " >&6
5886 else case e in #(
5887 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5888 for ac_i in 1 2 3 4 5 6 7; do
5889 ac_script="$ac_script$as_nl$ac_script"
5890 done
5891 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5892 { ac_script=; unset ac_script;}
5893 if test -z "$SED"; then
5894 ac_path_SED_found=false
5895 # Loop through the user's path and test for each of PROGNAME-LIST
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899 IFS=$as_save_IFS
5900 case $as_dir in #(((
5901 '') as_dir=./ ;;
5902 */) ;;
5903 *) as_dir=$as_dir/ ;;
5904 esac
5905 for ac_prog in sed gsed
5906 do
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5909 as_fn_executable_p "$ac_path_SED" || continue
5910 # Check for GNU ac_path_SED and select it if it is found.
5911 # Check for GNU $ac_path_SED
5912 case `"$ac_path_SED" --version 2>&1` in #(
5913 *GNU*)
5914 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5915 #(
5916 *)
5917 ac_count=0
5918 printf %s 0123456789 >"conftest.in"
5919 while :
5920 do
5921 cat "conftest.in" "conftest.in" >"conftest.tmp"
5922 mv "conftest.tmp" "conftest.in"
5923 cp "conftest.in" "conftest.nl"
5924 printf "%s\n" '' >> "conftest.nl"
5925 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5927 as_fn_arith $ac_count + 1 && ac_count=$as_val
5928 if test $ac_count -gt ${ac_path_SED_max-0}; then
5929 # Best one so far, save it but keep looking for a better one
5930 ac_cv_path_SED="$ac_path_SED"
5931 ac_path_SED_max=$ac_count
5932 fi
5933 # 10*(2^10) chars as input seems more than enough
5934 test $ac_count -gt 10 && break
5935 done
5936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5937 esac
5938
5939 $ac_path_SED_found && break 3
5940 done
5941 done
5942 done
5943 IFS=$as_save_IFS
5944 if test -z "$ac_cv_path_SED"; then
5945 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5946 fi
5947 else
5948 ac_cv_path_SED=$SED
5949 fi
5950 ;;
5951 esac
5952 fi
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5954 printf "%s\n" "$ac_cv_path_SED" >&6; }
5955 SED="$ac_cv_path_SED"
5956 rm -f conftest.sed
5957
5958 ac_ext=c
5959 ac_cpp='$CPP $CPPFLAGS'
5960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5964 printf %s "checking how to run the C preprocessor... " >&6; }
5965 # On Suns, sometimes $CPP names a directory.
5966 if test -n "$CPP" && test -d "$CPP"; then
5967 CPP=
5968 fi
5969 if test -z "$CPP"; then
5970 if test ${ac_cv_prog_CPP+y}
5971 then :
5972 printf %s "(cached) " >&6
5973 else case e in #(
5974 e) # Double quotes because $CC needs to be expanded
5975 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5976 do
5977 ac_preproc_ok=false
5978 for ac_c_preproc_warn_flag in '' yes
5979 do
5980 # Use a header file that comes with gcc, so configuring glibc
5981 # with a fresh cross-compiler works.
5982 # On the NeXT, cc -E runs the code through the compiler's parser,
5983 # not just through cpp. "Syntax error" is here to catch this case.
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5986 #include <limits.h>
5987 Syntax error
5988 _ACEOF
5989 if ac_fn_c_try_cpp "$LINENO"
5990 then :
5991
5992 else case e in #(
5993 e) # Broken: fails on valid input.
5994 continue ;;
5995 esac
5996 fi
5997 rm -f conftest.err conftest.i conftest.$ac_ext
5998
5999 # OK, works on sane cases. Now check whether nonexistent headers
6000 # can be detected and how.
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003 #include <ac_nonexistent.h>
6004 _ACEOF
6005 if ac_fn_c_try_cpp "$LINENO"
6006 then :
6007 # Broken: success on invalid input.
6008 continue
6009 else case e in #(
6010 e) # Passes both tests.
6011 ac_preproc_ok=:
6012 break ;;
6013 esac
6014 fi
6015 rm -f conftest.err conftest.i conftest.$ac_ext
6016
6017 done
6018 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6019 rm -f conftest.i conftest.err conftest.$ac_ext
6020 if $ac_preproc_ok
6021 then :
6022 break
6023 fi
6024
6025 done
6026 ac_cv_prog_CPP=$CPP
6027 ;;
6028 esac
6029 fi
6030 CPP=$ac_cv_prog_CPP
6031 else
6032 ac_cv_prog_CPP=$CPP
6033 fi
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6035 printf "%s\n" "$CPP" >&6; }
6036 ac_preproc_ok=false
6037 for ac_c_preproc_warn_flag in '' yes
6038 do
6039 # Use a header file that comes with gcc, so configuring glibc
6040 # with a fresh cross-compiler works.
6041 # On the NeXT, cc -E runs the code through the compiler's parser,
6042 # not just through cpp. "Syntax error" is here to catch this case.
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045 #include <limits.h>
6046 Syntax error
6047 _ACEOF
6048 if ac_fn_c_try_cpp "$LINENO"
6049 then :
6050
6051 else case e in #(
6052 e) # Broken: fails on valid input.
6053 continue ;;
6054 esac
6055 fi
6056 rm -f conftest.err conftest.i conftest.$ac_ext
6057
6058 # OK, works on sane cases. Now check whether nonexistent headers
6059 # can be detected and how.
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 #include <ac_nonexistent.h>
6063 _ACEOF
6064 if ac_fn_c_try_cpp "$LINENO"
6065 then :
6066 # Broken: success on invalid input.
6067 continue
6068 else case e in #(
6069 e) # Passes both tests.
6070 ac_preproc_ok=:
6071 break ;;
6072 esac
6073 fi
6074 rm -f conftest.err conftest.i conftest.$ac_ext
6075
6076 done
6077 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6078 rm -f conftest.i conftest.err conftest.$ac_ext
6079 if $ac_preproc_ok
6080 then :
6081
6082 else case e in #(
6083 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6084 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6085 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6086 See 'config.log' for more details" "$LINENO" 5; } ;;
6087 esac
6088 fi
6089
6090 ac_ext=c
6091 ac_cpp='$CPP $CPPFLAGS'
6092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6095
6096
6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
6098 printf %s "checking for egrep -e... " >&6; }
6099 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
6100 then :
6101 printf %s "(cached) " >&6
6102 else case e in #(
6103 e) if test -z "$EGREP_TRADITIONAL"; then
6104 ac_path_EGREP_TRADITIONAL_found=false
6105 # Loop through the user's path and test for each of PROGNAME-LIST
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6108 do
6109 IFS=$as_save_IFS
6110 case $as_dir in #(((
6111 '') as_dir=./ ;;
6112 */) ;;
6113 *) as_dir=$as_dir/ ;;
6114 esac
6115 for ac_prog in grep ggrep
6116 do
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
6119 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
6120 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
6121 # Check for GNU $ac_path_EGREP_TRADITIONAL
6122 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
6123 *GNU*)
6124 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
6125 #(
6126 *)
6127 ac_count=0
6128 printf %s 0123456789 >"conftest.in"
6129 while :
6130 do
6131 cat "conftest.in" "conftest.in" >"conftest.tmp"
6132 mv "conftest.tmp" "conftest.in"
6133 cp "conftest.in" "conftest.nl"
6134 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
6135 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6137 as_fn_arith $ac_count + 1 && ac_count=$as_val
6138 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
6139 # Best one so far, save it but keep looking for a better one
6140 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
6141 ac_path_EGREP_TRADITIONAL_max=$ac_count
6142 fi
6143 # 10*(2^10) chars as input seems more than enough
6144 test $ac_count -gt 10 && break
6145 done
6146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6147 esac
6148
6149 $ac_path_EGREP_TRADITIONAL_found && break 3
6150 done
6151 done
6152 done
6153 IFS=$as_save_IFS
6154 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
6155 :
6156 fi
6157 else
6158 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
6159 fi
6160
6161 if test "$ac_cv_path_EGREP_TRADITIONAL"
6162 then :
6163 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
6164 else case e in #(
6165 e) if test -z "$EGREP_TRADITIONAL"; then
6166 ac_path_EGREP_TRADITIONAL_found=false
6167 # Loop through the user's path and test for each of PROGNAME-LIST
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6170 do
6171 IFS=$as_save_IFS
6172 case $as_dir in #(((
6173 '') as_dir=./ ;;
6174 */) ;;
6175 *) as_dir=$as_dir/ ;;
6176 esac
6177 for ac_prog in egrep
6178 do
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
6181 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
6182 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
6183 # Check for GNU $ac_path_EGREP_TRADITIONAL
6184 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
6185 *GNU*)
6186 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
6187 #(
6188 *)
6189 ac_count=0
6190 printf %s 0123456789 >"conftest.in"
6191 while :
6192 do
6193 cat "conftest.in" "conftest.in" >"conftest.tmp"
6194 mv "conftest.tmp" "conftest.in"
6195 cp "conftest.in" "conftest.nl"
6196 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
6197 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6199 as_fn_arith $ac_count + 1 && ac_count=$as_val
6200 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
6201 # Best one so far, save it but keep looking for a better one
6202 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
6203 ac_path_EGREP_TRADITIONAL_max=$ac_count
6204 fi
6205 # 10*(2^10) chars as input seems more than enough
6206 test $ac_count -gt 10 && break
6207 done
6208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6209 esac
6210
6211 $ac_path_EGREP_TRADITIONAL_found && break 3
6212 done
6213 done
6214 done
6215 IFS=$as_save_IFS
6216 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
6217 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6218 fi
6219 else
6220 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
6221 fi
6222 ;;
6223 esac
6224 fi ;;
6225 esac
6226 fi
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
6228 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
6229 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
6230
6231 if test "x$withval" = "xyes"
6232 then :
6233
6234
6235
6236
6237
6238 ac_ext=c
6239 ac_cpp='$CPP $CPPFLAGS'
6240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6243
6244 ax_pthread_ok=no
6245
6246 # We used to check for pthread.h first, but this fails if pthread.h
6247 # requires special compiler flags (e.g. on Tru64 or Sequent).
6248 # It gets checked for in the link test anyway.
6249
6250 # First of all, check if the user has set any of the PTHREAD_LIBS,
6251 # etcetera environment variables, and if threads linking works using
6252 # them:
6253 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6254 ax_pthread_save_CC="$CC"
6255 ax_pthread_save_CFLAGS="$CFLAGS"
6256 ax_pthread_save_LIBS="$LIBS"
6257 if test "x$PTHREAD_CC" != "x"
6258 then :
6259 CC="$PTHREAD_CC"
6260 fi
6261 if test "x$PTHREAD_CXX" != "x"
6262 then :
6263 CXX="$PTHREAD_CXX"
6264 fi
6265 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6266 LIBS="$PTHREAD_LIBS $LIBS"
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6268 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271
6272 /* Override any GCC internal prototype to avoid an error.
6273 Use char because int might match the return type of a GCC
6274 builtin and then its argument prototype would still apply.
6275 The 'extern "C"' is for builds by C++ compilers;
6276 although this is not generally supported in C code supporting it here
6277 has little cost and some practical benefit (sr 110532). */
6278 #ifdef __cplusplus
6279 extern "C"
6280 #endif
6281 char pthread_join (void);
6282 int
6283 main (void)
6284 {
6285 return pthread_join ();
6286 ;
6287 return 0;
6288 }
6289 _ACEOF
6290 if ac_fn_c_try_link "$LINENO"
6291 then :
6292 ax_pthread_ok=yes
6293 fi
6294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6295 conftest$ac_exeext conftest.$ac_ext
6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6297 printf "%s\n" "$ax_pthread_ok" >&6; }
6298 if test "x$ax_pthread_ok" = "xno"; then
6299 PTHREAD_LIBS=""
6300 PTHREAD_CFLAGS=""
6301 fi
6302 CC="$ax_pthread_save_CC"
6303 CFLAGS="$ax_pthread_save_CFLAGS"
6304 LIBS="$ax_pthread_save_LIBS"
6305 fi
6306
6307 # We must check for the threads library under a number of different
6308 # names; the ordering is very important because some systems
6309 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6310 # libraries is broken (non-POSIX).
6311
6312 # Create a list of thread flags to try. Items with a "," contain both
6313 # C compiler flags (before ",") and linker flags (after ","). Other items
6314 # starting with a "-" are C compiler flags, and remaining items are
6315 # library names, except for "none" which indicates that we try without
6316 # any flags at all, and "pthread-config" which is a program returning
6317 # the flags for the Pth emulation library.
6318
6319 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6320
6321 # The ordering *is* (sometimes) important. Some notes on the
6322 # individual items follow:
6323
6324 # pthreads: AIX (must check this before -lpthread)
6325 # none: in case threads are in libc; should be tried before -Kthread and
6326 # other compiler flags to prevent continual compiler warnings
6327 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6328 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
6329 # (Note: HP C rejects this with "bad form for `-t' option")
6330 # -pthreads: Solaris/gcc (Note: HP C also rejects)
6331 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6332 # doesn't hurt to check since this sometimes defines pthreads and
6333 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
6334 # is present but should not be used directly; and before -mthreads,
6335 # because the compiler interprets this as "-mt" + "-hreads")
6336 # -mthreads: Mingw32/gcc, Lynx/gcc
6337 # pthread: Linux, etcetera
6338 # --thread-safe: KAI C++
6339 # pthread-config: use pthread-config program (for GNU Pth library)
6340
6341 case $host_os in
6342
6343 freebsd*)
6344
6345 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6346 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6347
6348 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
6349 ;;
6350
6351 hpux*)
6352
6353 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
6354 # multi-threading and also sets -lpthread."
6355
6356 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
6357 ;;
6358
6359 openedition*)
6360
6361 # IBM z/OS requires a feature-test macro to be defined in order to
6362 # enable POSIX threads at all, so give the user a hint if this is
6363 # not set. (We don't define these ourselves, as they can affect
6364 # other portions of the system API in unpredictable ways.)
6365
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368
6369 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
6370 AX_PTHREAD_ZOS_MISSING
6371 # endif
6372
6373 _ACEOF
6374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6375 $EGREP_TRADITIONAL "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
6376 then :
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
6378 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
6379 fi
6380 rm -rf conftest*
6381
6382 ;;
6383
6384 solaris*)
6385
6386 # On Solaris (at least, for some versions), libc contains stubbed
6387 # (non-functional) versions of the pthreads routines, so link-based
6388 # tests will erroneously succeed. (N.B.: The stubs are missing
6389 # pthread_cleanup_push, or rather a function called by this macro,
6390 # so we could check for that, but who knows whether they'll stub
6391 # that too in a future libc.) So we'll check first for the
6392 # standard Solaris way of linking pthreads (-mt -lpthread).
6393
6394 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
6395 ;;
6396 esac
6397
6398 # Are we compiling with Clang?
6399
6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
6401 printf %s "checking whether $CC is Clang... " >&6; }
6402 if test ${ax_cv_PTHREAD_CLANG+y}
6403 then :
6404 printf %s "(cached) " >&6
6405 else case e in #(
6406 e) ax_cv_PTHREAD_CLANG=no
6407 # Note that Autoconf sets GCC=yes for Clang as well as GCC
6408 if test "x$GCC" = "xyes"; then
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
6412 # if defined(__clang__) && defined(__llvm__)
6413 AX_PTHREAD_CC_IS_CLANG
6414 # endif
6415
6416 _ACEOF
6417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6418 $EGREP_TRADITIONAL "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
6419 then :
6420 ax_cv_PTHREAD_CLANG=yes
6421 fi
6422 rm -rf conftest*
6423
6424 fi
6425 ;;
6426 esac
6427 fi
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
6429 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
6430 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
6431
6432
6433 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
6434
6435 # Note that for GCC and Clang -pthread generally implies -lpthread,
6436 # except when -nostdlib is passed.
6437 # This is problematic using libtool to build C++ shared libraries with pthread:
6438 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
6439 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
6440 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
6441 # To solve this, first try -pthread together with -lpthread for GCC
6442
6443 if test "x$GCC" = "xyes"
6444 then :
6445 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
6446 fi
6447
6448 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
6449
6450 if test "x$ax_pthread_clang" = "xyes"
6451 then :
6452 ax_pthread_flags="-pthread,-lpthread -pthread"
6453 fi
6454
6455
6456 # The presence of a feature test macro requesting re-entrant function
6457 # definitions is, on some systems, a strong hint that pthreads support is
6458 # correctly enabled
6459
6460 case $host_os in
6461 darwin* | hpux* | linux* | osf* | solaris*)
6462 ax_pthread_check_macro="_REENTRANT"
6463 ;;
6464
6465 aix*)
6466 ax_pthread_check_macro="_THREAD_SAFE"
6467 ;;
6468
6469 *)
6470 ax_pthread_check_macro="--"
6471 ;;
6472 esac
6473 if test "x$ax_pthread_check_macro" = "x--"
6474 then :
6475 ax_pthread_check_cond=0
6476 else case e in #(
6477 e) ax_pthread_check_cond="!defined($ax_pthread_check_macro)" ;;
6478 esac
6479 fi
6480
6481
6482 if test "x$ax_pthread_ok" = "xno"; then
6483 for ax_pthread_try_flag in $ax_pthread_flags; do
6484
6485 case $ax_pthread_try_flag in
6486 none)
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6488 printf %s "checking whether pthreads work without any flags... " >&6; }
6489 ;;
6490
6491 *,*)
6492 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
6493 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
6495 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
6496 ;;
6497
6498 -*)
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
6500 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
6501 PTHREAD_CFLAGS="$ax_pthread_try_flag"
6502 ;;
6503
6504 pthread-config)
6505 # Extract the first word of "pthread-config", so it can be a program name with args.
6506 set dummy pthread-config; ac_word=$2
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 printf %s "checking for $ac_word... " >&6; }
6509 if test ${ac_cv_prog_ax_pthread_config+y}
6510 then :
6511 printf %s "(cached) " >&6
6512 else case e in #(
6513 e) if test -n "$ax_pthread_config"; then
6514 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6515 else
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6518 do
6519 IFS=$as_save_IFS
6520 case $as_dir in #(((
6521 '') as_dir=./ ;;
6522 */) ;;
6523 *) as_dir=$as_dir/ ;;
6524 esac
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6527 ac_cv_prog_ax_pthread_config="yes"
6528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6529 break 2
6530 fi
6531 done
6532 done
6533 IFS=$as_save_IFS
6534
6535 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6536 fi ;;
6537 esac
6538 fi
6539 ax_pthread_config=$ac_cv_prog_ax_pthread_config
6540 if test -n "$ax_pthread_config"; then
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6542 printf "%s\n" "$ax_pthread_config" >&6; }
6543 else
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 printf "%s\n" "no" >&6; }
6546 fi
6547
6548
6549 if test "x$ax_pthread_config" = "xno"
6550 then :
6551 continue
6552 fi
6553 PTHREAD_CFLAGS="`pthread-config --cflags`"
6554 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6555 ;;
6556
6557 *)
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
6559 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
6560 PTHREAD_LIBS="-l$ax_pthread_try_flag"
6561 ;;
6562 esac
6563
6564 ax_pthread_save_CFLAGS="$CFLAGS"
6565 ax_pthread_save_LIBS="$LIBS"
6566 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6567 LIBS="$PTHREAD_LIBS $LIBS"
6568
6569 # Check for various functions. We must include pthread.h,
6570 # since some functions may be macros. (On the Sequent, we
6571 # need a special flag -Kthread to make this header compile.)
6572 # We check for pthread_join because it is in -lpthread on IRIX
6573 # while pthread_create is in libc. We check for pthread_attr_init
6574 # due to DEC craziness with -lpthreads. We check for
6575 # pthread_cleanup_push because it is one of the few pthread
6576 # functions on Solaris that doesn't have a non-functional libc stub.
6577 # We try pthread_create on general principles.
6578
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 #include <pthread.h>
6582 # if $ax_pthread_check_cond
6583 # error "$ax_pthread_check_macro must be defined"
6584 # endif
6585 static void *some_global = NULL;
6586 static void routine(void *a)
6587 {
6588 /* To avoid any unused-parameter or
6589 unused-but-set-parameter warning. */
6590 some_global = a;
6591 }
6592 static void *start_routine(void *a) { return a; }
6593 int
6594 main (void)
6595 {
6596 pthread_t th; pthread_attr_t attr;
6597 pthread_create(&th, 0, start_routine, 0);
6598 pthread_join(th, 0);
6599 pthread_attr_init(&attr);
6600 pthread_cleanup_push(routine, 0);
6601 pthread_cleanup_pop(0) /* ; */
6602 ;
6603 return 0;
6604 }
6605 _ACEOF
6606 if ac_fn_c_try_link "$LINENO"
6607 then :
6608 ax_pthread_ok=yes
6609 fi
6610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6611 conftest$ac_exeext conftest.$ac_ext
6612
6613 CFLAGS="$ax_pthread_save_CFLAGS"
6614 LIBS="$ax_pthread_save_LIBS"
6615
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6617 printf "%s\n" "$ax_pthread_ok" >&6; }
6618 if test "x$ax_pthread_ok" = "xyes"
6619 then :
6620 break
6621 fi
6622
6623 PTHREAD_LIBS=""
6624 PTHREAD_CFLAGS=""
6625 done
6626 fi
6627
6628
6629 # Clang needs special handling, because older versions handle the -pthread
6630 # option in a rather... idiosyncratic way
6631
6632 if test "x$ax_pthread_clang" = "xyes"; then
6633
6634 # Clang takes -pthread; it has never supported any other flag
6635
6636 # (Note 1: This will need to be revisited if a system that Clang
6637 # supports has POSIX threads in a separate library. This tends not
6638 # to be the way of modern systems, but it's conceivable.)
6639
6640 # (Note 2: On some systems, notably Darwin, -pthread is not needed
6641 # to get POSIX threads support; the API is always present and
6642 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
6643 # -pthread does define _REENTRANT, and while the Darwin headers
6644 # ignore this macro, third-party headers might not.)
6645
6646 # However, older versions of Clang make a point of warning the user
6647 # that, in an invocation where only linking and no compilation is
6648 # taking place, the -pthread option has no effect ("argument unused
6649 # during compilation"). They expect -pthread to be passed in only
6650 # when source code is being compiled.
6651 #
6652 # Problem is, this is at odds with the way Automake and most other
6653 # C build frameworks function, which is that the same flags used in
6654 # compilation (CFLAGS) are also used in linking. Many systems
6655 # supported by AX_PTHREAD require exactly this for POSIX threads
6656 # support, and in fact it is often not straightforward to specify a
6657 # flag that is used only in the compilation phase and not in
6658 # linking. Such a scenario is extremely rare in practice.
6659 #
6660 # Even though use of the -pthread flag in linking would only print
6661 # a warning, this can be a nuisance for well-run software projects
6662 # that build with -Werror. So if the active version of Clang has
6663 # this misfeature, we search for an option to squash it.
6664
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
6666 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
6667 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
6668 then :
6669 printf %s "(cached) " >&6
6670 else case e in #(
6671 e) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
6672 # Create an alternate version of $ac_link that compiles and
6673 # links in two steps (.c -> .o, .o -> exe) instead of one
6674 # (.c -> exe), because the warning occurs only in the second
6675 # step
6676 ax_pthread_save_ac_link="$ac_link"
6677 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
6678 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
6679 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
6680 ax_pthread_save_CFLAGS="$CFLAGS"
6681 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
6682 if test "x$ax_pthread_try" = "xunknown"
6683 then :
6684 break
6685 fi
6686 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
6687 ac_link="$ax_pthread_save_ac_link"
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h. */
6690 int main(void){return 0;}
6691 _ACEOF
6692 if ac_fn_c_try_link "$LINENO"
6693 then :
6694 ac_link="$ax_pthread_2step_ac_link"
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 int main(void){return 0;}
6698 _ACEOF
6699 if ac_fn_c_try_link "$LINENO"
6700 then :
6701 break
6702 fi
6703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6704 conftest$ac_exeext conftest.$ac_ext
6705
6706 fi
6707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6708 conftest$ac_exeext conftest.$ac_ext
6709 done
6710 ac_link="$ax_pthread_save_ac_link"
6711 CFLAGS="$ax_pthread_save_CFLAGS"
6712 if test "x$ax_pthread_try" = "x"
6713 then :
6714 ax_pthread_try=no
6715 fi
6716 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
6717 ;;
6718 esac
6719 fi
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
6721 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
6722
6723 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
6724 no | unknown) ;;
6725 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
6726 esac
6727
6728 fi # $ax_pthread_clang = yes
6729
6730
6731
6732 # Various other checks:
6733 if test "x$ax_pthread_ok" = "xyes"; then
6734 ax_pthread_save_CFLAGS="$CFLAGS"
6735 ax_pthread_save_LIBS="$LIBS"
6736 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6737 LIBS="$PTHREAD_LIBS $LIBS"
6738
6739 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6741 printf %s "checking for joinable pthread attribute... " >&6; }
6742 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
6743 then :
6744 printf %s "(cached) " >&6
6745 else case e in #(
6746 e) ax_cv_PTHREAD_JOINABLE_ATTR=unknown
6747 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 #include <pthread.h>
6751 int
6752 main (void)
6753 {
6754 int attr = $ax_pthread_attr; return attr /* ; */
6755 ;
6756 return 0;
6757 }
6758 _ACEOF
6759 if ac_fn_c_try_link "$LINENO"
6760 then :
6761 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
6762 fi
6763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6764 conftest$ac_exeext conftest.$ac_ext
6765 done
6766 ;;
6767 esac
6768 fi
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
6770 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
6771 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
6772 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
6773 test "x$ax_pthread_joinable_attr_defined" != "xyes"
6774 then :
6775
6776 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
6777
6778 ax_pthread_joinable_attr_defined=yes
6779
6780 fi
6781
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
6783 printf %s "checking whether more special flags are required for pthreads... " >&6; }
6784 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
6785 then :
6786 printf %s "(cached) " >&6
6787 else case e in #(
6788 e) ax_cv_PTHREAD_SPECIAL_FLAGS=no
6789 case $host_os in
6790 solaris*)
6791 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
6792 ;;
6793 esac
6794 ;;
6795 esac
6796 fi
6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
6798 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
6799 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
6800 test "x$ax_pthread_special_flags_added" != "xyes"
6801 then :
6802 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
6803 ax_pthread_special_flags_added=yes
6804 fi
6805
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6807 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6808 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
6809 then :
6810 printf %s "(cached) " >&6
6811 else case e in #(
6812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 #include <pthread.h>
6815 int
6816 main (void)
6817 {
6818 int i = PTHREAD_PRIO_INHERIT;
6819 return i;
6820 ;
6821 return 0;
6822 }
6823 _ACEOF
6824 if ac_fn_c_try_link "$LINENO"
6825 then :
6826 ax_cv_PTHREAD_PRIO_INHERIT=yes
6827 else case e in #(
6828 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;;
6829 esac
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6832 conftest$ac_exeext conftest.$ac_ext
6833 ;;
6834 esac
6835 fi
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
6837 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
6838 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
6839 test "x$ax_pthread_prio_inherit_defined" != "xyes"
6840 then :
6841
6842 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6843
6844 ax_pthread_prio_inherit_defined=yes
6845
6846 fi
6847
6848 CFLAGS="$ax_pthread_save_CFLAGS"
6849 LIBS="$ax_pthread_save_LIBS"
6850
6851 # More AIX lossage: compile with *_r variant
6852 if test "x$GCC" != "xyes"; then
6853 case $host_os in
6854 aix*)
6855 case "x/$CC" in #(
6856 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
6857 #handle absolute path differently from PATH based program lookup
6858 case "x$CC" in #(
6859 x/*) :
6860
6861 if as_fn_executable_p ${CC}_r
6862 then :
6863 PTHREAD_CC="${CC}_r"
6864 fi
6865 if test "x${CXX}" != "x"
6866 then :
6867 if as_fn_executable_p ${CXX}_r
6868 then :
6869 PTHREAD_CXX="${CXX}_r"
6870 fi
6871 fi
6872 ;; #(
6873 *) :
6874
6875 for ac_prog in ${CC}_r
6876 do
6877 # Extract the first word of "$ac_prog", so it can be a program name with args.
6878 set dummy $ac_prog; ac_word=$2
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 printf %s "checking for $ac_word... " >&6; }
6881 if test ${ac_cv_prog_PTHREAD_CC+y}
6882 then :
6883 printf %s "(cached) " >&6
6884 else case e in #(
6885 e) if test -n "$PTHREAD_CC"; then
6886 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891 IFS=$as_save_IFS
6892 case $as_dir in #(((
6893 '') as_dir=./ ;;
6894 */) ;;
6895 *) as_dir=$as_dir/ ;;
6896 esac
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6899 ac_cv_prog_PTHREAD_CC="$ac_prog"
6900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6901 break 2
6902 fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907 fi ;;
6908 esac
6909 fi
6910 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6911 if test -n "$PTHREAD_CC"; then
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6913 printf "%s\n" "$PTHREAD_CC" >&6; }
6914 else
6915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 printf "%s\n" "no" >&6; }
6917 fi
6918
6919
6920 test -n "$PTHREAD_CC" && break
6921 done
6922 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6923
6924 if test "x${CXX}" != "x"
6925 then :
6926 for ac_prog in ${CXX}_r
6927 do
6928 # Extract the first word of "$ac_prog", so it can be a program name with args.
6929 set dummy $ac_prog; ac_word=$2
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 printf %s "checking for $ac_word... " >&6; }
6932 if test ${ac_cv_prog_PTHREAD_CXX+y}
6933 then :
6934 printf %s "(cached) " >&6
6935 else case e in #(
6936 e) if test -n "$PTHREAD_CXX"; then
6937 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942 IFS=$as_save_IFS
6943 case $as_dir in #(((
6944 '') as_dir=./ ;;
6945 */) ;;
6946 *) as_dir=$as_dir/ ;;
6947 esac
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6950 ac_cv_prog_PTHREAD_CXX="$ac_prog"
6951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6952 break 2
6953 fi
6954 done
6955 done
6956 IFS=$as_save_IFS
6957
6958 fi ;;
6959 esac
6960 fi
6961 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
6962 if test -n "$PTHREAD_CXX"; then
6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
6964 printf "%s\n" "$PTHREAD_CXX" >&6; }
6965 else
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 printf "%s\n" "no" >&6; }
6968 fi
6969
6970
6971 test -n "$PTHREAD_CXX" && break
6972 done
6973 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
6974
6975 fi
6976
6977 ;;
6978 esac
6979 ;; #(
6980 *) :
6981 ;;
6982 esac
6983 ;;
6984 esac
6985 fi
6986 fi
6987
6988 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6989 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
6990
6991
6992
6993
6994
6995
6996 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6997 if test "x$ax_pthread_ok" = "xyes"; then
6998
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7001
7002 #include <pthread.h>
7003
7004 int
7005 main (void)
7006 {
7007
7008 pthread_mutex_t mutex;
7009
7010 pthread_mutex_lock(&mutex);
7011 pthread_mutex_unlock(&mutex)
7012
7013
7014 ;
7015 return 0;
7016 }
7017 _ACEOF
7018 if ac_fn_c_try_link "$LINENO"
7019 then :
7020
7021
7022 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7023
7024 with_threads="yes"
7025 LIBS="$PTHREAD_LIBS $LIBS"
7026 PKGCONFIG_LIBS_PRIVATE="$PTHREAD_LIBS $PTHREAD_CFLAGS $PKGCONFIG_LIBS_PRIVATE"
7027 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7028 CC="$PTHREAD_CC"
7029
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7032 conftest$ac_exeext conftest.$ac_ext
7033
7034 :
7035 else
7036 ax_pthread_ok=no
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pthread mutexes are not available" >&5
7038 printf "%s\n" "$as_me: pthread mutexes are not available" >&6;}
7039
7040 fi
7041 ac_ext=c
7042 ac_cpp='$CPP $CPPFLAGS'
7043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7046
7047
7048
7049 else case e in #(
7050 e) with_threads="no" ;;
7051 esac
7052 fi
7053
7054
7055 # Check whether --with-safecode was given.
7056 if test ${with_safecode+y}
7057 then :
7058 withval=$with_safecode; if test "x$withval" = "xyes"
7059 then :
7060
7061
7062 : ${SAFECODE_HOME:=/opt/safecode}
7063 LDFLAGS="$LDFLAGS -L${SAFECODE_HOME}/lib"
7064 LIBS="$LIBS -lsc_dbg_rt -lpoolalloc_bitmap -lstdc++"
7065 CFLAGS="$CFLAGS -fmemsafety"
7066
7067 fi
7068
7069 fi
7070
7071
7072
7073 # Check whether --with-ctgrind was given.
7074 if test ${with_ctgrind+y}
7075 then :
7076 withval=$with_ctgrind; if test "x$withval" = "xyes"
7077 then :
7078
7079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ct_poison in -lctgrind" >&5
7080 printf %s "checking for ct_poison in -lctgrind... " >&6; }
7081 if test ${ac_cv_lib_ctgrind_ct_poison+y}
7082 then :
7083 printf %s "(cached) " >&6
7084 else case e in #(
7085 e) ac_check_lib_save_LIBS=$LIBS
7086 LIBS="-lctgrind $LIBS"
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7089
7090 /* Override any GCC internal prototype to avoid an error.
7091 Use char because int might match the return type of a GCC
7092 builtin and then its argument prototype would still apply.
7093 The 'extern "C"' is for builds by C++ compilers;
7094 although this is not generally supported in C code supporting it here
7095 has little cost and some practical benefit (sr 110532). */
7096 #ifdef __cplusplus
7097 extern "C"
7098 #endif
7099 char ct_poison (void);
7100 int
7101 main (void)
7102 {
7103 return ct_poison ();
7104 ;
7105 return 0;
7106 }
7107 _ACEOF
7108 if ac_fn_c_try_link "$LINENO"
7109 then :
7110 ac_cv_lib_ctgrind_ct_poison=yes
7111 else case e in #(
7112 e) ac_cv_lib_ctgrind_ct_poison=no ;;
7113 esac
7114 fi
7115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7116 conftest$ac_exeext conftest.$ac_ext
7117 LIBS=$ac_check_lib_save_LIBS ;;
7118 esac
7119 fi
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ctgrind_ct_poison" >&5
7121 printf "%s\n" "$ac_cv_lib_ctgrind_ct_poison" >&6; }
7122 if test "x$ac_cv_lib_ctgrind_ct_poison" = xyes
7123 then :
7124 printf "%s\n" "#define HAVE_LIBCTGRIND 1" >>confdefs.h
7125
7126 LIBS="-lctgrind $LIBS"
7127
7128 fi
7129
7130
7131 fi
7132
7133 fi
7134
7135
7136 # Check whether --enable-retpoline was given.
7137 if test ${enable_retpoline+y}
7138 then :
7139 enableval=$enable_retpoline; if test "x$enableval" = "xyes"
7140 then :
7141
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mindirect-branch=thunk-inline" >&5
7143 printf %s "checking whether C compiler accepts -mindirect-branch=thunk-inline... " >&6; }
7144 if test ${ax_cv_check_cflags___mindirect_branch_thunk_inline+y}
7145 then :
7146 printf %s "(cached) " >&6
7147 else case e in #(
7148 e)
7149 ax_check_save_flags=$CFLAGS
7150 CFLAGS="$CFLAGS -mindirect-branch=thunk-inline"
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7153 #include <time.h>
7154 int
7155 main (void)
7156 {
7157 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7158
7159 ;
7160 return 0;
7161 }
7162 _ACEOF
7163 if ac_fn_c_try_link "$LINENO"
7164 then :
7165 ax_cv_check_cflags___mindirect_branch_thunk_inline=yes
7166 else case e in #(
7167 e) ax_cv_check_cflags___mindirect_branch_thunk_inline=no ;;
7168 esac
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7171 conftest$ac_exeext conftest.$ac_ext
7172 CFLAGS=$ax_check_save_flags ;;
7173 esac
7174 fi
7175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mindirect_branch_thunk_inline" >&5
7176 printf "%s\n" "$ax_cv_check_cflags___mindirect_branch_thunk_inline" >&6; }
7177 if test "x$ax_cv_check_cflags___mindirect_branch_thunk_inline" = xyes
7178 then :
7179 CFLAGS="$CFLAGS -mindirect-branch=thunk-inline"
7180 else case e in #(
7181 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mretpoline" >&5
7182 printf %s "checking whether C compiler accepts -mretpoline... " >&6; }
7183 if test ${ax_cv_check_cflags___mretpoline+y}
7184 then :
7185 printf %s "(cached) " >&6
7186 else case e in #(
7187 e)
7188 ax_check_save_flags=$CFLAGS
7189 CFLAGS="$CFLAGS -mretpoline"
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <time.h>
7193 int
7194 main (void)
7195 {
7196 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7197
7198 ;
7199 return 0;
7200 }
7201 _ACEOF
7202 if ac_fn_c_try_link "$LINENO"
7203 then :
7204 ax_cv_check_cflags___mretpoline=yes
7205 else case e in #(
7206 e) ax_cv_check_cflags___mretpoline=no ;;
7207 esac
7208 fi
7209 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7210 conftest$ac_exeext conftest.$ac_ext
7211 CFLAGS=$ax_check_save_flags ;;
7212 esac
7213 fi
7214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mretpoline" >&5
7215 printf "%s\n" "$ax_cv_check_cflags___mretpoline" >&6; }
7216 if test "x$ax_cv_check_cflags___mretpoline" = xyes
7217 then :
7218 CFLAGS="$CFLAGS -mretpoline"
7219 else case e in #(
7220 e) : ;;
7221 esac
7222 fi
7223
7224 ;;
7225 esac
7226 fi
7227
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mindirect-branch-register" >&5
7229 printf %s "checking whether C compiler accepts -mindirect-branch-register... " >&6; }
7230 if test ${ax_cv_check_cflags___mindirect_branch_register+y}
7231 then :
7232 printf %s "(cached) " >&6
7233 else case e in #(
7234 e)
7235 ax_check_save_flags=$CFLAGS
7236 CFLAGS="$CFLAGS -mindirect-branch-register"
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7239 #include <time.h>
7240 int
7241 main (void)
7242 {
7243 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7244
7245 ;
7246 return 0;
7247 }
7248 _ACEOF
7249 if ac_fn_c_try_link "$LINENO"
7250 then :
7251 ax_cv_check_cflags___mindirect_branch_register=yes
7252 else case e in #(
7253 e) ax_cv_check_cflags___mindirect_branch_register=no ;;
7254 esac
7255 fi
7256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7257 conftest$ac_exeext conftest.$ac_ext
7258 CFLAGS=$ax_check_save_flags ;;
7259 esac
7260 fi
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mindirect_branch_register" >&5
7262 printf "%s\n" "$ax_cv_check_cflags___mindirect_branch_register" >&6; }
7263 if test "x$ax_cv_check_cflags___mindirect_branch_register" = xyes
7264 then :
7265 :
7266 else case e in #(
7267 e) : ;;
7268 esac
7269 fi
7270
7271
7272 fi
7273
7274 fi
7275
7276
7277 ENABLE_CWFLAGS=no
7278 # Check whether --enable-debug was given.
7279 if test ${enable_debug+y}
7280 then :
7281 enableval=$enable_debug;
7282 if test "x$enableval" = "xyes"
7283 then :
7284
7285 if test "x$LX_CFLAGS" = "xNONE"
7286 then :
7287
7288 nxflags=""
7289 for flag in `echo $CFLAGS`; do
7290 case $flag in #(
7291 -O*) :
7292 ;; #(
7293 -g*) :
7294 ;; #(
7295 *) :
7296 as_fn_append nxflags " $flag" ;; #(
7297 *) :
7298 ;;
7299 esac
7300 done
7301 CFLAGS="$nxflags -O -g3"
7302
7303 fi
7304 ENABLE_CWFLAGS=yes
7305 CPPFLAGS="$CPPFLAGS -DDEBUG=1 -U_FORTIFY_SOURCE"
7306
7307 fi
7308
7309 fi
7310
7311
7312 # Check whether --enable-opt was given.
7313 if test ${enable_opt+y}
7314 then :
7315 enableval=$enable_opt;
7316 if test "x$enableval" = "xyes"
7317 then :
7318
7319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ftree-vectorize" >&5
7320 printf %s "checking whether C compiler accepts -ftree-vectorize... " >&6; }
7321 if test ${ax_cv_check_cflags___ftree_vectorize+y}
7322 then :
7323 printf %s "(cached) " >&6
7324 else case e in #(
7325 e)
7326 ax_check_save_flags=$CFLAGS
7327 CFLAGS="$CFLAGS -ftree-vectorize"
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 #include <time.h>
7331 int
7332 main (void)
7333 {
7334 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7335
7336 ;
7337 return 0;
7338 }
7339 _ACEOF
7340 if ac_fn_c_try_link "$LINENO"
7341 then :
7342 ax_cv_check_cflags___ftree_vectorize=yes
7343 else case e in #(
7344 e) ax_cv_check_cflags___ftree_vectorize=no ;;
7345 esac
7346 fi
7347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7348 conftest$ac_exeext conftest.$ac_ext
7349 CFLAGS=$ax_check_save_flags ;;
7350 esac
7351 fi
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ftree_vectorize" >&5
7353 printf "%s\n" "$ax_cv_check_cflags___ftree_vectorize" >&6; }
7354 if test "x$ax_cv_check_cflags___ftree_vectorize" = xyes
7355 then :
7356 CFLAGS="$CFLAGS -ftree-vectorize"
7357 else case e in #(
7358 e) : ;;
7359 esac
7360 fi
7361
7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ftree-slp-vectorize" >&5
7363 printf %s "checking whether C compiler accepts -ftree-slp-vectorize... " >&6; }
7364 if test ${ax_cv_check_cflags___ftree_slp_vectorize+y}
7365 then :
7366 printf %s "(cached) " >&6
7367 else case e in #(
7368 e)
7369 ax_check_save_flags=$CFLAGS
7370 CFLAGS="$CFLAGS -ftree-slp-vectorize"
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7373 #include <time.h>
7374 int
7375 main (void)
7376 {
7377 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7378
7379 ;
7380 return 0;
7381 }
7382 _ACEOF
7383 if ac_fn_c_try_link "$LINENO"
7384 then :
7385 ax_cv_check_cflags___ftree_slp_vectorize=yes
7386 else case e in #(
7387 e) ax_cv_check_cflags___ftree_slp_vectorize=no ;;
7388 esac
7389 fi
7390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7391 conftest$ac_exeext conftest.$ac_ext
7392 CFLAGS=$ax_check_save_flags ;;
7393 esac
7394 fi
7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ftree_slp_vectorize" >&5
7396 printf "%s\n" "$ax_cv_check_cflags___ftree_slp_vectorize" >&6; }
7397 if test "x$ax_cv_check_cflags___ftree_slp_vectorize" = xyes
7398 then :
7399 CFLAGS="$CFLAGS -ftree-slp-vectorize"
7400 else case e in #(
7401 e) : ;;
7402 esac
7403 fi
7404
7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fomit-frame-pointer" >&5
7406 printf %s "checking whether C compiler accepts -fomit-frame-pointer... " >&6; }
7407 if test ${ax_cv_check_cflags___fomit_frame_pointer+y}
7408 then :
7409 printf %s "(cached) " >&6
7410 else case e in #(
7411 e)
7412 ax_check_save_flags=$CFLAGS
7413 CFLAGS="$CFLAGS -fomit-frame-pointer"
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416 #include <time.h>
7417 int
7418 main (void)
7419 {
7420 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7421
7422 ;
7423 return 0;
7424 }
7425 _ACEOF
7426 if ac_fn_c_try_link "$LINENO"
7427 then :
7428 ax_cv_check_cflags___fomit_frame_pointer=yes
7429 else case e in #(
7430 e) ax_cv_check_cflags___fomit_frame_pointer=no ;;
7431 esac
7432 fi
7433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7434 conftest$ac_exeext conftest.$ac_ext
7435 CFLAGS=$ax_check_save_flags ;;
7436 esac
7437 fi
7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fomit_frame_pointer" >&5
7439 printf "%s\n" "$ax_cv_check_cflags___fomit_frame_pointer" >&6; }
7440 if test "x$ax_cv_check_cflags___fomit_frame_pointer" = xyes
7441 then :
7442 CFLAGS="$CFLAGS -fomit-frame-pointer"
7443 else case e in #(
7444 e) : ;;
7445 esac
7446 fi
7447
7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=native" >&5
7449 printf %s "checking whether C compiler accepts -march=native... " >&6; }
7450 if test ${ax_cv_check_cflags___march_native+y}
7451 then :
7452 printf %s "(cached) " >&6
7453 else case e in #(
7454 e)
7455 ax_check_save_flags=$CFLAGS
7456 CFLAGS="$CFLAGS -march=native"
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 #include <time.h>
7460 int
7461 main (void)
7462 {
7463 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7464
7465 ;
7466 return 0;
7467 }
7468 _ACEOF
7469 if ac_fn_c_try_link "$LINENO"
7470 then :
7471 ax_cv_check_cflags___march_native=yes
7472 else case e in #(
7473 e) ax_cv_check_cflags___march_native=no ;;
7474 esac
7475 fi
7476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7477 conftest$ac_exeext conftest.$ac_ext
7478 CFLAGS=$ax_check_save_flags ;;
7479 esac
7480 fi
7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___march_native" >&5
7482 printf "%s\n" "$ax_cv_check_cflags___march_native" >&6; }
7483 if test "x$ax_cv_check_cflags___march_native" = xyes
7484 then :
7485 CFLAGS="$CFLAGS -march=native"
7486 else case e in #(
7487 e) : ;;
7488 esac
7489 fi
7490
7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5
7492 printf %s "checking whether C compiler accepts -mtune=native... " >&6; }
7493 if test ${ax_cv_check_cflags___mtune_native+y}
7494 then :
7495 printf %s "(cached) " >&6
7496 else case e in #(
7497 e)
7498 ax_check_save_flags=$CFLAGS
7499 CFLAGS="$CFLAGS -mtune=native"
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7502 #include <time.h>
7503 int
7504 main (void)
7505 {
7506 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7507
7508 ;
7509 return 0;
7510 }
7511 _ACEOF
7512 if ac_fn_c_try_link "$LINENO"
7513 then :
7514 ax_cv_check_cflags___mtune_native=yes
7515 else case e in #(
7516 e) ax_cv_check_cflags___mtune_native=no ;;
7517 esac
7518 fi
7519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7520 conftest$ac_exeext conftest.$ac_ext
7521 CFLAGS=$ax_check_save_flags ;;
7522 esac
7523 fi
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mtune_native" >&5
7525 printf "%s\n" "$ax_cv_check_cflags___mtune_native" >&6; }
7526 if test "x$ax_cv_check_cflags___mtune_native" = xyes
7527 then :
7528 CFLAGS="$CFLAGS -mtune=native"
7529 else case e in #(
7530 e) : ;;
7531 esac
7532 fi
7533
7534
7535 fi
7536
7537 fi
7538
7539
7540
7541
7542
7543
7544 # Check whether --enable-valgrind was given.
7545 if test ${enable_valgrind+y}
7546 then :
7547 enableval=$enable_valgrind; enable_valgrind=$enableval
7548 else case e in #(
7549 e) enable_valgrind=no ;;
7550 esac
7551 fi
7552
7553
7554 if test "$enable_valgrind" != "no"
7555 then :
7556
7557 # Check for Valgrind.
7558 # Extract the first word of "valgrind", so it can be a program name with args.
7559 set dummy valgrind; ac_word=$2
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 printf %s "checking for $ac_word... " >&6; }
7562 if test ${ac_cv_prog_VALGRIND+y}
7563 then :
7564 printf %s "(cached) " >&6
7565 else case e in #(
7566 e) if test -n "$VALGRIND"; then
7567 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7571 do
7572 IFS=$as_save_IFS
7573 case $as_dir in #(((
7574 '') as_dir=./ ;;
7575 */) ;;
7576 *) as_dir=$as_dir/ ;;
7577 esac
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_VALGRIND="valgrind"
7581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7582 break 2
7583 fi
7584 done
7585 done
7586 IFS=$as_save_IFS
7587
7588 fi ;;
7589 esac
7590 fi
7591 VALGRIND=$ac_cv_prog_VALGRIND
7592 if test -n "$VALGRIND"; then
7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
7594 printf "%s\n" "$VALGRIND" >&6; }
7595 else
7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 printf "%s\n" "no" >&6; }
7598 fi
7599
7600
7601 if test "$VALGRIND" = ""
7602 then :
7603
7604 if test "$enable_valgrind" = "yes"
7605 then :
7606
7607 as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5
7608
7609 else case e in #(
7610 e)
7611 enable_valgrind=no
7612 ;;
7613 esac
7614 fi
7615
7616 else case e in #(
7617 e)
7618 enable_valgrind=yes
7619 ;;
7620 esac
7621 fi
7622
7623 fi
7624
7625 if test "$enable_valgrind" = "yes"; then
7626 VALGRIND_ENABLED_TRUE=
7627 VALGRIND_ENABLED_FALSE='#'
7628 else
7629 VALGRIND_ENABLED_TRUE='#'
7630 VALGRIND_ENABLED_FALSE=
7631 fi
7632
7633 VALGRIND_ENABLED=$enable_valgrind
7634
7635
7636 # Check for Valgrind tools we care about.
7637 valgrind_enabled_tools=
7638
7639 # Check whether --enable-valgrind-memcheck was given.
7640 if test ${enable_valgrind_memcheck+y}
7641 then :
7642 enableval=$enable_valgrind_memcheck; enable_valgrind_memcheck=$enableval
7643 else case e in #(
7644 e) enable_valgrind_memcheck= ;;
7645 esac
7646 fi
7647
7648 if test "$enable_valgrind" = "no"
7649 then :
7650
7651 enable_valgrind_memcheck=no
7652 elif test "$enable_valgrind_memcheck" != "no"
7653 then :
7654
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5
7656 printf %s "checking for Valgrind tool memcheck... " >&6; }
7657 if test ${ax_cv_valgrind_tool_memcheck+y}
7658 then :
7659 printf %s "(cached) " >&6
7660 else case e in #(
7661 e)
7662 ax_cv_valgrind_tool_memcheck=no
7663
7664 if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1`
7665 then :
7666
7667 ax_cv_valgrind_tool_memcheck=yes
7668
7669 fi
7670 ;;
7671 esac
7672 fi
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5
7674 printf "%s\n" "$ax_cv_valgrind_tool_memcheck" >&6; }
7675 if test "$ax_cv_valgrind_tool_memcheck" = "no"
7676 then :
7677
7678 if test "$enable_valgrind_memcheck" = "yes"
7679 then :
7680
7681 as_fn_error $? "Valgrind does not support memcheck; reconfigure with --disable-valgrind-memcheck" "$LINENO" 5
7682
7683 else case e in #(
7684 e)
7685 enable_valgrind_memcheck=no
7686 ;;
7687 esac
7688 fi
7689
7690 else case e in #(
7691 e)
7692 enable_valgrind_memcheck=yes
7693 ;;
7694 esac
7695 fi
7696
7697 fi
7698 if test "$enable_valgrind_memcheck" = "yes"
7699 then :
7700
7701 valgrind_enabled_tools="$valgrind_enabled_tools memcheck"
7702
7703 fi
7704 ENABLE_VALGRIND_memcheck=$enable_valgrind_memcheck
7705
7706
7707 # Check whether --enable-valgrind-helgrind was given.
7708 if test ${enable_valgrind_helgrind+y}
7709 then :
7710 enableval=$enable_valgrind_helgrind; enable_valgrind_helgrind=$enableval
7711 else case e in #(
7712 e) enable_valgrind_helgrind= ;;
7713 esac
7714 fi
7715
7716 if test "$enable_valgrind" = "no"
7717 then :
7718
7719 enable_valgrind_helgrind=no
7720 elif test "$enable_valgrind_helgrind" != "no"
7721 then :
7722
7723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool helgrind" >&5
7724 printf %s "checking for Valgrind tool helgrind... " >&6; }
7725 if test ${ax_cv_valgrind_tool_helgrind+y}
7726 then :
7727 printf %s "(cached) " >&6
7728 else case e in #(
7729 e)
7730 ax_cv_valgrind_tool_helgrind=no
7731
7732 if `$VALGRIND --tool=helgrind --help >/dev/null 2>&1`
7733 then :
7734
7735 ax_cv_valgrind_tool_helgrind=yes
7736
7737 fi
7738 ;;
7739 esac
7740 fi
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_helgrind" >&5
7742 printf "%s\n" "$ax_cv_valgrind_tool_helgrind" >&6; }
7743 if test "$ax_cv_valgrind_tool_helgrind" = "no"
7744 then :
7745
7746 if test "$enable_valgrind_helgrind" = "yes"
7747 then :
7748
7749 as_fn_error $? "Valgrind does not support helgrind; reconfigure with --disable-valgrind-helgrind" "$LINENO" 5
7750
7751 else case e in #(
7752 e)
7753 enable_valgrind_helgrind=no
7754 ;;
7755 esac
7756 fi
7757
7758 else case e in #(
7759 e)
7760 enable_valgrind_helgrind=yes
7761 ;;
7762 esac
7763 fi
7764
7765 fi
7766 if test "$enable_valgrind_helgrind" = "yes"
7767 then :
7768
7769 valgrind_enabled_tools="$valgrind_enabled_tools helgrind"
7770
7771 fi
7772 ENABLE_VALGRIND_helgrind=$enable_valgrind_helgrind
7773
7774
7775 # Check whether --enable-valgrind-drd was given.
7776 if test ${enable_valgrind_drd+y}
7777 then :
7778 enableval=$enable_valgrind_drd; enable_valgrind_drd=$enableval
7779 else case e in #(
7780 e) enable_valgrind_drd= ;;
7781 esac
7782 fi
7783
7784 if test "$enable_valgrind" = "no"
7785 then :
7786
7787 enable_valgrind_drd=no
7788 elif test "$enable_valgrind_drd" != "no"
7789 then :
7790
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool drd" >&5
7792 printf %s "checking for Valgrind tool drd... " >&6; }
7793 if test ${ax_cv_valgrind_tool_drd+y}
7794 then :
7795 printf %s "(cached) " >&6
7796 else case e in #(
7797 e)
7798 ax_cv_valgrind_tool_drd=no
7799
7800 if `$VALGRIND --tool=drd --help >/dev/null 2>&1`
7801 then :
7802
7803 ax_cv_valgrind_tool_drd=yes
7804
7805 fi
7806 ;;
7807 esac
7808 fi
7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_drd" >&5
7810 printf "%s\n" "$ax_cv_valgrind_tool_drd" >&6; }
7811 if test "$ax_cv_valgrind_tool_drd" = "no"
7812 then :
7813
7814 if test "$enable_valgrind_drd" = "yes"
7815 then :
7816
7817 as_fn_error $? "Valgrind does not support drd; reconfigure with --disable-valgrind-drd" "$LINENO" 5
7818
7819 else case e in #(
7820 e)
7821 enable_valgrind_drd=no
7822 ;;
7823 esac
7824 fi
7825
7826 else case e in #(
7827 e)
7828 enable_valgrind_drd=yes
7829 ;;
7830 esac
7831 fi
7832
7833 fi
7834 if test "$enable_valgrind_drd" = "yes"
7835 then :
7836
7837 valgrind_enabled_tools="$valgrind_enabled_tools drd"
7838
7839 fi
7840 ENABLE_VALGRIND_drd=$enable_valgrind_drd
7841
7842
7843 # Check whether --enable-valgrind-sgcheck was given.
7844 if test ${enable_valgrind_sgcheck+y}
7845 then :
7846 enableval=$enable_valgrind_sgcheck; enable_valgrind_sgcheck=$enableval
7847 else case e in #(
7848 e) enable_valgrind_sgcheck= ;;
7849 esac
7850 fi
7851
7852 if test "$enable_valgrind" = "no"
7853 then :
7854
7855 enable_valgrind_sgcheck=no
7856 elif test "$enable_valgrind_sgcheck" != "no"
7857 then :
7858
7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool sgcheck" >&5
7860 printf %s "checking for Valgrind tool sgcheck... " >&6; }
7861 if test ${ax_cv_valgrind_tool_sgcheck+y}
7862 then :
7863 printf %s "(cached) " >&6
7864 else case e in #(
7865 e)
7866 ax_cv_valgrind_tool_sgcheck=no
7867
7868 if `$VALGRIND --tool=exp-sgcheck --help >/dev/null 2>&1`
7869 then :
7870
7871 ax_cv_valgrind_tool_sgcheck=yes
7872
7873 fi
7874 ;;
7875 esac
7876 fi
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_sgcheck" >&5
7878 printf "%s\n" "$ax_cv_valgrind_tool_sgcheck" >&6; }
7879 if test "$ax_cv_valgrind_tool_sgcheck" = "no"
7880 then :
7881
7882 if test "$enable_valgrind_sgcheck" = "yes"
7883 then :
7884
7885 as_fn_error $? "Valgrind does not support sgcheck; reconfigure with --disable-valgrind-sgcheck" "$LINENO" 5
7886
7887 else case e in #(
7888 e)
7889 enable_valgrind_sgcheck=no
7890 ;;
7891 esac
7892 fi
7893
7894 else case e in #(
7895 e)
7896 enable_valgrind_sgcheck=yes
7897 ;;
7898 esac
7899 fi
7900
7901 fi
7902 if test "$enable_valgrind_sgcheck" = "yes"
7903 then :
7904
7905 valgrind_enabled_tools="$valgrind_enabled_tools sgcheck"
7906
7907 fi
7908 ENABLE_VALGRIND_sgcheck=$enable_valgrind_sgcheck
7909
7910
7911 valgrind_tools="memcheck helgrind drd sgcheck"
7912
7913 valgrind_enabled_tools=$valgrind_enabled_tools
7914
7915
7916 VALGRIND_CHECK_RULES='
7917 # Valgrind check
7918 #
7919 # Optional:
7920 # - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions
7921 # files to load. (Default: empty)
7922 # - VALGRIND_FLAGS: General flags to pass to all Valgrind tools.
7923 # (Default: --num-callers=30)
7924 # - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of:
7925 # memcheck, helgrind, drd, sgcheck). (Default: various)
7926
7927 # Optional variables
7928 VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES))
7929 VALGRIND_FLAGS ?= --num-callers=30
7930 VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no
7931 VALGRIND_helgrind_FLAGS ?= --history-level=approx
7932 VALGRIND_drd_FLAGS ?=
7933 VALGRIND_sgcheck_FLAGS ?=
7934
7935 # Internal use
7936 valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools)))
7937
7938 valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS)
7939 valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS)
7940 valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS)
7941 valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS)
7942
7943 valgrind_quiet = $(valgrind_quiet_$(V))
7944 valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY))
7945 valgrind_quiet_0 = --quiet
7946 valgrind_v_use = $(valgrind_v_use_$(V))
7947 valgrind_v_use_ = $(valgrind_v_use_$(AM_DEFAULT_VERBOSITY))
7948 valgrind_v_use_0 = @echo " USE " $(patsubst check-valgrind-%,%,$''@):;
7949
7950 # Support running with and without libtool.
7951 ifneq ($(LIBTOOL),)
7952 valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute
7953 else
7954 valgrind_lt =
7955 endif
7956
7957 # Use recursive makes in order to ignore errors during check
7958 check-valgrind:
7959 ifeq ($(VALGRIND_ENABLED),yes)
7960 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k \
7961 $(foreach tool, $(valgrind_enabled_tools), check-valgrind-$(tool))
7962 else
7963 @echo "Need to use GNU make and reconfigure with --enable-valgrind"
7964 endif
7965
7966 # Valgrind running
7967 VALGRIND_TESTS_ENVIRONMENT = \
7968 $(TESTS_ENVIRONMENT) \
7969 env VALGRIND=$(VALGRIND) \
7970 G_SLICE=always-malloc,debug-blocks \
7971 G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly
7972
7973 VALGRIND_LOG_COMPILER = \
7974 $(valgrind_lt) \
7975 $(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS)
7976
7977 define valgrind_tool_rule =
7978 check-valgrind-$(1):
7979 ifeq ($$(VALGRIND_ENABLED)-$$(ENABLE_VALGRIND_$(1)),yes-yes)
7980 $$(valgrind_v_use)$$(MAKE) check-TESTS \
7981 TESTS_ENVIRONMENT="$$(VALGRIND_TESTS_ENVIRONMENT)" \
7982 LOG_COMPILER="$$(VALGRIND_LOG_COMPILER)" \
7983 LOG_FLAGS="$$(valgrind_$(1)_flags)" \
7984 TEST_SUITE_LOG=test-suite-$(1).log
7985 else ifeq ($$(VALGRIND_ENABLED),yes)
7986 @echo "Need to reconfigure with --enable-valgrind-$(1)"
7987 else
7988 @echo "Need to reconfigure with --enable-valgrind"
7989 endif
7990 endef
7991
7992 $(foreach tool,$(valgrind_tools),$(eval $(call valgrind_tool_rule,$(tool))))
7993
7994 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
7995 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind
7996
7997 MOSTLYCLEANFILES ?=
7998 MOSTLYCLEANFILES += $(valgrind_log_files)
7999
8000 .PHONY: check-valgrind $(add-prefix check-valgrind-,$(valgrind_tools))
8001 '
8002
8003 if test "$enable_valgrind" != "yes"
8004 then :
8005
8006 VALGRIND_CHECK_RULES='
8007 check-valgrind:
8008 @echo "Need to use GNU make and reconfigure with --enable-valgrind"'
8009
8010 fi
8011
8012
8013
8014
8015
8016
8017
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
8019 printf %s "checking for variable-length arrays... " >&6; }
8020 if test ${ac_cv_c_vararrays+y}
8021 then :
8022 printf %s "(cached) " >&6
8023 else case e in #(
8024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8026 #ifndef __STDC_NO_VLA__
8027 #error __STDC_NO_VLA__ not defined
8028 #endif
8029
8030 _ACEOF
8031 if ac_fn_c_try_compile "$LINENO"
8032 then :
8033 ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
8034 else case e in #(
8035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 /* Test for VLA support. This test is partly inspired
8038 from examples in the C standard. Use at least two VLA
8039 functions to detect the GCC 3.4.3 bug described in:
8040 https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
8041 */
8042 #ifdef __STDC_NO_VLA__
8043 syntax error;
8044 #else
8045 extern int n;
8046 int B[100];
8047 int fvla (int m, int C[m][m]);
8048
8049 int
8050 simple (int count, int all[static count])
8051 {
8052 return all[count - 1];
8053 }
8054
8055 int
8056 fvla (int m, int C[m][m])
8057 {
8058 typedef int VLA[m][m];
8059 VLA x;
8060 int D[m];
8061 static int (*q)[m] = &B;
8062 int (*s)[n] = q;
8063 return C && &x[0][0] == &D[0] && &D[0] == s[0];
8064 }
8065 #endif
8066
8067 int
8068 main (void)
8069 {
8070
8071 ;
8072 return 0;
8073 }
8074 _ACEOF
8075 if ac_fn_c_try_compile "$LINENO"
8076 then :
8077 ac_cv_c_vararrays=yes
8078 else case e in #(
8079 e) ac_cv_c_vararrays=no ;;
8080 esac
8081 fi
8082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8083 esac
8084 fi
8085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8086 esac
8087 fi
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
8089 printf "%s\n" "$ac_cv_c_vararrays" >&6; }
8090 if test "$ac_cv_c_vararrays" = yes; then
8091
8092 printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h
8093
8094 elif test "$ac_cv_c_vararrays" = no; then
8095
8096 printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h
8097
8098 fi
8099
8100
8101
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __wasi__ defined" >&5
8103 printf %s "checking for __wasi__ defined... " >&6; }
8104 if test ${ac_cv_defined___wasi__+y}
8105 then :
8106 printf %s "(cached) " >&6
8107 else case e in #(
8108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110
8111 int
8112 main (void)
8113 {
8114
8115 #ifdef __wasi__
8116 int ok;
8117 (void)ok;
8118 #else
8119 choke me
8120 #endif
8121
8122 ;
8123 return 0;
8124 }
8125 _ACEOF
8126 if ac_fn_c_try_compile "$LINENO"
8127 then :
8128 ac_cv_defined___wasi__=yes
8129 else case e in #(
8130 e) ac_cv_defined___wasi__=no ;;
8131 esac
8132 fi
8133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8134 esac
8135 fi
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___wasi__" >&5
8137 printf "%s\n" "$ac_cv_defined___wasi__" >&6; }
8138 if test $ac_cv_defined___wasi__ != "no"
8139 then :
8140 WASI="yes"
8141 fi
8142
8143 case $host_os in #(
8144 linux-gnu) :
8145
8146 ac_save_cflags=$CFLAGS
8147 ac_cwerror_flag=yes
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
8149 printf %s "checking whether C compiler accepts -Werror... " >&6; }
8150 if test ${ax_cv_check_cflags___Werror+y}
8151 then :
8152 printf %s "(cached) " >&6
8153 else case e in #(
8154 e)
8155 ax_check_save_flags=$CFLAGS
8156 CFLAGS="$CFLAGS -Werror"
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159 #include <time.h>
8160 int
8161 main (void)
8162 {
8163 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8164
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_link "$LINENO"
8170 then :
8171 ax_cv_check_cflags___Werror=yes
8172 else case e in #(
8173 e) ax_cv_check_cflags___Werror=no ;;
8174 esac
8175 fi
8176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8177 conftest$ac_exeext conftest.$ac_ext
8178 CFLAGS=$ax_check_save_flags ;;
8179 esac
8180 fi
8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
8182 printf "%s\n" "$ax_cv_check_cflags___Werror" >&6; }
8183 if test "x$ax_cv_check_cflags___Werror" = xyes
8184 then :
8185 CFLAGS="$CFLAGS -Werror"
8186 else case e in #(
8187 e) : ;;
8188 esac
8189 fi
8190
8191 ax_add_fortify_3_failed=
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=3 to CPPFLAGS" >&5
8193 printf %s "checking whether to add -D_FORTIFY_SOURCE=3 to CPPFLAGS... " >&6; }
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196
8197
8198 int
8199 main (void)
8200 {
8201
8202 #ifndef _FORTIFY_SOURCE
8203 return 0;
8204 #else
8205 _FORTIFY_SOURCE_already_defined;
8206 #endif
8207
8208
8209 ;
8210 return 0;
8211 }
8212 _ACEOF
8213 if ac_fn_c_try_link "$LINENO"
8214 then :
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217
8218
8219 #define _FORTIFY_SOURCE 3
8220 #include <string.h>
8221 int main(void) {
8222 char *s = " ";
8223 strcpy(s, "x");
8224 return strlen(s)-1;
8225 }
8226
8227
8228 _ACEOF
8229 if ac_fn_c_try_link "$LINENO"
8230 then :
8231
8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8233 printf "%s\n" "yes" >&6; }
8234 CFLAGS=$ac_save_cflags
8235 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=3"
8236
8237 else case e in #(
8238 e)
8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 printf "%s\n" "no" >&6; }
8241 ax_add_fortify_3_failed=1
8242 ;;
8243 esac
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8246 conftest$ac_exeext conftest.$ac_ext
8247 else case e in #(
8248 e)
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 printf "%s\n" "no" >&6; }
8251 ax_add_fortify_3_failed=1
8252 ;;
8253 esac
8254 fi
8255 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8256 conftest$ac_exeext conftest.$ac_ext
8257 if test -n "$ax_add_fortify_3_failed"
8258 then
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS" >&5
8260 printf %s "checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS... " >&6; }
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263
8264
8265 int
8266 main (void)
8267 {
8268
8269 #ifndef _FORTIFY_SOURCE
8270 return 0;
8271 #else
8272 _FORTIFY_SOURCE_already_defined;
8273 #endif
8274
8275
8276 ;
8277 return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_link "$LINENO"
8281 then :
8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h. */
8284
8285
8286 #define _FORTIFY_SOURCE 2
8287 #include <string.h>
8288 int main(void) {
8289 char *s = " ";
8290 strcpy(s, "x");
8291 return strlen(s)-1;
8292 }
8293
8294
8295 _ACEOF
8296 if ac_fn_c_try_link "$LINENO"
8297 then :
8298
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8300 printf "%s\n" "yes" >&6; }
8301 CFLAGS=$ac_save_cflags
8302 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
8303
8304 else case e in #(
8305 e)
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 printf "%s\n" "no" >&6; }
8308 CFLAGS=$ac_save_cflags
8309 ;;
8310 esac
8311 fi
8312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8313 conftest$ac_exeext conftest.$ac_ext
8314 else case e in #(
8315 e)
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317 printf "%s\n" "no" >&6; }
8318 CFLAGS=$ac_save_cflags
8319 ;;
8320 esac
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8323 conftest$ac_exeext conftest.$ac_ext
8324 fi
8325 ;; #(
8326 *) :
8327 ;;
8328 esac
8329
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
8331 printf %s "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
8332 if test ${ax_cv_check_cflags___fvisibility_hidden+y}
8333 then :
8334 printf %s "(cached) " >&6
8335 else case e in #(
8336 e)
8337 ax_check_save_flags=$CFLAGS
8338 CFLAGS="$CFLAGS -fvisibility=hidden"
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8341 #include <time.h>
8342 int
8343 main (void)
8344 {
8345 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8346
8347 ;
8348 return 0;
8349 }
8350 _ACEOF
8351 if ac_fn_c_try_link "$LINENO"
8352 then :
8353 ax_cv_check_cflags___fvisibility_hidden=yes
8354 else case e in #(
8355 e) ax_cv_check_cflags___fvisibility_hidden=no ;;
8356 esac
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8359 conftest$ac_exeext conftest.$ac_ext
8360 CFLAGS=$ax_check_save_flags ;;
8361 esac
8362 fi
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
8364 printf "%s\n" "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
8365 if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes
8366 then :
8367 CFLAGS="$CFLAGS -fvisibility=hidden"
8368 else case e in #(
8369 e) : ;;
8370 esac
8371 fi
8372
8373
8374 case $host_os in #(
8375 cygwin*|mingw*|msys|pw32*|cegcc*|eabi*) :
8376 ;; #(
8377 *) :
8378
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
8380 printf %s "checking whether C compiler accepts -fPIC... " >&6; }
8381 if test ${ax_cv_check_cflags___fPIC+y}
8382 then :
8383 printf %s "(cached) " >&6
8384 else case e in #(
8385 e)
8386 ax_check_save_flags=$CFLAGS
8387 CFLAGS="$CFLAGS -fPIC"
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <time.h>
8391 int
8392 main (void)
8393 {
8394 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8395
8396 ;
8397 return 0;
8398 }
8399 _ACEOF
8400 if ac_fn_c_try_link "$LINENO"
8401 then :
8402 ax_cv_check_cflags___fPIC=yes
8403 else case e in #(
8404 e) ax_cv_check_cflags___fPIC=no ;;
8405 esac
8406 fi
8407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8408 conftest$ac_exeext conftest.$ac_ext
8409 CFLAGS=$ax_check_save_flags ;;
8410 esac
8411 fi
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
8413 printf "%s\n" "$ax_cv_check_cflags___fPIC" >&6; }
8414 if test "x$ax_cv_check_cflags___fPIC" = xyes
8415 then :
8416 CFLAGS="$CFLAGS -fPIC"
8417 else case e in #(
8418 e) : ;;
8419 esac
8420 fi
8421
8422 ;;
8423 esac
8424
8425 if test "$enable_pie" != "no"
8426 then :
8427
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
8429 printf %s "checking whether C compiler accepts -fPIE... " >&6; }
8430 if test ${ax_cv_check_cflags___fPIE+y}
8431 then :
8432 printf %s "(cached) " >&6
8433 else case e in #(
8434 e)
8435 ax_check_save_flags=$CFLAGS
8436 CFLAGS="$CFLAGS -fPIE"
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 #include <time.h>
8440 int
8441 main (void)
8442 {
8443 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8444
8445 ;
8446 return 0;
8447 }
8448 _ACEOF
8449 if ac_fn_c_try_link "$LINENO"
8450 then :
8451 ax_cv_check_cflags___fPIE=yes
8452 else case e in #(
8453 e) ax_cv_check_cflags___fPIE=no ;;
8454 esac
8455 fi
8456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8457 conftest$ac_exeext conftest.$ac_ext
8458 CFLAGS=$ax_check_save_flags ;;
8459 esac
8460 fi
8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
8462 printf "%s\n" "$ax_cv_check_cflags___fPIE" >&6; }
8463 if test "x$ax_cv_check_cflags___fPIE" = xyes
8464 then :
8465
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
8467 printf %s "checking whether the linker accepts -pie... " >&6; }
8468 if test ${ax_cv_check_ldflags___pie+y}
8469 then :
8470 printf %s "(cached) " >&6
8471 else case e in #(
8472 e)
8473 ax_check_save_flags=$LDFLAGS
8474 LDFLAGS="$LDFLAGS -pie"
8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8477 #include <time.h>
8478 int
8479 main (void)
8480 {
8481 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8482 ;
8483 return 0;
8484 }
8485 _ACEOF
8486 if ac_fn_c_try_link "$LINENO"
8487 then :
8488 ax_cv_check_ldflags___pie=yes
8489 else case e in #(
8490 e) ax_cv_check_ldflags___pie=no ;;
8491 esac
8492 fi
8493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8494 conftest$ac_exeext conftest.$ac_ext
8495 LDFLAGS=$ax_check_save_flags ;;
8496 esac
8497 fi
8498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
8499 printf "%s\n" "$ax_cv_check_ldflags___pie" >&6; }
8500 if test "x$ax_cv_check_ldflags___pie" = xyes
8501 then :
8502
8503 CFLAGS="$CFLAGS -fPIE"
8504 LDFLAGS="$LDFLAGS -pie"
8505
8506 else case e in #(
8507 e) : ;;
8508 esac
8509 fi
8510
8511
8512 else case e in #(
8513 e) : ;;
8514 esac
8515 fi
8516
8517
8518 fi
8519
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
8521 printf %s "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
8522 if test ${ax_cv_check_cflags___fno_strict_aliasing+y}
8523 then :
8524 printf %s "(cached) " >&6
8525 else case e in #(
8526 e)
8527 ax_check_save_flags=$CFLAGS
8528 CFLAGS="$CFLAGS -fno-strict-aliasing"
8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8531 #include <time.h>
8532 int
8533 main (void)
8534 {
8535 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8536
8537 ;
8538 return 0;
8539 }
8540 _ACEOF
8541 if ac_fn_c_try_link "$LINENO"
8542 then :
8543 ax_cv_check_cflags___fno_strict_aliasing=yes
8544 else case e in #(
8545 e) ax_cv_check_cflags___fno_strict_aliasing=no ;;
8546 esac
8547 fi
8548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8549 conftest$ac_exeext conftest.$ac_ext
8550 CFLAGS=$ax_check_save_flags ;;
8551 esac
8552 fi
8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
8554 printf "%s\n" "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
8555 if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes
8556 then :
8557 CFLAGS="$CFLAGS -fno-strict-aliasing"
8558 else case e in #(
8559 e) : ;;
8560 esac
8561 fi
8562
8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
8564 printf %s "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
8565 if test ${ax_cv_check_cflags___fno_strict_overflow+y}
8566 then :
8567 printf %s "(cached) " >&6
8568 else case e in #(
8569 e)
8570 ax_check_save_flags=$CFLAGS
8571 CFLAGS="$CFLAGS -fno-strict-overflow"
8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h. */
8574 #include <time.h>
8575 int
8576 main (void)
8577 {
8578 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8579
8580 ;
8581 return 0;
8582 }
8583 _ACEOF
8584 if ac_fn_c_try_link "$LINENO"
8585 then :
8586 ax_cv_check_cflags___fno_strict_overflow=yes
8587 else case e in #(
8588 e) ax_cv_check_cflags___fno_strict_overflow=no ;;
8589 esac
8590 fi
8591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8592 conftest$ac_exeext conftest.$ac_ext
8593 CFLAGS=$ax_check_save_flags ;;
8594 esac
8595 fi
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
8597 printf "%s\n" "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
8598 if test "x$ax_cv_check_cflags___fno_strict_overflow" = xyes
8599 then :
8600 CFLAGS="$CFLAGS -fno-strict-overflow"
8601 else case e in #(
8602 e)
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
8604 printf %s "checking whether C compiler accepts -fwrapv... " >&6; }
8605 if test ${ax_cv_check_cflags___fwrapv+y}
8606 then :
8607 printf %s "(cached) " >&6
8608 else case e in #(
8609 e)
8610 ax_check_save_flags=$CFLAGS
8611 CFLAGS="$CFLAGS -fwrapv"
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 #include <time.h>
8615 int
8616 main (void)
8617 {
8618 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8619
8620 ;
8621 return 0;
8622 }
8623 _ACEOF
8624 if ac_fn_c_try_link "$LINENO"
8625 then :
8626 ax_cv_check_cflags___fwrapv=yes
8627 else case e in #(
8628 e) ax_cv_check_cflags___fwrapv=no ;;
8629 esac
8630 fi
8631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8632 conftest$ac_exeext conftest.$ac_ext
8633 CFLAGS=$ax_check_save_flags ;;
8634 esac
8635 fi
8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
8637 printf "%s\n" "$ax_cv_check_cflags___fwrapv" >&6; }
8638 if test "x$ax_cv_check_cflags___fwrapv" = xyes
8639 then :
8640 CFLAGS="$CFLAGS -fwrapv"
8641 else case e in #(
8642 e) : ;;
8643 esac
8644 fi
8645
8646 ;;
8647 esac
8648 fi
8649
8650
8651 if test "$GCC" = "yes"
8652 then :
8653
8654 case $host_cpu in #(
8655 i?86|amd64|x86_64) :
8656
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659
8660 #if !defined(__clang__) && defined(__GNUC__) && ((__GNUC__ << 8) | __GNUC_MINOR__) < 0x403
8661 # error old gcc
8662 #endif
8663 int main(void) { return 0; }
8664
8665 _ACEOF
8666 if ac_fn_c_try_compile "$LINENO"
8667 then :
8668
8669 else case e in #(
8670 e)
8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flax-vector-conversions" >&5
8672 printf %s "checking whether C compiler accepts -flax-vector-conversions... " >&6; }
8673 if test ${ax_cv_check_cflags___flax_vector_conversions+y}
8674 then :
8675 printf %s "(cached) " >&6
8676 else case e in #(
8677 e)
8678 ax_check_save_flags=$CFLAGS
8679 CFLAGS="$CFLAGS -flax-vector-conversions"
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 #include <time.h>
8683 int
8684 main (void)
8685 {
8686 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8687
8688 ;
8689 return 0;
8690 }
8691 _ACEOF
8692 if ac_fn_c_try_link "$LINENO"
8693 then :
8694 ax_cv_check_cflags___flax_vector_conversions=yes
8695 else case e in #(
8696 e) ax_cv_check_cflags___flax_vector_conversions=no ;;
8697 esac
8698 fi
8699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8700 conftest$ac_exeext conftest.$ac_ext
8701 CFLAGS=$ax_check_save_flags ;;
8702 esac
8703 fi
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flax_vector_conversions" >&5
8705 printf "%s\n" "$ax_cv_check_cflags___flax_vector_conversions" >&6; }
8706 if test "x$ax_cv_check_cflags___flax_vector_conversions" = xyes
8707 then :
8708 CFLAGS="$CFLAGS -flax-vector-conversions"
8709 else case e in #(
8710 e) : ;;
8711 esac
8712 fi
8713
8714 ;;
8715 esac
8716 fi
8717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8718
8719 ;; #(
8720 *) :
8721 ;;
8722 esac
8723
8724 fi
8725
8726 LIBTOOL_OLD_FLAGS="$LIBTOOL_EXTRA_FLAGS"
8727 LIBTOOL_EXTRA_FLAGS="$LIBTOOL_EXTRA_FLAGS -version-info $SODIUM_LIBRARY_VERSION"
8728 # Check whether --enable-soname-versions was given.
8729 if test ${enable_soname_versions+y}
8730 then :
8731 enableval=$enable_soname_versions;
8732 if test "x$enableval" = "xno"
8733 then :
8734
8735 LIBTOOL_EXTRA_FLAGS="$LIBTOOL_OLD_FLAGS -avoid-version"
8736
8737 fi
8738
8739
8740 fi
8741
8742
8743 case $host_os in #(
8744 cygwin*|mingw*|msys|pw32*|cegcc*) :
8745
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
8747 printf %s "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
8748 if test ${ax_cv_check_ldflags___Wl___dynamicbase+y}
8749 then :
8750 printf %s "(cached) " >&6
8751 else case e in #(
8752 e)
8753 ax_check_save_flags=$LDFLAGS
8754 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8757 #include <time.h>
8758 int
8759 main (void)
8760 {
8761 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8762 ;
8763 return 0;
8764 }
8765 _ACEOF
8766 if ac_fn_c_try_link "$LINENO"
8767 then :
8768 ax_cv_check_ldflags___Wl___dynamicbase=yes
8769 else case e in #(
8770 e) ax_cv_check_ldflags___Wl___dynamicbase=no ;;
8771 esac
8772 fi
8773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8774 conftest$ac_exeext conftest.$ac_ext
8775 LDFLAGS=$ax_check_save_flags ;;
8776 esac
8777 fi
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
8779 printf "%s\n" "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
8780 if test "x$ax_cv_check_ldflags___Wl___dynamicbase" = xyes
8781 then :
8782 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
8783 else case e in #(
8784 e) : ;;
8785 esac
8786 fi
8787
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--high-entropy-va" >&5
8789 printf %s "checking whether the linker accepts -Wl,--high-entropy-va... " >&6; }
8790 if test ${ax_cv_check_ldflags___Wl___high_entropy_va+y}
8791 then :
8792 printf %s "(cached) " >&6
8793 else case e in #(
8794 e)
8795 ax_check_save_flags=$LDFLAGS
8796 LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8799 #include <time.h>
8800 int
8801 main (void)
8802 {
8803 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8804 ;
8805 return 0;
8806 }
8807 _ACEOF
8808 if ac_fn_c_try_link "$LINENO"
8809 then :
8810 ax_cv_check_ldflags___Wl___high_entropy_va=yes
8811 else case e in #(
8812 e) ax_cv_check_ldflags___Wl___high_entropy_va=no ;;
8813 esac
8814 fi
8815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8816 conftest$ac_exeext conftest.$ac_ext
8817 LDFLAGS=$ax_check_save_flags ;;
8818 esac
8819 fi
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___high_entropy_va" >&5
8821 printf "%s\n" "$ax_cv_check_ldflags___Wl___high_entropy_va" >&6; }
8822 if test "x$ax_cv_check_ldflags___Wl___high_entropy_va" = xyes
8823 then :
8824 LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
8825 else case e in #(
8826 e) : ;;
8827 esac
8828 fi
8829
8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
8831 printf %s "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
8832 if test ${ax_cv_check_ldflags___Wl___nxcompat+y}
8833 then :
8834 printf %s "(cached) " >&6
8835 else case e in #(
8836 e)
8837 ax_check_save_flags=$LDFLAGS
8838 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 #include <time.h>
8842 int
8843 main (void)
8844 {
8845 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8846 ;
8847 return 0;
8848 }
8849 _ACEOF
8850 if ac_fn_c_try_link "$LINENO"
8851 then :
8852 ax_cv_check_ldflags___Wl___nxcompat=yes
8853 else case e in #(
8854 e) ax_cv_check_ldflags___Wl___nxcompat=no ;;
8855 esac
8856 fi
8857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8858 conftest$ac_exeext conftest.$ac_ext
8859 LDFLAGS=$ax_check_save_flags ;;
8860 esac
8861 fi
8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
8863 printf "%s\n" "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
8864 if test "x$ax_cv_check_ldflags___Wl___nxcompat" = xyes
8865 then :
8866 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
8867 else case e in #(
8868 e) : ;;
8869 esac
8870 fi
8871
8872 ;; #(
8873 *) :
8874 ;;
8875 esac
8876
8877 case $host_os in #(
8878 cygwin*|mingw*|msys|pw32*|cegcc*|eabi*) :
8879
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-asynchronous-unwind-tables" >&5
8881 printf %s "checking whether C compiler accepts -fno-asynchronous-unwind-tables... " >&6; }
8882 if test ${ax_cv_check_cflags___fno_asynchronous_unwind_tables+y}
8883 then :
8884 printf %s "(cached) " >&6
8885 else case e in #(
8886 e)
8887 ax_check_save_flags=$CFLAGS
8888 CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891 #include <time.h>
8892 int
8893 main (void)
8894 {
8895 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8896
8897 ;
8898 return 0;
8899 }
8900 _ACEOF
8901 if ac_fn_c_try_link "$LINENO"
8902 then :
8903 ax_cv_check_cflags___fno_asynchronous_unwind_tables=yes
8904 else case e in #(
8905 e) ax_cv_check_cflags___fno_asynchronous_unwind_tables=no ;;
8906 esac
8907 fi
8908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8909 conftest$ac_exeext conftest.$ac_ext
8910 CFLAGS=$ax_check_save_flags ;;
8911 esac
8912 fi
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_asynchronous_unwind_tables" >&5
8914 printf "%s\n" "$ax_cv_check_cflags___fno_asynchronous_unwind_tables" >&6; }
8915 if test "x$ax_cv_check_cflags___fno_asynchronous_unwind_tables" = xyes
8916 then :
8917
8918 CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"
8919
8920 else case e in #(
8921 e) : ;;
8922 esac
8923 fi
8924
8925 ;; #(
8926 *) :
8927 ;;
8928 esac
8929
8930 if test "x$enable_ssp" != "xno"
8931 then :
8932
8933
8934 case $host_os in #(
8935 solaris*|cygwin*|mingw*|msys|pw32*|cegcc*|haiku|none|eabi*) :
8936 ;; #(
8937 *) :
8938
8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
8940 printf %s "checking whether C compiler accepts -fstack-protector... " >&6; }
8941 if test ${ax_cv_check_cflags___fstack_protector+y}
8942 then :
8943 printf %s "(cached) " >&6
8944 else case e in #(
8945 e)
8946 ax_check_save_flags=$CFLAGS
8947 CFLAGS="$CFLAGS -fstack-protector"
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950 #include <time.h>
8951 int
8952 main (void)
8953 {
8954 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8955
8956 ;
8957 return 0;
8958 }
8959 _ACEOF
8960 if ac_fn_c_try_link "$LINENO"
8961 then :
8962 ax_cv_check_cflags___fstack_protector=yes
8963 else case e in #(
8964 e) ax_cv_check_cflags___fstack_protector=no ;;
8965 esac
8966 fi
8967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8968 conftest$ac_exeext conftest.$ac_ext
8969 CFLAGS=$ax_check_save_flags ;;
8970 esac
8971 fi
8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
8973 printf "%s\n" "$ax_cv_check_cflags___fstack_protector" >&6; }
8974 if test "x$ax_cv_check_cflags___fstack_protector" = xyes
8975 then :
8976
8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
8978 printf %s "checking whether the linker accepts -fstack-protector... " >&6; }
8979 if test ${ax_cv_check_ldflags___fstack_protector+y}
8980 then :
8981 printf %s "(cached) " >&6
8982 else case e in #(
8983 e)
8984 ax_check_save_flags=$LDFLAGS
8985 LDFLAGS="$LDFLAGS -fstack-protector"
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 #include <time.h>
8989 int
8990 main (void)
8991 {
8992 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8993 ;
8994 return 0;
8995 }
8996 _ACEOF
8997 if ac_fn_c_try_link "$LINENO"
8998 then :
8999 ax_cv_check_ldflags___fstack_protector=yes
9000 else case e in #(
9001 e) ax_cv_check_ldflags___fstack_protector=no ;;
9002 esac
9003 fi
9004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9005 conftest$ac_exeext conftest.$ac_ext
9006 LDFLAGS=$ax_check_save_flags ;;
9007 esac
9008 fi
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
9010 printf "%s\n" "$ax_cv_check_ldflags___fstack_protector" >&6; }
9011 if test "x$ax_cv_check_ldflags___fstack_protector" = xyes
9012 then :
9013 CFLAGS="$CFLAGS -fstack-protector"
9014
9015 else case e in #(
9016 e) : ;;
9017 esac
9018 fi
9019
9020
9021 else case e in #(
9022 e) : ;;
9023 esac
9024 fi
9025
9026 ;; #(
9027 *) :
9028 ;;
9029 esac
9030
9031 fi
9032
9033 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CFLAGS -Wall" | sed "$as_sed_sh"`
9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -Wall" >&5
9035 printf %s "checking whether C compiler accepts $CFLAGS -Wall... " >&6; }
9036 if eval test \${$as_CACHEVAR+y}
9037 then :
9038 printf %s "(cached) " >&6
9039 else case e in #(
9040 e)
9041 ax_check_save_flags=$CFLAGS
9042 CFLAGS="$CFLAGS $CFLAGS -Wall"
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9045 #include <time.h>
9046 int
9047 main (void)
9048 {
9049 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9050
9051 ;
9052 return 0;
9053 }
9054 _ACEOF
9055 if ac_fn_c_try_link "$LINENO"
9056 then :
9057 eval "$as_CACHEVAR=yes"
9058 else case e in #(
9059 e) eval "$as_CACHEVAR=no" ;;
9060 esac
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9063 conftest$ac_exeext conftest.$ac_ext
9064 CFLAGS=$ax_check_save_flags ;;
9065 esac
9066 fi
9067 eval ac_res=\$$as_CACHEVAR
9068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9069 printf "%s\n" "$ac_res" >&6; }
9070 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9071 then :
9072 CWFLAGS="$CFLAGS -Wall"
9073 else case e in #(
9074 e) : ;;
9075 esac
9076 fi
9077
9078 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CFLAGS -Wno-deprecated-declarations" | sed "$as_sed_sh"`
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -Wno-deprecated-declarations" >&5
9080 printf %s "checking whether C compiler accepts $CFLAGS -Wno-deprecated-declarations... " >&6; }
9081 if eval test \${$as_CACHEVAR+y}
9082 then :
9083 printf %s "(cached) " >&6
9084 else case e in #(
9085 e)
9086 ax_check_save_flags=$CFLAGS
9087 CFLAGS="$CFLAGS $CFLAGS -Wno-deprecated-declarations"
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 #include <time.h>
9091 int
9092 main (void)
9093 {
9094 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9095
9096 ;
9097 return 0;
9098 }
9099 _ACEOF
9100 if ac_fn_c_try_link "$LINENO"
9101 then :
9102 eval "$as_CACHEVAR=yes"
9103 else case e in #(
9104 e) eval "$as_CACHEVAR=no" ;;
9105 esac
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9108 conftest$ac_exeext conftest.$ac_ext
9109 CFLAGS=$ax_check_save_flags ;;
9110 esac
9111 fi
9112 eval ac_res=\$$as_CACHEVAR
9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9114 printf "%s\n" "$ac_res" >&6; }
9115 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9116 then :
9117 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
9118 else case e in #(
9119 e) : ;;
9120 esac
9121 fi
9122
9123 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CFLAGS -Wno-unknown-pragmas" | sed "$as_sed_sh"`
9124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -Wno-unknown-pragmas" >&5
9125 printf %s "checking whether C compiler accepts $CFLAGS -Wno-unknown-pragmas... " >&6; }
9126 if eval test \${$as_CACHEVAR+y}
9127 then :
9128 printf %s "(cached) " >&6
9129 else case e in #(
9130 e)
9131 ax_check_save_flags=$CFLAGS
9132 CFLAGS="$CFLAGS $CFLAGS -Wno-unknown-pragmas"
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 #include <time.h>
9136 int
9137 main (void)
9138 {
9139 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9140
9141 ;
9142 return 0;
9143 }
9144 _ACEOF
9145 if ac_fn_c_try_link "$LINENO"
9146 then :
9147 eval "$as_CACHEVAR=yes"
9148 else case e in #(
9149 e) eval "$as_CACHEVAR=no" ;;
9150 esac
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9153 conftest$ac_exeext conftest.$ac_ext
9154 CFLAGS=$ax_check_save_flags ;;
9155 esac
9156 fi
9157 eval ac_res=\$$as_CACHEVAR
9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9159 printf "%s\n" "$ac_res" >&6; }
9160 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9161 then :
9162 CFLAGS="$CFLAGS -Wno-unknown-pragmas"
9163 else case e in #(
9164 e) : ;;
9165 esac
9166 fi
9167
9168
9169
9170
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
9172 printf %s "checking for clang... " >&6; }
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175
9176 int
9177 main (void)
9178 {
9179
9180 #ifndef __clang__
9181 #error Not clang nor zig cc
9182 #endif
9183
9184 ;
9185 return 0;
9186 }
9187 _ACEOF
9188 if ac_fn_c_try_compile "$LINENO"
9189 then :
9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9191 printf "%s\n" "yes" >&6; }
9192 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | sed "$as_sed_sh"`
9193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
9194 printf %s "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
9195 if eval test \${$as_CACHEVAR+y}
9196 then :
9197 printf %s "(cached) " >&6
9198 else case e in #(
9199 e)
9200 ax_check_save_flags=$CFLAGS
9201 CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-warning-option"
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9204 #include <time.h>
9205 int
9206 main (void)
9207 {
9208 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9209
9210 ;
9211 return 0;
9212 }
9213 _ACEOF
9214 if ac_fn_c_try_link "$LINENO"
9215 then :
9216 eval "$as_CACHEVAR=yes"
9217 else case e in #(
9218 e) eval "$as_CACHEVAR=no" ;;
9219 esac
9220 fi
9221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9222 conftest$ac_exeext conftest.$ac_ext
9223 CFLAGS=$ax_check_save_flags ;;
9224 esac
9225 fi
9226 eval ac_res=\$$as_CACHEVAR
9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9228 printf "%s\n" "$ac_res" >&6; }
9229 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9230 then :
9231 CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
9232 else case e in #(
9233 e) : ;;
9234 esac
9235 fi
9236
9237
9238 else case e in #(
9239 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 printf "%s\n" "no" >&6; }
9241 ;;
9242 esac
9243 fi
9244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9245
9246 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wextra" | sed "$as_sed_sh"`
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wextra" >&5
9248 printf %s "checking whether C compiler accepts $CWFLAGS -Wextra... " >&6; }
9249 if eval test \${$as_CACHEVAR+y}
9250 then :
9251 printf %s "(cached) " >&6
9252 else case e in #(
9253 e)
9254 ax_check_save_flags=$CFLAGS
9255 CFLAGS="$CFLAGS $CWFLAGS -Wextra"
9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9258 #include <time.h>
9259 int
9260 main (void)
9261 {
9262 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9263
9264 ;
9265 return 0;
9266 }
9267 _ACEOF
9268 if ac_fn_c_try_link "$LINENO"
9269 then :
9270 eval "$as_CACHEVAR=yes"
9271 else case e in #(
9272 e) eval "$as_CACHEVAR=no" ;;
9273 esac
9274 fi
9275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9276 conftest$ac_exeext conftest.$ac_ext
9277 CFLAGS=$ax_check_save_flags ;;
9278 esac
9279 fi
9280 eval ac_res=\$$as_CACHEVAR
9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9282 printf "%s\n" "$ac_res" >&6; }
9283 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9284 then :
9285 CWFLAGS="$WCFLAGS -Wextra"
9286 else case e in #(
9287 e) : ;;
9288 esac
9289 fi
9290
9291 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Warray-bounds" | sed "$as_sed_sh"`
9292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Warray-bounds" >&5
9293 printf %s "checking whether C compiler accepts $CWFLAGS -Warray-bounds... " >&6; }
9294 if eval test \${$as_CACHEVAR+y}
9295 then :
9296 printf %s "(cached) " >&6
9297 else case e in #(
9298 e)
9299 ax_check_save_flags=$CFLAGS
9300 CFLAGS="$CFLAGS $CWFLAGS -Warray-bounds"
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 #include <time.h>
9304 int
9305 main (void)
9306 {
9307 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9308
9309 ;
9310 return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"
9314 then :
9315 eval "$as_CACHEVAR=yes"
9316 else case e in #(
9317 e) eval "$as_CACHEVAR=no" ;;
9318 esac
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9321 conftest$ac_exeext conftest.$ac_ext
9322 CFLAGS=$ax_check_save_flags ;;
9323 esac
9324 fi
9325 eval ac_res=\$$as_CACHEVAR
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9327 printf "%s\n" "$ac_res" >&6; }
9328 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9329 then :
9330 CWFLAGS="$CWFLAGS -Warray-bounds"
9331 else case e in #(
9332 e) : ;;
9333 esac
9334 fi
9335
9336 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | sed "$as_sed_sh"`
9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
9338 printf %s "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
9339 if eval test \${$as_CACHEVAR+y}
9340 then :
9341 printf %s "(cached) " >&6
9342 else case e in #(
9343 e)
9344 ax_check_save_flags=$CFLAGS
9345 CFLAGS="$CFLAGS $CWFLAGS -Wbad-function-cast"
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9348 #include <time.h>
9349 int
9350 main (void)
9351 {
9352 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9353
9354 ;
9355 return 0;
9356 }
9357 _ACEOF
9358 if ac_fn_c_try_link "$LINENO"
9359 then :
9360 eval "$as_CACHEVAR=yes"
9361 else case e in #(
9362 e) eval "$as_CACHEVAR=no" ;;
9363 esac
9364 fi
9365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9366 conftest$ac_exeext conftest.$ac_ext
9367 CFLAGS=$ax_check_save_flags ;;
9368 esac
9369 fi
9370 eval ac_res=\$$as_CACHEVAR
9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9372 printf "%s\n" "$ac_res" >&6; }
9373 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9374 then :
9375 CWFLAGS="$CWFLAGS -Wbad-function-cast"
9376 else case e in #(
9377 e) : ;;
9378 esac
9379 fi
9380
9381 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | sed "$as_sed_sh"`
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
9383 printf %s "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
9384 if eval test \${$as_CACHEVAR+y}
9385 then :
9386 printf %s "(cached) " >&6
9387 else case e in #(
9388 e)
9389 ax_check_save_flags=$CFLAGS
9390 CFLAGS="$CFLAGS $CWFLAGS -Wcast-qual"
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393 #include <time.h>
9394 int
9395 main (void)
9396 {
9397 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9398
9399 ;
9400 return 0;
9401 }
9402 _ACEOF
9403 if ac_fn_c_try_link "$LINENO"
9404 then :
9405 eval "$as_CACHEVAR=yes"
9406 else case e in #(
9407 e) eval "$as_CACHEVAR=no" ;;
9408 esac
9409 fi
9410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9411 conftest$ac_exeext conftest.$ac_ext
9412 CFLAGS=$ax_check_save_flags ;;
9413 esac
9414 fi
9415 eval ac_res=\$$as_CACHEVAR
9416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9417 printf "%s\n" "$ac_res" >&6; }
9418 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9419 then :
9420 CWFLAGS="$CWFLAGS -Wcast-qual"
9421 else case e in #(
9422 e) : ;;
9423 esac
9424 fi
9425
9426 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wdiv-by-zero" | sed "$as_sed_sh"`
9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wdiv-by-zero" >&5
9428 printf %s "checking whether C compiler accepts $CWFLAGS -Wdiv-by-zero... " >&6; }
9429 if eval test \${$as_CACHEVAR+y}
9430 then :
9431 printf %s "(cached) " >&6
9432 else case e in #(
9433 e)
9434 ax_check_save_flags=$CFLAGS
9435 CFLAGS="$CFLAGS $CWFLAGS -Wdiv-by-zero"
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438 #include <time.h>
9439 int
9440 main (void)
9441 {
9442 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9443
9444 ;
9445 return 0;
9446 }
9447 _ACEOF
9448 if ac_fn_c_try_link "$LINENO"
9449 then :
9450 eval "$as_CACHEVAR=yes"
9451 else case e in #(
9452 e) eval "$as_CACHEVAR=no" ;;
9453 esac
9454 fi
9455 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9456 conftest$ac_exeext conftest.$ac_ext
9457 CFLAGS=$ax_check_save_flags ;;
9458 esac
9459 fi
9460 eval ac_res=\$$as_CACHEVAR
9461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9462 printf "%s\n" "$ac_res" >&6; }
9463 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9464 then :
9465 CWFLAGS="$CWFLAGS -Wdiv-by-zero"
9466 else case e in #(
9467 e) : ;;
9468 esac
9469 fi
9470
9471 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wduplicated-branches" | sed "$as_sed_sh"`
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wduplicated-branches" >&5
9473 printf %s "checking whether C compiler accepts $CWFLAGS -Wduplicated-branches... " >&6; }
9474 if eval test \${$as_CACHEVAR+y}
9475 then :
9476 printf %s "(cached) " >&6
9477 else case e in #(
9478 e)
9479 ax_check_save_flags=$CFLAGS
9480 CFLAGS="$CFLAGS $CWFLAGS -Wduplicated-branches"
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483 #include <time.h>
9484 int
9485 main (void)
9486 {
9487 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9488
9489 ;
9490 return 0;
9491 }
9492 _ACEOF
9493 if ac_fn_c_try_link "$LINENO"
9494 then :
9495 eval "$as_CACHEVAR=yes"
9496 else case e in #(
9497 e) eval "$as_CACHEVAR=no" ;;
9498 esac
9499 fi
9500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9501 conftest$ac_exeext conftest.$ac_ext
9502 CFLAGS=$ax_check_save_flags ;;
9503 esac
9504 fi
9505 eval ac_res=\$$as_CACHEVAR
9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9507 printf "%s\n" "$ac_res" >&6; }
9508 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9509 then :
9510 CWFLAGS="$CWFLAGS -Wduplicated-branches"
9511 else case e in #(
9512 e) : ;;
9513 esac
9514 fi
9515
9516 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wduplicated-cond" | sed "$as_sed_sh"`
9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wduplicated-cond" >&5
9518 printf %s "checking whether C compiler accepts $CWFLAGS -Wduplicated-cond... " >&6; }
9519 if eval test \${$as_CACHEVAR+y}
9520 then :
9521 printf %s "(cached) " >&6
9522 else case e in #(
9523 e)
9524 ax_check_save_flags=$CFLAGS
9525 CFLAGS="$CFLAGS $CWFLAGS -Wduplicated-cond"
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9528 #include <time.h>
9529 int
9530 main (void)
9531 {
9532 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9533
9534 ;
9535 return 0;
9536 }
9537 _ACEOF
9538 if ac_fn_c_try_link "$LINENO"
9539 then :
9540 eval "$as_CACHEVAR=yes"
9541 else case e in #(
9542 e) eval "$as_CACHEVAR=no" ;;
9543 esac
9544 fi
9545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9546 conftest$ac_exeext conftest.$ac_ext
9547 CFLAGS=$ax_check_save_flags ;;
9548 esac
9549 fi
9550 eval ac_res=\$$as_CACHEVAR
9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9552 printf "%s\n" "$ac_res" >&6; }
9553 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9554 then :
9555 CWFLAGS="$CWFLAGS -Wduplicated-cond"
9556 else case e in #(
9557 e) : ;;
9558 esac
9559 fi
9560
9561 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | sed "$as_sed_sh"`
9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
9563 printf %s "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
9564 if eval test \${$as_CACHEVAR+y}
9565 then :
9566 printf %s "(cached) " >&6
9567 else case e in #(
9568 e)
9569 ax_check_save_flags=$CFLAGS
9570 CFLAGS="$CFLAGS $CWFLAGS -Wfloat-equal"
9571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572 /* end confdefs.h. */
9573 #include <time.h>
9574 int
9575 main (void)
9576 {
9577 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9578
9579 ;
9580 return 0;
9581 }
9582 _ACEOF
9583 if ac_fn_c_try_link "$LINENO"
9584 then :
9585 eval "$as_CACHEVAR=yes"
9586 else case e in #(
9587 e) eval "$as_CACHEVAR=no" ;;
9588 esac
9589 fi
9590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9591 conftest$ac_exeext conftest.$ac_ext
9592 CFLAGS=$ax_check_save_flags ;;
9593 esac
9594 fi
9595 eval ac_res=\$$as_CACHEVAR
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9597 printf "%s\n" "$ac_res" >&6; }
9598 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9599 then :
9600 CWFLAGS="$CWFLAGS -Wfloat-equal"
9601 else case e in #(
9602 e) : ;;
9603 esac
9604 fi
9605
9606 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | sed "$as_sed_sh"`
9607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
9608 printf %s "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
9609 if eval test \${$as_CACHEVAR+y}
9610 then :
9611 printf %s "(cached) " >&6
9612 else case e in #(
9613 e)
9614 ax_check_save_flags=$CFLAGS
9615 CFLAGS="$CFLAGS $CWFLAGS -Wformat=2"
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9618 #include <time.h>
9619 int
9620 main (void)
9621 {
9622 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9623
9624 ;
9625 return 0;
9626 }
9627 _ACEOF
9628 if ac_fn_c_try_link "$LINENO"
9629 then :
9630 eval "$as_CACHEVAR=yes"
9631 else case e in #(
9632 e) eval "$as_CACHEVAR=no" ;;
9633 esac
9634 fi
9635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9636 conftest$ac_exeext conftest.$ac_ext
9637 CFLAGS=$ax_check_save_flags ;;
9638 esac
9639 fi
9640 eval ac_res=\$$as_CACHEVAR
9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9642 printf "%s\n" "$ac_res" >&6; }
9643 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9644 then :
9645 CWFLAGS="$CWFLAGS -Wformat=2"
9646 else case e in #(
9647 e) : ;;
9648 esac
9649 fi
9650
9651 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wlogical-op" | sed "$as_sed_sh"`
9652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wlogical-op" >&5
9653 printf %s "checking whether C compiler accepts $CWFLAGS -Wlogical-op... " >&6; }
9654 if eval test \${$as_CACHEVAR+y}
9655 then :
9656 printf %s "(cached) " >&6
9657 else case e in #(
9658 e)
9659 ax_check_save_flags=$CFLAGS
9660 CFLAGS="$CFLAGS $CWFLAGS -Wlogical-op"
9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9663 #include <time.h>
9664 int
9665 main (void)
9666 {
9667 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9668
9669 ;
9670 return 0;
9671 }
9672 _ACEOF
9673 if ac_fn_c_try_link "$LINENO"
9674 then :
9675 eval "$as_CACHEVAR=yes"
9676 else case e in #(
9677 e) eval "$as_CACHEVAR=no" ;;
9678 esac
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9681 conftest$ac_exeext conftest.$ac_ext
9682 CFLAGS=$ax_check_save_flags ;;
9683 esac
9684 fi
9685 eval ac_res=\$$as_CACHEVAR
9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9687 printf "%s\n" "$ac_res" >&6; }
9688 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9689 then :
9690 CWFLAGS="$CWFLAGS -Wlogical-op"
9691 else case e in #(
9692 e) : ;;
9693 esac
9694 fi
9695
9696 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wmaybe-uninitialized" | sed "$as_sed_sh"`
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmaybe-uninitialized" >&5
9698 printf %s "checking whether C compiler accepts $CWFLAGS -Wmaybe-uninitialized... " >&6; }
9699 if eval test \${$as_CACHEVAR+y}
9700 then :
9701 printf %s "(cached) " >&6
9702 else case e in #(
9703 e)
9704 ax_check_save_flags=$CFLAGS
9705 CFLAGS="$CFLAGS $CWFLAGS -Wmaybe-uninitialized"
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9708 #include <time.h>
9709 int
9710 main (void)
9711 {
9712 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9713
9714 ;
9715 return 0;
9716 }
9717 _ACEOF
9718 if ac_fn_c_try_link "$LINENO"
9719 then :
9720 eval "$as_CACHEVAR=yes"
9721 else case e in #(
9722 e) eval "$as_CACHEVAR=no" ;;
9723 esac
9724 fi
9725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9726 conftest$ac_exeext conftest.$ac_ext
9727 CFLAGS=$ax_check_save_flags ;;
9728 esac
9729 fi
9730 eval ac_res=\$$as_CACHEVAR
9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9732 printf "%s\n" "$ac_res" >&6; }
9733 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9734 then :
9735 CWFLAGS="$CWFLAGS -Wmaybe-uninitialized"
9736 else case e in #(
9737 e) : ;;
9738 esac
9739 fi
9740
9741 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wmisleading-indentation" | sed "$as_sed_sh"`
9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmisleading-indentation" >&5
9743 printf %s "checking whether C compiler accepts $CWFLAGS -Wmisleading-indentation... " >&6; }
9744 if eval test \${$as_CACHEVAR+y}
9745 then :
9746 printf %s "(cached) " >&6
9747 else case e in #(
9748 e)
9749 ax_check_save_flags=$CFLAGS
9750 CFLAGS="$CFLAGS $CWFLAGS -Wmisleading-indentation"
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9753 #include <time.h>
9754 int
9755 main (void)
9756 {
9757 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9758
9759 ;
9760 return 0;
9761 }
9762 _ACEOF
9763 if ac_fn_c_try_link "$LINENO"
9764 then :
9765 eval "$as_CACHEVAR=yes"
9766 else case e in #(
9767 e) eval "$as_CACHEVAR=no" ;;
9768 esac
9769 fi
9770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9771 conftest$ac_exeext conftest.$ac_ext
9772 CFLAGS=$ax_check_save_flags ;;
9773 esac
9774 fi
9775 eval ac_res=\$$as_CACHEVAR
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9777 printf "%s\n" "$ac_res" >&6; }
9778 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9779 then :
9780 CWFLAGS="$CWFLAGS -Wmisleading-indentation"
9781 else case e in #(
9782 e) : ;;
9783 esac
9784 fi
9785
9786 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wmissing-declarations" | sed "$as_sed_sh"`
9787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-declarations" >&5
9788 printf %s "checking whether C compiler accepts $CWFLAGS -Wmissing-declarations... " >&6; }
9789 if eval test \${$as_CACHEVAR+y}
9790 then :
9791 printf %s "(cached) " >&6
9792 else case e in #(
9793 e)
9794 ax_check_save_flags=$CFLAGS
9795 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-declarations"
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 #include <time.h>
9799 int
9800 main (void)
9801 {
9802 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9803
9804 ;
9805 return 0;
9806 }
9807 _ACEOF
9808 if ac_fn_c_try_link "$LINENO"
9809 then :
9810 eval "$as_CACHEVAR=yes"
9811 else case e in #(
9812 e) eval "$as_CACHEVAR=no" ;;
9813 esac
9814 fi
9815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9816 conftest$ac_exeext conftest.$ac_ext
9817 CFLAGS=$ax_check_save_flags ;;
9818 esac
9819 fi
9820 eval ac_res=\$$as_CACHEVAR
9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9822 printf "%s\n" "$ac_res" >&6; }
9823 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9824 then :
9825 CWFLAGS="$CWFLAGS -Wmissing-declarations"
9826 else case e in #(
9827 e) : ;;
9828 esac
9829 fi
9830
9831 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wmissing-prototypes" | sed "$as_sed_sh"`
9832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes" >&5
9833 printf %s "checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes... " >&6; }
9834 if eval test \${$as_CACHEVAR+y}
9835 then :
9836 printf %s "(cached) " >&6
9837 else case e in #(
9838 e)
9839 ax_check_save_flags=$CFLAGS
9840 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-prototypes"
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9843 #include <time.h>
9844 int
9845 main (void)
9846 {
9847 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9848
9849 ;
9850 return 0;
9851 }
9852 _ACEOF
9853 if ac_fn_c_try_link "$LINENO"
9854 then :
9855 eval "$as_CACHEVAR=yes"
9856 else case e in #(
9857 e) eval "$as_CACHEVAR=no" ;;
9858 esac
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9861 conftest$ac_exeext conftest.$ac_ext
9862 CFLAGS=$ax_check_save_flags ;;
9863 esac
9864 fi
9865 eval ac_res=\$$as_CACHEVAR
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9867 printf "%s\n" "$ac_res" >&6; }
9868 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9869 then :
9870 CWFLAGS="$CWFLAGS -Wmissing-prototypes"
9871 else case e in #(
9872 e) : ;;
9873 esac
9874 fi
9875
9876 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wnested-externs" | sed "$as_sed_sh"`
9877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnested-externs" >&5
9878 printf %s "checking whether C compiler accepts $CWFLAGS -Wnested-externs... " >&6; }
9879 if eval test \${$as_CACHEVAR+y}
9880 then :
9881 printf %s "(cached) " >&6
9882 else case e in #(
9883 e)
9884 ax_check_save_flags=$CFLAGS
9885 CFLAGS="$CFLAGS $CWFLAGS -Wnested-externs"
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9888 #include <time.h>
9889 int
9890 main (void)
9891 {
9892 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9893
9894 ;
9895 return 0;
9896 }
9897 _ACEOF
9898 if ac_fn_c_try_link "$LINENO"
9899 then :
9900 eval "$as_CACHEVAR=yes"
9901 else case e in #(
9902 e) eval "$as_CACHEVAR=no" ;;
9903 esac
9904 fi
9905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9906 conftest$ac_exeext conftest.$ac_ext
9907 CFLAGS=$ax_check_save_flags ;;
9908 esac
9909 fi
9910 eval ac_res=\$$as_CACHEVAR
9911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9912 printf "%s\n" "$ac_res" >&6; }
9913 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9914 then :
9915 CWFLAGS="$CWFLAGS -Wnested-externs"
9916 else case e in #(
9917 e) : ;;
9918 esac
9919 fi
9920
9921 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wno-type-limits" | sed "$as_sed_sh"`
9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-type-limits" >&5
9923 printf %s "checking whether C compiler accepts $CWFLAGS -Wno-type-limits... " >&6; }
9924 if eval test \${$as_CACHEVAR+y}
9925 then :
9926 printf %s "(cached) " >&6
9927 else case e in #(
9928 e)
9929 ax_check_save_flags=$CFLAGS
9930 CFLAGS="$CFLAGS $CWFLAGS -Wno-type-limits"
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9933 #include <time.h>
9934 int
9935 main (void)
9936 {
9937 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9938
9939 ;
9940 return 0;
9941 }
9942 _ACEOF
9943 if ac_fn_c_try_link "$LINENO"
9944 then :
9945 eval "$as_CACHEVAR=yes"
9946 else case e in #(
9947 e) eval "$as_CACHEVAR=no" ;;
9948 esac
9949 fi
9950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9951 conftest$ac_exeext conftest.$ac_ext
9952 CFLAGS=$ax_check_save_flags ;;
9953 esac
9954 fi
9955 eval ac_res=\$$as_CACHEVAR
9956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9957 printf "%s\n" "$ac_res" >&6; }
9958 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9959 then :
9960 CWFLAGS="$CWFLAGS -Wno-type-limits"
9961 else case e in #(
9962 e) : ;;
9963 esac
9964 fi
9965
9966 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-pragmas" | sed "$as_sed_sh"`
9967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas" >&5
9968 printf %s "checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas... " >&6; }
9969 if eval test \${$as_CACHEVAR+y}
9970 then :
9971 printf %s "(cached) " >&6
9972 else case e in #(
9973 e)
9974 ax_check_save_flags=$CFLAGS
9975 CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-pragmas"
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h. */
9978 #include <time.h>
9979 int
9980 main (void)
9981 {
9982 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
9983
9984 ;
9985 return 0;
9986 }
9987 _ACEOF
9988 if ac_fn_c_try_link "$LINENO"
9989 then :
9990 eval "$as_CACHEVAR=yes"
9991 else case e in #(
9992 e) eval "$as_CACHEVAR=no" ;;
9993 esac
9994 fi
9995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9996 conftest$ac_exeext conftest.$ac_ext
9997 CFLAGS=$ax_check_save_flags ;;
9998 esac
9999 fi
10000 eval ac_res=\$$as_CACHEVAR
10001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10002 printf "%s\n" "$ac_res" >&6; }
10003 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10004 then :
10005 CWFLAGS="$CWFLAGS -Wno-unknown-pragmas"
10006 else case e in #(
10007 e) : ;;
10008 esac
10009 fi
10010
10011 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wnormalized=id" | sed "$as_sed_sh"`
10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnormalized=id" >&5
10013 printf %s "checking whether C compiler accepts $CWFLAGS -Wnormalized=id... " >&6; }
10014 if eval test \${$as_CACHEVAR+y}
10015 then :
10016 printf %s "(cached) " >&6
10017 else case e in #(
10018 e)
10019 ax_check_save_flags=$CFLAGS
10020 CFLAGS="$CFLAGS $CWFLAGS -Wnormalized=id"
10021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h. */
10023 #include <time.h>
10024 int
10025 main (void)
10026 {
10027 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10028
10029 ;
10030 return 0;
10031 }
10032 _ACEOF
10033 if ac_fn_c_try_link "$LINENO"
10034 then :
10035 eval "$as_CACHEVAR=yes"
10036 else case e in #(
10037 e) eval "$as_CACHEVAR=no" ;;
10038 esac
10039 fi
10040 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10041 conftest$ac_exeext conftest.$ac_ext
10042 CFLAGS=$ax_check_save_flags ;;
10043 esac
10044 fi
10045 eval ac_res=\$$as_CACHEVAR
10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10047 printf "%s\n" "$ac_res" >&6; }
10048 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10049 then :
10050 CWFLAGS="$CWFLAGS -Wnormalized=id"
10051 else case e in #(
10052 e) : ;;
10053 esac
10054 fi
10055
10056 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wnull-dereference" | sed "$as_sed_sh"`
10057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnull-dereference" >&5
10058 printf %s "checking whether C compiler accepts $CWFLAGS -Wnull-dereference... " >&6; }
10059 if eval test \${$as_CACHEVAR+y}
10060 then :
10061 printf %s "(cached) " >&6
10062 else case e in #(
10063 e)
10064 ax_check_save_flags=$CFLAGS
10065 CFLAGS="$CFLAGS $CWFLAGS -Wnull-dereference"
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068 #include <time.h>
10069 int
10070 main (void)
10071 {
10072 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10073
10074 ;
10075 return 0;
10076 }
10077 _ACEOF
10078 if ac_fn_c_try_link "$LINENO"
10079 then :
10080 eval "$as_CACHEVAR=yes"
10081 else case e in #(
10082 e) eval "$as_CACHEVAR=no" ;;
10083 esac
10084 fi
10085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10086 conftest$ac_exeext conftest.$ac_ext
10087 CFLAGS=$ax_check_save_flags ;;
10088 esac
10089 fi
10090 eval ac_res=\$$as_CACHEVAR
10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10092 printf "%s\n" "$ac_res" >&6; }
10093 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10094 then :
10095 CWFLAGS="$CWFLAGS -Wnull-dereference"
10096 else case e in #(
10097 e) : ;;
10098 esac
10099 fi
10100
10101 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wold-style-declaration" | sed "$as_sed_sh"`
10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wold-style-declaration" >&5
10103 printf %s "checking whether C compiler accepts $CWFLAGS -Wold-style-declaration... " >&6; }
10104 if eval test \${$as_CACHEVAR+y}
10105 then :
10106 printf %s "(cached) " >&6
10107 else case e in #(
10108 e)
10109 ax_check_save_flags=$CFLAGS
10110 CFLAGS="$CFLAGS $CWFLAGS -Wold-style-declaration"
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113 #include <time.h>
10114 int
10115 main (void)
10116 {
10117 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10118
10119 ;
10120 return 0;
10121 }
10122 _ACEOF
10123 if ac_fn_c_try_link "$LINENO"
10124 then :
10125 eval "$as_CACHEVAR=yes"
10126 else case e in #(
10127 e) eval "$as_CACHEVAR=no" ;;
10128 esac
10129 fi
10130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10131 conftest$ac_exeext conftest.$ac_ext
10132 CFLAGS=$ax_check_save_flags ;;
10133 esac
10134 fi
10135 eval ac_res=\$$as_CACHEVAR
10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10137 printf "%s\n" "$ac_res" >&6; }
10138 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10139 then :
10140 CWFLAGS="$CWFLAGS -Wold-style-declaration"
10141 else case e in #(
10142 e) : ;;
10143 esac
10144 fi
10145
10146 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wpointer-arith" | sed "$as_sed_sh"`
10147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wpointer-arith" >&5
10148 printf %s "checking whether C compiler accepts $CWFLAGS -Wpointer-arith... " >&6; }
10149 if eval test \${$as_CACHEVAR+y}
10150 then :
10151 printf %s "(cached) " >&6
10152 else case e in #(
10153 e)
10154 ax_check_save_flags=$CFLAGS
10155 CFLAGS="$CFLAGS $CWFLAGS -Wpointer-arith"
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 #include <time.h>
10159 int
10160 main (void)
10161 {
10162 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10163
10164 ;
10165 return 0;
10166 }
10167 _ACEOF
10168 if ac_fn_c_try_link "$LINENO"
10169 then :
10170 eval "$as_CACHEVAR=yes"
10171 else case e in #(
10172 e) eval "$as_CACHEVAR=no" ;;
10173 esac
10174 fi
10175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10176 conftest$ac_exeext conftest.$ac_ext
10177 CFLAGS=$ax_check_save_flags ;;
10178 esac
10179 fi
10180 eval ac_res=\$$as_CACHEVAR
10181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10182 printf "%s\n" "$ac_res" >&6; }
10183 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10184 then :
10185 CWFLAGS="$CWFLAGS -Wpointer-arith"
10186 else case e in #(
10187 e) : ;;
10188 esac
10189 fi
10190
10191 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wredundant-decls" | sed "$as_sed_sh"`
10192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wredundant-decls" >&5
10193 printf %s "checking whether C compiler accepts $CWFLAGS -Wredundant-decls... " >&6; }
10194 if eval test \${$as_CACHEVAR+y}
10195 then :
10196 printf %s "(cached) " >&6
10197 else case e in #(
10198 e)
10199 ax_check_save_flags=$CFLAGS
10200 CFLAGS="$CFLAGS $CWFLAGS -Wredundant-decls"
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10203 #include <time.h>
10204 int
10205 main (void)
10206 {
10207 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10208
10209 ;
10210 return 0;
10211 }
10212 _ACEOF
10213 if ac_fn_c_try_link "$LINENO"
10214 then :
10215 eval "$as_CACHEVAR=yes"
10216 else case e in #(
10217 e) eval "$as_CACHEVAR=no" ;;
10218 esac
10219 fi
10220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10221 conftest$ac_exeext conftest.$ac_ext
10222 CFLAGS=$ax_check_save_flags ;;
10223 esac
10224 fi
10225 eval ac_res=\$$as_CACHEVAR
10226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10227 printf "%s\n" "$ac_res" >&6; }
10228 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10229 then :
10230 CWFLAGS="$CWFLAGS -Wredundant-decls"
10231 else case e in #(
10232 e) : ;;
10233 esac
10234 fi
10235
10236 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wrestrict" | sed "$as_sed_sh"`
10237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wrestrict" >&5
10238 printf %s "checking whether C compiler accepts $CWFLAGS -Wrestrict... " >&6; }
10239 if eval test \${$as_CACHEVAR+y}
10240 then :
10241 printf %s "(cached) " >&6
10242 else case e in #(
10243 e)
10244 ax_check_save_flags=$CFLAGS
10245 CFLAGS="$CFLAGS $CWFLAGS -Wrestrict"
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10248 #include <time.h>
10249 int
10250 main (void)
10251 {
10252 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10253
10254 ;
10255 return 0;
10256 }
10257 _ACEOF
10258 if ac_fn_c_try_link "$LINENO"
10259 then :
10260 eval "$as_CACHEVAR=yes"
10261 else case e in #(
10262 e) eval "$as_CACHEVAR=no" ;;
10263 esac
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10266 conftest$ac_exeext conftest.$ac_ext
10267 CFLAGS=$ax_check_save_flags ;;
10268 esac
10269 fi
10270 eval ac_res=\$$as_CACHEVAR
10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10272 printf "%s\n" "$ac_res" >&6; }
10273 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10274 then :
10275 CWFLAGS="$CWFLAGS -Wrestrict"
10276 else case e in #(
10277 e) : ;;
10278 esac
10279 fi
10280
10281 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wshorten-64-to-32" | sed "$as_sed_sh"`
10282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wshorten-64-to-32" >&5
10283 printf %s "checking whether C compiler accepts $CWFLAGS -Wshorten-64-to-32... " >&6; }
10284 if eval test \${$as_CACHEVAR+y}
10285 then :
10286 printf %s "(cached) " >&6
10287 else case e in #(
10288 e)
10289 ax_check_save_flags=$CFLAGS
10290 CFLAGS="$CFLAGS $CWFLAGS -Wshorten-64-to-32"
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 #include <time.h>
10294 int
10295 main (void)
10296 {
10297 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10298
10299 ;
10300 return 0;
10301 }
10302 _ACEOF
10303 if ac_fn_c_try_link "$LINENO"
10304 then :
10305 eval "$as_CACHEVAR=yes"
10306 else case e in #(
10307 e) eval "$as_CACHEVAR=no" ;;
10308 esac
10309 fi
10310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10311 conftest$ac_exeext conftest.$ac_ext
10312 CFLAGS=$ax_check_save_flags ;;
10313 esac
10314 fi
10315 eval ac_res=\$$as_CACHEVAR
10316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10317 printf "%s\n" "$ac_res" >&6; }
10318 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10319 then :
10320 CWFLAGS="$CWFLAGS -Wshorten-64-to-32"
10321 else case e in #(
10322 e) : ;;
10323 esac
10324 fi
10325
10326 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wsometimes-uninitialized" | sed "$as_sed_sh"`
10327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wsometimes-uninitialized" >&5
10328 printf %s "checking whether C compiler accepts $CWFLAGS -Wsometimes-uninitialized... " >&6; }
10329 if eval test \${$as_CACHEVAR+y}
10330 then :
10331 printf %s "(cached) " >&6
10332 else case e in #(
10333 e)
10334 ax_check_save_flags=$CFLAGS
10335 CFLAGS="$CFLAGS $CWFLAGS -Wsometimes-uninitialized"
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337 /* end confdefs.h. */
10338 #include <time.h>
10339 int
10340 main (void)
10341 {
10342 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10343
10344 ;
10345 return 0;
10346 }
10347 _ACEOF
10348 if ac_fn_c_try_link "$LINENO"
10349 then :
10350 eval "$as_CACHEVAR=yes"
10351 else case e in #(
10352 e) eval "$as_CACHEVAR=no" ;;
10353 esac
10354 fi
10355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10356 conftest$ac_exeext conftest.$ac_ext
10357 CFLAGS=$ax_check_save_flags ;;
10358 esac
10359 fi
10360 eval ac_res=\$$as_CACHEVAR
10361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10362 printf "%s\n" "$ac_res" >&6; }
10363 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10364 then :
10365 CWFLAGS="$CWFLAGS -Wsometimes-uninitialized"
10366 else case e in #(
10367 e) : ;;
10368 esac
10369 fi
10370
10371 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | sed "$as_sed_sh"`
10372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
10373 printf %s "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
10374 if eval test \${$as_CACHEVAR+y}
10375 then :
10376 printf %s "(cached) " >&6
10377 else case e in #(
10378 e)
10379 ax_check_save_flags=$CFLAGS
10380 CFLAGS="$CFLAGS $CWFLAGS -Wstrict-prototypes"
10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h. */
10383 #include <time.h>
10384 int
10385 main (void)
10386 {
10387 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10388
10389 ;
10390 return 0;
10391 }
10392 _ACEOF
10393 if ac_fn_c_try_link "$LINENO"
10394 then :
10395 eval "$as_CACHEVAR=yes"
10396 else case e in #(
10397 e) eval "$as_CACHEVAR=no" ;;
10398 esac
10399 fi
10400 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10401 conftest$ac_exeext conftest.$ac_ext
10402 CFLAGS=$ax_check_save_flags ;;
10403 esac
10404 fi
10405 eval ac_res=\$$as_CACHEVAR
10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10407 printf "%s\n" "$ac_res" >&6; }
10408 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10409 then :
10410 CWFLAGS="$CWFLAGS -Wstrict-prototypes"
10411 else case e in #(
10412 e) : ;;
10413 esac
10414 fi
10415
10416 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | sed "$as_sed_sh"`
10417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
10418 printf %s "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
10419 if eval test \${$as_CACHEVAR+y}
10420 then :
10421 printf %s "(cached) " >&6
10422 else case e in #(
10423 e)
10424 ax_check_save_flags=$CFLAGS
10425 CFLAGS="$CFLAGS $CWFLAGS -Wswitch-enum"
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428 #include <time.h>
10429 int
10430 main (void)
10431 {
10432 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10433
10434 ;
10435 return 0;
10436 }
10437 _ACEOF
10438 if ac_fn_c_try_link "$LINENO"
10439 then :
10440 eval "$as_CACHEVAR=yes"
10441 else case e in #(
10442 e) eval "$as_CACHEVAR=no" ;;
10443 esac
10444 fi
10445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10446 conftest$ac_exeext conftest.$ac_ext
10447 CFLAGS=$ax_check_save_flags ;;
10448 esac
10449 fi
10450 eval ac_res=\$$as_CACHEVAR
10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10452 printf "%s\n" "$ac_res" >&6; }
10453 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10454 then :
10455 CWFLAGS="$CWFLAGS -Wswitch-enum"
10456 else case e in #(
10457 e) : ;;
10458 esac
10459 fi
10460
10461 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | sed "$as_sed_sh"`
10462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
10463 printf %s "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
10464 if eval test \${$as_CACHEVAR+y}
10465 then :
10466 printf %s "(cached) " >&6
10467 else case e in #(
10468 e)
10469 ax_check_save_flags=$CFLAGS
10470 CFLAGS="$CFLAGS $CWFLAGS -Wvariable-decl"
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10473 #include <time.h>
10474 int
10475 main (void)
10476 {
10477 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10478
10479 ;
10480 return 0;
10481 }
10482 _ACEOF
10483 if ac_fn_c_try_link "$LINENO"
10484 then :
10485 eval "$as_CACHEVAR=yes"
10486 else case e in #(
10487 e) eval "$as_CACHEVAR=no" ;;
10488 esac
10489 fi
10490 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10491 conftest$ac_exeext conftest.$ac_ext
10492 CFLAGS=$ax_check_save_flags ;;
10493 esac
10494 fi
10495 eval ac_res=\$$as_CACHEVAR
10496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10497 printf "%s\n" "$ac_res" >&6; }
10498 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10499 then :
10500 CWFLAGS="$CWFLAGS -Wvariable-decl"
10501 else case e in #(
10502 e) : ;;
10503 esac
10504 fi
10505
10506 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CWFLAGS -Wwrite-strings" | sed "$as_sed_sh"`
10507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wwrite-strings" >&5
10508 printf %s "checking whether C compiler accepts $CWFLAGS -Wwrite-strings... " >&6; }
10509 if eval test \${$as_CACHEVAR+y}
10510 then :
10511 printf %s "(cached) " >&6
10512 else case e in #(
10513 e)
10514 ax_check_save_flags=$CFLAGS
10515 CFLAGS="$CFLAGS $CWFLAGS -Wwrite-strings"
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10518 #include <time.h>
10519 int
10520 main (void)
10521 {
10522 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10523
10524 ;
10525 return 0;
10526 }
10527 _ACEOF
10528 if ac_fn_c_try_link "$LINENO"
10529 then :
10530 eval "$as_CACHEVAR=yes"
10531 else case e in #(
10532 e) eval "$as_CACHEVAR=no" ;;
10533 esac
10534 fi
10535 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10536 conftest$ac_exeext conftest.$ac_ext
10537 CFLAGS=$ax_check_save_flags ;;
10538 esac
10539 fi
10540 eval ac_res=\$$as_CACHEVAR
10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10542 printf "%s\n" "$ac_res" >&6; }
10543 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10544 then :
10545 CWFLAGS="$CWFLAGS -Wwrite-strings"
10546 else case e in #(
10547 e) : ;;
10548 esac
10549 fi
10550
10551
10552 if test "x$EMSCRIPTEN" = "x"
10553 then :
10554
10555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
10556 printf %s "checking whether the linker accepts -Wl,-z,relro... " >&6; }
10557 if test ${ax_cv_check_ldflags___Wl__z_relro+y}
10558 then :
10559 printf %s "(cached) " >&6
10560 else case e in #(
10561 e)
10562 ax_check_save_flags=$LDFLAGS
10563 LDFLAGS="$LDFLAGS -Wl,-z,relro"
10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10566 #include <time.h>
10567 int
10568 main (void)
10569 {
10570 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10571 ;
10572 return 0;
10573 }
10574 _ACEOF
10575 if ac_fn_c_try_link "$LINENO"
10576 then :
10577 ax_cv_check_ldflags___Wl__z_relro=yes
10578 else case e in #(
10579 e) ax_cv_check_ldflags___Wl__z_relro=no ;;
10580 esac
10581 fi
10582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10583 conftest$ac_exeext conftest.$ac_ext
10584 LDFLAGS=$ax_check_save_flags ;;
10585 esac
10586 fi
10587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
10588 printf "%s\n" "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
10589 if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes
10590 then :
10591 LDFLAGS="$LDFLAGS -Wl,-z,relro"
10592 else case e in #(
10593 e) : ;;
10594 esac
10595 fi
10596
10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
10598 printf %s "checking whether the linker accepts -Wl,-z,now... " >&6; }
10599 if test ${ax_cv_check_ldflags___Wl__z_now+y}
10600 then :
10601 printf %s "(cached) " >&6
10602 else case e in #(
10603 e)
10604 ax_check_save_flags=$LDFLAGS
10605 LDFLAGS="$LDFLAGS -Wl,-z,now"
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608 #include <time.h>
10609 int
10610 main (void)
10611 {
10612 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10613 ;
10614 return 0;
10615 }
10616 _ACEOF
10617 if ac_fn_c_try_link "$LINENO"
10618 then :
10619 ax_cv_check_ldflags___Wl__z_now=yes
10620 else case e in #(
10621 e) ax_cv_check_ldflags___Wl__z_now=no ;;
10622 esac
10623 fi
10624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10625 conftest$ac_exeext conftest.$ac_ext
10626 LDFLAGS=$ax_check_save_flags ;;
10627 esac
10628 fi
10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
10630 printf "%s\n" "$ax_cv_check_ldflags___Wl__z_now" >&6; }
10631 if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes
10632 then :
10633 LDFLAGS="$LDFLAGS -Wl,-z,now"
10634 else case e in #(
10635 e) : ;;
10636 esac
10637 fi
10638
10639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
10640 printf %s "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
10641 if test ${ax_cv_check_ldflags___Wl__z_noexecstack+y}
10642 then :
10643 printf %s "(cached) " >&6
10644 else case e in #(
10645 e)
10646 ax_check_save_flags=$LDFLAGS
10647 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10650 #include <time.h>
10651 int
10652 main (void)
10653 {
10654 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10655 ;
10656 return 0;
10657 }
10658 _ACEOF
10659 if ac_fn_c_try_link "$LINENO"
10660 then :
10661 ax_cv_check_ldflags___Wl__z_noexecstack=yes
10662 else case e in #(
10663 e) ax_cv_check_ldflags___Wl__z_noexecstack=no ;;
10664 esac
10665 fi
10666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10667 conftest$ac_exeext conftest.$ac_ext
10668 LDFLAGS=$ax_check_save_flags ;;
10669 esac
10670 fi
10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
10672 printf "%s\n" "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
10673 if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes
10674 then :
10675 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
10676 else case e in #(
10677 e) : ;;
10678 esac
10679 fi
10680
10681
10682 fi
10683
10684
10685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether segmentation violations can be caught" >&5
10686 printf %s "checking whether segmentation violations can be caught... " >&6; }
10687 if test ${ax_cv_check_cCATCHABLE_SEGV+y}
10688 then :
10689 printf %s "(cached) " >&6
10690 else case e in #(
10691 e)
10692 if test "$cross_compiling" = yes
10693 then :
10694 ax_cv_check_cCATCHABLE_SEGV=unknown
10695
10696 else case e in #(
10697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10699
10700
10701 #include <signal.h>
10702 #include <stdlib.h>
10703 static void sig(int _) { exit(0); }
10704
10705 int
10706 main (void)
10707 {
10708
10709 volatile unsigned char * volatile x = (volatile unsigned char *) malloc(8);
10710 size_t i;
10711
10712 #ifdef SIGPROT
10713 signal(SIGPROT, sig);
10714 #endif
10715 signal(SIGSEGV, sig);
10716 signal(SIGBUS, sig);
10717 #if !defined(__SANITIZE_ADDRESS__) && !defined(__EMSCRIPTEN__)
10718 *((volatile unsigned char *) -1) = 0xd0;
10719 *((volatile unsigned char *) 1) = 0xd0;
10720 for (i = 0; i < 10000000; i += 1024) { x[-i] = x[i] = (unsigned char) i; }
10721 #endif
10722 free((void *) x);
10723 exit(1)
10724
10725 ;
10726 return 0;
10727 }
10728 _ACEOF
10729 if ac_fn_c_try_run "$LINENO"
10730 then :
10731 ax_cv_check_cCATCHABLE_SEGV=yes
10732 else case e in #(
10733 e) ax_cv_check_cCATCHABLE_SEGV=no ;;
10734 esac
10735 fi
10736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10737 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10738 esac
10739 fi
10740
10741 ;;
10742 esac
10743 fi
10744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cCATCHABLE_SEGV" >&5
10745 printf "%s\n" "$ax_cv_check_cCATCHABLE_SEGV" >&6; }
10746 if test "x$ax_cv_check_cCATCHABLE_SEGV" = xyes
10747 then :
10748
10749 printf "%s\n" "#define HAVE_CATCHABLE_SEGV 1" >>confdefs.h
10750
10751 else case e in #(
10752 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On this platform, segmentation violations cannot be caught using signal handlers. This is expected if you enabled a tool such as Address Sanitizer (-fsanitize=address), but be aware that using Address Sanitizer may also significantly reduce performance." >&5
10753 printf "%s\n" "$as_me: WARNING: On this platform, segmentation violations cannot be caught using signal handlers. This is expected if you enabled a tool such as Address Sanitizer (-fsanitize=address), but be aware that using Address Sanitizer may also significantly reduce performance." >&2;}
10754 ;;
10755 esac
10756 fi
10757
10758
10759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SIGABRT can be caught" >&5
10760 printf %s "checking whether SIGABRT can be caught... " >&6; }
10761 if test ${ax_cv_check_cCATCHABLE_ABRT+y}
10762 then :
10763 printf %s "(cached) " >&6
10764 else case e in #(
10765 e)
10766 if test "$cross_compiling" = yes
10767 then :
10768 ax_cv_check_cCATCHABLE_ABRT=unknown
10769
10770 else case e in #(
10771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773
10774
10775 #include <signal.h>
10776 #include <stdlib.h>
10777
10778 #ifndef SIGABRT
10779 # error SIGABRT is not defined
10780 #endif
10781
10782 static void sigabrt_handler_3(int _)
10783 {
10784 exit(0);
10785 }
10786
10787 static void sigabrt_handler_2(int _)
10788 {
10789 signal(SIGABRT, sigabrt_handler_3);
10790 abort();
10791 exit(1);
10792 }
10793
10794 static void sigabrt_handler_1(int _)
10795 {
10796 signal(SIGABRT, sigabrt_handler_2);
10797 abort();
10798 exit(1);
10799 }
10800
10801 int
10802 main (void)
10803 {
10804
10805 signal(SIGABRT, sigabrt_handler_1);
10806 abort();
10807 exit(1);
10808
10809 ;
10810 return 0;
10811 }
10812 _ACEOF
10813 if ac_fn_c_try_run "$LINENO"
10814 then :
10815 ax_cv_check_cCATCHABLE_ABRT=yes
10816 else case e in #(
10817 e) ax_cv_check_cCATCHABLE_ABRT=no ;;
10818 esac
10819 fi
10820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10821 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10822 esac
10823 fi
10824
10825 ;;
10826 esac
10827 fi
10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cCATCHABLE_ABRT" >&5
10829 printf "%s\n" "$ax_cv_check_cCATCHABLE_ABRT" >&6; }
10830 if test "x$ax_cv_check_cCATCHABLE_ABRT" = xyes
10831 then :
10832
10833 printf "%s\n" "#define HAVE_CATCHABLE_ABRT 1" >>confdefs.h
10834
10835 else case e in #(
10836 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On this platform, SIGABRT cannot be caught using signal handlers." >&5
10837 printf "%s\n" "$as_me: WARNING: On this platform, SIGABRT cannot be caught using signal handlers." >&2;}
10838 ;;
10839 esac
10840 fi
10841
10842
10843 if test "x$with_threads" = "xyes"
10844 then :
10845
10846
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
10848 printf %s "checking for thread local storage (TLS) class... " >&6; }
10849 if test ${ac_cv_tls+y}
10850 then :
10851 printf %s "(cached) " >&6
10852 else case e in #(
10853 e) for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do
10854 case $ax_tls_keyword in #(
10855 none) :
10856 ac_cv_tls=none ; break ;; #(
10857 *) :
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860 #include <stdlib.h>
10861 int
10862 main (void)
10863 {
10864 static $ax_tls_keyword int bar;
10865
10866 ;
10867 return 0;
10868 }
10869 _ACEOF
10870 if ac_fn_c_try_compile "$LINENO"
10871 then :
10872 ac_cv_tls=$ax_tls_keyword ; break
10873 else case e in #(
10874 e) ac_cv_tls=none
10875 ;;
10876 esac
10877 fi
10878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10879 ;;
10880 esac
10881 done
10882 ;;
10883 esac
10884 fi
10885
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
10887 printf "%s\n" "$ac_cv_tls" >&6; }
10888
10889 if test "$ac_cv_tls" != "none"
10890 then :
10891
10892 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
10893
10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: thread local storage is supported" >&5
10895 printf "%s\n" "thread local storage is supported" >&6; }
10896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ftls-model=local-dynamic" >&5
10897 printf %s "checking whether C compiler accepts -ftls-model=local-dynamic... " >&6; }
10898 if test ${ax_cv_check_cflags___ftls_model_local_dynamic+y}
10899 then :
10900 printf %s "(cached) " >&6
10901 else case e in #(
10902 e)
10903 ax_check_save_flags=$CFLAGS
10904 CFLAGS="$CFLAGS -ftls-model=local-dynamic"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10907 #include <time.h>
10908 int
10909 main (void)
10910 {
10911 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
10912
10913 ;
10914 return 0;
10915 }
10916 _ACEOF
10917 if ac_fn_c_try_link "$LINENO"
10918 then :
10919 ax_cv_check_cflags___ftls_model_local_dynamic=yes
10920 else case e in #(
10921 e) ax_cv_check_cflags___ftls_model_local_dynamic=no ;;
10922 esac
10923 fi
10924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10925 conftest$ac_exeext conftest.$ac_ext
10926 CFLAGS=$ax_check_save_flags ;;
10927 esac
10928 fi
10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ftls_model_local_dynamic" >&5
10930 printf "%s\n" "$ax_cv_check_cflags___ftls_model_local_dynamic" >&6; }
10931 if test "x$ax_cv_check_cflags___ftls_model_local_dynamic" = xyes
10932 then :
10933 CFLAGS="$CFLAGS -ftls-model=local-dynamic"
10934 else case e in #(
10935 e) : ;;
10936 esac
10937 fi
10938
10939 else case e in #(
10940 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: thread local storage is not supported" >&5
10941 printf "%s\n" "thread local storage is not supported" >&6; } ;;
10942 esac
10943 fi
10944
10945 fi
10946
10947 case `pwd` in
10948 *\ * | *\ *)
10949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10950 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10951 esac
10952
10953
10954
10955 macro_version='2.5.4'
10956 macro_revision='2.5.4'
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971 ltmain=$ac_aux_dir/ltmain.sh
10972
10973 # Backslashify metacharacters that are still active within
10974 # double-quoted strings.
10975 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10976
10977 # Same as above, but do not quote variable references.
10978 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10979
10980 # Sed substitution to delay expansion of an escaped shell variable in a
10981 # double_quote_subst'ed string.
10982 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10983
10984 # Sed substitution to delay expansion of an escaped single quote.
10985 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10986
10987 # Sed substitution to avoid accidental globbing in evaled expressions
10988 no_glob_subst='s/\*/\\\*/g'
10989
10990 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10991 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10992 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10993
10994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10995 printf %s "checking how to print strings... " >&6; }
10996 # Test print first, because it will be a builtin if present.
10997 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10998 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10999 ECHO='print -r --'
11000 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11001 ECHO='printf %s\n'
11002 else
11003 # Use this function as a fallback that always works.
11004 func_fallback_echo ()
11005 {
11006 eval 'cat <<_LTECHO_EOF
11007 $1
11008 _LTECHO_EOF'
11009 }
11010 ECHO='func_fallback_echo'
11011 fi
11012
11013 # func_echo_all arg...
11014 # Invoke $ECHO with all args, space-separated.
11015 func_echo_all ()
11016 {
11017 $ECHO ""
11018 }
11019
11020 case $ECHO in
11021 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11022 printf "%s\n" "printf" >&6; } ;;
11023 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11024 printf "%s\n" "print -r" >&6; } ;;
11025 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11026 printf "%s\n" "cat" >&6; } ;;
11027 esac
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11043 printf %s "checking for a sed that does not truncate output... " >&6; }
11044 if test ${ac_cv_path_SED+y}
11045 then :
11046 printf %s "(cached) " >&6
11047 else case e in #(
11048 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11049 for ac_i in 1 2 3 4 5 6 7; do
11050 ac_script="$ac_script$as_nl$ac_script"
11051 done
11052 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11053 { ac_script=; unset ac_script;}
11054 if test -z "$SED"; then
11055 ac_path_SED_found=false
11056 # Loop through the user's path and test for each of PROGNAME-LIST
11057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058 for as_dir in $PATH
11059 do
11060 IFS=$as_save_IFS
11061 case $as_dir in #(((
11062 '') as_dir=./ ;;
11063 */) ;;
11064 *) as_dir=$as_dir/ ;;
11065 esac
11066 for ac_prog in sed gsed
11067 do
11068 for ac_exec_ext in '' $ac_executable_extensions; do
11069 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11070 as_fn_executable_p "$ac_path_SED" || continue
11071 # Check for GNU ac_path_SED and select it if it is found.
11072 # Check for GNU $ac_path_SED
11073 case `"$ac_path_SED" --version 2>&1` in #(
11074 *GNU*)
11075 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11076 #(
11077 *)
11078 ac_count=0
11079 printf %s 0123456789 >"conftest.in"
11080 while :
11081 do
11082 cat "conftest.in" "conftest.in" >"conftest.tmp"
11083 mv "conftest.tmp" "conftest.in"
11084 cp "conftest.in" "conftest.nl"
11085 printf "%s\n" '' >> "conftest.nl"
11086 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11088 as_fn_arith $ac_count + 1 && ac_count=$as_val
11089 if test $ac_count -gt ${ac_path_SED_max-0}; then
11090 # Best one so far, save it but keep looking for a better one
11091 ac_cv_path_SED="$ac_path_SED"
11092 ac_path_SED_max=$ac_count
11093 fi
11094 # 10*(2^10) chars as input seems more than enough
11095 test $ac_count -gt 10 && break
11096 done
11097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11098 esac
11099
11100 $ac_path_SED_found && break 3
11101 done
11102 done
11103 done
11104 IFS=$as_save_IFS
11105 if test -z "$ac_cv_path_SED"; then
11106 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11107 fi
11108 else
11109 ac_cv_path_SED=$SED
11110 fi
11111 ;;
11112 esac
11113 fi
11114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11115 printf "%s\n" "$ac_cv_path_SED" >&6; }
11116 SED="$ac_cv_path_SED"
11117 rm -f conftest.sed
11118
11119 test -z "$SED" && SED=sed
11120 Xsed="$SED -e 1s/^X//"
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11133 printf %s "checking for grep that handles long lines and -e... " >&6; }
11134 if test ${ac_cv_path_GREP+y}
11135 then :
11136 printf %s "(cached) " >&6
11137 else case e in #(
11138 e) if test -z "$GREP"; then
11139 ac_path_GREP_found=false
11140 # Loop through the user's path and test for each of PROGNAME-LIST
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11143 do
11144 IFS=$as_save_IFS
11145 case $as_dir in #(((
11146 '') as_dir=./ ;;
11147 */) ;;
11148 *) as_dir=$as_dir/ ;;
11149 esac
11150 for ac_prog in grep ggrep
11151 do
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11154 as_fn_executable_p "$ac_path_GREP" || continue
11155 # Check for GNU ac_path_GREP and select it if it is found.
11156 # Check for GNU $ac_path_GREP
11157 case `"$ac_path_GREP" --version 2>&1` in #(
11158 *GNU*)
11159 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11160 #(
11161 *)
11162 ac_count=0
11163 printf %s 0123456789 >"conftest.in"
11164 while :
11165 do
11166 cat "conftest.in" "conftest.in" >"conftest.tmp"
11167 mv "conftest.tmp" "conftest.in"
11168 cp "conftest.in" "conftest.nl"
11169 printf "%s\n" 'GREP' >> "conftest.nl"
11170 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11172 as_fn_arith $ac_count + 1 && ac_count=$as_val
11173 if test $ac_count -gt ${ac_path_GREP_max-0}; then
11174 # Best one so far, save it but keep looking for a better one
11175 ac_cv_path_GREP="$ac_path_GREP"
11176 ac_path_GREP_max=$ac_count
11177 fi
11178 # 10*(2^10) chars as input seems more than enough
11179 test $ac_count -gt 10 && break
11180 done
11181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11182 esac
11183
11184 $ac_path_GREP_found && break 3
11185 done
11186 done
11187 done
11188 IFS=$as_save_IFS
11189 if test -z "$ac_cv_path_GREP"; then
11190 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11191 fi
11192 else
11193 ac_cv_path_GREP=$GREP
11194 fi
11195 ;;
11196 esac
11197 fi
11198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11199 printf "%s\n" "$ac_cv_path_GREP" >&6; }
11200 GREP="$ac_cv_path_GREP"
11201
11202
11203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11204 printf %s "checking for egrep... " >&6; }
11205 if test ${ac_cv_path_EGREP+y}
11206 then :
11207 printf %s "(cached) " >&6
11208 else case e in #(
11209 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11210 then ac_cv_path_EGREP="$GREP -E"
11211 else
11212 if test -z "$EGREP"; then
11213 ac_path_EGREP_found=false
11214 # Loop through the user's path and test for each of PROGNAME-LIST
11215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11217 do
11218 IFS=$as_save_IFS
11219 case $as_dir in #(((
11220 '') as_dir=./ ;;
11221 */) ;;
11222 *) as_dir=$as_dir/ ;;
11223 esac
11224 for ac_prog in egrep
11225 do
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11228 as_fn_executable_p "$ac_path_EGREP" || continue
11229 # Check for GNU ac_path_EGREP and select it if it is found.
11230 # Check for GNU $ac_path_EGREP
11231 case `"$ac_path_EGREP" --version 2>&1` in #(
11232 *GNU*)
11233 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11234 #(
11235 *)
11236 ac_count=0
11237 printf %s 0123456789 >"conftest.in"
11238 while :
11239 do
11240 cat "conftest.in" "conftest.in" >"conftest.tmp"
11241 mv "conftest.tmp" "conftest.in"
11242 cp "conftest.in" "conftest.nl"
11243 printf "%s\n" 'EGREP' >> "conftest.nl"
11244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11246 as_fn_arith $ac_count + 1 && ac_count=$as_val
11247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11248 # Best one so far, save it but keep looking for a better one
11249 ac_cv_path_EGREP="$ac_path_EGREP"
11250 ac_path_EGREP_max=$ac_count
11251 fi
11252 # 10*(2^10) chars as input seems more than enough
11253 test $ac_count -gt 10 && break
11254 done
11255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11256 esac
11257
11258 $ac_path_EGREP_found && break 3
11259 done
11260 done
11261 done
11262 IFS=$as_save_IFS
11263 if test -z "$ac_cv_path_EGREP"; then
11264 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11265 fi
11266 else
11267 ac_cv_path_EGREP=$EGREP
11268 fi
11269
11270 fi ;;
11271 esac
11272 fi
11273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11274 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11275 EGREP="$ac_cv_path_EGREP"
11276
11277 EGREP_TRADITIONAL=$EGREP
11278 ac_cv_path_EGREP_TRADITIONAL=$EGREP
11279
11280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11281 printf %s "checking for fgrep... " >&6; }
11282 if test ${ac_cv_path_FGREP+y}
11283 then :
11284 printf %s "(cached) " >&6
11285 else case e in #(
11286 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11287 then ac_cv_path_FGREP="$GREP -F"
11288 else
11289 if test -z "$FGREP"; then
11290 ac_path_FGREP_found=false
11291 # Loop through the user's path and test for each of PROGNAME-LIST
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11294 do
11295 IFS=$as_save_IFS
11296 case $as_dir in #(((
11297 '') as_dir=./ ;;
11298 */) ;;
11299 *) as_dir=$as_dir/ ;;
11300 esac
11301 for ac_prog in fgrep
11302 do
11303 for ac_exec_ext in '' $ac_executable_extensions; do
11304 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11305 as_fn_executable_p "$ac_path_FGREP" || continue
11306 # Check for GNU ac_path_FGREP and select it if it is found.
11307 # Check for GNU $ac_path_FGREP
11308 case `"$ac_path_FGREP" --version 2>&1` in #(
11309 *GNU*)
11310 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11311 #(
11312 *)
11313 ac_count=0
11314 printf %s 0123456789 >"conftest.in"
11315 while :
11316 do
11317 cat "conftest.in" "conftest.in" >"conftest.tmp"
11318 mv "conftest.tmp" "conftest.in"
11319 cp "conftest.in" "conftest.nl"
11320 printf "%s\n" 'FGREP' >> "conftest.nl"
11321 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11323 as_fn_arith $ac_count + 1 && ac_count=$as_val
11324 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11325 # Best one so far, save it but keep looking for a better one
11326 ac_cv_path_FGREP="$ac_path_FGREP"
11327 ac_path_FGREP_max=$ac_count
11328 fi
11329 # 10*(2^10) chars as input seems more than enough
11330 test $ac_count -gt 10 && break
11331 done
11332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11333 esac
11334
11335 $ac_path_FGREP_found && break 3
11336 done
11337 done
11338 done
11339 IFS=$as_save_IFS
11340 if test -z "$ac_cv_path_FGREP"; then
11341 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11342 fi
11343 else
11344 ac_cv_path_FGREP=$FGREP
11345 fi
11346
11347 fi ;;
11348 esac
11349 fi
11350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11351 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11352 FGREP="$ac_cv_path_FGREP"
11353
11354
11355 test -z "$GREP" && GREP=grep
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375 # Check whether --with-gnu-ld was given.
11376 if test ${with_gnu_ld+y}
11377 then :
11378 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11379 else case e in #(
11380 e) with_gnu_ld=no ;;
11381 esac
11382 fi
11383
11384 ac_prog=ld
11385 if test yes = "$GCC"; then
11386 # Check if gcc -print-prog-name=ld gives a path.
11387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11388 printf %s "checking for ld used by $CC... " >&6; }
11389 case $host in
11390 *-*-mingw* | *-*-windows*)
11391 # gcc leaves a trailing carriage return, which upsets mingw
11392 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11393 *)
11394 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11395 esac
11396 case $ac_prog in
11397 # Accept absolute paths.
11398 [\\/]* | ?:[\\/]*)
11399 re_direlt='/[^/][^/]*/\.\./'
11400 # Canonicalize the pathname of ld
11401 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11402 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11403 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11404 done
11405 test -z "$LD" && LD=$ac_prog
11406 ;;
11407 "")
11408 # If it fails, then pretend we aren't using GCC.
11409 ac_prog=ld
11410 ;;
11411 *)
11412 # If it is relative, then search for the first ld in PATH.
11413 with_gnu_ld=unknown
11414 ;;
11415 esac
11416 elif test yes = "$with_gnu_ld"; then
11417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11418 printf %s "checking for GNU ld... " >&6; }
11419 else
11420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11421 printf %s "checking for non-GNU ld... " >&6; }
11422 fi
11423 if test ${lt_cv_path_LD+y}
11424 then :
11425 printf %s "(cached) " >&6
11426 else case e in #(
11427 e) if test -z "$LD"; then
11428 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11429 for ac_dir in $PATH; do
11430 IFS=$lt_save_ifs
11431 test -z "$ac_dir" && ac_dir=.
11432 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11433 lt_cv_path_LD=$ac_dir/$ac_prog
11434 # Check to see if the program is GNU ld. I'd rather use --version,
11435 # but apparently some variants of GNU ld only accept -v.
11436 # Break only if it was the GNU/non-GNU ld that we prefer.
11437 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11438 *GNU* | *'with BFD'*)
11439 test no != "$with_gnu_ld" && break
11440 ;;
11441 *)
11442 test yes != "$with_gnu_ld" && break
11443 ;;
11444 esac
11445 fi
11446 done
11447 IFS=$lt_save_ifs
11448 else
11449 lt_cv_path_LD=$LD # Let the user override the test with a path.
11450 fi ;;
11451 esac
11452 fi
11453
11454 LD=$lt_cv_path_LD
11455 if test -n "$LD"; then
11456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11457 printf "%s\n" "$LD" >&6; }
11458 else
11459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 printf "%s\n" "no" >&6; }
11461 fi
11462 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11464 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11465 if test ${lt_cv_prog_gnu_ld+y}
11466 then :
11467 printf %s "(cached) " >&6
11468 else case e in #(
11469 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
11470 case `$LD -v 2>&1 </dev/null` in
11471 *GNU* | *'with BFD'*)
11472 lt_cv_prog_gnu_ld=yes
11473 ;;
11474 *)
11475 lt_cv_prog_gnu_ld=no
11476 ;;
11477 esac ;;
11478 esac
11479 fi
11480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11481 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11482 with_gnu_ld=$lt_cv_prog_gnu_ld
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11493 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11494 if test ${lt_cv_path_NM+y}
11495 then :
11496 printf %s "(cached) " >&6
11497 else case e in #(
11498 e) if test -n "$NM"; then
11499 # Let the user override the test.
11500 lt_cv_path_NM=$NM
11501 else
11502 lt_nm_to_check=${ac_tool_prefix}nm
11503 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11504 lt_nm_to_check="$lt_nm_to_check nm"
11505 fi
11506 for lt_tmp_nm in $lt_nm_to_check; do
11507 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11508 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11509 IFS=$lt_save_ifs
11510 test -z "$ac_dir" && ac_dir=.
11511 tmp_nm=$ac_dir/$lt_tmp_nm
11512 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11513 # Check to see if the nm accepts a BSD-compat flag.
11514 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11515 # nm: unknown option "B" ignored
11516 # Tru64's nm complains that /dev/null is an invalid object file
11517 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11518 case $build_os in
11519 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
11520 *) lt_bad_file=/dev/null ;;
11521 esac
11522 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11523 *$lt_bad_file* | *'Invalid file or object type'*)
11524 lt_cv_path_NM="$tmp_nm -B"
11525 break 2
11526 ;;
11527 *)
11528 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11529 */dev/null*)
11530 lt_cv_path_NM="$tmp_nm -p"
11531 break 2
11532 ;;
11533 *)
11534 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11535 continue # so that we can try to find one that supports BSD flags
11536 ;;
11537 esac
11538 ;;
11539 esac
11540 fi
11541 done
11542 IFS=$lt_save_ifs
11543 done
11544 : ${lt_cv_path_NM=no}
11545 fi ;;
11546 esac
11547 fi
11548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11549 printf "%s\n" "$lt_cv_path_NM" >&6; }
11550 if test no != "$lt_cv_path_NM"; then
11551 NM=$lt_cv_path_NM
11552 else
11553 # Didn't find any BSD compatible name lister, look for dumpbin.
11554 if test -n "$DUMPBIN"; then :
11555 # Let the user override the test.
11556 else
11557 if test -n "$ac_tool_prefix"; then
11558 for ac_prog in dumpbin "link -dump"
11559 do
11560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11563 printf %s "checking for $ac_word... " >&6; }
11564 if test ${ac_cv_prog_DUMPBIN+y}
11565 then :
11566 printf %s "(cached) " >&6
11567 else case e in #(
11568 e) if test -n "$DUMPBIN"; then
11569 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11570 else
11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $PATH
11573 do
11574 IFS=$as_save_IFS
11575 case $as_dir in #(((
11576 '') as_dir=./ ;;
11577 */) ;;
11578 *) as_dir=$as_dir/ ;;
11579 esac
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11582 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11584 break 2
11585 fi
11586 done
11587 done
11588 IFS=$as_save_IFS
11589
11590 fi ;;
11591 esac
11592 fi
11593 DUMPBIN=$ac_cv_prog_DUMPBIN
11594 if test -n "$DUMPBIN"; then
11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11596 printf "%s\n" "$DUMPBIN" >&6; }
11597 else
11598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 printf "%s\n" "no" >&6; }
11600 fi
11601
11602
11603 test -n "$DUMPBIN" && break
11604 done
11605 fi
11606 if test -z "$DUMPBIN"; then
11607 ac_ct_DUMPBIN=$DUMPBIN
11608 for ac_prog in dumpbin "link -dump"
11609 do
11610 # Extract the first word of "$ac_prog", so it can be a program name with args.
11611 set dummy $ac_prog; ac_word=$2
11612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11613 printf %s "checking for $ac_word... " >&6; }
11614 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11615 then :
11616 printf %s "(cached) " >&6
11617 else case e in #(
11618 e) if test -n "$ac_ct_DUMPBIN"; then
11619 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11620 else
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11623 do
11624 IFS=$as_save_IFS
11625 case $as_dir in #(((
11626 '') as_dir=./ ;;
11627 */) ;;
11628 *) as_dir=$as_dir/ ;;
11629 esac
11630 for ac_exec_ext in '' $ac_executable_extensions; do
11631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11632 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11634 break 2
11635 fi
11636 done
11637 done
11638 IFS=$as_save_IFS
11639
11640 fi ;;
11641 esac
11642 fi
11643 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11644 if test -n "$ac_ct_DUMPBIN"; then
11645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11646 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11647 else
11648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649 printf "%s\n" "no" >&6; }
11650 fi
11651
11652
11653 test -n "$ac_ct_DUMPBIN" && break
11654 done
11655
11656 if test "x$ac_ct_DUMPBIN" = x; then
11657 DUMPBIN=":"
11658 else
11659 case $cross_compiling:$ac_tool_warned in
11660 yes:)
11661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11662 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11663 ac_tool_warned=yes ;;
11664 esac
11665 DUMPBIN=$ac_ct_DUMPBIN
11666 fi
11667 fi
11668
11669 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11670 *COFF*)
11671 DUMPBIN="$DUMPBIN -symbols -headers"
11672 ;;
11673 *)
11674 DUMPBIN=:
11675 ;;
11676 esac
11677 fi
11678
11679 if test : != "$DUMPBIN"; then
11680 NM=$DUMPBIN
11681 fi
11682 fi
11683 test -z "$NM" && NM=nm
11684
11685
11686
11687
11688
11689
11690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11691 printf %s "checking the name lister ($NM) interface... " >&6; }
11692 if test ${lt_cv_nm_interface+y}
11693 then :
11694 printf %s "(cached) " >&6
11695 else case e in #(
11696 e) lt_cv_nm_interface="BSD nm"
11697 echo "int some_variable = 0;" > conftest.$ac_ext
11698 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11699 (eval "$ac_compile" 2>conftest.err)
11700 cat conftest.err >&5
11701 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11702 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11703 cat conftest.err >&5
11704 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11705 cat conftest.out >&5
11706 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11707 lt_cv_nm_interface="MS dumpbin"
11708 fi
11709 rm -f conftest* ;;
11710 esac
11711 fi
11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11713 printf "%s\n" "$lt_cv_nm_interface" >&6; }
11714
11715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11716 printf %s "checking whether ln -s works... " >&6; }
11717 LN_S=$as_ln_s
11718 if test "$LN_S" = "ln -s"; then
11719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11720 printf "%s\n" "yes" >&6; }
11721 else
11722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11723 printf "%s\n" "no, using $LN_S" >&6; }
11724 fi
11725
11726 # find the maximum length of command line arguments
11727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11728 printf %s "checking the maximum length of command line arguments... " >&6; }
11729 if test ${lt_cv_sys_max_cmd_len+y}
11730 then :
11731 printf %s "(cached) " >&6
11732 else case e in #(
11733 e) i=0
11734 teststring=ABCD
11735
11736 case $build_os in
11737 msdosdjgpp*)
11738 # On DJGPP, this test can blow up pretty badly due to problems in libc
11739 # (any single argument exceeding 2000 bytes causes a buffer overrun
11740 # during glob expansion). Even if it were fixed, the result of this
11741 # check would be larger than it should be.
11742 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11743 ;;
11744
11745 gnu* | ironclad*)
11746 # Under GNU Hurd and Ironclad, this test is not required because there
11747 # is no limit to the length of command line arguments.
11748 # Libtool will interpret -1 as no limit whatsoever
11749 lt_cv_sys_max_cmd_len=-1;
11750 ;;
11751
11752 cygwin* | mingw* | windows* | cegcc*)
11753 # On Win9x/ME, this test blows up -- it succeeds, but takes
11754 # about 5 minutes as the teststring grows exponentially.
11755 # Worse, since 9x/ME are not pre-emptively multitasking,
11756 # you end up with a "frozen" computer, even though with patience
11757 # the test eventually succeeds (with a max line length of 256k).
11758 # Instead, let's just punt: use the minimum linelength reported by
11759 # all of the supported platforms: 8192 (on NT/2K/XP).
11760 lt_cv_sys_max_cmd_len=8192;
11761 ;;
11762
11763 mint*)
11764 # On MiNT this can take a long time and run out of memory.
11765 lt_cv_sys_max_cmd_len=8192;
11766 ;;
11767
11768 amigaos*)
11769 # On AmigaOS with pdksh, this test takes hours, literally.
11770 # So we just punt and use a minimum line length of 8192.
11771 lt_cv_sys_max_cmd_len=8192;
11772 ;;
11773
11774 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
11775 # This has been around since 386BSD, at least. Likely further.
11776 if test -x /sbin/sysctl; then
11777 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11778 elif test -x /usr/sbin/sysctl; then
11779 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11780 else
11781 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11782 fi
11783 # And add a safety zone
11784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11786 ;;
11787
11788 interix*)
11789 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11790 lt_cv_sys_max_cmd_len=196608
11791 ;;
11792
11793 os2*)
11794 # The test takes a long time on OS/2.
11795 lt_cv_sys_max_cmd_len=8192
11796 ;;
11797
11798 osf*)
11799 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11800 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11801 # nice to cause kernel panics so lets avoid the loop below.
11802 # First set a reasonable default.
11803 lt_cv_sys_max_cmd_len=16384
11804 #
11805 if test -x /sbin/sysconfig; then
11806 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11807 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11808 esac
11809 fi
11810 ;;
11811 sco3.2v5*)
11812 lt_cv_sys_max_cmd_len=102400
11813 ;;
11814 sysv5* | sco5v6* | sysv4.2uw2*)
11815 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11816 if test -n "$kargmax"; then
11817 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
11818 else
11819 lt_cv_sys_max_cmd_len=32768
11820 fi
11821 ;;
11822 *)
11823 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11824 if test -n "$lt_cv_sys_max_cmd_len" && \
11825 test undefined != "$lt_cv_sys_max_cmd_len"; then
11826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11828 else
11829 # Make teststring a little bigger before we do anything with it.
11830 # a 1K string should be a reasonable start.
11831 for i in 1 2 3 4 5 6 7 8; do
11832 teststring=$teststring$teststring
11833 done
11834 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11835 # If test is not a shell built-in, we'll probably end up computing a
11836 # maximum length that is only half of the actual maximum length, but
11837 # we can't tell.
11838 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11839 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11840 test 17 != "$i" # 1/2 MB should be enough
11841 do
11842 i=`expr $i + 1`
11843 teststring=$teststring$teststring
11844 done
11845 # Only check the string length outside the loop.
11846 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11847 teststring=
11848 # Add a significant safety factor because C++ compilers can tack on
11849 # massive amounts of additional arguments before passing them to the
11850 # linker. It appears as though 1/2 is a usable value.
11851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11852 fi
11853 ;;
11854 esac
11855 ;;
11856 esac
11857 fi
11858
11859 if test -n "$lt_cv_sys_max_cmd_len"; then
11860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11861 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
11862 else
11863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
11864 printf "%s\n" "none" >&6; }
11865 fi
11866 max_cmd_len=$lt_cv_sys_max_cmd_len
11867
11868
11869
11870
11871
11872
11873 : ${CP="cp -f"}
11874 : ${MV="mv -f"}
11875 : ${RM="rm -f"}
11876
11877 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11878 lt_unset=unset
11879 else
11880 lt_unset=false
11881 fi
11882
11883
11884
11885
11886
11887 # test EBCDIC or ASCII
11888 case `echo X|tr X '\101'` in
11889 A) # ASCII based system
11890 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11891 lt_SP2NL='tr \040 \012'
11892 lt_NL2SP='tr \015\012 \040\040'
11893 ;;
11894 *) # EBCDIC based system
11895 lt_SP2NL='tr \100 \n'
11896 lt_NL2SP='tr \r\n \100\100'
11897 ;;
11898 esac
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11909 printf %s "checking how to convert $build file names to $host format... " >&6; }
11910 if test ${lt_cv_to_host_file_cmd+y}
11911 then :
11912 printf %s "(cached) " >&6
11913 else case e in #(
11914 e) case $host in
11915 *-*-mingw* )
11916 case $build in
11917 *-*-mingw* | *-*-windows* ) # actually msys
11918 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11919 ;;
11920 *-*-cygwin* )
11921 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11922 ;;
11923 * ) # otherwise, assume *nix
11924 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11925 ;;
11926 esac
11927 ;;
11928 *-*-cygwin* )
11929 case $build in
11930 *-*-mingw* | *-*-windows* ) # actually msys
11931 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11932 ;;
11933 *-*-cygwin* )
11934 lt_cv_to_host_file_cmd=func_convert_file_noop
11935 ;;
11936 * ) # otherwise, assume *nix
11937 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11938 ;;
11939 esac
11940 ;;
11941 * ) # unhandled hosts (and "normal" native builds)
11942 lt_cv_to_host_file_cmd=func_convert_file_noop
11943 ;;
11944 esac
11945 ;;
11946 esac
11947 fi
11948
11949 to_host_file_cmd=$lt_cv_to_host_file_cmd
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11951 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
11952
11953
11954
11955
11956
11957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11958 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
11959 if test ${lt_cv_to_tool_file_cmd+y}
11960 then :
11961 printf %s "(cached) " >&6
11962 else case e in #(
11963 e) #assume ordinary cross tools, or native build.
11964 lt_cv_to_tool_file_cmd=func_convert_file_noop
11965 case $host in
11966 *-*-mingw* | *-*-windows* )
11967 case $build in
11968 *-*-mingw* | *-*-windows* ) # actually msys
11969 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11970 ;;
11971 esac
11972 ;;
11973 esac
11974 ;;
11975 esac
11976 fi
11977
11978 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11980 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
11981
11982
11983
11984
11985
11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11987 printf %s "checking for $LD option to reload object files... " >&6; }
11988 if test ${lt_cv_ld_reload_flag+y}
11989 then :
11990 printf %s "(cached) " >&6
11991 else case e in #(
11992 e) lt_cv_ld_reload_flag='-r' ;;
11993 esac
11994 fi
11995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11996 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
11997 reload_flag=$lt_cv_ld_reload_flag
11998 case $reload_flag in
11999 "" | " "*) ;;
12000 *) reload_flag=" $reload_flag" ;;
12001 esac
12002 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12003 case $host_os in
12004 cygwin* | mingw* | windows* | pw32* | cegcc*)
12005 if test yes != "$GCC"; then
12006 reload_cmds=false
12007 fi
12008 ;;
12009 darwin*)
12010 if test yes = "$GCC"; then
12011 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12012 else
12013 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12014 fi
12015 ;;
12016 esac
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026 # Extract the first word of "file", so it can be a program name with args.
12027 set dummy file; ac_word=$2
12028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029 printf %s "checking for $ac_word... " >&6; }
12030 if test ${ac_cv_prog_FILECMD+y}
12031 then :
12032 printf %s "(cached) " >&6
12033 else case e in #(
12034 e) if test -n "$FILECMD"; then
12035 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12036 else
12037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038 for as_dir in $PATH
12039 do
12040 IFS=$as_save_IFS
12041 case $as_dir in #(((
12042 '') as_dir=./ ;;
12043 */) ;;
12044 *) as_dir=$as_dir/ ;;
12045 esac
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12048 ac_cv_prog_FILECMD="file"
12049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12050 break 2
12051 fi
12052 done
12053 done
12054 IFS=$as_save_IFS
12055
12056 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
12057 fi ;;
12058 esac
12059 fi
12060 FILECMD=$ac_cv_prog_FILECMD
12061 if test -n "$FILECMD"; then
12062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12063 printf "%s\n" "$FILECMD" >&6; }
12064 else
12065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 printf "%s\n" "no" >&6; }
12067 fi
12068
12069
12070
12071
12072
12073
12074
12075
12076 if test -n "$ac_tool_prefix"; then
12077 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12078 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 printf %s "checking for $ac_word... " >&6; }
12081 if test ${ac_cv_prog_OBJDUMP+y}
12082 then :
12083 printf %s "(cached) " >&6
12084 else case e in #(
12085 e) if test -n "$OBJDUMP"; then
12086 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12087 else
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12090 do
12091 IFS=$as_save_IFS
12092 case $as_dir in #(((
12093 '') as_dir=./ ;;
12094 */) ;;
12095 *) as_dir=$as_dir/ ;;
12096 esac
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12099 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12101 break 2
12102 fi
12103 done
12104 done
12105 IFS=$as_save_IFS
12106
12107 fi ;;
12108 esac
12109 fi
12110 OBJDUMP=$ac_cv_prog_OBJDUMP
12111 if test -n "$OBJDUMP"; then
12112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12113 printf "%s\n" "$OBJDUMP" >&6; }
12114 else
12115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 printf "%s\n" "no" >&6; }
12117 fi
12118
12119
12120 fi
12121 if test -z "$ac_cv_prog_OBJDUMP"; then
12122 ac_ct_OBJDUMP=$OBJDUMP
12123 # Extract the first word of "objdump", so it can be a program name with args.
12124 set dummy objdump; ac_word=$2
12125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 printf %s "checking for $ac_word... " >&6; }
12127 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12128 then :
12129 printf %s "(cached) " >&6
12130 else case e in #(
12131 e) if test -n "$ac_ct_OBJDUMP"; then
12132 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12133 else
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12136 do
12137 IFS=$as_save_IFS
12138 case $as_dir in #(((
12139 '') as_dir=./ ;;
12140 */) ;;
12141 *) as_dir=$as_dir/ ;;
12142 esac
12143 for ac_exec_ext in '' $ac_executable_extensions; do
12144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12145 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12147 break 2
12148 fi
12149 done
12150 done
12151 IFS=$as_save_IFS
12152
12153 fi ;;
12154 esac
12155 fi
12156 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12157 if test -n "$ac_ct_OBJDUMP"; then
12158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12159 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12160 else
12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 printf "%s\n" "no" >&6; }
12163 fi
12164
12165 if test "x$ac_ct_OBJDUMP" = x; then
12166 OBJDUMP="false"
12167 else
12168 case $cross_compiling:$ac_tool_warned in
12169 yes:)
12170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12172 ac_tool_warned=yes ;;
12173 esac
12174 OBJDUMP=$ac_ct_OBJDUMP
12175 fi
12176 else
12177 OBJDUMP="$ac_cv_prog_OBJDUMP"
12178 fi
12179
12180 test -z "$OBJDUMP" && OBJDUMP=objdump
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12191 printf %s "checking how to recognize dependent libraries... " >&6; }
12192 if test ${lt_cv_deplibs_check_method+y}
12193 then :
12194 printf %s "(cached) " >&6
12195 else case e in #(
12196 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
12197 lt_cv_file_magic_test_file=
12198 lt_cv_deplibs_check_method='unknown'
12199 # Need to set the preceding variable on all platforms that support
12200 # interlibrary dependencies.
12201 # 'none' -- dependencies not supported.
12202 # 'unknown' -- same as none, but documents that we really don't know.
12203 # 'pass_all' -- all dependencies passed with no checks.
12204 # 'file_magic [[regex]]' -- check by looking for files in library path
12205 # that responds to the $file_magic_cmd with a given extended regex.
12206 # If you have 'file' or equivalent on your system and you're not sure
12207 # whether 'pass_all' will *always* work, you probably want this one.
12208
12209 case $host_os in
12210 aix[4-9]*)
12211 lt_cv_deplibs_check_method=pass_all
12212 ;;
12213
12214 beos*)
12215 lt_cv_deplibs_check_method=pass_all
12216 ;;
12217
12218 bsdi[45]*)
12219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12220 lt_cv_file_magic_cmd='$FILECMD -L'
12221 lt_cv_file_magic_test_file=/shlib/libc.so
12222 ;;
12223
12224 cygwin*)
12225 # func_win32_libid is a shell function defined in ltmain.sh
12226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12227 lt_cv_file_magic_cmd='func_win32_libid'
12228 ;;
12229
12230 mingw* | windows* | pw32*)
12231 # Base MSYS/MinGW do not provide the 'file' command needed by
12232 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12233 # unless we find 'file', for example because we are cross-compiling.
12234 if ( file / ) >/dev/null 2>&1; then
12235 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12236 lt_cv_file_magic_cmd='func_win32_libid'
12237 else
12238 # Keep this pattern in sync with the one in func_win32_libid.
12239 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
12240 lt_cv_file_magic_cmd='$OBJDUMP -f'
12241 fi
12242 ;;
12243
12244 cegcc*)
12245 # use the weaker test based on 'objdump'. See mingw*.
12246 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12247 lt_cv_file_magic_cmd='$OBJDUMP -f'
12248 ;;
12249
12250 darwin* | rhapsody*)
12251 lt_cv_deplibs_check_method=pass_all
12252 ;;
12253
12254 freebsd* | dragonfly* | midnightbsd*)
12255 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12256 case $host_cpu in
12257 i*86 )
12258 # Not sure whether the presence of OpenBSD here was a mistake.
12259 # Let's accept both of them until this is cleared up.
12260 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12261 lt_cv_file_magic_cmd=$FILECMD
12262 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12263 ;;
12264 esac
12265 else
12266 lt_cv_deplibs_check_method=pass_all
12267 fi
12268 ;;
12269
12270 haiku*)
12271 lt_cv_deplibs_check_method=pass_all
12272 ;;
12273
12274 hpux10.20* | hpux11*)
12275 lt_cv_file_magic_cmd=$FILECMD
12276 case $host_cpu in
12277 ia64*)
12278 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12279 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12280 ;;
12281 hppa*64*)
12282 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]'
12283 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12284 ;;
12285 *)
12286 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12287 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12288 ;;
12289 esac
12290 ;;
12291
12292 interix[3-9]*)
12293 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12295 ;;
12296
12297 irix5* | irix6* | nonstopux*)
12298 case $LD in
12299 *-32|*"-32 ") libmagic=32-bit;;
12300 *-n32|*"-n32 ") libmagic=N32;;
12301 *-64|*"-64 ") libmagic=64-bit;;
12302 *) libmagic=never-match;;
12303 esac
12304 lt_cv_deplibs_check_method=pass_all
12305 ;;
12306
12307 # This must be glibc/ELF.
12308 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12309 lt_cv_deplibs_check_method=pass_all
12310 ;;
12311
12312 *-mlibc)
12313 lt_cv_deplibs_check_method=pass_all
12314 ;;
12315
12316 netbsd* | netbsdelf*-gnu)
12317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12319 else
12320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12321 fi
12322 ;;
12323
12324 newos6*)
12325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12326 lt_cv_file_magic_cmd=$FILECMD
12327 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12328 ;;
12329
12330 *nto* | *qnx*)
12331 lt_cv_deplibs_check_method=pass_all
12332 ;;
12333
12334 openbsd*)
12335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12337 else
12338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12339 fi
12340 ;;
12341
12342 osf3* | osf4* | osf5*)
12343 lt_cv_deplibs_check_method=pass_all
12344 ;;
12345
12346 rdos*)
12347 lt_cv_deplibs_check_method=pass_all
12348 ;;
12349
12350 serenity*)
12351 lt_cv_deplibs_check_method=pass_all
12352 ;;
12353
12354 solaris*)
12355 lt_cv_deplibs_check_method=pass_all
12356 ;;
12357
12358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12359 lt_cv_deplibs_check_method=pass_all
12360 ;;
12361
12362 sysv4 | sysv4.3*)
12363 case $host_vendor in
12364 motorola)
12365 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]'
12366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12367 ;;
12368 ncr)
12369 lt_cv_deplibs_check_method=pass_all
12370 ;;
12371 sequent)
12372 lt_cv_file_magic_cmd='/bin/file'
12373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12374 ;;
12375 sni)
12376 lt_cv_file_magic_cmd='/bin/file'
12377 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12378 lt_cv_file_magic_test_file=/lib/libc.so
12379 ;;
12380 siemens)
12381 lt_cv_deplibs_check_method=pass_all
12382 ;;
12383 pc)
12384 lt_cv_deplibs_check_method=pass_all
12385 ;;
12386 esac
12387 ;;
12388
12389 tpf*)
12390 lt_cv_deplibs_check_method=pass_all
12391 ;;
12392 os2*)
12393 lt_cv_deplibs_check_method=pass_all
12394 ;;
12395 esac
12396 ;;
12397 esac
12398 fi
12399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12400 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12401
12402 file_magic_glob=
12403 want_nocaseglob=no
12404 if test "$build" = "$host"; then
12405 case $host_os in
12406 mingw* | windows* | pw32*)
12407 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12408 want_nocaseglob=yes
12409 else
12410 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12411 fi
12412 ;;
12413 esac
12414 fi
12415
12416 file_magic_cmd=$lt_cv_file_magic_cmd
12417 deplibs_check_method=$lt_cv_deplibs_check_method
12418 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441 if test -n "$ac_tool_prefix"; then
12442 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12443 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12445 printf %s "checking for $ac_word... " >&6; }
12446 if test ${ac_cv_prog_DLLTOOL+y}
12447 then :
12448 printf %s "(cached) " >&6
12449 else case e in #(
12450 e) if test -n "$DLLTOOL"; then
12451 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12452 else
12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454 for as_dir in $PATH
12455 do
12456 IFS=$as_save_IFS
12457 case $as_dir in #(((
12458 '') as_dir=./ ;;
12459 */) ;;
12460 *) as_dir=$as_dir/ ;;
12461 esac
12462 for ac_exec_ext in '' $ac_executable_extensions; do
12463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12464 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12466 break 2
12467 fi
12468 done
12469 done
12470 IFS=$as_save_IFS
12471
12472 fi ;;
12473 esac
12474 fi
12475 DLLTOOL=$ac_cv_prog_DLLTOOL
12476 if test -n "$DLLTOOL"; then
12477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12478 printf "%s\n" "$DLLTOOL" >&6; }
12479 else
12480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 printf "%s\n" "no" >&6; }
12482 fi
12483
12484
12485 fi
12486 if test -z "$ac_cv_prog_DLLTOOL"; then
12487 ac_ct_DLLTOOL=$DLLTOOL
12488 # Extract the first word of "dlltool", so it can be a program name with args.
12489 set dummy dlltool; ac_word=$2
12490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12491 printf %s "checking for $ac_word... " >&6; }
12492 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12493 then :
12494 printf %s "(cached) " >&6
12495 else case e in #(
12496 e) if test -n "$ac_ct_DLLTOOL"; then
12497 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12498 else
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12501 do
12502 IFS=$as_save_IFS
12503 case $as_dir in #(((
12504 '') as_dir=./ ;;
12505 */) ;;
12506 *) as_dir=$as_dir/ ;;
12507 esac
12508 for ac_exec_ext in '' $ac_executable_extensions; do
12509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12510 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12512 break 2
12513 fi
12514 done
12515 done
12516 IFS=$as_save_IFS
12517
12518 fi ;;
12519 esac
12520 fi
12521 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12522 if test -n "$ac_ct_DLLTOOL"; then
12523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12524 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12525 else
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 printf "%s\n" "no" >&6; }
12528 fi
12529
12530 if test "x$ac_ct_DLLTOOL" = x; then
12531 DLLTOOL="false"
12532 else
12533 case $cross_compiling:$ac_tool_warned in
12534 yes:)
12535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12536 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12537 ac_tool_warned=yes ;;
12538 esac
12539 DLLTOOL=$ac_ct_DLLTOOL
12540 fi
12541 else
12542 DLLTOOL="$ac_cv_prog_DLLTOOL"
12543 fi
12544
12545 test -z "$DLLTOOL" && DLLTOOL=dlltool
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12557 printf %s "checking how to associate runtime and link libraries... " >&6; }
12558 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12559 then :
12560 printf %s "(cached) " >&6
12561 else case e in #(
12562 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
12563
12564 case $host_os in
12565 cygwin* | mingw* | windows* | pw32* | cegcc*)
12566 # two different shell functions defined in ltmain.sh;
12567 # decide which one to use based on capabilities of $DLLTOOL
12568 case `$DLLTOOL --help 2>&1` in
12569 *--identify-strict*)
12570 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12571 ;;
12572 *)
12573 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12574 ;;
12575 esac
12576 ;;
12577 *)
12578 # fallback: assume linklib IS sharedlib
12579 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12580 ;;
12581 esac
12582 ;;
12583 esac
12584 fi
12585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12586 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12587 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12588 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12589
12590
12591
12592
12593
12594
12595
12596 if test -n "$ac_tool_prefix"; then
12597 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12598 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600 printf %s "checking for $ac_word... " >&6; }
12601 if test ${ac_cv_prog_RANLIB+y}
12602 then :
12603 printf %s "(cached) " >&6
12604 else case e in #(
12605 e) if test -n "$RANLIB"; then
12606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12607 else
12608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609 for as_dir in $PATH
12610 do
12611 IFS=$as_save_IFS
12612 case $as_dir in #(((
12613 '') as_dir=./ ;;
12614 */) ;;
12615 *) as_dir=$as_dir/ ;;
12616 esac
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12619 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12621 break 2
12622 fi
12623 done
12624 done
12625 IFS=$as_save_IFS
12626
12627 fi ;;
12628 esac
12629 fi
12630 RANLIB=$ac_cv_prog_RANLIB
12631 if test -n "$RANLIB"; then
12632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12633 printf "%s\n" "$RANLIB" >&6; }
12634 else
12635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 printf "%s\n" "no" >&6; }
12637 fi
12638
12639
12640 fi
12641 if test -z "$ac_cv_prog_RANLIB"; then
12642 ac_ct_RANLIB=$RANLIB
12643 # Extract the first word of "ranlib", so it can be a program name with args.
12644 set dummy ranlib; ac_word=$2
12645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 printf %s "checking for $ac_word... " >&6; }
12647 if test ${ac_cv_prog_ac_ct_RANLIB+y}
12648 then :
12649 printf %s "(cached) " >&6
12650 else case e in #(
12651 e) if test -n "$ac_ct_RANLIB"; then
12652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12653 else
12654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655 for as_dir in $PATH
12656 do
12657 IFS=$as_save_IFS
12658 case $as_dir in #(((
12659 '') as_dir=./ ;;
12660 */) ;;
12661 *) as_dir=$as_dir/ ;;
12662 esac
12663 for ac_exec_ext in '' $ac_executable_extensions; do
12664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12665 ac_cv_prog_ac_ct_RANLIB="ranlib"
12666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12667 break 2
12668 fi
12669 done
12670 done
12671 IFS=$as_save_IFS
12672
12673 fi ;;
12674 esac
12675 fi
12676 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12677 if test -n "$ac_ct_RANLIB"; then
12678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12679 printf "%s\n" "$ac_ct_RANLIB" >&6; }
12680 else
12681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12682 printf "%s\n" "no" >&6; }
12683 fi
12684
12685 if test "x$ac_ct_RANLIB" = x; then
12686 RANLIB=":"
12687 else
12688 case $cross_compiling:$ac_tool_warned in
12689 yes:)
12690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12691 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12692 ac_tool_warned=yes ;;
12693 esac
12694 RANLIB=$ac_ct_RANLIB
12695 fi
12696 else
12697 RANLIB="$ac_cv_prog_RANLIB"
12698 fi
12699
12700 if test -n "$ac_tool_prefix"; then
12701 for ac_prog in ar
12702 do
12703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12704 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12706 printf %s "checking for $ac_word... " >&6; }
12707 if test ${ac_cv_prog_AR+y}
12708 then :
12709 printf %s "(cached) " >&6
12710 else case e in #(
12711 e) if test -n "$AR"; then
12712 ac_cv_prog_AR="$AR" # Let the user override the test.
12713 else
12714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715 for as_dir in $PATH
12716 do
12717 IFS=$as_save_IFS
12718 case $as_dir in #(((
12719 '') as_dir=./ ;;
12720 */) ;;
12721 *) as_dir=$as_dir/ ;;
12722 esac
12723 for ac_exec_ext in '' $ac_executable_extensions; do
12724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12725 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12727 break 2
12728 fi
12729 done
12730 done
12731 IFS=$as_save_IFS
12732
12733 fi ;;
12734 esac
12735 fi
12736 AR=$ac_cv_prog_AR
12737 if test -n "$AR"; then
12738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12739 printf "%s\n" "$AR" >&6; }
12740 else
12741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 printf "%s\n" "no" >&6; }
12743 fi
12744
12745
12746 test -n "$AR" && break
12747 done
12748 fi
12749 if test -z "$AR"; then
12750 ac_ct_AR=$AR
12751 for ac_prog in ar
12752 do
12753 # Extract the first word of "$ac_prog", so it can be a program name with args.
12754 set dummy $ac_prog; ac_word=$2
12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12756 printf %s "checking for $ac_word... " >&6; }
12757 if test ${ac_cv_prog_ac_ct_AR+y}
12758 then :
12759 printf %s "(cached) " >&6
12760 else case e in #(
12761 e) if test -n "$ac_ct_AR"; then
12762 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12763 else
12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765 for as_dir in $PATH
12766 do
12767 IFS=$as_save_IFS
12768 case $as_dir in #(((
12769 '') as_dir=./ ;;
12770 */) ;;
12771 *) as_dir=$as_dir/ ;;
12772 esac
12773 for ac_exec_ext in '' $ac_executable_extensions; do
12774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12775 ac_cv_prog_ac_ct_AR="$ac_prog"
12776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12777 break 2
12778 fi
12779 done
12780 done
12781 IFS=$as_save_IFS
12782
12783 fi ;;
12784 esac
12785 fi
12786 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12787 if test -n "$ac_ct_AR"; then
12788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12789 printf "%s\n" "$ac_ct_AR" >&6; }
12790 else
12791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 printf "%s\n" "no" >&6; }
12793 fi
12794
12795
12796 test -n "$ac_ct_AR" && break
12797 done
12798
12799 if test "x$ac_ct_AR" = x; then
12800 AR="false"
12801 else
12802 case $cross_compiling:$ac_tool_warned in
12803 yes:)
12804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12805 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12806 ac_tool_warned=yes ;;
12807 esac
12808 AR=$ac_ct_AR
12809 fi
12810 fi
12811
12812 : ${AR=ar}
12813
12814
12815
12816
12817
12818
12819 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
12820 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
12821 # higher priority because that's what people were doing historically (setting
12822 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
12823 # variable obsoleted/removed.
12824
12825 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
12826 lt_ar_flags=$AR_FLAGS
12827
12828
12829
12830
12831
12832
12833 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
12834 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
12835
12836
12837
12838
12839
12840
12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12842 printf %s "checking for archiver @FILE support... " >&6; }
12843 if test ${lt_cv_ar_at_file+y}
12844 then :
12845 printf %s "(cached) " >&6
12846 else case e in #(
12847 e) lt_cv_ar_at_file=no
12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12849 /* end confdefs.h. */
12850
12851 int
12852 main (void)
12853 {
12854
12855 ;
12856 return 0;
12857 }
12858 _ACEOF
12859 if ac_fn_c_try_compile "$LINENO"
12860 then :
12861 echo conftest.$ac_objext > conftest.lst
12862 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12864 (eval $lt_ar_try) 2>&5
12865 ac_status=$?
12866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12867 test $ac_status = 0; }
12868 if test 0 -eq "$ac_status"; then
12869 # Ensure the archiver fails upon bogus file names.
12870 rm -f conftest.$ac_objext libconftest.a
12871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12872 (eval $lt_ar_try) 2>&5
12873 ac_status=$?
12874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12875 test $ac_status = 0; }
12876 if test 0 -ne "$ac_status"; then
12877 lt_cv_ar_at_file=@
12878 fi
12879 fi
12880 rm -f conftest.* libconftest.a
12881
12882 fi
12883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12884 ;;
12885 esac
12886 fi
12887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12888 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
12889
12890 if test no = "$lt_cv_ar_at_file"; then
12891 archiver_list_spec=
12892 else
12893 archiver_list_spec=$lt_cv_ar_at_file
12894 fi
12895
12896
12897
12898
12899
12900
12901
12902 if test -n "$ac_tool_prefix"; then
12903 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12904 set dummy ${ac_tool_prefix}strip; ac_word=$2
12905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906 printf %s "checking for $ac_word... " >&6; }
12907 if test ${ac_cv_prog_STRIP+y}
12908 then :
12909 printf %s "(cached) " >&6
12910 else case e in #(
12911 e) if test -n "$STRIP"; then
12912 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12913 else
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12916 do
12917 IFS=$as_save_IFS
12918 case $as_dir in #(((
12919 '') as_dir=./ ;;
12920 */) ;;
12921 *) as_dir=$as_dir/ ;;
12922 esac
12923 for ac_exec_ext in '' $ac_executable_extensions; do
12924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12925 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12927 break 2
12928 fi
12929 done
12930 done
12931 IFS=$as_save_IFS
12932
12933 fi ;;
12934 esac
12935 fi
12936 STRIP=$ac_cv_prog_STRIP
12937 if test -n "$STRIP"; then
12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12939 printf "%s\n" "$STRIP" >&6; }
12940 else
12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942 printf "%s\n" "no" >&6; }
12943 fi
12944
12945
12946 fi
12947 if test -z "$ac_cv_prog_STRIP"; then
12948 ac_ct_STRIP=$STRIP
12949 # Extract the first word of "strip", so it can be a program name with args.
12950 set dummy strip; ac_word=$2
12951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952 printf %s "checking for $ac_word... " >&6; }
12953 if test ${ac_cv_prog_ac_ct_STRIP+y}
12954 then :
12955 printf %s "(cached) " >&6
12956 else case e in #(
12957 e) if test -n "$ac_ct_STRIP"; then
12958 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12959 else
12960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12961 for as_dir in $PATH
12962 do
12963 IFS=$as_save_IFS
12964 case $as_dir in #(((
12965 '') as_dir=./ ;;
12966 */) ;;
12967 *) as_dir=$as_dir/ ;;
12968 esac
12969 for ac_exec_ext in '' $ac_executable_extensions; do
12970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12971 ac_cv_prog_ac_ct_STRIP="strip"
12972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12973 break 2
12974 fi
12975 done
12976 done
12977 IFS=$as_save_IFS
12978
12979 fi ;;
12980 esac
12981 fi
12982 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12983 if test -n "$ac_ct_STRIP"; then
12984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12985 printf "%s\n" "$ac_ct_STRIP" >&6; }
12986 else
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988 printf "%s\n" "no" >&6; }
12989 fi
12990
12991 if test "x$ac_ct_STRIP" = x; then
12992 STRIP=":"
12993 else
12994 case $cross_compiling:$ac_tool_warned in
12995 yes:)
12996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12997 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12998 ac_tool_warned=yes ;;
12999 esac
13000 STRIP=$ac_ct_STRIP
13001 fi
13002 else
13003 STRIP="$ac_cv_prog_STRIP"
13004 fi
13005
13006 test -z "$STRIP" && STRIP=:
13007
13008
13009
13010
13011
13012
13013
13014 test -z "$RANLIB" && RANLIB=:
13015
13016
13017
13018
13019
13020
13021 # Determine commands to create old-style static archives.
13022 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13023 old_postinstall_cmds='chmod 644 $oldlib'
13024 old_postuninstall_cmds=
13025
13026 if test -n "$RANLIB"; then
13027 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13028 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13029 fi
13030
13031 case $host_os in
13032 darwin*)
13033 lock_old_archive_extraction=yes ;;
13034 *)
13035 lock_old_archive_extraction=no ;;
13036 esac
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076 # If no C compiler was specified, use CC.
13077 LTCC=${LTCC-"$CC"}
13078
13079 # If no C compiler flags were specified, use CFLAGS.
13080 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13081
13082 # Allow CC to be a program name with arguments.
13083 compiler=$CC
13084
13085
13086 # Check for command to grab the raw symbol name followed by C symbol from nm.
13087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13088 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13089 if test ${lt_cv_sys_global_symbol_pipe+y}
13090 then :
13091 printf %s "(cached) " >&6
13092 else case e in #(
13093 e)
13094 # These are sane defaults that work on at least a few old systems.
13095 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13096
13097 # Character class describing NM global symbol codes.
13098 symcode='[BCDEGRST]'
13099
13100 # Regexp to match symbols that can be accessed directly from C.
13101 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13102
13103 # Define system-specific variables.
13104 case $host_os in
13105 aix*)
13106 symcode='[BCDT]'
13107 ;;
13108 cygwin* | mingw* | windows* | pw32* | cegcc*)
13109 symcode='[ABCDGISTW]'
13110 ;;
13111 hpux*)
13112 if test ia64 = "$host_cpu"; then
13113 symcode='[ABCDEGRST]'
13114 fi
13115 ;;
13116 irix* | nonstopux*)
13117 symcode='[BCDEGRST]'
13118 ;;
13119 osf*)
13120 symcode='[BCDEGQRST]'
13121 ;;
13122 solaris*)
13123 symcode='[BCDRT]'
13124 ;;
13125 sco3.2v5*)
13126 symcode='[DT]'
13127 ;;
13128 sysv4.2uw2*)
13129 symcode='[DT]'
13130 ;;
13131 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13132 symcode='[ABDT]'
13133 ;;
13134 sysv4)
13135 symcode='[DFNSTU]'
13136 ;;
13137 esac
13138
13139 # If we're using GNU nm, then use its standard symbol codes.
13140 case `$NM -V 2>&1` in
13141 *GNU* | *'with BFD'*)
13142 symcode='[ABCDGIRSTW]' ;;
13143 esac
13144
13145 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13146 # Gets list of data symbols to import.
13147 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13148 # Adjust the below global symbol transforms to fixup imported variables.
13149 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13150 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13151 lt_c_name_lib_hook="\
13152 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13153 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13154 else
13155 # Disable hooks by default.
13156 lt_cv_sys_global_symbol_to_import=
13157 lt_cdecl_hook=
13158 lt_c_name_hook=
13159 lt_c_name_lib_hook=
13160 fi
13161
13162 # Transform an extracted symbol line into a proper C declaration.
13163 # Some systems (esp. on ia64) link data and code symbols differently,
13164 # so use this general approach.
13165 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13166 $lt_cdecl_hook\
13167 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13168 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13169
13170 # Transform an extracted symbol line into symbol name and symbol address
13171 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13172 $lt_c_name_hook\
13173 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13174 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13175
13176 # Transform an extracted symbol line into symbol name with lib prefix and
13177 # symbol address.
13178 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13179 $lt_c_name_lib_hook\
13180 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13181 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13182 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13183
13184 # Handle CRLF in mingw tool chain
13185 opt_cr=
13186 case $build_os in
13187 mingw* | windows*)
13188 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13189 ;;
13190 esac
13191
13192 # Try without a prefix underscore, then with it.
13193 for ac_symprfx in "" "_"; do
13194
13195 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13196 symxfrm="\\1 $ac_symprfx\\2 \\2"
13197
13198 # Write the raw and C identifiers.
13199 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13200 # Fake it for dumpbin and say T for any non-static function,
13201 # D for any global variable and I for any imported variable.
13202 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13203 # which start with @ or ?.
13204 lt_cv_sys_global_symbol_pipe="$AWK '"\
13205 " {last_section=section; section=\$ 3};"\
13206 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13207 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13208 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13209 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13210 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13211 " \$ 0!~/External *\|/{next};"\
13212 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13213 " {if(hide[section]) next};"\
13214 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13215 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13216 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13217 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13218 " ' prfx=^$ac_symprfx"
13219 else
13220 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13221 fi
13222 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13223
13224 # Check to see that the pipe works correctly.
13225 pipe_works=no
13226
13227 rm -f conftest*
13228 cat > conftest.$ac_ext <<_LT_EOF
13229 #ifdef __cplusplus
13230 extern "C" {
13231 #endif
13232 char nm_test_var;
13233 void nm_test_func(void);
13234 void nm_test_func(void){}
13235 #ifdef __cplusplus
13236 }
13237 #endif
13238 int main(void){nm_test_var='a';nm_test_func();return(0);}
13239 _LT_EOF
13240
13241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13242 (eval $ac_compile) 2>&5
13243 ac_status=$?
13244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13245 test $ac_status = 0; }; then
13246 # Now try to grab the symbols.
13247 nlist=conftest.nm
13248 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
13249 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
13250 # Try sorting and uniquifying the output.
13251 if sort "$nlist" | uniq > "$nlist"T; then
13252 mv -f "$nlist"T "$nlist"
13253 else
13254 rm -f "$nlist"T
13255 fi
13256
13257 # Make sure that we snagged all the symbols we need.
13258 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13259 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13260 cat <<_LT_EOF > conftest.$ac_ext
13261 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13262 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13263 /* DATA imports from DLLs on WIN32 can't be const, because runtime
13264 relocations are performed -- see ld's documentation on pseudo-relocs. */
13265 # define LT_DLSYM_CONST
13266 #elif defined __osf__
13267 /* This system does not cope well with relocations in const data. */
13268 # define LT_DLSYM_CONST
13269 #else
13270 # define LT_DLSYM_CONST const
13271 #endif
13272
13273 #ifdef __cplusplus
13274 extern "C" {
13275 #endif
13276
13277 _LT_EOF
13278 # Now generate the symbol file.
13279 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13280
13281 cat <<_LT_EOF >> conftest.$ac_ext
13282
13283 /* The mapping between symbol names and symbols. */
13284 LT_DLSYM_CONST struct {
13285 const char *name;
13286 void *address;
13287 }
13288 lt__PROGRAM__LTX_preloaded_symbols[] =
13289 {
13290 { "@PROGRAM@", (void *) 0 },
13291 _LT_EOF
13292 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13293 cat <<\_LT_EOF >> conftest.$ac_ext
13294 {0, (void *) 0}
13295 };
13296
13297 /* This works around a problem in FreeBSD linker */
13298 #ifdef FREEBSD_WORKAROUND
13299 static const void *lt_preloaded_setup() {
13300 return lt__PROGRAM__LTX_preloaded_symbols;
13301 }
13302 #endif
13303
13304 #ifdef __cplusplus
13305 }
13306 #endif
13307 _LT_EOF
13308 # Now try linking the two files.
13309 mv conftest.$ac_objext conftstm.$ac_objext
13310 lt_globsym_save_LIBS=$LIBS
13311 lt_globsym_save_CFLAGS=$CFLAGS
13312 LIBS=conftstm.$ac_objext
13313 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13315 (eval $ac_link) 2>&5
13316 ac_status=$?
13317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13318 test $ac_status = 0; } && test -s conftest$ac_exeext; then
13319 pipe_works=yes
13320 fi
13321 LIBS=$lt_globsym_save_LIBS
13322 CFLAGS=$lt_globsym_save_CFLAGS
13323 else
13324 echo "cannot find nm_test_func in $nlist" >&5
13325 fi
13326 else
13327 echo "cannot find nm_test_var in $nlist" >&5
13328 fi
13329 else
13330 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13331 fi
13332 else
13333 echo "$progname: failed program was:" >&5
13334 cat conftest.$ac_ext >&5
13335 fi
13336 rm -rf conftest* conftst*
13337
13338 # Do not use the global_symbol_pipe unless it works.
13339 if test yes = "$pipe_works"; then
13340 break
13341 else
13342 lt_cv_sys_global_symbol_pipe=
13343 fi
13344 done
13345 ;;
13346 esac
13347 fi
13348
13349 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13350 lt_cv_sys_global_symbol_to_cdecl=
13351 fi
13352 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13354 printf "%s\n" "failed" >&6; }
13355 else
13356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13357 printf "%s\n" "ok" >&6; }
13358 fi
13359
13360 # Response file support.
13361 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13362 nm_file_list_spec='@'
13363 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13364 nm_file_list_spec='@'
13365 fi
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13404 printf %s "checking for sysroot... " >&6; }
13405
13406 # Check whether --with-sysroot was given.
13407 if test ${with_sysroot+y}
13408 then :
13409 withval=$with_sysroot;
13410 else case e in #(
13411 e) with_sysroot=no ;;
13412 esac
13413 fi
13414
13415
13416 lt_sysroot=
13417 case $with_sysroot in #(
13418 yes)
13419 if test yes = "$GCC"; then
13420 # Trim trailing / since we'll always append absolute paths and we want
13421 # to avoid //, if only for less confusing output for the user.
13422 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
13423 fi
13424 ;; #(
13425 /*)
13426 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13427 ;; #(
13428 no|'')
13429 ;; #(
13430 *)
13431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13432 printf "%s\n" "$with_sysroot" >&6; }
13433 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13434 ;;
13435 esac
13436
13437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13438 printf "%s\n" "${lt_sysroot:-no}" >&6; }
13439
13440
13441
13442
13443
13444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13445 printf %s "checking for a working dd... " >&6; }
13446 if test ${ac_cv_path_lt_DD+y}
13447 then :
13448 printf %s "(cached) " >&6
13449 else case e in #(
13450 e) printf 0123456789abcdef0123456789abcdef >conftest.i
13451 cat conftest.i conftest.i >conftest2.i
13452 : ${lt_DD:=$DD}
13453 if test -z "$lt_DD"; then
13454 ac_path_lt_DD_found=false
13455 # Loop through the user's path and test for each of PROGNAME-LIST
13456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457 for as_dir in $PATH
13458 do
13459 IFS=$as_save_IFS
13460 case $as_dir in #(((
13461 '') as_dir=./ ;;
13462 */) ;;
13463 *) as_dir=$as_dir/ ;;
13464 esac
13465 for ac_prog in dd
13466 do
13467 for ac_exec_ext in '' $ac_executable_extensions; do
13468 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13469 as_fn_executable_p "$ac_path_lt_DD" || continue
13470 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13471 cmp -s conftest.i conftest.out \
13472 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13473 fi
13474 $ac_path_lt_DD_found && break 3
13475 done
13476 done
13477 done
13478 IFS=$as_save_IFS
13479 if test -z "$ac_cv_path_lt_DD"; then
13480 :
13481 fi
13482 else
13483 ac_cv_path_lt_DD=$lt_DD
13484 fi
13485
13486 rm -f conftest.i conftest2.i conftest.out ;;
13487 esac
13488 fi
13489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13490 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13491
13492
13493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13494 printf %s "checking how to truncate binary pipes... " >&6; }
13495 if test ${lt_cv_truncate_bin+y}
13496 then :
13497 printf %s "(cached) " >&6
13498 else case e in #(
13499 e) printf 0123456789abcdef0123456789abcdef >conftest.i
13500 cat conftest.i conftest.i >conftest2.i
13501 lt_cv_truncate_bin=
13502 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13503 cmp -s conftest.i conftest.out \
13504 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13505 fi
13506 rm -f conftest.i conftest2.i conftest.out
13507 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
13508 esac
13509 fi
13510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13511 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13512
13513
13514
13515
13516
13517
13518
13519 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13520 func_cc_basename ()
13521 {
13522 for cc_temp in $*""; do
13523 case $cc_temp in
13524 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13525 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13526 \-*) ;;
13527 *) break;;
13528 esac
13529 done
13530 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13531 }
13532
13533 # Check whether --enable-libtool-lock was given.
13534 if test ${enable_libtool_lock+y}
13535 then :
13536 enableval=$enable_libtool_lock;
13537 fi
13538
13539 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13540
13541 # Some flags need to be propagated to the compiler or linker for good
13542 # libtool support.
13543 case $host in
13544 ia64-*-hpux*)
13545 # Find out what ABI is being produced by ac_compile, and set mode
13546 # options accordingly.
13547 echo 'int i;' > conftest.$ac_ext
13548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13549 (eval $ac_compile) 2>&5
13550 ac_status=$?
13551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13552 test $ac_status = 0; }; then
13553 case `$FILECMD conftest.$ac_objext` in
13554 *ELF-32*)
13555 HPUX_IA64_MODE=32
13556 ;;
13557 *ELF-64*)
13558 HPUX_IA64_MODE=64
13559 ;;
13560 esac
13561 fi
13562 rm -rf conftest*
13563 ;;
13564 *-*-irix6*)
13565 # Find out what ABI is being produced by ac_compile, and set linker
13566 # options accordingly.
13567 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13569 (eval $ac_compile) 2>&5
13570 ac_status=$?
13571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13572 test $ac_status = 0; }; then
13573 if test yes = "$lt_cv_prog_gnu_ld"; then
13574 case `$FILECMD conftest.$ac_objext` in
13575 *32-bit*)
13576 LD="${LD-ld} -melf32bsmip"
13577 ;;
13578 *N32*)
13579 LD="${LD-ld} -melf32bmipn32"
13580 ;;
13581 *64-bit*)
13582 LD="${LD-ld} -melf64bmip"
13583 ;;
13584 esac
13585 else
13586 case `$FILECMD conftest.$ac_objext` in
13587 *32-bit*)
13588 LD="${LD-ld} -32"
13589 ;;
13590 *N32*)
13591 LD="${LD-ld} -n32"
13592 ;;
13593 *64-bit*)
13594 LD="${LD-ld} -64"
13595 ;;
13596 esac
13597 fi
13598 fi
13599 rm -rf conftest*
13600 ;;
13601
13602 mips64*-*linux*)
13603 # Find out what ABI is being produced by ac_compile, and set linker
13604 # options accordingly.
13605 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13607 (eval $ac_compile) 2>&5
13608 ac_status=$?
13609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13610 test $ac_status = 0; }; then
13611 emul=elf
13612 case `$FILECMD conftest.$ac_objext` in
13613 *32-bit*)
13614 emul="${emul}32"
13615 ;;
13616 *64-bit*)
13617 emul="${emul}64"
13618 ;;
13619 esac
13620 case `$FILECMD conftest.$ac_objext` in
13621 *MSB*)
13622 emul="${emul}btsmip"
13623 ;;
13624 *LSB*)
13625 emul="${emul}ltsmip"
13626 ;;
13627 esac
13628 case `$FILECMD conftest.$ac_objext` in
13629 *N32*)
13630 emul="${emul}n32"
13631 ;;
13632 esac
13633 LD="${LD-ld} -m $emul"
13634 fi
13635 rm -rf conftest*
13636 ;;
13637
13638 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13639 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
13640 # Find out what ABI is being produced by ac_compile, and set linker
13641 # options accordingly. Note that the listed cases only cover the
13642 # situations where additional linker options are needed (such as when
13643 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13644 # vice versa); the common cases where no linker options are needed do
13645 # not appear in the list.
13646 echo 'int i;' > conftest.$ac_ext
13647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13648 (eval $ac_compile) 2>&5
13649 ac_status=$?
13650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13651 test $ac_status = 0; }; then
13652 case `$FILECMD conftest.o` in
13653 *32-bit*)
13654 case $host in
13655 x86_64-*kfreebsd*-gnu)
13656 LD="${LD-ld} -m elf_i386_fbsd"
13657 ;;
13658 x86_64-*linux*|x86_64-gnu*)
13659 case `$FILECMD conftest.o` in
13660 *x86-64*)
13661 LD="${LD-ld} -m elf32_x86_64"
13662 ;;
13663 *)
13664 LD="${LD-ld} -m elf_i386"
13665 ;;
13666 esac
13667 ;;
13668 powerpc64le-*linux*)
13669 LD="${LD-ld} -m elf32lppclinux"
13670 ;;
13671 powerpc64-*linux*)
13672 LD="${LD-ld} -m elf32ppclinux"
13673 ;;
13674 s390x-*linux*)
13675 LD="${LD-ld} -m elf_s390"
13676 ;;
13677 sparc64-*linux*)
13678 LD="${LD-ld} -m elf32_sparc"
13679 ;;
13680 esac
13681 ;;
13682 *64-bit*)
13683 case $host in
13684 x86_64-*kfreebsd*-gnu)
13685 LD="${LD-ld} -m elf_x86_64_fbsd"
13686 ;;
13687 x86_64-*linux*|x86_64-gnu*)
13688 LD="${LD-ld} -m elf_x86_64"
13689 ;;
13690 powerpcle-*linux*)
13691 LD="${LD-ld} -m elf64lppc"
13692 ;;
13693 powerpc-*linux*)
13694 LD="${LD-ld} -m elf64ppc"
13695 ;;
13696 s390*-*linux*|s390*-*tpf*)
13697 LD="${LD-ld} -m elf64_s390"
13698 ;;
13699 sparc*-*linux*)
13700 LD="${LD-ld} -m elf64_sparc"
13701 ;;
13702 esac
13703 ;;
13704 esac
13705 fi
13706 rm -rf conftest*
13707 ;;
13708
13709 *-*-sco3.2v5*)
13710 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13711 SAVE_CFLAGS=$CFLAGS
13712 CFLAGS="$CFLAGS -belf"
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13714 printf %s "checking whether the C compiler needs -belf... " >&6; }
13715 if test ${lt_cv_cc_needs_belf+y}
13716 then :
13717 printf %s "(cached) " >&6
13718 else case e in #(
13719 e) ac_ext=c
13720 ac_cpp='$CPP $CPPFLAGS'
13721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13724
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13727
13728 int
13729 main (void)
13730 {
13731
13732 ;
13733 return 0;
13734 }
13735 _ACEOF
13736 if ac_fn_c_try_link "$LINENO"
13737 then :
13738 lt_cv_cc_needs_belf=yes
13739 else case e in #(
13740 e) lt_cv_cc_needs_belf=no ;;
13741 esac
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13744 conftest$ac_exeext conftest.$ac_ext
13745 ac_ext=c
13746 ac_cpp='$CPP $CPPFLAGS'
13747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13750 ;;
13751 esac
13752 fi
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13754 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
13755 if test yes != "$lt_cv_cc_needs_belf"; then
13756 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13757 CFLAGS=$SAVE_CFLAGS
13758 fi
13759 ;;
13760 *-*solaris*)
13761 # Find out what ABI is being produced by ac_compile, and set linker
13762 # options accordingly.
13763 echo 'int i;' > conftest.$ac_ext
13764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13765 (eval $ac_compile) 2>&5
13766 ac_status=$?
13767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13768 test $ac_status = 0; }; then
13769 case `$FILECMD conftest.o` in
13770 *64-bit*)
13771 case $lt_cv_prog_gnu_ld in
13772 yes*)
13773 case $host in
13774 i?86-*-solaris*|x86_64-*-solaris*)
13775 LD="${LD-ld} -m elf_x86_64"
13776 ;;
13777 sparc*-*-solaris*)
13778 LD="${LD-ld} -m elf64_sparc"
13779 ;;
13780 esac
13781 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13782 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13783 LD=${LD-ld}_sol2
13784 fi
13785 ;;
13786 *)
13787 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13788 LD="${LD-ld} -64"
13789 fi
13790 ;;
13791 esac
13792 ;;
13793 esac
13794 fi
13795 rm -rf conftest*
13796 ;;
13797 esac
13798
13799 need_locks=$enable_libtool_lock
13800
13801 if test -n "$ac_tool_prefix"; then
13802 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13803 set dummy ${ac_tool_prefix}mt; ac_word=$2
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 printf %s "checking for $ac_word... " >&6; }
13806 if test ${ac_cv_prog_MANIFEST_TOOL+y}
13807 then :
13808 printf %s "(cached) " >&6
13809 else case e in #(
13810 e) if test -n "$MANIFEST_TOOL"; then
13811 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13812 else
13813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814 for as_dir in $PATH
13815 do
13816 IFS=$as_save_IFS
13817 case $as_dir in #(((
13818 '') as_dir=./ ;;
13819 */) ;;
13820 *) as_dir=$as_dir/ ;;
13821 esac
13822 for ac_exec_ext in '' $ac_executable_extensions; do
13823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13824 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13826 break 2
13827 fi
13828 done
13829 done
13830 IFS=$as_save_IFS
13831
13832 fi ;;
13833 esac
13834 fi
13835 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13836 if test -n "$MANIFEST_TOOL"; then
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13838 printf "%s\n" "$MANIFEST_TOOL" >&6; }
13839 else
13840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13841 printf "%s\n" "no" >&6; }
13842 fi
13843
13844
13845 fi
13846 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13847 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13848 # Extract the first word of "mt", so it can be a program name with args.
13849 set dummy mt; ac_word=$2
13850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13851 printf %s "checking for $ac_word... " >&6; }
13852 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
13853 then :
13854 printf %s "(cached) " >&6
13855 else case e in #(
13856 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
13857 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13858 else
13859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13860 for as_dir in $PATH
13861 do
13862 IFS=$as_save_IFS
13863 case $as_dir in #(((
13864 '') as_dir=./ ;;
13865 */) ;;
13866 *) as_dir=$as_dir/ ;;
13867 esac
13868 for ac_exec_ext in '' $ac_executable_extensions; do
13869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13870 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13872 break 2
13873 fi
13874 done
13875 done
13876 IFS=$as_save_IFS
13877
13878 fi ;;
13879 esac
13880 fi
13881 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13882 if test -n "$ac_ct_MANIFEST_TOOL"; then
13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13884 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
13885 else
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 printf "%s\n" "no" >&6; }
13888 fi
13889
13890 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13891 MANIFEST_TOOL=":"
13892 else
13893 case $cross_compiling:$ac_tool_warned in
13894 yes:)
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13896 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13897 ac_tool_warned=yes ;;
13898 esac
13899 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13900 fi
13901 else
13902 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13903 fi
13904
13905 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13907 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13908 if test ${lt_cv_path_manifest_tool+y}
13909 then :
13910 printf %s "(cached) " >&6
13911 else case e in #(
13912 e) lt_cv_path_manifest_tool=no
13913 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13914 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13915 cat conftest.err >&5
13916 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13917 lt_cv_path_manifest_tool=yes
13918 fi
13919 rm -f conftest* ;;
13920 esac
13921 fi
13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
13923 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
13924 if test yes != "$lt_cv_path_manifest_tool"; then
13925 MANIFEST_TOOL=:
13926 fi
13927
13928
13929
13930
13931
13932
13933 case $host_os in
13934 rhapsody* | darwin*)
13935 if test -n "$ac_tool_prefix"; then
13936 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13937 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13939 printf %s "checking for $ac_word... " >&6; }
13940 if test ${ac_cv_prog_DSYMUTIL+y}
13941 then :
13942 printf %s "(cached) " >&6
13943 else case e in #(
13944 e) if test -n "$DSYMUTIL"; then
13945 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13946 else
13947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13948 for as_dir in $PATH
13949 do
13950 IFS=$as_save_IFS
13951 case $as_dir in #(((
13952 '') as_dir=./ ;;
13953 */) ;;
13954 *) as_dir=$as_dir/ ;;
13955 esac
13956 for ac_exec_ext in '' $ac_executable_extensions; do
13957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13958 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13960 break 2
13961 fi
13962 done
13963 done
13964 IFS=$as_save_IFS
13965
13966 fi ;;
13967 esac
13968 fi
13969 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13970 if test -n "$DSYMUTIL"; then
13971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13972 printf "%s\n" "$DSYMUTIL" >&6; }
13973 else
13974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13975 printf "%s\n" "no" >&6; }
13976 fi
13977
13978
13979 fi
13980 if test -z "$ac_cv_prog_DSYMUTIL"; then
13981 ac_ct_DSYMUTIL=$DSYMUTIL
13982 # Extract the first word of "dsymutil", so it can be a program name with args.
13983 set dummy dsymutil; ac_word=$2
13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13985 printf %s "checking for $ac_word... " >&6; }
13986 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
13987 then :
13988 printf %s "(cached) " >&6
13989 else case e in #(
13990 e) if test -n "$ac_ct_DSYMUTIL"; then
13991 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13992 else
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13995 do
13996 IFS=$as_save_IFS
13997 case $as_dir in #(((
13998 '') as_dir=./ ;;
13999 */) ;;
14000 *) as_dir=$as_dir/ ;;
14001 esac
14002 for ac_exec_ext in '' $ac_executable_extensions; do
14003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14004 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14006 break 2
14007 fi
14008 done
14009 done
14010 IFS=$as_save_IFS
14011
14012 fi ;;
14013 esac
14014 fi
14015 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14016 if test -n "$ac_ct_DSYMUTIL"; then
14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14018 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14019 else
14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021 printf "%s\n" "no" >&6; }
14022 fi
14023
14024 if test "x$ac_ct_DSYMUTIL" = x; then
14025 DSYMUTIL=":"
14026 else
14027 case $cross_compiling:$ac_tool_warned in
14028 yes:)
14029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14030 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14031 ac_tool_warned=yes ;;
14032 esac
14033 DSYMUTIL=$ac_ct_DSYMUTIL
14034 fi
14035 else
14036 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14037 fi
14038
14039 if test -n "$ac_tool_prefix"; then
14040 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14041 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14043 printf %s "checking for $ac_word... " >&6; }
14044 if test ${ac_cv_prog_NMEDIT+y}
14045 then :
14046 printf %s "(cached) " >&6
14047 else case e in #(
14048 e) if test -n "$NMEDIT"; then
14049 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14050 else
14051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14052 for as_dir in $PATH
14053 do
14054 IFS=$as_save_IFS
14055 case $as_dir in #(((
14056 '') as_dir=./ ;;
14057 */) ;;
14058 *) as_dir=$as_dir/ ;;
14059 esac
14060 for ac_exec_ext in '' $ac_executable_extensions; do
14061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14062 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14064 break 2
14065 fi
14066 done
14067 done
14068 IFS=$as_save_IFS
14069
14070 fi ;;
14071 esac
14072 fi
14073 NMEDIT=$ac_cv_prog_NMEDIT
14074 if test -n "$NMEDIT"; then
14075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14076 printf "%s\n" "$NMEDIT" >&6; }
14077 else
14078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 printf "%s\n" "no" >&6; }
14080 fi
14081
14082
14083 fi
14084 if test -z "$ac_cv_prog_NMEDIT"; then
14085 ac_ct_NMEDIT=$NMEDIT
14086 # Extract the first word of "nmedit", so it can be a program name with args.
14087 set dummy nmedit; ac_word=$2
14088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14089 printf %s "checking for $ac_word... " >&6; }
14090 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14091 then :
14092 printf %s "(cached) " >&6
14093 else case e in #(
14094 e) if test -n "$ac_ct_NMEDIT"; then
14095 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14096 else
14097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14098 for as_dir in $PATH
14099 do
14100 IFS=$as_save_IFS
14101 case $as_dir in #(((
14102 '') as_dir=./ ;;
14103 */) ;;
14104 *) as_dir=$as_dir/ ;;
14105 esac
14106 for ac_exec_ext in '' $ac_executable_extensions; do
14107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14108 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14110 break 2
14111 fi
14112 done
14113 done
14114 IFS=$as_save_IFS
14115
14116 fi ;;
14117 esac
14118 fi
14119 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14120 if test -n "$ac_ct_NMEDIT"; then
14121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14122 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14123 else
14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125 printf "%s\n" "no" >&6; }
14126 fi
14127
14128 if test "x$ac_ct_NMEDIT" = x; then
14129 NMEDIT=":"
14130 else
14131 case $cross_compiling:$ac_tool_warned in
14132 yes:)
14133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14135 ac_tool_warned=yes ;;
14136 esac
14137 NMEDIT=$ac_ct_NMEDIT
14138 fi
14139 else
14140 NMEDIT="$ac_cv_prog_NMEDIT"
14141 fi
14142
14143 if test -n "$ac_tool_prefix"; then
14144 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14145 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14147 printf %s "checking for $ac_word... " >&6; }
14148 if test ${ac_cv_prog_LIPO+y}
14149 then :
14150 printf %s "(cached) " >&6
14151 else case e in #(
14152 e) if test -n "$LIPO"; then
14153 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14154 else
14155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156 for as_dir in $PATH
14157 do
14158 IFS=$as_save_IFS
14159 case $as_dir in #(((
14160 '') as_dir=./ ;;
14161 */) ;;
14162 *) as_dir=$as_dir/ ;;
14163 esac
14164 for ac_exec_ext in '' $ac_executable_extensions; do
14165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14166 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14168 break 2
14169 fi
14170 done
14171 done
14172 IFS=$as_save_IFS
14173
14174 fi ;;
14175 esac
14176 fi
14177 LIPO=$ac_cv_prog_LIPO
14178 if test -n "$LIPO"; then
14179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14180 printf "%s\n" "$LIPO" >&6; }
14181 else
14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14183 printf "%s\n" "no" >&6; }
14184 fi
14185
14186
14187 fi
14188 if test -z "$ac_cv_prog_LIPO"; then
14189 ac_ct_LIPO=$LIPO
14190 # Extract the first word of "lipo", so it can be a program name with args.
14191 set dummy lipo; ac_word=$2
14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14193 printf %s "checking for $ac_word... " >&6; }
14194 if test ${ac_cv_prog_ac_ct_LIPO+y}
14195 then :
14196 printf %s "(cached) " >&6
14197 else case e in #(
14198 e) if test -n "$ac_ct_LIPO"; then
14199 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14200 else
14201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14202 for as_dir in $PATH
14203 do
14204 IFS=$as_save_IFS
14205 case $as_dir in #(((
14206 '') as_dir=./ ;;
14207 */) ;;
14208 *) as_dir=$as_dir/ ;;
14209 esac
14210 for ac_exec_ext in '' $ac_executable_extensions; do
14211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14212 ac_cv_prog_ac_ct_LIPO="lipo"
14213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14214 break 2
14215 fi
14216 done
14217 done
14218 IFS=$as_save_IFS
14219
14220 fi ;;
14221 esac
14222 fi
14223 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14224 if test -n "$ac_ct_LIPO"; then
14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14226 printf "%s\n" "$ac_ct_LIPO" >&6; }
14227 else
14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14229 printf "%s\n" "no" >&6; }
14230 fi
14231
14232 if test "x$ac_ct_LIPO" = x; then
14233 LIPO=":"
14234 else
14235 case $cross_compiling:$ac_tool_warned in
14236 yes:)
14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14238 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14239 ac_tool_warned=yes ;;
14240 esac
14241 LIPO=$ac_ct_LIPO
14242 fi
14243 else
14244 LIPO="$ac_cv_prog_LIPO"
14245 fi
14246
14247 if test -n "$ac_tool_prefix"; then
14248 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14249 set dummy ${ac_tool_prefix}otool; ac_word=$2
14250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14251 printf %s "checking for $ac_word... " >&6; }
14252 if test ${ac_cv_prog_OTOOL+y}
14253 then :
14254 printf %s "(cached) " >&6
14255 else case e in #(
14256 e) if test -n "$OTOOL"; then
14257 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14258 else
14259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14260 for as_dir in $PATH
14261 do
14262 IFS=$as_save_IFS
14263 case $as_dir in #(((
14264 '') as_dir=./ ;;
14265 */) ;;
14266 *) as_dir=$as_dir/ ;;
14267 esac
14268 for ac_exec_ext in '' $ac_executable_extensions; do
14269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14270 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14272 break 2
14273 fi
14274 done
14275 done
14276 IFS=$as_save_IFS
14277
14278 fi ;;
14279 esac
14280 fi
14281 OTOOL=$ac_cv_prog_OTOOL
14282 if test -n "$OTOOL"; then
14283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14284 printf "%s\n" "$OTOOL" >&6; }
14285 else
14286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14287 printf "%s\n" "no" >&6; }
14288 fi
14289
14290
14291 fi
14292 if test -z "$ac_cv_prog_OTOOL"; then
14293 ac_ct_OTOOL=$OTOOL
14294 # Extract the first word of "otool", so it can be a program name with args.
14295 set dummy otool; ac_word=$2
14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14297 printf %s "checking for $ac_word... " >&6; }
14298 if test ${ac_cv_prog_ac_ct_OTOOL+y}
14299 then :
14300 printf %s "(cached) " >&6
14301 else case e in #(
14302 e) if test -n "$ac_ct_OTOOL"; then
14303 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14304 else
14305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14306 for as_dir in $PATH
14307 do
14308 IFS=$as_save_IFS
14309 case $as_dir in #(((
14310 '') as_dir=./ ;;
14311 */) ;;
14312 *) as_dir=$as_dir/ ;;
14313 esac
14314 for ac_exec_ext in '' $ac_executable_extensions; do
14315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14316 ac_cv_prog_ac_ct_OTOOL="otool"
14317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14318 break 2
14319 fi
14320 done
14321 done
14322 IFS=$as_save_IFS
14323
14324 fi ;;
14325 esac
14326 fi
14327 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14328 if test -n "$ac_ct_OTOOL"; then
14329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14330 printf "%s\n" "$ac_ct_OTOOL" >&6; }
14331 else
14332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14333 printf "%s\n" "no" >&6; }
14334 fi
14335
14336 if test "x$ac_ct_OTOOL" = x; then
14337 OTOOL=":"
14338 else
14339 case $cross_compiling:$ac_tool_warned in
14340 yes:)
14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14342 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14343 ac_tool_warned=yes ;;
14344 esac
14345 OTOOL=$ac_ct_OTOOL
14346 fi
14347 else
14348 OTOOL="$ac_cv_prog_OTOOL"
14349 fi
14350
14351 if test -n "$ac_tool_prefix"; then
14352 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14353 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14355 printf %s "checking for $ac_word... " >&6; }
14356 if test ${ac_cv_prog_OTOOL64+y}
14357 then :
14358 printf %s "(cached) " >&6
14359 else case e in #(
14360 e) if test -n "$OTOOL64"; then
14361 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14362 else
14363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364 for as_dir in $PATH
14365 do
14366 IFS=$as_save_IFS
14367 case $as_dir in #(((
14368 '') as_dir=./ ;;
14369 */) ;;
14370 *) as_dir=$as_dir/ ;;
14371 esac
14372 for ac_exec_ext in '' $ac_executable_extensions; do
14373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14374 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14376 break 2
14377 fi
14378 done
14379 done
14380 IFS=$as_save_IFS
14381
14382 fi ;;
14383 esac
14384 fi
14385 OTOOL64=$ac_cv_prog_OTOOL64
14386 if test -n "$OTOOL64"; then
14387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14388 printf "%s\n" "$OTOOL64" >&6; }
14389 else
14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14391 printf "%s\n" "no" >&6; }
14392 fi
14393
14394
14395 fi
14396 if test -z "$ac_cv_prog_OTOOL64"; then
14397 ac_ct_OTOOL64=$OTOOL64
14398 # Extract the first word of "otool64", so it can be a program name with args.
14399 set dummy otool64; ac_word=$2
14400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14401 printf %s "checking for $ac_word... " >&6; }
14402 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14403 then :
14404 printf %s "(cached) " >&6
14405 else case e in #(
14406 e) if test -n "$ac_ct_OTOOL64"; then
14407 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14408 else
14409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14410 for as_dir in $PATH
14411 do
14412 IFS=$as_save_IFS
14413 case $as_dir in #(((
14414 '') as_dir=./ ;;
14415 */) ;;
14416 *) as_dir=$as_dir/ ;;
14417 esac
14418 for ac_exec_ext in '' $ac_executable_extensions; do
14419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14420 ac_cv_prog_ac_ct_OTOOL64="otool64"
14421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14422 break 2
14423 fi
14424 done
14425 done
14426 IFS=$as_save_IFS
14427
14428 fi ;;
14429 esac
14430 fi
14431 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14432 if test -n "$ac_ct_OTOOL64"; then
14433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14434 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14435 else
14436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14437 printf "%s\n" "no" >&6; }
14438 fi
14439
14440 if test "x$ac_ct_OTOOL64" = x; then
14441 OTOOL64=":"
14442 else
14443 case $cross_compiling:$ac_tool_warned in
14444 yes:)
14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14446 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14447 ac_tool_warned=yes ;;
14448 esac
14449 OTOOL64=$ac_ct_OTOOL64
14450 fi
14451 else
14452 OTOOL64="$ac_cv_prog_OTOOL64"
14453 fi
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14482 printf %s "checking for -single_module linker flag... " >&6; }
14483 if test ${lt_cv_apple_cc_single_mod+y}
14484 then :
14485 printf %s "(cached) " >&6
14486 else case e in #(
14487 e) lt_cv_apple_cc_single_mod=no
14488 if test -z "$LT_MULTI_MODULE"; then
14489 # By default we will add the -single_module flag. You can override
14490 # by either setting the environment variable LT_MULTI_MODULE
14491 # non-empty at configure time, or by adding -multi_module to the
14492 # link flags.
14493 rm -rf libconftest.dylib*
14494 echo "int foo(void){return 1;}" > conftest.c
14495 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14496 -dynamiclib -Wl,-single_module conftest.c" >&5
14497 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14498 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14499 _lt_result=$?
14500 # If there is a non-empty error log, and "single_module"
14501 # appears in it, assume the flag caused a linker warning
14502 if test -s conftest.err && $GREP single_module conftest.err; then
14503 cat conftest.err >&5
14504 # Otherwise, if the output was created with a 0 exit code from
14505 # the compiler, it worked.
14506 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14507 lt_cv_apple_cc_single_mod=yes
14508 else
14509 cat conftest.err >&5
14510 fi
14511 rm -rf libconftest.dylib*
14512 rm -f conftest.*
14513 fi ;;
14514 esac
14515 fi
14516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14517 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14518
14519 # Feature test to disable chained fixups since it is not
14520 # compatible with '-undefined dynamic_lookup'
14521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
14522 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
14523 if test ${lt_cv_support_no_fixup_chains+y}
14524 then :
14525 printf %s "(cached) " >&6
14526 else case e in #(
14527 e) save_LDFLAGS=$LDFLAGS
14528 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14531
14532 int
14533 main (void)
14534 {
14535
14536 ;
14537 return 0;
14538 }
14539 _ACEOF
14540 if ac_fn_c_try_link "$LINENO"
14541 then :
14542 lt_cv_support_no_fixup_chains=yes
14543 else case e in #(
14544 e) lt_cv_support_no_fixup_chains=no
14545 ;;
14546 esac
14547 fi
14548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14549 conftest$ac_exeext conftest.$ac_ext
14550 LDFLAGS=$save_LDFLAGS
14551
14552 ;;
14553 esac
14554 fi
14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
14556 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
14557
14558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14559 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14560 if test ${lt_cv_ld_exported_symbols_list+y}
14561 then :
14562 printf %s "(cached) " >&6
14563 else case e in #(
14564 e) lt_cv_ld_exported_symbols_list=no
14565 save_LDFLAGS=$LDFLAGS
14566 echo "_main" > conftest.sym
14567 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14570
14571 int
14572 main (void)
14573 {
14574
14575 ;
14576 return 0;
14577 }
14578 _ACEOF
14579 if ac_fn_c_try_link "$LINENO"
14580 then :
14581 lt_cv_ld_exported_symbols_list=yes
14582 else case e in #(
14583 e) lt_cv_ld_exported_symbols_list=no ;;
14584 esac
14585 fi
14586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14587 conftest$ac_exeext conftest.$ac_ext
14588 LDFLAGS=$save_LDFLAGS
14589 ;;
14590 esac
14591 fi
14592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14593 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14594
14595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14596 printf %s "checking for -force_load linker flag... " >&6; }
14597 if test ${lt_cv_ld_force_load+y}
14598 then :
14599 printf %s "(cached) " >&6
14600 else case e in #(
14601 e) lt_cv_ld_force_load=no
14602 cat > conftest.c << _LT_EOF
14603 int forced_loaded() { return 2;}
14604 _LT_EOF
14605 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14606 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14607 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14608 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14609 echo "$RANLIB libconftest.a" >&5
14610 $RANLIB libconftest.a 2>&5
14611 cat > conftest.c << _LT_EOF
14612 int main(void) { return 0;}
14613 _LT_EOF
14614 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14615 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14616 _lt_result=$?
14617 if test -s conftest.err && $GREP force_load conftest.err; then
14618 cat conftest.err >&5
14619 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14620 lt_cv_ld_force_load=yes
14621 else
14622 cat conftest.err >&5
14623 fi
14624 rm -f conftest.err libconftest.a conftest conftest.c
14625 rm -rf conftest.dSYM
14626 ;;
14627 esac
14628 fi
14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14630 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14631 case $host_os in
14632 rhapsody* | darwin1.[012])
14633 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14634 darwin1.*)
14635 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14636 darwin*)
14637 case $MACOSX_DEPLOYMENT_TARGET,$host in
14638 10.[012],*|,*powerpc*-darwin[5-8]*)
14639 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14640 *)
14641 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
14642 if test yes = "$lt_cv_support_no_fixup_chains"; then
14643 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
14644 fi
14645 ;;
14646 esac
14647 ;;
14648 esac
14649 if test yes = "$lt_cv_apple_cc_single_mod"; then
14650 _lt_dar_single_mod='$single_module'
14651 fi
14652 _lt_dar_needs_single_mod=no
14653 case $host_os in
14654 rhapsody* | darwin1.*)
14655 _lt_dar_needs_single_mod=yes ;;
14656 darwin*)
14657 # When targeting Mac OS X 10.4 (darwin 8) or later,
14658 # -single_module is the default and -multi_module is unsupported.
14659 # The toolchain on macOS 10.14 (darwin 18) and later cannot
14660 # target any OS version that needs -single_module.
14661 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14662 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
14663 _lt_dar_needs_single_mod=yes ;;
14664 esac
14665 ;;
14666 esac
14667 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14668 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14669 else
14670 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14671 fi
14672 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14673 _lt_dsymutil='~$DSYMUTIL $lib || :'
14674 else
14675 _lt_dsymutil=
14676 fi
14677 ;;
14678 esac
14679
14680 # func_munge_path_list VARIABLE PATH
14681 # -----------------------------------
14682 # VARIABLE is name of variable containing _space_ separated list of
14683 # directories to be munged by the contents of PATH, which is string
14684 # having a format:
14685 # "DIR[:DIR]:"
14686 # string "DIR[ DIR]" will be prepended to VARIABLE
14687 # ":DIR[:DIR]"
14688 # string "DIR[ DIR]" will be appended to VARIABLE
14689 # "DIRP[:DIRP]::[DIRA:]DIRA"
14690 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14691 # "DIRA[ DIRA]" will be appended to VARIABLE
14692 # "DIR[:DIR]"
14693 # VARIABLE will be replaced by "DIR[ DIR]"
14694 func_munge_path_list ()
14695 {
14696 case x$2 in
14697 x)
14698 ;;
14699 *:)
14700 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14701 ;;
14702 x:*)
14703 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14704 ;;
14705 *::*)
14706 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14707 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14708 ;;
14709 *)
14710 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14711 ;;
14712 esac
14713 }
14714
14715 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14716 "
14717 if test "x$ac_cv_header_dlfcn_h" = xyes
14718 then :
14719 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14720
14721 fi
14722
14723
14724
14725
14726
14727 # Set options
14728
14729
14730
14731 enable_dlopen=no
14732
14733
14734 enable_win32_dll=no
14735
14736
14737 # Check whether --enable-shared was given.
14738 if test ${enable_shared+y}
14739 then :
14740 enableval=$enable_shared; p=${PACKAGE-default}
14741 case $enableval in
14742 yes) enable_shared=yes ;;
14743 no) enable_shared=no ;;
14744 *)
14745 enable_shared=no
14746 # Look at the argument we got. We use all the common list separators.
14747 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14748 for pkg in $enableval; do
14749 IFS=$lt_save_ifs
14750 if test "X$pkg" = "X$p"; then
14751 enable_shared=yes
14752 fi
14753 done
14754 IFS=$lt_save_ifs
14755 ;;
14756 esac
14757 else case e in #(
14758 e) enable_shared=yes ;;
14759 esac
14760 fi
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770 # Check whether --enable-static was given.
14771 if test ${enable_static+y}
14772 then :
14773 enableval=$enable_static; p=${PACKAGE-default}
14774 case $enableval in
14775 yes) enable_static=yes ;;
14776 no) enable_static=no ;;
14777 *)
14778 enable_static=no
14779 # Look at the argument we got. We use all the common list separators.
14780 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14781 for pkg in $enableval; do
14782 IFS=$lt_save_ifs
14783 if test "X$pkg" = "X$p"; then
14784 enable_static=yes
14785 fi
14786 done
14787 IFS=$lt_save_ifs
14788 ;;
14789 esac
14790 else case e in #(
14791 e) enable_static=yes ;;
14792 esac
14793 fi
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803 # Check whether --enable-pic was given.
14804 if test ${enable_pic+y}
14805 then :
14806 enableval=$enable_pic; lt_p=${PACKAGE-default}
14807 case $enableval in
14808 yes|no) pic_mode=$enableval ;;
14809 *)
14810 pic_mode=default
14811 # Look at the argument we got. We use all the common list separators.
14812 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14813 for lt_pkg in $enableval; do
14814 IFS=$lt_save_ifs
14815 if test "X$lt_pkg" = "X$lt_p"; then
14816 pic_mode=yes
14817 fi
14818 done
14819 IFS=$lt_save_ifs
14820 ;;
14821 esac
14822 else case e in #(
14823 e) # Check whether --with-pic was given.
14824 if test ${with_pic+y}
14825 then :
14826 withval=$with_pic; lt_p=${PACKAGE-default}
14827 case $withval in
14828 yes|no) pic_mode=$withval ;;
14829 *)
14830 pic_mode=default
14831 # Look at the argument we got. We use all the common list separators.
14832 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14833 for lt_pkg in $withval; do
14834 IFS=$lt_save_ifs
14835 if test "X$lt_pkg" = "X$lt_p"; then
14836 pic_mode=yes
14837 fi
14838 done
14839 IFS=$lt_save_ifs
14840 ;;
14841 esac
14842 else case e in #(
14843 e) pic_mode=default ;;
14844 esac
14845 fi
14846
14847 ;;
14848 esac
14849 fi
14850
14851
14852
14853
14854
14855
14856
14857
14858 # Check whether --enable-fast-install was given.
14859 if test ${enable_fast_install+y}
14860 then :
14861 enableval=$enable_fast_install; p=${PACKAGE-default}
14862 case $enableval in
14863 yes) enable_fast_install=yes ;;
14864 no) enable_fast_install=no ;;
14865 *)
14866 enable_fast_install=no
14867 # Look at the argument we got. We use all the common list separators.
14868 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14869 for pkg in $enableval; do
14870 IFS=$lt_save_ifs
14871 if test "X$pkg" = "X$p"; then
14872 enable_fast_install=yes
14873 fi
14874 done
14875 IFS=$lt_save_ifs
14876 ;;
14877 esac
14878 else case e in #(
14879 e) enable_fast_install=yes ;;
14880 esac
14881 fi
14882
14883
14884
14885
14886
14887
14888
14889
14890 shared_archive_member_spec=
14891 case $host,$enable_shared in
14892 power*-*-aix[5-9]*,yes)
14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14894 printf %s "checking which variant of shared library versioning to provide... " >&6; }
14895 # Check whether --enable-aix-soname was given.
14896 if test ${enable_aix_soname+y}
14897 then :
14898 enableval=$enable_aix_soname; case $enableval in
14899 aix|svr4|both)
14900 ;;
14901 *)
14902 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
14903 ;;
14904 esac
14905 lt_cv_with_aix_soname=$enable_aix_soname
14906 else case e in #(
14907 e) # Check whether --with-aix-soname was given.
14908 if test ${with_aix_soname+y}
14909 then :
14910 withval=$with_aix_soname; case $withval in
14911 aix|svr4|both)
14912 ;;
14913 *)
14914 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14915 ;;
14916 esac
14917 lt_cv_with_aix_soname=$with_aix_soname
14918 else case e in #(
14919 e) if test ${lt_cv_with_aix_soname+y}
14920 then :
14921 printf %s "(cached) " >&6
14922 else case e in #(
14923 e) lt_cv_with_aix_soname=aix ;;
14924 esac
14925 fi
14926 ;;
14927 esac
14928 fi
14929
14930 enable_aix_soname=$lt_cv_with_aix_soname ;;
14931 esac
14932 fi
14933
14934 with_aix_soname=$enable_aix_soname
14935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14936 printf "%s\n" "$with_aix_soname" >&6; }
14937 if test aix != "$with_aix_soname"; then
14938 # For the AIX way of multilib, we name the shared archive member
14939 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14940 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14941 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14942 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14943 if test 64 = "${OBJECT_MODE-32}"; then
14944 shared_archive_member_spec=shr_64
14945 else
14946 shared_archive_member_spec=shr
14947 fi
14948 fi
14949 ;;
14950 *)
14951 with_aix_soname=aix
14952 ;;
14953 esac
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964 # This can be used to rebuild libtool when needed
14965 LIBTOOL_DEPS=$ltmain
14966
14967 # Always use our own libtool.
14968 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999 test -z "$LN_S" && LN_S="ln -s"
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014 if test -n "${ZSH_VERSION+set}"; then
15015 setopt NO_GLOB_SUBST
15016 fi
15017
15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15019 printf %s "checking for objdir... " >&6; }
15020 if test ${lt_cv_objdir+y}
15021 then :
15022 printf %s "(cached) " >&6
15023 else case e in #(
15024 e) rm -f .libs 2>/dev/null
15025 mkdir .libs 2>/dev/null
15026 if test -d .libs; then
15027 lt_cv_objdir=.libs
15028 else
15029 # MS-DOS does not allow filenames that begin with a dot.
15030 lt_cv_objdir=_libs
15031 fi
15032 rmdir .libs 2>/dev/null ;;
15033 esac
15034 fi
15035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15036 printf "%s\n" "$lt_cv_objdir" >&6; }
15037 objdir=$lt_cv_objdir
15038
15039
15040
15041
15042
15043 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15044
15045
15046
15047
15048 case $host_os in
15049 aix3*)
15050 # AIX sometimes has problems with the GCC collect2 program. For some
15051 # reason, if we set the COLLECT_NAMES environment variable, the problems
15052 # vanish in a puff of smoke.
15053 if test set != "${COLLECT_NAMES+set}"; then
15054 COLLECT_NAMES=
15055 export COLLECT_NAMES
15056 fi
15057 ;;
15058 esac
15059
15060 # Global variables:
15061 ofile=libtool
15062 can_build_shared=yes
15063
15064 # All known linkers require a '.a' archive for static linking (except MSVC and
15065 # ICC, which need '.lib').
15066 libext=a
15067
15068 with_gnu_ld=$lt_cv_prog_gnu_ld
15069
15070 old_CC=$CC
15071 old_CFLAGS=$CFLAGS
15072
15073 # Set sane defaults for various variables
15074 test -z "$CC" && CC=cc
15075 test -z "$LTCC" && LTCC=$CC
15076 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15077 test -z "$LD" && LD=ld
15078 test -z "$ac_objext" && ac_objext=o
15079
15080 func_cc_basename $compiler
15081 cc_basename=$func_cc_basename_result
15082
15083
15084 # Only perform the check for file, if the check method requires it
15085 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15086 case $deplibs_check_method in
15087 file_magic*)
15088 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15090 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15091 if test ${lt_cv_path_MAGIC_CMD+y}
15092 then :
15093 printf %s "(cached) " >&6
15094 else case e in #(
15095 e) case $MAGIC_CMD in
15096 [\\/*] | ?:[\\/]*)
15097 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15098 ;;
15099 *)
15100 lt_save_MAGIC_CMD=$MAGIC_CMD
15101 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15102 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15103 for ac_dir in $ac_dummy; do
15104 IFS=$lt_save_ifs
15105 test -z "$ac_dir" && ac_dir=.
15106 if test -f "$ac_dir/${ac_tool_prefix}file"; then
15107 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15108 if test -n "$file_magic_test_file"; then
15109 case $deplibs_check_method in
15110 "file_magic "*)
15111 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15112 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15113 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15114 $EGREP "$file_magic_regex" > /dev/null; then
15115 :
15116 else
15117 cat <<_LT_EOF 1>&2
15118
15119 *** Warning: the command libtool uses to detect shared libraries,
15120 *** $file_magic_cmd, produces output that libtool cannot recognize.
15121 *** The result is that libtool may fail to recognize shared libraries
15122 *** as such. This will affect the creation of libtool libraries that
15123 *** depend on shared libraries, but programs linked with such libtool
15124 *** libraries will work regardless of this problem. Nevertheless, you
15125 *** may want to report the problem to your system manager and/or to
15126 *** [email protected]
15127
15128 _LT_EOF
15129 fi ;;
15130 esac
15131 fi
15132 break
15133 fi
15134 done
15135 IFS=$lt_save_ifs
15136 MAGIC_CMD=$lt_save_MAGIC_CMD
15137 ;;
15138 esac ;;
15139 esac
15140 fi
15141
15142 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15143 if test -n "$MAGIC_CMD"; then
15144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15145 printf "%s\n" "$MAGIC_CMD" >&6; }
15146 else
15147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15148 printf "%s\n" "no" >&6; }
15149 fi
15150
15151
15152
15153
15154
15155 if test -z "$lt_cv_path_MAGIC_CMD"; then
15156 if test -n "$ac_tool_prefix"; then
15157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15158 printf %s "checking for file... " >&6; }
15159 if test ${lt_cv_path_MAGIC_CMD+y}
15160 then :
15161 printf %s "(cached) " >&6
15162 else case e in #(
15163 e) case $MAGIC_CMD in
15164 [\\/*] | ?:[\\/]*)
15165 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15166 ;;
15167 *)
15168 lt_save_MAGIC_CMD=$MAGIC_CMD
15169 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15170 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15171 for ac_dir in $ac_dummy; do
15172 IFS=$lt_save_ifs
15173 test -z "$ac_dir" && ac_dir=.
15174 if test -f "$ac_dir/file"; then
15175 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15176 if test -n "$file_magic_test_file"; then
15177 case $deplibs_check_method in
15178 "file_magic "*)
15179 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15180 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15181 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15182 $EGREP "$file_magic_regex" > /dev/null; then
15183 :
15184 else
15185 cat <<_LT_EOF 1>&2
15186
15187 *** Warning: the command libtool uses to detect shared libraries,
15188 *** $file_magic_cmd, produces output that libtool cannot recognize.
15189 *** The result is that libtool may fail to recognize shared libraries
15190 *** as such. This will affect the creation of libtool libraries that
15191 *** depend on shared libraries, but programs linked with such libtool
15192 *** libraries will work regardless of this problem. Nevertheless, you
15193 *** may want to report the problem to your system manager and/or to
15194 *** [email protected]
15195
15196 _LT_EOF
15197 fi ;;
15198 esac
15199 fi
15200 break
15201 fi
15202 done
15203 IFS=$lt_save_ifs
15204 MAGIC_CMD=$lt_save_MAGIC_CMD
15205 ;;
15206 esac ;;
15207 esac
15208 fi
15209
15210 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15211 if test -n "$MAGIC_CMD"; then
15212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15213 printf "%s\n" "$MAGIC_CMD" >&6; }
15214 else
15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15216 printf "%s\n" "no" >&6; }
15217 fi
15218
15219
15220 else
15221 MAGIC_CMD=:
15222 fi
15223 fi
15224
15225 fi
15226 ;;
15227 esac
15228
15229 # Use C for the default configuration in the libtool script
15230
15231 lt_save_CC=$CC
15232 ac_ext=c
15233 ac_cpp='$CPP $CPPFLAGS'
15234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15237
15238
15239 # Source file extension for C test sources.
15240 ac_ext=c
15241
15242 # Object file extension for compiled C test sources.
15243 objext=o
15244 objext=$objext
15245
15246 # Code to be used in simple compile tests
15247 lt_simple_compile_test_code="int some_variable = 0;"
15248
15249 # Code to be used in simple link tests
15250 lt_simple_link_test_code='int main(void){return(0);}'
15251
15252
15253
15254
15255
15256
15257
15258 # If no C compiler was specified, use CC.
15259 LTCC=${LTCC-"$CC"}
15260
15261 # If no C compiler flags were specified, use CFLAGS.
15262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15263
15264 # Allow CC to be a program name with arguments.
15265 compiler=$CC
15266
15267 # Save the default compiler, since it gets overwritten when the other
15268 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15269 compiler_DEFAULT=$CC
15270
15271 # save warnings/boilerplate of simple test code
15272 ac_outfile=conftest.$ac_objext
15273 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15274 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15275 _lt_compiler_boilerplate=`cat conftest.err`
15276 $RM conftest*
15277
15278 ac_outfile=conftest.$ac_objext
15279 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15280 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15281 _lt_linker_boilerplate=`cat conftest.err`
15282 $RM -r conftest*
15283
15284
15285 ## CAVEAT EMPTOR:
15286 ## There is no encapsulation within the following macros, do not change
15287 ## the running order or otherwise move them around unless you know exactly
15288 ## what you are doing...
15289 if test -n "$compiler"; then
15290
15291 lt_prog_compiler_no_builtin_flag=
15292
15293 if test yes = "$GCC"; then
15294 case $cc_basename in
15295 nvcc*)
15296 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15297 *)
15298 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15299 esac
15300
15301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15302 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15303 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15304 then :
15305 printf %s "(cached) " >&6
15306 else case e in #(
15307 e) lt_cv_prog_compiler_rtti_exceptions=no
15308 ac_outfile=conftest.$ac_objext
15309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15310 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
15311 # Insert the option either (1) after the last *FLAGS variable, or
15312 # (2) before a word containing "conftest.", or (3) at the end.
15313 # Note that $ac_compile itself does not contain backslashes and begins
15314 # with a dollar sign (not a hyphen), so the echo should work correctly.
15315 # The option is referenced via a variable to avoid confusing sed.
15316 lt_compile=`echo "$ac_compile" | $SED \
15317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15319 -e 's:$: $lt_compiler_flag:'`
15320 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15321 (eval "$lt_compile" 2>conftest.err)
15322 ac_status=$?
15323 cat conftest.err >&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 if (exit $ac_status) && test -s "$ac_outfile"; then
15326 # The compiler can only warn and ignore the option if not recognized
15327 # So say no if there are warnings other than the usual output.
15328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15330 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15331 lt_cv_prog_compiler_rtti_exceptions=yes
15332 fi
15333 fi
15334 $RM conftest*
15335 ;;
15336 esac
15337 fi
15338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15339 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15340
15341 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15342 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15343 else
15344 :
15345 fi
15346
15347 fi
15348
15349
15350
15351
15352
15353
15354 lt_prog_compiler_wl=
15355 lt_prog_compiler_pic=
15356 lt_prog_compiler_static=
15357
15358
15359 if test yes = "$GCC"; then
15360 lt_prog_compiler_wl='-Wl,'
15361 lt_prog_compiler_static='-static'
15362
15363 case $host_os in
15364 aix*)
15365 # All AIX code is PIC.
15366 if test ia64 = "$host_cpu"; then
15367 # AIX 5 now supports IA64 processor
15368 lt_prog_compiler_static='-Bstatic'
15369 fi
15370 lt_prog_compiler_pic='-fPIC'
15371 ;;
15372
15373 amigaos*)
15374 case $host_cpu in
15375 powerpc)
15376 # see comment about AmigaOS4 .so support
15377 lt_prog_compiler_pic='-fPIC'
15378 ;;
15379 m68k)
15380 # FIXME: we need at least 68020 code to build shared libraries, but
15381 # adding the '-m68020' flag to GCC prevents building anything better,
15382 # like '-m68040'.
15383 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15384 ;;
15385 esac
15386 ;;
15387
15388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15389 # PIC is the default for these OSes.
15390 ;;
15391
15392 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
15393 # This hack is so that the source file can tell whether it is being
15394 # built for inclusion in a dll (and should export symbols for example).
15395 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15396 # (--disable-auto-import) libraries
15397 lt_prog_compiler_pic='-DDLL_EXPORT'
15398 case $host_os in
15399 os2*)
15400 lt_prog_compiler_static='$wl-static'
15401 ;;
15402 esac
15403 ;;
15404
15405 darwin* | rhapsody*)
15406 # PIC is the default on this platform
15407 # Common symbols not allowed in MH_DYLIB files
15408 lt_prog_compiler_pic='-fno-common'
15409 ;;
15410
15411 haiku*)
15412 # PIC is the default for Haiku.
15413 # The "-static" flag exists, but is broken.
15414 lt_prog_compiler_static=
15415 ;;
15416
15417 hpux*)
15418 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15419 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15420 # sets the default TLS model and affects inlining.
15421 case $host_cpu in
15422 hppa*64*)
15423 # +Z the default
15424 ;;
15425 *)
15426 lt_prog_compiler_pic='-fPIC'
15427 ;;
15428 esac
15429 ;;
15430
15431 interix[3-9]*)
15432 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15433 # Instead, we relocate shared libraries at runtime.
15434 ;;
15435
15436 msdosdjgpp*)
15437 # Just because we use GCC doesn't mean we suddenly get shared libraries
15438 # on systems that don't support them.
15439 lt_prog_compiler_can_build_shared=no
15440 enable_shared=no
15441 ;;
15442
15443 *nto* | *qnx*)
15444 # QNX uses GNU C++, but need to define -shared option too, otherwise
15445 # it will coredump.
15446 lt_prog_compiler_pic='-fPIC -shared'
15447 ;;
15448
15449 sysv4*MP*)
15450 if test -d /usr/nec; then
15451 lt_prog_compiler_pic=-Kconform_pic
15452 fi
15453 ;;
15454
15455 *)
15456 lt_prog_compiler_pic='-fPIC'
15457 ;;
15458 esac
15459
15460 case $cc_basename in
15461 nvcc*) # Cuda Compiler Driver 2.2
15462 lt_prog_compiler_wl='-Xlinker '
15463 if test -n "$lt_prog_compiler_pic"; then
15464 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15465 fi
15466 ;;
15467 esac
15468 else
15469 # PORTME Check for flag to pass linker flags through the system compiler.
15470 case $host_os in
15471 aix*)
15472 lt_prog_compiler_wl='-Wl,'
15473 if test ia64 = "$host_cpu"; then
15474 # AIX 5 now supports IA64 processor
15475 lt_prog_compiler_static='-Bstatic'
15476 else
15477 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15478 fi
15479 ;;
15480
15481 darwin* | rhapsody*)
15482 # PIC is the default on this platform
15483 # Common symbols not allowed in MH_DYLIB files
15484 lt_prog_compiler_pic='-fno-common'
15485 case $cc_basename in
15486 nagfor*)
15487 # NAG Fortran compiler
15488 lt_prog_compiler_wl='-Wl,-Wl,,'
15489 lt_prog_compiler_pic='-PIC'
15490 lt_prog_compiler_static='-Bstatic'
15491 ;;
15492 esac
15493 ;;
15494
15495 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
15496 # This hack is so that the source file can tell whether it is being
15497 # built for inclusion in a dll (and should export symbols for example).
15498 lt_prog_compiler_pic='-DDLL_EXPORT'
15499 case $host_os in
15500 os2*)
15501 lt_prog_compiler_static='$wl-static'
15502 ;;
15503 esac
15504 ;;
15505
15506 hpux9* | hpux10* | hpux11*)
15507 lt_prog_compiler_wl='-Wl,'
15508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15509 # not for PA HP-UX.
15510 case $host_cpu in
15511 hppa*64*|ia64*)
15512 # +Z the default
15513 ;;
15514 *)
15515 lt_prog_compiler_pic='+Z'
15516 ;;
15517 esac
15518 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15519 lt_prog_compiler_static='$wl-a ${wl}archive'
15520 ;;
15521
15522 irix5* | irix6* | nonstopux*)
15523 lt_prog_compiler_wl='-Wl,'
15524 # PIC (with -KPIC) is the default.
15525 lt_prog_compiler_static='-non_shared'
15526 ;;
15527
15528 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15529 case $cc_basename in
15530 # old Intel for x86_64, which still supported -KPIC.
15531 ecc*)
15532 lt_prog_compiler_wl='-Wl,'
15533 lt_prog_compiler_pic='-KPIC'
15534 lt_prog_compiler_static='-static'
15535 ;;
15536 *flang* | ftn | f18* | f95*)
15537 # Flang compiler.
15538 lt_prog_compiler_wl='-Wl,'
15539 lt_prog_compiler_pic='-fPIC'
15540 lt_prog_compiler_static='-static'
15541 ;;
15542 # icc used to be incompatible with GCC.
15543 # ICC 10 doesn't accept -KPIC any more.
15544 icc* | ifort*)
15545 lt_prog_compiler_wl='-Wl,'
15546 lt_prog_compiler_pic='-fPIC'
15547 lt_prog_compiler_static='-static'
15548 ;;
15549 # Lahey Fortran 8.1.
15550 lf95*)
15551 lt_prog_compiler_wl='-Wl,'
15552 lt_prog_compiler_pic='--shared'
15553 lt_prog_compiler_static='--static'
15554 ;;
15555 nagfor*)
15556 # NAG Fortran compiler
15557 lt_prog_compiler_wl='-Wl,-Wl,,'
15558 lt_prog_compiler_pic='-PIC'
15559 lt_prog_compiler_static='-Bstatic'
15560 ;;
15561 tcc*)
15562 # Fabrice Bellard et al's Tiny C Compiler
15563 lt_prog_compiler_wl='-Wl,'
15564 lt_prog_compiler_pic='-fPIC'
15565 lt_prog_compiler_static='-static'
15566 ;;
15567 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15568 # Portland Group compilers (*not* the Pentium gcc compiler,
15569 # which looks to be a dead project)
15570 lt_prog_compiler_wl='-Wl,'
15571 lt_prog_compiler_pic='-fpic'
15572 lt_prog_compiler_static='-Bstatic'
15573 ;;
15574 ccc*)
15575 lt_prog_compiler_wl='-Wl,'
15576 # All Alpha code is PIC.
15577 lt_prog_compiler_static='-non_shared'
15578 ;;
15579 xl* | bgxl* | bgf* | mpixl*)
15580 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15581 lt_prog_compiler_wl='-Wl,'
15582 lt_prog_compiler_pic='-qpic'
15583 lt_prog_compiler_static='-qstaticlink'
15584 ;;
15585 *)
15586 case `$CC -V 2>&1 | $SED 5q` in
15587 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15588 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15589 lt_prog_compiler_pic='-KPIC'
15590 lt_prog_compiler_static='-Bstatic'
15591 lt_prog_compiler_wl=''
15592 ;;
15593 *Sun\ F* | *Sun*Fortran*)
15594 lt_prog_compiler_pic='-KPIC'
15595 lt_prog_compiler_static='-Bstatic'
15596 lt_prog_compiler_wl='-Qoption ld '
15597 ;;
15598 *Sun\ C*)
15599 # Sun C 5.9
15600 lt_prog_compiler_pic='-KPIC'
15601 lt_prog_compiler_static='-Bstatic'
15602 lt_prog_compiler_wl='-Wl,'
15603 ;;
15604 *Intel*\ [CF]*Compiler*)
15605 lt_prog_compiler_wl='-Wl,'
15606 lt_prog_compiler_pic='-fPIC'
15607 lt_prog_compiler_static='-static'
15608 ;;
15609 *Portland\ Group*)
15610 lt_prog_compiler_wl='-Wl,'
15611 lt_prog_compiler_pic='-fpic'
15612 lt_prog_compiler_static='-Bstatic'
15613 ;;
15614 esac
15615 ;;
15616 esac
15617 ;;
15618
15619 newsos6)
15620 lt_prog_compiler_pic='-KPIC'
15621 lt_prog_compiler_static='-Bstatic'
15622 ;;
15623
15624 *-mlibc)
15625 lt_prog_compiler_wl='-Wl,'
15626 lt_prog_compiler_pic='-fPIC'
15627 lt_prog_compiler_static='-static'
15628 ;;
15629
15630 *nto* | *qnx*)
15631 # QNX uses GNU C++, but need to define -shared option too, otherwise
15632 # it will coredump.
15633 lt_prog_compiler_pic='-fPIC -shared'
15634 ;;
15635
15636 osf3* | osf4* | osf5*)
15637 lt_prog_compiler_wl='-Wl,'
15638 # All OSF/1 code is PIC.
15639 lt_prog_compiler_static='-non_shared'
15640 ;;
15641
15642 rdos*)
15643 lt_prog_compiler_static='-non_shared'
15644 ;;
15645
15646 serenity*)
15647 ;;
15648
15649 solaris*)
15650 lt_prog_compiler_pic='-KPIC'
15651 lt_prog_compiler_static='-Bstatic'
15652 case $cc_basename in
15653 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15654 lt_prog_compiler_wl='-Qoption ld ';;
15655 *)
15656 lt_prog_compiler_wl='-Wl,';;
15657 esac
15658 ;;
15659
15660 sunos4*)
15661 lt_prog_compiler_wl='-Qoption ld '
15662 lt_prog_compiler_pic='-PIC'
15663 lt_prog_compiler_static='-Bstatic'
15664 ;;
15665
15666 sysv4 | sysv4.2uw2* | sysv4.3*)
15667 lt_prog_compiler_wl='-Wl,'
15668 lt_prog_compiler_pic='-KPIC'
15669 lt_prog_compiler_static='-Bstatic'
15670 ;;
15671
15672 sysv4*MP*)
15673 if test -d /usr/nec; then
15674 lt_prog_compiler_pic='-Kconform_pic'
15675 lt_prog_compiler_static='-Bstatic'
15676 fi
15677 ;;
15678
15679 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15680 lt_prog_compiler_wl='-Wl,'
15681 lt_prog_compiler_pic='-KPIC'
15682 lt_prog_compiler_static='-Bstatic'
15683 ;;
15684
15685 unicos*)
15686 lt_prog_compiler_wl='-Wl,'
15687 lt_prog_compiler_can_build_shared=no
15688 ;;
15689
15690 uts4*)
15691 lt_prog_compiler_pic='-pic'
15692 lt_prog_compiler_static='-Bstatic'
15693 ;;
15694
15695 *)
15696 lt_prog_compiler_can_build_shared=no
15697 ;;
15698 esac
15699 fi
15700
15701 case $host_os in
15702 # For platforms that do not support PIC, -DPIC is meaningless:
15703 *djgpp*)
15704 lt_prog_compiler_pic=
15705 ;;
15706 *)
15707 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15708 ;;
15709 esac
15710
15711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15712 printf %s "checking for $compiler option to produce PIC... " >&6; }
15713 if test ${lt_cv_prog_compiler_pic+y}
15714 then :
15715 printf %s "(cached) " >&6
15716 else case e in #(
15717 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
15718 esac
15719 fi
15720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15721 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15722 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15723
15724 #
15725 # Check to make sure the PIC flag actually works.
15726 #
15727 if test -n "$lt_prog_compiler_pic"; then
15728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15729 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15730 if test ${lt_cv_prog_compiler_pic_works+y}
15731 then :
15732 printf %s "(cached) " >&6
15733 else case e in #(
15734 e) lt_cv_prog_compiler_pic_works=no
15735 ac_outfile=conftest.$ac_objext
15736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15737 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15738 # Insert the option either (1) after the last *FLAGS variable, or
15739 # (2) before a word containing "conftest.", or (3) at the end.
15740 # Note that $ac_compile itself does not contain backslashes and begins
15741 # with a dollar sign (not a hyphen), so the echo should work correctly.
15742 # The option is referenced via a variable to avoid confusing sed.
15743 lt_compile=`echo "$ac_compile" | $SED \
15744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15746 -e 's:$: $lt_compiler_flag:'`
15747 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15748 (eval "$lt_compile" 2>conftest.err)
15749 ac_status=$?
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 if (exit $ac_status) && test -s "$ac_outfile"; then
15753 # The compiler can only warn and ignore the option if not recognized
15754 # So say no if there are warnings other than the usual output.
15755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15758 lt_cv_prog_compiler_pic_works=yes
15759 fi
15760 fi
15761 $RM conftest*
15762 ;;
15763 esac
15764 fi
15765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15766 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15767
15768 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15769 case $lt_prog_compiler_pic in
15770 "" | " "*) ;;
15771 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15772 esac
15773 else
15774 lt_prog_compiler_pic=
15775 lt_prog_compiler_can_build_shared=no
15776 fi
15777
15778 fi
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790 #
15791 # Check to make sure the static flag actually works.
15792 #
15793 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15795 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15796 if test ${lt_cv_prog_compiler_static_works+y}
15797 then :
15798 printf %s "(cached) " >&6
15799 else case e in #(
15800 e) lt_cv_prog_compiler_static_works=no
15801 save_LDFLAGS=$LDFLAGS
15802 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15803 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15804 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15805 # The linker can only warn and ignore the option if not recognized
15806 # So say no if there are warnings
15807 if test -s conftest.err; then
15808 # Append any errors to the config.log.
15809 cat conftest.err 1>&5
15810 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15812 if diff conftest.exp conftest.er2 >/dev/null; then
15813 lt_cv_prog_compiler_static_works=yes
15814 fi
15815 else
15816 lt_cv_prog_compiler_static_works=yes
15817 fi
15818 fi
15819 $RM -r conftest*
15820 LDFLAGS=$save_LDFLAGS
15821 ;;
15822 esac
15823 fi
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15825 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15826
15827 if test yes = "$lt_cv_prog_compiler_static_works"; then
15828 :
15829 else
15830 lt_prog_compiler_static=
15831 fi
15832
15833
15834
15835
15836
15837
15838
15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15840 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15841 if test ${lt_cv_prog_compiler_c_o+y}
15842 then :
15843 printf %s "(cached) " >&6
15844 else case e in #(
15845 e) lt_cv_prog_compiler_c_o=no
15846 $RM -r conftest 2>/dev/null
15847 mkdir conftest
15848 cd conftest
15849 mkdir out
15850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15851
15852 lt_compiler_flag="-o out/conftest2.$ac_objext"
15853 # Insert the option either (1) after the last *FLAGS variable, or
15854 # (2) before a word containing "conftest.", or (3) at the end.
15855 # Note that $ac_compile itself does not contain backslashes and begins
15856 # with a dollar sign (not a hyphen), so the echo should work correctly.
15857 lt_compile=`echo "$ac_compile" | $SED \
15858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15860 -e 's:$: $lt_compiler_flag:'`
15861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15862 (eval "$lt_compile" 2>out/conftest.err)
15863 ac_status=$?
15864 cat out/conftest.err >&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15867 then
15868 # The compiler can only warn and ignore the option if not recognized
15869 # So say no if there are warnings
15870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15871 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15872 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15873 lt_cv_prog_compiler_c_o=yes
15874 fi
15875 fi
15876 chmod u+w . 2>&5
15877 $RM conftest*
15878 # SGI C++ compiler will create directory out/ii_files/ for
15879 # template instantiation
15880 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15881 $RM out/* && rmdir out
15882 cd ..
15883 $RM -r conftest
15884 $RM conftest*
15885 ;;
15886 esac
15887 fi
15888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15889 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
15890
15891
15892
15893
15894
15895
15896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15897 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15898 if test ${lt_cv_prog_compiler_c_o+y}
15899 then :
15900 printf %s "(cached) " >&6
15901 else case e in #(
15902 e) lt_cv_prog_compiler_c_o=no
15903 $RM -r conftest 2>/dev/null
15904 mkdir conftest
15905 cd conftest
15906 mkdir out
15907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15908
15909 lt_compiler_flag="-o out/conftest2.$ac_objext"
15910 # Insert the option either (1) after the last *FLAGS variable, or
15911 # (2) before a word containing "conftest.", or (3) at the end.
15912 # Note that $ac_compile itself does not contain backslashes and begins
15913 # with a dollar sign (not a hyphen), so the echo should work correctly.
15914 lt_compile=`echo "$ac_compile" | $SED \
15915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15917 -e 's:$: $lt_compiler_flag:'`
15918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15919 (eval "$lt_compile" 2>out/conftest.err)
15920 ac_status=$?
15921 cat out/conftest.err >&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15924 then
15925 # The compiler can only warn and ignore the option if not recognized
15926 # So say no if there are warnings
15927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15930 lt_cv_prog_compiler_c_o=yes
15931 fi
15932 fi
15933 chmod u+w . 2>&5
15934 $RM conftest*
15935 # SGI C++ compiler will create directory out/ii_files/ for
15936 # template instantiation
15937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15938 $RM out/* && rmdir out
15939 cd ..
15940 $RM -r conftest
15941 $RM conftest*
15942 ;;
15943 esac
15944 fi
15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15946 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
15947
15948
15949
15950
15951 hard_links=nottested
15952 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15953 # do not overwrite the value of need_locks provided by the user
15954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15955 printf %s "checking if we can lock with hard links... " >&6; }
15956 hard_links=yes
15957 $RM conftest*
15958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15959 touch conftest.a
15960 ln conftest.a conftest.b 2>&5 || hard_links=no
15961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15963 printf "%s\n" "$hard_links" >&6; }
15964 if test no = "$hard_links"; then
15965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15966 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15967 need_locks=warn
15968 fi
15969 else
15970 need_locks=no
15971 fi
15972
15973
15974
15975
15976
15977
15978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15979 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15980
15981 runpath_var=
15982 allow_undefined_flag=
15983 always_export_symbols=no
15984 archive_cmds=
15985 archive_expsym_cmds=
15986 compiler_needs_object=no
15987 enable_shared_with_static_runtimes=no
15988 export_dynamic_flag_spec=
15989 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15990 hardcode_automatic=no
15991 hardcode_direct=no
15992 hardcode_direct_absolute=no
15993 hardcode_libdir_flag_spec=
15994 hardcode_libdir_separator=
15995 hardcode_minus_L=no
15996 hardcode_shlibpath_var=unsupported
15997 inherit_rpath=no
15998 link_all_deplibs=unknown
15999 module_cmds=
16000 module_expsym_cmds=
16001 old_archive_from_new_cmds=
16002 old_archive_from_expsyms_cmds=
16003 thread_safe_flag_spec=
16004 whole_archive_flag_spec=
16005 # include_expsyms should be a list of space-separated symbols to be *always*
16006 # included in the symbol list
16007 include_expsyms=
16008 # exclude_expsyms can be an extended regexp of symbols to exclude
16009 # it will be wrapped by ' (' and ')$', so one must not match beginning or
16010 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16011 # as well as any symbol that contains 'd'.
16012 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16014 # platforms (ab)use it in PIC code, but their linkers get confused if
16015 # the symbol is explicitly referenced. Since portable code cannot
16016 # rely on this symbol name, it's probably fine to never include it in
16017 # preloaded symbol tables.
16018 # Exclude shared library initialization/finalization symbols.
16019 extract_expsyms_cmds=
16020
16021 case $host_os in
16022 cygwin* | mingw* | windows* | pw32* | cegcc*)
16023 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16024 # When not using gcc, we currently assume that we are using
16025 # Microsoft Visual C++ or Intel C++ Compiler.
16026 if test yes != "$GCC"; then
16027 with_gnu_ld=no
16028 fi
16029 ;;
16030 interix*)
16031 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16032 with_gnu_ld=yes
16033 ;;
16034 esac
16035
16036 ld_shlibs=yes
16037
16038 # On some targets, GNU ld is compatible enough with the native linker
16039 # that we're better off using the native interface for both.
16040 lt_use_gnu_ld_interface=no
16041 if test yes = "$with_gnu_ld"; then
16042 case $host_os in
16043 aix*)
16044 # The AIX port of GNU ld has always aspired to compatibility
16045 # with the native linker. However, as the warning in the GNU ld
16046 # block says, versions before 2.19.5* couldn't really create working
16047 # shared libraries, regardless of the interface used.
16048 case `$LD -v 2>&1` in
16049 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16050 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16051 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16052 *)
16053 lt_use_gnu_ld_interface=yes
16054 ;;
16055 esac
16056 ;;
16057 *)
16058 lt_use_gnu_ld_interface=yes
16059 ;;
16060 esac
16061 fi
16062
16063 if test yes = "$lt_use_gnu_ld_interface"; then
16064 # If archive_cmds runs LD, not CC, wlarc should be empty
16065 wlarc='$wl'
16066
16067 # Set some defaults for GNU ld with shared library support. These
16068 # are reset later if shared libraries are not supported. Putting them
16069 # here allows them to be overridden if necessary.
16070 runpath_var=LD_RUN_PATH
16071 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16072 export_dynamic_flag_spec='$wl--export-dynamic'
16073 # ancient GNU ld didn't support --whole-archive et. al.
16074 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16075 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16076 else
16077 whole_archive_flag_spec=
16078 fi
16079 supports_anon_versioning=no
16080 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16081 *GNU\ gold*) supports_anon_versioning=yes ;;
16082 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16083 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16084 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16085 *\ 2.11.*) ;; # other 2.11 versions
16086 *) supports_anon_versioning=yes ;;
16087 esac
16088
16089 # See if GNU ld supports shared libraries.
16090 case $host_os in
16091 aix[3-9]*)
16092 # On AIX/PPC, the GNU linker is very broken
16093 if test ia64 != "$host_cpu"; then
16094 ld_shlibs=no
16095 cat <<_LT_EOF 1>&2
16096
16097 *** Warning: the GNU linker, at least up to release 2.19, is reported
16098 *** to be unable to reliably create shared libraries on AIX.
16099 *** Therefore, libtool is disabling shared libraries support. If you
16100 *** really care for shared libraries, you may want to install binutils
16101 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16102 *** You will then need to restart the configuration process.
16103
16104 _LT_EOF
16105 fi
16106 ;;
16107
16108 amigaos*)
16109 case $host_cpu in
16110 powerpc)
16111 # see comment about AmigaOS4 .so support
16112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16113 archive_expsym_cmds=''
16114 ;;
16115 m68k)
16116 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)'
16117 hardcode_libdir_flag_spec='-L$libdir'
16118 hardcode_minus_L=yes
16119 ;;
16120 esac
16121 ;;
16122
16123 beos*)
16124 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16125 allow_undefined_flag=unsupported
16126 # Joseph Beckenbach <[email protected]> says some releases of gcc
16127 # support --undefined. This deserves some investigation. FIXME
16128 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16129 else
16130 ld_shlibs=no
16131 fi
16132 ;;
16133
16134 cygwin* | mingw* | windows* | pw32* | cegcc*)
16135 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16136 # as there is no search path for DLLs.
16137 hardcode_libdir_flag_spec='-L$libdir'
16138 export_dynamic_flag_spec='$wl--export-all-symbols'
16139 allow_undefined_flag=unsupported
16140 always_export_symbols=no
16141 enable_shared_with_static_runtimes=yes
16142 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'
16143 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16144 file_list_spec='@'
16145
16146 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16148 # If the export-symbols file already is a .def file, use it as
16149 # is; otherwise, prepend EXPORTS...
16150 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16151 cp $export_symbols $output_objdir/$soname.def;
16152 else
16153 echo EXPORTS > $output_objdir/$soname.def;
16154 cat $export_symbols >> $output_objdir/$soname.def;
16155 fi~
16156 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16157 else
16158 ld_shlibs=no
16159 fi
16160 ;;
16161
16162 haiku*)
16163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16164 link_all_deplibs=no
16165 ;;
16166
16167 os2*)
16168 hardcode_libdir_flag_spec='-L$libdir'
16169 hardcode_minus_L=yes
16170 allow_undefined_flag=unsupported
16171 shrext_cmds=.dll
16172 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16173 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16174 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16175 $ECHO EXPORTS >> $output_objdir/$libname.def~
16176 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16177 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16178 emximp -o $lib $output_objdir/$libname.def'
16179 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16180 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16181 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16182 $ECHO EXPORTS >> $output_objdir/$libname.def~
16183 prefix_cmds="$SED"~
16184 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16185 prefix_cmds="$prefix_cmds -e 1d";
16186 fi~
16187 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16188 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16189 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16190 emximp -o $lib $output_objdir/$libname.def'
16191 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16192 enable_shared_with_static_runtimes=yes
16193 file_list_spec='@'
16194 ;;
16195
16196 interix[3-9]*)
16197 hardcode_direct=no
16198 hardcode_shlibpath_var=no
16199 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16200 export_dynamic_flag_spec='$wl-E'
16201 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16202 # Instead, shared libraries are loaded at an image base (0x10000000 by
16203 # default) and relocated if they conflict, which is a slow very memory
16204 # consuming and fragmenting process. To avoid this, we pick a random,
16205 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16206 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16207 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16208 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'
16209 ;;
16210
16211 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16212 tmp_diet=no
16213 if test linux-dietlibc = "$host_os"; then
16214 case $cc_basename in
16215 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16216 esac
16217 fi
16218 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16219 && test no = "$tmp_diet"
16220 then
16221 tmp_addflag=' $pic_flag'
16222 tmp_sharedflag='-shared'
16223 case $cc_basename,$host_cpu in
16224 pgcc*) # Portland Group C compiler
16225 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'
16226 tmp_addflag=' $pic_flag'
16227 ;;
16228 pgf77* | pgf90* | pgf95* | pgfortran*)
16229 # Portland Group f77 and f90 compilers
16230 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'
16231 tmp_addflag=' $pic_flag -Mnomain' ;;
16232 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16233 tmp_addflag=' -i_dynamic' ;;
16234 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16235 tmp_addflag=' -i_dynamic -nofor_main' ;;
16236 ifc* | ifort*) # Intel Fortran compiler
16237 tmp_addflag=' -nofor_main' ;;
16238 lf95*) # Lahey Fortran 8.1
16239 whole_archive_flag_spec=
16240 tmp_sharedflag='--shared' ;;
16241 nagfor*) # NAGFOR 5.3
16242 tmp_sharedflag='-Wl,-shared' ;;
16243 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16244 tmp_sharedflag='-qmkshrobj'
16245 tmp_addflag= ;;
16246 nvcc*) # Cuda Compiler Driver 2.2
16247 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'
16248 compiler_needs_object=yes
16249 ;;
16250 esac
16251 case `$CC -V 2>&1 | $SED 5q` in
16252 *Sun\ C*) # Sun C 5.9
16253 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'
16254 compiler_needs_object=yes
16255 tmp_sharedflag='-G' ;;
16256 *Sun\ F*) # Sun Fortran 8.3
16257 tmp_sharedflag='-G' ;;
16258 esac
16259 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16260
16261 if test yes = "$supports_anon_versioning"; then
16262 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16263 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16264 echo "local: *; };" >> $output_objdir/$libname.ver~
16265 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16266 fi
16267
16268 case $cc_basename in
16269 tcc*)
16270 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16271 export_dynamic_flag_spec='-rdynamic'
16272 ;;
16273 xlf* | bgf* | bgxlf* | mpixlf*)
16274 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16275 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16276 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16277 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16278 if test yes = "$supports_anon_versioning"; then
16279 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16280 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16281 echo "local: *; };" >> $output_objdir/$libname.ver~
16282 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16283 fi
16284 ;;
16285 esac
16286 else
16287 ld_shlibs=no
16288 fi
16289 ;;
16290
16291 *-mlibc)
16292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16293 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16294 ;;
16295
16296 netbsd* | netbsdelf*-gnu)
16297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16298 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16299 wlarc=
16300 else
16301 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16302 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16303 fi
16304 ;;
16305
16306 solaris*)
16307 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16308 ld_shlibs=no
16309 cat <<_LT_EOF 1>&2
16310
16311 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16312 *** create shared libraries on Solaris systems. Therefore, libtool
16313 *** is disabling shared libraries support. We urge you to upgrade GNU
16314 *** binutils to release 2.9.1 or newer. Another option is to modify
16315 *** your PATH or compiler configuration so that the native linker is
16316 *** used, and then restart.
16317
16318 _LT_EOF
16319 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16320 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16321 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16322 else
16323 ld_shlibs=no
16324 fi
16325 ;;
16326
16327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16328 case `$LD -v 2>&1` in
16329 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16330 ld_shlibs=no
16331 cat <<_LT_EOF 1>&2
16332
16333 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16334 *** reliably create shared libraries on SCO systems. Therefore, libtool
16335 *** is disabling shared libraries support. We urge you to upgrade GNU
16336 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16337 *** your PATH or compiler configuration so that the native linker is
16338 *** used, and then restart.
16339
16340 _LT_EOF
16341 ;;
16342 *)
16343 # For security reasons, it is highly recommended that you always
16344 # use absolute paths for naming shared libraries, and exclude the
16345 # DT_RUNPATH tag from executables and libraries. But doing so
16346 # requires that you compile everything twice, which is a pain.
16347 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16348 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16351 else
16352 ld_shlibs=no
16353 fi
16354 ;;
16355 esac
16356 ;;
16357
16358 sunos4*)
16359 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16360 wlarc=
16361 hardcode_direct=yes
16362 hardcode_shlibpath_var=no
16363 ;;
16364
16365 *)
16366 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16367 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16368 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16369 else
16370 ld_shlibs=no
16371 fi
16372 ;;
16373 esac
16374
16375 if test no = "$ld_shlibs"; then
16376 runpath_var=
16377 hardcode_libdir_flag_spec=
16378 export_dynamic_flag_spec=
16379 whole_archive_flag_spec=
16380 fi
16381 else
16382 # PORTME fill in a description of your system's linker (not GNU ld)
16383 case $host_os in
16384 aix3*)
16385 allow_undefined_flag=unsupported
16386 always_export_symbols=yes
16387 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'
16388 # Note: this linker hardcodes the directories in LIBPATH if there
16389 # are no directories specified by -L.
16390 hardcode_minus_L=yes
16391 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16392 # Neither direct hardcoding nor static linking is supported with a
16393 # broken collect2.
16394 hardcode_direct=unsupported
16395 fi
16396 ;;
16397
16398 aix[4-9]*)
16399 if test ia64 = "$host_cpu"; then
16400 # On IA64, the linker does run time linking by default, so we don't
16401 # have to do anything special.
16402 aix_use_runtimelinking=no
16403 exp_sym_flag='-Bexport'
16404 no_entry_flag=
16405 else
16406 # If we're using GNU nm, then we don't want the "-C" option.
16407 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16408 # Without the "-l" option, or with the "-B" option, AIX nm treats
16409 # weak defined symbols like other global defined symbols, whereas
16410 # GNU nm marks them as "W".
16411 # While the 'weak' keyword is ignored in the Export File, we need
16412 # it in the Import File for the 'aix-soname' feature, so we have
16413 # to replace the "-B" option with "-P" for AIX nm.
16414 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16415 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'
16416 else
16417 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 == "L") || (\$ 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'
16418 fi
16419 aix_use_runtimelinking=no
16420
16421 # Test if we are trying to use run time linking or normal
16422 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16423 # have runtime linking enabled, and use it for executables.
16424 # For shared libraries, we enable/disable runtime linking
16425 # depending on the kind of the shared library created -
16426 # when "with_aix_soname,aix_use_runtimelinking" is:
16427 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16428 # "aix,yes" lib.so shared, rtl:yes, for executables
16429 # lib.a static archive
16430 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16431 # lib.a(lib.so.V) shared, rtl:no, for executables
16432 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16433 # lib.a(lib.so.V) shared, rtl:no
16434 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16435 # lib.a static archive
16436 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16437 for ld_flag in $LDFLAGS; do
16438 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16439 aix_use_runtimelinking=yes
16440 break
16441 fi
16442 done
16443 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16444 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16445 # so we don't have lib.a shared libs to link our executables.
16446 # We have to force runtime linking in this case.
16447 aix_use_runtimelinking=yes
16448 LDFLAGS="$LDFLAGS -Wl,-brtl"
16449 fi
16450 ;;
16451 esac
16452
16453 exp_sym_flag='-bexport'
16454 no_entry_flag='-bnoentry'
16455 fi
16456
16457 # When large executables or shared objects are built, AIX ld can
16458 # have problems creating the table of contents. If linking a library
16459 # or program results in "error TOC overflow" add -mminimal-toc to
16460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16462
16463 archive_cmds=''
16464 hardcode_direct=yes
16465 hardcode_direct_absolute=yes
16466 hardcode_libdir_separator=':'
16467 link_all_deplibs=yes
16468 file_list_spec='$wl-f,'
16469 case $with_aix_soname,$aix_use_runtimelinking in
16470 aix,*) ;; # traditional, no import file
16471 svr4,* | *,yes) # use import file
16472 # The Import File defines what to hardcode.
16473 hardcode_direct=no
16474 hardcode_direct_absolute=no
16475 ;;
16476 esac
16477
16478 if test yes = "$GCC"; then
16479 case $host_os in aix4.[012]|aix4.[012].*)
16480 # We only want to do this on AIX 4.2 and lower, the check
16481 # below for broken collect2 doesn't work under 4.3+
16482 collect2name=`$CC -print-prog-name=collect2`
16483 if test -f "$collect2name" &&
16484 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16485 then
16486 # We have reworked collect2
16487 :
16488 else
16489 # We have old collect2
16490 hardcode_direct=unsupported
16491 # It fails to find uninstalled libraries when the uninstalled
16492 # path is not listed in the libpath. Setting hardcode_minus_L
16493 # to unsupported forces relinking
16494 hardcode_minus_L=yes
16495 hardcode_libdir_flag_spec='-L$libdir'
16496 hardcode_libdir_separator=
16497 fi
16498 ;;
16499 esac
16500 shared_flag='-shared'
16501 if test yes = "$aix_use_runtimelinking"; then
16502 shared_flag="$shared_flag "'$wl-G'
16503 fi
16504 # Need to ensure runtime linking is disabled for the traditional
16505 # shared library, or the linker may eventually find shared libraries
16506 # /with/ Import File - we do not want to mix them.
16507 shared_flag_aix='-shared'
16508 shared_flag_svr4='-shared $wl-G'
16509 else
16510 # not using gcc
16511 if test ia64 = "$host_cpu"; then
16512 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16513 # chokes on -Wl,-G. The following line is correct:
16514 shared_flag='-G'
16515 else
16516 if test yes = "$aix_use_runtimelinking"; then
16517 shared_flag='$wl-G'
16518 else
16519 shared_flag='$wl-bM:SRE'
16520 fi
16521 shared_flag_aix='$wl-bM:SRE'
16522 shared_flag_svr4='$wl-G'
16523 fi
16524 fi
16525
16526 export_dynamic_flag_spec='$wl-bexpall'
16527 # It seems that -bexpall does not export symbols beginning with
16528 # underscore (_), so it is better to generate a list of symbols to export.
16529 always_export_symbols=yes
16530 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16531 # Warning - without using the other runtime loading flags (-brtl),
16532 # -berok will link without error, but may produce a broken library.
16533 allow_undefined_flag='-berok'
16534 # Determine the default libpath from the value encoded in an
16535 # empty executable.
16536 if test set = "${lt_cv_aix_libpath+set}"; then
16537 aix_libpath=$lt_cv_aix_libpath
16538 else
16539 if test ${lt_cv_aix_libpath_+y}
16540 then :
16541 printf %s "(cached) " >&6
16542 else case e in #(
16543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h. */
16545
16546 int
16547 main (void)
16548 {
16549
16550 ;
16551 return 0;
16552 }
16553 _ACEOF
16554 if ac_fn_c_try_link "$LINENO"
16555 then :
16556
16557 lt_aix_libpath_sed='
16558 /Import File Strings/,/^$/ {
16559 /^0/ {
16560 s/^0 *\([^ ]*\) *$/\1/
16561 p
16562 }
16563 }'
16564 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16565 # Check for a 64-bit object if we didn't find anything.
16566 if test -z "$lt_cv_aix_libpath_"; then
16567 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16568 fi
16569 fi
16570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16571 conftest$ac_exeext conftest.$ac_ext
16572 if test -z "$lt_cv_aix_libpath_"; then
16573 lt_cv_aix_libpath_=/usr/lib:/lib
16574 fi
16575 ;;
16576 esac
16577 fi
16578
16579 aix_libpath=$lt_cv_aix_libpath_
16580 fi
16581
16582 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16583 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
16584 else
16585 if test ia64 = "$host_cpu"; then
16586 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16587 allow_undefined_flag="-z nodefs"
16588 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"
16589 else
16590 # Determine the default libpath from the value encoded in an
16591 # empty executable.
16592 if test set = "${lt_cv_aix_libpath+set}"; then
16593 aix_libpath=$lt_cv_aix_libpath
16594 else
16595 if test ${lt_cv_aix_libpath_+y}
16596 then :
16597 printf %s "(cached) " >&6
16598 else case e in #(
16599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16600 /* end confdefs.h. */
16601
16602 int
16603 main (void)
16604 {
16605
16606 ;
16607 return 0;
16608 }
16609 _ACEOF
16610 if ac_fn_c_try_link "$LINENO"
16611 then :
16612
16613 lt_aix_libpath_sed='
16614 /Import File Strings/,/^$/ {
16615 /^0/ {
16616 s/^0 *\([^ ]*\) *$/\1/
16617 p
16618 }
16619 }'
16620 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16621 # Check for a 64-bit object if we didn't find anything.
16622 if test -z "$lt_cv_aix_libpath_"; then
16623 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16624 fi
16625 fi
16626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16627 conftest$ac_exeext conftest.$ac_ext
16628 if test -z "$lt_cv_aix_libpath_"; then
16629 lt_cv_aix_libpath_=/usr/lib:/lib
16630 fi
16631 ;;
16632 esac
16633 fi
16634
16635 aix_libpath=$lt_cv_aix_libpath_
16636 fi
16637
16638 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16639 # Warning - without using the other run time loading flags,
16640 # -berok will link without error, but may produce a broken library.
16641 no_undefined_flag=' $wl-bernotok'
16642 allow_undefined_flag=' $wl-berok'
16643 if test yes = "$with_gnu_ld"; then
16644 # We only use this code for GNU lds that support --whole-archive.
16645 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16646 else
16647 # Exported symbols can be pulled into shared objects from archives
16648 whole_archive_flag_spec='$convenience'
16649 fi
16650 archive_cmds_need_lc=yes
16651 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16652 # -brtl affects multiple linker settings, -berok does not and is overridden later
16653 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16654 if test svr4 != "$with_aix_soname"; then
16655 # This is similar to how AIX traditionally builds its shared libraries.
16656 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'
16657 fi
16658 if test aix != "$with_aix_soname"; then
16659 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'
16660 else
16661 # used by -dlpreopen to get the symbols
16662 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16663 fi
16664 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16665 fi
16666 fi
16667 ;;
16668
16669 amigaos*)
16670 case $host_cpu in
16671 powerpc)
16672 # see comment about AmigaOS4 .so support
16673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16674 archive_expsym_cmds=''
16675 ;;
16676 m68k)
16677 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)'
16678 hardcode_libdir_flag_spec='-L$libdir'
16679 hardcode_minus_L=yes
16680 ;;
16681 esac
16682 ;;
16683
16684 bsdi[45]*)
16685 export_dynamic_flag_spec=-rdynamic
16686 ;;
16687
16688 cygwin* | mingw* | windows* | pw32* | cegcc*)
16689 # When not using gcc, we currently assume that we are using
16690 # Microsoft Visual C++ or Intel C++ Compiler.
16691 # hardcode_libdir_flag_spec is actually meaningless, as there is
16692 # no search path for DLLs.
16693 case $cc_basename in
16694 cl* | icl*)
16695 # Native MSVC or ICC
16696 hardcode_libdir_flag_spec=' '
16697 allow_undefined_flag=unsupported
16698 always_export_symbols=yes
16699 file_list_spec='@'
16700 # Tell ltmain to make .lib files, not .a files.
16701 libext=lib
16702 # Tell ltmain to make .dll files, not .so files.
16703 shrext_cmds=.dll
16704 # FIXME: Setting linknames here is a bad hack.
16705 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16706 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16707 cp "$export_symbols" "$output_objdir/$soname.def";
16708 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16709 else
16710 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16711 fi~
16712 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16713 linknames='
16714 # The linker will not automatically build a static lib if we build a DLL.
16715 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16716 enable_shared_with_static_runtimes=yes
16717 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16719 # Don't use ranlib
16720 old_postinstall_cmds='chmod 644 $oldlib'
16721 postlink_cmds='lt_outputfile="@OUTPUT@"~
16722 lt_tool_outputfile="@TOOL_OUTPUT@"~
16723 case $lt_outputfile in
16724 *.exe|*.EXE) ;;
16725 *)
16726 lt_outputfile=$lt_outputfile.exe
16727 lt_tool_outputfile=$lt_tool_outputfile.exe
16728 ;;
16729 esac~
16730 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16731 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16732 $RM "$lt_outputfile.manifest";
16733 fi'
16734 ;;
16735 *)
16736 # Assume MSVC and ICC wrapper
16737 hardcode_libdir_flag_spec=' '
16738 allow_undefined_flag=unsupported
16739 # Tell ltmain to make .lib files, not .a files.
16740 libext=lib
16741 # Tell ltmain to make .dll files, not .so files.
16742 shrext_cmds=.dll
16743 # FIXME: Setting linknames here is a bad hack.
16744 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16745 # The linker will automatically build a .lib file if we build a DLL.
16746 old_archive_from_new_cmds='true'
16747 # FIXME: Should let the user specify the lib program.
16748 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16749 enable_shared_with_static_runtimes=yes
16750 ;;
16751 esac
16752 ;;
16753
16754 darwin* | rhapsody*)
16755
16756
16757 archive_cmds_need_lc=no
16758 hardcode_direct=no
16759 hardcode_automatic=yes
16760 hardcode_shlibpath_var=unsupported
16761 if test yes = "$lt_cv_ld_force_load"; then
16762 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\"`'
16763
16764 else
16765 whole_archive_flag_spec=''
16766 fi
16767 link_all_deplibs=yes
16768 allow_undefined_flag=$_lt_dar_allow_undefined
16769 case $cc_basename in
16770 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16771 *) _lt_dar_can_shared=$GCC ;;
16772 esac
16773 if test yes = "$_lt_dar_can_shared"; then
16774 output_verbose_link_cmd=func_echo_all
16775 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16776 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16777 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"
16778 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"
16779
16780 else
16781 ld_shlibs=no
16782 fi
16783
16784 ;;
16785
16786 dgux*)
16787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16788 hardcode_libdir_flag_spec='-L$libdir'
16789 hardcode_shlibpath_var=no
16790 ;;
16791
16792 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16793 # support. Future versions do this automatically, but an explicit c++rt0.o
16794 # does not break anything, and helps significantly (at the cost of a little
16795 # extra space).
16796 freebsd2.2*)
16797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16798 hardcode_libdir_flag_spec='-R$libdir'
16799 hardcode_direct=yes
16800 hardcode_shlibpath_var=no
16801 ;;
16802
16803 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16804 freebsd2.*)
16805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16806 hardcode_direct=yes
16807 hardcode_minus_L=yes
16808 hardcode_shlibpath_var=no
16809 ;;
16810
16811 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16812 freebsd* | dragonfly* | midnightbsd*)
16813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16814 hardcode_libdir_flag_spec='-R$libdir'
16815 hardcode_direct=yes
16816 hardcode_shlibpath_var=no
16817 ;;
16818
16819 hpux9*)
16820 if test yes = "$GCC"; then
16821 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'
16822 else
16823 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'
16824 fi
16825 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16826 hardcode_libdir_separator=:
16827 hardcode_direct=yes
16828
16829 # hardcode_minus_L: Not really in the search PATH,
16830 # but as the default location of the library.
16831 hardcode_minus_L=yes
16832 export_dynamic_flag_spec='$wl-E'
16833 ;;
16834
16835 hpux10*)
16836 if test yes,no = "$GCC,$with_gnu_ld"; then
16837 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16838 else
16839 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16840 fi
16841 if test no = "$with_gnu_ld"; then
16842 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16843 hardcode_libdir_separator=:
16844 hardcode_direct=yes
16845 hardcode_direct_absolute=yes
16846 export_dynamic_flag_spec='$wl-E'
16847 # hardcode_minus_L: Not really in the search PATH,
16848 # but as the default location of the library.
16849 hardcode_minus_L=yes
16850 fi
16851 ;;
16852
16853 hpux11*)
16854 if test yes,no = "$GCC,$with_gnu_ld"; then
16855 case $host_cpu in
16856 hppa*64*)
16857 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16858 ;;
16859 ia64*)
16860 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16861 ;;
16862 *)
16863 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16864 ;;
16865 esac
16866 else
16867 case $host_cpu in
16868 hppa*64*)
16869 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16870 ;;
16871 ia64*)
16872 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16873 ;;
16874 *)
16875
16876 # Older versions of the 11.00 compiler do not understand -b yet
16877 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16879 printf %s "checking if $CC understands -b... " >&6; }
16880 if test ${lt_cv_prog_compiler__b+y}
16881 then :
16882 printf %s "(cached) " >&6
16883 else case e in #(
16884 e) lt_cv_prog_compiler__b=no
16885 save_LDFLAGS=$LDFLAGS
16886 LDFLAGS="$LDFLAGS -b"
16887 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16888 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16889 # The linker can only warn and ignore the option if not recognized
16890 # So say no if there are warnings
16891 if test -s conftest.err; then
16892 # Append any errors to the config.log.
16893 cat conftest.err 1>&5
16894 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16896 if diff conftest.exp conftest.er2 >/dev/null; then
16897 lt_cv_prog_compiler__b=yes
16898 fi
16899 else
16900 lt_cv_prog_compiler__b=yes
16901 fi
16902 fi
16903 $RM -r conftest*
16904 LDFLAGS=$save_LDFLAGS
16905 ;;
16906 esac
16907 fi
16908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16909 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
16910
16911 if test yes = "$lt_cv_prog_compiler__b"; then
16912 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16913 else
16914 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16915 fi
16916
16917 ;;
16918 esac
16919 fi
16920 if test no = "$with_gnu_ld"; then
16921 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16922 hardcode_libdir_separator=:
16923
16924 case $host_cpu in
16925 hppa*64*|ia64*)
16926 hardcode_direct=no
16927 hardcode_shlibpath_var=no
16928 ;;
16929 *)
16930 hardcode_direct=yes
16931 hardcode_direct_absolute=yes
16932 export_dynamic_flag_spec='$wl-E'
16933
16934 # hardcode_minus_L: Not really in the search PATH,
16935 # but as the default location of the library.
16936 hardcode_minus_L=yes
16937 ;;
16938 esac
16939 fi
16940 ;;
16941
16942 irix5* | irix6* | nonstopux*)
16943 if test yes = "$GCC"; then
16944 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'
16945 # Try to use the -exported_symbol ld option, if it does not
16946 # work, assume that -exports_file does not work either and
16947 # implicitly export all symbols.
16948 # This should be the same for all languages, so no per-tag cache variable.
16949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16950 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16951 if test ${lt_cv_irix_exported_symbol+y}
16952 then :
16953 printf %s "(cached) " >&6
16954 else case e in #(
16955 e) save_LDFLAGS=$LDFLAGS
16956 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16958 /* end confdefs.h. */
16959 int foo (void) { return 0; }
16960 _ACEOF
16961 if ac_fn_c_try_link "$LINENO"
16962 then :
16963 lt_cv_irix_exported_symbol=yes
16964 else case e in #(
16965 e) lt_cv_irix_exported_symbol=no ;;
16966 esac
16967 fi
16968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16969 conftest$ac_exeext conftest.$ac_ext
16970 LDFLAGS=$save_LDFLAGS ;;
16971 esac
16972 fi
16973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16974 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
16975 if test yes = "$lt_cv_irix_exported_symbol"; then
16976 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'
16977 fi
16978 else
16979 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'
16980 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'
16981 fi
16982 archive_cmds_need_lc='no'
16983 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16984 hardcode_libdir_separator=:
16985 inherit_rpath=yes
16986 link_all_deplibs=yes
16987 ;;
16988
16989 linux*)
16990 case $cc_basename in
16991 tcc*)
16992 # Fabrice Bellard et al's Tiny C Compiler
16993 ld_shlibs=yes
16994 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16995 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16996 ;;
16997 esac
16998 ;;
16999
17000 *-mlibc)
17001 ;;
17002
17003 netbsd* | netbsdelf*-gnu)
17004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17006 else
17007 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17008 fi
17009 hardcode_libdir_flag_spec='-R$libdir'
17010 hardcode_direct=yes
17011 hardcode_shlibpath_var=no
17012 ;;
17013
17014 newsos6)
17015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17016 hardcode_direct=yes
17017 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17018 hardcode_libdir_separator=:
17019 hardcode_shlibpath_var=no
17020 ;;
17021
17022 *nto* | *qnx*)
17023 ;;
17024
17025 openbsd*)
17026 if test -f /usr/libexec/ld.so; then
17027 hardcode_direct=yes
17028 hardcode_shlibpath_var=no
17029 hardcode_direct_absolute=yes
17030 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17031 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17032 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17033 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17034 export_dynamic_flag_spec='$wl-E'
17035 else
17036 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17037 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17038 fi
17039 else
17040 ld_shlibs=no
17041 fi
17042 ;;
17043
17044 os2*)
17045 hardcode_libdir_flag_spec='-L$libdir'
17046 hardcode_minus_L=yes
17047 allow_undefined_flag=unsupported
17048 shrext_cmds=.dll
17049 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17050 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17051 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17052 $ECHO EXPORTS >> $output_objdir/$libname.def~
17053 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17054 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17055 emximp -o $lib $output_objdir/$libname.def'
17056 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17057 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17058 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17059 $ECHO EXPORTS >> $output_objdir/$libname.def~
17060 prefix_cmds="$SED"~
17061 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17062 prefix_cmds="$prefix_cmds -e 1d";
17063 fi~
17064 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17065 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17066 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17067 emximp -o $lib $output_objdir/$libname.def'
17068 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17069 enable_shared_with_static_runtimes=yes
17070 file_list_spec='@'
17071 ;;
17072
17073 osf3*)
17074 if test yes = "$GCC"; then
17075 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17076 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'
17077 else
17078 allow_undefined_flag=' -expect_unresolved \*'
17079 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'
17080 fi
17081 archive_cmds_need_lc='no'
17082 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17083 hardcode_libdir_separator=:
17084 ;;
17085
17086 osf4* | osf5*) # as osf3* with the addition of -msym flag
17087 if test yes = "$GCC"; then
17088 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17089 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'
17090 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17091 else
17092 allow_undefined_flag=' -expect_unresolved \*'
17093 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'
17094 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~
17095 $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'
17096
17097 # Both c and cxx compiler support -rpath directly
17098 hardcode_libdir_flag_spec='-rpath $libdir'
17099 fi
17100 archive_cmds_need_lc='no'
17101 hardcode_libdir_separator=:
17102 ;;
17103
17104 serenity*)
17105 ;;
17106
17107 solaris*)
17108 no_undefined_flag=' -z defs'
17109 if test yes = "$GCC"; then
17110 wlarc='$wl'
17111 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17112 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17113 $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'
17114 else
17115 case `$CC -V 2>&1` in
17116 *"Compilers 5.0"*)
17117 wlarc=''
17118 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17119 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17120 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17121 ;;
17122 *)
17123 wlarc='$wl'
17124 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17125 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17126 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17127 ;;
17128 esac
17129 fi
17130 hardcode_libdir_flag_spec='-R$libdir'
17131 hardcode_shlibpath_var=no
17132 case $host_os in
17133 solaris2.[0-5] | solaris2.[0-5].*) ;;
17134 *)
17135 # The compiler driver will combine and reorder linker options,
17136 # but understands '-z linker_flag'. GCC discards it without '$wl',
17137 # but is careful enough not to reorder.
17138 # Supported since Solaris 2.6 (maybe 2.5.1?)
17139 if test yes = "$GCC"; then
17140 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17141 else
17142 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17143 fi
17144 ;;
17145 esac
17146 link_all_deplibs=yes
17147 ;;
17148
17149 sunos4*)
17150 if test sequent = "$host_vendor"; then
17151 # Use $CC to link under sequent, because it throws in some extra .o
17152 # files that make .init and .fini sections work.
17153 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17154 else
17155 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17156 fi
17157 hardcode_libdir_flag_spec='-L$libdir'
17158 hardcode_direct=yes
17159 hardcode_minus_L=yes
17160 hardcode_shlibpath_var=no
17161 ;;
17162
17163 sysv4)
17164 case $host_vendor in
17165 sni)
17166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17167 hardcode_direct=yes # is this really true???
17168 ;;
17169 siemens)
17170 ## LD is ld it makes a PLAMLIB
17171 ## CC just makes a GrossModule.
17172 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17173 reload_cmds='$CC -r -o $output$reload_objs'
17174 hardcode_direct=no
17175 ;;
17176 motorola)
17177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17178 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17179 ;;
17180 esac
17181 runpath_var='LD_RUN_PATH'
17182 hardcode_shlibpath_var=no
17183 ;;
17184
17185 sysv4.3*)
17186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17187 hardcode_shlibpath_var=no
17188 export_dynamic_flag_spec='-Bexport'
17189 ;;
17190
17191 sysv4*MP*)
17192 if test -d /usr/nec; then
17193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17194 hardcode_shlibpath_var=no
17195 runpath_var=LD_RUN_PATH
17196 hardcode_runpath_var=yes
17197 ld_shlibs=yes
17198 fi
17199 ;;
17200
17201 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17202 no_undefined_flag='$wl-z,text'
17203 archive_cmds_need_lc=no
17204 hardcode_shlibpath_var=no
17205 runpath_var='LD_RUN_PATH'
17206
17207 if test yes = "$GCC"; then
17208 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17209 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17210 else
17211 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17212 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17213 fi
17214 ;;
17215
17216 sysv5* | sco3.2v5* | sco5v6*)
17217 # Note: We CANNOT use -z defs as we might desire, because we do not
17218 # link with -lc, and that would cause any symbols used from libc to
17219 # always be unresolved, which means just about no library would
17220 # ever link correctly. If we're not using GNU ld we use -z text
17221 # though, which does catch some bad symbols but isn't as heavy-handed
17222 # as -z defs.
17223 no_undefined_flag='$wl-z,text'
17224 allow_undefined_flag='$wl-z,nodefs'
17225 archive_cmds_need_lc=no
17226 hardcode_shlibpath_var=no
17227 hardcode_libdir_flag_spec='$wl-R,$libdir'
17228 hardcode_libdir_separator=':'
17229 link_all_deplibs=yes
17230 export_dynamic_flag_spec='$wl-Bexport'
17231 runpath_var='LD_RUN_PATH'
17232
17233 if test yes = "$GCC"; then
17234 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17235 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17236 else
17237 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17238 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17239 fi
17240 ;;
17241
17242 uts4*)
17243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17244 hardcode_libdir_flag_spec='-L$libdir'
17245 hardcode_shlibpath_var=no
17246 ;;
17247
17248 *)
17249 ld_shlibs=no
17250 ;;
17251 esac
17252
17253 if test sni = "$host_vendor"; then
17254 case $host in
17255 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17256 export_dynamic_flag_spec='$wl-Blargedynsym'
17257 ;;
17258 esac
17259 fi
17260 fi
17261
17262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17263 printf "%s\n" "$ld_shlibs" >&6; }
17264 test no = "$ld_shlibs" && can_build_shared=no
17265
17266 with_gnu_ld=$with_gnu_ld
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282 #
17283 # Do we need to explicitly link libc?
17284 #
17285 case "x$archive_cmds_need_lc" in
17286 x|xyes)
17287 # Assume -lc should be added
17288 archive_cmds_need_lc=yes
17289
17290 if test yes,yes = "$GCC,$enable_shared"; then
17291 case $archive_cmds in
17292 *'~'*)
17293 # FIXME: we may have to deal with multi-command sequences.
17294 ;;
17295 '$CC '*)
17296 # Test whether the compiler implicitly links with -lc since on some
17297 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17298 # to ld, don't add -lc before -lgcc.
17299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17300 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17301 if test ${lt_cv_archive_cmds_need_lc+y}
17302 then :
17303 printf %s "(cached) " >&6
17304 else case e in #(
17305 e) $RM conftest*
17306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17307
17308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17309 (eval $ac_compile) 2>&5
17310 ac_status=$?
17311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17312 test $ac_status = 0; } 2>conftest.err; then
17313 soname=conftest
17314 lib=conftest
17315 libobjs=conftest.$ac_objext
17316 deplibs=
17317 wl=$lt_prog_compiler_wl
17318 pic_flag=$lt_prog_compiler_pic
17319 compiler_flags=-v
17320 linker_flags=-v
17321 verstring=
17322 output_objdir=.
17323 libname=conftest
17324 lt_save_allow_undefined_flag=$allow_undefined_flag
17325 allow_undefined_flag=
17326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17327 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17328 ac_status=$?
17329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17330 test $ac_status = 0; }
17331 then
17332 lt_cv_archive_cmds_need_lc=no
17333 else
17334 lt_cv_archive_cmds_need_lc=yes
17335 fi
17336 allow_undefined_flag=$lt_save_allow_undefined_flag
17337 else
17338 cat conftest.err 1>&5
17339 fi
17340 $RM conftest*
17341 ;;
17342 esac
17343 fi
17344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17345 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17346 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17347 ;;
17348 esac
17349 fi
17350 ;;
17351 esac
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17505 printf %s "checking dynamic linker characteristics... " >&6; }
17506
17507 if test yes = "$GCC"; then
17508 case $host_os in
17509 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17510 *) lt_awk_arg='/^libraries:/' ;;
17511 esac
17512 case $host_os in
17513 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17514 *) lt_sed_strip_eq='s|=/|/|g' ;;
17515 esac
17516 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17517 case $lt_search_path_spec in
17518 *\;*)
17519 # if the path contains ";" then we assume it to be the separator
17520 # otherwise default to the standard path separator (i.e. ":") - it is
17521 # assumed that no part of a normal pathname contains ";" but that should
17522 # okay in the real world where ";" in dirpaths is itself problematic.
17523 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17524 ;;
17525 *)
17526 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17527 ;;
17528 esac
17529 # Ok, now we have the path, separated by spaces, we can step through it
17530 # and add multilib dir if necessary...
17531 lt_tmp_lt_search_path_spec=
17532 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17533 # ...but if some path component already ends with the multilib dir we assume
17534 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17535 case "$lt_multi_os_dir; $lt_search_path_spec " in
17536 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17537 lt_multi_os_dir=
17538 ;;
17539 esac
17540 for lt_sys_path in $lt_search_path_spec; do
17541 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17542 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17543 elif test -n "$lt_multi_os_dir"; then
17544 test -d "$lt_sys_path" && \
17545 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17546 fi
17547 done
17548 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17549 BEGIN {RS = " "; FS = "/|\n";} {
17550 lt_foo = "";
17551 lt_count = 0;
17552 for (lt_i = NF; lt_i > 0; lt_i--) {
17553 if ($lt_i != "" && $lt_i != ".") {
17554 if ($lt_i == "..") {
17555 lt_count++;
17556 } else {
17557 if (lt_count == 0) {
17558 lt_foo = "/" $lt_i lt_foo;
17559 } else {
17560 lt_count--;
17561 }
17562 }
17563 }
17564 }
17565 if (lt_foo != "") { lt_freq[lt_foo]++; }
17566 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17567 }'`
17568 # AWK program above erroneously prepends '/' to C:/dos/paths
17569 # for these hosts.
17570 case $host_os in
17571 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17572 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17573 esac
17574 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17575 else
17576 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17577 fi
17578 library_names_spec=
17579 libname_spec='lib$name'
17580 soname_spec=
17581 shrext_cmds=.so
17582 postinstall_cmds=
17583 postuninstall_cmds=
17584 finish_cmds=
17585 finish_eval=
17586 shlibpath_var=
17587 shlibpath_overrides_runpath=unknown
17588 version_type=none
17589 dynamic_linker="$host_os ld.so"
17590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17591 need_lib_prefix=unknown
17592 hardcode_into_libs=no
17593
17594 # when you set need_version to no, make sure it does not cause -set_version
17595 # flags to be left without arguments
17596 need_version=unknown
17597
17598
17599
17600 case $host_os in
17601 aix3*)
17602 version_type=linux # correct to gnu/linux during the next big refactor
17603 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17604 shlibpath_var=LIBPATH
17605
17606 # AIX 3 has no versioning support, so we append a major version to the name.
17607 soname_spec='$libname$release$shared_ext$major'
17608 ;;
17609
17610 aix[4-9]*)
17611 version_type=linux # correct to gnu/linux during the next big refactor
17612 need_lib_prefix=no
17613 need_version=no
17614 hardcode_into_libs=yes
17615 if test ia64 = "$host_cpu"; then
17616 # AIX 5 supports IA64
17617 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17618 shlibpath_var=LD_LIBRARY_PATH
17619 else
17620 # With GCC up to 2.95.x, collect2 would create an import file
17621 # for dependence libraries. The import file would start with
17622 # the line '#! .'. This would cause the generated library to
17623 # depend on '.', always an invalid library. This was fixed in
17624 # development snapshots of GCC prior to 3.0.
17625 case $host_os in
17626 aix4 | aix4.[01] | aix4.[01].*)
17627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17628 echo ' yes '
17629 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17630 :
17631 else
17632 can_build_shared=no
17633 fi
17634 ;;
17635 esac
17636 # Using Import Files as archive members, it is possible to support
17637 # filename-based versioning of shared library archives on AIX. While
17638 # this would work for both with and without runtime linking, it will
17639 # prevent static linking of such archives. So we do filename-based
17640 # shared library versioning with .so extension only, which is used
17641 # when both runtime linking and shared linking is enabled.
17642 # Unfortunately, runtime linking may impact performance, so we do
17643 # not want this to be the default eventually. Also, we use the
17644 # versioned .so libs for executables only if there is the -brtl
17645 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
17646 # To allow for filename-based versioning support, we need to create
17647 # libNAME.so.V as an archive file, containing:
17648 # *) an Import File, referring to the versioned filename of the
17649 # archive as well as the shared archive member, telling the
17650 # bitwidth (32 or 64) of that shared object, and providing the
17651 # list of exported symbols of that shared object, eventually
17652 # decorated with the 'weak' keyword
17653 # *) the shared object with the F_LOADONLY flag set, to really avoid
17654 # it being seen by the linker.
17655 # At run time we better use the real file rather than another symlink,
17656 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17657
17658 case $with_aix_soname,$aix_use_runtimelinking in
17659 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17660 # soname into executable. Probably we can add versioning support to
17661 # collect2, so additional links can be useful in future.
17662 aix,yes) # traditional libtool
17663 dynamic_linker='AIX unversionable lib.so'
17664 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17665 # instead of lib<name>.a to let people know that these are not
17666 # typical AIX shared libraries.
17667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17668 ;;
17669 aix,no) # traditional AIX only
17670 dynamic_linker='AIX lib.a(lib.so.V)'
17671 # We preserve .a as extension for shared libraries through AIX4.2
17672 # and later when we are not doing run time linking.
17673 library_names_spec='$libname$release.a $libname.a'
17674 soname_spec='$libname$release$shared_ext$major'
17675 ;;
17676 svr4,*) # full svr4 only
17677 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17678 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17679 # We do not specify a path in Import Files, so LIBPATH fires.
17680 shlibpath_overrides_runpath=yes
17681 ;;
17682 *,yes) # both, prefer svr4
17683 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17684 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17685 # unpreferred sharedlib libNAME.a needs extra handling
17686 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"'
17687 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"'
17688 # We do not specify a path in Import Files, so LIBPATH fires.
17689 shlibpath_overrides_runpath=yes
17690 ;;
17691 *,no) # both, prefer aix
17692 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17693 library_names_spec='$libname$release.a $libname.a'
17694 soname_spec='$libname$release$shared_ext$major'
17695 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17696 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)'
17697 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"'
17698 ;;
17699 esac
17700 shlibpath_var=LIBPATH
17701 fi
17702 ;;
17703
17704 amigaos*)
17705 case $host_cpu in
17706 powerpc)
17707 # Since July 2007 AmigaOS4 officially supports .so libraries.
17708 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17710 ;;
17711 m68k)
17712 library_names_spec='$libname.ixlibrary $libname.a'
17713 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17714 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'
17715 ;;
17716 esac
17717 ;;
17718
17719 beos*)
17720 library_names_spec='$libname$shared_ext'
17721 dynamic_linker="$host_os ld.so"
17722 shlibpath_var=LIBRARY_PATH
17723 ;;
17724
17725 bsdi[45]*)
17726 version_type=linux # correct to gnu/linux during the next big refactor
17727 need_version=no
17728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17729 soname_spec='$libname$release$shared_ext$major'
17730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17731 shlibpath_var=LD_LIBRARY_PATH
17732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17734 # the default ld.so.conf also contains /usr/contrib/lib and
17735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17736 # libtool to hard-code these into programs
17737 ;;
17738
17739 cygwin* | mingw* | windows* | pw32* | cegcc*)
17740 version_type=windows
17741 shrext_cmds=.dll
17742 need_version=no
17743 need_lib_prefix=no
17744
17745 case $GCC,$cc_basename in
17746 yes,*)
17747 # gcc
17748 library_names_spec='$libname.dll.a'
17749 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17750 # If user builds GCC with multilib enabled,
17751 # it should just install on $(libdir)
17752 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
17753 if test xyes = x"$multilib"; then
17754 postinstall_cmds='base_file=`basename \$file`~
17755 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17756 dldir=$destdir/`dirname \$dlpath`~
17757 $install_prog $dir/$dlname $destdir/$dlname~
17758 chmod a+x $destdir/$dlname~
17759 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17760 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
17761 fi'
17762 else
17763 postinstall_cmds='base_file=`basename \$file`~
17764 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17765 dldir=$destdir/`dirname \$dlpath`~
17766 test -d \$dldir || mkdir -p \$dldir~
17767 $install_prog $dir/$dlname \$dldir/$dlname~
17768 chmod a+x \$dldir/$dlname~
17769 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17770 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17771 fi'
17772 fi
17773 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17774 dlpath=$dir/\$dldll~
17775 $RM \$dlpath'
17776 shlibpath_overrides_runpath=yes
17777
17778 case $host_os in
17779 cygwin*)
17780 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17781 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17782
17783 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17784 ;;
17785 mingw* | windows* | cegcc*)
17786 # MinGW DLLs use traditional 'lib' prefix
17787 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17788 ;;
17789 pw32*)
17790 # pw32 DLLs use 'pw' prefix rather than 'lib'
17791 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17792 ;;
17793 esac
17794 dynamic_linker='Win32 ld.exe'
17795 ;;
17796
17797 *,cl* | *,icl*)
17798 # Native MSVC or ICC
17799 libname_spec='$name'
17800 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17801 library_names_spec='$libname.dll.lib'
17802
17803 case $build_os in
17804 mingw* | windows*)
17805 sys_lib_search_path_spec=
17806 lt_save_ifs=$IFS
17807 IFS=';'
17808 for lt_path in $LIB
17809 do
17810 IFS=$lt_save_ifs
17811 # Let DOS variable expansion print the short 8.3 style file name.
17812 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17813 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17814 done
17815 IFS=$lt_save_ifs
17816 # Convert to MSYS style.
17817 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17818 ;;
17819 cygwin*)
17820 # Convert to unix form, then to dos form, then back to unix form
17821 # but this time dos style (no spaces!) so that the unix form looks
17822 # like /cygdrive/c/PROGRA~1:/cygdr...
17823 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17824 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17825 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17826 ;;
17827 *)
17828 sys_lib_search_path_spec=$LIB
17829 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17830 # It is most probably a Windows format PATH.
17831 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17832 else
17833 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17834 fi
17835 # FIXME: find the short name or the path components, as spaces are
17836 # common. (e.g. "Program Files" -> "PROGRA~1")
17837 ;;
17838 esac
17839
17840 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17841 postinstall_cmds='base_file=`basename \$file`~
17842 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17843 dldir=$destdir/`dirname \$dlpath`~
17844 test -d \$dldir || mkdir -p \$dldir~
17845 $install_prog $dir/$dlname \$dldir/$dlname'
17846 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17847 dlpath=$dir/\$dldll~
17848 $RM \$dlpath'
17849 shlibpath_overrides_runpath=yes
17850 dynamic_linker='Win32 link.exe'
17851 ;;
17852
17853 *)
17854 # Assume MSVC and ICC wrapper
17855 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17856 dynamic_linker='Win32 ld.exe'
17857 ;;
17858 esac
17859 # FIXME: first we should search . and the directory the executable is in
17860 shlibpath_var=PATH
17861 ;;
17862
17863 darwin* | rhapsody*)
17864 dynamic_linker="$host_os dyld"
17865 version_type=darwin
17866 need_lib_prefix=no
17867 need_version=no
17868 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17869 soname_spec='$libname$release$major$shared_ext'
17870 shlibpath_overrides_runpath=yes
17871 shlibpath_var=DYLD_LIBRARY_PATH
17872 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17873
17874 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17875 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17876 ;;
17877
17878 dgux*)
17879 version_type=linux # correct to gnu/linux during the next big refactor
17880 need_lib_prefix=no
17881 need_version=no
17882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17883 soname_spec='$libname$release$shared_ext$major'
17884 shlibpath_var=LD_LIBRARY_PATH
17885 ;;
17886
17887 freebsd* | dragonfly* | midnightbsd*)
17888 # DragonFly does not have aout. When/if they implement a new
17889 # versioning mechanism, adjust this.
17890 if test -x /usr/bin/objformat; then
17891 objformat=`/usr/bin/objformat`
17892 else
17893 case $host_os in
17894 freebsd[23].*) objformat=aout ;;
17895 *) objformat=elf ;;
17896 esac
17897 fi
17898 version_type=freebsd-$objformat
17899 case $version_type in
17900 freebsd-elf*)
17901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17902 soname_spec='$libname$release$shared_ext$major'
17903 need_version=no
17904 need_lib_prefix=no
17905 ;;
17906 freebsd-*)
17907 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17908 need_version=yes
17909 ;;
17910 esac
17911 case $host_cpu in
17912 powerpc64)
17913 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
17914 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17917 int test_pointer_size[sizeof (void *) - 5];
17918
17919 _ACEOF
17920 if ac_fn_c_try_compile "$LINENO"
17921 then :
17922 shlibpath_var=LD_LIBRARY_PATH
17923 else case e in #(
17924 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
17925 esac
17926 fi
17927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17928 ;;
17929 *)
17930 shlibpath_var=LD_LIBRARY_PATH
17931 ;;
17932 esac
17933 case $host_os in
17934 freebsd2.*)
17935 shlibpath_overrides_runpath=yes
17936 ;;
17937 freebsd3.[01]* | freebsdelf3.[01]*)
17938 shlibpath_overrides_runpath=yes
17939 hardcode_into_libs=yes
17940 ;;
17941 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17942 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17943 shlibpath_overrides_runpath=no
17944 hardcode_into_libs=yes
17945 ;;
17946 *) # from 4.6 on, and DragonFly
17947 shlibpath_overrides_runpath=yes
17948 hardcode_into_libs=yes
17949 ;;
17950 esac
17951 ;;
17952
17953 haiku*)
17954 version_type=linux # correct to gnu/linux during the next big refactor
17955 need_lib_prefix=no
17956 need_version=no
17957 dynamic_linker="$host_os runtime_loader"
17958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17959 soname_spec='$libname$release$shared_ext$major'
17960 shlibpath_var=LIBRARY_PATH
17961 shlibpath_overrides_runpath=no
17962 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
17963 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
17964 hardcode_into_libs=no
17965 ;;
17966
17967 hpux9* | hpux10* | hpux11*)
17968 # Give a soname corresponding to the major version so that dld.sl refuses to
17969 # link against other versions.
17970 version_type=sunos
17971 need_lib_prefix=no
17972 need_version=no
17973 case $host_cpu in
17974 ia64*)
17975 shrext_cmds='.so'
17976 hardcode_into_libs=yes
17977 dynamic_linker="$host_os dld.so"
17978 shlibpath_var=LD_LIBRARY_PATH
17979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17981 soname_spec='$libname$release$shared_ext$major'
17982 if test 32 = "$HPUX_IA64_MODE"; then
17983 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17984 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17985 else
17986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17987 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17988 fi
17989 ;;
17990 hppa*64*)
17991 shrext_cmds='.sl'
17992 hardcode_into_libs=yes
17993 dynamic_linker="$host_os dld.sl"
17994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17997 soname_spec='$libname$release$shared_ext$major'
17998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18000 ;;
18001 *)
18002 shrext_cmds='.sl'
18003 dynamic_linker="$host_os dld.sl"
18004 shlibpath_var=SHLIB_PATH
18005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18007 soname_spec='$libname$release$shared_ext$major'
18008 ;;
18009 esac
18010 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18011 postinstall_cmds='chmod 555 $lib'
18012 # or fails outright, so override atomically:
18013 install_override_mode=555
18014 ;;
18015
18016 interix[3-9]*)
18017 version_type=linux # correct to gnu/linux during the next big refactor
18018 need_lib_prefix=no
18019 need_version=no
18020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18021 soname_spec='$libname$release$shared_ext$major'
18022 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18023 shlibpath_var=LD_LIBRARY_PATH
18024 shlibpath_overrides_runpath=no
18025 hardcode_into_libs=yes
18026 ;;
18027
18028 irix5* | irix6* | nonstopux*)
18029 case $host_os in
18030 nonstopux*) version_type=nonstopux ;;
18031 *)
18032 if test yes = "$lt_cv_prog_gnu_ld"; then
18033 version_type=linux # correct to gnu/linux during the next big refactor
18034 else
18035 version_type=irix
18036 fi ;;
18037 esac
18038 need_lib_prefix=no
18039 need_version=no
18040 soname_spec='$libname$release$shared_ext$major'
18041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18042 case $host_os in
18043 irix5* | nonstopux*)
18044 libsuff= shlibsuff=
18045 ;;
18046 *)
18047 case $LD in # libtool.m4 will add one of these switches to LD
18048 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18049 libsuff= shlibsuff= libmagic=32-bit;;
18050 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18051 libsuff=32 shlibsuff=N32 libmagic=N32;;
18052 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18053 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18054 *) libsuff= shlibsuff= libmagic=never-match;;
18055 esac
18056 ;;
18057 esac
18058 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18059 shlibpath_overrides_runpath=no
18060 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18061 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18062 hardcode_into_libs=yes
18063 ;;
18064
18065 # No shared lib support for Linux oldld, aout, or coff.
18066 linux*oldld* | linux*aout* | linux*coff*)
18067 dynamic_linker=no
18068 ;;
18069
18070 linux*android*)
18071 version_type=none # Android doesn't support versioned libraries.
18072 need_lib_prefix=no
18073 need_version=no
18074 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
18075 soname_spec='$libname$release$shared_ext'
18076 finish_cmds=
18077 shlibpath_var=LD_LIBRARY_PATH
18078 shlibpath_overrides_runpath=yes
18079
18080 # This implies no fast_install, which is unacceptable.
18081 # Some rework will be needed to allow for fast_install
18082 # before this can be enabled.
18083 hardcode_into_libs=yes
18084
18085 dynamic_linker='Android linker'
18086 # -rpath works at least for libraries that are not overridden by
18087 # libraries installed in system locations.
18088 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18089 ;;
18090
18091 # This must be glibc/ELF.
18092 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18093 version_type=linux # correct to gnu/linux during the next big refactor
18094 need_lib_prefix=no
18095 need_version=no
18096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18097 soname_spec='$libname$release$shared_ext$major'
18098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18099 shlibpath_var=LD_LIBRARY_PATH
18100 shlibpath_overrides_runpath=no
18101
18102 # Some binutils ld are patched to set DT_RUNPATH
18103 if test ${lt_cv_shlibpath_overrides_runpath+y}
18104 then :
18105 printf %s "(cached) " >&6
18106 else case e in #(
18107 e) lt_cv_shlibpath_overrides_runpath=no
18108 save_LDFLAGS=$LDFLAGS
18109 save_libdir=$libdir
18110 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18111 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18113 /* end confdefs.h. */
18114
18115 int
18116 main (void)
18117 {
18118
18119 ;
18120 return 0;
18121 }
18122 _ACEOF
18123 if ac_fn_c_try_link "$LINENO"
18124 then :
18125 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18126 then :
18127 lt_cv_shlibpath_overrides_runpath=yes
18128 fi
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18131 conftest$ac_exeext conftest.$ac_ext
18132 LDFLAGS=$save_LDFLAGS
18133 libdir=$save_libdir
18134 ;;
18135 esac
18136 fi
18137
18138 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18139
18140 # This implies no fast_install, which is unacceptable.
18141 # Some rework will be needed to allow for fast_install
18142 # before this can be enabled.
18143 hardcode_into_libs=yes
18144
18145 # Ideally, we could use ldconfig to report *all* directories which are
18146 # searched for libraries, however this is still not possible. Aside from not
18147 # being certain /sbin/ldconfig is available, command
18148 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18149 # even though it is searched at run-time. Try to do the best guess by
18150 # appending ld.so.conf contents (and includes) to the search path.
18151 if test -f /etc/ld.so.conf; then
18152 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' ' '`
18153 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18154 fi
18155
18156 # We used to test for /lib/ld.so.1 and disable shared libraries on
18157 # powerpc, because MkLinux only supported shared libraries with the
18158 # GNU dynamic linker. Since this was broken with cross compilers,
18159 # most powerpc-linux boxes support dynamic linking these days and
18160 # people can always --disable-shared, the test was removed, and we
18161 # assume the GNU/Linux dynamic linker is in use.
18162 dynamic_linker='GNU/Linux ld.so'
18163 ;;
18164
18165 netbsdelf*-gnu)
18166 version_type=linux
18167 need_lib_prefix=no
18168 need_version=no
18169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18170 soname_spec='$libname$release$shared_ext$major'
18171 shlibpath_var=LD_LIBRARY_PATH
18172 shlibpath_overrides_runpath=no
18173 hardcode_into_libs=yes
18174 dynamic_linker='NetBSD ld.elf_so'
18175 ;;
18176
18177 netbsd*)
18178 version_type=sunos
18179 need_lib_prefix=no
18180 need_version=no
18181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18182 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18184 dynamic_linker='NetBSD (a.out) ld.so'
18185 else
18186 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18187 soname_spec='$libname$release$shared_ext$major'
18188 dynamic_linker='NetBSD ld.elf_so'
18189 fi
18190 shlibpath_var=LD_LIBRARY_PATH
18191 shlibpath_overrides_runpath=yes
18192 hardcode_into_libs=yes
18193 ;;
18194
18195 *-mlibc)
18196 version_type=linux # correct to gnu/linux during the next big refactor
18197 need_lib_prefix=no
18198 need_version=no
18199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18200 soname_spec='$libname$release$shared_ext$major'
18201 dynamic_linker='mlibc ld.so'
18202 shlibpath_var=LD_LIBRARY_PATH
18203 shlibpath_overrides_runpath=no
18204 hardcode_into_libs=yes
18205 ;;
18206
18207 newsos6)
18208 version_type=linux # correct to gnu/linux during the next big refactor
18209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18210 shlibpath_var=LD_LIBRARY_PATH
18211 shlibpath_overrides_runpath=yes
18212 ;;
18213
18214 *nto* | *qnx*)
18215 version_type=qnx
18216 need_lib_prefix=no
18217 need_version=no
18218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18219 soname_spec='$libname$release$shared_ext$major'
18220 shlibpath_var=LD_LIBRARY_PATH
18221 shlibpath_overrides_runpath=no
18222 hardcode_into_libs=yes
18223 dynamic_linker='ldqnx.so'
18224 ;;
18225
18226 openbsd*)
18227 version_type=sunos
18228 sys_lib_dlsearch_path_spec=/usr/lib
18229 need_lib_prefix=no
18230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18231 need_version=no
18232 else
18233 need_version=yes
18234 fi
18235 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18237 shlibpath_var=LD_LIBRARY_PATH
18238 shlibpath_overrides_runpath=yes
18239 ;;
18240
18241 os2*)
18242 libname_spec='$name'
18243 version_type=windows
18244 shrext_cmds=.dll
18245 need_version=no
18246 need_lib_prefix=no
18247 # OS/2 can only load a DLL with a base name of 8 characters or less.
18248 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18249 v=$($ECHO $release$versuffix | tr -d .-);
18250 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18251 $ECHO $n$v`$shared_ext'
18252 library_names_spec='${libname}_dll.$libext'
18253 dynamic_linker='OS/2 ld.exe'
18254 shlibpath_var=BEGINLIBPATH
18255 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18256 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18257 postinstall_cmds='base_file=`basename \$file`~
18258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18259 dldir=$destdir/`dirname \$dlpath`~
18260 test -d \$dldir || mkdir -p \$dldir~
18261 $install_prog $dir/$dlname \$dldir/$dlname~
18262 chmod a+x \$dldir/$dlname~
18263 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18264 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18265 fi'
18266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18267 dlpath=$dir/\$dldll~
18268 $RM \$dlpath'
18269 ;;
18270
18271 osf3* | osf4* | osf5*)
18272 version_type=osf
18273 need_lib_prefix=no
18274 need_version=no
18275 soname_spec='$libname$release$shared_ext$major'
18276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18277 shlibpath_var=LD_LIBRARY_PATH
18278 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18280 ;;
18281
18282 rdos*)
18283 dynamic_linker=no
18284 ;;
18285
18286 serenity*)
18287 version_type=linux # correct to gnu/linux during the next big refactor
18288 need_lib_prefix=no
18289 need_version=no
18290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18291 soname_spec='$libname$release$shared_ext$major'
18292 shlibpath_var=LD_LIBRARY_PATH
18293 shlibpath_overrides_runpath=no
18294 dynamic_linker='SerenityOS LibELF'
18295 ;;
18296
18297 solaris*)
18298 version_type=linux # correct to gnu/linux during the next big refactor
18299 need_lib_prefix=no
18300 need_version=no
18301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18302 soname_spec='$libname$release$shared_ext$major'
18303 shlibpath_var=LD_LIBRARY_PATH
18304 shlibpath_overrides_runpath=yes
18305 hardcode_into_libs=yes
18306 # ldd complains unless libraries are executable
18307 postinstall_cmds='chmod +x $lib'
18308 ;;
18309
18310 sunos4*)
18311 version_type=sunos
18312 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18313 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18314 shlibpath_var=LD_LIBRARY_PATH
18315 shlibpath_overrides_runpath=yes
18316 if test yes = "$with_gnu_ld"; then
18317 need_lib_prefix=no
18318 fi
18319 need_version=yes
18320 ;;
18321
18322 sysv4 | sysv4.3*)
18323 version_type=linux # correct to gnu/linux during the next big refactor
18324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18325 soname_spec='$libname$release$shared_ext$major'
18326 shlibpath_var=LD_LIBRARY_PATH
18327 case $host_vendor in
18328 sni)
18329 shlibpath_overrides_runpath=no
18330 need_lib_prefix=no
18331 runpath_var=LD_RUN_PATH
18332 ;;
18333 siemens)
18334 need_lib_prefix=no
18335 ;;
18336 motorola)
18337 need_lib_prefix=no
18338 need_version=no
18339 shlibpath_overrides_runpath=no
18340 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18341 ;;
18342 esac
18343 ;;
18344
18345 sysv4*MP*)
18346 if test -d /usr/nec; then
18347 version_type=linux # correct to gnu/linux during the next big refactor
18348 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18349 soname_spec='$libname$shared_ext.$major'
18350 shlibpath_var=LD_LIBRARY_PATH
18351 fi
18352 ;;
18353
18354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18355 version_type=sco
18356 need_lib_prefix=no
18357 need_version=no
18358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18359 soname_spec='$libname$release$shared_ext$major'
18360 shlibpath_var=LD_LIBRARY_PATH
18361 shlibpath_overrides_runpath=yes
18362 hardcode_into_libs=yes
18363 if test yes = "$with_gnu_ld"; then
18364 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18365 else
18366 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18367 case $host_os in
18368 sco3.2v5*)
18369 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18370 ;;
18371 esac
18372 fi
18373 sys_lib_dlsearch_path_spec='/usr/lib'
18374 ;;
18375
18376 tpf*)
18377 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18378 version_type=linux # correct to gnu/linux during the next big refactor
18379 need_lib_prefix=no
18380 need_version=no
18381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18382 shlibpath_var=LD_LIBRARY_PATH
18383 shlibpath_overrides_runpath=no
18384 hardcode_into_libs=yes
18385 ;;
18386
18387 uts4*)
18388 version_type=linux # correct to gnu/linux during the next big refactor
18389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18390 soname_spec='$libname$release$shared_ext$major'
18391 shlibpath_var=LD_LIBRARY_PATH
18392 ;;
18393
18394 emscripten*)
18395 version_type=none
18396 need_lib_prefix=no
18397 need_version=no
18398 library_names_spec='$libname$release$shared_ext'
18399 soname_spec='$libname$release$shared_ext'
18400 finish_cmds=
18401 dynamic_linker="Emscripten linker"
18402 lt_prog_compiler_wl=
18403 lt_prog_compiler_pic=
18404 lt_prog_compiler_static=
18405
18406
18407 if test yes = "$GCC"; then
18408 lt_prog_compiler_wl='-Wl,'
18409 lt_prog_compiler_static='-static'
18410
18411 case $host_os in
18412 aix*)
18413 # All AIX code is PIC.
18414 if test ia64 = "$host_cpu"; then
18415 # AIX 5 now supports IA64 processor
18416 lt_prog_compiler_static='-Bstatic'
18417 fi
18418 lt_prog_compiler_pic='-fPIC'
18419 ;;
18420
18421 amigaos*)
18422 case $host_cpu in
18423 powerpc)
18424 # see comment about AmigaOS4 .so support
18425 lt_prog_compiler_pic='-fPIC'
18426 ;;
18427 m68k)
18428 # FIXME: we need at least 68020 code to build shared libraries, but
18429 # adding the '-m68020' flag to GCC prevents building anything better,
18430 # like '-m68040'.
18431 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18432 ;;
18433 esac
18434 ;;
18435
18436 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18437 # PIC is the default for these OSes.
18438 ;;
18439
18440 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
18441 # This hack is so that the source file can tell whether it is being
18442 # built for inclusion in a dll (and should export symbols for example).
18443 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18444 # (--disable-auto-import) libraries
18445 lt_prog_compiler_pic='-DDLL_EXPORT'
18446 case $host_os in
18447 os2*)
18448 lt_prog_compiler_static='$wl-static'
18449 ;;
18450 esac
18451 ;;
18452
18453 darwin* | rhapsody*)
18454 # PIC is the default on this platform
18455 # Common symbols not allowed in MH_DYLIB files
18456 lt_prog_compiler_pic='-fno-common'
18457 ;;
18458
18459 haiku*)
18460 # PIC is the default for Haiku.
18461 # The "-static" flag exists, but is broken.
18462 lt_prog_compiler_static=
18463 ;;
18464
18465 hpux*)
18466 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18467 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18468 # sets the default TLS model and affects inlining.
18469 case $host_cpu in
18470 hppa*64*)
18471 # +Z the default
18472 ;;
18473 *)
18474 lt_prog_compiler_pic='-fPIC'
18475 ;;
18476 esac
18477 ;;
18478
18479 interix[3-9]*)
18480 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18481 # Instead, we relocate shared libraries at runtime.
18482 ;;
18483
18484 msdosdjgpp*)
18485 # Just because we use GCC doesn't mean we suddenly get shared libraries
18486 # on systems that don't support them.
18487 lt_prog_compiler_can_build_shared=no
18488 enable_shared=no
18489 ;;
18490
18491 *nto* | *qnx*)
18492 # QNX uses GNU C++, but need to define -shared option too, otherwise
18493 # it will coredump.
18494 lt_prog_compiler_pic='-fPIC -shared'
18495 ;;
18496
18497 sysv4*MP*)
18498 if test -d /usr/nec; then
18499 lt_prog_compiler_pic=-Kconform_pic
18500 fi
18501 ;;
18502
18503 *)
18504 lt_prog_compiler_pic='-fPIC'
18505 ;;
18506 esac
18507
18508 case $cc_basename in
18509 nvcc*) # Cuda Compiler Driver 2.2
18510 lt_prog_compiler_wl='-Xlinker '
18511 if test -n "$lt_prog_compiler_pic"; then
18512 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
18513 fi
18514 ;;
18515 esac
18516 else
18517 # PORTME Check for flag to pass linker flags through the system compiler.
18518 case $host_os in
18519 aix*)
18520 lt_prog_compiler_wl='-Wl,'
18521 if test ia64 = "$host_cpu"; then
18522 # AIX 5 now supports IA64 processor
18523 lt_prog_compiler_static='-Bstatic'
18524 else
18525 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18526 fi
18527 ;;
18528
18529 darwin* | rhapsody*)
18530 # PIC is the default on this platform
18531 # Common symbols not allowed in MH_DYLIB files
18532 lt_prog_compiler_pic='-fno-common'
18533 case $cc_basename in
18534 nagfor*)
18535 # NAG Fortran compiler
18536 lt_prog_compiler_wl='-Wl,-Wl,,'
18537 lt_prog_compiler_pic='-PIC'
18538 lt_prog_compiler_static='-Bstatic'
18539 ;;
18540 esac
18541 ;;
18542
18543 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
18544 # This hack is so that the source file can tell whether it is being
18545 # built for inclusion in a dll (and should export symbols for example).
18546 lt_prog_compiler_pic='-DDLL_EXPORT'
18547 case $host_os in
18548 os2*)
18549 lt_prog_compiler_static='$wl-static'
18550 ;;
18551 esac
18552 ;;
18553
18554 hpux9* | hpux10* | hpux11*)
18555 lt_prog_compiler_wl='-Wl,'
18556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18557 # not for PA HP-UX.
18558 case $host_cpu in
18559 hppa*64*|ia64*)
18560 # +Z the default
18561 ;;
18562 *)
18563 lt_prog_compiler_pic='+Z'
18564 ;;
18565 esac
18566 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18567 lt_prog_compiler_static='$wl-a ${wl}archive'
18568 ;;
18569
18570 irix5* | irix6* | nonstopux*)
18571 lt_prog_compiler_wl='-Wl,'
18572 # PIC (with -KPIC) is the default.
18573 lt_prog_compiler_static='-non_shared'
18574 ;;
18575
18576 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18577 case $cc_basename in
18578 # old Intel for x86_64, which still supported -KPIC.
18579 ecc*)
18580 lt_prog_compiler_wl='-Wl,'
18581 lt_prog_compiler_pic='-KPIC'
18582 lt_prog_compiler_static='-static'
18583 ;;
18584 *flang* | ftn | f18* | f95*)
18585 # Flang compiler.
18586 lt_prog_compiler_wl='-Wl,'
18587 lt_prog_compiler_pic='-fPIC'
18588 lt_prog_compiler_static='-static'
18589 ;;
18590 # icc used to be incompatible with GCC.
18591 # ICC 10 doesn't accept -KPIC any more.
18592 icc* | ifort*)
18593 lt_prog_compiler_wl='-Wl,'
18594 lt_prog_compiler_pic='-fPIC'
18595 lt_prog_compiler_static='-static'
18596 ;;
18597 # Lahey Fortran 8.1.
18598 lf95*)
18599 lt_prog_compiler_wl='-Wl,'
18600 lt_prog_compiler_pic='--shared'
18601 lt_prog_compiler_static='--static'
18602 ;;
18603 nagfor*)
18604 # NAG Fortran compiler
18605 lt_prog_compiler_wl='-Wl,-Wl,,'
18606 lt_prog_compiler_pic='-PIC'
18607 lt_prog_compiler_static='-Bstatic'
18608 ;;
18609 tcc*)
18610 # Fabrice Bellard et al's Tiny C Compiler
18611 lt_prog_compiler_wl='-Wl,'
18612 lt_prog_compiler_pic='-fPIC'
18613 lt_prog_compiler_static='-static'
18614 ;;
18615 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18616 # Portland Group compilers (*not* the Pentium gcc compiler,
18617 # which looks to be a dead project)
18618 lt_prog_compiler_wl='-Wl,'
18619 lt_prog_compiler_pic='-fpic'
18620 lt_prog_compiler_static='-Bstatic'
18621 ;;
18622 ccc*)
18623 lt_prog_compiler_wl='-Wl,'
18624 # All Alpha code is PIC.
18625 lt_prog_compiler_static='-non_shared'
18626 ;;
18627 xl* | bgxl* | bgf* | mpixl*)
18628 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18629 lt_prog_compiler_wl='-Wl,'
18630 lt_prog_compiler_pic='-qpic'
18631 lt_prog_compiler_static='-qstaticlink'
18632 ;;
18633 *)
18634 case `$CC -V 2>&1 | $SED 5q` in
18635 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
18636 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18637 lt_prog_compiler_pic='-KPIC'
18638 lt_prog_compiler_static='-Bstatic'
18639 lt_prog_compiler_wl=''
18640 ;;
18641 *Sun\ F* | *Sun*Fortran*)
18642 lt_prog_compiler_pic='-KPIC'
18643 lt_prog_compiler_static='-Bstatic'
18644 lt_prog_compiler_wl='-Qoption ld '
18645 ;;
18646 *Sun\ C*)
18647 # Sun C 5.9
18648 lt_prog_compiler_pic='-KPIC'
18649 lt_prog_compiler_static='-Bstatic'
18650 lt_prog_compiler_wl='-Wl,'
18651 ;;
18652 *Intel*\ [CF]*Compiler*)
18653 lt_prog_compiler_wl='-Wl,'
18654 lt_prog_compiler_pic='-fPIC'
18655 lt_prog_compiler_static='-static'
18656 ;;
18657 *Portland\ Group*)
18658 lt_prog_compiler_wl='-Wl,'
18659 lt_prog_compiler_pic='-fpic'
18660 lt_prog_compiler_static='-Bstatic'
18661 ;;
18662 esac
18663 ;;
18664 esac
18665 ;;
18666
18667 newsos6)
18668 lt_prog_compiler_pic='-KPIC'
18669 lt_prog_compiler_static='-Bstatic'
18670 ;;
18671
18672 *-mlibc)
18673 lt_prog_compiler_wl='-Wl,'
18674 lt_prog_compiler_pic='-fPIC'
18675 lt_prog_compiler_static='-static'
18676 ;;
18677
18678 *nto* | *qnx*)
18679 # QNX uses GNU C++, but need to define -shared option too, otherwise
18680 # it will coredump.
18681 lt_prog_compiler_pic='-fPIC -shared'
18682 ;;
18683
18684 osf3* | osf4* | osf5*)
18685 lt_prog_compiler_wl='-Wl,'
18686 # All OSF/1 code is PIC.
18687 lt_prog_compiler_static='-non_shared'
18688 ;;
18689
18690 rdos*)
18691 lt_prog_compiler_static='-non_shared'
18692 ;;
18693
18694 serenity*)
18695 ;;
18696
18697 solaris*)
18698 lt_prog_compiler_pic='-KPIC'
18699 lt_prog_compiler_static='-Bstatic'
18700 case $cc_basename in
18701 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
18702 lt_prog_compiler_wl='-Qoption ld ';;
18703 *)
18704 lt_prog_compiler_wl='-Wl,';;
18705 esac
18706 ;;
18707
18708 sunos4*)
18709 lt_prog_compiler_wl='-Qoption ld '
18710 lt_prog_compiler_pic='-PIC'
18711 lt_prog_compiler_static='-Bstatic'
18712 ;;
18713
18714 sysv4 | sysv4.2uw2* | sysv4.3*)
18715 lt_prog_compiler_wl='-Wl,'
18716 lt_prog_compiler_pic='-KPIC'
18717 lt_prog_compiler_static='-Bstatic'
18718 ;;
18719
18720 sysv4*MP*)
18721 if test -d /usr/nec; then
18722 lt_prog_compiler_pic='-Kconform_pic'
18723 lt_prog_compiler_static='-Bstatic'
18724 fi
18725 ;;
18726
18727 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18728 lt_prog_compiler_wl='-Wl,'
18729 lt_prog_compiler_pic='-KPIC'
18730 lt_prog_compiler_static='-Bstatic'
18731 ;;
18732
18733 unicos*)
18734 lt_prog_compiler_wl='-Wl,'
18735 lt_prog_compiler_can_build_shared=no
18736 ;;
18737
18738 uts4*)
18739 lt_prog_compiler_pic='-pic'
18740 lt_prog_compiler_static='-Bstatic'
18741 ;;
18742
18743 *)
18744 lt_prog_compiler_can_build_shared=no
18745 ;;
18746 esac
18747 fi
18748
18749 case $host_os in
18750 # For platforms that do not support PIC, -DPIC is meaningless:
18751 *djgpp*)
18752 lt_prog_compiler_pic=
18753 ;;
18754 *)
18755 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18756 ;;
18757 esac
18758
18759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18760 printf %s "checking for $compiler option to produce PIC... " >&6; }
18761 if test ${lt_cv_prog_compiler_pic+y}
18762 then :
18763 printf %s "(cached) " >&6
18764 else case e in #(
18765 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
18766 esac
18767 fi
18768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
18769 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
18770 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
18771
18772 #
18773 # Check to make sure the PIC flag actually works.
18774 #
18775 if test -n "$lt_prog_compiler_pic"; then
18776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18777 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18778 if test ${lt_cv_prog_compiler_pic_works+y}
18779 then :
18780 printf %s "(cached) " >&6
18781 else case e in #(
18782 e) lt_cv_prog_compiler_pic_works=no
18783 ac_outfile=conftest.$ac_objext
18784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18785 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
18786 # Insert the option either (1) after the last *FLAGS variable, or
18787 # (2) before a word containing "conftest.", or (3) at the end.
18788 # Note that $ac_compile itself does not contain backslashes and begins
18789 # with a dollar sign (not a hyphen), so the echo should work correctly.
18790 # The option is referenced via a variable to avoid confusing sed.
18791 lt_compile=`echo "$ac_compile" | $SED \
18792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18794 -e 's:$: $lt_compiler_flag:'`
18795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18796 (eval "$lt_compile" 2>conftest.err)
18797 ac_status=$?
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 if (exit $ac_status) && test -s "$ac_outfile"; then
18801 # The compiler can only warn and ignore the option if not recognized
18802 # So say no if there are warnings other than the usual output.
18803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18806 lt_cv_prog_compiler_pic_works=yes
18807 fi
18808 fi
18809 $RM conftest*
18810 ;;
18811 esac
18812 fi
18813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18814 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
18815
18816 if test yes = "$lt_cv_prog_compiler_pic_works"; then
18817 case $lt_prog_compiler_pic in
18818 "" | " "*) ;;
18819 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18820 esac
18821 else
18822 lt_prog_compiler_pic=
18823 lt_prog_compiler_can_build_shared=no
18824 fi
18825
18826 fi
18827
18828
18829
18830
18831
18832 #
18833 # Check to make sure the static flag actually works.
18834 #
18835 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18837 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18838 if test ${lt_cv_prog_compiler_static_works+y}
18839 then :
18840 printf %s "(cached) " >&6
18841 else case e in #(
18842 e) lt_cv_prog_compiler_static_works=no
18843 save_LDFLAGS=$LDFLAGS
18844 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18845 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18846 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18847 # The linker can only warn and ignore the option if not recognized
18848 # So say no if there are warnings
18849 if test -s conftest.err; then
18850 # Append any errors to the config.log.
18851 cat conftest.err 1>&5
18852 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18854 if diff conftest.exp conftest.er2 >/dev/null; then
18855 lt_cv_prog_compiler_static_works=yes
18856 fi
18857 else
18858 lt_cv_prog_compiler_static_works=yes
18859 fi
18860 fi
18861 $RM -r conftest*
18862 LDFLAGS=$save_LDFLAGS
18863 ;;
18864 esac
18865 fi
18866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18867 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
18868
18869 if test yes = "$lt_cv_prog_compiler_static_works"; then
18870 :
18871 else
18872 lt_prog_compiler_static=
18873 fi
18874
18875
18876
18877 ='-fPIC'
18878 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
18879 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
18880 archive_cmds_need_lc=no
18881 no_undefined_flag=
18882 ;;
18883
18884 *)
18885 dynamic_linker=no
18886 ;;
18887 esac
18888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18889 printf "%s\n" "$dynamic_linker" >&6; }
18890 test no = "$dynamic_linker" && can_build_shared=no
18891
18892 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18893 if test yes = "$GCC"; then
18894 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18895 fi
18896
18897 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18898 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18899 fi
18900
18901 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18902 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18903 fi
18904
18905 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18906 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18907
18908 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18909 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18910
18911 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18912 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19011 printf %s "checking how to hardcode library paths into programs... " >&6; }
19012 hardcode_action=
19013 if test -n "$hardcode_libdir_flag_spec" ||
19014 test -n "$runpath_var" ||
19015 test yes = "$hardcode_automatic"; then
19016
19017 # We can hardcode non-existent directories.
19018 if test no != "$hardcode_direct" &&
19019 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19020 # have to relink, otherwise we might link with an installed library
19021 # when we should be linking with a yet-to-be-installed one
19022 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
19023 test no != "$hardcode_minus_L"; then
19024 # Linking always hardcodes the temporary library directory.
19025 hardcode_action=relink
19026 else
19027 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19028 hardcode_action=immediate
19029 fi
19030 else
19031 # We cannot hardcode anything, or else we can only hardcode existing
19032 # directories.
19033 hardcode_action=unsupported
19034 fi
19035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19036 printf "%s\n" "$hardcode_action" >&6; }
19037
19038 if test relink = "$hardcode_action" ||
19039 test yes = "$inherit_rpath"; then
19040 # Fast installation is not supported
19041 enable_fast_install=no
19042 elif test yes = "$shlibpath_overrides_runpath" ||
19043 test no = "$enable_shared"; then
19044 # Fast installation is not necessary
19045 enable_fast_install=needless
19046 fi
19047
19048
19049
19050
19051
19052
19053 if test yes != "$enable_dlopen"; then
19054 enable_dlopen=unknown
19055 enable_dlopen_self=unknown
19056 enable_dlopen_self_static=unknown
19057 else
19058 lt_cv_dlopen=no
19059 lt_cv_dlopen_libs=
19060
19061 case $host_os in
19062 beos*)
19063 lt_cv_dlopen=load_add_on
19064 lt_cv_dlopen_libs=
19065 lt_cv_dlopen_self=yes
19066 ;;
19067
19068 mingw* | windows* | pw32* | cegcc*)
19069 lt_cv_dlopen=LoadLibrary
19070 lt_cv_dlopen_libs=
19071 ;;
19072
19073 cygwin*)
19074 lt_cv_dlopen=dlopen
19075 lt_cv_dlopen_libs=
19076 ;;
19077
19078 darwin*)
19079 # if libdl is installed we need to link against it
19080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19081 printf %s "checking for dlopen in -ldl... " >&6; }
19082 if test ${ac_cv_lib_dl_dlopen+y}
19083 then :
19084 printf %s "(cached) " >&6
19085 else case e in #(
19086 e) ac_check_lib_save_LIBS=$LIBS
19087 LIBS="-ldl $LIBS"
19088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19089 /* end confdefs.h. */
19090
19091 /* Override any GCC internal prototype to avoid an error.
19092 Use char because int might match the return type of a GCC
19093 builtin and then its argument prototype would still apply.
19094 The 'extern "C"' is for builds by C++ compilers;
19095 although this is not generally supported in C code supporting it here
19096 has little cost and some practical benefit (sr 110532). */
19097 #ifdef __cplusplus
19098 extern "C"
19099 #endif
19100 char dlopen (void);
19101 int
19102 main (void)
19103 {
19104 return dlopen ();
19105 ;
19106 return 0;
19107 }
19108 _ACEOF
19109 if ac_fn_c_try_link "$LINENO"
19110 then :
19111 ac_cv_lib_dl_dlopen=yes
19112 else case e in #(
19113 e) ac_cv_lib_dl_dlopen=no ;;
19114 esac
19115 fi
19116 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19117 conftest$ac_exeext conftest.$ac_ext
19118 LIBS=$ac_check_lib_save_LIBS ;;
19119 esac
19120 fi
19121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19122 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19123 if test "x$ac_cv_lib_dl_dlopen" = xyes
19124 then :
19125 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19126 else case e in #(
19127 e)
19128 lt_cv_dlopen=dyld
19129 lt_cv_dlopen_libs=
19130 lt_cv_dlopen_self=yes
19131 ;;
19132 esac
19133 fi
19134
19135 ;;
19136
19137 tpf*)
19138 # Don't try to run any link tests for TPF. We know it's impossible
19139 # because TPF is a cross-compiler, and we know how we open DSOs.
19140 lt_cv_dlopen=dlopen
19141 lt_cv_dlopen_libs=
19142 lt_cv_dlopen_self=no
19143 ;;
19144
19145 *)
19146 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19147 if test "x$ac_cv_func_shl_load" = xyes
19148 then :
19149 lt_cv_dlopen=shl_load
19150 else case e in #(
19151 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19152 printf %s "checking for shl_load in -ldld... " >&6; }
19153 if test ${ac_cv_lib_dld_shl_load+y}
19154 then :
19155 printf %s "(cached) " >&6
19156 else case e in #(
19157 e) ac_check_lib_save_LIBS=$LIBS
19158 LIBS="-ldld $LIBS"
19159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19160 /* end confdefs.h. */
19161
19162 /* Override any GCC internal prototype to avoid an error.
19163 Use char because int might match the return type of a GCC
19164 builtin and then its argument prototype would still apply.
19165 The 'extern "C"' is for builds by C++ compilers;
19166 although this is not generally supported in C code supporting it here
19167 has little cost and some practical benefit (sr 110532). */
19168 #ifdef __cplusplus
19169 extern "C"
19170 #endif
19171 char shl_load (void);
19172 int
19173 main (void)
19174 {
19175 return shl_load ();
19176 ;
19177 return 0;
19178 }
19179 _ACEOF
19180 if ac_fn_c_try_link "$LINENO"
19181 then :
19182 ac_cv_lib_dld_shl_load=yes
19183 else case e in #(
19184 e) ac_cv_lib_dld_shl_load=no ;;
19185 esac
19186 fi
19187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19188 conftest$ac_exeext conftest.$ac_ext
19189 LIBS=$ac_check_lib_save_LIBS ;;
19190 esac
19191 fi
19192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19193 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
19194 if test "x$ac_cv_lib_dld_shl_load" = xyes
19195 then :
19196 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
19197 else case e in #(
19198 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19199 if test "x$ac_cv_func_dlopen" = xyes
19200 then :
19201 lt_cv_dlopen=dlopen
19202 else case e in #(
19203 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19204 printf %s "checking for dlopen in -ldl... " >&6; }
19205 if test ${ac_cv_lib_dl_dlopen+y}
19206 then :
19207 printf %s "(cached) " >&6
19208 else case e in #(
19209 e) ac_check_lib_save_LIBS=$LIBS
19210 LIBS="-ldl $LIBS"
19211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h. */
19213
19214 /* Override any GCC internal prototype to avoid an error.
19215 Use char because int might match the return type of a GCC
19216 builtin and then its argument prototype would still apply.
19217 The 'extern "C"' is for builds by C++ compilers;
19218 although this is not generally supported in C code supporting it here
19219 has little cost and some practical benefit (sr 110532). */
19220 #ifdef __cplusplus
19221 extern "C"
19222 #endif
19223 char dlopen (void);
19224 int
19225 main (void)
19226 {
19227 return dlopen ();
19228 ;
19229 return 0;
19230 }
19231 _ACEOF
19232 if ac_fn_c_try_link "$LINENO"
19233 then :
19234 ac_cv_lib_dl_dlopen=yes
19235 else case e in #(
19236 e) ac_cv_lib_dl_dlopen=no ;;
19237 esac
19238 fi
19239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19240 conftest$ac_exeext conftest.$ac_ext
19241 LIBS=$ac_check_lib_save_LIBS ;;
19242 esac
19243 fi
19244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19245 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19246 if test "x$ac_cv_lib_dl_dlopen" = xyes
19247 then :
19248 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19249 else case e in #(
19250 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19251 printf %s "checking for dlopen in -lsvld... " >&6; }
19252 if test ${ac_cv_lib_svld_dlopen+y}
19253 then :
19254 printf %s "(cached) " >&6
19255 else case e in #(
19256 e) ac_check_lib_save_LIBS=$LIBS
19257 LIBS="-lsvld $LIBS"
19258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19259 /* end confdefs.h. */
19260
19261 /* Override any GCC internal prototype to avoid an error.
19262 Use char because int might match the return type of a GCC
19263 builtin and then its argument prototype would still apply.
19264 The 'extern "C"' is for builds by C++ compilers;
19265 although this is not generally supported in C code supporting it here
19266 has little cost and some practical benefit (sr 110532). */
19267 #ifdef __cplusplus
19268 extern "C"
19269 #endif
19270 char dlopen (void);
19271 int
19272 main (void)
19273 {
19274 return dlopen ();
19275 ;
19276 return 0;
19277 }
19278 _ACEOF
19279 if ac_fn_c_try_link "$LINENO"
19280 then :
19281 ac_cv_lib_svld_dlopen=yes
19282 else case e in #(
19283 e) ac_cv_lib_svld_dlopen=no ;;
19284 esac
19285 fi
19286 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19287 conftest$ac_exeext conftest.$ac_ext
19288 LIBS=$ac_check_lib_save_LIBS ;;
19289 esac
19290 fi
19291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19292 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
19293 if test "x$ac_cv_lib_svld_dlopen" = xyes
19294 then :
19295 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
19296 else case e in #(
19297 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19298 printf %s "checking for dld_link in -ldld... " >&6; }
19299 if test ${ac_cv_lib_dld_dld_link+y}
19300 then :
19301 printf %s "(cached) " >&6
19302 else case e in #(
19303 e) ac_check_lib_save_LIBS=$LIBS
19304 LIBS="-ldld $LIBS"
19305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19306 /* end confdefs.h. */
19307
19308 /* Override any GCC internal prototype to avoid an error.
19309 Use char because int might match the return type of a GCC
19310 builtin and then its argument prototype would still apply.
19311 The 'extern "C"' is for builds by C++ compilers;
19312 although this is not generally supported in C code supporting it here
19313 has little cost and some practical benefit (sr 110532). */
19314 #ifdef __cplusplus
19315 extern "C"
19316 #endif
19317 char dld_link (void);
19318 int
19319 main (void)
19320 {
19321 return dld_link ();
19322 ;
19323 return 0;
19324 }
19325 _ACEOF
19326 if ac_fn_c_try_link "$LINENO"
19327 then :
19328 ac_cv_lib_dld_dld_link=yes
19329 else case e in #(
19330 e) ac_cv_lib_dld_dld_link=no ;;
19331 esac
19332 fi
19333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19334 conftest$ac_exeext conftest.$ac_ext
19335 LIBS=$ac_check_lib_save_LIBS ;;
19336 esac
19337 fi
19338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19339 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
19340 if test "x$ac_cv_lib_dld_dld_link" = xyes
19341 then :
19342 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
19343 fi
19344
19345 ;;
19346 esac
19347 fi
19348
19349 ;;
19350 esac
19351 fi
19352
19353 ;;
19354 esac
19355 fi
19356
19357 ;;
19358 esac
19359 fi
19360
19361 ;;
19362 esac
19363 fi
19364
19365 ;;
19366 esac
19367
19368 if test no = "$lt_cv_dlopen"; then
19369 enable_dlopen=no
19370 else
19371 enable_dlopen=yes
19372 fi
19373
19374 case $lt_cv_dlopen in
19375 dlopen)
19376 save_CPPFLAGS=$CPPFLAGS
19377 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19378
19379 save_LDFLAGS=$LDFLAGS
19380 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19381
19382 save_LIBS=$LIBS
19383 LIBS="$lt_cv_dlopen_libs $LIBS"
19384
19385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19386 printf %s "checking whether a program can dlopen itself... " >&6; }
19387 if test ${lt_cv_dlopen_self+y}
19388 then :
19389 printf %s "(cached) " >&6
19390 else case e in #(
19391 e) if test yes = "$cross_compiling"; then :
19392 lt_cv_dlopen_self=cross
19393 else
19394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19395 lt_status=$lt_dlunknown
19396 cat > conftest.$ac_ext <<_LT_EOF
19397 #line $LINENO "configure"
19398 #include "confdefs.h"
19399
19400 #if HAVE_DLFCN_H
19401 #include <dlfcn.h>
19402 #endif
19403
19404 #include <stdio.h>
19405
19406 #ifdef RTLD_GLOBAL
19407 # define LT_DLGLOBAL RTLD_GLOBAL
19408 #else
19409 # ifdef DL_GLOBAL
19410 # define LT_DLGLOBAL DL_GLOBAL
19411 # else
19412 # define LT_DLGLOBAL 0
19413 # endif
19414 #endif
19415
19416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19417 find out it does not work in some platform. */
19418 #ifndef LT_DLLAZY_OR_NOW
19419 # ifdef RTLD_LAZY
19420 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19421 # else
19422 # ifdef DL_LAZY
19423 # define LT_DLLAZY_OR_NOW DL_LAZY
19424 # else
19425 # ifdef RTLD_NOW
19426 # define LT_DLLAZY_OR_NOW RTLD_NOW
19427 # else
19428 # ifdef DL_NOW
19429 # define LT_DLLAZY_OR_NOW DL_NOW
19430 # else
19431 # define LT_DLLAZY_OR_NOW 0
19432 # endif
19433 # endif
19434 # endif
19435 # endif
19436 #endif
19437
19438 /* When -fvisibility=hidden is used, assume the code has been annotated
19439 correspondingly for the symbols needed. */
19440 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19441 int fnord (void) __attribute__((visibility("default")));
19442 #endif
19443
19444 int fnord (void) { return 42; }
19445 int main (void)
19446 {
19447 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19448 int status = $lt_dlunknown;
19449
19450 if (self)
19451 {
19452 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19453 else
19454 {
19455 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19456 else puts (dlerror ());
19457 }
19458 /* dlclose (self); */
19459 }
19460 else
19461 puts (dlerror ());
19462
19463 return status;
19464 }
19465 _LT_EOF
19466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19467 (eval $ac_link) 2>&5
19468 ac_status=$?
19469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19470 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19471 (./conftest; exit; ) >&5 2>/dev/null
19472 lt_status=$?
19473 case x$lt_status in
19474 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19475 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19476 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19477 esac
19478 else :
19479 # compilation failed
19480 lt_cv_dlopen_self=no
19481 fi
19482 fi
19483 rm -fr conftest*
19484
19485 ;;
19486 esac
19487 fi
19488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19489 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19490
19491 if test yes = "$lt_cv_dlopen_self"; then
19492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19494 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19495 if test ${lt_cv_dlopen_self_static+y}
19496 then :
19497 printf %s "(cached) " >&6
19498 else case e in #(
19499 e) if test yes = "$cross_compiling"; then :
19500 lt_cv_dlopen_self_static=cross
19501 else
19502 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19503 lt_status=$lt_dlunknown
19504 cat > conftest.$ac_ext <<_LT_EOF
19505 #line $LINENO "configure"
19506 #include "confdefs.h"
19507
19508 #if HAVE_DLFCN_H
19509 #include <dlfcn.h>
19510 #endif
19511
19512 #include <stdio.h>
19513
19514 #ifdef RTLD_GLOBAL
19515 # define LT_DLGLOBAL RTLD_GLOBAL
19516 #else
19517 # ifdef DL_GLOBAL
19518 # define LT_DLGLOBAL DL_GLOBAL
19519 # else
19520 # define LT_DLGLOBAL 0
19521 # endif
19522 #endif
19523
19524 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19525 find out it does not work in some platform. */
19526 #ifndef LT_DLLAZY_OR_NOW
19527 # ifdef RTLD_LAZY
19528 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19529 # else
19530 # ifdef DL_LAZY
19531 # define LT_DLLAZY_OR_NOW DL_LAZY
19532 # else
19533 # ifdef RTLD_NOW
19534 # define LT_DLLAZY_OR_NOW RTLD_NOW
19535 # else
19536 # ifdef DL_NOW
19537 # define LT_DLLAZY_OR_NOW DL_NOW
19538 # else
19539 # define LT_DLLAZY_OR_NOW 0
19540 # endif
19541 # endif
19542 # endif
19543 # endif
19544 #endif
19545
19546 /* When -fvisibility=hidden is used, assume the code has been annotated
19547 correspondingly for the symbols needed. */
19548 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19549 int fnord (void) __attribute__((visibility("default")));
19550 #endif
19551
19552 int fnord (void) { return 42; }
19553 int main (void)
19554 {
19555 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19556 int status = $lt_dlunknown;
19557
19558 if (self)
19559 {
19560 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19561 else
19562 {
19563 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19564 else puts (dlerror ());
19565 }
19566 /* dlclose (self); */
19567 }
19568 else
19569 puts (dlerror ());
19570
19571 return status;
19572 }
19573 _LT_EOF
19574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19575 (eval $ac_link) 2>&5
19576 ac_status=$?
19577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19578 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19579 (./conftest; exit; ) >&5 2>/dev/null
19580 lt_status=$?
19581 case x$lt_status in
19582 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19583 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19584 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19585 esac
19586 else :
19587 # compilation failed
19588 lt_cv_dlopen_self_static=no
19589 fi
19590 fi
19591 rm -fr conftest*
19592
19593 ;;
19594 esac
19595 fi
19596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19597 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19598 fi
19599
19600 CPPFLAGS=$save_CPPFLAGS
19601 LDFLAGS=$save_LDFLAGS
19602 LIBS=$save_LIBS
19603 ;;
19604 esac
19605
19606 case $lt_cv_dlopen_self in
19607 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19608 *) enable_dlopen_self=unknown ;;
19609 esac
19610
19611 case $lt_cv_dlopen_self_static in
19612 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19613 *) enable_dlopen_self_static=unknown ;;
19614 esac
19615 fi
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633 striplib=
19634 old_striplib=
19635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19636 printf %s "checking whether stripping libraries is possible... " >&6; }
19637 if test -z "$STRIP"; then
19638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19639 printf "%s\n" "no" >&6; }
19640 else
19641 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19642 old_striplib="$STRIP --strip-debug"
19643 striplib="$STRIP --strip-unneeded"
19644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19645 printf "%s\n" "yes" >&6; }
19646 else
19647 case $host_os in
19648 darwin*)
19649 # FIXME - insert some real tests, host_os isn't really good enough
19650 striplib="$STRIP -x"
19651 old_striplib="$STRIP -S"
19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19653 printf "%s\n" "yes" >&6; }
19654 ;;
19655 freebsd*)
19656 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19657 old_striplib="$STRIP --strip-debug"
19658 striplib="$STRIP --strip-unneeded"
19659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19660 printf "%s\n" "yes" >&6; }
19661 else
19662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19663 printf "%s\n" "no" >&6; }
19664 fi
19665 ;;
19666 *)
19667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19668 printf "%s\n" "no" >&6; }
19669 ;;
19670 esac
19671 fi
19672 fi
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685 # Report what library types will actually be built
19686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19687 printf %s "checking if libtool supports shared libraries... " >&6; }
19688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19689 printf "%s\n" "$can_build_shared" >&6; }
19690
19691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19692 printf %s "checking whether to build shared libraries... " >&6; }
19693 test no = "$can_build_shared" && enable_shared=no
19694
19695 # On AIX, shared libraries and static libraries use the same namespace, and
19696 # are all built from PIC.
19697 case $host_os in
19698 aix3*)
19699 test yes = "$enable_shared" && enable_static=no
19700 if test -n "$RANLIB"; then
19701 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19702 postinstall_cmds='$RANLIB $lib'
19703 fi
19704 ;;
19705
19706 aix[4-9]*)
19707 if test ia64 != "$host_cpu"; then
19708 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19709 yes,aix,yes) ;; # shared object as lib.so file only
19710 yes,svr4,*) ;; # shared object as lib.so archive member only
19711 yes,*) enable_static=no ;; # shared object in lib.a archive as well
19712 esac
19713 fi
19714 ;;
19715 esac
19716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19717 printf "%s\n" "$enable_shared" >&6; }
19718
19719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19720 printf %s "checking whether to build static libraries... " >&6; }
19721 # Make sure either enable_shared or enable_static is yes.
19722 test yes = "$enable_shared" || enable_static=yes
19723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19724 printf "%s\n" "$enable_static" >&6; }
19725
19726
19727
19728
19729 fi
19730 ac_ext=c
19731 ac_cpp='$CPP $CPPFLAGS'
19732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19735
19736 CC=$lt_save_CC
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752 ac_config_commands="$ac_config_commands libtool"
19753
19754
19755
19756
19757 # Only expand once:
19758
19759
19760
19761
19762
19763 if test -n "$ac_tool_prefix"; then
19764 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19765 set dummy ${ac_tool_prefix}ar; ac_word=$2
19766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19767 printf %s "checking for $ac_word... " >&6; }
19768 if test ${ac_cv_prog_AR+y}
19769 then :
19770 printf %s "(cached) " >&6
19771 else case e in #(
19772 e) if test -n "$AR"; then
19773 ac_cv_prog_AR="$AR" # Let the user override the test.
19774 else
19775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19776 for as_dir in $PATH
19777 do
19778 IFS=$as_save_IFS
19779 case $as_dir in #(((
19780 '') as_dir=./ ;;
19781 */) ;;
19782 *) as_dir=$as_dir/ ;;
19783 esac
19784 for ac_exec_ext in '' $ac_executable_extensions; do
19785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19786 ac_cv_prog_AR="${ac_tool_prefix}ar"
19787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19788 break 2
19789 fi
19790 done
19791 done
19792 IFS=$as_save_IFS
19793
19794 fi ;;
19795 esac
19796 fi
19797 AR=$ac_cv_prog_AR
19798 if test -n "$AR"; then
19799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19800 printf "%s\n" "$AR" >&6; }
19801 else
19802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19803 printf "%s\n" "no" >&6; }
19804 fi
19805
19806
19807 fi
19808 if test -z "$ac_cv_prog_AR"; then
19809 ac_ct_AR=$AR
19810 # Extract the first word of "ar", so it can be a program name with args.
19811 set dummy ar; ac_word=$2
19812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19813 printf %s "checking for $ac_word... " >&6; }
19814 if test ${ac_cv_prog_ac_ct_AR+y}
19815 then :
19816 printf %s "(cached) " >&6
19817 else case e in #(
19818 e) if test -n "$ac_ct_AR"; then
19819 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19820 else
19821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19822 for as_dir in $PATH
19823 do
19824 IFS=$as_save_IFS
19825 case $as_dir in #(((
19826 '') as_dir=./ ;;
19827 */) ;;
19828 *) as_dir=$as_dir/ ;;
19829 esac
19830 for ac_exec_ext in '' $ac_executable_extensions; do
19831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19832 ac_cv_prog_ac_ct_AR="ar"
19833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19834 break 2
19835 fi
19836 done
19837 done
19838 IFS=$as_save_IFS
19839
19840 fi ;;
19841 esac
19842 fi
19843 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19844 if test -n "$ac_ct_AR"; then
19845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19846 printf "%s\n" "$ac_ct_AR" >&6; }
19847 else
19848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19849 printf "%s\n" "no" >&6; }
19850 fi
19851
19852 if test "x$ac_ct_AR" = x; then
19853 AR="ar"
19854 else
19855 case $cross_compiling:$ac_tool_warned in
19856 yes:)
19857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19858 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19859 ac_tool_warned=yes ;;
19860 esac
19861 AR=$ac_ct_AR
19862 fi
19863 else
19864 AR="$ac_cv_prog_AR"
19865 fi
19866
19867
19868
19869 target_cpu_aarch64=no
19870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM64 target" >&5
19871 printf %s "checking for ARM64 target... " >&6; }
19872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19873 /* end confdefs.h. */
19874
19875 #ifndef __aarch64__
19876 #error Not aarch64
19877 #endif
19878 #include <arm_neon.h>
19879
19880 int
19881 main (void)
19882 {
19883 (void) 0
19884 ;
19885 return 0;
19886 }
19887 _ACEOF
19888 if ac_fn_c_try_link "$LINENO"
19889 then :
19890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19891 printf "%s\n" "yes" >&6; }
19892 target_cpu_aarch64=yes
19893 else case e in #(
19894 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19895 printf "%s\n" "no" >&6; }
19896 target_cpu_aarch64=no ;;
19897 esac
19898 fi
19899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19900 conftest$ac_exeext conftest.$ac_ext
19901
19902 if test "x$EMSCRIPTEN" = "x"
19903 then :
19904
19905
19906 if test "x$target_cpu_aarch64" = "xyes"
19907 then :
19908
19909 have_armcrypto=no
19910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM crypto instructions set" >&5
19911 printf %s "checking for ARM crypto instructions set... " >&6; }
19912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19913 /* end confdefs.h. */
19914
19915 #ifndef __ARM_FEATURE_CRYPTO
19916 # define __ARM_FEATURE_CRYPTO 1
19917 #endif
19918 #ifndef __ARM_FEATURE_AES
19919 # define __ARM_FEATURE_AES 1
19920 #endif
19921
19922 #include <arm_neon.h>
19923
19924 #ifdef __clang__
19925 # pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function)
19926 #elif defined(__GNUC__)
19927 # pragma GCC target("+simd+crypto")
19928 #endif
19929
19930 int
19931 main (void)
19932 {
19933
19934 int64x2_t x = { 0, 0 };
19935 vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0));
19936 vmull_high_p64(vreinterpretq_p64_s64(x), vreinterpretq_p64_s64(x));
19937
19938 #ifdef __clang__
19939 # pragma clang attribute pop
19940 #endif
19941 (void) 0
19942
19943 ;
19944 return 0;
19945 }
19946 _ACEOF
19947 if ac_fn_c_try_link "$LINENO"
19948 then :
19949
19950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19951 printf "%s\n" "yes" >&6; }
19952 have_armcrypto=yes
19953
19954 else case e in #(
19955 e)
19956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19957 printf "%s\n" "no" >&6; }
19958 oldcflags="$CFLAGS"
19959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=armv8-a+crypto+aes" >&5
19960 printf %s "checking whether C compiler accepts -march=armv8-a+crypto+aes... " >&6; }
19961 if test ${ax_cv_check_cflags___march_armv8_apcryptopaes+y}
19962 then :
19963 printf %s "(cached) " >&6
19964 else case e in #(
19965 e)
19966 ax_check_save_flags=$CFLAGS
19967 CFLAGS="$CFLAGS -march=armv8-a+crypto+aes"
19968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19969 /* end confdefs.h. */
19970 #include <time.h>
19971 int
19972 main (void)
19973 {
19974 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
19975
19976 ;
19977 return 0;
19978 }
19979 _ACEOF
19980 if ac_fn_c_try_link "$LINENO"
19981 then :
19982 ax_cv_check_cflags___march_armv8_apcryptopaes=yes
19983 else case e in #(
19984 e) ax_cv_check_cflags___march_armv8_apcryptopaes=no ;;
19985 esac
19986 fi
19987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19988 conftest$ac_exeext conftest.$ac_ext
19989 CFLAGS=$ax_check_save_flags ;;
19990 esac
19991 fi
19992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___march_armv8_apcryptopaes" >&5
19993 printf "%s\n" "$ax_cv_check_cflags___march_armv8_apcryptopaes" >&6; }
19994 if test "x$ax_cv_check_cflags___march_armv8_apcryptopaes" = xyes
19995 then :
19996
19997 CFLAGS="$CFLAGS -march=armv8-a+crypto+aes"
19998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM crypto instructions set with -march=armv8-a+crypto+aes" >&5
19999 printf %s "checking for ARM crypto instructions set with -march=armv8-a+crypto+aes... " >&6; }
20000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20001 /* end confdefs.h. */
20002
20003 #ifdef __clang__
20004 # pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function)
20005 #elif defined(__GNUC__)
20006 # pragma GCC target("+simd+crypto")
20007 #endif
20008 #ifndef __ARM_FEATURE_CRYPTO
20009 # define __ARM_FEATURE_CRYPTO 1
20010 #endif
20011 #ifndef __ARM_FEATURE_AES
20012 # define __ARM_FEATURE_AES 1
20013 #endif
20014
20015 #include <arm_neon.h>
20016
20017 int
20018 main (void)
20019 {
20020
20021 int64x2_t x = { 0, 0 };
20022 vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0));
20023 vmull_high_p64(vreinterpretq_p64_s64(x), vreinterpretq_p64_s64(x));
20024
20025 #ifdef __clang__
20026 # pragma clang attribute pop
20027 #endif
20028 (void) 0
20029
20030 ;
20031 return 0;
20032 }
20033 _ACEOF
20034 if ac_fn_c_try_link "$LINENO"
20035 then :
20036
20037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - with addition of -march=armv8-a+crypto+aes" >&5
20038 printf "%s\n" "yes - with addition of -march=armv8-a+crypto+aes" >&6; }
20039 have_armcrypto=yes
20040 CFLAGS_ARMCRYPTO="-march=armv8-a+crypto+aes"
20041
20042 else case e in #(
20043 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20044 printf "%s\n" "no" >&6; } ;;
20045 esac
20046 fi
20047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20048 conftest$ac_exeext conftest.$ac_ext
20049 CFLAGS="$oldcflags"
20050
20051 else case e in #(
20052 e) : ;;
20053 esac
20054 fi
20055
20056 ;;
20057 esac
20058 fi
20059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20060 conftest$ac_exeext conftest.$ac_ext
20061 if test "$have_armcrypto" = "yes"
20062 then :
20063
20064 printf "%s\n" "#define HAVE_ARMCRYPTO 1" >>confdefs.h
20065
20066 fi
20067
20068 fi
20069
20070 oldcflags="$CFLAGS"
20071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
20072 printf %s "checking whether C compiler accepts -mmmx... " >&6; }
20073 if test ${ax_cv_check_cflags___mmmx+y}
20074 then :
20075 printf %s "(cached) " >&6
20076 else case e in #(
20077 e)
20078 ax_check_save_flags=$CFLAGS
20079 CFLAGS="$CFLAGS -mmmx"
20080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20081 /* end confdefs.h. */
20082 #include <time.h>
20083 int
20084 main (void)
20085 {
20086 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20087
20088 ;
20089 return 0;
20090 }
20091 _ACEOF
20092 if ac_fn_c_try_link "$LINENO"
20093 then :
20094 ax_cv_check_cflags___mmmx=yes
20095 else case e in #(
20096 e) ax_cv_check_cflags___mmmx=no ;;
20097 esac
20098 fi
20099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20100 conftest$ac_exeext conftest.$ac_ext
20101 CFLAGS=$ax_check_save_flags ;;
20102 esac
20103 fi
20104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
20105 printf "%s\n" "$ax_cv_check_cflags___mmmx" >&6; }
20106 if test "x$ax_cv_check_cflags___mmmx" = xyes
20107 then :
20108 CFLAGS="$CFLAGS -mmmx"
20109 else case e in #(
20110 e) : ;;
20111 esac
20112 fi
20113
20114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MMX instructions set" >&5
20115 printf %s "checking for MMX instructions set... " >&6; }
20116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20117 /* end confdefs.h. */
20118
20119 #pragma GCC target("mmx")
20120 #include <mmintrin.h>
20121
20122 int
20123 main (void)
20124 {
20125 __m64 x = _mm_setzero_si64();
20126 ;
20127 return 0;
20128 }
20129 _ACEOF
20130 if ac_fn_c_try_link "$LINENO"
20131 then :
20132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20133 printf "%s\n" "yes" >&6; }
20134
20135 printf "%s\n" "#define HAVE_MMINTRIN_H 1" >>confdefs.h
20136
20137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
20138 printf %s "checking whether C compiler accepts -mmmx... " >&6; }
20139 if test ${ax_cv_check_cflags___mmmx+y}
20140 then :
20141 printf %s "(cached) " >&6
20142 else case e in #(
20143 e)
20144 ax_check_save_flags=$CFLAGS
20145 CFLAGS="$CFLAGS -mmmx"
20146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20147 /* end confdefs.h. */
20148 #include <time.h>
20149 int
20150 main (void)
20151 {
20152 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20153
20154 ;
20155 return 0;
20156 }
20157 _ACEOF
20158 if ac_fn_c_try_link "$LINENO"
20159 then :
20160 ax_cv_check_cflags___mmmx=yes
20161 else case e in #(
20162 e) ax_cv_check_cflags___mmmx=no ;;
20163 esac
20164 fi
20165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20166 conftest$ac_exeext conftest.$ac_ext
20167 CFLAGS=$ax_check_save_flags ;;
20168 esac
20169 fi
20170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
20171 printf "%s\n" "$ax_cv_check_cflags___mmmx" >&6; }
20172 if test "x$ax_cv_check_cflags___mmmx" = xyes
20173 then :
20174 CFLAGS_MMX="-mmmx"
20175 else case e in #(
20176 e) : ;;
20177 esac
20178 fi
20179
20180 else case e in #(
20181 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20182 printf "%s\n" "no" >&6; } ;;
20183 esac
20184 fi
20185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20186 conftest$ac_exeext conftest.$ac_ext
20187 CFLAGS="$oldcflags"
20188
20189 oldcflags="$CFLAGS"
20190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
20191 printf %s "checking whether C compiler accepts -msse2... " >&6; }
20192 if test ${ax_cv_check_cflags___msse2+y}
20193 then :
20194 printf %s "(cached) " >&6
20195 else case e in #(
20196 e)
20197 ax_check_save_flags=$CFLAGS
20198 CFLAGS="$CFLAGS -msse2"
20199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20200 /* end confdefs.h. */
20201 #include <time.h>
20202 int
20203 main (void)
20204 {
20205 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20206
20207 ;
20208 return 0;
20209 }
20210 _ACEOF
20211 if ac_fn_c_try_link "$LINENO"
20212 then :
20213 ax_cv_check_cflags___msse2=yes
20214 else case e in #(
20215 e) ax_cv_check_cflags___msse2=no ;;
20216 esac
20217 fi
20218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20219 conftest$ac_exeext conftest.$ac_ext
20220 CFLAGS=$ax_check_save_flags ;;
20221 esac
20222 fi
20223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
20224 printf "%s\n" "$ax_cv_check_cflags___msse2" >&6; }
20225 if test "x$ax_cv_check_cflags___msse2" = xyes
20226 then :
20227 CFLAGS="$CFLAGS -msse2"
20228 else case e in #(
20229 e) : ;;
20230 esac
20231 fi
20232
20233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSE2 instructions set" >&5
20234 printf %s "checking for SSE2 instructions set... " >&6; }
20235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20236 /* end confdefs.h. */
20237
20238 #pragma GCC target("sse2")
20239 #ifndef __SSE2__
20240 # define __SSE2__
20241 #endif
20242 #include <emmintrin.h>
20243
20244 int
20245 main (void)
20246 {
20247 __m128d x = _mm_setzero_pd();
20248 __m128i z = _mm_srli_epi64(_mm_setzero_si128(), 26);
20249 ;
20250 return 0;
20251 }
20252 _ACEOF
20253 if ac_fn_c_try_link "$LINENO"
20254 then :
20255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20256 printf "%s\n" "yes" >&6; }
20257
20258 printf "%s\n" "#define HAVE_EMMINTRIN_H 1" >>confdefs.h
20259
20260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
20261 printf %s "checking whether C compiler accepts -msse2... " >&6; }
20262 if test ${ax_cv_check_cflags___msse2+y}
20263 then :
20264 printf %s "(cached) " >&6
20265 else case e in #(
20266 e)
20267 ax_check_save_flags=$CFLAGS
20268 CFLAGS="$CFLAGS -msse2"
20269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20270 /* end confdefs.h. */
20271 #include <time.h>
20272 int
20273 main (void)
20274 {
20275 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20276
20277 ;
20278 return 0;
20279 }
20280 _ACEOF
20281 if ac_fn_c_try_link "$LINENO"
20282 then :
20283 ax_cv_check_cflags___msse2=yes
20284 else case e in #(
20285 e) ax_cv_check_cflags___msse2=no ;;
20286 esac
20287 fi
20288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20289 conftest$ac_exeext conftest.$ac_ext
20290 CFLAGS=$ax_check_save_flags ;;
20291 esac
20292 fi
20293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
20294 printf "%s\n" "$ax_cv_check_cflags___msse2" >&6; }
20295 if test "x$ax_cv_check_cflags___msse2" = xyes
20296 then :
20297 CFLAGS_SSE2="-msse2"
20298 else case e in #(
20299 e) : ;;
20300 esac
20301 fi
20302
20303 else case e in #(
20304 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20305 printf "%s\n" "no" >&6; } ;;
20306 esac
20307 fi
20308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20309 conftest$ac_exeext conftest.$ac_ext
20310 CFLAGS="$oldcflags"
20311
20312 oldcflags="$CFLAGS"
20313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
20314 printf %s "checking whether C compiler accepts -msse3... " >&6; }
20315 if test ${ax_cv_check_cflags___msse3+y}
20316 then :
20317 printf %s "(cached) " >&6
20318 else case e in #(
20319 e)
20320 ax_check_save_flags=$CFLAGS
20321 CFLAGS="$CFLAGS -msse3"
20322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20323 /* end confdefs.h. */
20324 #include <time.h>
20325 int
20326 main (void)
20327 {
20328 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20329
20330 ;
20331 return 0;
20332 }
20333 _ACEOF
20334 if ac_fn_c_try_link "$LINENO"
20335 then :
20336 ax_cv_check_cflags___msse3=yes
20337 else case e in #(
20338 e) ax_cv_check_cflags___msse3=no ;;
20339 esac
20340 fi
20341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20342 conftest$ac_exeext conftest.$ac_ext
20343 CFLAGS=$ax_check_save_flags ;;
20344 esac
20345 fi
20346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
20347 printf "%s\n" "$ax_cv_check_cflags___msse3" >&6; }
20348 if test "x$ax_cv_check_cflags___msse3" = xyes
20349 then :
20350 CFLAGS="$CFLAGS -msse3"
20351 else case e in #(
20352 e) : ;;
20353 esac
20354 fi
20355
20356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSE3 instructions set" >&5
20357 printf %s "checking for SSE3 instructions set... " >&6; }
20358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20359 /* end confdefs.h. */
20360
20361 #pragma GCC target("sse3")
20362 #include <pmmintrin.h>
20363
20364 int
20365 main (void)
20366 {
20367 __m128 x = _mm_addsub_ps(_mm_cvtpd_ps(_mm_setzero_pd()),
20368 _mm_cvtpd_ps(_mm_setzero_pd()));
20369 ;
20370 return 0;
20371 }
20372 _ACEOF
20373 if ac_fn_c_try_link "$LINENO"
20374 then :
20375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20376 printf "%s\n" "yes" >&6; }
20377
20378 printf "%s\n" "#define HAVE_PMMINTRIN_H 1" >>confdefs.h
20379
20380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
20381 printf %s "checking whether C compiler accepts -msse3... " >&6; }
20382 if test ${ax_cv_check_cflags___msse3+y}
20383 then :
20384 printf %s "(cached) " >&6
20385 else case e in #(
20386 e)
20387 ax_check_save_flags=$CFLAGS
20388 CFLAGS="$CFLAGS -msse3"
20389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20390 /* end confdefs.h. */
20391 #include <time.h>
20392 int
20393 main (void)
20394 {
20395 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20396
20397 ;
20398 return 0;
20399 }
20400 _ACEOF
20401 if ac_fn_c_try_link "$LINENO"
20402 then :
20403 ax_cv_check_cflags___msse3=yes
20404 else case e in #(
20405 e) ax_cv_check_cflags___msse3=no ;;
20406 esac
20407 fi
20408 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20409 conftest$ac_exeext conftest.$ac_ext
20410 CFLAGS=$ax_check_save_flags ;;
20411 esac
20412 fi
20413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
20414 printf "%s\n" "$ax_cv_check_cflags___msse3" >&6; }
20415 if test "x$ax_cv_check_cflags___msse3" = xyes
20416 then :
20417 CFLAGS_SSE3="-msse3"
20418 else case e in #(
20419 e) : ;;
20420 esac
20421 fi
20422
20423 else case e in #(
20424 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20425 printf "%s\n" "no" >&6; } ;;
20426 esac
20427 fi
20428 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20429 conftest$ac_exeext conftest.$ac_ext
20430 CFLAGS="$oldcflags"
20431
20432 oldcflags="$CFLAGS"
20433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
20434 printf %s "checking whether C compiler accepts -mssse3... " >&6; }
20435 if test ${ax_cv_check_cflags___mssse3+y}
20436 then :
20437 printf %s "(cached) " >&6
20438 else case e in #(
20439 e)
20440 ax_check_save_flags=$CFLAGS
20441 CFLAGS="$CFLAGS -mssse3"
20442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20443 /* end confdefs.h. */
20444 #include <time.h>
20445 int
20446 main (void)
20447 {
20448 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20449
20450 ;
20451 return 0;
20452 }
20453 _ACEOF
20454 if ac_fn_c_try_link "$LINENO"
20455 then :
20456 ax_cv_check_cflags___mssse3=yes
20457 else case e in #(
20458 e) ax_cv_check_cflags___mssse3=no ;;
20459 esac
20460 fi
20461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20462 conftest$ac_exeext conftest.$ac_ext
20463 CFLAGS=$ax_check_save_flags ;;
20464 esac
20465 fi
20466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
20467 printf "%s\n" "$ax_cv_check_cflags___mssse3" >&6; }
20468 if test "x$ax_cv_check_cflags___mssse3" = xyes
20469 then :
20470 CFLAGS="$CFLAGS -mssse3"
20471 else case e in #(
20472 e) : ;;
20473 esac
20474 fi
20475
20476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSSE3 instructions set" >&5
20477 printf %s "checking for SSSE3 instructions set... " >&6; }
20478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20479 /* end confdefs.h. */
20480
20481 #pragma GCC target("ssse3")
20482 #include <tmmintrin.h>
20483
20484 int
20485 main (void)
20486 {
20487 __m64 x = _mm_abs_pi32(_m_from_int(0));
20488 ;
20489 return 0;
20490 }
20491 _ACEOF
20492 if ac_fn_c_try_link "$LINENO"
20493 then :
20494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20495 printf "%s\n" "yes" >&6; }
20496
20497 printf "%s\n" "#define HAVE_TMMINTRIN_H 1" >>confdefs.h
20498
20499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
20500 printf %s "checking whether C compiler accepts -mssse3... " >&6; }
20501 if test ${ax_cv_check_cflags___mssse3+y}
20502 then :
20503 printf %s "(cached) " >&6
20504 else case e in #(
20505 e)
20506 ax_check_save_flags=$CFLAGS
20507 CFLAGS="$CFLAGS -mssse3"
20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h. */
20510 #include <time.h>
20511 int
20512 main (void)
20513 {
20514 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20515
20516 ;
20517 return 0;
20518 }
20519 _ACEOF
20520 if ac_fn_c_try_link "$LINENO"
20521 then :
20522 ax_cv_check_cflags___mssse3=yes
20523 else case e in #(
20524 e) ax_cv_check_cflags___mssse3=no ;;
20525 esac
20526 fi
20527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20528 conftest$ac_exeext conftest.$ac_ext
20529 CFLAGS=$ax_check_save_flags ;;
20530 esac
20531 fi
20532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
20533 printf "%s\n" "$ax_cv_check_cflags___mssse3" >&6; }
20534 if test "x$ax_cv_check_cflags___mssse3" = xyes
20535 then :
20536 CFLAGS_SSSE3="-mssse3"
20537 else case e in #(
20538 e) : ;;
20539 esac
20540 fi
20541
20542 else case e in #(
20543 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20544 printf "%s\n" "no" >&6; } ;;
20545 esac
20546 fi
20547 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20548 conftest$ac_exeext conftest.$ac_ext
20549 CFLAGS="$oldcflags"
20550
20551 oldcflags="$CFLAGS"
20552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
20553 printf %s "checking whether C compiler accepts -msse4.1... " >&6; }
20554 if test ${ax_cv_check_cflags___msse4_1+y}
20555 then :
20556 printf %s "(cached) " >&6
20557 else case e in #(
20558 e)
20559 ax_check_save_flags=$CFLAGS
20560 CFLAGS="$CFLAGS -msse4.1"
20561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20562 /* end confdefs.h. */
20563 #include <time.h>
20564 int
20565 main (void)
20566 {
20567 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20568
20569 ;
20570 return 0;
20571 }
20572 _ACEOF
20573 if ac_fn_c_try_link "$LINENO"
20574 then :
20575 ax_cv_check_cflags___msse4_1=yes
20576 else case e in #(
20577 e) ax_cv_check_cflags___msse4_1=no ;;
20578 esac
20579 fi
20580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20581 conftest$ac_exeext conftest.$ac_ext
20582 CFLAGS=$ax_check_save_flags ;;
20583 esac
20584 fi
20585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
20586 printf "%s\n" "$ax_cv_check_cflags___msse4_1" >&6; }
20587 if test "x$ax_cv_check_cflags___msse4_1" = xyes
20588 then :
20589 CFLAGS="$CFLAGS -msse4.1"
20590 else case e in #(
20591 e) : ;;
20592 esac
20593 fi
20594
20595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSE4.1 instructions set" >&5
20596 printf %s "checking for SSE4.1 instructions set... " >&6; }
20597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20598 /* end confdefs.h. */
20599
20600 #pragma GCC target("sse4.1")
20601 #include <smmintrin.h>
20602
20603 int
20604 main (void)
20605 {
20606 __m128i x = _mm_minpos_epu16(_mm_setzero_si128());
20607 ;
20608 return 0;
20609 }
20610 _ACEOF
20611 if ac_fn_c_try_link "$LINENO"
20612 then :
20613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20614 printf "%s\n" "yes" >&6; }
20615
20616 printf "%s\n" "#define HAVE_SMMINTRIN_H 1" >>confdefs.h
20617
20618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
20619 printf %s "checking whether C compiler accepts -msse4.1... " >&6; }
20620 if test ${ax_cv_check_cflags___msse4_1+y}
20621 then :
20622 printf %s "(cached) " >&6
20623 else case e in #(
20624 e)
20625 ax_check_save_flags=$CFLAGS
20626 CFLAGS="$CFLAGS -msse4.1"
20627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20628 /* end confdefs.h. */
20629 #include <time.h>
20630 int
20631 main (void)
20632 {
20633 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20634
20635 ;
20636 return 0;
20637 }
20638 _ACEOF
20639 if ac_fn_c_try_link "$LINENO"
20640 then :
20641 ax_cv_check_cflags___msse4_1=yes
20642 else case e in #(
20643 e) ax_cv_check_cflags___msse4_1=no ;;
20644 esac
20645 fi
20646 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20647 conftest$ac_exeext conftest.$ac_ext
20648 CFLAGS=$ax_check_save_flags ;;
20649 esac
20650 fi
20651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
20652 printf "%s\n" "$ax_cv_check_cflags___msse4_1" >&6; }
20653 if test "x$ax_cv_check_cflags___msse4_1" = xyes
20654 then :
20655 CFLAGS_SSE41="-msse4.1"
20656 else case e in #(
20657 e) : ;;
20658 esac
20659 fi
20660
20661 else case e in #(
20662 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20663 printf "%s\n" "no" >&6; } ;;
20664 esac
20665 fi
20666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20667 conftest$ac_exeext conftest.$ac_ext
20668 CFLAGS="$oldcflags"
20669
20670 oldcflags="$CFLAGS"
20671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
20672 printf %s "checking whether C compiler accepts -mavx... " >&6; }
20673 if test ${ax_cv_check_cflags___mavx+y}
20674 then :
20675 printf %s "(cached) " >&6
20676 else case e in #(
20677 e)
20678 ax_check_save_flags=$CFLAGS
20679 CFLAGS="$CFLAGS -mavx"
20680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20681 /* end confdefs.h. */
20682 #include <time.h>
20683 int
20684 main (void)
20685 {
20686 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20687
20688 ;
20689 return 0;
20690 }
20691 _ACEOF
20692 if ac_fn_c_try_link "$LINENO"
20693 then :
20694 ax_cv_check_cflags___mavx=yes
20695 else case e in #(
20696 e) ax_cv_check_cflags___mavx=no ;;
20697 esac
20698 fi
20699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20700 conftest$ac_exeext conftest.$ac_ext
20701 CFLAGS=$ax_check_save_flags ;;
20702 esac
20703 fi
20704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
20705 printf "%s\n" "$ax_cv_check_cflags___mavx" >&6; }
20706 if test "x$ax_cv_check_cflags___mavx" = xyes
20707 then :
20708 CFLAGS="$CFLAGS -mavx"
20709 else case e in #(
20710 e) : ;;
20711 esac
20712 fi
20713
20714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AVX instructions set" >&5
20715 printf %s "checking for AVX instructions set... " >&6; }
20716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20717 /* end confdefs.h. */
20718
20719 #pragma GCC target("avx")
20720 #include <immintrin.h>
20721
20722 int
20723 main (void)
20724 {
20725 _mm256_zeroall();
20726 ;
20727 return 0;
20728 }
20729 _ACEOF
20730 if ac_fn_c_try_link "$LINENO"
20731 then :
20732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20733 printf "%s\n" "yes" >&6; }
20734
20735 printf "%s\n" "#define HAVE_AVXINTRIN_H 1" >>confdefs.h
20736
20737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
20738 printf %s "checking whether C compiler accepts -mavx... " >&6; }
20739 if test ${ax_cv_check_cflags___mavx+y}
20740 then :
20741 printf %s "(cached) " >&6
20742 else case e in #(
20743 e)
20744 ax_check_save_flags=$CFLAGS
20745 CFLAGS="$CFLAGS -mavx"
20746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20747 /* end confdefs.h. */
20748 #include <time.h>
20749 int
20750 main (void)
20751 {
20752 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20753
20754 ;
20755 return 0;
20756 }
20757 _ACEOF
20758 if ac_fn_c_try_link "$LINENO"
20759 then :
20760 ax_cv_check_cflags___mavx=yes
20761 else case e in #(
20762 e) ax_cv_check_cflags___mavx=no ;;
20763 esac
20764 fi
20765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20766 conftest$ac_exeext conftest.$ac_ext
20767 CFLAGS=$ax_check_save_flags ;;
20768 esac
20769 fi
20770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
20771 printf "%s\n" "$ax_cv_check_cflags___mavx" >&6; }
20772 if test "x$ax_cv_check_cflags___mavx" = xyes
20773 then :
20774 CFLAGS_AVX="-mavx"
20775 else case e in #(
20776 e) : ;;
20777 esac
20778 fi
20779
20780 else case e in #(
20781 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20782 printf "%s\n" "no" >&6; } ;;
20783 esac
20784 fi
20785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20786 conftest$ac_exeext conftest.$ac_ext
20787 CFLAGS="$oldcflags"
20788
20789 oldcflags="$CFLAGS"
20790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
20791 printf %s "checking whether C compiler accepts -mavx2... " >&6; }
20792 if test ${ax_cv_check_cflags___mavx2+y}
20793 then :
20794 printf %s "(cached) " >&6
20795 else case e in #(
20796 e)
20797 ax_check_save_flags=$CFLAGS
20798 CFLAGS="$CFLAGS -mavx2"
20799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800 /* end confdefs.h. */
20801 #include <time.h>
20802 int
20803 main (void)
20804 {
20805 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20806
20807 ;
20808 return 0;
20809 }
20810 _ACEOF
20811 if ac_fn_c_try_link "$LINENO"
20812 then :
20813 ax_cv_check_cflags___mavx2=yes
20814 else case e in #(
20815 e) ax_cv_check_cflags___mavx2=no ;;
20816 esac
20817 fi
20818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20819 conftest$ac_exeext conftest.$ac_ext
20820 CFLAGS=$ax_check_save_flags ;;
20821 esac
20822 fi
20823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
20824 printf "%s\n" "$ax_cv_check_cflags___mavx2" >&6; }
20825 if test "x$ax_cv_check_cflags___mavx2" = xyes
20826 then :
20827 CFLAGS="$CFLAGS -mavx2"
20828 else case e in #(
20829 e) : ;;
20830 esac
20831 fi
20832
20833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AVX2 instructions set" >&5
20834 printf %s "checking for AVX2 instructions set... " >&6; }
20835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20836 /* end confdefs.h. */
20837
20838 #pragma GCC target("avx2")
20839 #include <immintrin.h>
20840
20841 int
20842 main (void)
20843 {
20844
20845 __m256 x = _mm256_set1_ps(3.14);
20846 __m256 y = _mm256_permutevar8x32_ps(x, _mm256_set1_epi32(42));
20847 return _mm256_movemask_ps(_mm256_cmp_ps(x, y, _CMP_NEQ_OQ));
20848
20849 ;
20850 return 0;
20851 }
20852 _ACEOF
20853 if ac_fn_c_try_link "$LINENO"
20854 then :
20855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20856 printf "%s\n" "yes" >&6; }
20857
20858 printf "%s\n" "#define HAVE_AVX2INTRIN_H 1" >>confdefs.h
20859
20860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
20861 printf %s "checking whether C compiler accepts -mavx2... " >&6; }
20862 if test ${ax_cv_check_cflags___mavx2+y}
20863 then :
20864 printf %s "(cached) " >&6
20865 else case e in #(
20866 e)
20867 ax_check_save_flags=$CFLAGS
20868 CFLAGS="$CFLAGS -mavx2"
20869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20870 /* end confdefs.h. */
20871 #include <time.h>
20872 int
20873 main (void)
20874 {
20875 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20876
20877 ;
20878 return 0;
20879 }
20880 _ACEOF
20881 if ac_fn_c_try_link "$LINENO"
20882 then :
20883 ax_cv_check_cflags___mavx2=yes
20884 else case e in #(
20885 e) ax_cv_check_cflags___mavx2=no ;;
20886 esac
20887 fi
20888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20889 conftest$ac_exeext conftest.$ac_ext
20890 CFLAGS=$ax_check_save_flags ;;
20891 esac
20892 fi
20893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
20894 printf "%s\n" "$ax_cv_check_cflags___mavx2" >&6; }
20895 if test "x$ax_cv_check_cflags___mavx2" = xyes
20896 then :
20897 CFLAGS_AVX2="-mavx2"
20898 else case e in #(
20899 e) : ;;
20900 esac
20901 fi
20902
20903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _mm256_broadcastsi128_si256 is correctly defined" >&5
20904 printf %s "checking if _mm256_broadcastsi128_si256 is correctly defined... " >&6; }
20905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20906 /* end confdefs.h. */
20907
20908 #pragma GCC target("avx2")
20909 #include <immintrin.h>
20910
20911 int
20912 main (void)
20913 {
20914 __m256i y = _mm256_broadcastsi128_si256(_mm_setzero_si128());
20915 ;
20916 return 0;
20917 }
20918 _ACEOF
20919 if ac_fn_c_try_link "$LINENO"
20920 then :
20921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20922 printf "%s\n" "yes" >&6; }
20923 else case e in #(
20924 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20925 printf "%s\n" "no" >&6; }
20926
20927 printf "%s\n" "#define _mm256_broadcastsi128_si256 _mm_broadcastsi128_si256" >>confdefs.h
20928 ;;
20929 esac
20930 fi
20931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20932 conftest$ac_exeext conftest.$ac_ext
20933
20934 else case e in #(
20935 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20936 printf "%s\n" "no" >&6; } ;;
20937 esac
20938 fi
20939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20940 conftest$ac_exeext conftest.$ac_ext
20941 CFLAGS="$oldcflags"
20942
20943 oldcflags="$CFLAGS"
20944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
20945 printf %s "checking whether C compiler accepts -mavx512f... " >&6; }
20946 if test ${ax_cv_check_cflags___mavx512f+y}
20947 then :
20948 printf %s "(cached) " >&6
20949 else case e in #(
20950 e)
20951 ax_check_save_flags=$CFLAGS
20952 CFLAGS="$CFLAGS -mavx512f"
20953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20954 /* end confdefs.h. */
20955 #include <time.h>
20956 int
20957 main (void)
20958 {
20959 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
20960
20961 ;
20962 return 0;
20963 }
20964 _ACEOF
20965 if ac_fn_c_try_link "$LINENO"
20966 then :
20967 ax_cv_check_cflags___mavx512f=yes
20968 else case e in #(
20969 e) ax_cv_check_cflags___mavx512f=no ;;
20970 esac
20971 fi
20972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20973 conftest$ac_exeext conftest.$ac_ext
20974 CFLAGS=$ax_check_save_flags ;;
20975 esac
20976 fi
20977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx512f" >&5
20978 printf "%s\n" "$ax_cv_check_cflags___mavx512f" >&6; }
20979 if test "x$ax_cv_check_cflags___mavx512f" = xyes
20980 then :
20981 CFLAGS="$CFLAGS -mavx512f"
20982 else case e in #(
20983 e) : ;;
20984 esac
20985 fi
20986
20987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AVX512F instructions set" >&5
20988 printf %s "checking for AVX512F instructions set... " >&6; }
20989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h. */
20991
20992 #pragma GCC target("avx512f")
20993 #include <immintrin.h>
20994
20995 int
20996 main (void)
20997 {
20998
20999
21000 #ifndef __AVX512F__
21001 # error No AVX512 support
21002 #elif defined(__clang__)
21003 # if __clang_major__ < 4
21004 # error Compiler AVX512 support may be broken
21005 # endif
21006 #elif defined(__GNUC__)
21007 # if __GNUC__ < 6
21008 # error Compiler AVX512 support may be broken
21009 # endif
21010 #endif
21011
21012 __m512i x = _mm512_setzero_epi32();
21013 __m512i y = _mm512_permutexvar_epi64(_mm512_setr_epi64(0, 1, 4, 5, 2, 3, 6, 7), x);
21014
21015 ;
21016 return 0;
21017 }
21018 _ACEOF
21019 if ac_fn_c_try_link "$LINENO"
21020 then :
21021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21022 printf "%s\n" "yes" >&6; }
21023
21024 printf "%s\n" "#define HAVE_AVX512FINTRIN_H 1" >>confdefs.h
21025
21026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
21027 printf %s "checking whether C compiler accepts -mavx512f... " >&6; }
21028 if test ${ax_cv_check_cflags___mavx512f+y}
21029 then :
21030 printf %s "(cached) " >&6
21031 else case e in #(
21032 e)
21033 ax_check_save_flags=$CFLAGS
21034 CFLAGS="$CFLAGS -mavx512f"
21035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21036 /* end confdefs.h. */
21037 #include <time.h>
21038 int
21039 main (void)
21040 {
21041 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
21042
21043 ;
21044 return 0;
21045 }
21046 _ACEOF
21047 if ac_fn_c_try_link "$LINENO"
21048 then :
21049 ax_cv_check_cflags___mavx512f=yes
21050 else case e in #(
21051 e) ax_cv_check_cflags___mavx512f=no ;;
21052 esac
21053 fi
21054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21055 conftest$ac_exeext conftest.$ac_ext
21056 CFLAGS=$ax_check_save_flags ;;
21057 esac
21058 fi
21059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx512f" >&5
21060 printf "%s\n" "$ax_cv_check_cflags___mavx512f" >&6; }
21061 if test "x$ax_cv_check_cflags___mavx512f" = xyes
21062 then :
21063 CFLAGS_AVX512F="-mavx512f"
21064 else case e in #(
21065 e) : ;;
21066 esac
21067 fi
21068
21069 else case e in #(
21070 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21071 printf "%s\n" "no" >&6; }
21072 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CFLAGS -mno-avx512f" | sed "$as_sed_sh"`
21073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -mno-avx512f" >&5
21074 printf %s "checking whether C compiler accepts $CFLAGS -mno-avx512f... " >&6; }
21075 if eval test \${$as_CACHEVAR+y}
21076 then :
21077 printf %s "(cached) " >&6
21078 else case e in #(
21079 e)
21080 ax_check_save_flags=$CFLAGS
21081 CFLAGS="$CFLAGS $CFLAGS -mno-avx512f"
21082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21083 /* end confdefs.h. */
21084 #include <time.h>
21085 int
21086 main (void)
21087 {
21088 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
21089
21090 ;
21091 return 0;
21092 }
21093 _ACEOF
21094 if ac_fn_c_try_link "$LINENO"
21095 then :
21096 eval "$as_CACHEVAR=yes"
21097 else case e in #(
21098 e) eval "$as_CACHEVAR=no" ;;
21099 esac
21100 fi
21101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21102 conftest$ac_exeext conftest.$ac_ext
21103 CFLAGS=$ax_check_save_flags ;;
21104 esac
21105 fi
21106 eval ac_res=\$$as_CACHEVAR
21107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21108 printf "%s\n" "$ac_res" >&6; }
21109 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
21110 then :
21111 CFLAGS="$CFLAGS -mno-avx512f"
21112 else case e in #(
21113 e) : ;;
21114 esac
21115 fi
21116
21117 ;;
21118 esac
21119 fi
21120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21121 conftest$ac_exeext conftest.$ac_ext
21122 CFLAGS="$oldcflags"
21123
21124 oldcflags="$CFLAGS"
21125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
21126 printf %s "checking whether C compiler accepts -maes... " >&6; }
21127 if test ${ax_cv_check_cflags___maes+y}
21128 then :
21129 printf %s "(cached) " >&6
21130 else case e in #(
21131 e)
21132 ax_check_save_flags=$CFLAGS
21133 CFLAGS="$CFLAGS -maes"
21134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21135 /* end confdefs.h. */
21136 #include <time.h>
21137 int
21138 main (void)
21139 {
21140 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
21141
21142 ;
21143 return 0;
21144 }
21145 _ACEOF
21146 if ac_fn_c_try_link "$LINENO"
21147 then :
21148 ax_cv_check_cflags___maes=yes
21149 else case e in #(
21150 e) ax_cv_check_cflags___maes=no ;;
21151 esac
21152 fi
21153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21154 conftest$ac_exeext conftest.$ac_ext
21155 CFLAGS=$ax_check_save_flags ;;
21156 esac
21157 fi
21158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
21159 printf "%s\n" "$ax_cv_check_cflags___maes" >&6; }
21160 if test "x$ax_cv_check_cflags___maes" = xyes
21161 then :
21162 CFLAGS="$CFLAGS -maes"
21163 else case e in #(
21164 e) : ;;
21165 esac
21166 fi
21167
21168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
21169 printf %s "checking whether C compiler accepts -mpclmul... " >&6; }
21170 if test ${ax_cv_check_cflags___mpclmul+y}
21171 then :
21172 printf %s "(cached) " >&6
21173 else case e in #(
21174 e)
21175 ax_check_save_flags=$CFLAGS
21176 CFLAGS="$CFLAGS -mpclmul"
21177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21178 /* end confdefs.h. */
21179 #include <time.h>
21180 int
21181 main (void)
21182 {
21183 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
21184
21185 ;
21186 return 0;
21187 }
21188 _ACEOF
21189 if ac_fn_c_try_link "$LINENO"
21190 then :
21191 ax_cv_check_cflags___mpclmul=yes
21192 else case e in #(
21193 e) ax_cv_check_cflags___mpclmul=no ;;
21194 esac
21195 fi
21196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21197 conftest$ac_exeext conftest.$ac_ext
21198 CFLAGS=$ax_check_save_flags ;;
21199 esac
21200 fi
21201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
21202 printf "%s\n" "$ax_cv_check_cflags___mpclmul" >&6; }
21203 if test "x$ax_cv_check_cflags___mpclmul" = xyes
21204 then :
21205 CFLAGS="$CFLAGS -mpclmul"
21206 else case e in #(
21207 e) : ;;
21208 esac
21209 fi
21210
21211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AESNI instructions set and PCLMULQDQ" >&5
21212 printf %s "checking for AESNI instructions set and PCLMULQDQ... " >&6; }
21213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21214 /* end confdefs.h. */
21215
21216 #pragma GCC target("aes")
21217 #pragma GCC target("pclmul")
21218 #include <wmmintrin.h>
21219
21220 int
21221 main (void)
21222 {
21223 __m128i x = _mm_aesimc_si128(_mm_setzero_si128());
21224 __m128i y = _mm_clmulepi64_si128(_mm_setzero_si128(), _mm_setzero_si128(), 0);
21225 ;
21226 return 0;
21227 }
21228 _ACEOF
21229 if ac_fn_c_try_link "$LINENO"
21230 then :
21231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21232 printf "%s\n" "yes" >&6; }
21233
21234 printf "%s\n" "#define HAVE_WMMINTRIN_H 1" >>confdefs.h
21235
21236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
21237 printf %s "checking whether C compiler accepts -maes... " >&6; }
21238 if test ${ax_cv_check_cflags___maes+y}
21239 then :
21240 printf %s "(cached) " >&6
21241 else case e in #(
21242 e)
21243 ax_check_save_flags=$CFLAGS
21244 CFLAGS="$CFLAGS -maes"
21245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21246 /* end confdefs.h. */
21247 #include <time.h>
21248 int
21249 main (void)
21250 {
21251 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
21252
21253 ;
21254 return 0;
21255 }
21256 _ACEOF
21257 if ac_fn_c_try_link "$LINENO"
21258 then :
21259 ax_cv_check_cflags___maes=yes
21260 else case e in #(
21261 e) ax_cv_check_cflags___maes=no ;;
21262 esac
21263 fi
21264 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21265 conftest$ac_exeext conftest.$ac_ext
21266 CFLAGS=$ax_check_save_flags ;;
21267 esac
21268 fi
21269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
21270 printf "%s\n" "$ax_cv_check_cflags___maes" >&6; }
21271 if test "x$ax_cv_check_cflags___maes" = xyes
21272 then :
21273 CFLAGS_AESNI="-maes"
21274 else case e in #(
21275 e) : ;;
21276 esac
21277 fi
21278
21279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
21280 printf %s "checking whether C compiler accepts -mpclmul... " >&6; }
21281 if test ${ax_cv_check_cflags___mpclmul+y}
21282 then :
21283 printf %s "(cached) " >&6
21284 else case e in #(
21285 e)
21286 ax_check_save_flags=$CFLAGS
21287 CFLAGS="$CFLAGS -mpclmul"
21288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21289 /* end confdefs.h. */
21290 #include <time.h>
21291 int
21292 main (void)
21293 {
21294 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
21295
21296 ;
21297 return 0;
21298 }
21299 _ACEOF
21300 if ac_fn_c_try_link "$LINENO"
21301 then :
21302 ax_cv_check_cflags___mpclmul=yes
21303 else case e in #(
21304 e) ax_cv_check_cflags___mpclmul=no ;;
21305 esac
21306 fi
21307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21308 conftest$ac_exeext conftest.$ac_ext
21309 CFLAGS=$ax_check_save_flags ;;
21310 esac
21311 fi
21312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
21313 printf "%s\n" "$ax_cv_check_cflags___mpclmul" >&6; }
21314 if test "x$ax_cv_check_cflags___mpclmul" = xyes
21315 then :
21316 CFLAGS_PCLMUL="-mpclmul"
21317 else case e in #(
21318 e) : ;;
21319 esac
21320 fi
21321
21322
21323 else case e in #(
21324 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21325 printf "%s\n" "no" >&6; } ;;
21326 esac
21327 fi
21328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21329 conftest$ac_exeext conftest.$ac_ext
21330 CFLAGS="$oldcflags"
21331
21332 oldcflags="$CFLAGS"
21333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mrdrnd" >&5
21334 printf %s "checking whether C compiler accepts -mrdrnd... " >&6; }
21335 if test ${ax_cv_check_cflags___mrdrnd+y}
21336 then :
21337 printf %s "(cached) " >&6
21338 else case e in #(
21339 e)
21340 ax_check_save_flags=$CFLAGS
21341 CFLAGS="$CFLAGS -mrdrnd"
21342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21343 /* end confdefs.h. */
21344 #include <time.h>
21345 int
21346 main (void)
21347 {
21348 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
21349
21350 ;
21351 return 0;
21352 }
21353 _ACEOF
21354 if ac_fn_c_try_link "$LINENO"
21355 then :
21356 ax_cv_check_cflags___mrdrnd=yes
21357 else case e in #(
21358 e) ax_cv_check_cflags___mrdrnd=no ;;
21359 esac
21360 fi
21361 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21362 conftest$ac_exeext conftest.$ac_ext
21363 CFLAGS=$ax_check_save_flags ;;
21364 esac
21365 fi
21366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mrdrnd" >&5
21367 printf "%s\n" "$ax_cv_check_cflags___mrdrnd" >&6; }
21368 if test "x$ax_cv_check_cflags___mrdrnd" = xyes
21369 then :
21370 CFLAGS="$CFLAGS -mrdrnd"
21371 else case e in #(
21372 e) : ;;
21373 esac
21374 fi
21375
21376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RDRAND" >&5
21377 printf %s "checking for RDRAND... " >&6; }
21378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21379 /* end confdefs.h. */
21380
21381 #pragma GCC target("rdrnd")
21382 #include <immintrin.h>
21383
21384 int
21385 main (void)
21386 {
21387 unsigned long long x; _rdrand64_step(&x);
21388 ;
21389 return 0;
21390 }
21391 _ACEOF
21392 if ac_fn_c_try_link "$LINENO"
21393 then :
21394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21395 printf "%s\n" "yes" >&6; }
21396
21397 printf "%s\n" "#define HAVE_RDRAND 1" >>confdefs.h
21398
21399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mrdrnd" >&5
21400 printf %s "checking whether C compiler accepts -mrdrnd... " >&6; }
21401 if test ${ax_cv_check_cflags___mrdrnd+y}
21402 then :
21403 printf %s "(cached) " >&6
21404 else case e in #(
21405 e)
21406 ax_check_save_flags=$CFLAGS
21407 CFLAGS="$CFLAGS -mrdrnd"
21408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21409 /* end confdefs.h. */
21410 #include <time.h>
21411 int
21412 main (void)
21413 {
21414 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
21415
21416 ;
21417 return 0;
21418 }
21419 _ACEOF
21420 if ac_fn_c_try_link "$LINENO"
21421 then :
21422 ax_cv_check_cflags___mrdrnd=yes
21423 else case e in #(
21424 e) ax_cv_check_cflags___mrdrnd=no ;;
21425 esac
21426 fi
21427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21428 conftest$ac_exeext conftest.$ac_ext
21429 CFLAGS=$ax_check_save_flags ;;
21430 esac
21431 fi
21432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mrdrnd" >&5
21433 printf "%s\n" "$ax_cv_check_cflags___mrdrnd" >&6; }
21434 if test "x$ax_cv_check_cflags___mrdrnd" = xyes
21435 then :
21436 CFLAGS_RDRAND="-mrdrnd"
21437 else case e in #(
21438 e) : ;;
21439 esac
21440 fi
21441
21442
21443 else case e in #(
21444 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21445 printf "%s\n" "no" >&6; } ;;
21446 esac
21447 fi
21448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21449 conftest$ac_exeext conftest.$ac_ext
21450 CFLAGS="$oldcflags"
21451
21452
21453 fi
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
21469 if test "x$ac_cv_header_sys_mman_h" = xyes
21470 then :
21471 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
21472
21473 fi
21474 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
21475 if test "x$ac_cv_header_sys_param_h" = xyes
21476 then :
21477 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
21478
21479 fi
21480 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
21481 if test "x$ac_cv_header_sys_random_h" = xyes
21482 then :
21483 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
21484
21485 fi
21486 ac_fn_c_check_header_compile "$LINENO" "intrin.h" "ac_cv_header_intrin_h" "$ac_includes_default"
21487 if test "x$ac_cv_header_intrin_h" = xyes
21488 then :
21489 printf "%s\n" "#define HAVE_INTRIN_H 1" >>confdefs.h
21490
21491 fi
21492 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
21493 if test "x$ac_cv_header_sys_auxv_h" = xyes
21494 then :
21495 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
21496
21497 fi
21498
21499 ac_fn_c_check_header_compile "$LINENO" "CommonCrypto/CommonRandom.h" "ac_cv_header_CommonCrypto_CommonRandom_h" "$ac_includes_default"
21500 if test "x$ac_cv_header_CommonCrypto_CommonRandom_h" = xyes
21501 then :
21502 printf "%s\n" "#define HAVE_COMMONCRYPTO_COMMONRANDOM_H 1" >>confdefs.h
21503
21504 fi
21505
21506 ac_fn_c_check_header_compile "$LINENO" "cet.h" "ac_cv_header_cet_h" "$ac_includes_default"
21507 if test "x$ac_cv_header_cet_h" = xyes
21508 then :
21509 printf "%s\n" "#define HAVE_CET_H 1" >>confdefs.h
21510
21511 fi
21512 ac_fn_c_check_header_compile "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
21513 if test "x$ac_cv_header_threads_h" = xyes
21514 then :
21515 printf "%s\n" "#define HAVE_THREADS_H 1" >>confdefs.h
21516
21517 fi
21518
21519
21520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _xgetbv() is available" >&5
21521 printf %s "checking if _xgetbv() is available... " >&6; }
21522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21523 /* end confdefs.h. */
21524 #include <intrin.h>
21525 int
21526 main (void)
21527 {
21528 (void) _xgetbv(0)
21529 ;
21530 return 0;
21531 }
21532 _ACEOF
21533 if ac_fn_c_try_link "$LINENO"
21534 then :
21535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21536 printf "%s\n" "yes" >&6; }
21537
21538 printf "%s\n" "#define HAVE__XGETBV 1" >>confdefs.h
21539
21540 else case e in #(
21541 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21542 printf "%s\n" "no" >&6; } ;;
21543 esac
21544 fi
21545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21546 conftest$ac_exeext conftest.$ac_ext
21547
21548
21549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21550 printf %s "checking for inline... " >&6; }
21551 if test ${ac_cv_c_inline+y}
21552 then :
21553 printf %s "(cached) " >&6
21554 else case e in #(
21555 e) ac_cv_c_inline=no
21556 for ac_kw in inline __inline__ __inline; do
21557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21558 /* end confdefs.h. */
21559 #ifndef __cplusplus
21560 typedef int foo_t;
21561 static $ac_kw foo_t static_foo (void) {return 0; }
21562 $ac_kw foo_t foo (void) {return 0; }
21563 #endif
21564
21565 _ACEOF
21566 if ac_fn_c_try_compile "$LINENO"
21567 then :
21568 ac_cv_c_inline=$ac_kw
21569 fi
21570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21571 test "$ac_cv_c_inline" != no && break
21572 done
21573 ;;
21574 esac
21575 fi
21576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21577 printf "%s\n" "$ac_cv_c_inline" >&6; }
21578
21579 case $ac_cv_c_inline in
21580 inline | yes) ;;
21581 *)
21582 case $ac_cv_c_inline in
21583 no) ac_val=;;
21584 *) ac_val=$ac_cv_c_inline;;
21585 esac
21586 cat >>confdefs.h <<_ACEOF
21587 #ifndef __cplusplus
21588 #define inline $ac_val
21589 #endif
21590 _ACEOF
21591 ;;
21592 esac
21593
21594 case $host_cpu in #(
21595 i?86|amd64|x86_64) :
21596 ac_cv_c_bigendian=no
21597 ;; #(
21598 *) :
21599 ;;
21600 esac
21601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21602 printf %s "checking whether byte ordering is bigendian... " >&6; }
21603 if test ${ac_cv_c_bigendian+y}
21604 then :
21605 printf %s "(cached) " >&6
21606 else case e in #(
21607 e) ac_cv_c_bigendian=unknown
21608 # See if we're dealing with a universal compiler.
21609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h. */
21611 #ifndef __APPLE_CC__
21612 not a universal capable compiler
21613 #endif
21614 typedef int dummy;
21615
21616 _ACEOF
21617 if ac_fn_c_try_compile "$LINENO"
21618 then :
21619
21620 # Check for potential -arch flags. It is not universal unless
21621 # there are at least two -arch flags with different values.
21622 ac_arch=
21623 ac_prev=
21624 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21625 if test -n "$ac_prev"; then
21626 case $ac_word in
21627 i?86 | x86_64 | ppc | ppc64)
21628 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21629 ac_arch=$ac_word
21630 else
21631 ac_cv_c_bigendian=universal
21632 break
21633 fi
21634 ;;
21635 esac
21636 ac_prev=
21637 elif test "x$ac_word" = "x-arch"; then
21638 ac_prev=arch
21639 fi
21640 done
21641 fi
21642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21643 if test $ac_cv_c_bigendian = unknown; then
21644 # See if sys/param.h defines the BYTE_ORDER macro.
21645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21646 /* end confdefs.h. */
21647 #include <sys/types.h>
21648 #include <sys/param.h>
21649
21650 int
21651 main (void)
21652 {
21653 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
21654 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
21655 && LITTLE_ENDIAN)
21656 bogus endian macros
21657 #endif
21658
21659 ;
21660 return 0;
21661 }
21662 _ACEOF
21663 if ac_fn_c_try_compile "$LINENO"
21664 then :
21665 # It does; now see whether it defined to BIG_ENDIAN or not.
21666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21667 /* end confdefs.h. */
21668 #include <sys/types.h>
21669 #include <sys/param.h>
21670
21671 int
21672 main (void)
21673 {
21674 #if BYTE_ORDER != BIG_ENDIAN
21675 not big endian
21676 #endif
21677
21678 ;
21679 return 0;
21680 }
21681 _ACEOF
21682 if ac_fn_c_try_compile "$LINENO"
21683 then :
21684 ac_cv_c_bigendian=yes
21685 else case e in #(
21686 e) ac_cv_c_bigendian=no ;;
21687 esac
21688 fi
21689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21690 fi
21691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21692 fi
21693 if test $ac_cv_c_bigendian = unknown; then
21694 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21696 /* end confdefs.h. */
21697 #include <limits.h>
21698
21699 int
21700 main (void)
21701 {
21702 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21703 bogus endian macros
21704 #endif
21705
21706 ;
21707 return 0;
21708 }
21709 _ACEOF
21710 if ac_fn_c_try_compile "$LINENO"
21711 then :
21712 # It does; now see whether it defined to _BIG_ENDIAN or not.
21713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21714 /* end confdefs.h. */
21715 #include <limits.h>
21716
21717 int
21718 main (void)
21719 {
21720 #ifndef _BIG_ENDIAN
21721 not big endian
21722 #endif
21723
21724 ;
21725 return 0;
21726 }
21727 _ACEOF
21728 if ac_fn_c_try_compile "$LINENO"
21729 then :
21730 ac_cv_c_bigendian=yes
21731 else case e in #(
21732 e) ac_cv_c_bigendian=no ;;
21733 esac
21734 fi
21735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21736 fi
21737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21738 fi
21739 if test $ac_cv_c_bigendian = unknown; then
21740 # Compile a test program.
21741 if test "$cross_compiling" = yes
21742 then :
21743 # Try to guess by grepping values from an object file.
21744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21745 /* end confdefs.h. */
21746 unsigned short int ascii_mm[] =
21747 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21748 unsigned short int ascii_ii[] =
21749 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21750 int use_ascii (int i) {
21751 return ascii_mm[i] + ascii_ii[i];
21752 }
21753 unsigned short int ebcdic_ii[] =
21754 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21755 unsigned short int ebcdic_mm[] =
21756 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21757 int use_ebcdic (int i) {
21758 return ebcdic_mm[i] + ebcdic_ii[i];
21759 }
21760 int
21761 main (int argc, char **argv)
21762 {
21763 /* Intimidate the compiler so that it does not
21764 optimize the arrays away. */
21765 char *p = argv[0];
21766 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
21767 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
21768 return use_ascii (argc) == use_ebcdic (*p);
21769 }
21770 _ACEOF
21771 if ac_fn_c_try_link "$LINENO"
21772 then :
21773 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
21774 ac_cv_c_bigendian=yes
21775 fi
21776 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
21777 if test "$ac_cv_c_bigendian" = unknown; then
21778 ac_cv_c_bigendian=no
21779 else
21780 # finding both strings is unlikely to happen, but who knows?
21781 ac_cv_c_bigendian=unknown
21782 fi
21783 fi
21784 fi
21785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21786 conftest$ac_exeext conftest.$ac_ext
21787 else case e in #(
21788 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21789 /* end confdefs.h. */
21790 $ac_includes_default
21791 int
21792 main (void)
21793 {
21794
21795 /* Are we little or big endian? From Harbison&Steele. */
21796 union
21797 {
21798 long int l;
21799 char c[sizeof (long int)];
21800 } u;
21801 u.l = 1;
21802 return u.c[sizeof (long int) - 1] == 1;
21803
21804 ;
21805 return 0;
21806 }
21807 _ACEOF
21808 if ac_fn_c_try_run "$LINENO"
21809 then :
21810 ac_cv_c_bigendian=no
21811 else case e in #(
21812 e) ac_cv_c_bigendian=yes ;;
21813 esac
21814 fi
21815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21816 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21817 esac
21818 fi
21819
21820 fi ;;
21821 esac
21822 fi
21823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21824 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
21825 case $ac_cv_c_bigendian in #(
21826 yes)
21827
21828 printf "%s\n" "#define NATIVE_BIG_ENDIAN 1" >>confdefs.h
21829 ;; #(
21830 no)
21831
21832 printf "%s\n" "#define NATIVE_LITTLE_ENDIAN 1" >>confdefs.h
21833 ;; #(
21834 universal)
21835 as_fn_error $? "universal endianness is not supported - compile separately and use lipo(1)" "$LINENO" 5
21836
21837 ;; #(
21838 *)
21839 as_fn_error $? "unknown endianness" "$LINENO" 5 ;;
21840 esac
21841
21842
21843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __STDC_LIMIT_MACROS is required" >&5
21844 printf %s "checking whether __STDC_LIMIT_MACROS is required... " >&6; }
21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846 /* end confdefs.h. */
21847
21848 #include <limits.h>
21849 #include <stdint.h>
21850
21851 int
21852 main (void)
21853 {
21854
21855 (void) SIZE_MAX;
21856 (void) UINT64_MAX;
21857
21858 ;
21859 return 0;
21860 }
21861 _ACEOF
21862 if ac_fn_c_try_link "$LINENO"
21863 then :
21864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21865 printf "%s\n" "no" >&6; }
21866 else case e in #(
21867 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21868 printf "%s\n" "yes" >&6; }
21869 CPPFLAGS="$CPPFLAGS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS"
21870 ;;
21871 esac
21872 fi
21873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21874 conftest$ac_exeext conftest.$ac_ext
21875
21876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use inline asm code" >&5
21877 printf %s "checking whether we can use inline asm code... " >&6; }
21878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21879 /* end confdefs.h. */
21880
21881 #ifdef __FILC__
21882 # error inline assembly is not supported with FilC
21883 #endif
21884
21885 int
21886 main (void)
21887 {
21888
21889 int a = 42;
21890 int *pnt = &a;
21891 __asm__ __volatile__ ("" : : "r"(pnt) : "memory");
21892
21893 ;
21894 return 0;
21895 }
21896 _ACEOF
21897 if ac_fn_c_try_link "$LINENO"
21898 then :
21899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21900 printf "%s\n" "yes" >&6; }
21901
21902 printf "%s\n" "#define HAVE_INLINE_ASM 1" >>confdefs.h
21903
21904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21905 printf "%s\n" "no" >&6; }
21906
21907 fi
21908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21909 conftest$ac_exeext conftest.$ac_ext
21910
21911 HAVE_AMD64_ASM_V=0
21912 if test "$enable_asm" != "no"
21913 then :
21914
21915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use x86_64 asm code" >&5
21916 printf %s "checking whether we can use x86_64 asm code... " >&6; }
21917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21918 /* end confdefs.h. */
21919
21920
21921 int
21922 main (void)
21923 {
21924
21925 #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
21926 # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
21927 # error Windows x86_64 calling conventions are not supported yet
21928 # endif
21929 /* neat */
21930 #else
21931 # error !x86_64
21932 #endif
21933 unsigned char i = 0, o = 0, t;
21934 __asm__ __volatile__ ("pxor %%xmm12, %%xmm6 \n"
21935 "movb (%[i]), %[t] \n"
21936 "addb %[t], (%[o]) \n"
21937 : [t] "=&r"(t)
21938 : [o] "D"(&o), [i] "S"(&i)
21939 : "memory", "flags", "cc");
21940
21941 ;
21942 return 0;
21943 }
21944 _ACEOF
21945 if ac_fn_c_try_link "$LINENO"
21946 then :
21947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21948 printf "%s\n" "yes" >&6; }
21949
21950 printf "%s\n" "#define HAVE_AMD64_ASM 1" >>confdefs.h
21951
21952 HAVE_AMD64_ASM_V=1
21953 else case e in #(
21954 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21955 printf "%s\n" "no" >&6; } ;;
21956 esac
21957 fi
21958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21959 conftest$ac_exeext conftest.$ac_ext
21960
21961 fi
21962 if test $HAVE_AMD64_ASM_V = 1; then
21963 HAVE_AMD64_ASM_TRUE=
21964 HAVE_AMD64_ASM_FALSE='#'
21965 else
21966 HAVE_AMD64_ASM_TRUE='#'
21967 HAVE_AMD64_ASM_FALSE=
21968 fi
21969
21970
21971
21972 HAVE_AVX_ASM_V=0
21973 if test "$enable_asm" != "no"
21974 then :
21975
21976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can assemble AVX opcodes" >&5
21977 printf %s "checking whether we can assemble AVX opcodes... " >&6; }
21978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21979 /* end confdefs.h. */
21980
21981
21982 int
21983 main (void)
21984 {
21985
21986 #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
21987 # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
21988 # error Windows x86_64 calling conventions are not supported yet
21989 # endif
21990 /* neat */
21991 #else
21992 # error !x86_64
21993 #endif
21994 __asm__ __volatile__ ("vpunpcklqdq %xmm0,%xmm13,%xmm0");
21995
21996 ;
21997 return 0;
21998 }
21999 _ACEOF
22000 if ac_fn_c_try_link "$LINENO"
22001 then :
22002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22003 printf "%s\n" "yes" >&6; }
22004
22005 printf "%s\n" "#define HAVE_AVX_ASM 1" >>confdefs.h
22006
22007 HAVE_AVX_ASM_V=1
22008 else case e in #(
22009 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22010 printf "%s\n" "no" >&6; } ;;
22011 esac
22012 fi
22013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22014 conftest$ac_exeext conftest.$ac_ext
22015
22016 fi
22017 if test $HAVE_AVX_ASM_V = 1; then
22018 HAVE_AVX_ASM_TRUE=
22019 HAVE_AVX_ASM_FALSE='#'
22020 else
22021 HAVE_AVX_ASM_TRUE='#'
22022 HAVE_AVX_ASM_FALSE=
22023 fi
22024
22025
22026
22027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 128-bit arithmetic" >&5
22028 printf %s "checking for 128-bit arithmetic... " >&6; }
22029 HAVE_TI_MODE_V=0
22030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22031 /* end confdefs.h. */
22032
22033 #if !defined(__clang__) && !defined(__GNUC__) && !defined(__SIZEOF_INT128__)
22034 # error mode(TI) is a gcc extension, and __int128 is not available
22035 #endif
22036 #if defined(__clang__) && !defined(__x86_64__) && !defined(__aarch64__)
22037 # error clang does not properly handle the 128-bit type on 32-bit systems
22038 #endif
22039 #ifndef NATIVE_LITTLE_ENDIAN
22040 # error libsodium currently expects a little endian CPU for the 128-bit type
22041 #endif
22042 #ifdef __EMSCRIPTEN__
22043 # error emscripten currently doesn't support some operations on integers larger than 64 bits
22044 #endif
22045 #include <stddef.h>
22046 #include <stdint.h>
22047 #if defined(__SIZEOF_INT128__)
22048 typedef unsigned __int128 uint128_t;
22049 #else
22050 typedef unsigned uint128_t __attribute__((mode(TI)));
22051 #endif
22052 void fcontract(uint128_t *t) {
22053 *t += 0x8000000000000 - 1;
22054 *t *= *t;
22055 *t >>= 84;
22056 }
22057
22058 int
22059 main (void)
22060 {
22061
22062 (void) fcontract;
22063
22064 ;
22065 return 0;
22066 }
22067 _ACEOF
22068 if ac_fn_c_try_compile "$LINENO"
22069 then :
22070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22071 printf "%s\n" "yes" >&6; }
22072
22073 printf "%s\n" "#define HAVE_TI_MODE 1" >>confdefs.h
22074
22075 HAVE_TI_MODE_V=1
22076 else case e in #(
22077 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22078 printf "%s\n" "no" >&6; } ;;
22079 esac
22080 fi
22081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22082 if test $HAVE_TI_MODE_V = 1; then
22083 HAVE_TI_MODE_TRUE=
22084 HAVE_TI_MODE_FALSE='#'
22085 else
22086 HAVE_TI_MODE_TRUE='#'
22087 HAVE_TI_MODE_FALSE=
22088 fi
22089
22090
22091
22092 HAVE_CPUID_V=0
22093 if test "$enable_asm" != "no"
22094 then :
22095
22096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpuid instruction" >&5
22097 printf %s "checking for cpuid instruction... " >&6; }
22098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22099 /* end confdefs.h. */
22100
22101 int
22102 main (void)
22103 {
22104
22105 unsigned int cpu_info[4];
22106 __asm__ __volatile__ ("xchgl %%ebx, %k1; cpuid; xchgl %%ebx, %k1" :
22107 "=a" (cpu_info[0]), "=&r" (cpu_info[1]),
22108 "=c" (cpu_info[2]), "=d" (cpu_info[3]) :
22109 "0" (0U), "2" (0U));
22110
22111 ;
22112 return 0;
22113 }
22114 _ACEOF
22115 if ac_fn_c_try_link "$LINENO"
22116 then :
22117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22118 printf "%s\n" "yes" >&6; }
22119
22120 printf "%s\n" "#define HAVE_CPUID 1" >>confdefs.h
22121
22122 HAVE_CPUID_V=1
22123 else case e in #(
22124 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22125 printf "%s\n" "no" >&6; } ;;
22126 esac
22127 fi
22128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22129 conftest$ac_exeext conftest.$ac_ext
22130
22131 fi
22132
22133
22134 asm_hide_symbol="unsupported"
22135 if test "$enable_asm" != "no"
22136 then :
22137
22138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the .private_extern asm directive is supported" >&5
22139 printf %s "checking if the .private_extern asm directive is supported... " >&6; }
22140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22141 /* end confdefs.h. */
22142
22143 int
22144 main (void)
22145 {
22146
22147 __asm__ __volatile__ (".private_extern dummy_symbol \n"
22148 ".private_extern _dummy_symbol \n"
22149 ".globl dummy_symbol \n"
22150 ".globl _dummy_symbol \n"
22151 "dummy_symbol: \n"
22152 "_dummy_symbol: \n"
22153 " nop \n"
22154 );
22155
22156 ;
22157 return 0;
22158 }
22159 _ACEOF
22160 if ac_fn_c_try_link "$LINENO"
22161 then :
22162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22163 printf "%s\n" "yes" >&6; }
22164 asm_hide_symbol=".private_extern"
22165 else case e in #(
22166 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22167 printf "%s\n" "no" >&6; } ;;
22168 esac
22169 fi
22170 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22171 conftest$ac_exeext conftest.$ac_ext
22172
22173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the .hidden asm directive is supported" >&5
22174 printf %s "checking if the .hidden asm directive is supported... " >&6; }
22175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22176 /* end confdefs.h. */
22177
22178 int
22179 main (void)
22180 {
22181
22182 __asm__ __volatile__ (".hidden dummy_symbol \n"
22183 ".hidden _dummy_symbol \n"
22184 ".globl dummy_symbol \n"
22185 ".globl _dummy_symbol \n"
22186 "dummy_symbol: \n"
22187 "_dummy_symbol: \n"
22188 " nop \n"
22189 );
22190
22191 ;
22192 return 0;
22193 }
22194 _ACEOF
22195 if ac_fn_c_try_link "$LINENO"
22196 then :
22197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22198 printf "%s\n" "yes" >&6; }
22199 if test "$asm_hide_symbol" = "unsupported"
22200 then :
22201 asm_hide_symbol=".hidden"
22202 else case e in #(
22203 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: unable to reliably tag symbols as private" >&5
22204 printf "%s\n" "$as_me: unable to reliably tag symbols as private" >&6;}
22205 asm_hide_symbol="unsupported" ;;
22206 esac
22207 fi
22208
22209 else case e in #(
22210 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22211 printf "%s\n" "no" >&6; } ;;
22212 esac
22213 fi
22214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22215 conftest$ac_exeext conftest.$ac_ext
22216
22217 if test "$asm_hide_symbol" != "unsupported"
22218 then :
22219
22220
22221 printf "%s\n" "#define ASM_HIDE_SYMBOL $asm_hide_symbol" >>confdefs.h
22222
22223
22224 fi
22225
22226 fi
22227
22228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if weak symbols are supported" >&5
22229 printf %s "checking if weak symbols are supported... " >&6; }
22230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22231 /* end confdefs.h. */
22232
22233 #if !defined(__ELF__) && !defined(__APPLE_CC__)
22234 # error Support for weak symbols may not be available
22235 #endif
22236 __attribute__((weak)) void __dummy(void *x) { }
22237 void f(void *x) { __dummy(x); }
22238
22239 int
22240 main (void)
22241 {
22242
22243
22244 ;
22245 return 0;
22246 }
22247 _ACEOF
22248 if ac_fn_c_try_link "$LINENO"
22249 then :
22250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22251 printf "%s\n" "yes" >&6; }
22252
22253 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
22254
22255 else case e in #(
22256 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22257 printf "%s\n" "no" >&6; } ;;
22258 esac
22259 fi
22260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22261 conftest$ac_exeext conftest.$ac_ext
22262
22263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if atomic operations are supported" >&5
22264 printf %s "checking if atomic operations are supported... " >&6; }
22265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22266 /* end confdefs.h. */
22267
22268 int
22269 main (void)
22270 {
22271
22272 static volatile int _sodium_lock;
22273 __sync_lock_test_and_set(&_sodium_lock, 1);
22274 __sync_lock_release(&_sodium_lock);
22275
22276
22277 ;
22278 return 0;
22279 }
22280 _ACEOF
22281 if ac_fn_c_try_link "$LINENO"
22282 then :
22283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22284 printf "%s\n" "yes" >&6; }
22285
22286 printf "%s\n" "#define HAVE_ATOMIC_OPS 1" >>confdefs.h
22287
22288 else case e in #(
22289 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22290 printf "%s\n" "no" >&6; } ;;
22291 esac
22292 fi
22293 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22294 conftest$ac_exeext conftest.$ac_ext
22295
22296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C11 memory fences are supported" >&5
22297 printf %s "checking if C11 memory fences are supported... " >&6; }
22298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22299 /* end confdefs.h. */
22300
22301 #include <stdatomic.h>
22302
22303 int
22304 main (void)
22305 {
22306
22307 atomic_thread_fence(memory_order_acquire);
22308
22309
22310 ;
22311 return 0;
22312 }
22313 _ACEOF
22314 if ac_fn_c_try_link "$LINENO"
22315 then :
22316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22317 printf "%s\n" "yes" >&6; }
22318
22319 printf "%s\n" "#define HAVE_C11_MEMORY_FENCES 1" >>confdefs.h
22320
22321 else case e in #(
22322 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22323 printf "%s\n" "no" >&6; } ;;
22324 esac
22325 fi
22326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22327 conftest$ac_exeext conftest.$ac_ext
22328
22329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc memory fences are supported" >&5
22330 printf %s "checking if gcc memory fences are supported... " >&6; }
22331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22332 /* end confdefs.h. */
22333
22334 int
22335 main (void)
22336 {
22337
22338 __atomic_thread_fence(__ATOMIC_ACQUIRE);
22339
22340
22341 ;
22342 return 0;
22343 }
22344 _ACEOF
22345 if ac_fn_c_try_link "$LINENO"
22346 then :
22347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22348 printf "%s\n" "yes" >&6; }
22349
22350 printf "%s\n" "#define HAVE_GCC_MEMORY_FENCES 1" >>confdefs.h
22351
22352 else case e in #(
22353 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22354 printf "%s\n" "no" >&6; } ;;
22355 esac
22356 fi
22357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22358 conftest$ac_exeext conftest.$ac_ext
22359
22360
22361 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22362 if test "x$ac_cv_type_size_t" = xyes
22363 then :
22364
22365 else case e in #(
22366 e)
22367 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
22368 ;;
22369 esac
22370 fi
22371
22372 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22373 # for constant arguments. Useless!
22374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
22375 printf %s "checking for working alloca.h... " >&6; }
22376 if test ${ac_cv_working_alloca_h+y}
22377 then :
22378 printf %s "(cached) " >&6
22379 else case e in #(
22380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22381 /* end confdefs.h. */
22382 #include <alloca.h>
22383 int
22384 main (void)
22385 {
22386 char *p = (char *) alloca (2 * sizeof (int));
22387 if (p) return 0;
22388 ;
22389 return 0;
22390 }
22391 _ACEOF
22392 if ac_fn_c_try_link "$LINENO"
22393 then :
22394 ac_cv_working_alloca_h=yes
22395 else case e in #(
22396 e) ac_cv_working_alloca_h=no ;;
22397 esac
22398 fi
22399 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22400 conftest$ac_exeext conftest.$ac_ext ;;
22401 esac
22402 fi
22403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
22404 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
22405 if test $ac_cv_working_alloca_h = yes; then
22406
22407 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
22408
22409 fi
22410
22411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
22412 printf %s "checking for alloca... " >&6; }
22413 if test ${ac_cv_func_alloca_works+y}
22414 then :
22415 printf %s "(cached) " >&6
22416 else case e in #(
22417 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
22418 if test "$ac_cv_func_alloca_works" != yes
22419 then :
22420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22421 /* end confdefs.h. */
22422 #include <stdlib.h>
22423 #include <stddef.h>
22424 #ifndef alloca
22425 # ifdef __GNUC__
22426 # define alloca __builtin_alloca
22427 # elif defined _MSC_VER
22428 # include <malloc.h>
22429 # define alloca _alloca
22430 # else
22431 # ifdef __cplusplus
22432 extern "C"
22433 # endif
22434 void *alloca (size_t);
22435 # endif
22436 #endif
22437
22438 int
22439 main (void)
22440 {
22441 char *p = (char *) alloca (1);
22442 if (p) return 0;
22443 ;
22444 return 0;
22445 }
22446 _ACEOF
22447 if ac_fn_c_try_link "$LINENO"
22448 then :
22449 ac_cv_func_alloca_works=yes
22450 fi
22451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22452 conftest$ac_exeext conftest.$ac_ext
22453 fi ;;
22454 esac
22455 fi
22456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
22457 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
22458
22459 if test $ac_cv_func_alloca_works = yes; then
22460
22461 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
22462
22463 else
22464 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22465 # that cause trouble. Some versions do not even contain alloca or
22466 # contain a buggy version. If you still want to use their alloca,
22467 # use ar to extract alloca.o from them instead of compiling alloca.c.
22468
22469 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
22470
22471 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
22472
22473
22474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
22475 printf %s "checking stack direction for C alloca... " >&6; }
22476 if test ${ac_cv_c_stack_direction+y}
22477 then :
22478 printf %s "(cached) " >&6
22479 else case e in #(
22480 e) if test "$cross_compiling" = yes
22481 then :
22482 ac_cv_c_stack_direction=0
22483 else case e in #(
22484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22485 /* end confdefs.h. */
22486 $ac_includes_default
22487 int
22488 find_stack_direction (int *addr, int depth)
22489 {
22490 int dir, dummy = 0;
22491 if (! addr)
22492 addr = &dummy;
22493 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
22494 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
22495 return dir + dummy;
22496 }
22497
22498 int
22499 main (int argc, char **argv)
22500 {
22501 return find_stack_direction (0, argc + !argv + 20) < 0;
22502 }
22503 _ACEOF
22504 if ac_fn_c_try_run "$LINENO"
22505 then :
22506 ac_cv_c_stack_direction=1
22507 else case e in #(
22508 e) ac_cv_c_stack_direction=-1 ;;
22509 esac
22510 fi
22511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22512 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22513 esac
22514 fi
22515 ;;
22516 esac
22517 fi
22518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
22519 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
22520 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
22521
22522
22523 fi
22524
22525 if test "x$EMSCRIPTEN" = "x"
22526 then :
22527
22528 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
22529 if test "x$ac_cv_func_arc4random" = xyes
22530 then :
22531 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
22532
22533 fi
22534 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
22535 if test "x$ac_cv_func_arc4random_buf" = xyes
22536 then :
22537 printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
22538
22539 fi
22540
22541 if test "x$WASI" = "x"
22542 then :
22543
22544 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22545 if test "x$ac_cv_func_mmap" = xyes
22546 then :
22547 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
22548
22549 fi
22550 ac_fn_c_check_func "$LINENO" "mlock" "ac_cv_func_mlock"
22551 if test "x$ac_cv_func_mlock" = xyes
22552 then :
22553 printf "%s\n" "#define HAVE_MLOCK 1" >>confdefs.h
22554
22555 fi
22556 ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise"
22557 if test "x$ac_cv_func_madvise" = xyes
22558 then :
22559 printf "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h
22560
22561 fi
22562 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
22563 if test "x$ac_cv_func_mprotect" = xyes
22564 then :
22565 printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
22566
22567 fi
22568
22569 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
22570 if test "x$ac_cv_func_raise" = xyes
22571 then :
22572 printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
22573
22574 fi
22575
22576 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
22577 if test "x$ac_cv_func_sysconf" = xyes
22578 then :
22579 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
22580
22581 fi
22582
22583
22584 fi
22585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getrandom with a standard API" >&5
22586 printf %s "checking for getrandom with a standard API... " >&6; }
22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h. */
22589
22590 #include <stdlib.h>
22591 #ifdef HAVE_UNISTD_H
22592 # include <unistd.h>
22593 #endif
22594 #ifdef HAVE_SYS_RANDOM_H
22595 # include <sys/random.h>
22596 #endif
22597
22598 int
22599 main (void)
22600 {
22601
22602 unsigned char buf;
22603 if (&getrandom != NULL) {
22604 (void) getrandom((void *) &buf, 1U, 0U);
22605 }
22606
22607 ;
22608 return 0;
22609 }
22610 _ACEOF
22611 if ac_fn_c_try_link "$LINENO"
22612 then :
22613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22614 printf "%s\n" "yes" >&6; }
22615 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
22616 if test "x$ac_cv_func_getrandom" = xyes
22617 then :
22618 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
22619
22620 fi
22621
22622 else case e in #(
22623 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22624 printf "%s\n" "no" >&6; }
22625 ;;
22626 esac
22627 fi
22628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22629 conftest$ac_exeext conftest.$ac_ext
22630
22631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getentropy with a standard API" >&5
22632 printf %s "checking for getentropy with a standard API... " >&6; }
22633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22634 /* end confdefs.h. */
22635
22636 #include <stdlib.h>
22637 #ifdef HAVE_UNISTD_H
22638 # include <unistd.h>
22639 #endif
22640 #ifdef HAVE_SYS_RANDOM_H
22641 # include <sys/random.h>
22642 #endif
22643
22644 int
22645 main (void)
22646 {
22647
22648 unsigned char buf;
22649 if (&getentropy != NULL) {
22650 (void) getentropy((void *) &buf, 1U);
22651 }
22652
22653 ;
22654 return 0;
22655 }
22656 _ACEOF
22657 if ac_fn_c_try_link "$LINENO"
22658 then :
22659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22660 printf "%s\n" "yes" >&6; }
22661 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
22662 if test "x$ac_cv_func_getentropy" = xyes
22663 then :
22664 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
22665
22666 fi
22667
22668 else case e in #(
22669 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22670 printf "%s\n" "no" >&6; }
22671 ;;
22672 esac
22673 fi
22674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22675 conftest$ac_exeext conftest.$ac_ext
22676
22677 fi
22678
22679 if test "x$WASI" = "x"
22680 then :
22681
22682 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
22683 if test "x$ac_cv_func_getpid" = xyes
22684 then :
22685 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
22686
22687 fi
22688
22689 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
22690 if test "x$ac_cv_func_getauxval" = xyes
22691 then :
22692 printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
22693
22694 fi
22695 ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
22696 if test "x$ac_cv_func_elf_aux_info" = xyes
22697 then :
22698 printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
22699
22700 fi
22701
22702
22703 fi
22704
22705 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
22706 if test "x$ac_cv_func_posix_memalign" = xyes
22707 then :
22708 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
22709
22710 fi
22711 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
22712 if test "x$ac_cv_func_nanosleep" = xyes
22713 then :
22714 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
22715
22716 fi
22717 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
22718 if test "x$ac_cv_func_clock_gettime" = xyes
22719 then :
22720 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22721
22722 fi
22723
22724
22725 if test "x$WASI" = "x"
22726 then :
22727
22728 ac_fn_c_check_func "$LINENO" "memset_s" "ac_cv_func_memset_s"
22729 if test "x$ac_cv_func_memset_s" = xyes
22730 then :
22731 printf "%s\n" "#define HAVE_MEMSET_S 1" >>confdefs.h
22732
22733 fi
22734 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
22735 if test "x$ac_cv_func_explicit_bzero" = xyes
22736 then :
22737 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
22738
22739 fi
22740 ac_fn_c_check_func "$LINENO" "memset_explicit" "ac_cv_func_memset_explicit"
22741 if test "x$ac_cv_func_memset_explicit" = xyes
22742 then :
22743 printf "%s\n" "#define HAVE_MEMSET_EXPLICIT 1" >>confdefs.h
22744
22745 fi
22746 ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
22747 if test "x$ac_cv_func_explicit_memset" = xyes
22748 then :
22749 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
22750
22751 fi
22752
22753
22754 fi
22755
22756
22757
22758 TEST_LDFLAGS=''
22759 if test "x$EMSCRIPTEN" != "x"
22760 then :
22761
22762 EXEEXT=.js
22763 TEST_LDFLAGS='--pre-js pre.js.inc -s RESERVED_FUNCTION_POINTERS=8'
22764
22765 fi
22766
22767 if test "x$EMSCRIPTEN" != "x"; then
22768 EMSCRIPTEN_TRUE=
22769 EMSCRIPTEN_FALSE='#'
22770 else
22771 EMSCRIPTEN_TRUE='#'
22772 EMSCRIPTEN_FALSE=
22773 fi
22774
22775 if test "x$WASI" != "x"; then
22776 WASI_TRUE=
22777 WASI_FALSE='#'
22778 else
22779 WASI_TRUE='#'
22780 WASI_FALSE=
22781 fi
22782
22783
22784
22785 printf "%s\n" "#define CONFIGURED 1" >>confdefs.h
22786
22787
22788
22789
22790
22791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
22792 printf %s "checking if gcc/ld supports -Wl,--output-def... " >&6; }
22793 if test ${gl_cv_ld_output_def+y}
22794 then :
22795 printf %s "(cached) " >&6
22796 else case e in #(
22797 e) if test "$enable_shared" = no; then
22798 gl_cv_ld_output_def="not needed, shared libraries are disabled"
22799 else
22800 gl_ldflags_save=$LDFLAGS
22801 LDFLAGS="-Wl,--output-def,conftest.def"
22802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22803 /* end confdefs.h. */
22804
22805 int
22806 main (void)
22807 {
22808
22809 ;
22810 return 0;
22811 }
22812 _ACEOF
22813 if ac_fn_c_try_link "$LINENO"
22814 then :
22815 gl_cv_ld_output_def=yes
22816 else case e in #(
22817 e) gl_cv_ld_output_def=no ;;
22818 esac
22819 fi
22820 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22821 conftest$ac_exeext conftest.$ac_ext
22822 rm -f conftest.def
22823 LDFLAGS="$gl_ldflags_save"
22824 fi ;;
22825 esac
22826 fi
22827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
22828 printf "%s\n" "$gl_cv_ld_output_def" >&6; }
22829 if test "x$gl_cv_ld_output_def" = "xyes"; then
22830 HAVE_LD_OUTPUT_DEF_TRUE=
22831 HAVE_LD_OUTPUT_DEF_FALSE='#'
22832 else
22833 HAVE_LD_OUTPUT_DEF_TRUE='#'
22834 HAVE_LD_OUTPUT_DEF_FALSE=
22835 fi
22836
22837
22838
22839
22840
22841
22842 if test "x$ENABLE_CWFLAGS" = "xyes"
22843 then :
22844
22845 CFLAGS="$CFLAGS $CWFLAGS"
22846
22847 fi
22848
22849 ac_config_files="$ac_config_files Makefile builds/Makefile contrib/Makefile dist-build/Makefile libsodium.pc libsodium-uninstalled.pc src/Makefile src/libsodium/Makefile src/libsodium/include/Makefile src/libsodium/include/sodium/version.h test/default/Makefile test/Makefile"
22850
22851 cat >confcache <<\_ACEOF
22852 # This file is a shell script that caches the results of configure
22853 # tests run on this system so they can be shared between configure
22854 # scripts and configure runs, see configure's option --config-cache.
22855 # It is not useful on other systems. If it contains results you don't
22856 # want to keep, you may remove or edit it.
22857 #
22858 # config.status only pays attention to the cache file if you give it
22859 # the --recheck option to rerun configure.
22860 #
22861 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
22862 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
22863 # following values.
22864
22865 _ACEOF
22866
22867 # The following way of writing the cache mishandles newlines in values,
22868 # but we know of no workaround that is simple, portable, and efficient.
22869 # So, we kill variables containing newlines.
22870 # Ultrix sh set writes to stderr and can't be redirected directly,
22871 # and sets the high bit in the cache file unless we assign to the vars.
22872 (
22873 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22874 eval ac_val=\$$ac_var
22875 case $ac_val in #(
22876 *${as_nl}*)
22877 case $ac_var in #(
22878 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22879 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22880 esac
22881 case $ac_var in #(
22882 _ | IFS | as_nl) ;; #(
22883 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22884 *) { eval $ac_var=; unset $ac_var;} ;;
22885 esac ;;
22886 esac
22887 done
22888
22889 (set) 2>&1 |
22890 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22891 *${as_nl}ac_space=\ *)
22892 # 'set' does not quote correctly, so add quotes: double-quote
22893 # substitution turns \\\\ into \\, and sed turns \\ into \.
22894 sed -n \
22895 "s/'/'\\\\''/g;
22896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22897 ;; #(
22898 *)
22899 # 'set' quotes correctly as required by POSIX, so do not add quotes.
22900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22901 ;;
22902 esac |
22903 sort
22904 ) |
22905 sed '
22906 /^ac_cv_env_/b end
22907 t clear
22908 :clear
22909 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
22910 t end
22911 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22912 :end' >>confcache
22913 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22914 if test -w "$cache_file"; then
22915 if test "x$cache_file" != "x/dev/null"; then
22916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22917 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
22918 if test ! -f "$cache_file" || test -h "$cache_file"; then
22919 cat confcache >"$cache_file"
22920 else
22921 case $cache_file in #(
22922 */* | ?:*)
22923 mv -f confcache "$cache_file"$$ &&
22924 mv -f "$cache_file"$$ "$cache_file" ;; #(
22925 *)
22926 mv -f confcache "$cache_file" ;;
22927 esac
22928 fi
22929 fi
22930 else
22931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22932 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
22933 fi
22934 fi
22935 rm -f confcache
22936
22937 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22938 # Let make expand exec_prefix.
22939 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22940
22941 # Transform confdefs.h into DEFS.
22942 # Protect against shell expansion while executing Makefile rules.
22943 # Protect against Makefile macro expansion.
22944 #
22945 # If the first sed substitution is executed (which looks for macros that
22946 # take arguments), then branch to the quote section. Otherwise,
22947 # look for a macro that doesn't take arguments.
22948 ac_script='
22949 :mline
22950 /\\$/{
22951 N
22952 s,\\\n,,
22953 b mline
22954 }
22955 t clear
22956 :clear
22957 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
22958 t quote
22959 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
22960 t quote
22961 b any
22962 :quote
22963 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22964 s/\$/$$/g
22965 H
22966 :any
22967 ${
22968 g
22969 s/^\n//
22970 s/\n/ /g
22971 p
22972 }
22973 '
22974 DEFS=`sed -n "$ac_script" confdefs.h`
22975
22976
22977 ac_libobjs=
22978 ac_ltlibobjs=
22979 U=
22980 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22981 # 1. Remove the extension, and $U if already installed.
22982 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22983 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
22984 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22985 # will be set to the directory where LIBOBJS objects are built.
22986 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22987 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22988 done
22989 LIBOBJS=$ac_libobjs
22990
22991 LTLIBOBJS=$ac_ltlibobjs
22992
22993
22994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22995 printf %s "checking that generated files are newer than configure... " >&6; }
22996 if test -n "$am_sleep_pid"; then
22997 # Hide warnings about reused PIDs.
22998 wait $am_sleep_pid 2>/dev/null
22999 fi
23000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23001 printf "%s\n" "done" >&6; }
23002 case $enable_silent_rules in # (((
23003 yes) AM_DEFAULT_VERBOSITY=0;;
23004 no) AM_DEFAULT_VERBOSITY=1;;
23005 esac
23006 if test $am_cv_make_support_nested_variables = yes; then
23007 AM_V='$(V)'
23008 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
23009 else
23010 AM_V=$AM_DEFAULT_VERBOSITY
23011 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
23012 fi
23013
23014 if test -n "$EXEEXT"; then
23015 am__EXEEXT_TRUE=
23016 am__EXEEXT_FALSE='#'
23017 else
23018 am__EXEEXT_TRUE='#'
23019 am__EXEEXT_FALSE=
23020 fi
23021
23022 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23023 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23025 fi
23026 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23027 as_fn_error $? "conditional \"AMDEP\" was never defined.
23028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23029 fi
23030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23031 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23033 fi
23034 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
23035 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
23036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23037 fi
23038 if test -z "${MINIMAL_TRUE}" && test -z "${MINIMAL_FALSE}"; then
23039 as_fn_error $? "conditional \"MINIMAL\" was never defined.
23040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23041 fi
23042 if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then
23043 as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined.
23044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23045 fi
23046 if test -z "${HAVE_AMD64_ASM_TRUE}" && test -z "${HAVE_AMD64_ASM_FALSE}"; then
23047 as_fn_error $? "conditional \"HAVE_AMD64_ASM\" was never defined.
23048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23049 fi
23050 if test -z "${HAVE_AVX_ASM_TRUE}" && test -z "${HAVE_AVX_ASM_FALSE}"; then
23051 as_fn_error $? "conditional \"HAVE_AVX_ASM\" was never defined.
23052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23053 fi
23054 if test -z "${HAVE_TI_MODE_TRUE}" && test -z "${HAVE_TI_MODE_FALSE}"; then
23055 as_fn_error $? "conditional \"HAVE_TI_MODE\" was never defined.
23056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23057 fi
23058 if test -z "${EMSCRIPTEN_TRUE}" && test -z "${EMSCRIPTEN_FALSE}"; then
23059 as_fn_error $? "conditional \"EMSCRIPTEN\" was never defined.
23060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23061 fi
23062 if test -z "${WASI_TRUE}" && test -z "${WASI_FALSE}"; then
23063 as_fn_error $? "conditional \"WASI\" was never defined.
23064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23065 fi
23066 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
23067 as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
23068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23069 fi
23070
23071 : "${CONFIG_STATUS=./config.status}"
23072 ac_write_fail=0
23073 ac_clean_files_save=$ac_clean_files
23074 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23076 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23077 as_write_fail=0
23078 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23079 #! $SHELL
23080 # Generated by $as_me.
23081 # Run this file to recreate the current configuration.
23082 # Compiler output produced by configure, useful for debugging
23083 # configure, is in config.log if it exists.
23084
23085 debug=false
23086 ac_cs_recheck=false
23087 ac_cs_silent=false
23088
23089 SHELL=\${CONFIG_SHELL-$SHELL}
23090 export SHELL
23091 _ASEOF
23092 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23093 ## -------------------- ##
23094 ## M4sh Initialization. ##
23095 ## -------------------- ##
23096
23097 # Be more Bourne compatible
23098 DUALCASE=1; export DUALCASE # for MKS sh
23099 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23100 then :
23101 emulate sh
23102 NULLCMD=:
23103 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23104 # is contrary to our usage. Disable this feature.
23105 alias -g '${1+"$@"}'='"$@"'
23106 setopt NO_GLOB_SUBST
23107 else case e in #(
23108 e) case `(set -o) 2>/dev/null` in #(
23109 *posix*) :
23110 set -o posix ;; #(
23111 *) :
23112 ;;
23113 esac ;;
23114 esac
23115 fi
23116
23117
23118
23119 # Reset variables that may have inherited troublesome values from
23120 # the environment.
23121
23122 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23123 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23124 # side effect of setting IFS to empty, thus disabling word splitting.)
23125 # Quoting is to prevent editors from complaining about space-tab.
23126 as_nl='
23127 '
23128 export as_nl
23129 IFS=" "" $as_nl"
23130
23131 PS1='$ '
23132 PS2='> '
23133 PS4='+ '
23134
23135 # Ensure predictable behavior from utilities with locale-dependent output.
23136 LC_ALL=C
23137 export LC_ALL
23138 LANGUAGE=C
23139 export LANGUAGE
23140
23141 # We cannot yet rely on "unset" to work, but we need these variables
23142 # to be unset--not just set to an empty or harmless value--now, to
23143 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23144 # also avoids known problems related to "unset" and subshell syntax
23145 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23146 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23147 do eval test \${$as_var+y} \
23148 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23149 done
23150
23151 # Ensure that fds 0, 1, and 2 are open.
23152 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23153 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23154 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23155
23156 # The user is always right.
23157 if ${PATH_SEPARATOR+false} :; then
23158 PATH_SEPARATOR=:
23159 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23160 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23161 PATH_SEPARATOR=';'
23162 }
23163 fi
23164
23165
23166 # Find who we are. Look in the path if we contain no directory separator.
23167 as_myself=
23168 case $0 in #((
23169 *[\\/]* ) as_myself=$0 ;;
23170 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23171 for as_dir in $PATH
23172 do
23173 IFS=$as_save_IFS
23174 case $as_dir in #(((
23175 '') as_dir=./ ;;
23176 */) ;;
23177 *) as_dir=$as_dir/ ;;
23178 esac
23179 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23180 done
23181 IFS=$as_save_IFS
23182
23183 ;;
23184 esac
23185 # We did not find ourselves, most probably we were run as 'sh COMMAND'
23186 # in which case we are not to be found in the path.
23187 if test "x$as_myself" = x; then
23188 as_myself=$0
23189 fi
23190 if test ! -f "$as_myself"; then
23191 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23192 exit 1
23193 fi
23194
23195
23196
23197 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23198 # ----------------------------------------
23199 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23200 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23201 # script with STATUS, using 1 if that was 0.
23202 as_fn_error ()
23203 {
23204 as_status=$1; test $as_status -eq 0 && as_status=1
23205 if test "$4"; then
23206 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23208 fi
23209 printf "%s\n" "$as_me: error: $2" >&2
23210 as_fn_exit $as_status
23211 } # as_fn_error
23212
23213
23214 # as_fn_set_status STATUS
23215 # -----------------------
23216 # Set $? to STATUS, without forking.
23217 as_fn_set_status ()
23218 {
23219 return $1
23220 } # as_fn_set_status
23221
23222 # as_fn_exit STATUS
23223 # -----------------
23224 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23225 as_fn_exit ()
23226 {
23227 set +e
23228 as_fn_set_status $1
23229 exit $1
23230 } # as_fn_exit
23231
23232 # as_fn_unset VAR
23233 # ---------------
23234 # Portably unset VAR.
23235 as_fn_unset ()
23236 {
23237 { eval $1=; unset $1;}
23238 }
23239 as_unset=as_fn_unset
23240
23241 # as_fn_append VAR VALUE
23242 # ----------------------
23243 # Append the text in VALUE to the end of the definition contained in VAR. Take
23244 # advantage of any shell optimizations that allow amortized linear growth over
23245 # repeated appends, instead of the typical quadratic growth present in naive
23246 # implementations.
23247 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23248 then :
23249 eval 'as_fn_append ()
23250 {
23251 eval $1+=\$2
23252 }'
23253 else case e in #(
23254 e) as_fn_append ()
23255 {
23256 eval $1=\$$1\$2
23257 } ;;
23258 esac
23259 fi # as_fn_append
23260
23261 # as_fn_arith ARG...
23262 # ------------------
23263 # Perform arithmetic evaluation on the ARGs, and store the result in the
23264 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23265 # must be portable across $(()) and expr.
23266 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23267 then :
23268 eval 'as_fn_arith ()
23269 {
23270 as_val=$(( $* ))
23271 }'
23272 else case e in #(
23273 e) as_fn_arith ()
23274 {
23275 as_val=`expr "$@" || test $? -eq 1`
23276 } ;;
23277 esac
23278 fi # as_fn_arith
23279
23280
23281 if expr a : '\(a\)' >/dev/null 2>&1 &&
23282 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23283 as_expr=expr
23284 else
23285 as_expr=false
23286 fi
23287
23288 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23289 as_basename=basename
23290 else
23291 as_basename=false
23292 fi
23293
23294 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23295 as_dirname=dirname
23296 else
23297 as_dirname=false
23298 fi
23299
23300 as_me=`$as_basename -- "$0" ||
23301 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23302 X"$0" : 'X\(//\)$' \| \
23303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23304 printf "%s\n" X/"$0" |
23305 sed '/^.*\/\([^/][^/]*\)\/*$/{
23306 s//\1/
23307 q
23308 }
23309 /^X\/\(\/\/\)$/{
23310 s//\1/
23311 q
23312 }
23313 /^X\/\(\/\).*/{
23314 s//\1/
23315 q
23316 }
23317 s/.*/./; q'`
23318
23319 # Avoid depending upon Character Ranges.
23320 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23321 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23322 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23323 as_cr_digits='0123456789'
23324 as_cr_alnum=$as_cr_Letters$as_cr_digits
23325
23326
23327 # Determine whether it's possible to make 'echo' print without a newline.
23328 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23329 # for compatibility with existing Makefiles.
23330 ECHO_C= ECHO_N= ECHO_T=
23331 case `echo -n x` in #(((((
23332 -n*)
23333 case `echo 'xy\c'` in
23334 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23335 xy) ECHO_C='\c';;
23336 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23337 ECHO_T=' ';;
23338 esac;;
23339 *)
23340 ECHO_N='-n';;
23341 esac
23342
23343 # For backward compatibility with old third-party macros, we provide
23344 # the shell variables $as_echo and $as_echo_n. New code should use
23345 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23346 as_echo='printf %s\n'
23347 as_echo_n='printf %s'
23348
23349 rm -f conf$$ conf$$.exe conf$$.file
23350 if test -d conf$$.dir; then
23351 rm -f conf$$.dir/conf$$.file
23352 else
23353 rm -f conf$$.dir
23354 mkdir conf$$.dir 2>/dev/null
23355 fi
23356 if (echo >conf$$.file) 2>/dev/null; then
23357 if ln -s conf$$.file conf$$ 2>/dev/null; then
23358 as_ln_s='ln -s'
23359 # ... but there are two gotchas:
23360 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
23361 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
23362 # In both cases, we have to default to 'cp -pR'.
23363 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23364 as_ln_s='cp -pR'
23365 elif ln conf$$.file conf$$ 2>/dev/null; then
23366 as_ln_s=ln
23367 else
23368 as_ln_s='cp -pR'
23369 fi
23370 else
23371 as_ln_s='cp -pR'
23372 fi
23373 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23374 rmdir conf$$.dir 2>/dev/null
23375
23376
23377 # as_fn_mkdir_p
23378 # -------------
23379 # Create "$as_dir" as a directory, including parents if necessary.
23380 as_fn_mkdir_p ()
23381 {
23382
23383 case $as_dir in #(
23384 -*) as_dir=./$as_dir;;
23385 esac
23386 test -d "$as_dir" || eval $as_mkdir_p || {
23387 as_dirs=
23388 while :; do
23389 case $as_dir in #(
23390 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23391 *) as_qdir=$as_dir;;
23392 esac
23393 as_dirs="'$as_qdir' $as_dirs"
23394 as_dir=`$as_dirname -- "$as_dir" ||
23395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23396 X"$as_dir" : 'X\(//\)[^/]' \| \
23397 X"$as_dir" : 'X\(//\)$' \| \
23398 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23399 printf "%s\n" X"$as_dir" |
23400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23401 s//\1/
23402 q
23403 }
23404 /^X\(\/\/\)[^/].*/{
23405 s//\1/
23406 q
23407 }
23408 /^X\(\/\/\)$/{
23409 s//\1/
23410 q
23411 }
23412 /^X\(\/\).*/{
23413 s//\1/
23414 q
23415 }
23416 s/.*/./; q'`
23417 test -d "$as_dir" && break
23418 done
23419 test -z "$as_dirs" || eval "mkdir $as_dirs"
23420 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23421
23422
23423 } # as_fn_mkdir_p
23424 if mkdir -p . 2>/dev/null; then
23425 as_mkdir_p='mkdir -p "$as_dir"'
23426 else
23427 test -d ./-p && rmdir ./-p
23428 as_mkdir_p=false
23429 fi
23430
23431
23432 # as_fn_executable_p FILE
23433 # -----------------------
23434 # Test if FILE is an executable regular file.
23435 as_fn_executable_p ()
23436 {
23437 test -f "$1" && test -x "$1"
23438 } # as_fn_executable_p
23439 as_test_x='test -x'
23440 as_executable_p=as_fn_executable_p
23441
23442 # Sed expression to map a string onto a valid CPP name.
23443 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23444 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
23445
23446 # Sed expression to map a string onto a valid variable name.
23447 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23448 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
23449
23450
23451 exec 6>&1
23452 ## ----------------------------------- ##
23453 ## Main body of $CONFIG_STATUS script. ##
23454 ## ----------------------------------- ##
23455 _ASEOF
23456 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23457
23458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23459 # Save the log message, to keep $0 and so on meaningful, and to
23460 # report actual input values of CONFIG_FILES etc. instead of their
23461 # values after options handling.
23462 ac_log="
23463 This file was extended by libsodium $as_me 1.0.20, which was
23464 generated by GNU Autoconf 2.72. Invocation command line was
23465
23466 CONFIG_FILES = $CONFIG_FILES
23467 CONFIG_HEADERS = $CONFIG_HEADERS
23468 CONFIG_LINKS = $CONFIG_LINKS
23469 CONFIG_COMMANDS = $CONFIG_COMMANDS
23470 $ $0 $@
23471
23472 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23473 "
23474
23475 _ACEOF
23476
23477 case $ac_config_files in *"
23478 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23479 esac
23480
23481
23482
23483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23484 # Files that config.status was made for.
23485 config_files="$ac_config_files"
23486 config_commands="$ac_config_commands"
23487
23488 _ACEOF
23489
23490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23491 ac_cs_usage="\
23492 '$as_me' instantiates files and other configuration actions
23493 from templates according to the current configuration. Unless the files
23494 and actions are specified as TAGs, all are instantiated by default.
23495
23496 Usage: $0 [OPTION]... [TAG]...
23497
23498 -h, --help print this help, then exit
23499 -V, --version print version number and configuration settings, then exit
23500 --config print configuration, then exit
23501 -q, --quiet, --silent
23502 do not print progress messages
23503 -d, --debug don't remove temporary files
23504 --recheck update $as_me by reconfiguring in the same conditions
23505 --file=FILE[:TEMPLATE]
23506 instantiate the configuration file FILE
23507
23508 Configuration files:
23509 $config_files
23510
23511 Configuration commands:
23512 $config_commands
23513
23514 Report bugs to <https://github.com/jedisct1/libsodium/issues>.
23515 libsodium home page: <https://libsodium.org>."
23516
23517 _ACEOF
23518 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23519 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23521 ac_cs_config='$ac_cs_config_escaped'
23522 ac_cs_version="\\
23523 libsodium config.status 1.0.20
23524 configured by $0, generated by GNU Autoconf 2.72,
23525 with options \\"\$ac_cs_config\\"
23526
23527 Copyright (C) 2023 Free Software Foundation, Inc.
23528 This config.status script is free software; the Free Software Foundation
23529 gives unlimited permission to copy, distribute and modify it."
23530
23531 ac_pwd='$ac_pwd'
23532 srcdir='$srcdir'
23533 INSTALL='$INSTALL'
23534 MKDIR_P='$MKDIR_P'
23535 AWK='$AWK'
23536 test -n "\$AWK" || AWK=awk
23537 _ACEOF
23538
23539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23540 # The default lists apply if the user does not specify any file.
23541 ac_need_defaults=:
23542 while test $# != 0
23543 do
23544 case $1 in
23545 --*=?*)
23546 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23547 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23548 ac_shift=:
23549 ;;
23550 --*=)
23551 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23552 ac_optarg=
23553 ac_shift=:
23554 ;;
23555 *)
23556 ac_option=$1
23557 ac_optarg=$2
23558 ac_shift=shift
23559 ;;
23560 esac
23561
23562 case $ac_option in
23563 # Handling of the options.
23564 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23565 ac_cs_recheck=: ;;
23566 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23567 printf "%s\n" "$ac_cs_version"; exit ;;
23568 --config | --confi | --conf | --con | --co | --c )
23569 printf "%s\n" "$ac_cs_config"; exit ;;
23570 --debug | --debu | --deb | --de | --d | -d )
23571 debug=: ;;
23572 --file | --fil | --fi | --f )
23573 $ac_shift
23574 case $ac_optarg in
23575 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23576 '') as_fn_error $? "missing file argument" ;;
23577 esac
23578 as_fn_append CONFIG_FILES " '$ac_optarg'"
23579 ac_need_defaults=false;;
23580 --he | --h | --help | --hel | -h )
23581 printf "%s\n" "$ac_cs_usage"; exit ;;
23582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23583 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23584 ac_cs_silent=: ;;
23585
23586 # This is an error.
23587 -*) as_fn_error $? "unrecognized option: '$1'
23588 Try '$0 --help' for more information." ;;
23589
23590 *) as_fn_append ac_config_targets " $1"
23591 ac_need_defaults=false ;;
23592
23593 esac
23594 shift
23595 done
23596
23597 ac_configure_extra_args=
23598
23599 if $ac_cs_silent; then
23600 exec 6>/dev/null
23601 ac_configure_extra_args="$ac_configure_extra_args --silent"
23602 fi
23603
23604 _ACEOF
23605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23606 if \$ac_cs_recheck; then
23607 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23608 shift
23609 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23610 CONFIG_SHELL='$SHELL'
23611 export CONFIG_SHELL
23612 exec "\$@"
23613 fi
23614
23615 _ACEOF
23616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23617 exec 5>>config.log
23618 {
23619 echo
23620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23621 ## Running $as_me. ##
23622 _ASBOX
23623 printf "%s\n" "$ac_log"
23624 } >&5
23625
23626 _ACEOF
23627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23628 #
23629 # INIT-COMMANDS
23630 #
23631 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23632
23633
23634 # The HP-UX ksh and POSIX shell print the target directory to stdout
23635 # if CDPATH is set.
23636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23637
23638 sed_quote_subst='$sed_quote_subst'
23639 double_quote_subst='$double_quote_subst'
23640 delay_variable_subst='$delay_variable_subst'
23641 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23642 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23643 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23644 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23645 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23646 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23647 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23648 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23649 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23650 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23651 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23652 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23653 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23654 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23655 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23656 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23657 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23658 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23659 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23660 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23661 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23662 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23663 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23664 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23665 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23666 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23667 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23668 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23669 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23670 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23671 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23672 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23673 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23674 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23675 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23676 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23677 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23678 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23679 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23680 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23681 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23682 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23683 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23684 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23685 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23686 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23687 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23688 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23689 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23690 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23691 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23692 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23693 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23694 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23695 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23696 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23697 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23698 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23699 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23700 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23701 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"`'
23702 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23703 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23704 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23705 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23706 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23707 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23708 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23709 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23710 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23711 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23712 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23713 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23714 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23715 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23716 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23717 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23718 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23719 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23720 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23721 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23722 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23723 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23724 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23725 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23726 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23727 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23728 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23729 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23730 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23731 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23732 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23733 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23734 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23735 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23736 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23737 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23738 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23739 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23740 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23741 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23742 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23743 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23744 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23745 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23746 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23747 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23748 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23749 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23750 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23751 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23752 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23753 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23754 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23755 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23756 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23757 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23758 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23759 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23760 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23761 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23762 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23763 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23764 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23765 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23766 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23767 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23768 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23769 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23770 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23771 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23772 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23773 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23774 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23775 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23776 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23777 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23778
23779 LTCC='$LTCC'
23780 LTCFLAGS='$LTCFLAGS'
23781 compiler='$compiler_DEFAULT'
23782
23783 # A function that is used when there is no print builtin or printf.
23784 func_fallback_echo ()
23785 {
23786 eval 'cat <<_LTECHO_EOF
23787 \$1
23788 _LTECHO_EOF'
23789 }
23790
23791 # Quote evaled strings.
23792 for var in SHELL \
23793 ECHO \
23794 PATH_SEPARATOR \
23795 SED \
23796 GREP \
23797 EGREP \
23798 FGREP \
23799 LD \
23800 NM \
23801 LN_S \
23802 lt_SP2NL \
23803 lt_NL2SP \
23804 reload_flag \
23805 FILECMD \
23806 OBJDUMP \
23807 deplibs_check_method \
23808 file_magic_cmd \
23809 file_magic_glob \
23810 want_nocaseglob \
23811 DLLTOOL \
23812 sharedlib_from_linklib_cmd \
23813 AR \
23814 archiver_list_spec \
23815 STRIP \
23816 RANLIB \
23817 CC \
23818 CFLAGS \
23819 compiler \
23820 lt_cv_sys_global_symbol_pipe \
23821 lt_cv_sys_global_symbol_to_cdecl \
23822 lt_cv_sys_global_symbol_to_import \
23823 lt_cv_sys_global_symbol_to_c_name_address \
23824 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23825 lt_cv_nm_interface \
23826 nm_file_list_spec \
23827 lt_cv_truncate_bin \
23828 lt_prog_compiler_no_builtin_flag \
23829 lt_prog_compiler_pic \
23830 lt_prog_compiler_wl \
23831 lt_prog_compiler_static \
23832 lt_cv_prog_compiler_c_o \
23833 need_locks \
23834 MANIFEST_TOOL \
23835 DSYMUTIL \
23836 NMEDIT \
23837 LIPO \
23838 OTOOL \
23839 OTOOL64 \
23840 shrext_cmds \
23841 export_dynamic_flag_spec \
23842 whole_archive_flag_spec \
23843 compiler_needs_object \
23844 with_gnu_ld \
23845 allow_undefined_flag \
23846 no_undefined_flag \
23847 hardcode_libdir_flag_spec \
23848 hardcode_libdir_separator \
23849 exclude_expsyms \
23850 include_expsyms \
23851 file_list_spec \
23852 variables_saved_for_relink \
23853 libname_spec \
23854 library_names_spec \
23855 soname_spec \
23856 install_override_mode \
23857 finish_eval \
23858 old_striplib \
23859 striplib; do
23860 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23861 *[\\\\\\\`\\"\\\$]*)
23862 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23863 ;;
23864 *)
23865 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23866 ;;
23867 esac
23868 done
23869
23870 # Double-quote double-evaled strings.
23871 for var in reload_cmds \
23872 old_postinstall_cmds \
23873 old_postuninstall_cmds \
23874 old_archive_cmds \
23875 extract_expsyms_cmds \
23876 old_archive_from_new_cmds \
23877 old_archive_from_expsyms_cmds \
23878 archive_cmds \
23879 archive_expsym_cmds \
23880 module_cmds \
23881 module_expsym_cmds \
23882 export_symbols_cmds \
23883 prelink_cmds \
23884 postlink_cmds \
23885 postinstall_cmds \
23886 postuninstall_cmds \
23887 finish_cmds \
23888 sys_lib_search_path_spec \
23889 configure_time_dlsearch_path \
23890 configure_time_lt_sys_library_path; do
23891 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23892 *[\\\\\\\`\\"\\\$]*)
23893 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23894 ;;
23895 *)
23896 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23897 ;;
23898 esac
23899 done
23900
23901 ac_aux_dir='$ac_aux_dir'
23902
23903 # See if we are running on zsh, and set the options that allow our
23904 # commands through without removal of \ escapes INIT.
23905 if test -n "\${ZSH_VERSION+set}"; then
23906 setopt NO_GLOB_SUBST
23907 fi
23908
23909
23910 PACKAGE='$PACKAGE'
23911 VERSION='$VERSION'
23912 RM='$RM'
23913 ofile='$ofile'
23914
23915
23916
23917
23918 _ACEOF
23919
23920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23921
23922 # Handling of arguments.
23923 for ac_config_target in $ac_config_targets
23924 do
23925 case $ac_config_target in
23926 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23927 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23928 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23929 "builds/Makefile") CONFIG_FILES="$CONFIG_FILES builds/Makefile" ;;
23930 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
23931 "dist-build/Makefile") CONFIG_FILES="$CONFIG_FILES dist-build/Makefile" ;;
23932 "libsodium.pc") CONFIG_FILES="$CONFIG_FILES libsodium.pc" ;;
23933 "libsodium-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libsodium-uninstalled.pc" ;;
23934 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23935 "src/libsodium/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/Makefile" ;;
23936 "src/libsodium/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/Makefile" ;;
23937 "src/libsodium/include/sodium/version.h") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/sodium/version.h" ;;
23938 "test/default/Makefile") CONFIG_FILES="$CONFIG_FILES test/default/Makefile" ;;
23939 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23940
23941 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
23942 esac
23943 done
23944
23945
23946 # If the user did not use the arguments to specify the items to instantiate,
23947 # then the envvar interface is used. Set only those that are not.
23948 # We use the long form for the default assignment because of an extremely
23949 # bizarre bug on SunOS 4.1.3.
23950 if $ac_need_defaults; then
23951 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
23952 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
23953 fi
23954
23955 # Have a temporary directory for convenience. Make it in the build tree
23956 # simply because there is no reason against having it here, and in addition,
23957 # creating and moving files from /tmp can sometimes cause problems.
23958 # Hook for its removal unless debugging.
23959 # Note that there is a small window in which the directory will not be cleaned:
23960 # after its creation but before its name has been assigned to '$tmp'.
23961 $debug ||
23962 {
23963 tmp= ac_tmp=
23964 trap 'exit_status=$?
23965 : "${ac_tmp:=$tmp}"
23966 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23967 ' 0
23968 trap 'as_fn_exit 1' 1 2 13 15
23969 }
23970 # Create a (secure) tmp directory for tmp files.
23971
23972 {
23973 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23974 test -d "$tmp"
23975 } ||
23976 {
23977 tmp=./conf$$-$RANDOM
23978 (umask 077 && mkdir "$tmp")
23979 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23980 ac_tmp=$tmp
23981
23982 # Set up the scripts for CONFIG_FILES section.
23983 # No need to generate them if there are no CONFIG_FILES.
23984 # This happens for instance with './config.status config.h'.
23985 if test -n "$CONFIG_FILES"; then
23986
23987
23988 ac_cr=`echo X | tr X '\015'`
23989 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23990 # But we know of no other shell where ac_cr would be empty at this
23991 # point, so we can use a bashism as a fallback.
23992 if test "x$ac_cr" = x; then
23993 eval ac_cr=\$\'\\r\'
23994 fi
23995 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23996 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23997 ac_cs_awk_cr='\\r'
23998 else
23999 ac_cs_awk_cr=$ac_cr
24000 fi
24001
24002 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24003 _ACEOF
24004
24005
24006 {
24007 echo "cat >conf$$subs.awk <<_ACEOF" &&
24008 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24009 echo "_ACEOF"
24010 } >conf$$subs.sh ||
24011 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24012 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24013 ac_delim='%!_!# '
24014 for ac_last_try in false false false false false :; do
24015 . ./conf$$subs.sh ||
24016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24017
24018 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24019 if test $ac_delim_n = $ac_delim_num; then
24020 break
24021 elif $ac_last_try; then
24022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24023 else
24024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24025 fi
24026 done
24027 rm -f conf$$subs.sh
24028
24029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24030 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24031 _ACEOF
24032 sed -n '
24033 h
24034 s/^/S["/; s/!.*/"]=/
24035 p
24036 g
24037 s/^[^!]*!//
24038 :repl
24039 t repl
24040 s/'"$ac_delim"'$//
24041 t delim
24042 :nl
24043 h
24044 s/\(.\{148\}\)..*/\1/
24045 t more1
24046 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24047 p
24048 n
24049 b repl
24050 :more1
24051 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24052 p
24053 g
24054 s/.\{148\}//
24055 t nl
24056 :delim
24057 h
24058 s/\(.\{148\}\)..*/\1/
24059 t more2
24060 s/["\\]/\\&/g; s/^/"/; s/$/"/
24061 p
24062 b
24063 :more2
24064 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24065 p
24066 g
24067 s/.\{148\}//
24068 t delim
24069 ' <conf$$subs.awk | sed '
24070 /^[^""]/{
24071 N
24072 s/\n//
24073 }
24074 ' >>$CONFIG_STATUS || ac_write_fail=1
24075 rm -f conf$$subs.awk
24076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24077 _ACAWK
24078 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24079 for (key in S) S_is_set[key] = 1
24080 FS = ""
24081
24082 }
24083 {
24084 line = $ 0
24085 nfields = split(line, field, "@")
24086 substed = 0
24087 len = length(field[1])
24088 for (i = 2; i < nfields; i++) {
24089 key = field[i]
24090 keylen = length(key)
24091 if (S_is_set[key]) {
24092 value = S[key]
24093 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24094 len += length(value) + length(field[++i])
24095 substed = 1
24096 } else
24097 len += 1 + keylen
24098 }
24099
24100 print line
24101 }
24102
24103 _ACAWK
24104 _ACEOF
24105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24106 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24107 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24108 else
24109 cat
24110 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24111 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24112 _ACEOF
24113
24114 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24115 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24116 # trailing colons and then remove the whole line if VPATH becomes empty
24117 # (actually we leave an empty line to preserve line numbers).
24118 if test "x$srcdir" = x.; then
24119 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24120 h
24121 s///
24122 s/^/:/
24123 s/[ ]*$/:/
24124 s/:\$(srcdir):/:/g
24125 s/:\${srcdir}:/:/g
24126 s/:@srcdir@:/:/g
24127 s/^:*//
24128 s/:*$//
24129 x
24130 s/\(=[ ]*\).*/\1/
24131 G
24132 s/\n//
24133 s/^[^=]*=[ ]*$//
24134 }'
24135 fi
24136
24137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24138 fi # test -n "$CONFIG_FILES"
24139
24140
24141 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
24142 shift
24143 for ac_tag
24144 do
24145 case $ac_tag in
24146 :[FHLC]) ac_mode=$ac_tag; continue;;
24147 esac
24148 case $ac_mode$ac_tag in
24149 :[FHL]*:*);;
24150 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
24151 :[FH]-) ac_tag=-:-;;
24152 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24153 esac
24154 ac_save_IFS=$IFS
24155 IFS=:
24156 set x $ac_tag
24157 IFS=$ac_save_IFS
24158 shift
24159 ac_file=$1
24160 shift
24161
24162 case $ac_mode in
24163 :L) ac_source=$1;;
24164 :[FH])
24165 ac_file_inputs=
24166 for ac_f
24167 do
24168 case $ac_f in
24169 -) ac_f="$ac_tmp/stdin";;
24170 *) # Look for the file first in the build tree, then in the source tree
24171 # (if the path is not absolute). The absolute path cannot be DOS-style,
24172 # because $ac_f cannot contain ':'.
24173 test -f "$ac_f" ||
24174 case $ac_f in
24175 [\\/$]*) false;;
24176 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24177 esac ||
24178 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
24179 esac
24180 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24181 as_fn_append ac_file_inputs " '$ac_f'"
24182 done
24183
24184 # Let's still pretend it is 'configure' which instantiates (i.e., don't
24185 # use $as_me), people would be surprised to read:
24186 # /* config.h. Generated by config.status. */
24187 configure_input='Generated from '`
24188 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24189 `' by configure.'
24190 if test x"$ac_file" != x-; then
24191 configure_input="$ac_file. $configure_input"
24192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24193 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24194 fi
24195 # Neutralize special characters interpreted by sed in replacement strings.
24196 case $configure_input in #(
24197 *\&* | *\|* | *\\* )
24198 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24199 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24200 *) ac_sed_conf_input=$configure_input;;
24201 esac
24202
24203 case $ac_tag in
24204 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24205 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24206 esac
24207 ;;
24208 esac
24209
24210 ac_dir=`$as_dirname -- "$ac_file" ||
24211 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24212 X"$ac_file" : 'X\(//\)[^/]' \| \
24213 X"$ac_file" : 'X\(//\)$' \| \
24214 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24215 printf "%s\n" X"$ac_file" |
24216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24217 s//\1/
24218 q
24219 }
24220 /^X\(\/\/\)[^/].*/{
24221 s//\1/
24222 q
24223 }
24224 /^X\(\/\/\)$/{
24225 s//\1/
24226 q
24227 }
24228 /^X\(\/\).*/{
24229 s//\1/
24230 q
24231 }
24232 s/.*/./; q'`
24233 as_dir="$ac_dir"; as_fn_mkdir_p
24234 ac_builddir=.
24235
24236 case "$ac_dir" in
24237 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24238 *)
24239 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24240 # A ".." for each directory in $ac_dir_suffix.
24241 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24242 case $ac_top_builddir_sub in
24243 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24244 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24245 esac ;;
24246 esac
24247 ac_abs_top_builddir=$ac_pwd
24248 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24249 # for backward compatibility:
24250 ac_top_builddir=$ac_top_build_prefix
24251
24252 case $srcdir in
24253 .) # We are building in place.
24254 ac_srcdir=.
24255 ac_top_srcdir=$ac_top_builddir_sub
24256 ac_abs_top_srcdir=$ac_pwd ;;
24257 [\\/]* | ?:[\\/]* ) # Absolute name.
24258 ac_srcdir=$srcdir$ac_dir_suffix;
24259 ac_top_srcdir=$srcdir
24260 ac_abs_top_srcdir=$srcdir ;;
24261 *) # Relative name.
24262 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24263 ac_top_srcdir=$ac_top_build_prefix$srcdir
24264 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24265 esac
24266 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24267
24268
24269 case $ac_mode in
24270 :F)
24271 #
24272 # CONFIG_FILE
24273 #
24274
24275 case $INSTALL in
24276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24277 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24278 esac
24279 ac_MKDIR_P=$MKDIR_P
24280 case $MKDIR_P in
24281 [\\/$]* | ?:[\\/]* ) ;;
24282 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24283 esac
24284 _ACEOF
24285
24286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24287 # If the template does not know about datarootdir, expand it.
24288 # FIXME: This hack should be removed a few years after 2.60.
24289 ac_datarootdir_hack=; ac_datarootdir_seen=
24290 ac_sed_dataroot='
24291 /datarootdir/ {
24292 p
24293 q
24294 }
24295 /@datadir@/p
24296 /@docdir@/p
24297 /@infodir@/p
24298 /@localedir@/p
24299 /@mandir@/p'
24300 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24301 *datarootdir*) ac_datarootdir_seen=yes;;
24302 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24304 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24305 _ACEOF
24306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24307 ac_datarootdir_hack='
24308 s&@datadir@&$datadir&g
24309 s&@docdir@&$docdir&g
24310 s&@infodir@&$infodir&g
24311 s&@localedir@&$localedir&g
24312 s&@mandir@&$mandir&g
24313 s&\\\${datarootdir}&$datarootdir&g' ;;
24314 esac
24315 _ACEOF
24316
24317 # Neutralize VPATH when '$srcdir' = '.'.
24318 # Shell code in configure.ac might set extrasub.
24319 # FIXME: do we really want to maintain this feature?
24320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24321 ac_sed_extra="$ac_vpsub
24322 $extrasub
24323 _ACEOF
24324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24325 :t
24326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24327 s|@configure_input@|$ac_sed_conf_input|;t t
24328 s&@top_builddir@&$ac_top_builddir_sub&;t t
24329 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24330 s&@srcdir@&$ac_srcdir&;t t
24331 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24332 s&@top_srcdir@&$ac_top_srcdir&;t t
24333 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24334 s&@builddir@&$ac_builddir&;t t
24335 s&@abs_builddir@&$ac_abs_builddir&;t t
24336 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24337 s&@INSTALL@&$ac_INSTALL&;t t
24338 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24339 $ac_datarootdir_hack
24340 "
24341 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24342 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24343
24344 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24345 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24346 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24347 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24349 which seems to be undefined. Please make sure it is defined" >&5
24350 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24351 which seems to be undefined. Please make sure it is defined" >&2;}
24352
24353 rm -f "$ac_tmp/stdin"
24354 case $ac_file in
24355 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24356 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24357 esac \
24358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24359 ;;
24360
24361
24362 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24363 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24364 ;;
24365 esac
24366
24367
24368 case $ac_file$ac_mode in
24369 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24370 # Older Autoconf quotes --file arguments for eval, but not when files
24371 # are listed without --file. Let's play safe and only enable the eval
24372 # if we detect the quoting.
24373 # TODO: see whether this extra hack can be removed once we start
24374 # requiring Autoconf 2.70 or later.
24375 case $CONFIG_FILES in #(
24376 *\'*) :
24377 eval set x "$CONFIG_FILES" ;; #(
24378 *) :
24379 set x $CONFIG_FILES ;; #(
24380 *) :
24381 ;;
24382 esac
24383 shift
24384 # Used to flag and report bootstrapping failures.
24385 am_rc=0
24386 for am_mf
24387 do
24388 # Strip MF so we end up with the name of the file.
24389 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24390 # Check whether this is an Automake generated Makefile which includes
24391 # dependency-tracking related rules and includes.
24392 # Grep'ing the whole file directly is not great: AIX grep has a line
24393 # limit of 2048, but all sed's we know have understand at least 4000.
24394 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24395 || continue
24396 am_dirpart=`$as_dirname -- "$am_mf" ||
24397 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24398 X"$am_mf" : 'X\(//\)[^/]' \| \
24399 X"$am_mf" : 'X\(//\)$' \| \
24400 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24401 printf "%s\n" X"$am_mf" |
24402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24403 s//\1/
24404 q
24405 }
24406 /^X\(\/\/\)[^/].*/{
24407 s//\1/
24408 q
24409 }
24410 /^X\(\/\/\)$/{
24411 s//\1/
24412 q
24413 }
24414 /^X\(\/\).*/{
24415 s//\1/
24416 q
24417 }
24418 s/.*/./; q'`
24419 am_filepart=`$as_basename -- "$am_mf" ||
24420 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24421 X"$am_mf" : 'X\(//\)$' \| \
24422 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24423 printf "%s\n" X/"$am_mf" |
24424 sed '/^.*\/\([^/][^/]*\)\/*$/{
24425 s//\1/
24426 q
24427 }
24428 /^X\/\(\/\/\)$/{
24429 s//\1/
24430 q
24431 }
24432 /^X\/\(\/\).*/{
24433 s//\1/
24434 q
24435 }
24436 s/.*/./; q'`
24437 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24438 && sed -e '/# am--include-marker/d' "$am_filepart" \
24439 | $MAKE -f - am--depfiles" >&5
24440 (cd "$am_dirpart" \
24441 && sed -e '/# am--include-marker/d' "$am_filepart" \
24442 | $MAKE -f - am--depfiles) >&5 2>&5
24443 ac_status=$?
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } || am_rc=$?
24446 done
24447 if test $am_rc -ne 0; then
24448 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24449 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24450 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24451 for automatic dependency tracking. If GNU make was not used, consider
24452 re-running the configure script with MAKE=\"gmake\" (or whatever is
24453 necessary). You can also try re-running configure with the
24454 '--disable-dependency-tracking' option to at least be able to build
24455 the package (albeit without support for automatic dependency tracking).
24456 See 'config.log' for more details" "$LINENO" 5; }
24457 fi
24458 { am_dirpart=; unset am_dirpart;}
24459 { am_filepart=; unset am_filepart;}
24460 { am_mf=; unset am_mf;}
24461 { am_rc=; unset am_rc;}
24462 rm -f conftest-deps.mk
24463 }
24464 ;;
24465 "libtool":C)
24466
24467 # See if we are running on zsh, and set the options that allow our
24468 # commands through without removal of \ escapes.
24469 if test -n "${ZSH_VERSION+set}"; then
24470 setopt NO_GLOB_SUBST
24471 fi
24472
24473 cfgfile=${ofile}T
24474 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24475 $RM "$cfgfile"
24476
24477 cat <<_LT_EOF >> "$cfgfile"
24478 #! $SHELL
24479 # Generated automatically by $as_me ($PACKAGE) $VERSION
24480 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24481
24482 # Provide generalized library-building support services.
24483 # Written by Gordon Matzigkeit, 1996
24484
24485 # Copyright (C) 2024 Free Software Foundation, Inc.
24486 # This is free software; see the source for copying conditions. There is NO
24487 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24488
24489 # GNU Libtool is free software; you can redistribute it and/or modify
24490 # it under the terms of the GNU General Public License as published by
24491 # the Free Software Foundation; either version 2 of the License, or
24492 # (at your option) any later version.
24493 #
24494 # As a special exception to the GNU General Public License, if you
24495 # distribute this file as part of a program or library that is built
24496 # using GNU Libtool, you may include this file under the same
24497 # distribution terms that you use for the rest of that program.
24498 #
24499 # GNU Libtool is distributed in the hope that it will be useful, but
24500 # WITHOUT ANY WARRANTY; without even the implied warranty of
24501 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24502 # GNU General Public License for more details.
24503 #
24504 # You should have received a copy of the GNU General Public License
24505 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24506
24507
24508 # The names of the tagged configurations supported by this script.
24509 available_tags=''
24510
24511 # Configured defaults for sys_lib_dlsearch_path munging.
24512 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24513
24514 # ### BEGIN LIBTOOL CONFIG
24515
24516 # Which release of libtool.m4 was used?
24517 macro_version=$macro_version
24518 macro_revision=$macro_revision
24519
24520 # Whether or not to build shared libraries.
24521 build_libtool_libs=$enable_shared
24522
24523 # Whether or not to build static libraries.
24524 build_old_libs=$enable_static
24525
24526 # What type of objects to build.
24527 pic_mode=$pic_mode
24528
24529 # Whether or not to optimize for fast installation.
24530 fast_install=$enable_fast_install
24531
24532 # Shared archive member basename,for filename based shared library versioning on AIX.
24533 shared_archive_member_spec=$shared_archive_member_spec
24534
24535 # Shell to use when invoking shell scripts.
24536 SHELL=$lt_SHELL
24537
24538 # An echo program that protects backslashes.
24539 ECHO=$lt_ECHO
24540
24541 # The PATH separator for the build system.
24542 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24543
24544 # The host system.
24545 host_alias=$host_alias
24546 host=$host
24547 host_os=$host_os
24548
24549 # The build system.
24550 build_alias=$build_alias
24551 build=$build
24552 build_os=$build_os
24553
24554 # A sed program that does not truncate output.
24555 SED=$lt_SED
24556
24557 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24558 Xsed="\$SED -e 1s/^X//"
24559
24560 # A grep program that handles long lines.
24561 GREP=$lt_GREP
24562
24563 # An ERE matcher.
24564 EGREP=$lt_EGREP
24565
24566 # A literal string matcher.
24567 FGREP=$lt_FGREP
24568
24569 # A BSD- or MS-compatible name lister.
24570 NM=$lt_NM
24571
24572 # Whether we need soft or hard links.
24573 LN_S=$lt_LN_S
24574
24575 # What is the maximum length of a command?
24576 max_cmd_len=$max_cmd_len
24577
24578 # Object file suffix (normally "o").
24579 objext=$ac_objext
24580
24581 # Executable file suffix (normally "").
24582 exeext=$exeext
24583
24584 # whether the shell understands "unset".
24585 lt_unset=$lt_unset
24586
24587 # turn spaces into newlines.
24588 SP2NL=$lt_lt_SP2NL
24589
24590 # turn newlines into spaces.
24591 NL2SP=$lt_lt_NL2SP
24592
24593 # convert \$build file names to \$host format.
24594 to_host_file_cmd=$lt_cv_to_host_file_cmd
24595
24596 # convert \$build files to toolchain format.
24597 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24598
24599 # A file(cmd) program that detects file types.
24600 FILECMD=$lt_FILECMD
24601
24602 # An object symbol dumper.
24603 OBJDUMP=$lt_OBJDUMP
24604
24605 # Method to check whether dependent libraries are shared objects.
24606 deplibs_check_method=$lt_deplibs_check_method
24607
24608 # Command to use when deplibs_check_method = "file_magic".
24609 file_magic_cmd=$lt_file_magic_cmd
24610
24611 # How to find potential files when deplibs_check_method = "file_magic".
24612 file_magic_glob=$lt_file_magic_glob
24613
24614 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24615 want_nocaseglob=$lt_want_nocaseglob
24616
24617 # DLL creation program.
24618 DLLTOOL=$lt_DLLTOOL
24619
24620 # Command to associate shared and link libraries.
24621 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24622
24623 # The archiver.
24624 AR=$lt_AR
24625
24626 # Flags to create an archive (by configure).
24627 lt_ar_flags=$lt_ar_flags
24628
24629 # Flags to create an archive.
24630 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
24631
24632 # How to feed a file listing to the archiver.
24633 archiver_list_spec=$lt_archiver_list_spec
24634
24635 # A symbol stripping program.
24636 STRIP=$lt_STRIP
24637
24638 # Commands used to install an old-style archive.
24639 RANLIB=$lt_RANLIB
24640 old_postinstall_cmds=$lt_old_postinstall_cmds
24641 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24642
24643 # Whether to use a lock for old archive extraction.
24644 lock_old_archive_extraction=$lock_old_archive_extraction
24645
24646 # A C compiler.
24647 LTCC=$lt_CC
24648
24649 # LTCC compiler flags.
24650 LTCFLAGS=$lt_CFLAGS
24651
24652 # Take the output of nm and produce a listing of raw symbols and C names.
24653 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24654
24655 # Transform the output of nm in a proper C declaration.
24656 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24657
24658 # Transform the output of nm into a list of symbols to manually relocate.
24659 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24660
24661 # Transform the output of nm in a C name address pair.
24662 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24663
24664 # Transform the output of nm in a C name address pair when lib prefix is needed.
24665 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24666
24667 # The name lister interface.
24668 nm_interface=$lt_lt_cv_nm_interface
24669
24670 # Specify filename containing input files for \$NM.
24671 nm_file_list_spec=$lt_nm_file_list_spec
24672
24673 # The root where to search for dependent libraries,and where our libraries should be installed.
24674 lt_sysroot=$lt_sysroot
24675
24676 # Command to truncate a binary pipe.
24677 lt_truncate_bin=$lt_lt_cv_truncate_bin
24678
24679 # The name of the directory that contains temporary libtool files.
24680 objdir=$objdir
24681
24682 # Used to examine libraries when file_magic_cmd begins with "file".
24683 MAGIC_CMD=$MAGIC_CMD
24684
24685 # Must we lock files when doing compilation?
24686 need_locks=$lt_need_locks
24687
24688 # Manifest tool.
24689 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24690
24691 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24692 DSYMUTIL=$lt_DSYMUTIL
24693
24694 # Tool to change global to local symbols on Mac OS X.
24695 NMEDIT=$lt_NMEDIT
24696
24697 # Tool to manipulate fat objects and archives on Mac OS X.
24698 LIPO=$lt_LIPO
24699
24700 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24701 OTOOL=$lt_OTOOL
24702
24703 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24704 OTOOL64=$lt_OTOOL64
24705
24706 # Old archive suffix (normally "a").
24707 libext=$libext
24708
24709 # Shared library suffix (normally ".so").
24710 shrext_cmds=$lt_shrext_cmds
24711
24712 # The commands to extract the exported symbol list from a shared archive.
24713 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24714
24715 # Variables whose values should be saved in libtool wrapper scripts and
24716 # restored at link time.
24717 variables_saved_for_relink=$lt_variables_saved_for_relink
24718
24719 # Do we need the "lib" prefix for modules?
24720 need_lib_prefix=$need_lib_prefix
24721
24722 # Do we need a version for libraries?
24723 need_version=$need_version
24724
24725 # Library versioning type.
24726 version_type=$version_type
24727
24728 # Shared library runtime path variable.
24729 runpath_var=$runpath_var
24730
24731 # Shared library path variable.
24732 shlibpath_var=$shlibpath_var
24733
24734 # Is shlibpath searched before the hard-coded library search path?
24735 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24736
24737 # Format of library name prefix.
24738 libname_spec=$lt_libname_spec
24739
24740 # List of archive names. First name is the real one, the rest are links.
24741 # The last name is the one that the linker finds with -lNAME
24742 library_names_spec=$lt_library_names_spec
24743
24744 # The coded name of the library, if different from the real name.
24745 soname_spec=$lt_soname_spec
24746
24747 # Permission mode override for installation of shared libraries.
24748 install_override_mode=$lt_install_override_mode
24749
24750 # Command to use after installation of a shared archive.
24751 postinstall_cmds=$lt_postinstall_cmds
24752
24753 # Command to use after uninstallation of a shared archive.
24754 postuninstall_cmds=$lt_postuninstall_cmds
24755
24756 # Commands used to finish a libtool library installation in a directory.
24757 finish_cmds=$lt_finish_cmds
24758
24759 # As "finish_cmds", except a single script fragment to be evaled but
24760 # not shown.
24761 finish_eval=$lt_finish_eval
24762
24763 # Whether we should hardcode library paths into libraries.
24764 hardcode_into_libs=$hardcode_into_libs
24765
24766 # Compile-time system search path for libraries.
24767 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24768
24769 # Detected run-time system search path for libraries.
24770 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24771
24772 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24773 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24774
24775 # Whether dlopen is supported.
24776 dlopen_support=$enable_dlopen
24777
24778 # Whether dlopen of programs is supported.
24779 dlopen_self=$enable_dlopen_self
24780
24781 # Whether dlopen of statically linked programs is supported.
24782 dlopen_self_static=$enable_dlopen_self_static
24783
24784 # Commands to strip libraries.
24785 old_striplib=$lt_old_striplib
24786 striplib=$lt_striplib
24787
24788
24789 # The linker used to build libraries.
24790 LD=$lt_LD
24791
24792 # How to create reloadable object files.
24793 reload_flag=$lt_reload_flag
24794 reload_cmds=$lt_reload_cmds
24795
24796 # Commands used to build an old-style archive.
24797 old_archive_cmds=$lt_old_archive_cmds
24798
24799 # A language specific compiler.
24800 CC=$lt_compiler
24801
24802 # Is the compiler the GNU compiler?
24803 with_gcc=$GCC
24804
24805 # Compiler flag to turn off builtin functions.
24806 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24807
24808 # Additional compiler flags for building library objects.
24809 pic_flag=$lt_lt_prog_compiler_pic
24810
24811 # How to pass a linker flag through the compiler.
24812 wl=$lt_lt_prog_compiler_wl
24813
24814 # Compiler flag to prevent dynamic linking.
24815 link_static_flag=$lt_lt_prog_compiler_static
24816
24817 # Does compiler simultaneously support -c and -o options?
24818 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24819
24820 # Whether or not to add -lc for building shared libraries.
24821 build_libtool_need_lc=$archive_cmds_need_lc
24822
24823 # Whether or not to disallow shared libs when runtime libs are static.
24824 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24825
24826 # Compiler flag to allow reflexive dlopens.
24827 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24828
24829 # Compiler flag to generate shared objects directly from archives.
24830 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24831
24832 # Whether the compiler copes with passing no objects directly.
24833 compiler_needs_object=$lt_compiler_needs_object
24834
24835 # Create an old-style archive from a shared archive.
24836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24837
24838 # Create a temporary old-style archive to link instead of a shared archive.
24839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24840
24841 # Commands used to build a shared archive.
24842 archive_cmds=$lt_archive_cmds
24843 archive_expsym_cmds=$lt_archive_expsym_cmds
24844
24845 # Commands used to build a loadable module if different from building
24846 # a shared archive.
24847 module_cmds=$lt_module_cmds
24848 module_expsym_cmds=$lt_module_expsym_cmds
24849
24850 # Whether we are building with GNU ld or not.
24851 with_gnu_ld=$lt_with_gnu_ld
24852
24853 # Flag that allows shared libraries with undefined symbols to be built.
24854 allow_undefined_flag=$lt_allow_undefined_flag
24855
24856 # Flag that enforces no undefined symbols.
24857 no_undefined_flag=$lt_no_undefined_flag
24858
24859 # Flag to hardcode \$libdir into a binary during linking.
24860 # This must work even if \$libdir does not exist
24861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24862
24863 # Whether we need a single "-rpath" flag with a separated argument.
24864 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24865
24866 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24867 # DIR into the resulting binary.
24868 hardcode_direct=$hardcode_direct
24869
24870 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24871 # DIR into the resulting binary and the resulting library dependency is
24872 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
24873 # library is relocated.
24874 hardcode_direct_absolute=$hardcode_direct_absolute
24875
24876 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24877 # into the resulting binary.
24878 hardcode_minus_L=$hardcode_minus_L
24879
24880 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24881 # into the resulting binary.
24882 hardcode_shlibpath_var=$hardcode_shlibpath_var
24883
24884 # Set to "yes" if building a shared library automatically hardcodes DIR
24885 # into the library and all subsequent libraries and executables linked
24886 # against it.
24887 hardcode_automatic=$hardcode_automatic
24888
24889 # Set to yes if linker adds runtime paths of dependent libraries
24890 # to runtime path list.
24891 inherit_rpath=$inherit_rpath
24892
24893 # Whether libtool must link a program against all its dependency libraries.
24894 link_all_deplibs=$link_all_deplibs
24895
24896 # Set to "yes" if exported symbols are required.
24897 always_export_symbols=$always_export_symbols
24898
24899 # The commands to list exported symbols.
24900 export_symbols_cmds=$lt_export_symbols_cmds
24901
24902 # Symbols that should not be listed in the preloaded symbols.
24903 exclude_expsyms=$lt_exclude_expsyms
24904
24905 # Symbols that must always be exported.
24906 include_expsyms=$lt_include_expsyms
24907
24908 # Commands necessary for linking programs (against libraries) with templates.
24909 prelink_cmds=$lt_prelink_cmds
24910
24911 # Commands necessary for finishing linking programs.
24912 postlink_cmds=$lt_postlink_cmds
24913
24914 # Specify filename containing input files.
24915 file_list_spec=$lt_file_list_spec
24916
24917 # How to hardcode a shared library path into an executable.
24918 hardcode_action=$hardcode_action
24919
24920 # ### END LIBTOOL CONFIG
24921
24922 _LT_EOF
24923
24924 cat <<'_LT_EOF' >> "$cfgfile"
24925
24926 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24927
24928 # func_munge_path_list VARIABLE PATH
24929 # -----------------------------------
24930 # VARIABLE is name of variable containing _space_ separated list of
24931 # directories to be munged by the contents of PATH, which is string
24932 # having a format:
24933 # "DIR[:DIR]:"
24934 # string "DIR[ DIR]" will be prepended to VARIABLE
24935 # ":DIR[:DIR]"
24936 # string "DIR[ DIR]" will be appended to VARIABLE
24937 # "DIRP[:DIRP]::[DIRA:]DIRA"
24938 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24939 # "DIRA[ DIRA]" will be appended to VARIABLE
24940 # "DIR[:DIR]"
24941 # VARIABLE will be replaced by "DIR[ DIR]"
24942 func_munge_path_list ()
24943 {
24944 case x$2 in
24945 x)
24946 ;;
24947 *:)
24948 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24949 ;;
24950 x:*)
24951 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24952 ;;
24953 *::*)
24954 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24955 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24956 ;;
24957 *)
24958 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24959 ;;
24960 esac
24961 }
24962
24963
24964 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24965 func_cc_basename ()
24966 {
24967 for cc_temp in $*""; do
24968 case $cc_temp in
24969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24971 \-*) ;;
24972 *) break;;
24973 esac
24974 done
24975 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24976 }
24977
24978
24979 # ### END FUNCTIONS SHARED WITH CONFIGURE
24980
24981 _LT_EOF
24982
24983 case $host_os in
24984 aix3*)
24985 cat <<\_LT_EOF >> "$cfgfile"
24986 # AIX sometimes has problems with the GCC collect2 program. For some
24987 # reason, if we set the COLLECT_NAMES environment variable, the problems
24988 # vanish in a puff of smoke.
24989 if test set != "${COLLECT_NAMES+set}"; then
24990 COLLECT_NAMES=
24991 export COLLECT_NAMES
24992 fi
24993 _LT_EOF
24994 ;;
24995 esac
24996
24997
24998
24999 ltmain=$ac_aux_dir/ltmain.sh
25000
25001
25002 # We use sed instead of cat because bash on DJGPP gets confused if
25003 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25004 # text mode, it properly converts lines to CR/LF. This bash problem
25005 # is reportedly fixed, but why not run on old versions too?
25006 $SED '$q' "$ltmain" >> "$cfgfile" \
25007 || (rm -f "$cfgfile"; exit 1)
25008
25009 mv -f "$cfgfile" "$ofile" ||
25010 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25011 chmod +x "$ofile"
25012
25013 ;;
25014
25015 esac
25016 done # for ac_tag
25017
25018
25019 as_fn_exit 0
25020 _ACEOF
25021 ac_clean_files=$ac_clean_files_save
25022
25023 test $ac_write_fail = 0 ||
25024 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25025
25026
25027 # configure is writing to config.log, and then calls config.status.
25028 # config.status does its own redirection, appending to config.log.
25029 # Unfortunately, on DOS this fails, as config.log is still kept open
25030 # by configure, so config.status won't be able to write to it; its
25031 # output is simply discarded. So we exec the FD to /dev/null,
25032 # effectively closing config.log, so it can be properly (re)opened and
25033 # appended to by config.status. When coming back to configure, we
25034 # need to make the FD available again.
25035 if test "$no_create" != yes; then
25036 ac_cs_success=:
25037 ac_config_status_args=
25038 test "$silent" = yes &&
25039 ac_config_status_args="$ac_config_status_args --quiet"
25040 exec 5>/dev/null
25041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25042 exec 5>>config.log
25043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25044 # would make configure fail if this is the last instruction.
25045 $ac_cs_success || as_fn_exit 1
25046 fi
25047 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25049 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25050 fi
25051
25052