Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for scrypt 1.3.3.
4 #
5 # Report bugs to <https://github.com/Tarsnap/scrypt>.
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
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || 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/Tarsnap/scrypt about your system,
283 $0: 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='scrypt'
616 PACKAGE_TARNAME='scrypt'
617 PACKAGE_VERSION='1.3.3'
618 PACKAGE_STRING='scrypt 1.3.3'
619 PACKAGE_BUGREPORT='https://github.com/Tarsnap/scrypt'
620 PACKAGE_URL='http://www.tarsnap.com/scrypt/'
621
622 ac_unique_file="lib/scryptenc/scryptenc.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_func_c_list=
656 enable_year2038=no
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 LIBOBJS
661 LIBSCRYPT_KDF_FALSE
662 LIBSCRYPT_KDF_TRUE
663 CFLAGS_POSIX
664 LDADD_POSIX
665 POSIX_SH
666 MAINT
667 MAINTAINER_MODE_FALSE
668 MAINTAINER_MODE_TRUE
669 LT_SYS_LIBRARY_PATH
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 MANIFEST_TOOL
676 RANLIB
677 DLLTOOL
678 OBJDUMP
679 FILECMD
680 LN_S
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 EGREP
687 GREP
688 SED
689 LIBTOOL
690 ac_ct_AR
691 AR
692 am__fastdepCC_FALSE
693 am__fastdepCC_TRUE
694 CCDEPMODE
695 am__nodep
696 AMDEPBACKSLASH
697 AMDEP_FALSE
698 AMDEP_TRUE
699 am__include
700 DEPDIR
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 am__xargs_n
709 am__rm_f_notfound
710 AM_BACKSLASH
711 AM_DEFAULT_VERBOSITY
712 AM_DEFAULT_V
713 AM_V
714 CSCOPE
715 ETAGS
716 CTAGS
717 am__untar
718 am__tar
719 AMTAR
720 am__leading_dot
721 SET_MAKE
722 AWK
723 mkdir_p
724 MKDIR_P
725 INSTALL_STRIP_PROGRAM
726 STRIP
727 install_sh
728 MAKEINFO
729 AUTOHEADER
730 AUTOMAKE
731 AUTOCONF
732 ACLOCAL
733 VERSION
734 PACKAGE
735 CYGPATH_W
736 am__isrc
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 target_os
741 target_vendor
742 target_cpu
743 target
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 runstatedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL
791 am__quote'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_silent_rules
796 enable_dependency_tracking
797 enable_shared
798 enable_static
799 enable_pic
800 with_pic
801 enable_fast_install
802 enable_aix_soname
803 with_aix_soname
804 with_gnu_ld
805 with_sysroot
806 enable_libtool_lock
807 enable_maintainer_mode
808 enable_largefile
809 enable_compiler_warnings
810 enable_libscrypt_kdf
811 enable_year2038
812 '
813 ac_precious_vars='build_alias
814 host_alias
815 target_alias
816 CC
817 CFLAGS
818 LDFLAGS
819 LIBS
820 CPPFLAGS
821 LT_SYS_LIBRARY_PATH
822 POSIX_SH'
823
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 ac_unrecognized_opts=
829 ac_unrecognized_sep=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
846
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 runstatedir='${localstatedir}/run'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
873
874 ac_prev=
875 ac_dashdash=
876 for ac_option
877 do
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
881 ac_prev=
882 continue
883 fi
884
885 case $ac_option in
886 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *=) ac_optarg= ;;
888 *) ac_optarg=yes ;;
889 esac
890
891 case $ac_dashdash$ac_option in
892 --)
893 ac_dashdash=yes ;;
894
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
899
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
904
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
911
912 --config-cache | -C)
913 cache_file=config.cache ;;
914
915 -datadir | --datadir | --datadi | --datad)
916 ac_prev=datadir ;;
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
919
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
926
927 -disable-* | --disable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: '$ac_useropt'"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
942
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
947
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
952
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: '$ac_useropt'"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=\$ac_optarg ;;
968
969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971 | --exec | --exe | --ex)
972 ac_prev=exec_prefix ;;
973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975 | --exec=* | --exe=* | --ex=*)
976 exec_prefix=$ac_optarg ;;
977
978 -gas | --gas | --ga | --g)
979 # Obsolete; use --with-gas.
980 with_gas=yes ;;
981
982 -help | --help | --hel | --he | -h)
983 ac_init_help=long ;;
984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985 ac_init_help=recursive ;;
986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987 ac_init_help=short ;;
988
989 -host | --host | --hos | --ho)
990 ac_prev=host_alias ;;
991 -host=* | --host=* | --hos=* | --ho=*)
992 host_alias=$ac_optarg ;;
993
994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 ac_prev=htmldir ;;
996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 | --ht=*)
998 htmldir=$ac_optarg ;;
999
1000 -includedir | --includedir | --includedi | --included | --include \
1001 | --includ | --inclu | --incl | --inc)
1002 ac_prev=includedir ;;
1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004 | --includ=* | --inclu=* | --incl=* | --inc=*)
1005 includedir=$ac_optarg ;;
1006
1007 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 ac_prev=infodir ;;
1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010 infodir=$ac_optarg ;;
1011
1012 -libdir | --libdir | --libdi | --libd)
1013 ac_prev=libdir ;;
1014 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015 libdir=$ac_optarg ;;
1016
1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018 | --libexe | --libex | --libe)
1019 ac_prev=libexecdir ;;
1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021 | --libexe=* | --libex=* | --libe=*)
1022 libexecdir=$ac_optarg ;;
1023
1024 -localedir | --localedir | --localedi | --localed | --locale)
1025 ac_prev=localedir ;;
1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027 localedir=$ac_optarg ;;
1028
1029 -localstatedir | --localstatedir | --localstatedi | --localstated \
1030 | --localstate | --localstat | --localsta | --localst | --locals)
1031 ac_prev=localstatedir ;;
1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034 localstatedir=$ac_optarg ;;
1035
1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 ac_prev=mandir ;;
1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039 mandir=$ac_optarg ;;
1040
1041 -nfp | --nfp | --nf)
1042 # Obsolete; use --without-fp.
1043 with_fp=no ;;
1044
1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046 | --no-cr | --no-c | -n)
1047 no_create=yes ;;
1048
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 no_recursion=yes ;;
1052
1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055 | --oldin | --oldi | --old | --ol | --o)
1056 ac_prev=oldincludedir ;;
1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060 oldincludedir=$ac_optarg ;;
1061
1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 ac_prev=prefix ;;
1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065 prefix=$ac_optarg ;;
1066
1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068 | --program-pre | --program-pr | --program-p)
1069 ac_prev=program_prefix ;;
1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072 program_prefix=$ac_optarg ;;
1073
1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075 | --program-suf | --program-su | --program-s)
1076 ac_prev=program_suffix ;;
1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079 program_suffix=$ac_optarg ;;
1080
1081 -program-transform-name | --program-transform-name \
1082 | --program-transform-nam | --program-transform-na \
1083 | --program-transform-n | --program-transform- \
1084 | --program-transform | --program-transfor \
1085 | --program-transfo | --program-transf \
1086 | --program-trans | --program-tran \
1087 | --progr-tra | --program-tr | --program-t)
1088 ac_prev=program_transform_name ;;
1089 -program-transform-name=* | --program-transform-name=* \
1090 | --program-transform-nam=* | --program-transform-na=* \
1091 | --program-transform-n=* | --program-transform-=* \
1092 | --program-transform=* | --program-transfor=* \
1093 | --program-transfo=* | --program-transf=* \
1094 | --program-trans=* | --program-tran=* \
1095 | --progr-tra=* | --program-tr=* | --program-t=*)
1096 program_transform_name=$ac_optarg ;;
1097
1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 ac_prev=pdfdir ;;
1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101 pdfdir=$ac_optarg ;;
1102
1103 -psdir | --psdir | --psdi | --psd | --ps)
1104 ac_prev=psdir ;;
1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 psdir=$ac_optarg ;;
1107
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1110 silent=yes ;;
1111
1112 -runstatedir | --runstatedir | --runstatedi | --runstated \
1113 | --runstate | --runstat | --runsta | --runst | --runs \
1114 | --run | --ru | --r)
1115 ac_prev=runstatedir ;;
1116 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1117 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1118 | --run=* | --ru=* | --r=*)
1119 runstatedir=$ac_optarg ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: '$ac_useropt'"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: '$ac_useropt'"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: '$ac_option'
1217 Try '$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir runstatedir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: '$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 printf "%s\n" X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 'configure' configures scrypt 1.3.3 to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print 'checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for '--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or '..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, 'make install' will install all the files in
1398 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than '$ac_default_prefix' using '--prefix',
1400 for instance '--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/scrypt]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 --target=TARGET configure for building compilers for TARGET [HOST]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of scrypt 1.3.3:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-silent-rules less verbose build output (undo: "make V=1")
1452 --disable-silent-rules verbose build output (undo: "make V=0")
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --enable-aix-soname=aix|svr4|both
1464 shared library versioning (aka "SONAME") variant to
1465 provide on AIX, [default=aix].
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467 --enable-maintainer-mode
1468 enable make rules and dependencies not useful (and
1469 sometimes confusing) to the casual installer
1470 --disable-largefile omit support for large files
1471 --disable-compiler-warnings
1472 Do not request compiler warnings. [default=enabled]
1473 --enable-libscrypt-kdf Install libscrypt-kdf and development headers.
1474 --enable-year2038 support timestamps after 2038
1475
1476 Optional Packages:
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1481 compiler's sysroot if not specified).
1482
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 LT_SYS_LIBRARY_PATH
1492 User-defined run-time library search path.
1493 POSIX_SH path of a POSIX shell
1494
1495 Use these variables to override the choices made by 'configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1497
1498 Report bugs to <https://github.com/Tarsnap/scrypt>.
1499 scrypt home page: <http://www.tarsnap.com/scrypt/>.
1500 _ACEOF
1501 ac_status=$?
1502 fi
1503
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509 continue
1510 ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529 .) # We are building in place.
1530 ac_srcdir=.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for configure.gnu first; this name is used for a wrapper for
1546 # Metaconfig's "Configure" on case-insensitive file systems.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1563 scrypt configure 1.3.3
1564 generated by GNU Autoconf 2.72
1565
1566 Copyright (C) 2023 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1571 fi
1572
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1576
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext conftest.beam
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 printf "%s\n" "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext
1603 then :
1604 ac_retval=0
1605 else case e in #(
1606 e) printf "%s\n" "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1 ;;
1610 esac
1611 fi
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_compile
1616
1617 # ac_fn_c_try_link LINENO
1618 # -----------------------
1619 # Try to link conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_link ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1624 if { { ac_try="$ac_link"
1625 case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 printf "%s\n" "$ac_try_echo"; } >&5
1631 (eval "$ac_link") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest$ac_exeext && {
1643 test "$cross_compiling" = yes ||
1644 test -x conftest$ac_exeext
1645 }
1646 then :
1647 ac_retval=0
1648 else case e in #(
1649 e) printf "%s\n" "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1 ;;
1653 esac
1654 fi
1655 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1656 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1657 # interfere with the next link command; also delete a directory that is
1658 # left behind by Apple's compiler. We do this before executing the actions.
1659 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_link
1664
1665 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists and can be compiled using the include files in
1668 # INCLUDES, setting the cache variable VAR accordingly.
1669 ac_fn_c_check_header_compile ()
1670 {
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 printf %s "checking for $2... " >&6; }
1674 if eval test \${$3+y}
1675 then :
1676 printf %s "(cached) " >&6
1677 else case e in #(
1678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679 /* end confdefs.h. */
1680 $4
1681 #include <$2>
1682 _ACEOF
1683 if ac_fn_c_try_compile "$LINENO"
1684 then :
1685 eval "$3=yes"
1686 else case e in #(
1687 e) eval "$3=no" ;;
1688 esac
1689 fi
1690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1691 esac
1692 fi
1693 eval ac_res=\$$3
1694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 printf "%s\n" "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
1698 } # ac_fn_c_check_header_compile
1699
1700 # ac_fn_c_check_func LINENO FUNC VAR
1701 # ----------------------------------
1702 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1703 ac_fn_c_check_func ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 printf %s "checking for $2... " >&6; }
1708 if eval test \${$3+y}
1709 then :
1710 printf %s "(cached) " >&6
1711 else case e in #(
1712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1716 #define $2 innocuous_$2
1717
1718 /* System header to define __stub macros and hopefully few prototypes,
1719 which can conflict with char $2 (void); below. */
1720
1721 #include <limits.h>
1722 #undef $2
1723
1724 /* Override any GCC internal prototype to avoid an error.
1725 Use char because int might match the return type of a GCC
1726 builtin and then its argument prototype would still apply. */
1727 #ifdef __cplusplus
1728 extern "C"
1729 #endif
1730 char $2 (void);
1731 /* The GNU C library defines this for functions which it implements
1732 to always fail with ENOSYS. Some functions are actually named
1733 something starting with __ and the normal name is an alias. */
1734 #if defined __stub_$2 || defined __stub___$2
1735 choke me
1736 #endif
1737
1738 int
1739 main (void)
1740 {
1741 return $2 ();
1742 ;
1743 return 0;
1744 }
1745 _ACEOF
1746 if ac_fn_c_try_link "$LINENO"
1747 then :
1748 eval "$3=yes"
1749 else case e in #(
1750 e) eval "$3=no" ;;
1751 esac
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1754 conftest$ac_exeext conftest.$ac_ext ;;
1755 esac
1756 fi
1757 eval ac_res=\$$3
1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 printf "%s\n" "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_func
1763
1764 # ac_fn_c_try_run LINENO
1765 # ----------------------
1766 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1767 # executables *can* be run.
1768 ac_fn_c_try_run ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 printf "%s\n" "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>&5
1779 ac_status=$?
1780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782 { { case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 printf "%s\n" "$ac_try_echo"; } >&5
1788 (eval "$ac_try") 2>&5
1789 ac_status=$?
1790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; }; }
1792 then :
1793 ac_retval=0
1794 else case e in #(
1795 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1796 printf "%s\n" "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799 ac_retval=$ac_status ;;
1800 esac
1801 fi
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1805
1806 } # ac_fn_c_try_run
1807
1808 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1809 # -------------------------------------------
1810 # Tests whether TYPE exists after having included INCLUDES, setting cache
1811 # variable VAR accordingly.
1812 ac_fn_c_check_type ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 printf %s "checking for $2... " >&6; }
1817 if eval test \${$3+y}
1818 then :
1819 printf %s "(cached) " >&6
1820 else case e in #(
1821 e) eval "$3=no"
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 $4
1825 int
1826 main (void)
1827 {
1828 if (sizeof ($2))
1829 return 0;
1830 ;
1831 return 0;
1832 }
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"
1835 then :
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 $4
1839 int
1840 main (void)
1841 {
1842 if (sizeof (($2)))
1843 return 0;
1844 ;
1845 return 0;
1846 }
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"
1849 then :
1850
1851 else case e in #(
1852 e) eval "$3=yes" ;;
1853 esac
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1858 esac
1859 fi
1860 eval ac_res=\$$3
1861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 printf "%s\n" "$ac_res" >&6; }
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865 } # ac_fn_c_check_type
1866
1867 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1868 # ----------------------------------------------------
1869 # Tries to find if the field MEMBER exists in type AGGR, after including
1870 # INCLUDES, setting cache variable VAR accordingly.
1871 ac_fn_c_check_member ()
1872 {
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1875 printf %s "checking for $2.$3... " >&6; }
1876 if eval test \${$4+y}
1877 then :
1878 printf %s "(cached) " >&6
1879 else case e in #(
1880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 $5
1883 int
1884 main (void)
1885 {
1886 static $2 ac_aggr;
1887 if (ac_aggr.$3)
1888 return 0;
1889 ;
1890 return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"
1894 then :
1895 eval "$4=yes"
1896 else case e in #(
1897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 $5
1900 int
1901 main (void)
1902 {
1903 static $2 ac_aggr;
1904 if (sizeof ac_aggr.$3)
1905 return 0;
1906 ;
1907 return 0;
1908 }
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"
1911 then :
1912 eval "$4=yes"
1913 else case e in #(
1914 e) eval "$4=no" ;;
1915 esac
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1918 esac
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1921 esac
1922 fi
1923 eval ac_res=\$$4
1924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 printf "%s\n" "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_member
1929 ac_configure_args_raw=
1930 for ac_arg
1931 do
1932 case $ac_arg in
1933 *\'*)
1934 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1935 esac
1936 as_fn_append ac_configure_args_raw " '$ac_arg'"
1937 done
1938
1939 case $ac_configure_args_raw in
1940 *$as_nl*)
1941 ac_safe_unquote= ;;
1942 *)
1943 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1944 ac_unsafe_a="$ac_unsafe_z#~"
1945 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1946 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1947 esac
1948
1949 cat >config.log <<_ACEOF
1950 This file contains any messages produced by compilers while
1951 running configure, to aid debugging if configure makes a mistake.
1952
1953 It was created by scrypt $as_me 1.3.3, which was
1954 generated by GNU Autoconf 2.72. Invocation command line was
1955
1956 $ $0$ac_configure_args_raw
1957
1958 _ACEOF
1959 exec 5>>config.log
1960 {
1961 cat <<_ASUNAME
1962 ## --------- ##
1963 ## Platform. ##
1964 ## --------- ##
1965
1966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1971
1972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1974
1975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1978 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1982
1983 _ASUNAME
1984
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988 IFS=$as_save_IFS
1989 case $as_dir in #(((
1990 '') as_dir=./ ;;
1991 */) ;;
1992 *) as_dir=$as_dir/ ;;
1993 esac
1994 printf "%s\n" "PATH: $as_dir"
1995 done
1996 IFS=$as_save_IFS
1997
1998 } >&5
1999
2000 cat >&5 <<_ACEOF
2001
2002
2003 ## ----------- ##
2004 ## Core tests. ##
2005 ## ----------- ##
2006
2007 _ACEOF
2008
2009
2010 # Keep a trace of the command line.
2011 # Strip out --no-create and --no-recursion so they do not pile up.
2012 # Strip out --silent because we don't want to record it for future runs.
2013 # Also quote any args containing shell meta-characters.
2014 # Make two passes to allow for proper duplicate-argument suppression.
2015 ac_configure_args=
2016 ac_configure_args0=
2017 ac_configure_args1=
2018 ac_must_keep_next=false
2019 for ac_pass in 1 2
2020 do
2021 for ac_arg
2022 do
2023 case $ac_arg in
2024 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2026 | -silent | --silent | --silen | --sile | --sil)
2027 continue ;;
2028 *\'*)
2029 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2030 esac
2031 case $ac_pass in
2032 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2033 2)
2034 as_fn_append ac_configure_args1 " '$ac_arg'"
2035 if test $ac_must_keep_next = true; then
2036 ac_must_keep_next=false # Got value, back to normal.
2037 else
2038 case $ac_arg in
2039 *=* | --config-cache | -C | -disable-* | --disable-* \
2040 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2041 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2042 | -with-* | --with-* | -without-* | --without-* | --x)
2043 case "$ac_configure_args0 " in
2044 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2045 esac
2046 ;;
2047 -* ) ac_must_keep_next=true ;;
2048 esac
2049 fi
2050 as_fn_append ac_configure_args " '$ac_arg'"
2051 ;;
2052 esac
2053 done
2054 done
2055 { ac_configure_args0=; unset ac_configure_args0;}
2056 { ac_configure_args1=; unset ac_configure_args1;}
2057
2058 # When interrupted or exit'd, cleanup temporary files, and complete
2059 # config.log. We remove comments because anyway the quotes in there
2060 # would cause problems or look ugly.
2061 # WARNING: Use '\'' to represent an apostrophe within the trap.
2062 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2063 trap 'exit_status=$?
2064 # Sanitize IFS.
2065 IFS=" "" $as_nl"
2066 # Save into config.log some information that might help in debugging.
2067 {
2068 echo
2069
2070 printf "%s\n" "## ---------------- ##
2071 ## Cache variables. ##
2072 ## ---------------- ##"
2073 echo
2074 # The following way of writing the cache mishandles newlines in values,
2075 (
2076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in #(
2079 *${as_nl}*)
2080 case $ac_var in #(
2081 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2082 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2083 esac
2084 case $ac_var in #(
2085 _ | IFS | as_nl) ;; #(
2086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2087 *) { eval $ac_var=; unset $ac_var;} ;;
2088 esac ;;
2089 esac
2090 done
2091 (set) 2>&1 |
2092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2093 *${as_nl}ac_space=\ *)
2094 sed -n \
2095 "s/'\''/'\''\\\\'\'''\''/g;
2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2097 ;; #(
2098 *)
2099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2100 ;;
2101 esac |
2102 sort
2103 )
2104 echo
2105
2106 printf "%s\n" "## ----------------- ##
2107 ## Output variables. ##
2108 ## ----------------- ##"
2109 echo
2110 for ac_var in $ac_subst_vars
2111 do
2112 eval ac_val=\$$ac_var
2113 case $ac_val in
2114 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115 esac
2116 printf "%s\n" "$ac_var='\''$ac_val'\''"
2117 done | sort
2118 echo
2119
2120 if test -n "$ac_subst_files"; then
2121 printf "%s\n" "## ------------------- ##
2122 ## File substitutions. ##
2123 ## ------------------- ##"
2124 echo
2125 for ac_var in $ac_subst_files
2126 do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 printf "%s\n" "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2134 fi
2135
2136 if test -s confdefs.h; then
2137 printf "%s\n" "## ----------- ##
2138 ## confdefs.h. ##
2139 ## ----------- ##"
2140 echo
2141 cat confdefs.h
2142 echo
2143 fi
2144 test "$ac_signal" != 0 &&
2145 printf "%s\n" "$as_me: caught signal $ac_signal"
2146 printf "%s\n" "$as_me: exit $exit_status"
2147 } >&5
2148 rm -f core *.core core.conftest.* &&
2149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150 exit $exit_status
2151 ' 0
2152 for ac_signal in 1 2 13 15; do
2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154 done
2155 ac_signal=0
2156
2157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2158 rm -f -r conftest* confdefs.h
2159
2160 printf "%s\n" "/* confdefs.h */" > confdefs.h
2161
2162 # Predefined preprocessor variables.
2163
2164 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2165
2166 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2167
2168 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2169
2170 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2171
2172 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2173
2174 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2175
2176
2177 # Let the site file select an alternate cache file if it wants to.
2178 # Prefer an explicitly selected file to automatically selected ones.
2179 if test -n "$CONFIG_SITE"; then
2180 ac_site_files="$CONFIG_SITE"
2181 elif test "x$prefix" != xNONE; then
2182 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2183 else
2184 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2185 fi
2186
2187 for ac_site_file in $ac_site_files
2188 do
2189 case $ac_site_file in #(
2190 */*) :
2191 ;; #(
2192 *) :
2193 ac_site_file=./$ac_site_file ;;
2194 esac
2195 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2197 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2198 sed 's/^/| /' "$ac_site_file" >&5
2199 . "$ac_site_file" \
2200 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2201 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2202 as_fn_error $? "failed to load site script $ac_site_file
2203 See 'config.log' for more details" "$LINENO" 5; }
2204 fi
2205 done
2206
2207 if test -r "$cache_file"; then
2208 # Some versions of bash will fail to source /dev/null (special files
2209 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2210 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2212 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2213 case $cache_file in
2214 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2215 *) . "./$cache_file";;
2216 esac
2217 fi
2218 else
2219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2220 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2221 >$cache_file
2222 fi
2223
2224 # Test code for whether the C compiler supports C89 (global declarations)
2225 ac_c_conftest_c89_globals='
2226 /* Does the compiler advertise C89 conformance?
2227 Do not test the value of __STDC__, because some compilers set it to 0
2228 while being otherwise adequately conformant. */
2229 #if !defined __STDC__
2230 # error "Compiler does not advertise C89 conformance"
2231 #endif
2232
2233 #include <stddef.h>
2234 #include <stdarg.h>
2235 struct stat;
2236 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2237 struct buf { int x; };
2238 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2239 static char *e (char **p, int i)
2240 {
2241 return p[i];
2242 }
2243 static char *f (char * (*g) (char **, int), char **p, ...)
2244 {
2245 char *s;
2246 va_list v;
2247 va_start (v,p);
2248 s = g (p, va_arg (v,int));
2249 va_end (v);
2250 return s;
2251 }
2252
2253 /* C89 style stringification. */
2254 #define noexpand_stringify(a) #a
2255 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2256
2257 /* C89 style token pasting. Exercises some of the corner cases that
2258 e.g. old MSVC gets wrong, but not very hard. */
2259 #define noexpand_concat(a,b) a##b
2260 #define expand_concat(a,b) noexpand_concat(a,b)
2261 extern int vA;
2262 extern int vbee;
2263 #define aye A
2264 #define bee B
2265 int *pvA = &expand_concat(v,aye);
2266 int *pvbee = &noexpand_concat(v,bee);
2267
2268 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2269 function prototypes and stuff, but not \xHH hex character constants.
2270 These do not provoke an error unfortunately, instead are silently treated
2271 as an "x". The following induces an error, until -std is added to get
2272 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2273 array size at least. It is necessary to write \x00 == 0 to get something
2274 that is true only with -std. */
2275 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2276
2277 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2278 inside strings and character constants. */
2279 #define FOO(x) '\''x'\''
2280 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2281
2282 int test (int i, double x);
2283 struct s1 {int (*f) (int a);};
2284 struct s2 {int (*f) (double a);};
2285 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2286 int, int);'
2287
2288 # Test code for whether the C compiler supports C89 (body of main).
2289 ac_c_conftest_c89_main='
2290 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2291 '
2292
2293 # Test code for whether the C compiler supports C99 (global declarations)
2294 ac_c_conftest_c99_globals='
2295 /* Does the compiler advertise C99 conformance? */
2296 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2297 # error "Compiler does not advertise C99 conformance"
2298 #endif
2299
2300 // See if C++-style comments work.
2301
2302 #include <stdbool.h>
2303 extern int puts (const char *);
2304 extern int printf (const char *, ...);
2305 extern int dprintf (int, const char *, ...);
2306 extern void *malloc (size_t);
2307 extern void free (void *);
2308
2309 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2310 // dprintf is used instead of fprintf to avoid needing to declare
2311 // FILE and stderr.
2312 #define debug(...) dprintf (2, __VA_ARGS__)
2313 #define showlist(...) puts (#__VA_ARGS__)
2314 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2315 static void
2316 test_varargs_macros (void)
2317 {
2318 int x = 1234;
2319 int y = 5678;
2320 debug ("Flag");
2321 debug ("X = %d\n", x);
2322 showlist (The first, second, and third items.);
2323 report (x>y, "x is %d but y is %d", x, y);
2324 }
2325
2326 // Check long long types.
2327 #define BIG64 18446744073709551615ull
2328 #define BIG32 4294967295ul
2329 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2330 #if !BIG_OK
2331 #error "your preprocessor is broken"
2332 #endif
2333 #if BIG_OK
2334 #else
2335 #error "your preprocessor is broken"
2336 #endif
2337 static long long int bignum = -9223372036854775807LL;
2338 static unsigned long long int ubignum = BIG64;
2339
2340 struct incomplete_array
2341 {
2342 int datasize;
2343 double data[];
2344 };
2345
2346 struct named_init {
2347 int number;
2348 const wchar_t *name;
2349 double average;
2350 };
2351
2352 typedef const char *ccp;
2353
2354 static inline int
2355 test_restrict (ccp restrict text)
2356 {
2357 // Iterate through items via the restricted pointer.
2358 // Also check for declarations in for loops.
2359 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2360 continue;
2361 return 0;
2362 }
2363
2364 // Check varargs and va_copy.
2365 static bool
2366 test_varargs (const char *format, ...)
2367 {
2368 va_list args;
2369 va_start (args, format);
2370 va_list args_copy;
2371 va_copy (args_copy, args);
2372
2373 const char *str = "";
2374 int number = 0;
2375 float fnumber = 0;
2376
2377 while (*format)
2378 {
2379 switch (*format++)
2380 {
2381 case '\''s'\'': // string
2382 str = va_arg (args_copy, const char *);
2383 break;
2384 case '\''d'\'': // int
2385 number = va_arg (args_copy, int);
2386 break;
2387 case '\''f'\'': // float
2388 fnumber = va_arg (args_copy, double);
2389 break;
2390 default:
2391 break;
2392 }
2393 }
2394 va_end (args_copy);
2395 va_end (args);
2396
2397 return *str && number && fnumber;
2398 }
2399 '
2400
2401 # Test code for whether the C compiler supports C99 (body of main).
2402 ac_c_conftest_c99_main='
2403 // Check bool.
2404 _Bool success = false;
2405 success |= (argc != 0);
2406
2407 // Check restrict.
2408 if (test_restrict ("String literal") == 0)
2409 success = true;
2410 char *restrict newvar = "Another string";
2411
2412 // Check varargs.
2413 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2414 test_varargs_macros ();
2415
2416 // Check flexible array members.
2417 struct incomplete_array *ia =
2418 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2419 ia->datasize = 10;
2420 for (int i = 0; i < ia->datasize; ++i)
2421 ia->data[i] = i * 1.234;
2422 // Work around memory leak warnings.
2423 free (ia);
2424
2425 // Check named initializers.
2426 struct named_init ni = {
2427 .number = 34,
2428 .name = L"Test wide string",
2429 .average = 543.34343,
2430 };
2431
2432 ni.number = 58;
2433
2434 int dynamic_array[ni.number];
2435 dynamic_array[0] = argv[0][0];
2436 dynamic_array[ni.number - 1] = 543;
2437
2438 // work around unused variable warnings
2439 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2440 || dynamic_array[ni.number - 1] != 543);
2441 '
2442
2443 # Test code for whether the C compiler supports C11 (global declarations)
2444 ac_c_conftest_c11_globals='
2445 /* Does the compiler advertise C11 conformance? */
2446 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2447 # error "Compiler does not advertise C11 conformance"
2448 #endif
2449
2450 // Check _Alignas.
2451 char _Alignas (double) aligned_as_double;
2452 char _Alignas (0) no_special_alignment;
2453 extern char aligned_as_int;
2454 char _Alignas (0) _Alignas (int) aligned_as_int;
2455
2456 // Check _Alignof.
2457 enum
2458 {
2459 int_alignment = _Alignof (int),
2460 int_array_alignment = _Alignof (int[100]),
2461 char_alignment = _Alignof (char)
2462 };
2463 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2464
2465 // Check _Noreturn.
2466 int _Noreturn does_not_return (void) { for (;;) continue; }
2467
2468 // Check _Static_assert.
2469 struct test_static_assert
2470 {
2471 int x;
2472 _Static_assert (sizeof (int) <= sizeof (long int),
2473 "_Static_assert does not work in struct");
2474 long int y;
2475 };
2476
2477 // Check UTF-8 literals.
2478 #define u8 syntax error!
2479 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2480
2481 // Check duplicate typedefs.
2482 typedef long *long_ptr;
2483 typedef long int *long_ptr;
2484 typedef long_ptr long_ptr;
2485
2486 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2487 struct anonymous
2488 {
2489 union {
2490 struct { int i; int j; };
2491 struct { int k; long int l; } w;
2492 };
2493 int m;
2494 } v1;
2495 '
2496
2497 # Test code for whether the C compiler supports C11 (body of main).
2498 ac_c_conftest_c11_main='
2499 _Static_assert ((offsetof (struct anonymous, i)
2500 == offsetof (struct anonymous, w.k)),
2501 "Anonymous union alignment botch");
2502 v1.i = 2;
2503 v1.w.k = 5;
2504 ok |= v1.i != 5;
2505 '
2506
2507 # Test code for whether the C compiler supports C11 (complete).
2508 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2509 ${ac_c_conftest_c99_globals}
2510 ${ac_c_conftest_c11_globals}
2511
2512 int
2513 main (int argc, char **argv)
2514 {
2515 int ok = 0;
2516 ${ac_c_conftest_c89_main}
2517 ${ac_c_conftest_c99_main}
2518 ${ac_c_conftest_c11_main}
2519 return ok;
2520 }
2521 "
2522
2523 # Test code for whether the C compiler supports C99 (complete).
2524 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2525 ${ac_c_conftest_c99_globals}
2526
2527 int
2528 main (int argc, char **argv)
2529 {
2530 int ok = 0;
2531 ${ac_c_conftest_c89_main}
2532 ${ac_c_conftest_c99_main}
2533 return ok;
2534 }
2535 "
2536
2537 # Test code for whether the C compiler supports C89 (complete).
2538 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2539
2540 int
2541 main (int argc, char **argv)
2542 {
2543 int ok = 0;
2544 ${ac_c_conftest_c89_main}
2545 return ok;
2546 }
2547 "
2548
2549 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2550 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2551 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2552 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2553 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2554 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2555 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2556 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2557 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2558 as_fn_append ac_header_c_list " sys/sysinfo.h sys_sysinfo_h HAVE_SYS_SYSINFO_H"
2559 as_fn_append ac_func_c_list " sysinfo HAVE_SYSINFO"
2560 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2561 as_fn_append ac_header_c_list " sys/sysctl.h sys_sysctl_h HAVE_SYS_SYSCTL_H"
2562 as_fn_append ac_func_c_list " posix_memalign HAVE_POSIX_MEMALIGN"
2563 as_fn_append ac_func_c_list " mmap HAVE_MMAP"
2564
2565 # Auxiliary files required by this configure script.
2566 ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub"
2567
2568 # Locations in which to look for auxiliary files.
2569 ac_aux_dir_candidates="${srcdir}/config.aux"
2570
2571 # Search for a directory containing all of the required auxiliary files,
2572 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2573 # If we don't find one directory that contains all the files we need,
2574 # we report the set of missing files from the *first* directory in
2575 # $ac_aux_dir_candidates and give up.
2576 ac_missing_aux_files=""
2577 ac_first_candidate=:
2578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 as_found=false
2581 for as_dir in $ac_aux_dir_candidates
2582 do
2583 IFS=$as_save_IFS
2584 case $as_dir in #(((
2585 '') as_dir=./ ;;
2586 */) ;;
2587 *) as_dir=$as_dir/ ;;
2588 esac
2589 as_found=:
2590
2591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2592 ac_aux_dir_found=yes
2593 ac_install_sh=
2594 for ac_aux in $ac_aux_files
2595 do
2596 # As a special case, if "install-sh" is required, that requirement
2597 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2598 # and $ac_install_sh is set appropriately for whichever one is found.
2599 if test x"$ac_aux" = x"install-sh"
2600 then
2601 if test -f "${as_dir}install-sh"; then
2602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2603 ac_install_sh="${as_dir}install-sh -c"
2604 elif test -f "${as_dir}install.sh"; then
2605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2606 ac_install_sh="${as_dir}install.sh -c"
2607 elif test -f "${as_dir}shtool"; then
2608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2609 ac_install_sh="${as_dir}shtool install -c"
2610 else
2611 ac_aux_dir_found=no
2612 if $ac_first_candidate; then
2613 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2614 else
2615 break
2616 fi
2617 fi
2618 else
2619 if test -f "${as_dir}${ac_aux}"; then
2620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2621 else
2622 ac_aux_dir_found=no
2623 if $ac_first_candidate; then
2624 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2625 else
2626 break
2627 fi
2628 fi
2629 fi
2630 done
2631 if test "$ac_aux_dir_found" = yes; then
2632 ac_aux_dir="$as_dir"
2633 break
2634 fi
2635 ac_first_candidate=false
2636
2637 as_found=false
2638 done
2639 IFS=$as_save_IFS
2640 if $as_found
2641 then :
2642
2643 else case e in #(
2644 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2645 esac
2646 fi
2647
2648
2649 # These three variables are undocumented and unsupported,
2650 # and are intended to be withdrawn in a future Autoconf release.
2651 # They can cause serious problems if a builder's source tree is in a directory
2652 # whose full name contains unusual characters.
2653 if test -f "${ac_aux_dir}config.guess"; then
2654 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2655 fi
2656 if test -f "${ac_aux_dir}config.sub"; then
2657 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2658 fi
2659 if test -f "$ac_aux_dir/configure"; then
2660 ac_configure="$SHELL ${ac_aux_dir}configure"
2661 fi
2662
2663 # Check that the precious variables saved in the cache have kept the same
2664 # value.
2665 ac_cache_corrupted=false
2666 for ac_var in $ac_precious_vars; do
2667 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2668 eval ac_new_set=\$ac_env_${ac_var}_set
2669 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2670 eval ac_new_val=\$ac_env_${ac_var}_value
2671 case $ac_old_set,$ac_new_set in
2672 set,)
2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2674 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2675 ac_cache_corrupted=: ;;
2676 ,set)
2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2678 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2679 ac_cache_corrupted=: ;;
2680 ,);;
2681 *)
2682 if test "x$ac_old_val" != "x$ac_new_val"; then
2683 # differences in whitespace do not lead to failure.
2684 ac_old_val_w=`echo x $ac_old_val`
2685 ac_new_val_w=`echo x $ac_new_val`
2686 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2688 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2689 ac_cache_corrupted=:
2690 else
2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2692 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2693 eval $ac_var=\$ac_old_val
2694 fi
2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2696 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2698 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2699 fi;;
2700 esac
2701 # Pass precious variables to config.status.
2702 if test "$ac_new_set" = set; then
2703 case $ac_new_val in
2704 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2705 *) ac_arg=$ac_var=$ac_new_val ;;
2706 esac
2707 case " $ac_configure_args " in
2708 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2709 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2710 esac
2711 fi
2712 done
2713 if $ac_cache_corrupted; then
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2715 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2717 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2718 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2719 and start over" "$LINENO" 5
2720 fi
2721 ## -------------------- ##
2722 ## Main body of script. ##
2723 ## -------------------- ##
2724
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
2731
2732
2733 # Safety check: make sure that the srcdir contains this file.
2734
2735 # Use auxiliary subscripts from this subdirectory (cleans up root).
2736
2737 # Directory for our additional macros.
2738
2739 # Compute $target_os and related variables.
2740
2741
2742
2743 # Make sure we can run config.sub.
2744 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2745 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2746
2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2748 printf %s "checking build system type... " >&6; }
2749 if test ${ac_cv_build+y}
2750 then :
2751 printf %s "(cached) " >&6
2752 else case e in #(
2753 e) ac_build_alias=$build_alias
2754 test "x$ac_build_alias" = x &&
2755 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2756 test "x$ac_build_alias" = x &&
2757 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2758 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2759 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2760 ;;
2761 esac
2762 fi
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2764 printf "%s\n" "$ac_cv_build" >&6; }
2765 case $ac_cv_build in
2766 *-*-*) ;;
2767 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2768 esac
2769 build=$ac_cv_build
2770 ac_save_IFS=$IFS; IFS='-'
2771 set x $ac_cv_build
2772 shift
2773 build_cpu=$1
2774 build_vendor=$2
2775 shift; shift
2776 # Remember, the first character of IFS is used to create $*,
2777 # except with old shells:
2778 build_os=$*
2779 IFS=$ac_save_IFS
2780 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2781
2782
2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2784 printf %s "checking host system type... " >&6; }
2785 if test ${ac_cv_host+y}
2786 then :
2787 printf %s "(cached) " >&6
2788 else case e in #(
2789 e) if test "x$host_alias" = x; then
2790 ac_cv_host=$ac_cv_build
2791 else
2792 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2793 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2794 fi
2795 ;;
2796 esac
2797 fi
2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2799 printf "%s\n" "$ac_cv_host" >&6; }
2800 case $ac_cv_host in
2801 *-*-*) ;;
2802 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2803 esac
2804 host=$ac_cv_host
2805 ac_save_IFS=$IFS; IFS='-'
2806 set x $ac_cv_host
2807 shift
2808 host_cpu=$1
2809 host_vendor=$2
2810 shift; shift
2811 # Remember, the first character of IFS is used to create $*,
2812 # except with old shells:
2813 host_os=$*
2814 IFS=$ac_save_IFS
2815 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2816
2817
2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2819 printf %s "checking target system type... " >&6; }
2820 if test ${ac_cv_target+y}
2821 then :
2822 printf %s "(cached) " >&6
2823 else case e in #(
2824 e) if test "x$target_alias" = x; then
2825 ac_cv_target=$ac_cv_host
2826 else
2827 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2828 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2829 fi
2830 ;;
2831 esac
2832 fi
2833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2834 printf "%s\n" "$ac_cv_target" >&6; }
2835 case $ac_cv_target in
2836 *-*-*) ;;
2837 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2838 esac
2839 target=$ac_cv_target
2840 ac_save_IFS=$IFS; IFS='-'
2841 set x $ac_cv_target
2842 shift
2843 target_cpu=$1
2844 target_vendor=$2
2845 shift; shift
2846 # Remember, the first character of IFS is used to create $*,
2847 # except with old shells:
2848 target_os=$*
2849 IFS=$ac_save_IFS
2850 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2851
2852
2853 # The aliases save the names the user supplied, while $host etc.
2854 # will get canonicalized.
2855 test -n "$target_alias" &&
2856 test "$program_prefix$program_suffix$program_transform_name" = \
2857 NONENONEs,x,x, &&
2858 program_prefix=${target_alias}-
2859 am__api_version='1.17'
2860
2861
2862 # Find a good install program. We prefer a C program (faster),
2863 # so one script is as good as another. But avoid the broken or
2864 # incompatible versions:
2865 # SysV /etc/install, /usr/sbin/install
2866 # SunOS /usr/etc/install
2867 # IRIX /sbin/install
2868 # AIX /bin/install
2869 # AmigaOS /C/install, which installs bootblocks on floppy discs
2870 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2871 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2872 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2873 # OS/2's system install, which has a completely different semantic
2874 # ./install, which can be erroneously created by make from ./install.sh.
2875 # Reject install programs that cannot install multiple files.
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2877 printf %s "checking for a BSD-compatible install... " >&6; }
2878 if test -z "$INSTALL"; then
2879 if test ${ac_cv_path_install+y}
2880 then :
2881 printf %s "(cached) " >&6
2882 else case e in #(
2883 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886 IFS=$as_save_IFS
2887 case $as_dir in #(((
2888 '') as_dir=./ ;;
2889 */) ;;
2890 *) as_dir=$as_dir/ ;;
2891 esac
2892 # Account for fact that we put trailing slashes in our PATH walk.
2893 case $as_dir in #((
2894 ./ | /[cC]/* | \
2895 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2896 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2897 /usr/ucb/* ) ;;
2898 *)
2899 # OSF1 and SCO ODT 3.0 have their own names for install.
2900 # Don't use installbsd from OSF since it installs stuff as root
2901 # by default.
2902 for ac_prog in ginstall scoinst install; do
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2905 if test $ac_prog = install &&
2906 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2907 # AIX install. It has an incompatible calling convention.
2908 :
2909 elif test $ac_prog = install &&
2910 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2911 # program-specific install script used by HP pwplus--don't use.
2912 :
2913 else
2914 rm -rf conftest.one conftest.two conftest.dir
2915 echo one > conftest.one
2916 echo two > conftest.two
2917 mkdir conftest.dir
2918 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2919 test -s conftest.one && test -s conftest.two &&
2920 test -s conftest.dir/conftest.one &&
2921 test -s conftest.dir/conftest.two
2922 then
2923 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2924 break 3
2925 fi
2926 fi
2927 fi
2928 done
2929 done
2930 ;;
2931 esac
2932
2933 done
2934 IFS=$as_save_IFS
2935
2936 rm -rf conftest.one conftest.two conftest.dir
2937 ;;
2938 esac
2939 fi
2940 if test ${ac_cv_path_install+y}; then
2941 INSTALL=$ac_cv_path_install
2942 else
2943 # As a last resort, use the slow shell script. Don't cache a
2944 # value for INSTALL within a source directory, because that will
2945 # break other packages using the cache if that directory is
2946 # removed, or if the value is a relative name.
2947 INSTALL=$ac_install_sh
2948 fi
2949 fi
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2951 printf "%s\n" "$INSTALL" >&6; }
2952
2953 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2954 # It thinks the first close brace ends the variable substitution.
2955 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2956
2957 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2958
2959 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2960
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2962 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2963 if test ${am_cv_sleep_fractional_seconds+y}
2964 then :
2965 printf %s "(cached) " >&6
2966 else case e in #(
2967 e) if sleep 0.001 2>/dev/null
2968 then :
2969 am_cv_sleep_fractional_seconds=yes
2970 else case e in #(
2971 e) am_cv_sleep_fractional_seconds=no ;;
2972 esac
2973 fi
2974 ;;
2975 esac
2976 fi
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2978 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2979
2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2981 printf %s "checking filesystem timestamp resolution... " >&6; }
2982 if test ${am_cv_filesystem_timestamp_resolution+y}
2983 then :
2984 printf %s "(cached) " >&6
2985 else case e in #(
2986 e) # Default to the worst case.
2987 am_cv_filesystem_timestamp_resolution=2
2988
2989 # Only try to go finer than 1 sec if sleep can do it.
2990 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2991 # - 1 sec is not much of a win compared to 2 sec, and
2992 # - it takes 2 seconds to perform the test whether 1 sec works.
2993 #
2994 # Instead, just use the default 2s on platforms that have 1s resolution,
2995 # accept the extra 1s delay when using $sleep in the Automake tests, in
2996 # exchange for not incurring the 2s delay for running the test for all
2997 # packages.
2998 #
2999 am_try_resolutions=
3000 if test "$am_cv_sleep_fractional_seconds" = yes; then
3001 # Even a millisecond often causes a bunch of false positives,
3002 # so just try a hundredth of a second. The time saved between .001 and
3003 # .01 is not terribly consequential.
3004 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3005 fi
3006
3007 # In order to catch current-generation FAT out, we must *modify* files
3008 # that already exist; the *creation* timestamp is finer. Use names
3009 # that make ls -t sort them differently when they have equal
3010 # timestamps than when they have distinct timestamps, keeping
3011 # in mind that ls -t prints the *newest* file first.
3012 rm -f conftest.ts?
3013 : > conftest.ts1
3014 : > conftest.ts2
3015 : > conftest.ts3
3016
3017 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3018 # clobber the current shell's arguments. (Outer-level square brackets
3019 # are removed by m4; they're present so that m4 does not expand
3020 # <dollar><star>; be careful, easy to get confused.)
3021 if (
3022 set X `ls -t conftest.ts[12]` &&
3023 {
3024 test "$*" != "X conftest.ts1 conftest.ts2" ||
3025 test "$*" != "X conftest.ts2 conftest.ts1";
3026 }
3027 ); then :; else
3028 # If neither matched, then we have a broken ls. This can happen
3029 # if, for instance, CONFIG_SHELL is bash and it inherits a
3030 # broken ls alias from the environment. This has actually
3031 # happened. Such a system could not be considered "sane".
3032 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3034 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3035 as_fn_error $? "ls -t produces unexpected output.
3036 Make sure there is not a broken ls alias in your environment.
3037 See 'config.log' for more details" "$LINENO" 5; }
3038 fi
3039
3040 for am_try_res in $am_try_resolutions; do
3041 # Any one fine-grained sleep might happen to cross the boundary
3042 # between two values of a coarser actual resolution, but if we do
3043 # two fine-grained sleeps in a row, at least one of them will fall
3044 # entirely within a coarse interval.
3045 echo alpha > conftest.ts1
3046 sleep $am_try_res
3047 echo beta > conftest.ts2
3048 sleep $am_try_res
3049 echo gamma > conftest.ts3
3050
3051 # We assume that 'ls -t' will make use of high-resolution
3052 # timestamps if the operating system supports them at all.
3053 if (set X `ls -t conftest.ts?` &&
3054 test "$2" = conftest.ts3 &&
3055 test "$3" = conftest.ts2 &&
3056 test "$4" = conftest.ts1); then
3057 #
3058 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3059 # because we don't need to test make.
3060 make_ok=true
3061 if test $am_try_res != 1; then
3062 # But if we've succeeded so far with a subsecond resolution, we
3063 # have one more thing to check: make. It can happen that
3064 # everything else supports the subsecond mtimes, but make doesn't;
3065 # notably on macOS, which ships make 3.81 from 2006 (the last one
3066 # released under GPLv2). https://bugs.gnu.org/68808
3067 #
3068 # We test $MAKE if it is defined in the environment, else "make".
3069 # It might get overridden later, but our hope is that in practice
3070 # it does not matter: it is the system "make" which is (by far)
3071 # the most likely to be broken, whereas if the user overrides it,
3072 # probably they did so with a better, or at least not worse, make.
3073 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3074 #
3075 # Create a Makefile (real tab character here):
3076 rm -f conftest.mk
3077 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3078 echo ' touch conftest.ts2' >>conftest.mk
3079 #
3080 # Now, running
3081 # touch conftest.ts1; touch conftest.ts2; make
3082 # should touch ts1 because ts2 is newer. This could happen by luck,
3083 # but most often, it will fail if make's support is insufficient. So
3084 # test for several consecutive successes.
3085 #
3086 # (We reuse conftest.ts[12] because we still want to modify existing
3087 # files, not create new ones, per above.)
3088 n=0
3089 make=${MAKE-make}
3090 until test $n -eq 3; do
3091 echo one > conftest.ts1
3092 sleep $am_try_res
3093 echo two > conftest.ts2 # ts2 should now be newer than ts1
3094 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3095 make_ok=false
3096 break # out of $n loop
3097 fi
3098 n=`expr $n + 1`
3099 done
3100 fi
3101 #
3102 if $make_ok; then
3103 # Everything we know to check worked out, so call this resolution good.
3104 am_cv_filesystem_timestamp_resolution=$am_try_res
3105 break # out of $am_try_res loop
3106 fi
3107 # Otherwise, we'll go on to check the next resolution.
3108 fi
3109 done
3110 rm -f conftest.ts?
3111 # (end _am_filesystem_timestamp_resolution)
3112 ;;
3113 esac
3114 fi
3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3116 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3117
3118 # This check should not be cached, as it may vary across builds of
3119 # different projects.
3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3121 printf %s "checking whether build environment is sane... " >&6; }
3122 # Reject unsafe characters in $srcdir or the absolute working directory
3123 # name. Accept space and tab only in the latter.
3124 am_lf='
3125 '
3126 case `pwd` in
3127 *[\\\"\#\$\&\'\`$am_lf]*)
3128 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3129 esac
3130 case $srcdir in
3131 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3132 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3133 esac
3134
3135 # Do 'set' in a subshell so we don't clobber the current shell's
3136 # arguments. Must try -L first in case configure is actually a
3137 # symlink; some systems play weird games with the mod time of symlinks
3138 # (eg FreeBSD returns the mod time of the symlink's containing
3139 # directory).
3140 am_build_env_is_sane=no
3141 am_has_slept=no
3142 rm -f conftest.file
3143 for am_try in 1 2; do
3144 echo "timestamp, slept: $am_has_slept" > conftest.file
3145 if (
3146 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3147 if test "$*" = "X"; then
3148 # -L didn't work.
3149 set X `ls -t "$srcdir/configure" conftest.file`
3150 fi
3151 test "$2" = conftest.file
3152 ); then
3153 am_build_env_is_sane=yes
3154 break
3155 fi
3156 # Just in case.
3157 sleep "$am_cv_filesystem_timestamp_resolution"
3158 am_has_slept=yes
3159 done
3160
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3162 printf "%s\n" "$am_build_env_is_sane" >&6; }
3163 if test "$am_build_env_is_sane" = no; then
3164 as_fn_error $? "newly created file is older than distributed files!
3165 Check your system clock" "$LINENO" 5
3166 fi
3167
3168 # If we didn't sleep, we still need to ensure time stamps of config.status and
3169 # generated files are strictly newer.
3170 am_sleep_pid=
3171 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3172 then :
3173
3174 else case e in #(
3175 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3176 am_sleep_pid=$!
3177 ;;
3178 esac
3179 fi
3180
3181 rm -f conftest.file
3182
3183 test "$program_prefix" != NONE &&
3184 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3185 # Use a double $ so make ignores it.
3186 test "$program_suffix" != NONE &&
3187 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3188 # Double any \ or $.
3189 # By default was 's,x,x', remove it if useless.
3190 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3191 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3192
3193
3194 # Expand $ac_aux_dir to an absolute path.
3195 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3196
3197
3198 if test x"${MISSING+set}" != xset; then
3199 MISSING="\${SHELL} '$am_aux_dir/missing'"
3200 fi
3201 # Use eval to expand $SHELL
3202 if eval "$MISSING --is-lightweight"; then
3203 am_missing_run="$MISSING "
3204 else
3205 am_missing_run=
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3207 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3208 fi
3209
3210 if test x"${install_sh+set}" != xset; then
3211 case $am_aux_dir in
3212 *\ * | *\ *)
3213 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3214 *)
3215 install_sh="\${SHELL} $am_aux_dir/install-sh"
3216 esac
3217 fi
3218
3219 # Installed binaries are usually stripped using 'strip' when the user
3220 # run "make install-strip". However 'strip' might not be the right
3221 # tool to use in cross-compilation environments, therefore Automake
3222 # will honor the 'STRIP' environment variable to overrule this program.
3223 if test "$cross_compiling" != no; then
3224 if test -n "$ac_tool_prefix"; then
3225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3226 set dummy ${ac_tool_prefix}strip; ac_word=$2
3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 printf %s "checking for $ac_word... " >&6; }
3229 if test ${ac_cv_prog_STRIP+y}
3230 then :
3231 printf %s "(cached) " >&6
3232 else case e in #(
3233 e) if test -n "$STRIP"; then
3234 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239 IFS=$as_save_IFS
3240 case $as_dir in #(((
3241 '') as_dir=./ ;;
3242 */) ;;
3243 *) as_dir=$as_dir/ ;;
3244 esac
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3247 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3249 break 2
3250 fi
3251 done
3252 done
3253 IFS=$as_save_IFS
3254
3255 fi ;;
3256 esac
3257 fi
3258 STRIP=$ac_cv_prog_STRIP
3259 if test -n "$STRIP"; then
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3261 printf "%s\n" "$STRIP" >&6; }
3262 else
3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 printf "%s\n" "no" >&6; }
3265 fi
3266
3267
3268 fi
3269 if test -z "$ac_cv_prog_STRIP"; then
3270 ac_ct_STRIP=$STRIP
3271 # Extract the first word of "strip", so it can be a program name with args.
3272 set dummy strip; ac_word=$2
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 printf %s "checking for $ac_word... " >&6; }
3275 if test ${ac_cv_prog_ac_ct_STRIP+y}
3276 then :
3277 printf %s "(cached) " >&6
3278 else case e in #(
3279 e) if test -n "$ac_ct_STRIP"; then
3280 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3284 do
3285 IFS=$as_save_IFS
3286 case $as_dir in #(((
3287 '') as_dir=./ ;;
3288 */) ;;
3289 *) as_dir=$as_dir/ ;;
3290 esac
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_ac_ct_STRIP="strip"
3294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297 done
3298 done
3299 IFS=$as_save_IFS
3300
3301 fi ;;
3302 esac
3303 fi
3304 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3305 if test -n "$ac_ct_STRIP"; then
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3307 printf "%s\n" "$ac_ct_STRIP" >&6; }
3308 else
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 printf "%s\n" "no" >&6; }
3311 fi
3312
3313 if test "x$ac_ct_STRIP" = x; then
3314 STRIP=":"
3315 else
3316 case $cross_compiling:$ac_tool_warned in
3317 yes:)
3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3319 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3320 ac_tool_warned=yes ;;
3321 esac
3322 STRIP=$ac_ct_STRIP
3323 fi
3324 else
3325 STRIP="$ac_cv_prog_STRIP"
3326 fi
3327
3328 fi
3329 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3330
3331
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3333 printf %s "checking for a race-free mkdir -p... " >&6; }
3334 if test -z "$MKDIR_P"; then
3335 if test ${ac_cv_path_mkdir+y}
3336 then :
3337 printf %s "(cached) " >&6
3338 else case e in #(
3339 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3341 do
3342 IFS=$as_save_IFS
3343 case $as_dir in #(((
3344 '') as_dir=./ ;;
3345 */) ;;
3346 *) as_dir=$as_dir/ ;;
3347 esac
3348 for ac_prog in mkdir gmkdir; do
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3351 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3352 'mkdir ('*'coreutils) '* | \
3353 *'BusyBox '* | \
3354 'mkdir (fileutils) '4.1*)
3355 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3356 break 3;;
3357 esac
3358 done
3359 done
3360 done
3361 IFS=$as_save_IFS
3362 ;;
3363 esac
3364 fi
3365
3366 test -d ./--version && rmdir ./--version
3367 if test ${ac_cv_path_mkdir+y}; then
3368 MKDIR_P="$ac_cv_path_mkdir -p"
3369 else
3370 # As a last resort, use plain mkdir -p,
3371 # in the hope it doesn't have the bugs of ancient mkdir.
3372 MKDIR_P='mkdir -p'
3373 fi
3374 fi
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3376 printf "%s\n" "$MKDIR_P" >&6; }
3377
3378 for ac_prog in gawk mawk nawk awk
3379 do
3380 # Extract the first word of "$ac_prog", so it can be a program name with args.
3381 set dummy $ac_prog; ac_word=$2
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 printf %s "checking for $ac_word... " >&6; }
3384 if test ${ac_cv_prog_AWK+y}
3385 then :
3386 printf %s "(cached) " >&6
3387 else case e in #(
3388 e) if test -n "$AWK"; then
3389 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3393 do
3394 IFS=$as_save_IFS
3395 case $as_dir in #(((
3396 '') as_dir=./ ;;
3397 */) ;;
3398 *) as_dir=$as_dir/ ;;
3399 esac
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_AWK="$ac_prog"
3403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3404 break 2
3405 fi
3406 done
3407 done
3408 IFS=$as_save_IFS
3409
3410 fi ;;
3411 esac
3412 fi
3413 AWK=$ac_cv_prog_AWK
3414 if test -n "$AWK"; then
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3416 printf "%s\n" "$AWK" >&6; }
3417 else
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 printf "%s\n" "no" >&6; }
3420 fi
3421
3422
3423 test -n "$AWK" && break
3424 done
3425
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3427 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3428 set x ${MAKE-make}
3429 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3430 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3431 then :
3432 printf %s "(cached) " >&6
3433 else case e in #(
3434 e) cat >conftest.make <<\_ACEOF
3435 SHELL = /bin/sh
3436 all:
3437 @echo '@@@%%%=$(MAKE)=@@@%%%'
3438 _ACEOF
3439 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3440 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3441 *@@@%%%=?*=@@@%%%*)
3442 eval ac_cv_prog_make_${ac_make}_set=yes;;
3443 *)
3444 eval ac_cv_prog_make_${ac_make}_set=no;;
3445 esac
3446 rm -f conftest.make ;;
3447 esac
3448 fi
3449 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3451 printf "%s\n" "yes" >&6; }
3452 SET_MAKE=
3453 else
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 printf "%s\n" "no" >&6; }
3456 SET_MAKE="MAKE=${MAKE-make}"
3457 fi
3458
3459 rm -rf .tst 2>/dev/null
3460 mkdir .tst 2>/dev/null
3461 if test -d .tst; then
3462 am__leading_dot=.
3463 else
3464 am__leading_dot=_
3465 fi
3466 rmdir .tst 2>/dev/null
3467
3468 AM_DEFAULT_VERBOSITY=1
3469 # Check whether --enable-silent-rules was given.
3470 if test ${enable_silent_rules+y}
3471 then :
3472 enableval=$enable_silent_rules;
3473 fi
3474
3475 am_make=${MAKE-make}
3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3477 printf %s "checking whether $am_make supports nested variables... " >&6; }
3478 if test ${am_cv_make_support_nested_variables+y}
3479 then :
3480 printf %s "(cached) " >&6
3481 else case e in #(
3482 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3483 BAR0=false
3484 BAR1=true
3485 V=1
3486 am__doit:
3487 @$(TRUE)
3488 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3489 am_cv_make_support_nested_variables=yes
3490 else
3491 am_cv_make_support_nested_variables=no
3492 fi ;;
3493 esac
3494 fi
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3496 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3497 AM_BACKSLASH='\'
3498
3499 am__rm_f_notfound=
3500 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3501 then :
3502
3503 else case e in #(
3504 e) am__rm_f_notfound='""' ;;
3505 esac
3506 fi
3507
3508
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3510 printf %s "checking xargs -n works... " >&6; }
3511 if test ${am_cv_xargs_n_works+y}
3512 then :
3513 printf %s "(cached) " >&6
3514 else case e in #(
3515 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3516 3"
3517 then :
3518 am_cv_xargs_n_works=yes
3519 else case e in #(
3520 e) am_cv_xargs_n_works=no ;;
3521 esac
3522 fi ;;
3523 esac
3524 fi
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3526 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3527 if test "$am_cv_xargs_n_works" = yes
3528 then :
3529 am__xargs_n='xargs -n'
3530 else case e in #(
3531 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3532 ;;
3533 esac
3534 fi
3535
3536 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3537 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3538 # is not polluted with repeated "-I."
3539 am__isrc=' -I$(srcdir)'
3540 # test to see if srcdir already configured
3541 if test -f $srcdir/config.status; then
3542 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3543 fi
3544 fi
3545
3546 # test whether we have cygpath
3547 if test -z "$CYGPATH_W"; then
3548 if (cygpath --version) >/dev/null 2>/dev/null; then
3549 CYGPATH_W='cygpath -w'
3550 else
3551 CYGPATH_W=echo
3552 fi
3553 fi
3554
3555
3556 # Define the identity of the package.
3557 PACKAGE='scrypt'
3558 VERSION='1.3.3'
3559
3560
3561 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3562
3563
3564 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3565
3566 # Some tools Automake needs.
3567
3568 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3569
3570
3571 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3572
3573
3574 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3575
3576
3577 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3578
3579
3580 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3581
3582 # For better backward compatibility. To be removed once Automake 1.9.x
3583 # dies out for good. For more background, see:
3584 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3585 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3586 mkdir_p='$(MKDIR_P)'
3587
3588 # We need awk for the "check" target (and possibly the TAP driver). The
3589 # system "awk" is bad on some platforms.
3590 # Always define AMTAR for backward compatibility. Yes, it's still used
3591 # in the wild :-( We should find a proper way to deprecate it ...
3592 AMTAR='$${TAR-tar}'
3593
3594
3595 # We'll loop over all known methods to create a tar archive until one works.
3596 _am_tools='gnutar pax cpio none'
3597
3598 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3599
3600
3601
3602
3603
3604 # Variables for tags utilities; see am/tags.am
3605 if test -z "$CTAGS"; then
3606 CTAGS=ctags
3607 fi
3608
3609 if test -z "$ETAGS"; then
3610 ETAGS=etags
3611 fi
3612
3613 if test -z "$CSCOPE"; then
3614 CSCOPE=cscope
3615 fi
3616
3617
3618
3619
3620
3621
3622
3623
3624 # Checks for programs.
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634 ac_ext=c
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 if test -n "$ac_tool_prefix"; then
3640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 printf %s "checking for $ac_word... " >&6; }
3644 if test ${ac_cv_prog_CC+y}
3645 then :
3646 printf %s "(cached) " >&6
3647 else case e in #(
3648 e) if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3653 do
3654 IFS=$as_save_IFS
3655 case $as_dir in #(((
3656 '') as_dir=./ ;;
3657 */) ;;
3658 *) as_dir=$as_dir/ ;;
3659 esac
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3662 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3664 break 2
3665 fi
3666 done
3667 done
3668 IFS=$as_save_IFS
3669
3670 fi ;;
3671 esac
3672 fi
3673 CC=$ac_cv_prog_CC
3674 if test -n "$CC"; then
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 printf "%s\n" "$CC" >&6; }
3677 else
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 printf "%s\n" "no" >&6; }
3680 fi
3681
3682
3683 fi
3684 if test -z "$ac_cv_prog_CC"; then
3685 ac_ct_CC=$CC
3686 # Extract the first word of "gcc", so it can be a program name with args.
3687 set dummy gcc; ac_word=$2
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 printf %s "checking for $ac_word... " >&6; }
3690 if test ${ac_cv_prog_ac_ct_CC+y}
3691 then :
3692 printf %s "(cached) " >&6
3693 else case e in #(
3694 e) if test -n "$ac_ct_CC"; then
3695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700 IFS=$as_save_IFS
3701 case $as_dir in #(((
3702 '') as_dir=./ ;;
3703 */) ;;
3704 *) as_dir=$as_dir/ ;;
3705 esac
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_ac_ct_CC="gcc"
3709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712 done
3713 done
3714 IFS=$as_save_IFS
3715
3716 fi ;;
3717 esac
3718 fi
3719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3720 if test -n "$ac_ct_CC"; then
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3722 printf "%s\n" "$ac_ct_CC" >&6; }
3723 else
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 printf "%s\n" "no" >&6; }
3726 fi
3727
3728 if test "x$ac_ct_CC" = x; then
3729 CC=""
3730 else
3731 case $cross_compiling:$ac_tool_warned in
3732 yes:)
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735 ac_tool_warned=yes ;;
3736 esac
3737 CC=$ac_ct_CC
3738 fi
3739 else
3740 CC="$ac_cv_prog_CC"
3741 fi
3742
3743 if test -z "$CC"; then
3744 if test -n "$ac_tool_prefix"; then
3745 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3746 set dummy ${ac_tool_prefix}cc; ac_word=$2
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 printf %s "checking for $ac_word... " >&6; }
3749 if test ${ac_cv_prog_CC+y}
3750 then :
3751 printf %s "(cached) " >&6
3752 else case e in #(
3753 e) if test -n "$CC"; then
3754 ac_cv_prog_CC="$CC" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759 IFS=$as_save_IFS
3760 case $as_dir in #(((
3761 '') as_dir=./ ;;
3762 */) ;;
3763 *) as_dir=$as_dir/ ;;
3764 esac
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_CC="${ac_tool_prefix}cc"
3768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3769 break 2
3770 fi
3771 done
3772 done
3773 IFS=$as_save_IFS
3774
3775 fi ;;
3776 esac
3777 fi
3778 CC=$ac_cv_prog_CC
3779 if test -n "$CC"; then
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3781 printf "%s\n" "$CC" >&6; }
3782 else
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 printf "%s\n" "no" >&6; }
3785 fi
3786
3787
3788 fi
3789 fi
3790 if test -z "$CC"; then
3791 # Extract the first word of "cc", so it can be a program name with args.
3792 set dummy cc; ac_word=$2
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794 printf %s "checking for $ac_word... " >&6; }
3795 if test ${ac_cv_prog_CC+y}
3796 then :
3797 printf %s "(cached) " >&6
3798 else case e in #(
3799 e) if test -n "$CC"; then
3800 ac_cv_prog_CC="$CC" # Let the user override the test.
3801 else
3802 ac_prog_rejected=no
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806 IFS=$as_save_IFS
3807 case $as_dir in #(((
3808 '') as_dir=./ ;;
3809 */) ;;
3810 *) as_dir=$as_dir/ ;;
3811 esac
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3814 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3815 ac_prog_rejected=yes
3816 continue
3817 fi
3818 ac_cv_prog_CC="cc"
3819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3820 break 2
3821 fi
3822 done
3823 done
3824 IFS=$as_save_IFS
3825
3826 if test $ac_prog_rejected = yes; then
3827 # We found a bogon in the path, so make sure we never use it.
3828 set dummy $ac_cv_prog_CC
3829 shift
3830 if test $# != 0; then
3831 # We chose a different compiler from the bogus one.
3832 # However, it has the same basename, so the bogon will be chosen
3833 # first if we set CC to just the basename; use the full file name.
3834 shift
3835 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3836 fi
3837 fi
3838 fi ;;
3839 esac
3840 fi
3841 CC=$ac_cv_prog_CC
3842 if test -n "$CC"; then
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3844 printf "%s\n" "$CC" >&6; }
3845 else
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847 printf "%s\n" "no" >&6; }
3848 fi
3849
3850
3851 fi
3852 if test -z "$CC"; then
3853 if test -n "$ac_tool_prefix"; then
3854 for ac_prog in cl.exe
3855 do
3856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3857 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3859 printf %s "checking for $ac_word... " >&6; }
3860 if test ${ac_cv_prog_CC+y}
3861 then :
3862 printf %s "(cached) " >&6
3863 else case e in #(
3864 e) if test -n "$CC"; then
3865 ac_cv_prog_CC="$CC" # Let the user override the test.
3866 else
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3869 do
3870 IFS=$as_save_IFS
3871 case $as_dir in #(((
3872 '') as_dir=./ ;;
3873 */) ;;
3874 *) as_dir=$as_dir/ ;;
3875 esac
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3878 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3880 break 2
3881 fi
3882 done
3883 done
3884 IFS=$as_save_IFS
3885
3886 fi ;;
3887 esac
3888 fi
3889 CC=$ac_cv_prog_CC
3890 if test -n "$CC"; then
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3892 printf "%s\n" "$CC" >&6; }
3893 else
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 printf "%s\n" "no" >&6; }
3896 fi
3897
3898
3899 test -n "$CC" && break
3900 done
3901 fi
3902 if test -z "$CC"; then
3903 ac_ct_CC=$CC
3904 for ac_prog in cl.exe
3905 do
3906 # Extract the first word of "$ac_prog", so it can be a program name with args.
3907 set dummy $ac_prog; ac_word=$2
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 printf %s "checking for $ac_word... " >&6; }
3910 if test ${ac_cv_prog_ac_ct_CC+y}
3911 then :
3912 printf %s "(cached) " >&6
3913 else case e in #(
3914 e) if test -n "$ac_ct_CC"; then
3915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920 IFS=$as_save_IFS
3921 case $as_dir in #(((
3922 '') as_dir=./ ;;
3923 */) ;;
3924 *) as_dir=$as_dir/ ;;
3925 esac
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_ac_ct_CC="$ac_prog"
3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932 done
3933 done
3934 IFS=$as_save_IFS
3935
3936 fi ;;
3937 esac
3938 fi
3939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3940 if test -n "$ac_ct_CC"; then
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3942 printf "%s\n" "$ac_ct_CC" >&6; }
3943 else
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 printf "%s\n" "no" >&6; }
3946 fi
3947
3948
3949 test -n "$ac_ct_CC" && break
3950 done
3951
3952 if test "x$ac_ct_CC" = x; then
3953 CC=""
3954 else
3955 case $cross_compiling:$ac_tool_warned in
3956 yes:)
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3958 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3959 ac_tool_warned=yes ;;
3960 esac
3961 CC=$ac_ct_CC
3962 fi
3963 fi
3964
3965 fi
3966 if test -z "$CC"; then
3967 if test -n "$ac_tool_prefix"; then
3968 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3969 set dummy ${ac_tool_prefix}clang; ac_word=$2
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971 printf %s "checking for $ac_word... " >&6; }
3972 if test ${ac_cv_prog_CC+y}
3973 then :
3974 printf %s "(cached) " >&6
3975 else case e in #(
3976 e) if test -n "$CC"; then
3977 ac_cv_prog_CC="$CC" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982 IFS=$as_save_IFS
3983 case $as_dir in #(((
3984 '') as_dir=./ ;;
3985 */) ;;
3986 *) as_dir=$as_dir/ ;;
3987 esac
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3990 ac_cv_prog_CC="${ac_tool_prefix}clang"
3991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3992 break 2
3993 fi
3994 done
3995 done
3996 IFS=$as_save_IFS
3997
3998 fi ;;
3999 esac
4000 fi
4001 CC=$ac_cv_prog_CC
4002 if test -n "$CC"; then
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4004 printf "%s\n" "$CC" >&6; }
4005 else
4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 printf "%s\n" "no" >&6; }
4008 fi
4009
4010
4011 fi
4012 if test -z "$ac_cv_prog_CC"; then
4013 ac_ct_CC=$CC
4014 # Extract the first word of "clang", so it can be a program name with args.
4015 set dummy clang; ac_word=$2
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 printf %s "checking for $ac_word... " >&6; }
4018 if test ${ac_cv_prog_ac_ct_CC+y}
4019 then :
4020 printf %s "(cached) " >&6
4021 else case e in #(
4022 e) if test -n "$ac_ct_CC"; then
4023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4024 else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028 IFS=$as_save_IFS
4029 case $as_dir in #(((
4030 '') as_dir=./ ;;
4031 */) ;;
4032 *) as_dir=$as_dir/ ;;
4033 esac
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4036 ac_cv_prog_ac_ct_CC="clang"
4037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4038 break 2
4039 fi
4040 done
4041 done
4042 IFS=$as_save_IFS
4043
4044 fi ;;
4045 esac
4046 fi
4047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4048 if test -n "$ac_ct_CC"; then
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4050 printf "%s\n" "$ac_ct_CC" >&6; }
4051 else
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 printf "%s\n" "no" >&6; }
4054 fi
4055
4056 if test "x$ac_ct_CC" = x; then
4057 CC=""
4058 else
4059 case $cross_compiling:$ac_tool_warned in
4060 yes:)
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4062 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4063 ac_tool_warned=yes ;;
4064 esac
4065 CC=$ac_ct_CC
4066 fi
4067 else
4068 CC="$ac_cv_prog_CC"
4069 fi
4070
4071 fi
4072
4073
4074 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4075 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4076 as_fn_error $? "no acceptable C compiler found in \$PATH
4077 See 'config.log' for more details" "$LINENO" 5; }
4078
4079 # Provide some information about the compiler.
4080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4081 set X $ac_compile
4082 ac_compiler=$2
4083 for ac_option in --version -v -V -qversion -version; do
4084 { { ac_try="$ac_compiler $ac_option >&5"
4085 case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088 esac
4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 printf "%s\n" "$ac_try_echo"; } >&5
4091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4092 ac_status=$?
4093 if test -s conftest.err; then
4094 sed '10a\
4095 ... rest of stderr output deleted ...
4096 10q' conftest.err >conftest.er1
4097 cat conftest.er1 >&5
4098 fi
4099 rm -f conftest.er1 conftest.err
4100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }
4102 done
4103
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106
4107 int
4108 main (void)
4109 {
4110
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 ac_clean_files_save=$ac_clean_files
4116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4117 # Try to create an executable without -o first, disregard a.out.
4118 # It will help us diagnose broken compilers, and finding out an intuition
4119 # of exeext.
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4121 printf %s "checking whether the C compiler works... " >&6; }
4122 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4123
4124 # The possible output files:
4125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4126
4127 ac_rmfiles=
4128 for ac_file in $ac_files
4129 do
4130 case $ac_file in
4131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4133 esac
4134 done
4135 rm -f $ac_rmfiles
4136
4137 if { { ac_try="$ac_link_default"
4138 case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141 esac
4142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143 printf "%s\n" "$ac_try_echo"; } >&5
4144 (eval "$ac_link_default") 2>&5
4145 ac_status=$?
4146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147 test $ac_status = 0; }
4148 then :
4149 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4150 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4151 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4152 # so that the user can short-circuit this test for compilers unknown to
4153 # Autoconf.
4154 for ac_file in $ac_files ''
4155 do
4156 test -f "$ac_file" || continue
4157 case $ac_file in
4158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4159 ;;
4160 [ab].out )
4161 # We found the default executable, but exeext='' is most
4162 # certainly right.
4163 break;;
4164 *.* )
4165 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4166 then :; else
4167 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4168 fi
4169 # We set ac_cv_exeext here because the later test for it is not
4170 # safe: cross compilers may not add the suffix if given an '-o'
4171 # argument, so we may need to know it at that point already.
4172 # Even if this section looks crufty: it has the advantage of
4173 # actually working.
4174 break;;
4175 * )
4176 break;;
4177 esac
4178 done
4179 test "$ac_cv_exeext" = no && ac_cv_exeext=
4180
4181 else case e in #(
4182 e) ac_file='' ;;
4183 esac
4184 fi
4185 if test -z "$ac_file"
4186 then :
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 printf "%s\n" "no" >&6; }
4189 printf "%s\n" "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4191
4192 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4193 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4194 as_fn_error 77 "C compiler cannot create executables
4195 See 'config.log' for more details" "$LINENO" 5; }
4196 else case e in #(
4197 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4198 printf "%s\n" "yes" >&6; } ;;
4199 esac
4200 fi
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4202 printf %s "checking for C compiler default output file name... " >&6; }
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4204 printf "%s\n" "$ac_file" >&6; }
4205 ac_exeext=$ac_cv_exeext
4206
4207 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4208 ac_clean_files=$ac_clean_files_save
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4210 printf %s "checking for suffix of executables... " >&6; }
4211 if { { ac_try="$ac_link"
4212 case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215 esac
4216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4217 printf "%s\n" "$ac_try_echo"; } >&5
4218 (eval "$ac_link") 2>&5
4219 ac_status=$?
4220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221 test $ac_status = 0; }
4222 then :
4223 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4224 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4225 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4226 # 'rm'.
4227 for ac_file in conftest.exe conftest conftest.*; do
4228 test -f "$ac_file" || continue
4229 case $ac_file in
4230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4232 break;;
4233 * ) break;;
4234 esac
4235 done
4236 else case e in #(
4237 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4238 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4239 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4240 See 'config.log' for more details" "$LINENO" 5; } ;;
4241 esac
4242 fi
4243 rm -f conftest conftest$ac_cv_exeext
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4245 printf "%s\n" "$ac_cv_exeext" >&6; }
4246
4247 rm -f conftest.$ac_ext
4248 EXEEXT=$ac_cv_exeext
4249 ac_exeext=$EXEEXT
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 #include <stdio.h>
4253 int
4254 main (void)
4255 {
4256 FILE *f = fopen ("conftest.out", "w");
4257 if (!f)
4258 return 1;
4259 return ferror (f) || fclose (f) != 0;
4260
4261 ;
4262 return 0;
4263 }
4264 _ACEOF
4265 ac_clean_files="$ac_clean_files conftest.out"
4266 # Check that the compiler produces executables we can run. If not, either
4267 # the compiler is broken, or we cross compile.
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4269 printf %s "checking whether we are cross compiling... " >&6; }
4270 if test "$cross_compiling" != yes; then
4271 { { ac_try="$ac_link"
4272 case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275 esac
4276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4277 printf "%s\n" "$ac_try_echo"; } >&5
4278 (eval "$ac_link") 2>&5
4279 ac_status=$?
4280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4281 test $ac_status = 0; }
4282 if { ac_try='./conftest$ac_cv_exeext'
4283 { { case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286 esac
4287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4288 printf "%s\n" "$ac_try_echo"; } >&5
4289 (eval "$ac_try") 2>&5
4290 ac_status=$?
4291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4292 test $ac_status = 0; }; }; then
4293 cross_compiling=no
4294 else
4295 if test "$cross_compiling" = maybe; then
4296 cross_compiling=yes
4297 else
4298 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4299 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4300 as_fn_error 77 "cannot run C compiled programs.
4301 If you meant to cross compile, use '--host'.
4302 See 'config.log' for more details" "$LINENO" 5; }
4303 fi
4304 fi
4305 fi
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4307 printf "%s\n" "$cross_compiling" >&6; }
4308
4309 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4310 conftest.o conftest.obj conftest.out
4311 ac_clean_files=$ac_clean_files_save
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4313 printf %s "checking for suffix of object files... " >&6; }
4314 if test ${ac_cv_objext+y}
4315 then :
4316 printf %s "(cached) " >&6
4317 else case e in #(
4318 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4320
4321 int
4322 main (void)
4323 {
4324
4325 ;
4326 return 0;
4327 }
4328 _ACEOF
4329 rm -f conftest.o conftest.obj
4330 if { { ac_try="$ac_compile"
4331 case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 printf "%s\n" "$ac_try_echo"; } >&5
4337 (eval "$ac_compile") 2>&5
4338 ac_status=$?
4339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4340 test $ac_status = 0; }
4341 then :
4342 for ac_file in conftest.o conftest.obj conftest.*; do
4343 test -f "$ac_file" || continue;
4344 case $ac_file in
4345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4347 break;;
4348 esac
4349 done
4350 else case e in #(
4351 e) printf "%s\n" "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4353
4354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4355 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4356 as_fn_error $? "cannot compute suffix of object files: cannot compile
4357 See 'config.log' for more details" "$LINENO" 5; } ;;
4358 esac
4359 fi
4360 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4361 esac
4362 fi
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4364 printf "%s\n" "$ac_cv_objext" >&6; }
4365 OBJEXT=$ac_cv_objext
4366 ac_objext=$OBJEXT
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4368 printf %s "checking whether the compiler supports GNU C... " >&6; }
4369 if test ${ac_cv_c_compiler_gnu+y}
4370 then :
4371 printf %s "(cached) " >&6
4372 else case e in #(
4373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375
4376 int
4377 main (void)
4378 {
4379 #ifndef __GNUC__
4380 choke me
4381 #endif
4382
4383 ;
4384 return 0;
4385 }
4386 _ACEOF
4387 if ac_fn_c_try_compile "$LINENO"
4388 then :
4389 ac_compiler_gnu=yes
4390 else case e in #(
4391 e) ac_compiler_gnu=no ;;
4392 esac
4393 fi
4394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4395 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4396 ;;
4397 esac
4398 fi
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4400 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402
4403 if test $ac_compiler_gnu = yes; then
4404 GCC=yes
4405 else
4406 GCC=
4407 fi
4408 ac_test_CFLAGS=${CFLAGS+y}
4409 ac_save_CFLAGS=$CFLAGS
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4411 printf %s "checking whether $CC accepts -g... " >&6; }
4412 if test ${ac_cv_prog_cc_g+y}
4413 then :
4414 printf %s "(cached) " >&6
4415 else case e in #(
4416 e) ac_save_c_werror_flag=$ac_c_werror_flag
4417 ac_c_werror_flag=yes
4418 ac_cv_prog_cc_g=no
4419 CFLAGS="-g"
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4422
4423 int
4424 main (void)
4425 {
4426
4427 ;
4428 return 0;
4429 }
4430 _ACEOF
4431 if ac_fn_c_try_compile "$LINENO"
4432 then :
4433 ac_cv_prog_cc_g=yes
4434 else case e in #(
4435 e) CFLAGS=""
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438
4439 int
4440 main (void)
4441 {
4442
4443 ;
4444 return 0;
4445 }
4446 _ACEOF
4447 if ac_fn_c_try_compile "$LINENO"
4448 then :
4449
4450 else case e in #(
4451 e) ac_c_werror_flag=$ac_save_c_werror_flag
4452 CFLAGS="-g"
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4455
4456 int
4457 main (void)
4458 {
4459
4460 ;
4461 return 0;
4462 }
4463 _ACEOF
4464 if ac_fn_c_try_compile "$LINENO"
4465 then :
4466 ac_cv_prog_cc_g=yes
4467 fi
4468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4469 esac
4470 fi
4471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4472 esac
4473 fi
4474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4475 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4476 esac
4477 fi
4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4479 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4480 if test $ac_test_CFLAGS; then
4481 CFLAGS=$ac_save_CFLAGS
4482 elif test $ac_cv_prog_cc_g = yes; then
4483 if test "$GCC" = yes; then
4484 CFLAGS="-g -O2"
4485 else
4486 CFLAGS="-g"
4487 fi
4488 else
4489 if test "$GCC" = yes; then
4490 CFLAGS="-O2"
4491 else
4492 CFLAGS=
4493 fi
4494 fi
4495 ac_prog_cc_stdc=no
4496 if test x$ac_prog_cc_stdc = xno
4497 then :
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4499 printf %s "checking for $CC option to enable C11 features... " >&6; }
4500 if test ${ac_cv_prog_cc_c11+y}
4501 then :
4502 printf %s "(cached) " >&6
4503 else case e in #(
4504 e) ac_cv_prog_cc_c11=no
4505 ac_save_CC=$CC
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508 $ac_c_conftest_c11_program
4509 _ACEOF
4510 for ac_arg in '' -std=gnu11
4511 do
4512 CC="$ac_save_CC $ac_arg"
4513 if ac_fn_c_try_compile "$LINENO"
4514 then :
4515 ac_cv_prog_cc_c11=$ac_arg
4516 fi
4517 rm -f core conftest.err conftest.$ac_objext conftest.beam
4518 test "x$ac_cv_prog_cc_c11" != "xno" && break
4519 done
4520 rm -f conftest.$ac_ext
4521 CC=$ac_save_CC ;;
4522 esac
4523 fi
4524
4525 if test "x$ac_cv_prog_cc_c11" = xno
4526 then :
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4528 printf "%s\n" "unsupported" >&6; }
4529 else case e in #(
4530 e) if test "x$ac_cv_prog_cc_c11" = x
4531 then :
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4533 printf "%s\n" "none needed" >&6; }
4534 else case e in #(
4535 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4536 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4537 CC="$CC $ac_cv_prog_cc_c11" ;;
4538 esac
4539 fi
4540 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4541 ac_prog_cc_stdc=c11 ;;
4542 esac
4543 fi
4544 fi
4545 if test x$ac_prog_cc_stdc = xno
4546 then :
4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4548 printf %s "checking for $CC option to enable C99 features... " >&6; }
4549 if test ${ac_cv_prog_cc_c99+y}
4550 then :
4551 printf %s "(cached) " >&6
4552 else case e in #(
4553 e) ac_cv_prog_cc_c99=no
4554 ac_save_CC=$CC
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557 $ac_c_conftest_c99_program
4558 _ACEOF
4559 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4560 do
4561 CC="$ac_save_CC $ac_arg"
4562 if ac_fn_c_try_compile "$LINENO"
4563 then :
4564 ac_cv_prog_cc_c99=$ac_arg
4565 fi
4566 rm -f core conftest.err conftest.$ac_objext conftest.beam
4567 test "x$ac_cv_prog_cc_c99" != "xno" && break
4568 done
4569 rm -f conftest.$ac_ext
4570 CC=$ac_save_CC ;;
4571 esac
4572 fi
4573
4574 if test "x$ac_cv_prog_cc_c99" = xno
4575 then :
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4577 printf "%s\n" "unsupported" >&6; }
4578 else case e in #(
4579 e) if test "x$ac_cv_prog_cc_c99" = x
4580 then :
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4582 printf "%s\n" "none needed" >&6; }
4583 else case e in #(
4584 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4585 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4586 CC="$CC $ac_cv_prog_cc_c99" ;;
4587 esac
4588 fi
4589 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4590 ac_prog_cc_stdc=c99 ;;
4591 esac
4592 fi
4593 fi
4594 if test x$ac_prog_cc_stdc = xno
4595 then :
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4597 printf %s "checking for $CC option to enable C89 features... " >&6; }
4598 if test ${ac_cv_prog_cc_c89+y}
4599 then :
4600 printf %s "(cached) " >&6
4601 else case e in #(
4602 e) ac_cv_prog_cc_c89=no
4603 ac_save_CC=$CC
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606 $ac_c_conftest_c89_program
4607 _ACEOF
4608 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4609 do
4610 CC="$ac_save_CC $ac_arg"
4611 if ac_fn_c_try_compile "$LINENO"
4612 then :
4613 ac_cv_prog_cc_c89=$ac_arg
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.beam
4616 test "x$ac_cv_prog_cc_c89" != "xno" && break
4617 done
4618 rm -f conftest.$ac_ext
4619 CC=$ac_save_CC ;;
4620 esac
4621 fi
4622
4623 if test "x$ac_cv_prog_cc_c89" = xno
4624 then :
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4626 printf "%s\n" "unsupported" >&6; }
4627 else case e in #(
4628 e) if test "x$ac_cv_prog_cc_c89" = x
4629 then :
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4631 printf "%s\n" "none needed" >&6; }
4632 else case e in #(
4633 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4634 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4635 CC="$CC $ac_cv_prog_cc_c89" ;;
4636 esac
4637 fi
4638 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4639 ac_prog_cc_stdc=c89 ;;
4640 esac
4641 fi
4642 fi
4643
4644 ac_ext=c
4645 ac_cpp='$CPP $CPPFLAGS'
4646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649
4650
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4657 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4658 if test ${am_cv_prog_cc_c_o+y}
4659 then :
4660 printf %s "(cached) " >&6
4661 else case e in #(
4662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664
4665 int
4666 main (void)
4667 {
4668
4669 ;
4670 return 0;
4671 }
4672 _ACEOF
4673 # Make sure it works both with $CC and with simple cc.
4674 # Following AC_PROG_CC_C_O, we do the test twice because some
4675 # compilers refuse to overwrite an existing .o file with -o,
4676 # though they will create one.
4677 am_cv_prog_cc_c_o=yes
4678 for am_i in 1 2; do
4679 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4680 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } \
4684 && test -f conftest2.$ac_objext; then
4685 : OK
4686 else
4687 am_cv_prog_cc_c_o=no
4688 break
4689 fi
4690 done
4691 rm -f core conftest*
4692 unset am_i ;;
4693 esac
4694 fi
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4696 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4697 if test "$am_cv_prog_cc_c_o" != yes; then
4698 # Losing compiler, so override with the script.
4699 # FIXME: It is wrong to rewrite CC.
4700 # But if we don't then we get into trouble of one sort or another.
4701 # A longer-term fix would be to have automake use am__CC in this case,
4702 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4703 CC="$am_aux_dir/compile $CC"
4704 fi
4705 ac_ext=c
4706 ac_cpp='$CPP $CPPFLAGS'
4707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4710
4711 DEPDIR="${am__leading_dot}deps"
4712
4713 ac_config_commands="$ac_config_commands depfiles"
4714
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4716 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4717 cat > confinc.mk << 'END'
4718 am__doit:
4719 @echo this is the am__doit target >confinc.out
4720 .PHONY: am__doit
4721 END
4722 am__include="#"
4723 am__quote=
4724 # BSD make does it like this.
4725 echo '.include "confinc.mk" # ignored' > confmf.BSD
4726 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4727 echo 'include confinc.mk # ignored' > confmf.GNU
4728 _am_result=no
4729 for s in GNU BSD; do
4730 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4731 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }
4735 case $?:`cat confinc.out 2>/dev/null` in #(
4736 '0:this is the am__doit target') :
4737 case $s in #(
4738 BSD) :
4739 am__include='.include' am__quote='"' ;; #(
4740 *) :
4741 am__include='include' am__quote='' ;;
4742 esac ;; #(
4743 *) :
4744 ;;
4745 esac
4746 if test "$am__include" != "#"; then
4747 _am_result="yes ($s style)"
4748 break
4749 fi
4750 done
4751 rm -f confinc.* confmf.*
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4753 printf "%s\n" "${_am_result}" >&6; }
4754
4755 # Check whether --enable-dependency-tracking was given.
4756 if test ${enable_dependency_tracking+y}
4757 then :
4758 enableval=$enable_dependency_tracking;
4759 fi
4760
4761 if test "x$enable_dependency_tracking" != xno; then
4762 am_depcomp="$ac_aux_dir/depcomp"
4763 AMDEPBACKSLASH='\'
4764 am__nodep='_no'
4765 fi
4766 if test "x$enable_dependency_tracking" != xno; then
4767 AMDEP_TRUE=
4768 AMDEP_FALSE='#'
4769 else
4770 AMDEP_TRUE='#'
4771 AMDEP_FALSE=
4772 fi
4773
4774
4775
4776 depcc="$CC" am_compiler_list=
4777
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4779 printf %s "checking dependency style of $depcc... " >&6; }
4780 if test ${am_cv_CC_dependencies_compiler_type+y}
4781 then :
4782 printf %s "(cached) " >&6
4783 else case e in #(
4784 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4785 # We make a subdir and do the tests there. Otherwise we can end up
4786 # making bogus files that we don't know about and never remove. For
4787 # instance it was reported that on HP-UX the gcc test will end up
4788 # making a dummy file named 'D' -- because '-MD' means "put the output
4789 # in D".
4790 rm -rf conftest.dir
4791 mkdir conftest.dir
4792 # Copy depcomp to subdir because otherwise we won't find it if we're
4793 # using a relative directory.
4794 cp "$am_depcomp" conftest.dir
4795 cd conftest.dir
4796 # We will build objects and dependencies in a subdirectory because
4797 # it helps to detect inapplicable dependency modes. For instance
4798 # both Tru64's cc and ICC support -MD to output dependencies as a
4799 # side effect of compilation, but ICC will put the dependencies in
4800 # the current directory while Tru64 will put them in the object
4801 # directory.
4802 mkdir sub
4803
4804 am_cv_CC_dependencies_compiler_type=none
4805 if test "$am_compiler_list" = ""; then
4806 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4807 fi
4808 am__universal=false
4809 case " $depcc " in #(
4810 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4811 esac
4812
4813 for depmode in $am_compiler_list; do
4814 # Setup a source with many dependencies, because some compilers
4815 # like to wrap large dependency lists on column 80 (with \), and
4816 # we should not choose a depcomp mode which is confused by this.
4817 #
4818 # We need to recreate these files for each test, as the compiler may
4819 # overwrite some of them when testing with obscure command lines.
4820 # This happens at least with the AIX C compiler.
4821 : > sub/conftest.c
4822 for i in 1 2 3 4 5 6; do
4823 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4824 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4825 # Solaris 10 /bin/sh.
4826 echo '/* dummy */' > sub/conftst$i.h
4827 done
4828 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4829
4830 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4831 # mode. It turns out that the SunPro C++ compiler does not properly
4832 # handle '-M -o', and we need to detect this. Also, some Intel
4833 # versions had trouble with output in subdirs.
4834 am__obj=sub/conftest.${OBJEXT-o}
4835 am__minus_obj="-o $am__obj"
4836 case $depmode in
4837 gcc)
4838 # This depmode causes a compiler race in universal mode.
4839 test "$am__universal" = false || continue
4840 ;;
4841 nosideeffect)
4842 # After this tag, mechanisms are not by side-effect, so they'll
4843 # only be used when explicitly requested.
4844 if test "x$enable_dependency_tracking" = xyes; then
4845 continue
4846 else
4847 break
4848 fi
4849 ;;
4850 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4851 # This compiler won't grok '-c -o', but also, the minuso test has
4852 # not run yet. These depmodes are late enough in the game, and
4853 # so weak that their functioning should not be impacted.
4854 am__obj=conftest.${OBJEXT-o}
4855 am__minus_obj=
4856 ;;
4857 none) break ;;
4858 esac
4859 if depmode=$depmode \
4860 source=sub/conftest.c object=$am__obj \
4861 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4862 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4863 >/dev/null 2>conftest.err &&
4864 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4865 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4866 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4867 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4868 # icc doesn't choke on unknown options, it will just issue warnings
4869 # or remarks (even with -Werror). So we grep stderr for any message
4870 # that says an option was ignored or not supported.
4871 # When given -MP, icc 7.0 and 7.1 complain thus:
4872 # icc: Command line warning: ignoring option '-M'; no argument required
4873 # The diagnosis changed in icc 8.0:
4874 # icc: Command line remark: option '-MP' not supported
4875 if (grep 'ignoring option' conftest.err ||
4876 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4877 am_cv_CC_dependencies_compiler_type=$depmode
4878 break
4879 fi
4880 fi
4881 done
4882
4883 cd ..
4884 rm -rf conftest.dir
4885 else
4886 am_cv_CC_dependencies_compiler_type=none
4887 fi
4888 ;;
4889 esac
4890 fi
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4892 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4893 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4894
4895 if
4896 test "x$enable_dependency_tracking" != xno \
4897 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4898 am__fastdepCC_TRUE=
4899 am__fastdepCC_FALSE='#'
4900 else
4901 am__fastdepCC_TRUE='#'
4902 am__fastdepCC_FALSE=
4903 fi
4904
4905
4906
4907
4908 if test -n "$ac_tool_prefix"; then
4909 for ac_prog in ar lib "link -lib"
4910 do
4911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 printf %s "checking for $ac_word... " >&6; }
4915 if test ${ac_cv_prog_AR+y}
4916 then :
4917 printf %s "(cached) " >&6
4918 else case e in #(
4919 e) if test -n "$AR"; then
4920 ac_cv_prog_AR="$AR" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925 IFS=$as_save_IFS
4926 case $as_dir in #(((
4927 '') as_dir=./ ;;
4928 */) ;;
4929 *) as_dir=$as_dir/ ;;
4930 esac
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4933 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4935 break 2
4936 fi
4937 done
4938 done
4939 IFS=$as_save_IFS
4940
4941 fi ;;
4942 esac
4943 fi
4944 AR=$ac_cv_prog_AR
4945 if test -n "$AR"; then
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4947 printf "%s\n" "$AR" >&6; }
4948 else
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 printf "%s\n" "no" >&6; }
4951 fi
4952
4953
4954 test -n "$AR" && break
4955 done
4956 fi
4957 if test -z "$AR"; then
4958 ac_ct_AR=$AR
4959 for ac_prog in ar lib "link -lib"
4960 do
4961 # Extract the first word of "$ac_prog", so it can be a program name with args.
4962 set dummy $ac_prog; ac_word=$2
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 printf %s "checking for $ac_word... " >&6; }
4965 if test ${ac_cv_prog_ac_ct_AR+y}
4966 then :
4967 printf %s "(cached) " >&6
4968 else case e in #(
4969 e) if test -n "$ac_ct_AR"; then
4970 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975 IFS=$as_save_IFS
4976 case $as_dir in #(((
4977 '') as_dir=./ ;;
4978 */) ;;
4979 *) as_dir=$as_dir/ ;;
4980 esac
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_ac_ct_AR="$ac_prog"
4984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 fi ;;
4992 esac
4993 fi
4994 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4995 if test -n "$ac_ct_AR"; then
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4997 printf "%s\n" "$ac_ct_AR" >&6; }
4998 else
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 printf "%s\n" "no" >&6; }
5001 fi
5002
5003
5004 test -n "$ac_ct_AR" && break
5005 done
5006
5007 if test "x$ac_ct_AR" = x; then
5008 AR="false"
5009 else
5010 case $cross_compiling:$ac_tool_warned in
5011 yes:)
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014 ac_tool_warned=yes ;;
5015 esac
5016 AR=$ac_ct_AR
5017 fi
5018 fi
5019
5020 : ${AR=ar}
5021 : ${ARFLAGS=cr}
5022
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5024 printf %s "checking the archiver ($AR) interface... " >&6; }
5025 if test ${am_cv_ar_interface+y}
5026 then :
5027 printf %s "(cached) " >&6
5028 else case e in #(
5029 e) ac_ext=c
5030 ac_cpp='$CPP $CPPFLAGS'
5031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034
5035 am_cv_ar_interface=ar
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5038 int some_variable = 0;
5039 _ACEOF
5040 if ac_fn_c_try_compile "$LINENO"
5041 then :
5042 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
5043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5044 (eval $am_ar_try) 2>&5
5045 ac_status=$?
5046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5047 test $ac_status = 0; }
5048 if test "$ac_status" -eq 0; then
5049 am_cv_ar_interface=ar
5050 else
5051 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5053 (eval $am_ar_try) 2>&5
5054 ac_status=$?
5055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5056 test $ac_status = 0; }
5057 if test "$ac_status" -eq 0; then
5058 am_cv_ar_interface=lib
5059 else
5060 am_cv_ar_interface=unknown
5061 fi
5062 fi
5063 rm -f conftest.lib libconftest.a
5064
5065 fi
5066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5067 ac_ext=c
5068 ac_cpp='$CPP $CPPFLAGS'
5069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072 ;;
5073 esac
5074 fi
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5076 printf "%s\n" "$am_cv_ar_interface" >&6; }
5077
5078 case $am_cv_ar_interface in
5079 ar)
5080 ;;
5081 lib)
5082 # Microsoft lib, so override with the ar-lib wrapper script.
5083 # FIXME: It is wrong to rewrite AR.
5084 # But if we don't then we get into trouble of one sort or another.
5085 # A longer-term fix would be to have automake use am__AR in this case,
5086 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5087 # similar.
5088 AR="$am_aux_dir/ar-lib $AR"
5089 ;;
5090 unknown)
5091 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5092 ;;
5093 esac
5094
5095 case `pwd` in
5096 *\ * | *\ *)
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5098 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5099 esac
5100
5101
5102
5103 macro_version='2.5.4'
5104 macro_revision='2.5.4'
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119 ltmain=$ac_aux_dir/ltmain.sh
5120
5121 # Backslashify metacharacters that are still active within
5122 # double-quoted strings.
5123 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5124
5125 # Same as above, but do not quote variable references.
5126 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5127
5128 # Sed substitution to delay expansion of an escaped shell variable in a
5129 # double_quote_subst'ed string.
5130 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5131
5132 # Sed substitution to delay expansion of an escaped single quote.
5133 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5134
5135 # Sed substitution to avoid accidental globbing in evaled expressions
5136 no_glob_subst='s/\*/\\\*/g'
5137
5138 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5139 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5140 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5141
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5143 printf %s "checking how to print strings... " >&6; }
5144 # Test print first, because it will be a builtin if present.
5145 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5146 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5147 ECHO='print -r --'
5148 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5149 ECHO='printf %s\n'
5150 else
5151 # Use this function as a fallback that always works.
5152 func_fallback_echo ()
5153 {
5154 eval 'cat <<_LTECHO_EOF
5155 $1
5156 _LTECHO_EOF'
5157 }
5158 ECHO='func_fallback_echo'
5159 fi
5160
5161 # func_echo_all arg...
5162 # Invoke $ECHO with all args, space-separated.
5163 func_echo_all ()
5164 {
5165 $ECHO ""
5166 }
5167
5168 case $ECHO in
5169 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5170 printf "%s\n" "printf" >&6; } ;;
5171 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5172 printf "%s\n" "print -r" >&6; } ;;
5173 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5174 printf "%s\n" "cat" >&6; } ;;
5175 esac
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5191 printf %s "checking for a sed that does not truncate output... " >&6; }
5192 if test ${ac_cv_path_SED+y}
5193 then :
5194 printf %s "(cached) " >&6
5195 else case e in #(
5196 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5197 for ac_i in 1 2 3 4 5 6 7; do
5198 ac_script="$ac_script$as_nl$ac_script"
5199 done
5200 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5201 { ac_script=; unset ac_script;}
5202 if test -z "$SED"; then
5203 ac_path_SED_found=false
5204 # Loop through the user's path and test for each of PROGNAME-LIST
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208 IFS=$as_save_IFS
5209 case $as_dir in #(((
5210 '') as_dir=./ ;;
5211 */) ;;
5212 *) as_dir=$as_dir/ ;;
5213 esac
5214 for ac_prog in sed gsed
5215 do
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5218 as_fn_executable_p "$ac_path_SED" || continue
5219 # Check for GNU ac_path_SED and select it if it is found.
5220 # Check for GNU $ac_path_SED
5221 case `"$ac_path_SED" --version 2>&1` in #(
5222 *GNU*)
5223 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5224 #(
5225 *)
5226 ac_count=0
5227 printf %s 0123456789 >"conftest.in"
5228 while :
5229 do
5230 cat "conftest.in" "conftest.in" >"conftest.tmp"
5231 mv "conftest.tmp" "conftest.in"
5232 cp "conftest.in" "conftest.nl"
5233 printf "%s\n" '' >> "conftest.nl"
5234 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5236 as_fn_arith $ac_count + 1 && ac_count=$as_val
5237 if test $ac_count -gt ${ac_path_SED_max-0}; then
5238 # Best one so far, save it but keep looking for a better one
5239 ac_cv_path_SED="$ac_path_SED"
5240 ac_path_SED_max=$ac_count
5241 fi
5242 # 10*(2^10) chars as input seems more than enough
5243 test $ac_count -gt 10 && break
5244 done
5245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5246 esac
5247
5248 $ac_path_SED_found && break 3
5249 done
5250 done
5251 done
5252 IFS=$as_save_IFS
5253 if test -z "$ac_cv_path_SED"; then
5254 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5255 fi
5256 else
5257 ac_cv_path_SED=$SED
5258 fi
5259 ;;
5260 esac
5261 fi
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5263 printf "%s\n" "$ac_cv_path_SED" >&6; }
5264 SED="$ac_cv_path_SED"
5265 rm -f conftest.sed
5266
5267 test -z "$SED" && SED=sed
5268 Xsed="$SED -e 1s/^X//"
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5281 printf %s "checking for grep that handles long lines and -e... " >&6; }
5282 if test ${ac_cv_path_GREP+y}
5283 then :
5284 printf %s "(cached) " >&6
5285 else case e in #(
5286 e) if test -z "$GREP"; then
5287 ac_path_GREP_found=false
5288 # Loop through the user's path and test for each of PROGNAME-LIST
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5291 do
5292 IFS=$as_save_IFS
5293 case $as_dir in #(((
5294 '') as_dir=./ ;;
5295 */) ;;
5296 *) as_dir=$as_dir/ ;;
5297 esac
5298 for ac_prog in grep ggrep
5299 do
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5302 as_fn_executable_p "$ac_path_GREP" || continue
5303 # Check for GNU ac_path_GREP and select it if it is found.
5304 # Check for GNU $ac_path_GREP
5305 case `"$ac_path_GREP" --version 2>&1` in #(
5306 *GNU*)
5307 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5308 #(
5309 *)
5310 ac_count=0
5311 printf %s 0123456789 >"conftest.in"
5312 while :
5313 do
5314 cat "conftest.in" "conftest.in" >"conftest.tmp"
5315 mv "conftest.tmp" "conftest.in"
5316 cp "conftest.in" "conftest.nl"
5317 printf "%s\n" 'GREP' >> "conftest.nl"
5318 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5320 as_fn_arith $ac_count + 1 && ac_count=$as_val
5321 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5322 # Best one so far, save it but keep looking for a better one
5323 ac_cv_path_GREP="$ac_path_GREP"
5324 ac_path_GREP_max=$ac_count
5325 fi
5326 # 10*(2^10) chars as input seems more than enough
5327 test $ac_count -gt 10 && break
5328 done
5329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5330 esac
5331
5332 $ac_path_GREP_found && break 3
5333 done
5334 done
5335 done
5336 IFS=$as_save_IFS
5337 if test -z "$ac_cv_path_GREP"; then
5338 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5339 fi
5340 else
5341 ac_cv_path_GREP=$GREP
5342 fi
5343 ;;
5344 esac
5345 fi
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5347 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5348 GREP="$ac_cv_path_GREP"
5349
5350
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5352 printf %s "checking for egrep... " >&6; }
5353 if test ${ac_cv_path_EGREP+y}
5354 then :
5355 printf %s "(cached) " >&6
5356 else case e in #(
5357 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5358 then ac_cv_path_EGREP="$GREP -E"
5359 else
5360 if test -z "$EGREP"; then
5361 ac_path_EGREP_found=false
5362 # Loop through the user's path and test for each of PROGNAME-LIST
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5365 do
5366 IFS=$as_save_IFS
5367 case $as_dir in #(((
5368 '') as_dir=./ ;;
5369 */) ;;
5370 *) as_dir=$as_dir/ ;;
5371 esac
5372 for ac_prog in egrep
5373 do
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5376 as_fn_executable_p "$ac_path_EGREP" || continue
5377 # Check for GNU ac_path_EGREP and select it if it is found.
5378 # Check for GNU $ac_path_EGREP
5379 case `"$ac_path_EGREP" --version 2>&1` in #(
5380 *GNU*)
5381 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5382 #(
5383 *)
5384 ac_count=0
5385 printf %s 0123456789 >"conftest.in"
5386 while :
5387 do
5388 cat "conftest.in" "conftest.in" >"conftest.tmp"
5389 mv "conftest.tmp" "conftest.in"
5390 cp "conftest.in" "conftest.nl"
5391 printf "%s\n" 'EGREP' >> "conftest.nl"
5392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5394 as_fn_arith $ac_count + 1 && ac_count=$as_val
5395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5396 # Best one so far, save it but keep looking for a better one
5397 ac_cv_path_EGREP="$ac_path_EGREP"
5398 ac_path_EGREP_max=$ac_count
5399 fi
5400 # 10*(2^10) chars as input seems more than enough
5401 test $ac_count -gt 10 && break
5402 done
5403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5404 esac
5405
5406 $ac_path_EGREP_found && break 3
5407 done
5408 done
5409 done
5410 IFS=$as_save_IFS
5411 if test -z "$ac_cv_path_EGREP"; then
5412 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5413 fi
5414 else
5415 ac_cv_path_EGREP=$EGREP
5416 fi
5417
5418 fi ;;
5419 esac
5420 fi
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5422 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5423 EGREP="$ac_cv_path_EGREP"
5424
5425 EGREP_TRADITIONAL=$EGREP
5426 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5427
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5429 printf %s "checking for fgrep... " >&6; }
5430 if test ${ac_cv_path_FGREP+y}
5431 then :
5432 printf %s "(cached) " >&6
5433 else case e in #(
5434 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5435 then ac_cv_path_FGREP="$GREP -F"
5436 else
5437 if test -z "$FGREP"; then
5438 ac_path_FGREP_found=false
5439 # Loop through the user's path and test for each of PROGNAME-LIST
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5442 do
5443 IFS=$as_save_IFS
5444 case $as_dir in #(((
5445 '') as_dir=./ ;;
5446 */) ;;
5447 *) as_dir=$as_dir/ ;;
5448 esac
5449 for ac_prog in fgrep
5450 do
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5453 as_fn_executable_p "$ac_path_FGREP" || continue
5454 # Check for GNU ac_path_FGREP and select it if it is found.
5455 # Check for GNU $ac_path_FGREP
5456 case `"$ac_path_FGREP" --version 2>&1` in #(
5457 *GNU*)
5458 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5459 #(
5460 *)
5461 ac_count=0
5462 printf %s 0123456789 >"conftest.in"
5463 while :
5464 do
5465 cat "conftest.in" "conftest.in" >"conftest.tmp"
5466 mv "conftest.tmp" "conftest.in"
5467 cp "conftest.in" "conftest.nl"
5468 printf "%s\n" 'FGREP' >> "conftest.nl"
5469 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5471 as_fn_arith $ac_count + 1 && ac_count=$as_val
5472 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5473 # Best one so far, save it but keep looking for a better one
5474 ac_cv_path_FGREP="$ac_path_FGREP"
5475 ac_path_FGREP_max=$ac_count
5476 fi
5477 # 10*(2^10) chars as input seems more than enough
5478 test $ac_count -gt 10 && break
5479 done
5480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5481 esac
5482
5483 $ac_path_FGREP_found && break 3
5484 done
5485 done
5486 done
5487 IFS=$as_save_IFS
5488 if test -z "$ac_cv_path_FGREP"; then
5489 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5490 fi
5491 else
5492 ac_cv_path_FGREP=$FGREP
5493 fi
5494
5495 fi ;;
5496 esac
5497 fi
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5499 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5500 FGREP="$ac_cv_path_FGREP"
5501
5502
5503 test -z "$GREP" && GREP=grep
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523 # Check whether --with-gnu-ld was given.
5524 if test ${with_gnu_ld+y}
5525 then :
5526 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5527 else case e in #(
5528 e) with_gnu_ld=no ;;
5529 esac
5530 fi
5531
5532 ac_prog=ld
5533 if test yes = "$GCC"; then
5534 # Check if gcc -print-prog-name=ld gives a path.
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5536 printf %s "checking for ld used by $CC... " >&6; }
5537 case $host in
5538 *-*-mingw* | *-*-windows*)
5539 # gcc leaves a trailing carriage return, which upsets mingw
5540 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5541 *)
5542 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5543 esac
5544 case $ac_prog in
5545 # Accept absolute paths.
5546 [\\/]* | ?:[\\/]*)
5547 re_direlt='/[^/][^/]*/\.\./'
5548 # Canonicalize the pathname of ld
5549 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5550 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5551 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5552 done
5553 test -z "$LD" && LD=$ac_prog
5554 ;;
5555 "")
5556 # If it fails, then pretend we aren't using GCC.
5557 ac_prog=ld
5558 ;;
5559 *)
5560 # If it is relative, then search for the first ld in PATH.
5561 with_gnu_ld=unknown
5562 ;;
5563 esac
5564 elif test yes = "$with_gnu_ld"; then
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5566 printf %s "checking for GNU ld... " >&6; }
5567 else
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5569 printf %s "checking for non-GNU ld... " >&6; }
5570 fi
5571 if test ${lt_cv_path_LD+y}
5572 then :
5573 printf %s "(cached) " >&6
5574 else case e in #(
5575 e) if test -z "$LD"; then
5576 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5577 for ac_dir in $PATH; do
5578 IFS=$lt_save_ifs
5579 test -z "$ac_dir" && ac_dir=.
5580 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5581 lt_cv_path_LD=$ac_dir/$ac_prog
5582 # Check to see if the program is GNU ld. I'd rather use --version,
5583 # but apparently some variants of GNU ld only accept -v.
5584 # Break only if it was the GNU/non-GNU ld that we prefer.
5585 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5586 *GNU* | *'with BFD'*)
5587 test no != "$with_gnu_ld" && break
5588 ;;
5589 *)
5590 test yes != "$with_gnu_ld" && break
5591 ;;
5592 esac
5593 fi
5594 done
5595 IFS=$lt_save_ifs
5596 else
5597 lt_cv_path_LD=$LD # Let the user override the test with a path.
5598 fi ;;
5599 esac
5600 fi
5601
5602 LD=$lt_cv_path_LD
5603 if test -n "$LD"; then
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5605 printf "%s\n" "$LD" >&6; }
5606 else
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 printf "%s\n" "no" >&6; }
5609 fi
5610 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5612 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5613 if test ${lt_cv_prog_gnu_ld+y}
5614 then :
5615 printf %s "(cached) " >&6
5616 else case e in #(
5617 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5618 case `$LD -v 2>&1 </dev/null` in
5619 *GNU* | *'with BFD'*)
5620 lt_cv_prog_gnu_ld=yes
5621 ;;
5622 *)
5623 lt_cv_prog_gnu_ld=no
5624 ;;
5625 esac ;;
5626 esac
5627 fi
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5629 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5630 with_gnu_ld=$lt_cv_prog_gnu_ld
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5641 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5642 if test ${lt_cv_path_NM+y}
5643 then :
5644 printf %s "(cached) " >&6
5645 else case e in #(
5646 e) if test -n "$NM"; then
5647 # Let the user override the test.
5648 lt_cv_path_NM=$NM
5649 else
5650 lt_nm_to_check=${ac_tool_prefix}nm
5651 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5652 lt_nm_to_check="$lt_nm_to_check nm"
5653 fi
5654 for lt_tmp_nm in $lt_nm_to_check; do
5655 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5656 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5657 IFS=$lt_save_ifs
5658 test -z "$ac_dir" && ac_dir=.
5659 tmp_nm=$ac_dir/$lt_tmp_nm
5660 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5661 # Check to see if the nm accepts a BSD-compat flag.
5662 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5663 # nm: unknown option "B" ignored
5664 # Tru64's nm complains that /dev/null is an invalid object file
5665 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5666 case $build_os in
5667 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5668 *) lt_bad_file=/dev/null ;;
5669 esac
5670 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5671 *$lt_bad_file* | *'Invalid file or object type'*)
5672 lt_cv_path_NM="$tmp_nm -B"
5673 break 2
5674 ;;
5675 *)
5676 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5677 */dev/null*)
5678 lt_cv_path_NM="$tmp_nm -p"
5679 break 2
5680 ;;
5681 *)
5682 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5683 continue # so that we can try to find one that supports BSD flags
5684 ;;
5685 esac
5686 ;;
5687 esac
5688 fi
5689 done
5690 IFS=$lt_save_ifs
5691 done
5692 : ${lt_cv_path_NM=no}
5693 fi ;;
5694 esac
5695 fi
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5697 printf "%s\n" "$lt_cv_path_NM" >&6; }
5698 if test no != "$lt_cv_path_NM"; then
5699 NM=$lt_cv_path_NM
5700 else
5701 # Didn't find any BSD compatible name lister, look for dumpbin.
5702 if test -n "$DUMPBIN"; then :
5703 # Let the user override the test.
5704 else
5705 if test -n "$ac_tool_prefix"; then
5706 for ac_prog in dumpbin "link -dump"
5707 do
5708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 printf %s "checking for $ac_word... " >&6; }
5712 if test ${ac_cv_prog_DUMPBIN+y}
5713 then :
5714 printf %s "(cached) " >&6
5715 else case e in #(
5716 e) if test -n "$DUMPBIN"; then
5717 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722 IFS=$as_save_IFS
5723 case $as_dir in #(((
5724 '') as_dir=./ ;;
5725 */) ;;
5726 *) as_dir=$as_dir/ ;;
5727 esac
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5730 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5732 break 2
5733 fi
5734 done
5735 done
5736 IFS=$as_save_IFS
5737
5738 fi ;;
5739 esac
5740 fi
5741 DUMPBIN=$ac_cv_prog_DUMPBIN
5742 if test -n "$DUMPBIN"; then
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5744 printf "%s\n" "$DUMPBIN" >&6; }
5745 else
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 printf "%s\n" "no" >&6; }
5748 fi
5749
5750
5751 test -n "$DUMPBIN" && break
5752 done
5753 fi
5754 if test -z "$DUMPBIN"; then
5755 ac_ct_DUMPBIN=$DUMPBIN
5756 for ac_prog in dumpbin "link -dump"
5757 do
5758 # Extract the first word of "$ac_prog", so it can be a program name with args.
5759 set dummy $ac_prog; ac_word=$2
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 printf %s "checking for $ac_word... " >&6; }
5762 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5763 then :
5764 printf %s "(cached) " >&6
5765 else case e in #(
5766 e) if test -n "$ac_ct_DUMPBIN"; then
5767 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772 IFS=$as_save_IFS
5773 case $as_dir in #(((
5774 '') as_dir=./ ;;
5775 */) ;;
5776 *) as_dir=$as_dir/ ;;
5777 esac
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5780 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5782 break 2
5783 fi
5784 done
5785 done
5786 IFS=$as_save_IFS
5787
5788 fi ;;
5789 esac
5790 fi
5791 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5792 if test -n "$ac_ct_DUMPBIN"; then
5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5794 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5795 else
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 printf "%s\n" "no" >&6; }
5798 fi
5799
5800
5801 test -n "$ac_ct_DUMPBIN" && break
5802 done
5803
5804 if test "x$ac_ct_DUMPBIN" = x; then
5805 DUMPBIN=":"
5806 else
5807 case $cross_compiling:$ac_tool_warned in
5808 yes:)
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5810 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5811 ac_tool_warned=yes ;;
5812 esac
5813 DUMPBIN=$ac_ct_DUMPBIN
5814 fi
5815 fi
5816
5817 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5818 *COFF*)
5819 DUMPBIN="$DUMPBIN -symbols -headers"
5820 ;;
5821 *)
5822 DUMPBIN=:
5823 ;;
5824 esac
5825 fi
5826
5827 if test : != "$DUMPBIN"; then
5828 NM=$DUMPBIN
5829 fi
5830 fi
5831 test -z "$NM" && NM=nm
5832
5833
5834
5835
5836
5837
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5839 printf %s "checking the name lister ($NM) interface... " >&6; }
5840 if test ${lt_cv_nm_interface+y}
5841 then :
5842 printf %s "(cached) " >&6
5843 else case e in #(
5844 e) lt_cv_nm_interface="BSD nm"
5845 echo "int some_variable = 0;" > conftest.$ac_ext
5846 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5847 (eval "$ac_compile" 2>conftest.err)
5848 cat conftest.err >&5
5849 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5850 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5851 cat conftest.err >&5
5852 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5853 cat conftest.out >&5
5854 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5855 lt_cv_nm_interface="MS dumpbin"
5856 fi
5857 rm -f conftest* ;;
5858 esac
5859 fi
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5861 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5862
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5864 printf %s "checking whether ln -s works... " >&6; }
5865 LN_S=$as_ln_s
5866 if test "$LN_S" = "ln -s"; then
5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5868 printf "%s\n" "yes" >&6; }
5869 else
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5871 printf "%s\n" "no, using $LN_S" >&6; }
5872 fi
5873
5874 # find the maximum length of command line arguments
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5876 printf %s "checking the maximum length of command line arguments... " >&6; }
5877 if test ${lt_cv_sys_max_cmd_len+y}
5878 then :
5879 printf %s "(cached) " >&6
5880 else case e in #(
5881 e) i=0
5882 teststring=ABCD
5883
5884 case $build_os in
5885 msdosdjgpp*)
5886 # On DJGPP, this test can blow up pretty badly due to problems in libc
5887 # (any single argument exceeding 2000 bytes causes a buffer overrun
5888 # during glob expansion). Even if it were fixed, the result of this
5889 # check would be larger than it should be.
5890 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5891 ;;
5892
5893 gnu* | ironclad*)
5894 # Under GNU Hurd and Ironclad, this test is not required because there
5895 # is no limit to the length of command line arguments.
5896 # Libtool will interpret -1 as no limit whatsoever
5897 lt_cv_sys_max_cmd_len=-1;
5898 ;;
5899
5900 cygwin* | mingw* | windows* | cegcc*)
5901 # On Win9x/ME, this test blows up -- it succeeds, but takes
5902 # about 5 minutes as the teststring grows exponentially.
5903 # Worse, since 9x/ME are not pre-emptively multitasking,
5904 # you end up with a "frozen" computer, even though with patience
5905 # the test eventually succeeds (with a max line length of 256k).
5906 # Instead, let's just punt: use the minimum linelength reported by
5907 # all of the supported platforms: 8192 (on NT/2K/XP).
5908 lt_cv_sys_max_cmd_len=8192;
5909 ;;
5910
5911 mint*)
5912 # On MiNT this can take a long time and run out of memory.
5913 lt_cv_sys_max_cmd_len=8192;
5914 ;;
5915
5916 amigaos*)
5917 # On AmigaOS with pdksh, this test takes hours, literally.
5918 # So we just punt and use a minimum line length of 8192.
5919 lt_cv_sys_max_cmd_len=8192;
5920 ;;
5921
5922 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5923 # This has been around since 386BSD, at least. Likely further.
5924 if test -x /sbin/sysctl; then
5925 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5926 elif test -x /usr/sbin/sysctl; then
5927 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5928 else
5929 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5930 fi
5931 # And add a safety zone
5932 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5934 ;;
5935
5936 interix*)
5937 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5938 lt_cv_sys_max_cmd_len=196608
5939 ;;
5940
5941 os2*)
5942 # The test takes a long time on OS/2.
5943 lt_cv_sys_max_cmd_len=8192
5944 ;;
5945
5946 osf*)
5947 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5948 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5949 # nice to cause kernel panics so lets avoid the loop below.
5950 # First set a reasonable default.
5951 lt_cv_sys_max_cmd_len=16384
5952 #
5953 if test -x /sbin/sysconfig; then
5954 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5955 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5956 esac
5957 fi
5958 ;;
5959 sco3.2v5*)
5960 lt_cv_sys_max_cmd_len=102400
5961 ;;
5962 sysv5* | sco5v6* | sysv4.2uw2*)
5963 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5964 if test -n "$kargmax"; then
5965 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5966 else
5967 lt_cv_sys_max_cmd_len=32768
5968 fi
5969 ;;
5970 *)
5971 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5972 if test -n "$lt_cv_sys_max_cmd_len" && \
5973 test undefined != "$lt_cv_sys_max_cmd_len"; then
5974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5976 else
5977 # Make teststring a little bigger before we do anything with it.
5978 # a 1K string should be a reasonable start.
5979 for i in 1 2 3 4 5 6 7 8; do
5980 teststring=$teststring$teststring
5981 done
5982 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5983 # If test is not a shell built-in, we'll probably end up computing a
5984 # maximum length that is only half of the actual maximum length, but
5985 # we can't tell.
5986 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5987 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5988 test 17 != "$i" # 1/2 MB should be enough
5989 do
5990 i=`expr $i + 1`
5991 teststring=$teststring$teststring
5992 done
5993 # Only check the string length outside the loop.
5994 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5995 teststring=
5996 # Add a significant safety factor because C++ compilers can tack on
5997 # massive amounts of additional arguments before passing them to the
5998 # linker. It appears as though 1/2 is a usable value.
5999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6000 fi
6001 ;;
6002 esac
6003 ;;
6004 esac
6005 fi
6006
6007 if test -n "$lt_cv_sys_max_cmd_len"; then
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6009 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6010 else
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6012 printf "%s\n" "none" >&6; }
6013 fi
6014 max_cmd_len=$lt_cv_sys_max_cmd_len
6015
6016
6017
6018
6019
6020
6021 : ${CP="cp -f"}
6022 : ${MV="mv -f"}
6023 : ${RM="rm -f"}
6024
6025 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6026 lt_unset=unset
6027 else
6028 lt_unset=false
6029 fi
6030
6031
6032
6033
6034
6035 # test EBCDIC or ASCII
6036 case `echo X|tr X '\101'` in
6037 A) # ASCII based system
6038 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6039 lt_SP2NL='tr \040 \012'
6040 lt_NL2SP='tr \015\012 \040\040'
6041 ;;
6042 *) # EBCDIC based system
6043 lt_SP2NL='tr \100 \n'
6044 lt_NL2SP='tr \r\n \100\100'
6045 ;;
6046 esac
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6057 printf %s "checking how to convert $build file names to $host format... " >&6; }
6058 if test ${lt_cv_to_host_file_cmd+y}
6059 then :
6060 printf %s "(cached) " >&6
6061 else case e in #(
6062 e) case $host in
6063 *-*-mingw* )
6064 case $build in
6065 *-*-mingw* | *-*-windows* ) # actually msys
6066 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6067 ;;
6068 *-*-cygwin* )
6069 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6070 ;;
6071 * ) # otherwise, assume *nix
6072 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6073 ;;
6074 esac
6075 ;;
6076 *-*-cygwin* )
6077 case $build in
6078 *-*-mingw* | *-*-windows* ) # actually msys
6079 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6080 ;;
6081 *-*-cygwin* )
6082 lt_cv_to_host_file_cmd=func_convert_file_noop
6083 ;;
6084 * ) # otherwise, assume *nix
6085 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6086 ;;
6087 esac
6088 ;;
6089 * ) # unhandled hosts (and "normal" native builds)
6090 lt_cv_to_host_file_cmd=func_convert_file_noop
6091 ;;
6092 esac
6093 ;;
6094 esac
6095 fi
6096
6097 to_host_file_cmd=$lt_cv_to_host_file_cmd
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6099 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6100
6101
6102
6103
6104
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6106 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6107 if test ${lt_cv_to_tool_file_cmd+y}
6108 then :
6109 printf %s "(cached) " >&6
6110 else case e in #(
6111 e) #assume ordinary cross tools, or native build.
6112 lt_cv_to_tool_file_cmd=func_convert_file_noop
6113 case $host in
6114 *-*-mingw* | *-*-windows* )
6115 case $build in
6116 *-*-mingw* | *-*-windows* ) # actually msys
6117 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6118 ;;
6119 esac
6120 ;;
6121 esac
6122 ;;
6123 esac
6124 fi
6125
6126 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6128 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6129
6130
6131
6132
6133
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6135 printf %s "checking for $LD option to reload object files... " >&6; }
6136 if test ${lt_cv_ld_reload_flag+y}
6137 then :
6138 printf %s "(cached) " >&6
6139 else case e in #(
6140 e) lt_cv_ld_reload_flag='-r' ;;
6141 esac
6142 fi
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6144 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6145 reload_flag=$lt_cv_ld_reload_flag
6146 case $reload_flag in
6147 "" | " "*) ;;
6148 *) reload_flag=" $reload_flag" ;;
6149 esac
6150 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6151 case $host_os in
6152 cygwin* | mingw* | windows* | pw32* | cegcc*)
6153 if test yes != "$GCC"; then
6154 reload_cmds=false
6155 fi
6156 ;;
6157 darwin*)
6158 if test yes = "$GCC"; then
6159 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6160 else
6161 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6162 fi
6163 ;;
6164 esac
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174 # Extract the first word of "file", so it can be a program name with args.
6175 set dummy file; ac_word=$2
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 printf %s "checking for $ac_word... " >&6; }
6178 if test ${ac_cv_prog_FILECMD+y}
6179 then :
6180 printf %s "(cached) " >&6
6181 else case e in #(
6182 e) if test -n "$FILECMD"; then
6183 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188 IFS=$as_save_IFS
6189 case $as_dir in #(((
6190 '') as_dir=./ ;;
6191 */) ;;
6192 *) as_dir=$as_dir/ ;;
6193 esac
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_FILECMD="file"
6197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6205 fi ;;
6206 esac
6207 fi
6208 FILECMD=$ac_cv_prog_FILECMD
6209 if test -n "$FILECMD"; then
6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6211 printf "%s\n" "$FILECMD" >&6; }
6212 else
6213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 printf "%s\n" "no" >&6; }
6215 fi
6216
6217
6218
6219
6220
6221
6222
6223
6224 if test -n "$ac_tool_prefix"; then
6225 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6226 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 printf %s "checking for $ac_word... " >&6; }
6229 if test ${ac_cv_prog_OBJDUMP+y}
6230 then :
6231 printf %s "(cached) " >&6
6232 else case e in #(
6233 e) if test -n "$OBJDUMP"; then
6234 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239 IFS=$as_save_IFS
6240 case $as_dir in #(((
6241 '') as_dir=./ ;;
6242 */) ;;
6243 *) as_dir=$as_dir/ ;;
6244 esac
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6247 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6249 break 2
6250 fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255 fi ;;
6256 esac
6257 fi
6258 OBJDUMP=$ac_cv_prog_OBJDUMP
6259 if test -n "$OBJDUMP"; then
6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6261 printf "%s\n" "$OBJDUMP" >&6; }
6262 else
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 printf "%s\n" "no" >&6; }
6265 fi
6266
6267
6268 fi
6269 if test -z "$ac_cv_prog_OBJDUMP"; then
6270 ac_ct_OBJDUMP=$OBJDUMP
6271 # Extract the first word of "objdump", so it can be a program name with args.
6272 set dummy objdump; ac_word=$2
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274 printf %s "checking for $ac_word... " >&6; }
6275 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6276 then :
6277 printf %s "(cached) " >&6
6278 else case e in #(
6279 e) if test -n "$ac_ct_OBJDUMP"; then
6280 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285 IFS=$as_save_IFS
6286 case $as_dir in #(((
6287 '') as_dir=./ ;;
6288 */) ;;
6289 *) as_dir=$as_dir/ ;;
6290 esac
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6293 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6295 break 2
6296 fi
6297 done
6298 done
6299 IFS=$as_save_IFS
6300
6301 fi ;;
6302 esac
6303 fi
6304 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6305 if test -n "$ac_ct_OBJDUMP"; then
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6307 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6308 else
6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 printf "%s\n" "no" >&6; }
6311 fi
6312
6313 if test "x$ac_ct_OBJDUMP" = x; then
6314 OBJDUMP="false"
6315 else
6316 case $cross_compiling:$ac_tool_warned in
6317 yes:)
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320 ac_tool_warned=yes ;;
6321 esac
6322 OBJDUMP=$ac_ct_OBJDUMP
6323 fi
6324 else
6325 OBJDUMP="$ac_cv_prog_OBJDUMP"
6326 fi
6327
6328 test -z "$OBJDUMP" && OBJDUMP=objdump
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6339 printf %s "checking how to recognize dependent libraries... " >&6; }
6340 if test ${lt_cv_deplibs_check_method+y}
6341 then :
6342 printf %s "(cached) " >&6
6343 else case e in #(
6344 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6345 lt_cv_file_magic_test_file=
6346 lt_cv_deplibs_check_method='unknown'
6347 # Need to set the preceding variable on all platforms that support
6348 # interlibrary dependencies.
6349 # 'none' -- dependencies not supported.
6350 # 'unknown' -- same as none, but documents that we really don't know.
6351 # 'pass_all' -- all dependencies passed with no checks.
6352 # 'file_magic [[regex]]' -- check by looking for files in library path
6353 # that responds to the $file_magic_cmd with a given extended regex.
6354 # If you have 'file' or equivalent on your system and you're not sure
6355 # whether 'pass_all' will *always* work, you probably want this one.
6356
6357 case $host_os in
6358 aix[4-9]*)
6359 lt_cv_deplibs_check_method=pass_all
6360 ;;
6361
6362 beos*)
6363 lt_cv_deplibs_check_method=pass_all
6364 ;;
6365
6366 bsdi[45]*)
6367 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6368 lt_cv_file_magic_cmd='$FILECMD -L'
6369 lt_cv_file_magic_test_file=/shlib/libc.so
6370 ;;
6371
6372 cygwin*)
6373 # func_win32_libid is a shell function defined in ltmain.sh
6374 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6375 lt_cv_file_magic_cmd='func_win32_libid'
6376 ;;
6377
6378 mingw* | windows* | pw32*)
6379 # Base MSYS/MinGW do not provide the 'file' command needed by
6380 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6381 # unless we find 'file', for example because we are cross-compiling.
6382 if ( file / ) >/dev/null 2>&1; then
6383 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6384 lt_cv_file_magic_cmd='func_win32_libid'
6385 else
6386 # Keep this pattern in sync with the one in func_win32_libid.
6387 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6388 lt_cv_file_magic_cmd='$OBJDUMP -f'
6389 fi
6390 ;;
6391
6392 cegcc*)
6393 # use the weaker test based on 'objdump'. See mingw*.
6394 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6395 lt_cv_file_magic_cmd='$OBJDUMP -f'
6396 ;;
6397
6398 darwin* | rhapsody*)
6399 lt_cv_deplibs_check_method=pass_all
6400 ;;
6401
6402 freebsd* | dragonfly* | midnightbsd*)
6403 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6404 case $host_cpu in
6405 i*86 )
6406 # Not sure whether the presence of OpenBSD here was a mistake.
6407 # Let's accept both of them until this is cleared up.
6408 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6409 lt_cv_file_magic_cmd=$FILECMD
6410 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6411 ;;
6412 esac
6413 else
6414 lt_cv_deplibs_check_method=pass_all
6415 fi
6416 ;;
6417
6418 haiku*)
6419 lt_cv_deplibs_check_method=pass_all
6420 ;;
6421
6422 hpux10.20* | hpux11*)
6423 lt_cv_file_magic_cmd=$FILECMD
6424 case $host_cpu in
6425 ia64*)
6426 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6427 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6428 ;;
6429 hppa*64*)
6430 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]'
6431 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6432 ;;
6433 *)
6434 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6435 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6436 ;;
6437 esac
6438 ;;
6439
6440 interix[3-9]*)
6441 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6443 ;;
6444
6445 irix5* | irix6* | nonstopux*)
6446 case $LD in
6447 *-32|*"-32 ") libmagic=32-bit;;
6448 *-n32|*"-n32 ") libmagic=N32;;
6449 *-64|*"-64 ") libmagic=64-bit;;
6450 *) libmagic=never-match;;
6451 esac
6452 lt_cv_deplibs_check_method=pass_all
6453 ;;
6454
6455 # This must be glibc/ELF.
6456 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6457 lt_cv_deplibs_check_method=pass_all
6458 ;;
6459
6460 *-mlibc)
6461 lt_cv_deplibs_check_method=pass_all
6462 ;;
6463
6464 netbsd* | netbsdelf*-gnu)
6465 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6467 else
6468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6469 fi
6470 ;;
6471
6472 newos6*)
6473 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6474 lt_cv_file_magic_cmd=$FILECMD
6475 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6476 ;;
6477
6478 *nto* | *qnx*)
6479 lt_cv_deplibs_check_method=pass_all
6480 ;;
6481
6482 openbsd*)
6483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6485 else
6486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6487 fi
6488 ;;
6489
6490 osf3* | osf4* | osf5*)
6491 lt_cv_deplibs_check_method=pass_all
6492 ;;
6493
6494 rdos*)
6495 lt_cv_deplibs_check_method=pass_all
6496 ;;
6497
6498 serenity*)
6499 lt_cv_deplibs_check_method=pass_all
6500 ;;
6501
6502 solaris*)
6503 lt_cv_deplibs_check_method=pass_all
6504 ;;
6505
6506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6507 lt_cv_deplibs_check_method=pass_all
6508 ;;
6509
6510 sysv4 | sysv4.3*)
6511 case $host_vendor in
6512 motorola)
6513 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]'
6514 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6515 ;;
6516 ncr)
6517 lt_cv_deplibs_check_method=pass_all
6518 ;;
6519 sequent)
6520 lt_cv_file_magic_cmd='/bin/file'
6521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6522 ;;
6523 sni)
6524 lt_cv_file_magic_cmd='/bin/file'
6525 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6526 lt_cv_file_magic_test_file=/lib/libc.so
6527 ;;
6528 siemens)
6529 lt_cv_deplibs_check_method=pass_all
6530 ;;
6531 pc)
6532 lt_cv_deplibs_check_method=pass_all
6533 ;;
6534 esac
6535 ;;
6536
6537 tpf*)
6538 lt_cv_deplibs_check_method=pass_all
6539 ;;
6540 os2*)
6541 lt_cv_deplibs_check_method=pass_all
6542 ;;
6543 esac
6544 ;;
6545 esac
6546 fi
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6548 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6549
6550 file_magic_glob=
6551 want_nocaseglob=no
6552 if test "$build" = "$host"; then
6553 case $host_os in
6554 mingw* | windows* | pw32*)
6555 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6556 want_nocaseglob=yes
6557 else
6558 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6559 fi
6560 ;;
6561 esac
6562 fi
6563
6564 file_magic_cmd=$lt_cv_file_magic_cmd
6565 deplibs_check_method=$lt_cv_deplibs_check_method
6566 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589 if test -n "$ac_tool_prefix"; then
6590 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6591 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 printf %s "checking for $ac_word... " >&6; }
6594 if test ${ac_cv_prog_DLLTOOL+y}
6595 then :
6596 printf %s "(cached) " >&6
6597 else case e in #(
6598 e) if test -n "$DLLTOOL"; then
6599 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6603 do
6604 IFS=$as_save_IFS
6605 case $as_dir in #(((
6606 '') as_dir=./ ;;
6607 */) ;;
6608 *) as_dir=$as_dir/ ;;
6609 esac
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6612 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi ;;
6621 esac
6622 fi
6623 DLLTOOL=$ac_cv_prog_DLLTOOL
6624 if test -n "$DLLTOOL"; then
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6626 printf "%s\n" "$DLLTOOL" >&6; }
6627 else
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 printf "%s\n" "no" >&6; }
6630 fi
6631
6632
6633 fi
6634 if test -z "$ac_cv_prog_DLLTOOL"; then
6635 ac_ct_DLLTOOL=$DLLTOOL
6636 # Extract the first word of "dlltool", so it can be a program name with args.
6637 set dummy dlltool; ac_word=$2
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 printf %s "checking for $ac_word... " >&6; }
6640 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6641 then :
6642 printf %s "(cached) " >&6
6643 else case e in #(
6644 e) if test -n "$ac_ct_DLLTOOL"; then
6645 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650 IFS=$as_save_IFS
6651 case $as_dir in #(((
6652 '') as_dir=./ ;;
6653 */) ;;
6654 *) as_dir=$as_dir/ ;;
6655 esac
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666 fi ;;
6667 esac
6668 fi
6669 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6670 if test -n "$ac_ct_DLLTOOL"; then
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6672 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6673 else
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 printf "%s\n" "no" >&6; }
6676 fi
6677
6678 if test "x$ac_ct_DLLTOOL" = x; then
6679 DLLTOOL="false"
6680 else
6681 case $cross_compiling:$ac_tool_warned in
6682 yes:)
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6684 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6685 ac_tool_warned=yes ;;
6686 esac
6687 DLLTOOL=$ac_ct_DLLTOOL
6688 fi
6689 else
6690 DLLTOOL="$ac_cv_prog_DLLTOOL"
6691 fi
6692
6693 test -z "$DLLTOOL" && DLLTOOL=dlltool
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6705 printf %s "checking how to associate runtime and link libraries... " >&6; }
6706 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6707 then :
6708 printf %s "(cached) " >&6
6709 else case e in #(
6710 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6711
6712 case $host_os in
6713 cygwin* | mingw* | windows* | pw32* | cegcc*)
6714 # two different shell functions defined in ltmain.sh;
6715 # decide which one to use based on capabilities of $DLLTOOL
6716 case `$DLLTOOL --help 2>&1` in
6717 *--identify-strict*)
6718 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6719 ;;
6720 *)
6721 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6722 ;;
6723 esac
6724 ;;
6725 *)
6726 # fallback: assume linklib IS sharedlib
6727 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6728 ;;
6729 esac
6730 ;;
6731 esac
6732 fi
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6734 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6735 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6736 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6737
6738
6739
6740
6741
6742
6743
6744 if test -n "$ac_tool_prefix"; then
6745 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6746 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 printf %s "checking for $ac_word... " >&6; }
6749 if test ${ac_cv_prog_RANLIB+y}
6750 then :
6751 printf %s "(cached) " >&6
6752 else case e in #(
6753 e) if test -n "$RANLIB"; then
6754 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759 IFS=$as_save_IFS
6760 case $as_dir in #(((
6761 '') as_dir=./ ;;
6762 */) ;;
6763 *) as_dir=$as_dir/ ;;
6764 esac
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775 fi ;;
6776 esac
6777 fi
6778 RANLIB=$ac_cv_prog_RANLIB
6779 if test -n "$RANLIB"; then
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6781 printf "%s\n" "$RANLIB" >&6; }
6782 else
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 printf "%s\n" "no" >&6; }
6785 fi
6786
6787
6788 fi
6789 if test -z "$ac_cv_prog_RANLIB"; then
6790 ac_ct_RANLIB=$RANLIB
6791 # Extract the first word of "ranlib", so it can be a program name with args.
6792 set dummy ranlib; ac_word=$2
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 printf %s "checking for $ac_word... " >&6; }
6795 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6796 then :
6797 printf %s "(cached) " >&6
6798 else case e in #(
6799 e) if test -n "$ac_ct_RANLIB"; then
6800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805 IFS=$as_save_IFS
6806 case $as_dir in #(((
6807 '') as_dir=./ ;;
6808 */) ;;
6809 *) as_dir=$as_dir/ ;;
6810 esac
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_ac_ct_RANLIB="ranlib"
6814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi ;;
6822 esac
6823 fi
6824 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6825 if test -n "$ac_ct_RANLIB"; then
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6827 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6828 else
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 printf "%s\n" "no" >&6; }
6831 fi
6832
6833 if test "x$ac_ct_RANLIB" = x; then
6834 RANLIB=":"
6835 else
6836 case $cross_compiling:$ac_tool_warned in
6837 yes:)
6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840 ac_tool_warned=yes ;;
6841 esac
6842 RANLIB=$ac_ct_RANLIB
6843 fi
6844 else
6845 RANLIB="$ac_cv_prog_RANLIB"
6846 fi
6847
6848 if test -n "$ac_tool_prefix"; then
6849 for ac_prog in ar
6850 do
6851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 printf %s "checking for $ac_word... " >&6; }
6855 if test ${ac_cv_prog_AR+y}
6856 then :
6857 printf %s "(cached) " >&6
6858 else case e in #(
6859 e) if test -n "$AR"; then
6860 ac_cv_prog_AR="$AR" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865 IFS=$as_save_IFS
6866 case $as_dir in #(((
6867 '') as_dir=./ ;;
6868 */) ;;
6869 *) as_dir=$as_dir/ ;;
6870 esac
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6873 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881 fi ;;
6882 esac
6883 fi
6884 AR=$ac_cv_prog_AR
6885 if test -n "$AR"; then
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6887 printf "%s\n" "$AR" >&6; }
6888 else
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 printf "%s\n" "no" >&6; }
6891 fi
6892
6893
6894 test -n "$AR" && break
6895 done
6896 fi
6897 if test -z "$AR"; then
6898 ac_ct_AR=$AR
6899 for ac_prog in ar
6900 do
6901 # Extract the first word of "$ac_prog", so it can be a program name with args.
6902 set dummy $ac_prog; ac_word=$2
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 printf %s "checking for $ac_word... " >&6; }
6905 if test ${ac_cv_prog_ac_ct_AR+y}
6906 then :
6907 printf %s "(cached) " >&6
6908 else case e in #(
6909 e) if test -n "$ac_ct_AR"; then
6910 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 case $as_dir in #(((
6917 '') as_dir=./ ;;
6918 */) ;;
6919 *) as_dir=$as_dir/ ;;
6920 esac
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_ac_ct_AR="$ac_prog"
6924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931 fi ;;
6932 esac
6933 fi
6934 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6935 if test -n "$ac_ct_AR"; then
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6937 printf "%s\n" "$ac_ct_AR" >&6; }
6938 else
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 printf "%s\n" "no" >&6; }
6941 fi
6942
6943
6944 test -n "$ac_ct_AR" && break
6945 done
6946
6947 if test "x$ac_ct_AR" = x; then
6948 AR="false"
6949 else
6950 case $cross_compiling:$ac_tool_warned in
6951 yes:)
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6955 esac
6956 AR=$ac_ct_AR
6957 fi
6958 fi
6959
6960 : ${AR=ar}
6961
6962
6963
6964
6965
6966
6967 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6968 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6969 # higher priority because that's what people were doing historically (setting
6970 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6971 # variable obsoleted/removed.
6972
6973 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6974 lt_ar_flags=$AR_FLAGS
6975
6976
6977
6978
6979
6980
6981 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6982 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6983
6984
6985
6986
6987
6988
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6990 printf %s "checking for archiver @FILE support... " >&6; }
6991 if test ${lt_cv_ar_at_file+y}
6992 then :
6993 printf %s "(cached) " >&6
6994 else case e in #(
6995 e) lt_cv_ar_at_file=no
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6998
6999 int
7000 main (void)
7001 {
7002
7003 ;
7004 return 0;
7005 }
7006 _ACEOF
7007 if ac_fn_c_try_compile "$LINENO"
7008 then :
7009 echo conftest.$ac_objext > conftest.lst
7010 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7012 (eval $lt_ar_try) 2>&5
7013 ac_status=$?
7014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7015 test $ac_status = 0; }
7016 if test 0 -eq "$ac_status"; then
7017 # Ensure the archiver fails upon bogus file names.
7018 rm -f conftest.$ac_objext libconftest.a
7019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7020 (eval $lt_ar_try) 2>&5
7021 ac_status=$?
7022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7023 test $ac_status = 0; }
7024 if test 0 -ne "$ac_status"; then
7025 lt_cv_ar_at_file=@
7026 fi
7027 fi
7028 rm -f conftest.* libconftest.a
7029
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7032 ;;
7033 esac
7034 fi
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7036 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7037
7038 if test no = "$lt_cv_ar_at_file"; then
7039 archiver_list_spec=
7040 else
7041 archiver_list_spec=$lt_cv_ar_at_file
7042 fi
7043
7044
7045
7046
7047
7048
7049
7050 if test -n "$ac_tool_prefix"; then
7051 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7052 set dummy ${ac_tool_prefix}strip; ac_word=$2
7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 printf %s "checking for $ac_word... " >&6; }
7055 if test ${ac_cv_prog_STRIP+y}
7056 then :
7057 printf %s "(cached) " >&6
7058 else case e in #(
7059 e) if test -n "$STRIP"; then
7060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065 IFS=$as_save_IFS
7066 case $as_dir in #(((
7067 '') as_dir=./ ;;
7068 */) ;;
7069 *) as_dir=$as_dir/ ;;
7070 esac
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7073 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077 done
7078 done
7079 IFS=$as_save_IFS
7080
7081 fi ;;
7082 esac
7083 fi
7084 STRIP=$ac_cv_prog_STRIP
7085 if test -n "$STRIP"; then
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7087 printf "%s\n" "$STRIP" >&6; }
7088 else
7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 printf "%s\n" "no" >&6; }
7091 fi
7092
7093
7094 fi
7095 if test -z "$ac_cv_prog_STRIP"; then
7096 ac_ct_STRIP=$STRIP
7097 # Extract the first word of "strip", so it can be a program name with args.
7098 set dummy strip; ac_word=$2
7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 printf %s "checking for $ac_word... " >&6; }
7101 if test ${ac_cv_prog_ac_ct_STRIP+y}
7102 then :
7103 printf %s "(cached) " >&6
7104 else case e in #(
7105 e) if test -n "$ac_ct_STRIP"; then
7106 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111 IFS=$as_save_IFS
7112 case $as_dir in #(((
7113 '') as_dir=./ ;;
7114 */) ;;
7115 *) as_dir=$as_dir/ ;;
7116 esac
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_ac_ct_STRIP="strip"
7120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7121 break 2
7122 fi
7123 done
7124 done
7125 IFS=$as_save_IFS
7126
7127 fi ;;
7128 esac
7129 fi
7130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7131 if test -n "$ac_ct_STRIP"; then
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7133 printf "%s\n" "$ac_ct_STRIP" >&6; }
7134 else
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 printf "%s\n" "no" >&6; }
7137 fi
7138
7139 if test "x$ac_ct_STRIP" = x; then
7140 STRIP=":"
7141 else
7142 case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146 ac_tool_warned=yes ;;
7147 esac
7148 STRIP=$ac_ct_STRIP
7149 fi
7150 else
7151 STRIP="$ac_cv_prog_STRIP"
7152 fi
7153
7154 test -z "$STRIP" && STRIP=:
7155
7156
7157
7158
7159
7160
7161
7162 test -z "$RANLIB" && RANLIB=:
7163
7164
7165
7166
7167
7168
7169 # Determine commands to create old-style static archives.
7170 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7171 old_postinstall_cmds='chmod 644 $oldlib'
7172 old_postuninstall_cmds=
7173
7174 if test -n "$RANLIB"; then
7175 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7176 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7177 fi
7178
7179 case $host_os in
7180 darwin*)
7181 lock_old_archive_extraction=yes ;;
7182 *)
7183 lock_old_archive_extraction=no ;;
7184 esac
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224 # If no C compiler was specified, use CC.
7225 LTCC=${LTCC-"$CC"}
7226
7227 # If no C compiler flags were specified, use CFLAGS.
7228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7229
7230 # Allow CC to be a program name with arguments.
7231 compiler=$CC
7232
7233
7234 # Check for command to grab the raw symbol name followed by C symbol from nm.
7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7236 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7237 if test ${lt_cv_sys_global_symbol_pipe+y}
7238 then :
7239 printf %s "(cached) " >&6
7240 else case e in #(
7241 e)
7242 # These are sane defaults that work on at least a few old systems.
7243 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7244
7245 # Character class describing NM global symbol codes.
7246 symcode='[BCDEGRST]'
7247
7248 # Regexp to match symbols that can be accessed directly from C.
7249 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7250
7251 # Define system-specific variables.
7252 case $host_os in
7253 aix*)
7254 symcode='[BCDT]'
7255 ;;
7256 cygwin* | mingw* | windows* | pw32* | cegcc*)
7257 symcode='[ABCDGISTW]'
7258 ;;
7259 hpux*)
7260 if test ia64 = "$host_cpu"; then
7261 symcode='[ABCDEGRST]'
7262 fi
7263 ;;
7264 irix* | nonstopux*)
7265 symcode='[BCDEGRST]'
7266 ;;
7267 osf*)
7268 symcode='[BCDEGQRST]'
7269 ;;
7270 solaris*)
7271 symcode='[BCDRT]'
7272 ;;
7273 sco3.2v5*)
7274 symcode='[DT]'
7275 ;;
7276 sysv4.2uw2*)
7277 symcode='[DT]'
7278 ;;
7279 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7280 symcode='[ABDT]'
7281 ;;
7282 sysv4)
7283 symcode='[DFNSTU]'
7284 ;;
7285 esac
7286
7287 # If we're using GNU nm, then use its standard symbol codes.
7288 case `$NM -V 2>&1` in
7289 *GNU* | *'with BFD'*)
7290 symcode='[ABCDGIRSTW]' ;;
7291 esac
7292
7293 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7294 # Gets list of data symbols to import.
7295 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7296 # Adjust the below global symbol transforms to fixup imported variables.
7297 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7298 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7299 lt_c_name_lib_hook="\
7300 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7301 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7302 else
7303 # Disable hooks by default.
7304 lt_cv_sys_global_symbol_to_import=
7305 lt_cdecl_hook=
7306 lt_c_name_hook=
7307 lt_c_name_lib_hook=
7308 fi
7309
7310 # Transform an extracted symbol line into a proper C declaration.
7311 # Some systems (esp. on ia64) link data and code symbols differently,
7312 # so use this general approach.
7313 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7314 $lt_cdecl_hook\
7315 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7316 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7317
7318 # Transform an extracted symbol line into symbol name and symbol address
7319 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7320 $lt_c_name_hook\
7321 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7322 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7323
7324 # Transform an extracted symbol line into symbol name with lib prefix and
7325 # symbol address.
7326 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7327 $lt_c_name_lib_hook\
7328 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7329 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7330 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7331
7332 # Handle CRLF in mingw tool chain
7333 opt_cr=
7334 case $build_os in
7335 mingw* | windows*)
7336 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7337 ;;
7338 esac
7339
7340 # Try without a prefix underscore, then with it.
7341 for ac_symprfx in "" "_"; do
7342
7343 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7344 symxfrm="\\1 $ac_symprfx\\2 \\2"
7345
7346 # Write the raw and C identifiers.
7347 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7348 # Fake it for dumpbin and say T for any non-static function,
7349 # D for any global variable and I for any imported variable.
7350 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7351 # which start with @ or ?.
7352 lt_cv_sys_global_symbol_pipe="$AWK '"\
7353 " {last_section=section; section=\$ 3};"\
7354 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7355 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7356 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7357 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7358 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7359 " \$ 0!~/External *\|/{next};"\
7360 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7361 " {if(hide[section]) next};"\
7362 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7363 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7364 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7365 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7366 " ' prfx=^$ac_symprfx"
7367 else
7368 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7369 fi
7370 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7371
7372 # Check to see that the pipe works correctly.
7373 pipe_works=no
7374
7375 rm -f conftest*
7376 cat > conftest.$ac_ext <<_LT_EOF
7377 #ifdef __cplusplus
7378 extern "C" {
7379 #endif
7380 char nm_test_var;
7381 void nm_test_func(void);
7382 void nm_test_func(void){}
7383 #ifdef __cplusplus
7384 }
7385 #endif
7386 int main(void){nm_test_var='a';nm_test_func();return(0);}
7387 _LT_EOF
7388
7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390 (eval $ac_compile) 2>&5
7391 ac_status=$?
7392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; }; then
7394 # Now try to grab the symbols.
7395 nlist=conftest.nm
7396 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7397 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7398 # Try sorting and uniquifying the output.
7399 if sort "$nlist" | uniq > "$nlist"T; then
7400 mv -f "$nlist"T "$nlist"
7401 else
7402 rm -f "$nlist"T
7403 fi
7404
7405 # Make sure that we snagged all the symbols we need.
7406 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7407 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7408 cat <<_LT_EOF > conftest.$ac_ext
7409 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7410 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7411 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7412 relocations are performed -- see ld's documentation on pseudo-relocs. */
7413 # define LT_DLSYM_CONST
7414 #elif defined __osf__
7415 /* This system does not cope well with relocations in const data. */
7416 # define LT_DLSYM_CONST
7417 #else
7418 # define LT_DLSYM_CONST const
7419 #endif
7420
7421 #ifdef __cplusplus
7422 extern "C" {
7423 #endif
7424
7425 _LT_EOF
7426 # Now generate the symbol file.
7427 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7428
7429 cat <<_LT_EOF >> conftest.$ac_ext
7430
7431 /* The mapping between symbol names and symbols. */
7432 LT_DLSYM_CONST struct {
7433 const char *name;
7434 void *address;
7435 }
7436 lt__PROGRAM__LTX_preloaded_symbols[] =
7437 {
7438 { "@PROGRAM@", (void *) 0 },
7439 _LT_EOF
7440 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7441 cat <<\_LT_EOF >> conftest.$ac_ext
7442 {0, (void *) 0}
7443 };
7444
7445 /* This works around a problem in FreeBSD linker */
7446 #ifdef FREEBSD_WORKAROUND
7447 static const void *lt_preloaded_setup() {
7448 return lt__PROGRAM__LTX_preloaded_symbols;
7449 }
7450 #endif
7451
7452 #ifdef __cplusplus
7453 }
7454 #endif
7455 _LT_EOF
7456 # Now try linking the two files.
7457 mv conftest.$ac_objext conftstm.$ac_objext
7458 lt_globsym_save_LIBS=$LIBS
7459 lt_globsym_save_CFLAGS=$CFLAGS
7460 LIBS=conftstm.$ac_objext
7461 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7463 (eval $ac_link) 2>&5
7464 ac_status=$?
7465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7466 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7467 pipe_works=yes
7468 fi
7469 LIBS=$lt_globsym_save_LIBS
7470 CFLAGS=$lt_globsym_save_CFLAGS
7471 else
7472 echo "cannot find nm_test_func in $nlist" >&5
7473 fi
7474 else
7475 echo "cannot find nm_test_var in $nlist" >&5
7476 fi
7477 else
7478 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7479 fi
7480 else
7481 echo "$progname: failed program was:" >&5
7482 cat conftest.$ac_ext >&5
7483 fi
7484 rm -rf conftest* conftst*
7485
7486 # Do not use the global_symbol_pipe unless it works.
7487 if test yes = "$pipe_works"; then
7488 break
7489 else
7490 lt_cv_sys_global_symbol_pipe=
7491 fi
7492 done
7493 ;;
7494 esac
7495 fi
7496
7497 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7498 lt_cv_sys_global_symbol_to_cdecl=
7499 fi
7500 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7502 printf "%s\n" "failed" >&6; }
7503 else
7504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7505 printf "%s\n" "ok" >&6; }
7506 fi
7507
7508 # Response file support.
7509 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7510 nm_file_list_spec='@'
7511 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7512 nm_file_list_spec='@'
7513 fi
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7552 printf %s "checking for sysroot... " >&6; }
7553
7554 # Check whether --with-sysroot was given.
7555 if test ${with_sysroot+y}
7556 then :
7557 withval=$with_sysroot;
7558 else case e in #(
7559 e) with_sysroot=no ;;
7560 esac
7561 fi
7562
7563
7564 lt_sysroot=
7565 case $with_sysroot in #(
7566 yes)
7567 if test yes = "$GCC"; then
7568 # Trim trailing / since we'll always append absolute paths and we want
7569 # to avoid //, if only for less confusing output for the user.
7570 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7571 fi
7572 ;; #(
7573 /*)
7574 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7575 ;; #(
7576 no|'')
7577 ;; #(
7578 *)
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7580 printf "%s\n" "$with_sysroot" >&6; }
7581 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7582 ;;
7583 esac
7584
7585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7586 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7587
7588
7589
7590
7591
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7593 printf %s "checking for a working dd... " >&6; }
7594 if test ${ac_cv_path_lt_DD+y}
7595 then :
7596 printf %s "(cached) " >&6
7597 else case e in #(
7598 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7599 cat conftest.i conftest.i >conftest2.i
7600 : ${lt_DD:=$DD}
7601 if test -z "$lt_DD"; then
7602 ac_path_lt_DD_found=false
7603 # Loop through the user's path and test for each of PROGNAME-LIST
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607 IFS=$as_save_IFS
7608 case $as_dir in #(((
7609 '') as_dir=./ ;;
7610 */) ;;
7611 *) as_dir=$as_dir/ ;;
7612 esac
7613 for ac_prog in dd
7614 do
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7617 as_fn_executable_p "$ac_path_lt_DD" || continue
7618 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7619 cmp -s conftest.i conftest.out \
7620 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7621 fi
7622 $ac_path_lt_DD_found && break 3
7623 done
7624 done
7625 done
7626 IFS=$as_save_IFS
7627 if test -z "$ac_cv_path_lt_DD"; then
7628 :
7629 fi
7630 else
7631 ac_cv_path_lt_DD=$lt_DD
7632 fi
7633
7634 rm -f conftest.i conftest2.i conftest.out ;;
7635 esac
7636 fi
7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7638 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7639
7640
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7642 printf %s "checking how to truncate binary pipes... " >&6; }
7643 if test ${lt_cv_truncate_bin+y}
7644 then :
7645 printf %s "(cached) " >&6
7646 else case e in #(
7647 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7648 cat conftest.i conftest.i >conftest2.i
7649 lt_cv_truncate_bin=
7650 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7651 cmp -s conftest.i conftest.out \
7652 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7653 fi
7654 rm -f conftest.i conftest2.i conftest.out
7655 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7656 esac
7657 fi
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7659 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7660
7661
7662
7663
7664
7665
7666
7667 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7668 func_cc_basename ()
7669 {
7670 for cc_temp in $*""; do
7671 case $cc_temp in
7672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7674 \-*) ;;
7675 *) break;;
7676 esac
7677 done
7678 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7679 }
7680
7681 # Check whether --enable-libtool-lock was given.
7682 if test ${enable_libtool_lock+y}
7683 then :
7684 enableval=$enable_libtool_lock;
7685 fi
7686
7687 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7688
7689 # Some flags need to be propagated to the compiler or linker for good
7690 # libtool support.
7691 case $host in
7692 ia64-*-hpux*)
7693 # Find out what ABI is being produced by ac_compile, and set mode
7694 # options accordingly.
7695 echo 'int i;' > conftest.$ac_ext
7696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7697 (eval $ac_compile) 2>&5
7698 ac_status=$?
7699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7700 test $ac_status = 0; }; then
7701 case `$FILECMD conftest.$ac_objext` in
7702 *ELF-32*)
7703 HPUX_IA64_MODE=32
7704 ;;
7705 *ELF-64*)
7706 HPUX_IA64_MODE=64
7707 ;;
7708 esac
7709 fi
7710 rm -rf conftest*
7711 ;;
7712 *-*-irix6*)
7713 # Find out what ABI is being produced by ac_compile, and set linker
7714 # options accordingly.
7715 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7717 (eval $ac_compile) 2>&5
7718 ac_status=$?
7719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720 test $ac_status = 0; }; then
7721 if test yes = "$lt_cv_prog_gnu_ld"; then
7722 case `$FILECMD conftest.$ac_objext` in
7723 *32-bit*)
7724 LD="${LD-ld} -melf32bsmip"
7725 ;;
7726 *N32*)
7727 LD="${LD-ld} -melf32bmipn32"
7728 ;;
7729 *64-bit*)
7730 LD="${LD-ld} -melf64bmip"
7731 ;;
7732 esac
7733 else
7734 case `$FILECMD conftest.$ac_objext` in
7735 *32-bit*)
7736 LD="${LD-ld} -32"
7737 ;;
7738 *N32*)
7739 LD="${LD-ld} -n32"
7740 ;;
7741 *64-bit*)
7742 LD="${LD-ld} -64"
7743 ;;
7744 esac
7745 fi
7746 fi
7747 rm -rf conftest*
7748 ;;
7749
7750 mips64*-*linux*)
7751 # Find out what ABI is being produced by ac_compile, and set linker
7752 # options accordingly.
7753 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7755 (eval $ac_compile) 2>&5
7756 ac_status=$?
7757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7758 test $ac_status = 0; }; then
7759 emul=elf
7760 case `$FILECMD conftest.$ac_objext` in
7761 *32-bit*)
7762 emul="${emul}32"
7763 ;;
7764 *64-bit*)
7765 emul="${emul}64"
7766 ;;
7767 esac
7768 case `$FILECMD conftest.$ac_objext` in
7769 *MSB*)
7770 emul="${emul}btsmip"
7771 ;;
7772 *LSB*)
7773 emul="${emul}ltsmip"
7774 ;;
7775 esac
7776 case `$FILECMD conftest.$ac_objext` in
7777 *N32*)
7778 emul="${emul}n32"
7779 ;;
7780 esac
7781 LD="${LD-ld} -m $emul"
7782 fi
7783 rm -rf conftest*
7784 ;;
7785
7786 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7787 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7788 # Find out what ABI is being produced by ac_compile, and set linker
7789 # options accordingly. Note that the listed cases only cover the
7790 # situations where additional linker options are needed (such as when
7791 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7792 # vice versa); the common cases where no linker options are needed do
7793 # not appear in the list.
7794 echo 'int i;' > conftest.$ac_ext
7795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7796 (eval $ac_compile) 2>&5
7797 ac_status=$?
7798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7799 test $ac_status = 0; }; then
7800 case `$FILECMD conftest.o` in
7801 *32-bit*)
7802 case $host in
7803 x86_64-*kfreebsd*-gnu)
7804 LD="${LD-ld} -m elf_i386_fbsd"
7805 ;;
7806 x86_64-*linux*|x86_64-gnu*)
7807 case `$FILECMD conftest.o` in
7808 *x86-64*)
7809 LD="${LD-ld} -m elf32_x86_64"
7810 ;;
7811 *)
7812 LD="${LD-ld} -m elf_i386"
7813 ;;
7814 esac
7815 ;;
7816 powerpc64le-*linux*)
7817 LD="${LD-ld} -m elf32lppclinux"
7818 ;;
7819 powerpc64-*linux*)
7820 LD="${LD-ld} -m elf32ppclinux"
7821 ;;
7822 s390x-*linux*)
7823 LD="${LD-ld} -m elf_s390"
7824 ;;
7825 sparc64-*linux*)
7826 LD="${LD-ld} -m elf32_sparc"
7827 ;;
7828 esac
7829 ;;
7830 *64-bit*)
7831 case $host in
7832 x86_64-*kfreebsd*-gnu)
7833 LD="${LD-ld} -m elf_x86_64_fbsd"
7834 ;;
7835 x86_64-*linux*|x86_64-gnu*)
7836 LD="${LD-ld} -m elf_x86_64"
7837 ;;
7838 powerpcle-*linux*)
7839 LD="${LD-ld} -m elf64lppc"
7840 ;;
7841 powerpc-*linux*)
7842 LD="${LD-ld} -m elf64ppc"
7843 ;;
7844 s390*-*linux*|s390*-*tpf*)
7845 LD="${LD-ld} -m elf64_s390"
7846 ;;
7847 sparc*-*linux*)
7848 LD="${LD-ld} -m elf64_sparc"
7849 ;;
7850 esac
7851 ;;
7852 esac
7853 fi
7854 rm -rf conftest*
7855 ;;
7856
7857 *-*-sco3.2v5*)
7858 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7859 SAVE_CFLAGS=$CFLAGS
7860 CFLAGS="$CFLAGS -belf"
7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7862 printf %s "checking whether the C compiler needs -belf... " >&6; }
7863 if test ${lt_cv_cc_needs_belf+y}
7864 then :
7865 printf %s "(cached) " >&6
7866 else case e in #(
7867 e) ac_ext=c
7868 ac_cpp='$CPP $CPPFLAGS'
7869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7872
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7875
7876 int
7877 main (void)
7878 {
7879
7880 ;
7881 return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"
7885 then :
7886 lt_cv_cc_needs_belf=yes
7887 else case e in #(
7888 e) lt_cv_cc_needs_belf=no ;;
7889 esac
7890 fi
7891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7892 conftest$ac_exeext conftest.$ac_ext
7893 ac_ext=c
7894 ac_cpp='$CPP $CPPFLAGS'
7895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898 ;;
7899 esac
7900 fi
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7902 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7903 if test yes != "$lt_cv_cc_needs_belf"; then
7904 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7905 CFLAGS=$SAVE_CFLAGS
7906 fi
7907 ;;
7908 *-*solaris*)
7909 # Find out what ABI is being produced by ac_compile, and set linker
7910 # options accordingly.
7911 echo 'int i;' > conftest.$ac_ext
7912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7913 (eval $ac_compile) 2>&5
7914 ac_status=$?
7915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7916 test $ac_status = 0; }; then
7917 case `$FILECMD conftest.o` in
7918 *64-bit*)
7919 case $lt_cv_prog_gnu_ld in
7920 yes*)
7921 case $host in
7922 i?86-*-solaris*|x86_64-*-solaris*)
7923 LD="${LD-ld} -m elf_x86_64"
7924 ;;
7925 sparc*-*-solaris*)
7926 LD="${LD-ld} -m elf64_sparc"
7927 ;;
7928 esac
7929 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7930 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7931 LD=${LD-ld}_sol2
7932 fi
7933 ;;
7934 *)
7935 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7936 LD="${LD-ld} -64"
7937 fi
7938 ;;
7939 esac
7940 ;;
7941 esac
7942 fi
7943 rm -rf conftest*
7944 ;;
7945 esac
7946
7947 need_locks=$enable_libtool_lock
7948
7949 if test -n "$ac_tool_prefix"; then
7950 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7951 set dummy ${ac_tool_prefix}mt; ac_word=$2
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 printf %s "checking for $ac_word... " >&6; }
7954 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7955 then :
7956 printf %s "(cached) " >&6
7957 else case e in #(
7958 e) if test -n "$MANIFEST_TOOL"; then
7959 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7960 else
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7963 do
7964 IFS=$as_save_IFS
7965 case $as_dir in #(((
7966 '') as_dir=./ ;;
7967 */) ;;
7968 *) as_dir=$as_dir/ ;;
7969 esac
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7972 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7974 break 2
7975 fi
7976 done
7977 done
7978 IFS=$as_save_IFS
7979
7980 fi ;;
7981 esac
7982 fi
7983 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7984 if test -n "$MANIFEST_TOOL"; then
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7986 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7987 else
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 printf "%s\n" "no" >&6; }
7990 fi
7991
7992
7993 fi
7994 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7995 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7996 # Extract the first word of "mt", so it can be a program name with args.
7997 set dummy mt; ac_word=$2
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 printf %s "checking for $ac_word... " >&6; }
8000 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8001 then :
8002 printf %s "(cached) " >&6
8003 else case e in #(
8004 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8005 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8006 else
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8009 do
8010 IFS=$as_save_IFS
8011 case $as_dir in #(((
8012 '') as_dir=./ ;;
8013 */) ;;
8014 *) as_dir=$as_dir/ ;;
8015 esac
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8018 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022 done
8023 done
8024 IFS=$as_save_IFS
8025
8026 fi ;;
8027 esac
8028 fi
8029 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8030 if test -n "$ac_ct_MANIFEST_TOOL"; then
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8032 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8033 else
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 printf "%s\n" "no" >&6; }
8036 fi
8037
8038 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8039 MANIFEST_TOOL=":"
8040 else
8041 case $cross_compiling:$ac_tool_warned in
8042 yes:)
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8044 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8045 ac_tool_warned=yes ;;
8046 esac
8047 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8048 fi
8049 else
8050 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8051 fi
8052
8053 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8055 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8056 if test ${lt_cv_path_manifest_tool+y}
8057 then :
8058 printf %s "(cached) " >&6
8059 else case e in #(
8060 e) lt_cv_path_manifest_tool=no
8061 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8062 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8063 cat conftest.err >&5
8064 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8065 lt_cv_path_manifest_tool=yes
8066 fi
8067 rm -f conftest* ;;
8068 esac
8069 fi
8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8071 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8072 if test yes != "$lt_cv_path_manifest_tool"; then
8073 MANIFEST_TOOL=:
8074 fi
8075
8076
8077
8078
8079
8080
8081 case $host_os in
8082 rhapsody* | darwin*)
8083 if test -n "$ac_tool_prefix"; then
8084 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8085 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 printf %s "checking for $ac_word... " >&6; }
8088 if test ${ac_cv_prog_DSYMUTIL+y}
8089 then :
8090 printf %s "(cached) " >&6
8091 else case e in #(
8092 e) if test -n "$DSYMUTIL"; then
8093 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098 IFS=$as_save_IFS
8099 case $as_dir in #(((
8100 '') as_dir=./ ;;
8101 */) ;;
8102 *) as_dir=$as_dir/ ;;
8103 esac
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8106 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8108 break 2
8109 fi
8110 done
8111 done
8112 IFS=$as_save_IFS
8113
8114 fi ;;
8115 esac
8116 fi
8117 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8118 if test -n "$DSYMUTIL"; then
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8120 printf "%s\n" "$DSYMUTIL" >&6; }
8121 else
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 printf "%s\n" "no" >&6; }
8124 fi
8125
8126
8127 fi
8128 if test -z "$ac_cv_prog_DSYMUTIL"; then
8129 ac_ct_DSYMUTIL=$DSYMUTIL
8130 # Extract the first word of "dsymutil", so it can be a program name with args.
8131 set dummy dsymutil; ac_word=$2
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 printf %s "checking for $ac_word... " >&6; }
8134 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8135 then :
8136 printf %s "(cached) " >&6
8137 else case e in #(
8138 e) if test -n "$ac_ct_DSYMUTIL"; then
8139 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144 IFS=$as_save_IFS
8145 case $as_dir in #(((
8146 '') as_dir=./ ;;
8147 */) ;;
8148 *) as_dir=$as_dir/ ;;
8149 esac
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8152 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8154 break 2
8155 fi
8156 done
8157 done
8158 IFS=$as_save_IFS
8159
8160 fi ;;
8161 esac
8162 fi
8163 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8164 if test -n "$ac_ct_DSYMUTIL"; then
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8166 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8167 else
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169 printf "%s\n" "no" >&6; }
8170 fi
8171
8172 if test "x$ac_ct_DSYMUTIL" = x; then
8173 DSYMUTIL=":"
8174 else
8175 case $cross_compiling:$ac_tool_warned in
8176 yes:)
8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8178 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8179 ac_tool_warned=yes ;;
8180 esac
8181 DSYMUTIL=$ac_ct_DSYMUTIL
8182 fi
8183 else
8184 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8185 fi
8186
8187 if test -n "$ac_tool_prefix"; then
8188 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8189 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 printf %s "checking for $ac_word... " >&6; }
8192 if test ${ac_cv_prog_NMEDIT+y}
8193 then :
8194 printf %s "(cached) " >&6
8195 else case e in #(
8196 e) if test -n "$NMEDIT"; then
8197 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8198 else
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 for as_dir in $PATH
8201 do
8202 IFS=$as_save_IFS
8203 case $as_dir in #(((
8204 '') as_dir=./ ;;
8205 */) ;;
8206 *) as_dir=$as_dir/ ;;
8207 esac
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8210 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8212 break 2
8213 fi
8214 done
8215 done
8216 IFS=$as_save_IFS
8217
8218 fi ;;
8219 esac
8220 fi
8221 NMEDIT=$ac_cv_prog_NMEDIT
8222 if test -n "$NMEDIT"; then
8223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8224 printf "%s\n" "$NMEDIT" >&6; }
8225 else
8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 printf "%s\n" "no" >&6; }
8228 fi
8229
8230
8231 fi
8232 if test -z "$ac_cv_prog_NMEDIT"; then
8233 ac_ct_NMEDIT=$NMEDIT
8234 # Extract the first word of "nmedit", so it can be a program name with args.
8235 set dummy nmedit; ac_word=$2
8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237 printf %s "checking for $ac_word... " >&6; }
8238 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8239 then :
8240 printf %s "(cached) " >&6
8241 else case e in #(
8242 e) if test -n "$ac_ct_NMEDIT"; then
8243 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8244 else
8245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 for as_dir in $PATH
8247 do
8248 IFS=$as_save_IFS
8249 case $as_dir in #(((
8250 '') as_dir=./ ;;
8251 */) ;;
8252 *) as_dir=$as_dir/ ;;
8253 esac
8254 for ac_exec_ext in '' $ac_executable_extensions; do
8255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8256 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8258 break 2
8259 fi
8260 done
8261 done
8262 IFS=$as_save_IFS
8263
8264 fi ;;
8265 esac
8266 fi
8267 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8268 if test -n "$ac_ct_NMEDIT"; then
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8270 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8271 else
8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 printf "%s\n" "no" >&6; }
8274 fi
8275
8276 if test "x$ac_ct_NMEDIT" = x; then
8277 NMEDIT=":"
8278 else
8279 case $cross_compiling:$ac_tool_warned in
8280 yes:)
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8282 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8283 ac_tool_warned=yes ;;
8284 esac
8285 NMEDIT=$ac_ct_NMEDIT
8286 fi
8287 else
8288 NMEDIT="$ac_cv_prog_NMEDIT"
8289 fi
8290
8291 if test -n "$ac_tool_prefix"; then
8292 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8293 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 printf %s "checking for $ac_word... " >&6; }
8296 if test ${ac_cv_prog_LIPO+y}
8297 then :
8298 printf %s "(cached) " >&6
8299 else case e in #(
8300 e) if test -n "$LIPO"; then
8301 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306 IFS=$as_save_IFS
8307 case $as_dir in #(((
8308 '') as_dir=./ ;;
8309 */) ;;
8310 *) as_dir=$as_dir/ ;;
8311 esac
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8314 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8316 break 2
8317 fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8321
8322 fi ;;
8323 esac
8324 fi
8325 LIPO=$ac_cv_prog_LIPO
8326 if test -n "$LIPO"; then
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8328 printf "%s\n" "$LIPO" >&6; }
8329 else
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 printf "%s\n" "no" >&6; }
8332 fi
8333
8334
8335 fi
8336 if test -z "$ac_cv_prog_LIPO"; then
8337 ac_ct_LIPO=$LIPO
8338 # Extract the first word of "lipo", so it can be a program name with args.
8339 set dummy lipo; ac_word=$2
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 printf %s "checking for $ac_word... " >&6; }
8342 if test ${ac_cv_prog_ac_ct_LIPO+y}
8343 then :
8344 printf %s "(cached) " >&6
8345 else case e in #(
8346 e) if test -n "$ac_ct_LIPO"; then
8347 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352 IFS=$as_save_IFS
8353 case $as_dir in #(((
8354 '') as_dir=./ ;;
8355 */) ;;
8356 *) as_dir=$as_dir/ ;;
8357 esac
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8360 ac_cv_prog_ac_ct_LIPO="lipo"
8361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
8364 done
8365 done
8366 IFS=$as_save_IFS
8367
8368 fi ;;
8369 esac
8370 fi
8371 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8372 if test -n "$ac_ct_LIPO"; then
8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8374 printf "%s\n" "$ac_ct_LIPO" >&6; }
8375 else
8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 printf "%s\n" "no" >&6; }
8378 fi
8379
8380 if test "x$ac_ct_LIPO" = x; then
8381 LIPO=":"
8382 else
8383 case $cross_compiling:$ac_tool_warned in
8384 yes:)
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8386 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8387 ac_tool_warned=yes ;;
8388 esac
8389 LIPO=$ac_ct_LIPO
8390 fi
8391 else
8392 LIPO="$ac_cv_prog_LIPO"
8393 fi
8394
8395 if test -n "$ac_tool_prefix"; then
8396 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8397 set dummy ${ac_tool_prefix}otool; ac_word=$2
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8399 printf %s "checking for $ac_word... " >&6; }
8400 if test ${ac_cv_prog_OTOOL+y}
8401 then :
8402 printf %s "(cached) " >&6
8403 else case e in #(
8404 e) if test -n "$OTOOL"; then
8405 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8409 do
8410 IFS=$as_save_IFS
8411 case $as_dir in #(((
8412 '') as_dir=./ ;;
8413 */) ;;
8414 *) as_dir=$as_dir/ ;;
8415 esac
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8418 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8420 break 2
8421 fi
8422 done
8423 done
8424 IFS=$as_save_IFS
8425
8426 fi ;;
8427 esac
8428 fi
8429 OTOOL=$ac_cv_prog_OTOOL
8430 if test -n "$OTOOL"; then
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8432 printf "%s\n" "$OTOOL" >&6; }
8433 else
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 printf "%s\n" "no" >&6; }
8436 fi
8437
8438
8439 fi
8440 if test -z "$ac_cv_prog_OTOOL"; then
8441 ac_ct_OTOOL=$OTOOL
8442 # Extract the first word of "otool", so it can be a program name with args.
8443 set dummy otool; ac_word=$2
8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445 printf %s "checking for $ac_word... " >&6; }
8446 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8447 then :
8448 printf %s "(cached) " >&6
8449 else case e in #(
8450 e) if test -n "$ac_ct_OTOOL"; then
8451 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8452 else
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8455 do
8456 IFS=$as_save_IFS
8457 case $as_dir in #(((
8458 '') as_dir=./ ;;
8459 */) ;;
8460 *) as_dir=$as_dir/ ;;
8461 esac
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8464 ac_cv_prog_ac_ct_OTOOL="otool"
8465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8466 break 2
8467 fi
8468 done
8469 done
8470 IFS=$as_save_IFS
8471
8472 fi ;;
8473 esac
8474 fi
8475 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8476 if test -n "$ac_ct_OTOOL"; then
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8478 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8479 else
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 printf "%s\n" "no" >&6; }
8482 fi
8483
8484 if test "x$ac_ct_OTOOL" = x; then
8485 OTOOL=":"
8486 else
8487 case $cross_compiling:$ac_tool_warned in
8488 yes:)
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8490 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8491 ac_tool_warned=yes ;;
8492 esac
8493 OTOOL=$ac_ct_OTOOL
8494 fi
8495 else
8496 OTOOL="$ac_cv_prog_OTOOL"
8497 fi
8498
8499 if test -n "$ac_tool_prefix"; then
8500 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8501 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 printf %s "checking for $ac_word... " >&6; }
8504 if test ${ac_cv_prog_OTOOL64+y}
8505 then :
8506 printf %s "(cached) " >&6
8507 else case e in #(
8508 e) if test -n "$OTOOL64"; then
8509 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8510 else
8511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 for as_dir in $PATH
8513 do
8514 IFS=$as_save_IFS
8515 case $as_dir in #(((
8516 '') as_dir=./ ;;
8517 */) ;;
8518 *) as_dir=$as_dir/ ;;
8519 esac
8520 for ac_exec_ext in '' $ac_executable_extensions; do
8521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8522 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8524 break 2
8525 fi
8526 done
8527 done
8528 IFS=$as_save_IFS
8529
8530 fi ;;
8531 esac
8532 fi
8533 OTOOL64=$ac_cv_prog_OTOOL64
8534 if test -n "$OTOOL64"; then
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8536 printf "%s\n" "$OTOOL64" >&6; }
8537 else
8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539 printf "%s\n" "no" >&6; }
8540 fi
8541
8542
8543 fi
8544 if test -z "$ac_cv_prog_OTOOL64"; then
8545 ac_ct_OTOOL64=$OTOOL64
8546 # Extract the first word of "otool64", so it can be a program name with args.
8547 set dummy otool64; ac_word=$2
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 printf %s "checking for $ac_word... " >&6; }
8550 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8551 then :
8552 printf %s "(cached) " >&6
8553 else case e in #(
8554 e) if test -n "$ac_ct_OTOOL64"; then
8555 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8556 else
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 for as_dir in $PATH
8559 do
8560 IFS=$as_save_IFS
8561 case $as_dir in #(((
8562 '') as_dir=./ ;;
8563 */) ;;
8564 *) as_dir=$as_dir/ ;;
8565 esac
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8568 ac_cv_prog_ac_ct_OTOOL64="otool64"
8569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8570 break 2
8571 fi
8572 done
8573 done
8574 IFS=$as_save_IFS
8575
8576 fi ;;
8577 esac
8578 fi
8579 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8580 if test -n "$ac_ct_OTOOL64"; then
8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8582 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8583 else
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 printf "%s\n" "no" >&6; }
8586 fi
8587
8588 if test "x$ac_ct_OTOOL64" = x; then
8589 OTOOL64=":"
8590 else
8591 case $cross_compiling:$ac_tool_warned in
8592 yes:)
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8594 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8595 ac_tool_warned=yes ;;
8596 esac
8597 OTOOL64=$ac_ct_OTOOL64
8598 fi
8599 else
8600 OTOOL64="$ac_cv_prog_OTOOL64"
8601 fi
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8630 printf %s "checking for -single_module linker flag... " >&6; }
8631 if test ${lt_cv_apple_cc_single_mod+y}
8632 then :
8633 printf %s "(cached) " >&6
8634 else case e in #(
8635 e) lt_cv_apple_cc_single_mod=no
8636 if test -z "$LT_MULTI_MODULE"; then
8637 # By default we will add the -single_module flag. You can override
8638 # by either setting the environment variable LT_MULTI_MODULE
8639 # non-empty at configure time, or by adding -multi_module to the
8640 # link flags.
8641 rm -rf libconftest.dylib*
8642 echo "int foo(void){return 1;}" > conftest.c
8643 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8644 -dynamiclib -Wl,-single_module conftest.c" >&5
8645 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8646 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8647 _lt_result=$?
8648 # If there is a non-empty error log, and "single_module"
8649 # appears in it, assume the flag caused a linker warning
8650 if test -s conftest.err && $GREP single_module conftest.err; then
8651 cat conftest.err >&5
8652 # Otherwise, if the output was created with a 0 exit code from
8653 # the compiler, it worked.
8654 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8655 lt_cv_apple_cc_single_mod=yes
8656 else
8657 cat conftest.err >&5
8658 fi
8659 rm -rf libconftest.dylib*
8660 rm -f conftest.*
8661 fi ;;
8662 esac
8663 fi
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8665 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8666
8667 # Feature test to disable chained fixups since it is not
8668 # compatible with '-undefined dynamic_lookup'
8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8670 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8671 if test ${lt_cv_support_no_fixup_chains+y}
8672 then :
8673 printf %s "(cached) " >&6
8674 else case e in #(
8675 e) save_LDFLAGS=$LDFLAGS
8676 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679
8680 int
8681 main (void)
8682 {
8683
8684 ;
8685 return 0;
8686 }
8687 _ACEOF
8688 if ac_fn_c_try_link "$LINENO"
8689 then :
8690 lt_cv_support_no_fixup_chains=yes
8691 else case e in #(
8692 e) lt_cv_support_no_fixup_chains=no
8693 ;;
8694 esac
8695 fi
8696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8697 conftest$ac_exeext conftest.$ac_ext
8698 LDFLAGS=$save_LDFLAGS
8699
8700 ;;
8701 esac
8702 fi
8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8704 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8705
8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8707 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8708 if test ${lt_cv_ld_exported_symbols_list+y}
8709 then :
8710 printf %s "(cached) " >&6
8711 else case e in #(
8712 e) lt_cv_ld_exported_symbols_list=no
8713 save_LDFLAGS=$LDFLAGS
8714 echo "_main" > conftest.sym
8715 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718
8719 int
8720 main (void)
8721 {
8722
8723 ;
8724 return 0;
8725 }
8726 _ACEOF
8727 if ac_fn_c_try_link "$LINENO"
8728 then :
8729 lt_cv_ld_exported_symbols_list=yes
8730 else case e in #(
8731 e) lt_cv_ld_exported_symbols_list=no ;;
8732 esac
8733 fi
8734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8735 conftest$ac_exeext conftest.$ac_ext
8736 LDFLAGS=$save_LDFLAGS
8737 ;;
8738 esac
8739 fi
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8741 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8742
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8744 printf %s "checking for -force_load linker flag... " >&6; }
8745 if test ${lt_cv_ld_force_load+y}
8746 then :
8747 printf %s "(cached) " >&6
8748 else case e in #(
8749 e) lt_cv_ld_force_load=no
8750 cat > conftest.c << _LT_EOF
8751 int forced_loaded() { return 2;}
8752 _LT_EOF
8753 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8754 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8755 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8756 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8757 echo "$RANLIB libconftest.a" >&5
8758 $RANLIB libconftest.a 2>&5
8759 cat > conftest.c << _LT_EOF
8760 int main(void) { return 0;}
8761 _LT_EOF
8762 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8763 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8764 _lt_result=$?
8765 if test -s conftest.err && $GREP force_load conftest.err; then
8766 cat conftest.err >&5
8767 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8768 lt_cv_ld_force_load=yes
8769 else
8770 cat conftest.err >&5
8771 fi
8772 rm -f conftest.err libconftest.a conftest conftest.c
8773 rm -rf conftest.dSYM
8774 ;;
8775 esac
8776 fi
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8778 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8779 case $host_os in
8780 rhapsody* | darwin1.[012])
8781 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8782 darwin1.*)
8783 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8784 darwin*)
8785 case $MACOSX_DEPLOYMENT_TARGET,$host in
8786 10.[012],*|,*powerpc*-darwin[5-8]*)
8787 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8788 *)
8789 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8790 if test yes = "$lt_cv_support_no_fixup_chains"; then
8791 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8792 fi
8793 ;;
8794 esac
8795 ;;
8796 esac
8797 if test yes = "$lt_cv_apple_cc_single_mod"; then
8798 _lt_dar_single_mod='$single_module'
8799 fi
8800 _lt_dar_needs_single_mod=no
8801 case $host_os in
8802 rhapsody* | darwin1.*)
8803 _lt_dar_needs_single_mod=yes ;;
8804 darwin*)
8805 # When targeting Mac OS X 10.4 (darwin 8) or later,
8806 # -single_module is the default and -multi_module is unsupported.
8807 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8808 # target any OS version that needs -single_module.
8809 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8810 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8811 _lt_dar_needs_single_mod=yes ;;
8812 esac
8813 ;;
8814 esac
8815 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8816 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8817 else
8818 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8819 fi
8820 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8821 _lt_dsymutil='~$DSYMUTIL $lib || :'
8822 else
8823 _lt_dsymutil=
8824 fi
8825 ;;
8826 esac
8827
8828 # func_munge_path_list VARIABLE PATH
8829 # -----------------------------------
8830 # VARIABLE is name of variable containing _space_ separated list of
8831 # directories to be munged by the contents of PATH, which is string
8832 # having a format:
8833 # "DIR[:DIR]:"
8834 # string "DIR[ DIR]" will be prepended to VARIABLE
8835 # ":DIR[:DIR]"
8836 # string "DIR[ DIR]" will be appended to VARIABLE
8837 # "DIRP[:DIRP]::[DIRA:]DIRA"
8838 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8839 # "DIRA[ DIRA]" will be appended to VARIABLE
8840 # "DIR[:DIR]"
8841 # VARIABLE will be replaced by "DIR[ DIR]"
8842 func_munge_path_list ()
8843 {
8844 case x$2 in
8845 x)
8846 ;;
8847 *:)
8848 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8849 ;;
8850 x:*)
8851 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8852 ;;
8853 *::*)
8854 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8855 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8856 ;;
8857 *)
8858 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8859 ;;
8860 esac
8861 }
8862
8863 ac_header= ac_cache=
8864 for ac_item in $ac_header_c_list
8865 do
8866 if test $ac_cache; then
8867 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8868 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8869 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8870 fi
8871 ac_header= ac_cache=
8872 elif test $ac_header; then
8873 ac_cache=$ac_item
8874 else
8875 ac_header=$ac_item
8876 fi
8877 done
8878
8879
8880
8881
8882
8883
8884
8885
8886 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8887 then :
8888
8889 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8890
8891 fi
8892 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8893 "
8894 if test "x$ac_cv_header_dlfcn_h" = xyes
8895 then :
8896 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8897
8898 fi
8899
8900
8901
8902
8903
8904 # Set options
8905
8906
8907
8908 enable_dlopen=no
8909
8910
8911 enable_win32_dll=no
8912
8913
8914 # Check whether --enable-shared was given.
8915 if test ${enable_shared+y}
8916 then :
8917 enableval=$enable_shared; p=${PACKAGE-default}
8918 case $enableval in
8919 yes) enable_shared=yes ;;
8920 no) enable_shared=no ;;
8921 *)
8922 enable_shared=no
8923 # Look at the argument we got. We use all the common list separators.
8924 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8925 for pkg in $enableval; do
8926 IFS=$lt_save_ifs
8927 if test "X$pkg" = "X$p"; then
8928 enable_shared=yes
8929 fi
8930 done
8931 IFS=$lt_save_ifs
8932 ;;
8933 esac
8934 else case e in #(
8935 e) enable_shared=yes ;;
8936 esac
8937 fi
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947 # Check whether --enable-static was given.
8948 if test ${enable_static+y}
8949 then :
8950 enableval=$enable_static; p=${PACKAGE-default}
8951 case $enableval in
8952 yes) enable_static=yes ;;
8953 no) enable_static=no ;;
8954 *)
8955 enable_static=no
8956 # Look at the argument we got. We use all the common list separators.
8957 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8958 for pkg in $enableval; do
8959 IFS=$lt_save_ifs
8960 if test "X$pkg" = "X$p"; then
8961 enable_static=yes
8962 fi
8963 done
8964 IFS=$lt_save_ifs
8965 ;;
8966 esac
8967 else case e in #(
8968 e) enable_static=yes ;;
8969 esac
8970 fi
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980 # Check whether --enable-pic was given.
8981 if test ${enable_pic+y}
8982 then :
8983 enableval=$enable_pic; lt_p=${PACKAGE-default}
8984 case $enableval in
8985 yes|no) pic_mode=$enableval ;;
8986 *)
8987 pic_mode=default
8988 # Look at the argument we got. We use all the common list separators.
8989 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8990 for lt_pkg in $enableval; do
8991 IFS=$lt_save_ifs
8992 if test "X$lt_pkg" = "X$lt_p"; then
8993 pic_mode=yes
8994 fi
8995 done
8996 IFS=$lt_save_ifs
8997 ;;
8998 esac
8999 else case e in #(
9000 e) # Check whether --with-pic was given.
9001 if test ${with_pic+y}
9002 then :
9003 withval=$with_pic; lt_p=${PACKAGE-default}
9004 case $withval in
9005 yes|no) pic_mode=$withval ;;
9006 *)
9007 pic_mode=default
9008 # Look at the argument we got. We use all the common list separators.
9009 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9010 for lt_pkg in $withval; do
9011 IFS=$lt_save_ifs
9012 if test "X$lt_pkg" = "X$lt_p"; then
9013 pic_mode=yes
9014 fi
9015 done
9016 IFS=$lt_save_ifs
9017 ;;
9018 esac
9019 else case e in #(
9020 e) pic_mode=default ;;
9021 esac
9022 fi
9023
9024 ;;
9025 esac
9026 fi
9027
9028
9029
9030
9031
9032
9033
9034
9035 # Check whether --enable-fast-install was given.
9036 if test ${enable_fast_install+y}
9037 then :
9038 enableval=$enable_fast_install; p=${PACKAGE-default}
9039 case $enableval in
9040 yes) enable_fast_install=yes ;;
9041 no) enable_fast_install=no ;;
9042 *)
9043 enable_fast_install=no
9044 # Look at the argument we got. We use all the common list separators.
9045 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9046 for pkg in $enableval; do
9047 IFS=$lt_save_ifs
9048 if test "X$pkg" = "X$p"; then
9049 enable_fast_install=yes
9050 fi
9051 done
9052 IFS=$lt_save_ifs
9053 ;;
9054 esac
9055 else case e in #(
9056 e) enable_fast_install=yes ;;
9057 esac
9058 fi
9059
9060
9061
9062
9063
9064
9065
9066
9067 shared_archive_member_spec=
9068 case $host,$enable_shared in
9069 power*-*-aix[5-9]*,yes)
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9071 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9072 # Check whether --enable-aix-soname was given.
9073 if test ${enable_aix_soname+y}
9074 then :
9075 enableval=$enable_aix_soname; case $enableval in
9076 aix|svr4|both)
9077 ;;
9078 *)
9079 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9080 ;;
9081 esac
9082 lt_cv_with_aix_soname=$enable_aix_soname
9083 else case e in #(
9084 e) # Check whether --with-aix-soname was given.
9085 if test ${with_aix_soname+y}
9086 then :
9087 withval=$with_aix_soname; case $withval in
9088 aix|svr4|both)
9089 ;;
9090 *)
9091 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9092 ;;
9093 esac
9094 lt_cv_with_aix_soname=$with_aix_soname
9095 else case e in #(
9096 e) if test ${lt_cv_with_aix_soname+y}
9097 then :
9098 printf %s "(cached) " >&6
9099 else case e in #(
9100 e) lt_cv_with_aix_soname=aix ;;
9101 esac
9102 fi
9103 ;;
9104 esac
9105 fi
9106
9107 enable_aix_soname=$lt_cv_with_aix_soname ;;
9108 esac
9109 fi
9110
9111 with_aix_soname=$enable_aix_soname
9112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9113 printf "%s\n" "$with_aix_soname" >&6; }
9114 if test aix != "$with_aix_soname"; then
9115 # For the AIX way of multilib, we name the shared archive member
9116 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9117 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9118 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9119 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9120 if test 64 = "${OBJECT_MODE-32}"; then
9121 shared_archive_member_spec=shr_64
9122 else
9123 shared_archive_member_spec=shr
9124 fi
9125 fi
9126 ;;
9127 *)
9128 with_aix_soname=aix
9129 ;;
9130 esac
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141 # This can be used to rebuild libtool when needed
9142 LIBTOOL_DEPS=$ltmain
9143
9144 # Always use our own libtool.
9145 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176 test -z "$LN_S" && LN_S="ln -s"
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191 if test -n "${ZSH_VERSION+set}"; then
9192 setopt NO_GLOB_SUBST
9193 fi
9194
9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9196 printf %s "checking for objdir... " >&6; }
9197 if test ${lt_cv_objdir+y}
9198 then :
9199 printf %s "(cached) " >&6
9200 else case e in #(
9201 e) rm -f .libs 2>/dev/null
9202 mkdir .libs 2>/dev/null
9203 if test -d .libs; then
9204 lt_cv_objdir=.libs
9205 else
9206 # MS-DOS does not allow filenames that begin with a dot.
9207 lt_cv_objdir=_libs
9208 fi
9209 rmdir .libs 2>/dev/null ;;
9210 esac
9211 fi
9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9213 printf "%s\n" "$lt_cv_objdir" >&6; }
9214 objdir=$lt_cv_objdir
9215
9216
9217
9218
9219
9220 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9221
9222
9223
9224
9225 case $host_os in
9226 aix3*)
9227 # AIX sometimes has problems with the GCC collect2 program. For some
9228 # reason, if we set the COLLECT_NAMES environment variable, the problems
9229 # vanish in a puff of smoke.
9230 if test set != "${COLLECT_NAMES+set}"; then
9231 COLLECT_NAMES=
9232 export COLLECT_NAMES
9233 fi
9234 ;;
9235 esac
9236
9237 # Global variables:
9238 ofile=libtool
9239 can_build_shared=yes
9240
9241 # All known linkers require a '.a' archive for static linking (except MSVC and
9242 # ICC, which need '.lib').
9243 libext=a
9244
9245 with_gnu_ld=$lt_cv_prog_gnu_ld
9246
9247 old_CC=$CC
9248 old_CFLAGS=$CFLAGS
9249
9250 # Set sane defaults for various variables
9251 test -z "$CC" && CC=cc
9252 test -z "$LTCC" && LTCC=$CC
9253 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9254 test -z "$LD" && LD=ld
9255 test -z "$ac_objext" && ac_objext=o
9256
9257 func_cc_basename $compiler
9258 cc_basename=$func_cc_basename_result
9259
9260
9261 # Only perform the check for file, if the check method requires it
9262 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9263 case $deplibs_check_method in
9264 file_magic*)
9265 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9267 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9268 if test ${lt_cv_path_MAGIC_CMD+y}
9269 then :
9270 printf %s "(cached) " >&6
9271 else case e in #(
9272 e) case $MAGIC_CMD in
9273 [\\/*] | ?:[\\/]*)
9274 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9275 ;;
9276 *)
9277 lt_save_MAGIC_CMD=$MAGIC_CMD
9278 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9279 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9280 for ac_dir in $ac_dummy; do
9281 IFS=$lt_save_ifs
9282 test -z "$ac_dir" && ac_dir=.
9283 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9284 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9285 if test -n "$file_magic_test_file"; then
9286 case $deplibs_check_method in
9287 "file_magic "*)
9288 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9289 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9290 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9291 $EGREP "$file_magic_regex" > /dev/null; then
9292 :
9293 else
9294 cat <<_LT_EOF 1>&2
9295
9296 *** Warning: the command libtool uses to detect shared libraries,
9297 *** $file_magic_cmd, produces output that libtool cannot recognize.
9298 *** The result is that libtool may fail to recognize shared libraries
9299 *** as such. This will affect the creation of libtool libraries that
9300 *** depend on shared libraries, but programs linked with such libtool
9301 *** libraries will work regardless of this problem. Nevertheless, you
9302 *** may want to report the problem to your system manager and/or to
9303 *** [email protected]
9304
9305 _LT_EOF
9306 fi ;;
9307 esac
9308 fi
9309 break
9310 fi
9311 done
9312 IFS=$lt_save_ifs
9313 MAGIC_CMD=$lt_save_MAGIC_CMD
9314 ;;
9315 esac ;;
9316 esac
9317 fi
9318
9319 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9320 if test -n "$MAGIC_CMD"; then
9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9322 printf "%s\n" "$MAGIC_CMD" >&6; }
9323 else
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 printf "%s\n" "no" >&6; }
9326 fi
9327
9328
9329
9330
9331
9332 if test -z "$lt_cv_path_MAGIC_CMD"; then
9333 if test -n "$ac_tool_prefix"; then
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9335 printf %s "checking for file... " >&6; }
9336 if test ${lt_cv_path_MAGIC_CMD+y}
9337 then :
9338 printf %s "(cached) " >&6
9339 else case e in #(
9340 e) case $MAGIC_CMD in
9341 [\\/*] | ?:[\\/]*)
9342 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9343 ;;
9344 *)
9345 lt_save_MAGIC_CMD=$MAGIC_CMD
9346 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9347 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9348 for ac_dir in $ac_dummy; do
9349 IFS=$lt_save_ifs
9350 test -z "$ac_dir" && ac_dir=.
9351 if test -f "$ac_dir/file"; then
9352 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9353 if test -n "$file_magic_test_file"; then
9354 case $deplibs_check_method in
9355 "file_magic "*)
9356 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9357 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9358 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9359 $EGREP "$file_magic_regex" > /dev/null; then
9360 :
9361 else
9362 cat <<_LT_EOF 1>&2
9363
9364 *** Warning: the command libtool uses to detect shared libraries,
9365 *** $file_magic_cmd, produces output that libtool cannot recognize.
9366 *** The result is that libtool may fail to recognize shared libraries
9367 *** as such. This will affect the creation of libtool libraries that
9368 *** depend on shared libraries, but programs linked with such libtool
9369 *** libraries will work regardless of this problem. Nevertheless, you
9370 *** may want to report the problem to your system manager and/or to
9371 *** [email protected]
9372
9373 _LT_EOF
9374 fi ;;
9375 esac
9376 fi
9377 break
9378 fi
9379 done
9380 IFS=$lt_save_ifs
9381 MAGIC_CMD=$lt_save_MAGIC_CMD
9382 ;;
9383 esac ;;
9384 esac
9385 fi
9386
9387 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9388 if test -n "$MAGIC_CMD"; then
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9390 printf "%s\n" "$MAGIC_CMD" >&6; }
9391 else
9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393 printf "%s\n" "no" >&6; }
9394 fi
9395
9396
9397 else
9398 MAGIC_CMD=:
9399 fi
9400 fi
9401
9402 fi
9403 ;;
9404 esac
9405
9406 # Use C for the default configuration in the libtool script
9407
9408 lt_save_CC=$CC
9409 ac_ext=c
9410 ac_cpp='$CPP $CPPFLAGS'
9411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9414
9415
9416 # Source file extension for C test sources.
9417 ac_ext=c
9418
9419 # Object file extension for compiled C test sources.
9420 objext=o
9421 objext=$objext
9422
9423 # Code to be used in simple compile tests
9424 lt_simple_compile_test_code="int some_variable = 0;"
9425
9426 # Code to be used in simple link tests
9427 lt_simple_link_test_code='int main(void){return(0);}'
9428
9429
9430
9431
9432
9433
9434
9435 # If no C compiler was specified, use CC.
9436 LTCC=${LTCC-"$CC"}
9437
9438 # If no C compiler flags were specified, use CFLAGS.
9439 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9440
9441 # Allow CC to be a program name with arguments.
9442 compiler=$CC
9443
9444 # Save the default compiler, since it gets overwritten when the other
9445 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9446 compiler_DEFAULT=$CC
9447
9448 # save warnings/boilerplate of simple test code
9449 ac_outfile=conftest.$ac_objext
9450 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9451 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9452 _lt_compiler_boilerplate=`cat conftest.err`
9453 $RM conftest*
9454
9455 ac_outfile=conftest.$ac_objext
9456 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9457 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9458 _lt_linker_boilerplate=`cat conftest.err`
9459 $RM -r conftest*
9460
9461
9462 ## CAVEAT EMPTOR:
9463 ## There is no encapsulation within the following macros, do not change
9464 ## the running order or otherwise move them around unless you know exactly
9465 ## what you are doing...
9466 if test -n "$compiler"; then
9467
9468 lt_prog_compiler_no_builtin_flag=
9469
9470 if test yes = "$GCC"; then
9471 case $cc_basename in
9472 nvcc*)
9473 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9474 *)
9475 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9476 esac
9477
9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9479 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9480 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9481 then :
9482 printf %s "(cached) " >&6
9483 else case e in #(
9484 e) lt_cv_prog_compiler_rtti_exceptions=no
9485 ac_outfile=conftest.$ac_objext
9486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9487 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9488 # Insert the option either (1) after the last *FLAGS variable, or
9489 # (2) before a word containing "conftest.", or (3) at the end.
9490 # Note that $ac_compile itself does not contain backslashes and begins
9491 # with a dollar sign (not a hyphen), so the echo should work correctly.
9492 # The option is referenced via a variable to avoid confusing sed.
9493 lt_compile=`echo "$ac_compile" | $SED \
9494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9496 -e 's:$: $lt_compiler_flag:'`
9497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9498 (eval "$lt_compile" 2>conftest.err)
9499 ac_status=$?
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 if (exit $ac_status) && test -s "$ac_outfile"; then
9503 # The compiler can only warn and ignore the option if not recognized
9504 # So say no if there are warnings other than the usual output.
9505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9508 lt_cv_prog_compiler_rtti_exceptions=yes
9509 fi
9510 fi
9511 $RM conftest*
9512 ;;
9513 esac
9514 fi
9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9516 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9517
9518 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9519 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9520 else
9521 :
9522 fi
9523
9524 fi
9525
9526
9527
9528
9529
9530
9531 lt_prog_compiler_wl=
9532 lt_prog_compiler_pic=
9533 lt_prog_compiler_static=
9534
9535
9536 if test yes = "$GCC"; then
9537 lt_prog_compiler_wl='-Wl,'
9538 lt_prog_compiler_static='-static'
9539
9540 case $host_os in
9541 aix*)
9542 # All AIX code is PIC.
9543 if test ia64 = "$host_cpu"; then
9544 # AIX 5 now supports IA64 processor
9545 lt_prog_compiler_static='-Bstatic'
9546 fi
9547 lt_prog_compiler_pic='-fPIC'
9548 ;;
9549
9550 amigaos*)
9551 case $host_cpu in
9552 powerpc)
9553 # see comment about AmigaOS4 .so support
9554 lt_prog_compiler_pic='-fPIC'
9555 ;;
9556 m68k)
9557 # FIXME: we need at least 68020 code to build shared libraries, but
9558 # adding the '-m68020' flag to GCC prevents building anything better,
9559 # like '-m68040'.
9560 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9561 ;;
9562 esac
9563 ;;
9564
9565 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9566 # PIC is the default for these OSes.
9567 ;;
9568
9569 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9570 # This hack is so that the source file can tell whether it is being
9571 # built for inclusion in a dll (and should export symbols for example).
9572 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9573 # (--disable-auto-import) libraries
9574 lt_prog_compiler_pic='-DDLL_EXPORT'
9575 case $host_os in
9576 os2*)
9577 lt_prog_compiler_static='$wl-static'
9578 ;;
9579 esac
9580 ;;
9581
9582 darwin* | rhapsody*)
9583 # PIC is the default on this platform
9584 # Common symbols not allowed in MH_DYLIB files
9585 lt_prog_compiler_pic='-fno-common'
9586 ;;
9587
9588 haiku*)
9589 # PIC is the default for Haiku.
9590 # The "-static" flag exists, but is broken.
9591 lt_prog_compiler_static=
9592 ;;
9593
9594 hpux*)
9595 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9596 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9597 # sets the default TLS model and affects inlining.
9598 case $host_cpu in
9599 hppa*64*)
9600 # +Z the default
9601 ;;
9602 *)
9603 lt_prog_compiler_pic='-fPIC'
9604 ;;
9605 esac
9606 ;;
9607
9608 interix[3-9]*)
9609 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9610 # Instead, we relocate shared libraries at runtime.
9611 ;;
9612
9613 msdosdjgpp*)
9614 # Just because we use GCC doesn't mean we suddenly get shared libraries
9615 # on systems that don't support them.
9616 lt_prog_compiler_can_build_shared=no
9617 enable_shared=no
9618 ;;
9619
9620 *nto* | *qnx*)
9621 # QNX uses GNU C++, but need to define -shared option too, otherwise
9622 # it will coredump.
9623 lt_prog_compiler_pic='-fPIC -shared'
9624 ;;
9625
9626 sysv4*MP*)
9627 if test -d /usr/nec; then
9628 lt_prog_compiler_pic=-Kconform_pic
9629 fi
9630 ;;
9631
9632 *)
9633 lt_prog_compiler_pic='-fPIC'
9634 ;;
9635 esac
9636
9637 case $cc_basename in
9638 nvcc*) # Cuda Compiler Driver 2.2
9639 lt_prog_compiler_wl='-Xlinker '
9640 if test -n "$lt_prog_compiler_pic"; then
9641 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9642 fi
9643 ;;
9644 esac
9645 else
9646 # PORTME Check for flag to pass linker flags through the system compiler.
9647 case $host_os in
9648 aix*)
9649 lt_prog_compiler_wl='-Wl,'
9650 if test ia64 = "$host_cpu"; then
9651 # AIX 5 now supports IA64 processor
9652 lt_prog_compiler_static='-Bstatic'
9653 else
9654 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9655 fi
9656 ;;
9657
9658 darwin* | rhapsody*)
9659 # PIC is the default on this platform
9660 # Common symbols not allowed in MH_DYLIB files
9661 lt_prog_compiler_pic='-fno-common'
9662 case $cc_basename in
9663 nagfor*)
9664 # NAG Fortran compiler
9665 lt_prog_compiler_wl='-Wl,-Wl,,'
9666 lt_prog_compiler_pic='-PIC'
9667 lt_prog_compiler_static='-Bstatic'
9668 ;;
9669 esac
9670 ;;
9671
9672 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9673 # This hack is so that the source file can tell whether it is being
9674 # built for inclusion in a dll (and should export symbols for example).
9675 lt_prog_compiler_pic='-DDLL_EXPORT'
9676 case $host_os in
9677 os2*)
9678 lt_prog_compiler_static='$wl-static'
9679 ;;
9680 esac
9681 ;;
9682
9683 hpux9* | hpux10* | hpux11*)
9684 lt_prog_compiler_wl='-Wl,'
9685 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9686 # not for PA HP-UX.
9687 case $host_cpu in
9688 hppa*64*|ia64*)
9689 # +Z the default
9690 ;;
9691 *)
9692 lt_prog_compiler_pic='+Z'
9693 ;;
9694 esac
9695 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9696 lt_prog_compiler_static='$wl-a ${wl}archive'
9697 ;;
9698
9699 irix5* | irix6* | nonstopux*)
9700 lt_prog_compiler_wl='-Wl,'
9701 # PIC (with -KPIC) is the default.
9702 lt_prog_compiler_static='-non_shared'
9703 ;;
9704
9705 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9706 case $cc_basename in
9707 # old Intel for x86_64, which still supported -KPIC.
9708 ecc*)
9709 lt_prog_compiler_wl='-Wl,'
9710 lt_prog_compiler_pic='-KPIC'
9711 lt_prog_compiler_static='-static'
9712 ;;
9713 *flang* | ftn | f18* | f95*)
9714 # Flang compiler.
9715 lt_prog_compiler_wl='-Wl,'
9716 lt_prog_compiler_pic='-fPIC'
9717 lt_prog_compiler_static='-static'
9718 ;;
9719 # icc used to be incompatible with GCC.
9720 # ICC 10 doesn't accept -KPIC any more.
9721 icc* | ifort*)
9722 lt_prog_compiler_wl='-Wl,'
9723 lt_prog_compiler_pic='-fPIC'
9724 lt_prog_compiler_static='-static'
9725 ;;
9726 # Lahey Fortran 8.1.
9727 lf95*)
9728 lt_prog_compiler_wl='-Wl,'
9729 lt_prog_compiler_pic='--shared'
9730 lt_prog_compiler_static='--static'
9731 ;;
9732 nagfor*)
9733 # NAG Fortran compiler
9734 lt_prog_compiler_wl='-Wl,-Wl,,'
9735 lt_prog_compiler_pic='-PIC'
9736 lt_prog_compiler_static='-Bstatic'
9737 ;;
9738 tcc*)
9739 # Fabrice Bellard et al's Tiny C Compiler
9740 lt_prog_compiler_wl='-Wl,'
9741 lt_prog_compiler_pic='-fPIC'
9742 lt_prog_compiler_static='-static'
9743 ;;
9744 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9745 # Portland Group compilers (*not* the Pentium gcc compiler,
9746 # which looks to be a dead project)
9747 lt_prog_compiler_wl='-Wl,'
9748 lt_prog_compiler_pic='-fpic'
9749 lt_prog_compiler_static='-Bstatic'
9750 ;;
9751 ccc*)
9752 lt_prog_compiler_wl='-Wl,'
9753 # All Alpha code is PIC.
9754 lt_prog_compiler_static='-non_shared'
9755 ;;
9756 xl* | bgxl* | bgf* | mpixl*)
9757 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9758 lt_prog_compiler_wl='-Wl,'
9759 lt_prog_compiler_pic='-qpic'
9760 lt_prog_compiler_static='-qstaticlink'
9761 ;;
9762 *)
9763 case `$CC -V 2>&1 | $SED 5q` in
9764 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9765 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9766 lt_prog_compiler_pic='-KPIC'
9767 lt_prog_compiler_static='-Bstatic'
9768 lt_prog_compiler_wl=''
9769 ;;
9770 *Sun\ F* | *Sun*Fortran*)
9771 lt_prog_compiler_pic='-KPIC'
9772 lt_prog_compiler_static='-Bstatic'
9773 lt_prog_compiler_wl='-Qoption ld '
9774 ;;
9775 *Sun\ C*)
9776 # Sun C 5.9
9777 lt_prog_compiler_pic='-KPIC'
9778 lt_prog_compiler_static='-Bstatic'
9779 lt_prog_compiler_wl='-Wl,'
9780 ;;
9781 *Intel*\ [CF]*Compiler*)
9782 lt_prog_compiler_wl='-Wl,'
9783 lt_prog_compiler_pic='-fPIC'
9784 lt_prog_compiler_static='-static'
9785 ;;
9786 *Portland\ Group*)
9787 lt_prog_compiler_wl='-Wl,'
9788 lt_prog_compiler_pic='-fpic'
9789 lt_prog_compiler_static='-Bstatic'
9790 ;;
9791 esac
9792 ;;
9793 esac
9794 ;;
9795
9796 newsos6)
9797 lt_prog_compiler_pic='-KPIC'
9798 lt_prog_compiler_static='-Bstatic'
9799 ;;
9800
9801 *-mlibc)
9802 lt_prog_compiler_wl='-Wl,'
9803 lt_prog_compiler_pic='-fPIC'
9804 lt_prog_compiler_static='-static'
9805 ;;
9806
9807 *nto* | *qnx*)
9808 # QNX uses GNU C++, but need to define -shared option too, otherwise
9809 # it will coredump.
9810 lt_prog_compiler_pic='-fPIC -shared'
9811 ;;
9812
9813 osf3* | osf4* | osf5*)
9814 lt_prog_compiler_wl='-Wl,'
9815 # All OSF/1 code is PIC.
9816 lt_prog_compiler_static='-non_shared'
9817 ;;
9818
9819 rdos*)
9820 lt_prog_compiler_static='-non_shared'
9821 ;;
9822
9823 serenity*)
9824 ;;
9825
9826 solaris*)
9827 lt_prog_compiler_pic='-KPIC'
9828 lt_prog_compiler_static='-Bstatic'
9829 case $cc_basename in
9830 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9831 lt_prog_compiler_wl='-Qoption ld ';;
9832 *)
9833 lt_prog_compiler_wl='-Wl,';;
9834 esac
9835 ;;
9836
9837 sunos4*)
9838 lt_prog_compiler_wl='-Qoption ld '
9839 lt_prog_compiler_pic='-PIC'
9840 lt_prog_compiler_static='-Bstatic'
9841 ;;
9842
9843 sysv4 | sysv4.2uw2* | sysv4.3*)
9844 lt_prog_compiler_wl='-Wl,'
9845 lt_prog_compiler_pic='-KPIC'
9846 lt_prog_compiler_static='-Bstatic'
9847 ;;
9848
9849 sysv4*MP*)
9850 if test -d /usr/nec; then
9851 lt_prog_compiler_pic='-Kconform_pic'
9852 lt_prog_compiler_static='-Bstatic'
9853 fi
9854 ;;
9855
9856 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9857 lt_prog_compiler_wl='-Wl,'
9858 lt_prog_compiler_pic='-KPIC'
9859 lt_prog_compiler_static='-Bstatic'
9860 ;;
9861
9862 unicos*)
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_can_build_shared=no
9865 ;;
9866
9867 uts4*)
9868 lt_prog_compiler_pic='-pic'
9869 lt_prog_compiler_static='-Bstatic'
9870 ;;
9871
9872 *)
9873 lt_prog_compiler_can_build_shared=no
9874 ;;
9875 esac
9876 fi
9877
9878 case $host_os in
9879 # For platforms that do not support PIC, -DPIC is meaningless:
9880 *djgpp*)
9881 lt_prog_compiler_pic=
9882 ;;
9883 *)
9884 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9885 ;;
9886 esac
9887
9888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9889 printf %s "checking for $compiler option to produce PIC... " >&6; }
9890 if test ${lt_cv_prog_compiler_pic+y}
9891 then :
9892 printf %s "(cached) " >&6
9893 else case e in #(
9894 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9895 esac
9896 fi
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9898 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9899 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9900
9901 #
9902 # Check to make sure the PIC flag actually works.
9903 #
9904 if test -n "$lt_prog_compiler_pic"; then
9905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9906 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9907 if test ${lt_cv_prog_compiler_pic_works+y}
9908 then :
9909 printf %s "(cached) " >&6
9910 else case e in #(
9911 e) lt_cv_prog_compiler_pic_works=no
9912 ac_outfile=conftest.$ac_objext
9913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9914 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9915 # Insert the option either (1) after the last *FLAGS variable, or
9916 # (2) before a word containing "conftest.", or (3) at the end.
9917 # Note that $ac_compile itself does not contain backslashes and begins
9918 # with a dollar sign (not a hyphen), so the echo should work correctly.
9919 # The option is referenced via a variable to avoid confusing sed.
9920 lt_compile=`echo "$ac_compile" | $SED \
9921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9923 -e 's:$: $lt_compiler_flag:'`
9924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9925 (eval "$lt_compile" 2>conftest.err)
9926 ac_status=$?
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 if (exit $ac_status) && test -s "$ac_outfile"; then
9930 # The compiler can only warn and ignore the option if not recognized
9931 # So say no if there are warnings other than the usual output.
9932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9934 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9935 lt_cv_prog_compiler_pic_works=yes
9936 fi
9937 fi
9938 $RM conftest*
9939 ;;
9940 esac
9941 fi
9942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9943 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9944
9945 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9946 case $lt_prog_compiler_pic in
9947 "" | " "*) ;;
9948 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9949 esac
9950 else
9951 lt_prog_compiler_pic=
9952 lt_prog_compiler_can_build_shared=no
9953 fi
9954
9955 fi
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967 #
9968 # Check to make sure the static flag actually works.
9969 #
9970 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9972 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9973 if test ${lt_cv_prog_compiler_static_works+y}
9974 then :
9975 printf %s "(cached) " >&6
9976 else case e in #(
9977 e) lt_cv_prog_compiler_static_works=no
9978 save_LDFLAGS=$LDFLAGS
9979 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9980 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9981 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9982 # The linker can only warn and ignore the option if not recognized
9983 # So say no if there are warnings
9984 if test -s conftest.err; then
9985 # Append any errors to the config.log.
9986 cat conftest.err 1>&5
9987 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9989 if diff conftest.exp conftest.er2 >/dev/null; then
9990 lt_cv_prog_compiler_static_works=yes
9991 fi
9992 else
9993 lt_cv_prog_compiler_static_works=yes
9994 fi
9995 fi
9996 $RM -r conftest*
9997 LDFLAGS=$save_LDFLAGS
9998 ;;
9999 esac
10000 fi
10001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10002 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10003
10004 if test yes = "$lt_cv_prog_compiler_static_works"; then
10005 :
10006 else
10007 lt_prog_compiler_static=
10008 fi
10009
10010
10011
10012
10013
10014
10015
10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10017 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10018 if test ${lt_cv_prog_compiler_c_o+y}
10019 then :
10020 printf %s "(cached) " >&6
10021 else case e in #(
10022 e) lt_cv_prog_compiler_c_o=no
10023 $RM -r conftest 2>/dev/null
10024 mkdir conftest
10025 cd conftest
10026 mkdir out
10027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10028
10029 lt_compiler_flag="-o out/conftest2.$ac_objext"
10030 # Insert the option either (1) after the last *FLAGS variable, or
10031 # (2) before a word containing "conftest.", or (3) at the end.
10032 # Note that $ac_compile itself does not contain backslashes and begins
10033 # with a dollar sign (not a hyphen), so the echo should work correctly.
10034 lt_compile=`echo "$ac_compile" | $SED \
10035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10037 -e 's:$: $lt_compiler_flag:'`
10038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10039 (eval "$lt_compile" 2>out/conftest.err)
10040 ac_status=$?
10041 cat out/conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10044 then
10045 # The compiler can only warn and ignore the option if not recognized
10046 # So say no if there are warnings
10047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10050 lt_cv_prog_compiler_c_o=yes
10051 fi
10052 fi
10053 chmod u+w . 2>&5
10054 $RM conftest*
10055 # SGI C++ compiler will create directory out/ii_files/ for
10056 # template instantiation
10057 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10058 $RM out/* && rmdir out
10059 cd ..
10060 $RM -r conftest
10061 $RM conftest*
10062 ;;
10063 esac
10064 fi
10065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10066 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10067
10068
10069
10070
10071
10072
10073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10074 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10075 if test ${lt_cv_prog_compiler_c_o+y}
10076 then :
10077 printf %s "(cached) " >&6
10078 else case e in #(
10079 e) lt_cv_prog_compiler_c_o=no
10080 $RM -r conftest 2>/dev/null
10081 mkdir conftest
10082 cd conftest
10083 mkdir out
10084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10085
10086 lt_compiler_flag="-o out/conftest2.$ac_objext"
10087 # Insert the option either (1) after the last *FLAGS variable, or
10088 # (2) before a word containing "conftest.", or (3) at the end.
10089 # Note that $ac_compile itself does not contain backslashes and begins
10090 # with a dollar sign (not a hyphen), so the echo should work correctly.
10091 lt_compile=`echo "$ac_compile" | $SED \
10092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10094 -e 's:$: $lt_compiler_flag:'`
10095 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10096 (eval "$lt_compile" 2>out/conftest.err)
10097 ac_status=$?
10098 cat out/conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10101 then
10102 # The compiler can only warn and ignore the option if not recognized
10103 # So say no if there are warnings
10104 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10105 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10106 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10107 lt_cv_prog_compiler_c_o=yes
10108 fi
10109 fi
10110 chmod u+w . 2>&5
10111 $RM conftest*
10112 # SGI C++ compiler will create directory out/ii_files/ for
10113 # template instantiation
10114 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10115 $RM out/* && rmdir out
10116 cd ..
10117 $RM -r conftest
10118 $RM conftest*
10119 ;;
10120 esac
10121 fi
10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10123 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10124
10125
10126
10127
10128 hard_links=nottested
10129 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10130 # do not overwrite the value of need_locks provided by the user
10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10132 printf %s "checking if we can lock with hard links... " >&6; }
10133 hard_links=yes
10134 $RM conftest*
10135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10136 touch conftest.a
10137 ln conftest.a conftest.b 2>&5 || hard_links=no
10138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10140 printf "%s\n" "$hard_links" >&6; }
10141 if test no = "$hard_links"; then
10142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10143 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10144 need_locks=warn
10145 fi
10146 else
10147 need_locks=no
10148 fi
10149
10150
10151
10152
10153
10154
10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10156 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10157
10158 runpath_var=
10159 allow_undefined_flag=
10160 always_export_symbols=no
10161 archive_cmds=
10162 archive_expsym_cmds=
10163 compiler_needs_object=no
10164 enable_shared_with_static_runtimes=no
10165 export_dynamic_flag_spec=
10166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10167 hardcode_automatic=no
10168 hardcode_direct=no
10169 hardcode_direct_absolute=no
10170 hardcode_libdir_flag_spec=
10171 hardcode_libdir_separator=
10172 hardcode_minus_L=no
10173 hardcode_shlibpath_var=unsupported
10174 inherit_rpath=no
10175 link_all_deplibs=unknown
10176 module_cmds=
10177 module_expsym_cmds=
10178 old_archive_from_new_cmds=
10179 old_archive_from_expsyms_cmds=
10180 thread_safe_flag_spec=
10181 whole_archive_flag_spec=
10182 # include_expsyms should be a list of space-separated symbols to be *always*
10183 # included in the symbol list
10184 include_expsyms=
10185 # exclude_expsyms can be an extended regexp of symbols to exclude
10186 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10187 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10188 # as well as any symbol that contains 'd'.
10189 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10191 # platforms (ab)use it in PIC code, but their linkers get confused if
10192 # the symbol is explicitly referenced. Since portable code cannot
10193 # rely on this symbol name, it's probably fine to never include it in
10194 # preloaded symbol tables.
10195 # Exclude shared library initialization/finalization symbols.
10196 extract_expsyms_cmds=
10197
10198 case $host_os in
10199 cygwin* | mingw* | windows* | pw32* | cegcc*)
10200 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10201 # When not using gcc, we currently assume that we are using
10202 # Microsoft Visual C++ or Intel C++ Compiler.
10203 if test yes != "$GCC"; then
10204 with_gnu_ld=no
10205 fi
10206 ;;
10207 interix*)
10208 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10209 with_gnu_ld=yes
10210 ;;
10211 esac
10212
10213 ld_shlibs=yes
10214
10215 # On some targets, GNU ld is compatible enough with the native linker
10216 # that we're better off using the native interface for both.
10217 lt_use_gnu_ld_interface=no
10218 if test yes = "$with_gnu_ld"; then
10219 case $host_os in
10220 aix*)
10221 # The AIX port of GNU ld has always aspired to compatibility
10222 # with the native linker. However, as the warning in the GNU ld
10223 # block says, versions before 2.19.5* couldn't really create working
10224 # shared libraries, regardless of the interface used.
10225 case `$LD -v 2>&1` in
10226 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10227 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10228 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10229 *)
10230 lt_use_gnu_ld_interface=yes
10231 ;;
10232 esac
10233 ;;
10234 *)
10235 lt_use_gnu_ld_interface=yes
10236 ;;
10237 esac
10238 fi
10239
10240 if test yes = "$lt_use_gnu_ld_interface"; then
10241 # If archive_cmds runs LD, not CC, wlarc should be empty
10242 wlarc='$wl'
10243
10244 # Set some defaults for GNU ld with shared library support. These
10245 # are reset later if shared libraries are not supported. Putting them
10246 # here allows them to be overridden if necessary.
10247 runpath_var=LD_RUN_PATH
10248 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10249 export_dynamic_flag_spec='$wl--export-dynamic'
10250 # ancient GNU ld didn't support --whole-archive et. al.
10251 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10252 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10253 else
10254 whole_archive_flag_spec=
10255 fi
10256 supports_anon_versioning=no
10257 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10258 *GNU\ gold*) supports_anon_versioning=yes ;;
10259 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10260 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10261 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10262 *\ 2.11.*) ;; # other 2.11 versions
10263 *) supports_anon_versioning=yes ;;
10264 esac
10265
10266 # See if GNU ld supports shared libraries.
10267 case $host_os in
10268 aix[3-9]*)
10269 # On AIX/PPC, the GNU linker is very broken
10270 if test ia64 != "$host_cpu"; then
10271 ld_shlibs=no
10272 cat <<_LT_EOF 1>&2
10273
10274 *** Warning: the GNU linker, at least up to release 2.19, is reported
10275 *** to be unable to reliably create shared libraries on AIX.
10276 *** Therefore, libtool is disabling shared libraries support. If you
10277 *** really care for shared libraries, you may want to install binutils
10278 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10279 *** You will then need to restart the configuration process.
10280
10281 _LT_EOF
10282 fi
10283 ;;
10284
10285 amigaos*)
10286 case $host_cpu in
10287 powerpc)
10288 # see comment about AmigaOS4 .so support
10289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10290 archive_expsym_cmds=''
10291 ;;
10292 m68k)
10293 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)'
10294 hardcode_libdir_flag_spec='-L$libdir'
10295 hardcode_minus_L=yes
10296 ;;
10297 esac
10298 ;;
10299
10300 beos*)
10301 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10302 allow_undefined_flag=unsupported
10303 # Joseph Beckenbach <[email protected]> says some releases of gcc
10304 # support --undefined. This deserves some investigation. FIXME
10305 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10306 else
10307 ld_shlibs=no
10308 fi
10309 ;;
10310
10311 cygwin* | mingw* | windows* | pw32* | cegcc*)
10312 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10313 # as there is no search path for DLLs.
10314 hardcode_libdir_flag_spec='-L$libdir'
10315 export_dynamic_flag_spec='$wl--export-all-symbols'
10316 allow_undefined_flag=unsupported
10317 always_export_symbols=no
10318 enable_shared_with_static_runtimes=yes
10319 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'
10320 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10321 file_list_spec='@'
10322
10323 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10325 # If the export-symbols file already is a .def file, use it as
10326 # is; otherwise, prepend EXPORTS...
10327 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10328 cp $export_symbols $output_objdir/$soname.def;
10329 else
10330 echo EXPORTS > $output_objdir/$soname.def;
10331 cat $export_symbols >> $output_objdir/$soname.def;
10332 fi~
10333 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10334 else
10335 ld_shlibs=no
10336 fi
10337 ;;
10338
10339 haiku*)
10340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10341 link_all_deplibs=no
10342 ;;
10343
10344 os2*)
10345 hardcode_libdir_flag_spec='-L$libdir'
10346 hardcode_minus_L=yes
10347 allow_undefined_flag=unsupported
10348 shrext_cmds=.dll
10349 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10350 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10351 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10352 $ECHO EXPORTS >> $output_objdir/$libname.def~
10353 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10354 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10355 emximp -o $lib $output_objdir/$libname.def'
10356 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10357 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10358 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10359 $ECHO EXPORTS >> $output_objdir/$libname.def~
10360 prefix_cmds="$SED"~
10361 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10362 prefix_cmds="$prefix_cmds -e 1d";
10363 fi~
10364 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10365 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10366 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10367 emximp -o $lib $output_objdir/$libname.def'
10368 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10369 enable_shared_with_static_runtimes=yes
10370 file_list_spec='@'
10371 ;;
10372
10373 interix[3-9]*)
10374 hardcode_direct=no
10375 hardcode_shlibpath_var=no
10376 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10377 export_dynamic_flag_spec='$wl-E'
10378 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10379 # Instead, shared libraries are loaded at an image base (0x10000000 by
10380 # default) and relocated if they conflict, which is a slow very memory
10381 # consuming and fragmenting process. To avoid this, we pick a random,
10382 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10383 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10385 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'
10386 ;;
10387
10388 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10389 tmp_diet=no
10390 if test linux-dietlibc = "$host_os"; then
10391 case $cc_basename in
10392 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10393 esac
10394 fi
10395 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10396 && test no = "$tmp_diet"
10397 then
10398 tmp_addflag=' $pic_flag'
10399 tmp_sharedflag='-shared'
10400 case $cc_basename,$host_cpu in
10401 pgcc*) # Portland Group C compiler
10402 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'
10403 tmp_addflag=' $pic_flag'
10404 ;;
10405 pgf77* | pgf90* | pgf95* | pgfortran*)
10406 # Portland Group f77 and f90 compilers
10407 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'
10408 tmp_addflag=' $pic_flag -Mnomain' ;;
10409 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10410 tmp_addflag=' -i_dynamic' ;;
10411 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10412 tmp_addflag=' -i_dynamic -nofor_main' ;;
10413 ifc* | ifort*) # Intel Fortran compiler
10414 tmp_addflag=' -nofor_main' ;;
10415 lf95*) # Lahey Fortran 8.1
10416 whole_archive_flag_spec=
10417 tmp_sharedflag='--shared' ;;
10418 nagfor*) # NAGFOR 5.3
10419 tmp_sharedflag='-Wl,-shared' ;;
10420 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10421 tmp_sharedflag='-qmkshrobj'
10422 tmp_addflag= ;;
10423 nvcc*) # Cuda Compiler Driver 2.2
10424 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'
10425 compiler_needs_object=yes
10426 ;;
10427 esac
10428 case `$CC -V 2>&1 | $SED 5q` in
10429 *Sun\ C*) # Sun C 5.9
10430 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'
10431 compiler_needs_object=yes
10432 tmp_sharedflag='-G' ;;
10433 *Sun\ F*) # Sun Fortran 8.3
10434 tmp_sharedflag='-G' ;;
10435 esac
10436 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10437
10438 if test yes = "$supports_anon_versioning"; then
10439 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10440 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10441 echo "local: *; };" >> $output_objdir/$libname.ver~
10442 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10443 fi
10444
10445 case $cc_basename in
10446 tcc*)
10447 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10448 export_dynamic_flag_spec='-rdynamic'
10449 ;;
10450 xlf* | bgf* | bgxlf* | mpixlf*)
10451 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10452 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10453 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10454 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10455 if test yes = "$supports_anon_versioning"; then
10456 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10457 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10458 echo "local: *; };" >> $output_objdir/$libname.ver~
10459 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10460 fi
10461 ;;
10462 esac
10463 else
10464 ld_shlibs=no
10465 fi
10466 ;;
10467
10468 *-mlibc)
10469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10470 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10471 ;;
10472
10473 netbsd* | netbsdelf*-gnu)
10474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10475 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10476 wlarc=
10477 else
10478 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10479 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10480 fi
10481 ;;
10482
10483 solaris*)
10484 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10485 ld_shlibs=no
10486 cat <<_LT_EOF 1>&2
10487
10488 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10489 *** create shared libraries on Solaris systems. Therefore, libtool
10490 *** is disabling shared libraries support. We urge you to upgrade GNU
10491 *** binutils to release 2.9.1 or newer. Another option is to modify
10492 *** your PATH or compiler configuration so that the native linker is
10493 *** used, and then restart.
10494
10495 _LT_EOF
10496 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10497 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10498 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10499 else
10500 ld_shlibs=no
10501 fi
10502 ;;
10503
10504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10505 case `$LD -v 2>&1` in
10506 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10507 ld_shlibs=no
10508 cat <<_LT_EOF 1>&2
10509
10510 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10511 *** reliably create shared libraries on SCO systems. Therefore, libtool
10512 *** is disabling shared libraries support. We urge you to upgrade GNU
10513 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10514 *** your PATH or compiler configuration so that the native linker is
10515 *** used, and then restart.
10516
10517 _LT_EOF
10518 ;;
10519 *)
10520 # For security reasons, it is highly recommended that you always
10521 # use absolute paths for naming shared libraries, and exclude the
10522 # DT_RUNPATH tag from executables and libraries. But doing so
10523 # requires that you compile everything twice, which is a pain.
10524 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10525 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10527 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10528 else
10529 ld_shlibs=no
10530 fi
10531 ;;
10532 esac
10533 ;;
10534
10535 sunos4*)
10536 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10537 wlarc=
10538 hardcode_direct=yes
10539 hardcode_shlibpath_var=no
10540 ;;
10541
10542 *)
10543 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10544 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10545 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10546 else
10547 ld_shlibs=no
10548 fi
10549 ;;
10550 esac
10551
10552 if test no = "$ld_shlibs"; then
10553 runpath_var=
10554 hardcode_libdir_flag_spec=
10555 export_dynamic_flag_spec=
10556 whole_archive_flag_spec=
10557 fi
10558 else
10559 # PORTME fill in a description of your system's linker (not GNU ld)
10560 case $host_os in
10561 aix3*)
10562 allow_undefined_flag=unsupported
10563 always_export_symbols=yes
10564 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'
10565 # Note: this linker hardcodes the directories in LIBPATH if there
10566 # are no directories specified by -L.
10567 hardcode_minus_L=yes
10568 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10569 # Neither direct hardcoding nor static linking is supported with a
10570 # broken collect2.
10571 hardcode_direct=unsupported
10572 fi
10573 ;;
10574
10575 aix[4-9]*)
10576 if test ia64 = "$host_cpu"; then
10577 # On IA64, the linker does run time linking by default, so we don't
10578 # have to do anything special.
10579 aix_use_runtimelinking=no
10580 exp_sym_flag='-Bexport'
10581 no_entry_flag=
10582 else
10583 # If we're using GNU nm, then we don't want the "-C" option.
10584 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10585 # Without the "-l" option, or with the "-B" option, AIX nm treats
10586 # weak defined symbols like other global defined symbols, whereas
10587 # GNU nm marks them as "W".
10588 # While the 'weak' keyword is ignored in the Export File, we need
10589 # it in the Import File for the 'aix-soname' feature, so we have
10590 # to replace the "-B" option with "-P" for AIX nm.
10591 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10592 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'
10593 else
10594 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'
10595 fi
10596 aix_use_runtimelinking=no
10597
10598 # Test if we are trying to use run time linking or normal
10599 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10600 # have runtime linking enabled, and use it for executables.
10601 # For shared libraries, we enable/disable runtime linking
10602 # depending on the kind of the shared library created -
10603 # when "with_aix_soname,aix_use_runtimelinking" is:
10604 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10605 # "aix,yes" lib.so shared, rtl:yes, for executables
10606 # lib.a static archive
10607 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10608 # lib.a(lib.so.V) shared, rtl:no, for executables
10609 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10610 # lib.a(lib.so.V) shared, rtl:no
10611 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10612 # lib.a static archive
10613 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10614 for ld_flag in $LDFLAGS; do
10615 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10616 aix_use_runtimelinking=yes
10617 break
10618 fi
10619 done
10620 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10621 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10622 # so we don't have lib.a shared libs to link our executables.
10623 # We have to force runtime linking in this case.
10624 aix_use_runtimelinking=yes
10625 LDFLAGS="$LDFLAGS -Wl,-brtl"
10626 fi
10627 ;;
10628 esac
10629
10630 exp_sym_flag='-bexport'
10631 no_entry_flag='-bnoentry'
10632 fi
10633
10634 # When large executables or shared objects are built, AIX ld can
10635 # have problems creating the table of contents. If linking a library
10636 # or program results in "error TOC overflow" add -mminimal-toc to
10637 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10638 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10639
10640 archive_cmds=''
10641 hardcode_direct=yes
10642 hardcode_direct_absolute=yes
10643 hardcode_libdir_separator=':'
10644 link_all_deplibs=yes
10645 file_list_spec='$wl-f,'
10646 case $with_aix_soname,$aix_use_runtimelinking in
10647 aix,*) ;; # traditional, no import file
10648 svr4,* | *,yes) # use import file
10649 # The Import File defines what to hardcode.
10650 hardcode_direct=no
10651 hardcode_direct_absolute=no
10652 ;;
10653 esac
10654
10655 if test yes = "$GCC"; then
10656 case $host_os in aix4.[012]|aix4.[012].*)
10657 # We only want to do this on AIX 4.2 and lower, the check
10658 # below for broken collect2 doesn't work under 4.3+
10659 collect2name=`$CC -print-prog-name=collect2`
10660 if test -f "$collect2name" &&
10661 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10662 then
10663 # We have reworked collect2
10664 :
10665 else
10666 # We have old collect2
10667 hardcode_direct=unsupported
10668 # It fails to find uninstalled libraries when the uninstalled
10669 # path is not listed in the libpath. Setting hardcode_minus_L
10670 # to unsupported forces relinking
10671 hardcode_minus_L=yes
10672 hardcode_libdir_flag_spec='-L$libdir'
10673 hardcode_libdir_separator=
10674 fi
10675 ;;
10676 esac
10677 shared_flag='-shared'
10678 if test yes = "$aix_use_runtimelinking"; then
10679 shared_flag="$shared_flag "'$wl-G'
10680 fi
10681 # Need to ensure runtime linking is disabled for the traditional
10682 # shared library, or the linker may eventually find shared libraries
10683 # /with/ Import File - we do not want to mix them.
10684 shared_flag_aix='-shared'
10685 shared_flag_svr4='-shared $wl-G'
10686 else
10687 # not using gcc
10688 if test ia64 = "$host_cpu"; then
10689 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10690 # chokes on -Wl,-G. The following line is correct:
10691 shared_flag='-G'
10692 else
10693 if test yes = "$aix_use_runtimelinking"; then
10694 shared_flag='$wl-G'
10695 else
10696 shared_flag='$wl-bM:SRE'
10697 fi
10698 shared_flag_aix='$wl-bM:SRE'
10699 shared_flag_svr4='$wl-G'
10700 fi
10701 fi
10702
10703 export_dynamic_flag_spec='$wl-bexpall'
10704 # It seems that -bexpall does not export symbols beginning with
10705 # underscore (_), so it is better to generate a list of symbols to export.
10706 always_export_symbols=yes
10707 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10708 # Warning - without using the other runtime loading flags (-brtl),
10709 # -berok will link without error, but may produce a broken library.
10710 allow_undefined_flag='-berok'
10711 # Determine the default libpath from the value encoded in an
10712 # empty executable.
10713 if test set = "${lt_cv_aix_libpath+set}"; then
10714 aix_libpath=$lt_cv_aix_libpath
10715 else
10716 if test ${lt_cv_aix_libpath_+y}
10717 then :
10718 printf %s "(cached) " >&6
10719 else case e in #(
10720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722
10723 int
10724 main (void)
10725 {
10726
10727 ;
10728 return 0;
10729 }
10730 _ACEOF
10731 if ac_fn_c_try_link "$LINENO"
10732 then :
10733
10734 lt_aix_libpath_sed='
10735 /Import File Strings/,/^$/ {
10736 /^0/ {
10737 s/^0 *\([^ ]*\) *$/\1/
10738 p
10739 }
10740 }'
10741 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10742 # Check for a 64-bit object if we didn't find anything.
10743 if test -z "$lt_cv_aix_libpath_"; then
10744 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10745 fi
10746 fi
10747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10748 conftest$ac_exeext conftest.$ac_ext
10749 if test -z "$lt_cv_aix_libpath_"; then
10750 lt_cv_aix_libpath_=/usr/lib:/lib
10751 fi
10752 ;;
10753 esac
10754 fi
10755
10756 aix_libpath=$lt_cv_aix_libpath_
10757 fi
10758
10759 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10760 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
10761 else
10762 if test ia64 = "$host_cpu"; then
10763 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10764 allow_undefined_flag="-z nodefs"
10765 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"
10766 else
10767 # Determine the default libpath from the value encoded in an
10768 # empty executable.
10769 if test set = "${lt_cv_aix_libpath+set}"; then
10770 aix_libpath=$lt_cv_aix_libpath
10771 else
10772 if test ${lt_cv_aix_libpath_+y}
10773 then :
10774 printf %s "(cached) " >&6
10775 else case e in #(
10776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778
10779 int
10780 main (void)
10781 {
10782
10783 ;
10784 return 0;
10785 }
10786 _ACEOF
10787 if ac_fn_c_try_link "$LINENO"
10788 then :
10789
10790 lt_aix_libpath_sed='
10791 /Import File Strings/,/^$/ {
10792 /^0/ {
10793 s/^0 *\([^ ]*\) *$/\1/
10794 p
10795 }
10796 }'
10797 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10798 # Check for a 64-bit object if we didn't find anything.
10799 if test -z "$lt_cv_aix_libpath_"; then
10800 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10801 fi
10802 fi
10803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10804 conftest$ac_exeext conftest.$ac_ext
10805 if test -z "$lt_cv_aix_libpath_"; then
10806 lt_cv_aix_libpath_=/usr/lib:/lib
10807 fi
10808 ;;
10809 esac
10810 fi
10811
10812 aix_libpath=$lt_cv_aix_libpath_
10813 fi
10814
10815 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10816 # Warning - without using the other run time loading flags,
10817 # -berok will link without error, but may produce a broken library.
10818 no_undefined_flag=' $wl-bernotok'
10819 allow_undefined_flag=' $wl-berok'
10820 if test yes = "$with_gnu_ld"; then
10821 # We only use this code for GNU lds that support --whole-archive.
10822 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10823 else
10824 # Exported symbols can be pulled into shared objects from archives
10825 whole_archive_flag_spec='$convenience'
10826 fi
10827 archive_cmds_need_lc=yes
10828 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10829 # -brtl affects multiple linker settings, -berok does not and is overridden later
10830 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10831 if test svr4 != "$with_aix_soname"; then
10832 # This is similar to how AIX traditionally builds its shared libraries.
10833 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'
10834 fi
10835 if test aix != "$with_aix_soname"; then
10836 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'
10837 else
10838 # used by -dlpreopen to get the symbols
10839 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10840 fi
10841 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10842 fi
10843 fi
10844 ;;
10845
10846 amigaos*)
10847 case $host_cpu in
10848 powerpc)
10849 # see comment about AmigaOS4 .so support
10850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10851 archive_expsym_cmds=''
10852 ;;
10853 m68k)
10854 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)'
10855 hardcode_libdir_flag_spec='-L$libdir'
10856 hardcode_minus_L=yes
10857 ;;
10858 esac
10859 ;;
10860
10861 bsdi[45]*)
10862 export_dynamic_flag_spec=-rdynamic
10863 ;;
10864
10865 cygwin* | mingw* | windows* | pw32* | cegcc*)
10866 # When not using gcc, we currently assume that we are using
10867 # Microsoft Visual C++ or Intel C++ Compiler.
10868 # hardcode_libdir_flag_spec is actually meaningless, as there is
10869 # no search path for DLLs.
10870 case $cc_basename in
10871 cl* | icl*)
10872 # Native MSVC or ICC
10873 hardcode_libdir_flag_spec=' '
10874 allow_undefined_flag=unsupported
10875 always_export_symbols=yes
10876 file_list_spec='@'
10877 # Tell ltmain to make .lib files, not .a files.
10878 libext=lib
10879 # Tell ltmain to make .dll files, not .so files.
10880 shrext_cmds=.dll
10881 # FIXME: Setting linknames here is a bad hack.
10882 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10883 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10884 cp "$export_symbols" "$output_objdir/$soname.def";
10885 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10886 else
10887 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10888 fi~
10889 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10890 linknames='
10891 # The linker will not automatically build a static lib if we build a DLL.
10892 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10893 enable_shared_with_static_runtimes=yes
10894 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10895 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10896 # Don't use ranlib
10897 old_postinstall_cmds='chmod 644 $oldlib'
10898 postlink_cmds='lt_outputfile="@OUTPUT@"~
10899 lt_tool_outputfile="@TOOL_OUTPUT@"~
10900 case $lt_outputfile in
10901 *.exe|*.EXE) ;;
10902 *)
10903 lt_outputfile=$lt_outputfile.exe
10904 lt_tool_outputfile=$lt_tool_outputfile.exe
10905 ;;
10906 esac~
10907 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10908 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10909 $RM "$lt_outputfile.manifest";
10910 fi'
10911 ;;
10912 *)
10913 # Assume MSVC and ICC wrapper
10914 hardcode_libdir_flag_spec=' '
10915 allow_undefined_flag=unsupported
10916 # Tell ltmain to make .lib files, not .a files.
10917 libext=lib
10918 # Tell ltmain to make .dll files, not .so files.
10919 shrext_cmds=.dll
10920 # FIXME: Setting linknames here is a bad hack.
10921 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10922 # The linker will automatically build a .lib file if we build a DLL.
10923 old_archive_from_new_cmds='true'
10924 # FIXME: Should let the user specify the lib program.
10925 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10926 enable_shared_with_static_runtimes=yes
10927 ;;
10928 esac
10929 ;;
10930
10931 darwin* | rhapsody*)
10932
10933
10934 archive_cmds_need_lc=no
10935 hardcode_direct=no
10936 hardcode_automatic=yes
10937 hardcode_shlibpath_var=unsupported
10938 if test yes = "$lt_cv_ld_force_load"; then
10939 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\"`'
10940
10941 else
10942 whole_archive_flag_spec=''
10943 fi
10944 link_all_deplibs=yes
10945 allow_undefined_flag=$_lt_dar_allow_undefined
10946 case $cc_basename in
10947 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10948 *) _lt_dar_can_shared=$GCC ;;
10949 esac
10950 if test yes = "$_lt_dar_can_shared"; then
10951 output_verbose_link_cmd=func_echo_all
10952 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10953 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10954 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"
10955 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"
10956
10957 else
10958 ld_shlibs=no
10959 fi
10960
10961 ;;
10962
10963 dgux*)
10964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965 hardcode_libdir_flag_spec='-L$libdir'
10966 hardcode_shlibpath_var=no
10967 ;;
10968
10969 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10970 # support. Future versions do this automatically, but an explicit c++rt0.o
10971 # does not break anything, and helps significantly (at the cost of a little
10972 # extra space).
10973 freebsd2.2*)
10974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10975 hardcode_libdir_flag_spec='-R$libdir'
10976 hardcode_direct=yes
10977 hardcode_shlibpath_var=no
10978 ;;
10979
10980 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10981 freebsd2.*)
10982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10983 hardcode_direct=yes
10984 hardcode_minus_L=yes
10985 hardcode_shlibpath_var=no
10986 ;;
10987
10988 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10989 freebsd* | dragonfly* | midnightbsd*)
10990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10991 hardcode_libdir_flag_spec='-R$libdir'
10992 hardcode_direct=yes
10993 hardcode_shlibpath_var=no
10994 ;;
10995
10996 hpux9*)
10997 if test yes = "$GCC"; then
10998 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'
10999 else
11000 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'
11001 fi
11002 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11003 hardcode_libdir_separator=:
11004 hardcode_direct=yes
11005
11006 # hardcode_minus_L: Not really in the search PATH,
11007 # but as the default location of the library.
11008 hardcode_minus_L=yes
11009 export_dynamic_flag_spec='$wl-E'
11010 ;;
11011
11012 hpux10*)
11013 if test yes,no = "$GCC,$with_gnu_ld"; then
11014 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11015 else
11016 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11017 fi
11018 if test no = "$with_gnu_ld"; then
11019 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11020 hardcode_libdir_separator=:
11021 hardcode_direct=yes
11022 hardcode_direct_absolute=yes
11023 export_dynamic_flag_spec='$wl-E'
11024 # hardcode_minus_L: Not really in the search PATH,
11025 # but as the default location of the library.
11026 hardcode_minus_L=yes
11027 fi
11028 ;;
11029
11030 hpux11*)
11031 if test yes,no = "$GCC,$with_gnu_ld"; then
11032 case $host_cpu in
11033 hppa*64*)
11034 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11035 ;;
11036 ia64*)
11037 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11038 ;;
11039 *)
11040 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11041 ;;
11042 esac
11043 else
11044 case $host_cpu in
11045 hppa*64*)
11046 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11047 ;;
11048 ia64*)
11049 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11050 ;;
11051 *)
11052
11053 # Older versions of the 11.00 compiler do not understand -b yet
11054 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11056 printf %s "checking if $CC understands -b... " >&6; }
11057 if test ${lt_cv_prog_compiler__b+y}
11058 then :
11059 printf %s "(cached) " >&6
11060 else case e in #(
11061 e) lt_cv_prog_compiler__b=no
11062 save_LDFLAGS=$LDFLAGS
11063 LDFLAGS="$LDFLAGS -b"
11064 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11065 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11066 # The linker can only warn and ignore the option if not recognized
11067 # So say no if there are warnings
11068 if test -s conftest.err; then
11069 # Append any errors to the config.log.
11070 cat conftest.err 1>&5
11071 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11073 if diff conftest.exp conftest.er2 >/dev/null; then
11074 lt_cv_prog_compiler__b=yes
11075 fi
11076 else
11077 lt_cv_prog_compiler__b=yes
11078 fi
11079 fi
11080 $RM -r conftest*
11081 LDFLAGS=$save_LDFLAGS
11082 ;;
11083 esac
11084 fi
11085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11086 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11087
11088 if test yes = "$lt_cv_prog_compiler__b"; then
11089 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11090 else
11091 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11092 fi
11093
11094 ;;
11095 esac
11096 fi
11097 if test no = "$with_gnu_ld"; then
11098 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11099 hardcode_libdir_separator=:
11100
11101 case $host_cpu in
11102 hppa*64*|ia64*)
11103 hardcode_direct=no
11104 hardcode_shlibpath_var=no
11105 ;;
11106 *)
11107 hardcode_direct=yes
11108 hardcode_direct_absolute=yes
11109 export_dynamic_flag_spec='$wl-E'
11110
11111 # hardcode_minus_L: Not really in the search PATH,
11112 # but as the default location of the library.
11113 hardcode_minus_L=yes
11114 ;;
11115 esac
11116 fi
11117 ;;
11118
11119 irix5* | irix6* | nonstopux*)
11120 if test yes = "$GCC"; then
11121 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'
11122 # Try to use the -exported_symbol ld option, if it does not
11123 # work, assume that -exports_file does not work either and
11124 # implicitly export all symbols.
11125 # This should be the same for all languages, so no per-tag cache variable.
11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11127 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11128 if test ${lt_cv_irix_exported_symbol+y}
11129 then :
11130 printf %s "(cached) " >&6
11131 else case e in #(
11132 e) save_LDFLAGS=$LDFLAGS
11133 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11136 int foo (void) { return 0; }
11137 _ACEOF
11138 if ac_fn_c_try_link "$LINENO"
11139 then :
11140 lt_cv_irix_exported_symbol=yes
11141 else case e in #(
11142 e) lt_cv_irix_exported_symbol=no ;;
11143 esac
11144 fi
11145 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11146 conftest$ac_exeext conftest.$ac_ext
11147 LDFLAGS=$save_LDFLAGS ;;
11148 esac
11149 fi
11150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11151 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11152 if test yes = "$lt_cv_irix_exported_symbol"; then
11153 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'
11154 fi
11155 else
11156 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'
11157 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'
11158 fi
11159 archive_cmds_need_lc='no'
11160 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11161 hardcode_libdir_separator=:
11162 inherit_rpath=yes
11163 link_all_deplibs=yes
11164 ;;
11165
11166 linux*)
11167 case $cc_basename in
11168 tcc*)
11169 # Fabrice Bellard et al's Tiny C Compiler
11170 ld_shlibs=yes
11171 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11172 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11173 ;;
11174 esac
11175 ;;
11176
11177 *-mlibc)
11178 ;;
11179
11180 netbsd* | netbsdelf*-gnu)
11181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11183 else
11184 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11185 fi
11186 hardcode_libdir_flag_spec='-R$libdir'
11187 hardcode_direct=yes
11188 hardcode_shlibpath_var=no
11189 ;;
11190
11191 newsos6)
11192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11193 hardcode_direct=yes
11194 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11195 hardcode_libdir_separator=:
11196 hardcode_shlibpath_var=no
11197 ;;
11198
11199 *nto* | *qnx*)
11200 ;;
11201
11202 openbsd*)
11203 if test -f /usr/libexec/ld.so; then
11204 hardcode_direct=yes
11205 hardcode_shlibpath_var=no
11206 hardcode_direct_absolute=yes
11207 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11209 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11210 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11211 export_dynamic_flag_spec='$wl-E'
11212 else
11213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11214 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11215 fi
11216 else
11217 ld_shlibs=no
11218 fi
11219 ;;
11220
11221 os2*)
11222 hardcode_libdir_flag_spec='-L$libdir'
11223 hardcode_minus_L=yes
11224 allow_undefined_flag=unsupported
11225 shrext_cmds=.dll
11226 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11227 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11228 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11229 $ECHO EXPORTS >> $output_objdir/$libname.def~
11230 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11231 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11232 emximp -o $lib $output_objdir/$libname.def'
11233 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11234 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11235 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11236 $ECHO EXPORTS >> $output_objdir/$libname.def~
11237 prefix_cmds="$SED"~
11238 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11239 prefix_cmds="$prefix_cmds -e 1d";
11240 fi~
11241 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11242 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11243 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11244 emximp -o $lib $output_objdir/$libname.def'
11245 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11246 enable_shared_with_static_runtimes=yes
11247 file_list_spec='@'
11248 ;;
11249
11250 osf3*)
11251 if test yes = "$GCC"; then
11252 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11253 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'
11254 else
11255 allow_undefined_flag=' -expect_unresolved \*'
11256 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'
11257 fi
11258 archive_cmds_need_lc='no'
11259 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11260 hardcode_libdir_separator=:
11261 ;;
11262
11263 osf4* | osf5*) # as osf3* with the addition of -msym flag
11264 if test yes = "$GCC"; then
11265 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11266 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'
11267 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11268 else
11269 allow_undefined_flag=' -expect_unresolved \*'
11270 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'
11271 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~
11272 $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'
11273
11274 # Both c and cxx compiler support -rpath directly
11275 hardcode_libdir_flag_spec='-rpath $libdir'
11276 fi
11277 archive_cmds_need_lc='no'
11278 hardcode_libdir_separator=:
11279 ;;
11280
11281 serenity*)
11282 ;;
11283
11284 solaris*)
11285 no_undefined_flag=' -z defs'
11286 if test yes = "$GCC"; then
11287 wlarc='$wl'
11288 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11290 $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'
11291 else
11292 case `$CC -V 2>&1` in
11293 *"Compilers 5.0"*)
11294 wlarc=''
11295 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11297 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11298 ;;
11299 *)
11300 wlarc='$wl'
11301 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11303 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11304 ;;
11305 esac
11306 fi
11307 hardcode_libdir_flag_spec='-R$libdir'
11308 hardcode_shlibpath_var=no
11309 case $host_os in
11310 solaris2.[0-5] | solaris2.[0-5].*) ;;
11311 *)
11312 # The compiler driver will combine and reorder linker options,
11313 # but understands '-z linker_flag'. GCC discards it without '$wl',
11314 # but is careful enough not to reorder.
11315 # Supported since Solaris 2.6 (maybe 2.5.1?)
11316 if test yes = "$GCC"; then
11317 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11318 else
11319 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11320 fi
11321 ;;
11322 esac
11323 link_all_deplibs=yes
11324 ;;
11325
11326 sunos4*)
11327 if test sequent = "$host_vendor"; then
11328 # Use $CC to link under sequent, because it throws in some extra .o
11329 # files that make .init and .fini sections work.
11330 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11331 else
11332 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11333 fi
11334 hardcode_libdir_flag_spec='-L$libdir'
11335 hardcode_direct=yes
11336 hardcode_minus_L=yes
11337 hardcode_shlibpath_var=no
11338 ;;
11339
11340 sysv4)
11341 case $host_vendor in
11342 sni)
11343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344 hardcode_direct=yes # is this really true???
11345 ;;
11346 siemens)
11347 ## LD is ld it makes a PLAMLIB
11348 ## CC just makes a GrossModule.
11349 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11350 reload_cmds='$CC -r -o $output$reload_objs'
11351 hardcode_direct=no
11352 ;;
11353 motorola)
11354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11355 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11356 ;;
11357 esac
11358 runpath_var='LD_RUN_PATH'
11359 hardcode_shlibpath_var=no
11360 ;;
11361
11362 sysv4.3*)
11363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11364 hardcode_shlibpath_var=no
11365 export_dynamic_flag_spec='-Bexport'
11366 ;;
11367
11368 sysv4*MP*)
11369 if test -d /usr/nec; then
11370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11371 hardcode_shlibpath_var=no
11372 runpath_var=LD_RUN_PATH
11373 hardcode_runpath_var=yes
11374 ld_shlibs=yes
11375 fi
11376 ;;
11377
11378 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11379 no_undefined_flag='$wl-z,text'
11380 archive_cmds_need_lc=no
11381 hardcode_shlibpath_var=no
11382 runpath_var='LD_RUN_PATH'
11383
11384 if test yes = "$GCC"; then
11385 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11386 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11387 else
11388 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11389 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11390 fi
11391 ;;
11392
11393 sysv5* | sco3.2v5* | sco5v6*)
11394 # Note: We CANNOT use -z defs as we might desire, because we do not
11395 # link with -lc, and that would cause any symbols used from libc to
11396 # always be unresolved, which means just about no library would
11397 # ever link correctly. If we're not using GNU ld we use -z text
11398 # though, which does catch some bad symbols but isn't as heavy-handed
11399 # as -z defs.
11400 no_undefined_flag='$wl-z,text'
11401 allow_undefined_flag='$wl-z,nodefs'
11402 archive_cmds_need_lc=no
11403 hardcode_shlibpath_var=no
11404 hardcode_libdir_flag_spec='$wl-R,$libdir'
11405 hardcode_libdir_separator=':'
11406 link_all_deplibs=yes
11407 export_dynamic_flag_spec='$wl-Bexport'
11408 runpath_var='LD_RUN_PATH'
11409
11410 if test yes = "$GCC"; then
11411 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11412 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11413 else
11414 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11415 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11416 fi
11417 ;;
11418
11419 uts4*)
11420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11421 hardcode_libdir_flag_spec='-L$libdir'
11422 hardcode_shlibpath_var=no
11423 ;;
11424
11425 *)
11426 ld_shlibs=no
11427 ;;
11428 esac
11429
11430 if test sni = "$host_vendor"; then
11431 case $host in
11432 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11433 export_dynamic_flag_spec='$wl-Blargedynsym'
11434 ;;
11435 esac
11436 fi
11437 fi
11438
11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11440 printf "%s\n" "$ld_shlibs" >&6; }
11441 test no = "$ld_shlibs" && can_build_shared=no
11442
11443 with_gnu_ld=$with_gnu_ld
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459 #
11460 # Do we need to explicitly link libc?
11461 #
11462 case "x$archive_cmds_need_lc" in
11463 x|xyes)
11464 # Assume -lc should be added
11465 archive_cmds_need_lc=yes
11466
11467 if test yes,yes = "$GCC,$enable_shared"; then
11468 case $archive_cmds in
11469 *'~'*)
11470 # FIXME: we may have to deal with multi-command sequences.
11471 ;;
11472 '$CC '*)
11473 # Test whether the compiler implicitly links with -lc since on some
11474 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11475 # to ld, don't add -lc before -lgcc.
11476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11477 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11478 if test ${lt_cv_archive_cmds_need_lc+y}
11479 then :
11480 printf %s "(cached) " >&6
11481 else case e in #(
11482 e) $RM conftest*
11483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11484
11485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11486 (eval $ac_compile) 2>&5
11487 ac_status=$?
11488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11489 test $ac_status = 0; } 2>conftest.err; then
11490 soname=conftest
11491 lib=conftest
11492 libobjs=conftest.$ac_objext
11493 deplibs=
11494 wl=$lt_prog_compiler_wl
11495 pic_flag=$lt_prog_compiler_pic
11496 compiler_flags=-v
11497 linker_flags=-v
11498 verstring=
11499 output_objdir=.
11500 libname=conftest
11501 lt_save_allow_undefined_flag=$allow_undefined_flag
11502 allow_undefined_flag=
11503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11504 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11505 ac_status=$?
11506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11507 test $ac_status = 0; }
11508 then
11509 lt_cv_archive_cmds_need_lc=no
11510 else
11511 lt_cv_archive_cmds_need_lc=yes
11512 fi
11513 allow_undefined_flag=$lt_save_allow_undefined_flag
11514 else
11515 cat conftest.err 1>&5
11516 fi
11517 $RM conftest*
11518 ;;
11519 esac
11520 fi
11521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11522 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11523 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11524 ;;
11525 esac
11526 fi
11527 ;;
11528 esac
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11682 printf %s "checking dynamic linker characteristics... " >&6; }
11683
11684 if test yes = "$GCC"; then
11685 case $host_os in
11686 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11687 *) lt_awk_arg='/^libraries:/' ;;
11688 esac
11689 case $host_os in
11690 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11691 *) lt_sed_strip_eq='s|=/|/|g' ;;
11692 esac
11693 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11694 case $lt_search_path_spec in
11695 *\;*)
11696 # if the path contains ";" then we assume it to be the separator
11697 # otherwise default to the standard path separator (i.e. ":") - it is
11698 # assumed that no part of a normal pathname contains ";" but that should
11699 # okay in the real world where ";" in dirpaths is itself problematic.
11700 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11701 ;;
11702 *)
11703 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11704 ;;
11705 esac
11706 # Ok, now we have the path, separated by spaces, we can step through it
11707 # and add multilib dir if necessary...
11708 lt_tmp_lt_search_path_spec=
11709 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11710 # ...but if some path component already ends with the multilib dir we assume
11711 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11712 case "$lt_multi_os_dir; $lt_search_path_spec " in
11713 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11714 lt_multi_os_dir=
11715 ;;
11716 esac
11717 for lt_sys_path in $lt_search_path_spec; do
11718 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11719 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11720 elif test -n "$lt_multi_os_dir"; then
11721 test -d "$lt_sys_path" && \
11722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11723 fi
11724 done
11725 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11726 BEGIN {RS = " "; FS = "/|\n";} {
11727 lt_foo = "";
11728 lt_count = 0;
11729 for (lt_i = NF; lt_i > 0; lt_i--) {
11730 if ($lt_i != "" && $lt_i != ".") {
11731 if ($lt_i == "..") {
11732 lt_count++;
11733 } else {
11734 if (lt_count == 0) {
11735 lt_foo = "/" $lt_i lt_foo;
11736 } else {
11737 lt_count--;
11738 }
11739 }
11740 }
11741 }
11742 if (lt_foo != "") { lt_freq[lt_foo]++; }
11743 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11744 }'`
11745 # AWK program above erroneously prepends '/' to C:/dos/paths
11746 # for these hosts.
11747 case $host_os in
11748 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11749 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11750 esac
11751 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11752 else
11753 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11754 fi
11755 library_names_spec=
11756 libname_spec='lib$name'
11757 soname_spec=
11758 shrext_cmds=.so
11759 postinstall_cmds=
11760 postuninstall_cmds=
11761 finish_cmds=
11762 finish_eval=
11763 shlibpath_var=
11764 shlibpath_overrides_runpath=unknown
11765 version_type=none
11766 dynamic_linker="$host_os ld.so"
11767 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11768 need_lib_prefix=unknown
11769 hardcode_into_libs=no
11770
11771 # when you set need_version to no, make sure it does not cause -set_version
11772 # flags to be left without arguments
11773 need_version=unknown
11774
11775
11776
11777 case $host_os in
11778 aix3*)
11779 version_type=linux # correct to gnu/linux during the next big refactor
11780 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11781 shlibpath_var=LIBPATH
11782
11783 # AIX 3 has no versioning support, so we append a major version to the name.
11784 soname_spec='$libname$release$shared_ext$major'
11785 ;;
11786
11787 aix[4-9]*)
11788 version_type=linux # correct to gnu/linux during the next big refactor
11789 need_lib_prefix=no
11790 need_version=no
11791 hardcode_into_libs=yes
11792 if test ia64 = "$host_cpu"; then
11793 # AIX 5 supports IA64
11794 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11795 shlibpath_var=LD_LIBRARY_PATH
11796 else
11797 # With GCC up to 2.95.x, collect2 would create an import file
11798 # for dependence libraries. The import file would start with
11799 # the line '#! .'. This would cause the generated library to
11800 # depend on '.', always an invalid library. This was fixed in
11801 # development snapshots of GCC prior to 3.0.
11802 case $host_os in
11803 aix4 | aix4.[01] | aix4.[01].*)
11804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11805 echo ' yes '
11806 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11807 :
11808 else
11809 can_build_shared=no
11810 fi
11811 ;;
11812 esac
11813 # Using Import Files as archive members, it is possible to support
11814 # filename-based versioning of shared library archives on AIX. While
11815 # this would work for both with and without runtime linking, it will
11816 # prevent static linking of such archives. So we do filename-based
11817 # shared library versioning with .so extension only, which is used
11818 # when both runtime linking and shared linking is enabled.
11819 # Unfortunately, runtime linking may impact performance, so we do
11820 # not want this to be the default eventually. Also, we use the
11821 # versioned .so libs for executables only if there is the -brtl
11822 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11823 # To allow for filename-based versioning support, we need to create
11824 # libNAME.so.V as an archive file, containing:
11825 # *) an Import File, referring to the versioned filename of the
11826 # archive as well as the shared archive member, telling the
11827 # bitwidth (32 or 64) of that shared object, and providing the
11828 # list of exported symbols of that shared object, eventually
11829 # decorated with the 'weak' keyword
11830 # *) the shared object with the F_LOADONLY flag set, to really avoid
11831 # it being seen by the linker.
11832 # At run time we better use the real file rather than another symlink,
11833 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11834
11835 case $with_aix_soname,$aix_use_runtimelinking in
11836 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11837 # soname into executable. Probably we can add versioning support to
11838 # collect2, so additional links can be useful in future.
11839 aix,yes) # traditional libtool
11840 dynamic_linker='AIX unversionable lib.so'
11841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11842 # instead of lib<name>.a to let people know that these are not
11843 # typical AIX shared libraries.
11844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11845 ;;
11846 aix,no) # traditional AIX only
11847 dynamic_linker='AIX lib.a(lib.so.V)'
11848 # We preserve .a as extension for shared libraries through AIX4.2
11849 # and later when we are not doing run time linking.
11850 library_names_spec='$libname$release.a $libname.a'
11851 soname_spec='$libname$release$shared_ext$major'
11852 ;;
11853 svr4,*) # full svr4 only
11854 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11855 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11856 # We do not specify a path in Import Files, so LIBPATH fires.
11857 shlibpath_overrides_runpath=yes
11858 ;;
11859 *,yes) # both, prefer svr4
11860 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11861 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11862 # unpreferred sharedlib libNAME.a needs extra handling
11863 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"'
11864 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"'
11865 # We do not specify a path in Import Files, so LIBPATH fires.
11866 shlibpath_overrides_runpath=yes
11867 ;;
11868 *,no) # both, prefer aix
11869 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11870 library_names_spec='$libname$release.a $libname.a'
11871 soname_spec='$libname$release$shared_ext$major'
11872 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11873 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)'
11874 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"'
11875 ;;
11876 esac
11877 shlibpath_var=LIBPATH
11878 fi
11879 ;;
11880
11881 amigaos*)
11882 case $host_cpu in
11883 powerpc)
11884 # Since July 2007 AmigaOS4 officially supports .so libraries.
11885 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11887 ;;
11888 m68k)
11889 library_names_spec='$libname.ixlibrary $libname.a'
11890 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11891 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'
11892 ;;
11893 esac
11894 ;;
11895
11896 beos*)
11897 library_names_spec='$libname$shared_ext'
11898 dynamic_linker="$host_os ld.so"
11899 shlibpath_var=LIBRARY_PATH
11900 ;;
11901
11902 bsdi[45]*)
11903 version_type=linux # correct to gnu/linux during the next big refactor
11904 need_version=no
11905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11906 soname_spec='$libname$release$shared_ext$major'
11907 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11908 shlibpath_var=LD_LIBRARY_PATH
11909 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11910 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11911 # the default ld.so.conf also contains /usr/contrib/lib and
11912 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11913 # libtool to hard-code these into programs
11914 ;;
11915
11916 cygwin* | mingw* | windows* | pw32* | cegcc*)
11917 version_type=windows
11918 shrext_cmds=.dll
11919 need_version=no
11920 need_lib_prefix=no
11921
11922 case $GCC,$cc_basename in
11923 yes,*)
11924 # gcc
11925 library_names_spec='$libname.dll.a'
11926 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11927 # If user builds GCC with multilib enabled,
11928 # it should just install on $(libdir)
11929 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11930 if test xyes = x"$multilib"; then
11931 postinstall_cmds='base_file=`basename \$file`~
11932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11933 dldir=$destdir/`dirname \$dlpath`~
11934 $install_prog $dir/$dlname $destdir/$dlname~
11935 chmod a+x $destdir/$dlname~
11936 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11937 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11938 fi'
11939 else
11940 postinstall_cmds='base_file=`basename \$file`~
11941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11942 dldir=$destdir/`dirname \$dlpath`~
11943 test -d \$dldir || mkdir -p \$dldir~
11944 $install_prog $dir/$dlname \$dldir/$dlname~
11945 chmod a+x \$dldir/$dlname~
11946 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11947 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11948 fi'
11949 fi
11950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11951 dlpath=$dir/\$dldll~
11952 $RM \$dlpath'
11953 shlibpath_overrides_runpath=yes
11954
11955 case $host_os in
11956 cygwin*)
11957 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11958 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11959
11960 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11961 ;;
11962 mingw* | windows* | cegcc*)
11963 # MinGW DLLs use traditional 'lib' prefix
11964 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11965 ;;
11966 pw32*)
11967 # pw32 DLLs use 'pw' prefix rather than 'lib'
11968 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11969 ;;
11970 esac
11971 dynamic_linker='Win32 ld.exe'
11972 ;;
11973
11974 *,cl* | *,icl*)
11975 # Native MSVC or ICC
11976 libname_spec='$name'
11977 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11978 library_names_spec='$libname.dll.lib'
11979
11980 case $build_os in
11981 mingw* | windows*)
11982 sys_lib_search_path_spec=
11983 lt_save_ifs=$IFS
11984 IFS=';'
11985 for lt_path in $LIB
11986 do
11987 IFS=$lt_save_ifs
11988 # Let DOS variable expansion print the short 8.3 style file name.
11989 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11990 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11991 done
11992 IFS=$lt_save_ifs
11993 # Convert to MSYS style.
11994 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11995 ;;
11996 cygwin*)
11997 # Convert to unix form, then to dos form, then back to unix form
11998 # but this time dos style (no spaces!) so that the unix form looks
11999 # like /cygdrive/c/PROGRA~1:/cygdr...
12000 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12001 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12002 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12003 ;;
12004 *)
12005 sys_lib_search_path_spec=$LIB
12006 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12007 # It is most probably a Windows format PATH.
12008 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12009 else
12010 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12011 fi
12012 # FIXME: find the short name or the path components, as spaces are
12013 # common. (e.g. "Program Files" -> "PROGRA~1")
12014 ;;
12015 esac
12016
12017 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12018 postinstall_cmds='base_file=`basename \$file`~
12019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12020 dldir=$destdir/`dirname \$dlpath`~
12021 test -d \$dldir || mkdir -p \$dldir~
12022 $install_prog $dir/$dlname \$dldir/$dlname'
12023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12024 dlpath=$dir/\$dldll~
12025 $RM \$dlpath'
12026 shlibpath_overrides_runpath=yes
12027 dynamic_linker='Win32 link.exe'
12028 ;;
12029
12030 *)
12031 # Assume MSVC and ICC wrapper
12032 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12033 dynamic_linker='Win32 ld.exe'
12034 ;;
12035 esac
12036 # FIXME: first we should search . and the directory the executable is in
12037 shlibpath_var=PATH
12038 ;;
12039
12040 darwin* | rhapsody*)
12041 dynamic_linker="$host_os dyld"
12042 version_type=darwin
12043 need_lib_prefix=no
12044 need_version=no
12045 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12046 soname_spec='$libname$release$major$shared_ext'
12047 shlibpath_overrides_runpath=yes
12048 shlibpath_var=DYLD_LIBRARY_PATH
12049 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12050
12051 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12053 ;;
12054
12055 dgux*)
12056 version_type=linux # correct to gnu/linux during the next big refactor
12057 need_lib_prefix=no
12058 need_version=no
12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12060 soname_spec='$libname$release$shared_ext$major'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 ;;
12063
12064 freebsd* | dragonfly* | midnightbsd*)
12065 # DragonFly does not have aout. When/if they implement a new
12066 # versioning mechanism, adjust this.
12067 if test -x /usr/bin/objformat; then
12068 objformat=`/usr/bin/objformat`
12069 else
12070 case $host_os in
12071 freebsd[23].*) objformat=aout ;;
12072 *) objformat=elf ;;
12073 esac
12074 fi
12075 version_type=freebsd-$objformat
12076 case $version_type in
12077 freebsd-elf*)
12078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12079 soname_spec='$libname$release$shared_ext$major'
12080 need_version=no
12081 need_lib_prefix=no
12082 ;;
12083 freebsd-*)
12084 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12085 need_version=yes
12086 ;;
12087 esac
12088 case $host_cpu in
12089 powerpc64)
12090 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12091 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12094 int test_pointer_size[sizeof (void *) - 5];
12095
12096 _ACEOF
12097 if ac_fn_c_try_compile "$LINENO"
12098 then :
12099 shlibpath_var=LD_LIBRARY_PATH
12100 else case e in #(
12101 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12102 esac
12103 fi
12104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12105 ;;
12106 *)
12107 shlibpath_var=LD_LIBRARY_PATH
12108 ;;
12109 esac
12110 case $host_os in
12111 freebsd2.*)
12112 shlibpath_overrides_runpath=yes
12113 ;;
12114 freebsd3.[01]* | freebsdelf3.[01]*)
12115 shlibpath_overrides_runpath=yes
12116 hardcode_into_libs=yes
12117 ;;
12118 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12119 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12120 shlibpath_overrides_runpath=no
12121 hardcode_into_libs=yes
12122 ;;
12123 *) # from 4.6 on, and DragonFly
12124 shlibpath_overrides_runpath=yes
12125 hardcode_into_libs=yes
12126 ;;
12127 esac
12128 ;;
12129
12130 haiku*)
12131 version_type=linux # correct to gnu/linux during the next big refactor
12132 need_lib_prefix=no
12133 need_version=no
12134 dynamic_linker="$host_os runtime_loader"
12135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12136 soname_spec='$libname$release$shared_ext$major'
12137 shlibpath_var=LIBRARY_PATH
12138 shlibpath_overrides_runpath=no
12139 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12140 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12141 hardcode_into_libs=no
12142 ;;
12143
12144 hpux9* | hpux10* | hpux11*)
12145 # Give a soname corresponding to the major version so that dld.sl refuses to
12146 # link against other versions.
12147 version_type=sunos
12148 need_lib_prefix=no
12149 need_version=no
12150 case $host_cpu in
12151 ia64*)
12152 shrext_cmds='.so'
12153 hardcode_into_libs=yes
12154 dynamic_linker="$host_os dld.so"
12155 shlibpath_var=LD_LIBRARY_PATH
12156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12158 soname_spec='$libname$release$shared_ext$major'
12159 if test 32 = "$HPUX_IA64_MODE"; then
12160 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12161 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12162 else
12163 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12164 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12165 fi
12166 ;;
12167 hppa*64*)
12168 shrext_cmds='.sl'
12169 hardcode_into_libs=yes
12170 dynamic_linker="$host_os dld.sl"
12171 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12174 soname_spec='$libname$release$shared_ext$major'
12175 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12177 ;;
12178 *)
12179 shrext_cmds='.sl'
12180 dynamic_linker="$host_os dld.sl"
12181 shlibpath_var=SHLIB_PATH
12182 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12184 soname_spec='$libname$release$shared_ext$major'
12185 ;;
12186 esac
12187 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12188 postinstall_cmds='chmod 555 $lib'
12189 # or fails outright, so override atomically:
12190 install_override_mode=555
12191 ;;
12192
12193 interix[3-9]*)
12194 version_type=linux # correct to gnu/linux during the next big refactor
12195 need_lib_prefix=no
12196 need_version=no
12197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12198 soname_spec='$libname$release$shared_ext$major'
12199 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12200 shlibpath_var=LD_LIBRARY_PATH
12201 shlibpath_overrides_runpath=no
12202 hardcode_into_libs=yes
12203 ;;
12204
12205 irix5* | irix6* | nonstopux*)
12206 case $host_os in
12207 nonstopux*) version_type=nonstopux ;;
12208 *)
12209 if test yes = "$lt_cv_prog_gnu_ld"; then
12210 version_type=linux # correct to gnu/linux during the next big refactor
12211 else
12212 version_type=irix
12213 fi ;;
12214 esac
12215 need_lib_prefix=no
12216 need_version=no
12217 soname_spec='$libname$release$shared_ext$major'
12218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12219 case $host_os in
12220 irix5* | nonstopux*)
12221 libsuff= shlibsuff=
12222 ;;
12223 *)
12224 case $LD in # libtool.m4 will add one of these switches to LD
12225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12226 libsuff= shlibsuff= libmagic=32-bit;;
12227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12228 libsuff=32 shlibsuff=N32 libmagic=N32;;
12229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12230 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12231 *) libsuff= shlibsuff= libmagic=never-match;;
12232 esac
12233 ;;
12234 esac
12235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12236 shlibpath_overrides_runpath=no
12237 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12238 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12239 hardcode_into_libs=yes
12240 ;;
12241
12242 # No shared lib support for Linux oldld, aout, or coff.
12243 linux*oldld* | linux*aout* | linux*coff*)
12244 dynamic_linker=no
12245 ;;
12246
12247 linux*android*)
12248 version_type=none # Android doesn't support versioned libraries.
12249 need_lib_prefix=no
12250 need_version=no
12251 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12252 soname_spec='$libname$release$shared_ext'
12253 finish_cmds=
12254 shlibpath_var=LD_LIBRARY_PATH
12255 shlibpath_overrides_runpath=yes
12256
12257 # This implies no fast_install, which is unacceptable.
12258 # Some rework will be needed to allow for fast_install
12259 # before this can be enabled.
12260 hardcode_into_libs=yes
12261
12262 dynamic_linker='Android linker'
12263 # -rpath works at least for libraries that are not overridden by
12264 # libraries installed in system locations.
12265 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12266 ;;
12267
12268 # This must be glibc/ELF.
12269 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12270 version_type=linux # correct to gnu/linux during the next big refactor
12271 need_lib_prefix=no
12272 need_version=no
12273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12274 soname_spec='$libname$release$shared_ext$major'
12275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12276 shlibpath_var=LD_LIBRARY_PATH
12277 shlibpath_overrides_runpath=no
12278
12279 # Some binutils ld are patched to set DT_RUNPATH
12280 if test ${lt_cv_shlibpath_overrides_runpath+y}
12281 then :
12282 printf %s "(cached) " >&6
12283 else case e in #(
12284 e) lt_cv_shlibpath_overrides_runpath=no
12285 save_LDFLAGS=$LDFLAGS
12286 save_libdir=$libdir
12287 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12288 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12291
12292 int
12293 main (void)
12294 {
12295
12296 ;
12297 return 0;
12298 }
12299 _ACEOF
12300 if ac_fn_c_try_link "$LINENO"
12301 then :
12302 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12303 then :
12304 lt_cv_shlibpath_overrides_runpath=yes
12305 fi
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12308 conftest$ac_exeext conftest.$ac_ext
12309 LDFLAGS=$save_LDFLAGS
12310 libdir=$save_libdir
12311 ;;
12312 esac
12313 fi
12314
12315 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12316
12317 # This implies no fast_install, which is unacceptable.
12318 # Some rework will be needed to allow for fast_install
12319 # before this can be enabled.
12320 hardcode_into_libs=yes
12321
12322 # Ideally, we could use ldconfig to report *all* directories which are
12323 # searched for libraries, however this is still not possible. Aside from not
12324 # being certain /sbin/ldconfig is available, command
12325 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12326 # even though it is searched at run-time. Try to do the best guess by
12327 # appending ld.so.conf contents (and includes) to the search path.
12328 if test -f /etc/ld.so.conf; then
12329 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' ' '`
12330 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12331 fi
12332
12333 # We used to test for /lib/ld.so.1 and disable shared libraries on
12334 # powerpc, because MkLinux only supported shared libraries with the
12335 # GNU dynamic linker. Since this was broken with cross compilers,
12336 # most powerpc-linux boxes support dynamic linking these days and
12337 # people can always --disable-shared, the test was removed, and we
12338 # assume the GNU/Linux dynamic linker is in use.
12339 dynamic_linker='GNU/Linux ld.so'
12340 ;;
12341
12342 netbsdelf*-gnu)
12343 version_type=linux
12344 need_lib_prefix=no
12345 need_version=no
12346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12347 soname_spec='$libname$release$shared_ext$major'
12348 shlibpath_var=LD_LIBRARY_PATH
12349 shlibpath_overrides_runpath=no
12350 hardcode_into_libs=yes
12351 dynamic_linker='NetBSD ld.elf_so'
12352 ;;
12353
12354 netbsd*)
12355 version_type=sunos
12356 need_lib_prefix=no
12357 need_version=no
12358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12359 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12361 dynamic_linker='NetBSD (a.out) ld.so'
12362 else
12363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12364 soname_spec='$libname$release$shared_ext$major'
12365 dynamic_linker='NetBSD ld.elf_so'
12366 fi
12367 shlibpath_var=LD_LIBRARY_PATH
12368 shlibpath_overrides_runpath=yes
12369 hardcode_into_libs=yes
12370 ;;
12371
12372 *-mlibc)
12373 version_type=linux # correct to gnu/linux during the next big refactor
12374 need_lib_prefix=no
12375 need_version=no
12376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12377 soname_spec='$libname$release$shared_ext$major'
12378 dynamic_linker='mlibc ld.so'
12379 shlibpath_var=LD_LIBRARY_PATH
12380 shlibpath_overrides_runpath=no
12381 hardcode_into_libs=yes
12382 ;;
12383
12384 newsos6)
12385 version_type=linux # correct to gnu/linux during the next big refactor
12386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12387 shlibpath_var=LD_LIBRARY_PATH
12388 shlibpath_overrides_runpath=yes
12389 ;;
12390
12391 *nto* | *qnx*)
12392 version_type=qnx
12393 need_lib_prefix=no
12394 need_version=no
12395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12396 soname_spec='$libname$release$shared_ext$major'
12397 shlibpath_var=LD_LIBRARY_PATH
12398 shlibpath_overrides_runpath=no
12399 hardcode_into_libs=yes
12400 dynamic_linker='ldqnx.so'
12401 ;;
12402
12403 openbsd*)
12404 version_type=sunos
12405 sys_lib_dlsearch_path_spec=/usr/lib
12406 need_lib_prefix=no
12407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12408 need_version=no
12409 else
12410 need_version=yes
12411 fi
12412 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12414 shlibpath_var=LD_LIBRARY_PATH
12415 shlibpath_overrides_runpath=yes
12416 ;;
12417
12418 os2*)
12419 libname_spec='$name'
12420 version_type=windows
12421 shrext_cmds=.dll
12422 need_version=no
12423 need_lib_prefix=no
12424 # OS/2 can only load a DLL with a base name of 8 characters or less.
12425 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12426 v=$($ECHO $release$versuffix | tr -d .-);
12427 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12428 $ECHO $n$v`$shared_ext'
12429 library_names_spec='${libname}_dll.$libext'
12430 dynamic_linker='OS/2 ld.exe'
12431 shlibpath_var=BEGINLIBPATH
12432 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12434 postinstall_cmds='base_file=`basename \$file`~
12435 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12436 dldir=$destdir/`dirname \$dlpath`~
12437 test -d \$dldir || mkdir -p \$dldir~
12438 $install_prog $dir/$dlname \$dldir/$dlname~
12439 chmod a+x \$dldir/$dlname~
12440 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12441 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12442 fi'
12443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12444 dlpath=$dir/\$dldll~
12445 $RM \$dlpath'
12446 ;;
12447
12448 osf3* | osf4* | osf5*)
12449 version_type=osf
12450 need_lib_prefix=no
12451 need_version=no
12452 soname_spec='$libname$release$shared_ext$major'
12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12454 shlibpath_var=LD_LIBRARY_PATH
12455 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12457 ;;
12458
12459 rdos*)
12460 dynamic_linker=no
12461 ;;
12462
12463 serenity*)
12464 version_type=linux # correct to gnu/linux during the next big refactor
12465 need_lib_prefix=no
12466 need_version=no
12467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12468 soname_spec='$libname$release$shared_ext$major'
12469 shlibpath_var=LD_LIBRARY_PATH
12470 shlibpath_overrides_runpath=no
12471 dynamic_linker='SerenityOS LibELF'
12472 ;;
12473
12474 solaris*)
12475 version_type=linux # correct to gnu/linux during the next big refactor
12476 need_lib_prefix=no
12477 need_version=no
12478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12479 soname_spec='$libname$release$shared_ext$major'
12480 shlibpath_var=LD_LIBRARY_PATH
12481 shlibpath_overrides_runpath=yes
12482 hardcode_into_libs=yes
12483 # ldd complains unless libraries are executable
12484 postinstall_cmds='chmod +x $lib'
12485 ;;
12486
12487 sunos4*)
12488 version_type=sunos
12489 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12490 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12491 shlibpath_var=LD_LIBRARY_PATH
12492 shlibpath_overrides_runpath=yes
12493 if test yes = "$with_gnu_ld"; then
12494 need_lib_prefix=no
12495 fi
12496 need_version=yes
12497 ;;
12498
12499 sysv4 | sysv4.3*)
12500 version_type=linux # correct to gnu/linux during the next big refactor
12501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12502 soname_spec='$libname$release$shared_ext$major'
12503 shlibpath_var=LD_LIBRARY_PATH
12504 case $host_vendor in
12505 sni)
12506 shlibpath_overrides_runpath=no
12507 need_lib_prefix=no
12508 runpath_var=LD_RUN_PATH
12509 ;;
12510 siemens)
12511 need_lib_prefix=no
12512 ;;
12513 motorola)
12514 need_lib_prefix=no
12515 need_version=no
12516 shlibpath_overrides_runpath=no
12517 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12518 ;;
12519 esac
12520 ;;
12521
12522 sysv4*MP*)
12523 if test -d /usr/nec; then
12524 version_type=linux # correct to gnu/linux during the next big refactor
12525 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12526 soname_spec='$libname$shared_ext.$major'
12527 shlibpath_var=LD_LIBRARY_PATH
12528 fi
12529 ;;
12530
12531 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12532 version_type=sco
12533 need_lib_prefix=no
12534 need_version=no
12535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12536 soname_spec='$libname$release$shared_ext$major'
12537 shlibpath_var=LD_LIBRARY_PATH
12538 shlibpath_overrides_runpath=yes
12539 hardcode_into_libs=yes
12540 if test yes = "$with_gnu_ld"; then
12541 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12542 else
12543 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12544 case $host_os in
12545 sco3.2v5*)
12546 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12547 ;;
12548 esac
12549 fi
12550 sys_lib_dlsearch_path_spec='/usr/lib'
12551 ;;
12552
12553 tpf*)
12554 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12555 version_type=linux # correct to gnu/linux during the next big refactor
12556 need_lib_prefix=no
12557 need_version=no
12558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12559 shlibpath_var=LD_LIBRARY_PATH
12560 shlibpath_overrides_runpath=no
12561 hardcode_into_libs=yes
12562 ;;
12563
12564 uts4*)
12565 version_type=linux # correct to gnu/linux during the next big refactor
12566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12567 soname_spec='$libname$release$shared_ext$major'
12568 shlibpath_var=LD_LIBRARY_PATH
12569 ;;
12570
12571 emscripten*)
12572 version_type=none
12573 need_lib_prefix=no
12574 need_version=no
12575 library_names_spec='$libname$release$shared_ext'
12576 soname_spec='$libname$release$shared_ext'
12577 finish_cmds=
12578 dynamic_linker="Emscripten linker"
12579 lt_prog_compiler_wl=
12580 lt_prog_compiler_pic=
12581 lt_prog_compiler_static=
12582
12583
12584 if test yes = "$GCC"; then
12585 lt_prog_compiler_wl='-Wl,'
12586 lt_prog_compiler_static='-static'
12587
12588 case $host_os in
12589 aix*)
12590 # All AIX code is PIC.
12591 if test ia64 = "$host_cpu"; then
12592 # AIX 5 now supports IA64 processor
12593 lt_prog_compiler_static='-Bstatic'
12594 fi
12595 lt_prog_compiler_pic='-fPIC'
12596 ;;
12597
12598 amigaos*)
12599 case $host_cpu in
12600 powerpc)
12601 # see comment about AmigaOS4 .so support
12602 lt_prog_compiler_pic='-fPIC'
12603 ;;
12604 m68k)
12605 # FIXME: we need at least 68020 code to build shared libraries, but
12606 # adding the '-m68020' flag to GCC prevents building anything better,
12607 # like '-m68040'.
12608 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12609 ;;
12610 esac
12611 ;;
12612
12613 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12614 # PIC is the default for these OSes.
12615 ;;
12616
12617 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12618 # This hack is so that the source file can tell whether it is being
12619 # built for inclusion in a dll (and should export symbols for example).
12620 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12621 # (--disable-auto-import) libraries
12622 lt_prog_compiler_pic='-DDLL_EXPORT'
12623 case $host_os in
12624 os2*)
12625 lt_prog_compiler_static='$wl-static'
12626 ;;
12627 esac
12628 ;;
12629
12630 darwin* | rhapsody*)
12631 # PIC is the default on this platform
12632 # Common symbols not allowed in MH_DYLIB files
12633 lt_prog_compiler_pic='-fno-common'
12634 ;;
12635
12636 haiku*)
12637 # PIC is the default for Haiku.
12638 # The "-static" flag exists, but is broken.
12639 lt_prog_compiler_static=
12640 ;;
12641
12642 hpux*)
12643 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12644 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12645 # sets the default TLS model and affects inlining.
12646 case $host_cpu in
12647 hppa*64*)
12648 # +Z the default
12649 ;;
12650 *)
12651 lt_prog_compiler_pic='-fPIC'
12652 ;;
12653 esac
12654 ;;
12655
12656 interix[3-9]*)
12657 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12658 # Instead, we relocate shared libraries at runtime.
12659 ;;
12660
12661 msdosdjgpp*)
12662 # Just because we use GCC doesn't mean we suddenly get shared libraries
12663 # on systems that don't support them.
12664 lt_prog_compiler_can_build_shared=no
12665 enable_shared=no
12666 ;;
12667
12668 *nto* | *qnx*)
12669 # QNX uses GNU C++, but need to define -shared option too, otherwise
12670 # it will coredump.
12671 lt_prog_compiler_pic='-fPIC -shared'
12672 ;;
12673
12674 sysv4*MP*)
12675 if test -d /usr/nec; then
12676 lt_prog_compiler_pic=-Kconform_pic
12677 fi
12678 ;;
12679
12680 *)
12681 lt_prog_compiler_pic='-fPIC'
12682 ;;
12683 esac
12684
12685 case $cc_basename in
12686 nvcc*) # Cuda Compiler Driver 2.2
12687 lt_prog_compiler_wl='-Xlinker '
12688 if test -n "$lt_prog_compiler_pic"; then
12689 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12690 fi
12691 ;;
12692 esac
12693 else
12694 # PORTME Check for flag to pass linker flags through the system compiler.
12695 case $host_os in
12696 aix*)
12697 lt_prog_compiler_wl='-Wl,'
12698 if test ia64 = "$host_cpu"; then
12699 # AIX 5 now supports IA64 processor
12700 lt_prog_compiler_static='-Bstatic'
12701 else
12702 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12703 fi
12704 ;;
12705
12706 darwin* | rhapsody*)
12707 # PIC is the default on this platform
12708 # Common symbols not allowed in MH_DYLIB files
12709 lt_prog_compiler_pic='-fno-common'
12710 case $cc_basename in
12711 nagfor*)
12712 # NAG Fortran compiler
12713 lt_prog_compiler_wl='-Wl,-Wl,,'
12714 lt_prog_compiler_pic='-PIC'
12715 lt_prog_compiler_static='-Bstatic'
12716 ;;
12717 esac
12718 ;;
12719
12720 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12721 # This hack is so that the source file can tell whether it is being
12722 # built for inclusion in a dll (and should export symbols for example).
12723 lt_prog_compiler_pic='-DDLL_EXPORT'
12724 case $host_os in
12725 os2*)
12726 lt_prog_compiler_static='$wl-static'
12727 ;;
12728 esac
12729 ;;
12730
12731 hpux9* | hpux10* | hpux11*)
12732 lt_prog_compiler_wl='-Wl,'
12733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12734 # not for PA HP-UX.
12735 case $host_cpu in
12736 hppa*64*|ia64*)
12737 # +Z the default
12738 ;;
12739 *)
12740 lt_prog_compiler_pic='+Z'
12741 ;;
12742 esac
12743 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12744 lt_prog_compiler_static='$wl-a ${wl}archive'
12745 ;;
12746
12747 irix5* | irix6* | nonstopux*)
12748 lt_prog_compiler_wl='-Wl,'
12749 # PIC (with -KPIC) is the default.
12750 lt_prog_compiler_static='-non_shared'
12751 ;;
12752
12753 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12754 case $cc_basename in
12755 # old Intel for x86_64, which still supported -KPIC.
12756 ecc*)
12757 lt_prog_compiler_wl='-Wl,'
12758 lt_prog_compiler_pic='-KPIC'
12759 lt_prog_compiler_static='-static'
12760 ;;
12761 *flang* | ftn | f18* | f95*)
12762 # Flang compiler.
12763 lt_prog_compiler_wl='-Wl,'
12764 lt_prog_compiler_pic='-fPIC'
12765 lt_prog_compiler_static='-static'
12766 ;;
12767 # icc used to be incompatible with GCC.
12768 # ICC 10 doesn't accept -KPIC any more.
12769 icc* | ifort*)
12770 lt_prog_compiler_wl='-Wl,'
12771 lt_prog_compiler_pic='-fPIC'
12772 lt_prog_compiler_static='-static'
12773 ;;
12774 # Lahey Fortran 8.1.
12775 lf95*)
12776 lt_prog_compiler_wl='-Wl,'
12777 lt_prog_compiler_pic='--shared'
12778 lt_prog_compiler_static='--static'
12779 ;;
12780 nagfor*)
12781 # NAG Fortran compiler
12782 lt_prog_compiler_wl='-Wl,-Wl,,'
12783 lt_prog_compiler_pic='-PIC'
12784 lt_prog_compiler_static='-Bstatic'
12785 ;;
12786 tcc*)
12787 # Fabrice Bellard et al's Tiny C Compiler
12788 lt_prog_compiler_wl='-Wl,'
12789 lt_prog_compiler_pic='-fPIC'
12790 lt_prog_compiler_static='-static'
12791 ;;
12792 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12793 # Portland Group compilers (*not* the Pentium gcc compiler,
12794 # which looks to be a dead project)
12795 lt_prog_compiler_wl='-Wl,'
12796 lt_prog_compiler_pic='-fpic'
12797 lt_prog_compiler_static='-Bstatic'
12798 ;;
12799 ccc*)
12800 lt_prog_compiler_wl='-Wl,'
12801 # All Alpha code is PIC.
12802 lt_prog_compiler_static='-non_shared'
12803 ;;
12804 xl* | bgxl* | bgf* | mpixl*)
12805 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12806 lt_prog_compiler_wl='-Wl,'
12807 lt_prog_compiler_pic='-qpic'
12808 lt_prog_compiler_static='-qstaticlink'
12809 ;;
12810 *)
12811 case `$CC -V 2>&1 | $SED 5q` in
12812 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12813 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12814 lt_prog_compiler_pic='-KPIC'
12815 lt_prog_compiler_static='-Bstatic'
12816 lt_prog_compiler_wl=''
12817 ;;
12818 *Sun\ F* | *Sun*Fortran*)
12819 lt_prog_compiler_pic='-KPIC'
12820 lt_prog_compiler_static='-Bstatic'
12821 lt_prog_compiler_wl='-Qoption ld '
12822 ;;
12823 *Sun\ C*)
12824 # Sun C 5.9
12825 lt_prog_compiler_pic='-KPIC'
12826 lt_prog_compiler_static='-Bstatic'
12827 lt_prog_compiler_wl='-Wl,'
12828 ;;
12829 *Intel*\ [CF]*Compiler*)
12830 lt_prog_compiler_wl='-Wl,'
12831 lt_prog_compiler_pic='-fPIC'
12832 lt_prog_compiler_static='-static'
12833 ;;
12834 *Portland\ Group*)
12835 lt_prog_compiler_wl='-Wl,'
12836 lt_prog_compiler_pic='-fpic'
12837 lt_prog_compiler_static='-Bstatic'
12838 ;;
12839 esac
12840 ;;
12841 esac
12842 ;;
12843
12844 newsos6)
12845 lt_prog_compiler_pic='-KPIC'
12846 lt_prog_compiler_static='-Bstatic'
12847 ;;
12848
12849 *-mlibc)
12850 lt_prog_compiler_wl='-Wl,'
12851 lt_prog_compiler_pic='-fPIC'
12852 lt_prog_compiler_static='-static'
12853 ;;
12854
12855 *nto* | *qnx*)
12856 # QNX uses GNU C++, but need to define -shared option too, otherwise
12857 # it will coredump.
12858 lt_prog_compiler_pic='-fPIC -shared'
12859 ;;
12860
12861 osf3* | osf4* | osf5*)
12862 lt_prog_compiler_wl='-Wl,'
12863 # All OSF/1 code is PIC.
12864 lt_prog_compiler_static='-non_shared'
12865 ;;
12866
12867 rdos*)
12868 lt_prog_compiler_static='-non_shared'
12869 ;;
12870
12871 serenity*)
12872 ;;
12873
12874 solaris*)
12875 lt_prog_compiler_pic='-KPIC'
12876 lt_prog_compiler_static='-Bstatic'
12877 case $cc_basename in
12878 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12879 lt_prog_compiler_wl='-Qoption ld ';;
12880 *)
12881 lt_prog_compiler_wl='-Wl,';;
12882 esac
12883 ;;
12884
12885 sunos4*)
12886 lt_prog_compiler_wl='-Qoption ld '
12887 lt_prog_compiler_pic='-PIC'
12888 lt_prog_compiler_static='-Bstatic'
12889 ;;
12890
12891 sysv4 | sysv4.2uw2* | sysv4.3*)
12892 lt_prog_compiler_wl='-Wl,'
12893 lt_prog_compiler_pic='-KPIC'
12894 lt_prog_compiler_static='-Bstatic'
12895 ;;
12896
12897 sysv4*MP*)
12898 if test -d /usr/nec; then
12899 lt_prog_compiler_pic='-Kconform_pic'
12900 lt_prog_compiler_static='-Bstatic'
12901 fi
12902 ;;
12903
12904 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12905 lt_prog_compiler_wl='-Wl,'
12906 lt_prog_compiler_pic='-KPIC'
12907 lt_prog_compiler_static='-Bstatic'
12908 ;;
12909
12910 unicos*)
12911 lt_prog_compiler_wl='-Wl,'
12912 lt_prog_compiler_can_build_shared=no
12913 ;;
12914
12915 uts4*)
12916 lt_prog_compiler_pic='-pic'
12917 lt_prog_compiler_static='-Bstatic'
12918 ;;
12919
12920 *)
12921 lt_prog_compiler_can_build_shared=no
12922 ;;
12923 esac
12924 fi
12925
12926 case $host_os in
12927 # For platforms that do not support PIC, -DPIC is meaningless:
12928 *djgpp*)
12929 lt_prog_compiler_pic=
12930 ;;
12931 *)
12932 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12933 ;;
12934 esac
12935
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12937 printf %s "checking for $compiler option to produce PIC... " >&6; }
12938 if test ${lt_cv_prog_compiler_pic+y}
12939 then :
12940 printf %s "(cached) " >&6
12941 else case e in #(
12942 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12943 esac
12944 fi
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12946 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12947 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12948
12949 #
12950 # Check to make sure the PIC flag actually works.
12951 #
12952 if test -n "$lt_prog_compiler_pic"; then
12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12954 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12955 if test ${lt_cv_prog_compiler_pic_works+y}
12956 then :
12957 printf %s "(cached) " >&6
12958 else case e in #(
12959 e) lt_cv_prog_compiler_pic_works=no
12960 ac_outfile=conftest.$ac_objext
12961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12962 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12963 # Insert the option either (1) after the last *FLAGS variable, or
12964 # (2) before a word containing "conftest.", or (3) at the end.
12965 # Note that $ac_compile itself does not contain backslashes and begins
12966 # with a dollar sign (not a hyphen), so the echo should work correctly.
12967 # The option is referenced via a variable to avoid confusing sed.
12968 lt_compile=`echo "$ac_compile" | $SED \
12969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12971 -e 's:$: $lt_compiler_flag:'`
12972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12973 (eval "$lt_compile" 2>conftest.err)
12974 ac_status=$?
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 if (exit $ac_status) && test -s "$ac_outfile"; then
12978 # The compiler can only warn and ignore the option if not recognized
12979 # So say no if there are warnings other than the usual output.
12980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12982 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12983 lt_cv_prog_compiler_pic_works=yes
12984 fi
12985 fi
12986 $RM conftest*
12987 ;;
12988 esac
12989 fi
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12991 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12992
12993 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12994 case $lt_prog_compiler_pic in
12995 "" | " "*) ;;
12996 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12997 esac
12998 else
12999 lt_prog_compiler_pic=
13000 lt_prog_compiler_can_build_shared=no
13001 fi
13002
13003 fi
13004
13005
13006
13007
13008
13009 #
13010 # Check to make sure the static flag actually works.
13011 #
13012 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13014 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13015 if test ${lt_cv_prog_compiler_static_works+y}
13016 then :
13017 printf %s "(cached) " >&6
13018 else case e in #(
13019 e) lt_cv_prog_compiler_static_works=no
13020 save_LDFLAGS=$LDFLAGS
13021 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13022 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13023 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13024 # The linker can only warn and ignore the option if not recognized
13025 # So say no if there are warnings
13026 if test -s conftest.err; then
13027 # Append any errors to the config.log.
13028 cat conftest.err 1>&5
13029 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13031 if diff conftest.exp conftest.er2 >/dev/null; then
13032 lt_cv_prog_compiler_static_works=yes
13033 fi
13034 else
13035 lt_cv_prog_compiler_static_works=yes
13036 fi
13037 fi
13038 $RM -r conftest*
13039 LDFLAGS=$save_LDFLAGS
13040 ;;
13041 esac
13042 fi
13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13044 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13045
13046 if test yes = "$lt_cv_prog_compiler_static_works"; then
13047 :
13048 else
13049 lt_prog_compiler_static=
13050 fi
13051
13052
13053
13054 ='-fPIC'
13055 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13056 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'
13057 archive_cmds_need_lc=no
13058 no_undefined_flag=
13059 ;;
13060
13061 *)
13062 dynamic_linker=no
13063 ;;
13064 esac
13065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13066 printf "%s\n" "$dynamic_linker" >&6; }
13067 test no = "$dynamic_linker" && can_build_shared=no
13068
13069 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13070 if test yes = "$GCC"; then
13071 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13072 fi
13073
13074 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13075 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13076 fi
13077
13078 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13079 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13080 fi
13081
13082 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13083 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13084
13085 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13086 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13087
13088 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13089 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13188 printf %s "checking how to hardcode library paths into programs... " >&6; }
13189 hardcode_action=
13190 if test -n "$hardcode_libdir_flag_spec" ||
13191 test -n "$runpath_var" ||
13192 test yes = "$hardcode_automatic"; then
13193
13194 # We can hardcode non-existent directories.
13195 if test no != "$hardcode_direct" &&
13196 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13197 # have to relink, otherwise we might link with an installed library
13198 # when we should be linking with a yet-to-be-installed one
13199 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13200 test no != "$hardcode_minus_L"; then
13201 # Linking always hardcodes the temporary library directory.
13202 hardcode_action=relink
13203 else
13204 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13205 hardcode_action=immediate
13206 fi
13207 else
13208 # We cannot hardcode anything, or else we can only hardcode existing
13209 # directories.
13210 hardcode_action=unsupported
13211 fi
13212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13213 printf "%s\n" "$hardcode_action" >&6; }
13214
13215 if test relink = "$hardcode_action" ||
13216 test yes = "$inherit_rpath"; then
13217 # Fast installation is not supported
13218 enable_fast_install=no
13219 elif test yes = "$shlibpath_overrides_runpath" ||
13220 test no = "$enable_shared"; then
13221 # Fast installation is not necessary
13222 enable_fast_install=needless
13223 fi
13224
13225
13226
13227
13228
13229
13230 if test yes != "$enable_dlopen"; then
13231 enable_dlopen=unknown
13232 enable_dlopen_self=unknown
13233 enable_dlopen_self_static=unknown
13234 else
13235 lt_cv_dlopen=no
13236 lt_cv_dlopen_libs=
13237
13238 case $host_os in
13239 beos*)
13240 lt_cv_dlopen=load_add_on
13241 lt_cv_dlopen_libs=
13242 lt_cv_dlopen_self=yes
13243 ;;
13244
13245 mingw* | windows* | pw32* | cegcc*)
13246 lt_cv_dlopen=LoadLibrary
13247 lt_cv_dlopen_libs=
13248 ;;
13249
13250 cygwin*)
13251 lt_cv_dlopen=dlopen
13252 lt_cv_dlopen_libs=
13253 ;;
13254
13255 darwin*)
13256 # if libdl is installed we need to link against it
13257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13258 printf %s "checking for dlopen in -ldl... " >&6; }
13259 if test ${ac_cv_lib_dl_dlopen+y}
13260 then :
13261 printf %s "(cached) " >&6
13262 else case e in #(
13263 e) ac_check_lib_save_LIBS=$LIBS
13264 LIBS="-ldl $LIBS"
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13267
13268 /* Override any GCC internal prototype to avoid an error.
13269 Use char because int might match the return type of a GCC
13270 builtin and then its argument prototype would still apply.
13271 The 'extern "C"' is for builds by C++ compilers;
13272 although this is not generally supported in C code supporting it here
13273 has little cost and some practical benefit (sr 110532). */
13274 #ifdef __cplusplus
13275 extern "C"
13276 #endif
13277 char dlopen (void);
13278 int
13279 main (void)
13280 {
13281 return dlopen ();
13282 ;
13283 return 0;
13284 }
13285 _ACEOF
13286 if ac_fn_c_try_link "$LINENO"
13287 then :
13288 ac_cv_lib_dl_dlopen=yes
13289 else case e in #(
13290 e) ac_cv_lib_dl_dlopen=no ;;
13291 esac
13292 fi
13293 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13294 conftest$ac_exeext conftest.$ac_ext
13295 LIBS=$ac_check_lib_save_LIBS ;;
13296 esac
13297 fi
13298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13299 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13300 if test "x$ac_cv_lib_dl_dlopen" = xyes
13301 then :
13302 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13303 else case e in #(
13304 e)
13305 lt_cv_dlopen=dyld
13306 lt_cv_dlopen_libs=
13307 lt_cv_dlopen_self=yes
13308 ;;
13309 esac
13310 fi
13311
13312 ;;
13313
13314 tpf*)
13315 # Don't try to run any link tests for TPF. We know it's impossible
13316 # because TPF is a cross-compiler, and we know how we open DSOs.
13317 lt_cv_dlopen=dlopen
13318 lt_cv_dlopen_libs=
13319 lt_cv_dlopen_self=no
13320 ;;
13321
13322 *)
13323 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13324 if test "x$ac_cv_func_shl_load" = xyes
13325 then :
13326 lt_cv_dlopen=shl_load
13327 else case e in #(
13328 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13329 printf %s "checking for shl_load in -ldld... " >&6; }
13330 if test ${ac_cv_lib_dld_shl_load+y}
13331 then :
13332 printf %s "(cached) " >&6
13333 else case e in #(
13334 e) ac_check_lib_save_LIBS=$LIBS
13335 LIBS="-ldld $LIBS"
13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h. */
13338
13339 /* Override any GCC internal prototype to avoid an error.
13340 Use char because int might match the return type of a GCC
13341 builtin and then its argument prototype would still apply.
13342 The 'extern "C"' is for builds by C++ compilers;
13343 although this is not generally supported in C code supporting it here
13344 has little cost and some practical benefit (sr 110532). */
13345 #ifdef __cplusplus
13346 extern "C"
13347 #endif
13348 char shl_load (void);
13349 int
13350 main (void)
13351 {
13352 return shl_load ();
13353 ;
13354 return 0;
13355 }
13356 _ACEOF
13357 if ac_fn_c_try_link "$LINENO"
13358 then :
13359 ac_cv_lib_dld_shl_load=yes
13360 else case e in #(
13361 e) ac_cv_lib_dld_shl_load=no ;;
13362 esac
13363 fi
13364 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13365 conftest$ac_exeext conftest.$ac_ext
13366 LIBS=$ac_check_lib_save_LIBS ;;
13367 esac
13368 fi
13369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13370 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13371 if test "x$ac_cv_lib_dld_shl_load" = xyes
13372 then :
13373 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13374 else case e in #(
13375 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13376 if test "x$ac_cv_func_dlopen" = xyes
13377 then :
13378 lt_cv_dlopen=dlopen
13379 else case e in #(
13380 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13381 printf %s "checking for dlopen in -ldl... " >&6; }
13382 if test ${ac_cv_lib_dl_dlopen+y}
13383 then :
13384 printf %s "(cached) " >&6
13385 else case e in #(
13386 e) ac_check_lib_save_LIBS=$LIBS
13387 LIBS="-ldl $LIBS"
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply.
13394 The 'extern "C"' is for builds by C++ compilers;
13395 although this is not generally supported in C code supporting it here
13396 has little cost and some practical benefit (sr 110532). */
13397 #ifdef __cplusplus
13398 extern "C"
13399 #endif
13400 char dlopen (void);
13401 int
13402 main (void)
13403 {
13404 return dlopen ();
13405 ;
13406 return 0;
13407 }
13408 _ACEOF
13409 if ac_fn_c_try_link "$LINENO"
13410 then :
13411 ac_cv_lib_dl_dlopen=yes
13412 else case e in #(
13413 e) ac_cv_lib_dl_dlopen=no ;;
13414 esac
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13417 conftest$ac_exeext conftest.$ac_ext
13418 LIBS=$ac_check_lib_save_LIBS ;;
13419 esac
13420 fi
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13422 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13423 if test "x$ac_cv_lib_dl_dlopen" = xyes
13424 then :
13425 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13426 else case e in #(
13427 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13428 printf %s "checking for dlopen in -lsvld... " >&6; }
13429 if test ${ac_cv_lib_svld_dlopen+y}
13430 then :
13431 printf %s "(cached) " >&6
13432 else case e in #(
13433 e) ac_check_lib_save_LIBS=$LIBS
13434 LIBS="-lsvld $LIBS"
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13437
13438 /* Override any GCC internal prototype to avoid an error.
13439 Use char because int might match the return type of a GCC
13440 builtin and then its argument prototype would still apply.
13441 The 'extern "C"' is for builds by C++ compilers;
13442 although this is not generally supported in C code supporting it here
13443 has little cost and some practical benefit (sr 110532). */
13444 #ifdef __cplusplus
13445 extern "C"
13446 #endif
13447 char dlopen (void);
13448 int
13449 main (void)
13450 {
13451 return dlopen ();
13452 ;
13453 return 0;
13454 }
13455 _ACEOF
13456 if ac_fn_c_try_link "$LINENO"
13457 then :
13458 ac_cv_lib_svld_dlopen=yes
13459 else case e in #(
13460 e) ac_cv_lib_svld_dlopen=no ;;
13461 esac
13462 fi
13463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13464 conftest$ac_exeext conftest.$ac_ext
13465 LIBS=$ac_check_lib_save_LIBS ;;
13466 esac
13467 fi
13468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13469 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13470 if test "x$ac_cv_lib_svld_dlopen" = xyes
13471 then :
13472 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13473 else case e in #(
13474 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13475 printf %s "checking for dld_link in -ldld... " >&6; }
13476 if test ${ac_cv_lib_dld_dld_link+y}
13477 then :
13478 printf %s "(cached) " >&6
13479 else case e in #(
13480 e) ac_check_lib_save_LIBS=$LIBS
13481 LIBS="-ldld $LIBS"
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13484
13485 /* Override any GCC internal prototype to avoid an error.
13486 Use char because int might match the return type of a GCC
13487 builtin and then its argument prototype would still apply.
13488 The 'extern "C"' is for builds by C++ compilers;
13489 although this is not generally supported in C code supporting it here
13490 has little cost and some practical benefit (sr 110532). */
13491 #ifdef __cplusplus
13492 extern "C"
13493 #endif
13494 char dld_link (void);
13495 int
13496 main (void)
13497 {
13498 return dld_link ();
13499 ;
13500 return 0;
13501 }
13502 _ACEOF
13503 if ac_fn_c_try_link "$LINENO"
13504 then :
13505 ac_cv_lib_dld_dld_link=yes
13506 else case e in #(
13507 e) ac_cv_lib_dld_dld_link=no ;;
13508 esac
13509 fi
13510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13511 conftest$ac_exeext conftest.$ac_ext
13512 LIBS=$ac_check_lib_save_LIBS ;;
13513 esac
13514 fi
13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13516 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13517 if test "x$ac_cv_lib_dld_dld_link" = xyes
13518 then :
13519 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13520 fi
13521
13522 ;;
13523 esac
13524 fi
13525
13526 ;;
13527 esac
13528 fi
13529
13530 ;;
13531 esac
13532 fi
13533
13534 ;;
13535 esac
13536 fi
13537
13538 ;;
13539 esac
13540 fi
13541
13542 ;;
13543 esac
13544
13545 if test no = "$lt_cv_dlopen"; then
13546 enable_dlopen=no
13547 else
13548 enable_dlopen=yes
13549 fi
13550
13551 case $lt_cv_dlopen in
13552 dlopen)
13553 save_CPPFLAGS=$CPPFLAGS
13554 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13555
13556 save_LDFLAGS=$LDFLAGS
13557 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13558
13559 save_LIBS=$LIBS
13560 LIBS="$lt_cv_dlopen_libs $LIBS"
13561
13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13563 printf %s "checking whether a program can dlopen itself... " >&6; }
13564 if test ${lt_cv_dlopen_self+y}
13565 then :
13566 printf %s "(cached) " >&6
13567 else case e in #(
13568 e) if test yes = "$cross_compiling"; then :
13569 lt_cv_dlopen_self=cross
13570 else
13571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13572 lt_status=$lt_dlunknown
13573 cat > conftest.$ac_ext <<_LT_EOF
13574 #line $LINENO "configure"
13575 #include "confdefs.h"
13576
13577 #if HAVE_DLFCN_H
13578 #include <dlfcn.h>
13579 #endif
13580
13581 #include <stdio.h>
13582
13583 #ifdef RTLD_GLOBAL
13584 # define LT_DLGLOBAL RTLD_GLOBAL
13585 #else
13586 # ifdef DL_GLOBAL
13587 # define LT_DLGLOBAL DL_GLOBAL
13588 # else
13589 # define LT_DLGLOBAL 0
13590 # endif
13591 #endif
13592
13593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13594 find out it does not work in some platform. */
13595 #ifndef LT_DLLAZY_OR_NOW
13596 # ifdef RTLD_LAZY
13597 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13598 # else
13599 # ifdef DL_LAZY
13600 # define LT_DLLAZY_OR_NOW DL_LAZY
13601 # else
13602 # ifdef RTLD_NOW
13603 # define LT_DLLAZY_OR_NOW RTLD_NOW
13604 # else
13605 # ifdef DL_NOW
13606 # define LT_DLLAZY_OR_NOW DL_NOW
13607 # else
13608 # define LT_DLLAZY_OR_NOW 0
13609 # endif
13610 # endif
13611 # endif
13612 # endif
13613 #endif
13614
13615 /* When -fvisibility=hidden is used, assume the code has been annotated
13616 correspondingly for the symbols needed. */
13617 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13618 int fnord (void) __attribute__((visibility("default")));
13619 #endif
13620
13621 int fnord (void) { return 42; }
13622 int main (void)
13623 {
13624 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13625 int status = $lt_dlunknown;
13626
13627 if (self)
13628 {
13629 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13630 else
13631 {
13632 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13633 else puts (dlerror ());
13634 }
13635 /* dlclose (self); */
13636 }
13637 else
13638 puts (dlerror ());
13639
13640 return status;
13641 }
13642 _LT_EOF
13643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13644 (eval $ac_link) 2>&5
13645 ac_status=$?
13646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13647 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13648 (./conftest; exit; ) >&5 2>/dev/null
13649 lt_status=$?
13650 case x$lt_status in
13651 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13652 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13653 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13654 esac
13655 else :
13656 # compilation failed
13657 lt_cv_dlopen_self=no
13658 fi
13659 fi
13660 rm -fr conftest*
13661
13662 ;;
13663 esac
13664 fi
13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13666 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13667
13668 if test yes = "$lt_cv_dlopen_self"; then
13669 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13671 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13672 if test ${lt_cv_dlopen_self_static+y}
13673 then :
13674 printf %s "(cached) " >&6
13675 else case e in #(
13676 e) if test yes = "$cross_compiling"; then :
13677 lt_cv_dlopen_self_static=cross
13678 else
13679 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13680 lt_status=$lt_dlunknown
13681 cat > conftest.$ac_ext <<_LT_EOF
13682 #line $LINENO "configure"
13683 #include "confdefs.h"
13684
13685 #if HAVE_DLFCN_H
13686 #include <dlfcn.h>
13687 #endif
13688
13689 #include <stdio.h>
13690
13691 #ifdef RTLD_GLOBAL
13692 # define LT_DLGLOBAL RTLD_GLOBAL
13693 #else
13694 # ifdef DL_GLOBAL
13695 # define LT_DLGLOBAL DL_GLOBAL
13696 # else
13697 # define LT_DLGLOBAL 0
13698 # endif
13699 #endif
13700
13701 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13702 find out it does not work in some platform. */
13703 #ifndef LT_DLLAZY_OR_NOW
13704 # ifdef RTLD_LAZY
13705 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13706 # else
13707 # ifdef DL_LAZY
13708 # define LT_DLLAZY_OR_NOW DL_LAZY
13709 # else
13710 # ifdef RTLD_NOW
13711 # define LT_DLLAZY_OR_NOW RTLD_NOW
13712 # else
13713 # ifdef DL_NOW
13714 # define LT_DLLAZY_OR_NOW DL_NOW
13715 # else
13716 # define LT_DLLAZY_OR_NOW 0
13717 # endif
13718 # endif
13719 # endif
13720 # endif
13721 #endif
13722
13723 /* When -fvisibility=hidden is used, assume the code has been annotated
13724 correspondingly for the symbols needed. */
13725 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13726 int fnord (void) __attribute__((visibility("default")));
13727 #endif
13728
13729 int fnord (void) { return 42; }
13730 int main (void)
13731 {
13732 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13733 int status = $lt_dlunknown;
13734
13735 if (self)
13736 {
13737 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13738 else
13739 {
13740 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13741 else puts (dlerror ());
13742 }
13743 /* dlclose (self); */
13744 }
13745 else
13746 puts (dlerror ());
13747
13748 return status;
13749 }
13750 _LT_EOF
13751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13752 (eval $ac_link) 2>&5
13753 ac_status=$?
13754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13755 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13756 (./conftest; exit; ) >&5 2>/dev/null
13757 lt_status=$?
13758 case x$lt_status in
13759 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13760 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13761 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13762 esac
13763 else :
13764 # compilation failed
13765 lt_cv_dlopen_self_static=no
13766 fi
13767 fi
13768 rm -fr conftest*
13769
13770 ;;
13771 esac
13772 fi
13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13774 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13775 fi
13776
13777 CPPFLAGS=$save_CPPFLAGS
13778 LDFLAGS=$save_LDFLAGS
13779 LIBS=$save_LIBS
13780 ;;
13781 esac
13782
13783 case $lt_cv_dlopen_self in
13784 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13785 *) enable_dlopen_self=unknown ;;
13786 esac
13787
13788 case $lt_cv_dlopen_self_static in
13789 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13790 *) enable_dlopen_self_static=unknown ;;
13791 esac
13792 fi
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810 striplib=
13811 old_striplib=
13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13813 printf %s "checking whether stripping libraries is possible... " >&6; }
13814 if test -z "$STRIP"; then
13815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816 printf "%s\n" "no" >&6; }
13817 else
13818 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13819 old_striplib="$STRIP --strip-debug"
13820 striplib="$STRIP --strip-unneeded"
13821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13822 printf "%s\n" "yes" >&6; }
13823 else
13824 case $host_os in
13825 darwin*)
13826 # FIXME - insert some real tests, host_os isn't really good enough
13827 striplib="$STRIP -x"
13828 old_striplib="$STRIP -S"
13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13830 printf "%s\n" "yes" >&6; }
13831 ;;
13832 freebsd*)
13833 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13834 old_striplib="$STRIP --strip-debug"
13835 striplib="$STRIP --strip-unneeded"
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13837 printf "%s\n" "yes" >&6; }
13838 else
13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840 printf "%s\n" "no" >&6; }
13841 fi
13842 ;;
13843 *)
13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13845 printf "%s\n" "no" >&6; }
13846 ;;
13847 esac
13848 fi
13849 fi
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862 # Report what library types will actually be built
13863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13864 printf %s "checking if libtool supports shared libraries... " >&6; }
13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13866 printf "%s\n" "$can_build_shared" >&6; }
13867
13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13869 printf %s "checking whether to build shared libraries... " >&6; }
13870 test no = "$can_build_shared" && enable_shared=no
13871
13872 # On AIX, shared libraries and static libraries use the same namespace, and
13873 # are all built from PIC.
13874 case $host_os in
13875 aix3*)
13876 test yes = "$enable_shared" && enable_static=no
13877 if test -n "$RANLIB"; then
13878 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13879 postinstall_cmds='$RANLIB $lib'
13880 fi
13881 ;;
13882
13883 aix[4-9]*)
13884 if test ia64 != "$host_cpu"; then
13885 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13886 yes,aix,yes) ;; # shared object as lib.so file only
13887 yes,svr4,*) ;; # shared object as lib.so archive member only
13888 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13889 esac
13890 fi
13891 ;;
13892 esac
13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13894 printf "%s\n" "$enable_shared" >&6; }
13895
13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13897 printf %s "checking whether to build static libraries... " >&6; }
13898 # Make sure either enable_shared or enable_static is yes.
13899 test yes = "$enable_shared" || enable_static=yes
13900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13901 printf "%s\n" "$enable_static" >&6; }
13902
13903
13904
13905
13906 fi
13907 ac_ext=c
13908 ac_cpp='$CPP $CPPFLAGS'
13909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13912
13913 CC=$lt_save_CC
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929 ac_config_commands="$ac_config_commands libtool"
13930
13931
13932
13933
13934 # Only expand once:
13935
13936
13937
13938 # Don't rebuild the configure script. I'm distributing a perfectly good one.
13939
13940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13941 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13942 # Check whether --enable-maintainer-mode was given.
13943 if test ${enable_maintainer_mode+y}
13944 then :
13945 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13946 else case e in #(
13947 e) USE_MAINTAINER_MODE=no ;;
13948 esac
13949 fi
13950
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13952 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
13953 if test $USE_MAINTAINER_MODE = yes; then
13954 MAINTAINER_MODE_TRUE=
13955 MAINTAINER_MODE_FALSE='#'
13956 else
13957 MAINTAINER_MODE_TRUE='#'
13958 MAINTAINER_MODE_FALSE=
13959 fi
13960
13961 MAINT=$MAINTAINER_MODE_TRUE
13962
13963
13964
13965 # Get the POSIX sh early, in case the configure script causes
13966 # `command -p getconf` to fail in a broken environment.
13967
13968 # Allow users to manually specify the path to a POSIX shell.
13969
13970
13971 if test "x${POSIX_SH}" = "x"
13972 then :
13973
13974 # If POSIX_SH is not set, get the default value of PATH which
13975 # is specified to find the standard POSIX utilities.
13976 POSIX_PATH=`command -p getconf PATH`
13977 if test "x${POSIX_PATH}" = "x"
13978 then :
13979 as_fn_error $? "\"cannot get the default PATH\"" "$LINENO" 5
13980 fi
13981 # Get the path of sh within POSIX_PATH.
13982 # Extract the first word of "sh", so it can be a program name with args.
13983 set dummy sh; 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_path_POSIX_SH+y}
13987 then :
13988 printf %s "(cached) " >&6
13989 else case e in #(
13990 e) case $POSIX_SH in
13991 [\\/]* | ?:[\\/]*)
13992 ac_cv_path_POSIX_SH="$POSIX_SH" # Let the user override the test with a path.
13993 ;;
13994 *)
13995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13996 for as_dir in ${POSIX_PATH}
13997 do
13998 IFS=$as_save_IFS
13999 case $as_dir in #(((
14000 '') as_dir=./ ;;
14001 */) ;;
14002 *) as_dir=$as_dir/ ;;
14003 esac
14004 for ac_exec_ext in '' $ac_executable_extensions; do
14005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14006 ac_cv_path_POSIX_SH="$as_dir$ac_word$ac_exec_ext"
14007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14008 break 2
14009 fi
14010 done
14011 done
14012 IFS=$as_save_IFS
14013
14014 test -z "$ac_cv_path_POSIX_SH" && ac_cv_path_POSIX_SH=""""
14015 ;;
14016 esac ;;
14017 esac
14018 fi
14019 POSIX_SH=$ac_cv_path_POSIX_SH
14020 if test -n "$POSIX_SH"; then
14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $POSIX_SH" >&5
14022 printf "%s\n" "$POSIX_SH" >&6; }
14023 else
14024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14025 printf "%s\n" "no" >&6; }
14026 fi
14027
14028
14029 if test "x${POSIX_SH}" = "x"
14030 then :
14031 as_fn_error $? "\"cannot find a POSIX shell\"" "$LINENO" 5
14032 fi
14033
14034 fi
14035
14036
14037 # Check if we need -std=c99 in LDFLAGS (for gcc on Solaris).
14038
14039
14040 case $target_os in
14041 *solaris* | *sunos*)
14042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Solaris c99 standard library" >&5
14043 printf %s "checking Solaris c99 standard library... " >&6; }
14044 if test "$cross_compiling" = yes
14045 then :
14046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skipping due to cross-compiling" >&5
14047 printf "%s\n" "skipping due to cross-compiling" >&6; }
14048 else case e in #(
14049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h. */
14051 #include <stdlib.h>
14052 int main(void) {
14053 char * eptr;
14054 strtod("0x1", &eptr);
14055 return (eptr[0] != '\0');
14056 }
14057 _ACEOF
14058 if ac_fn_c_try_run "$LINENO"
14059 then :
14060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14061 printf "%s\n" "yes" >&6; }
14062 else case e in #(
14063 e) # If we failed, try adding -std=c99 to the LDFLAGS.
14064 LDFLAGS="${LDFLAGS} -std=c99"
14065 if test "$cross_compiling" = yes
14066 then :
14067 # This should never arise, because the outer _ifelse
14068 # would jump to the action-if-cross-compiling rather
14069 # than executing its action-if-false. However, adding
14070 # this explicitly makes autoconf happier.
14071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skipping due to cross-compiling" >&5
14072 printf "%s\n" "skipping due to cross-compiling" >&6; }
14073
14074 else case e in #(
14075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14077 #include <stdlib.h>
14078 int main(void) {
14079 char * eptr;
14080 strtod("0x1", &eptr);
14081 return (eptr[0] != '\0');
14082 }
14083 _ACEOF
14084 if ac_fn_c_try_run "$LINENO"
14085 then :
14086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, if linked with -std=c99" >&5
14087 printf "%s\n" "yes, if linked with -std=c99" >&6; }
14088 else case e in #(
14089 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090 printf "%s\n" "no" >&6; }
14091 as_fn_error $? "c99 required" "$LINENO" 5 ;;
14092 esac
14093 fi
14094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14095 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14096 esac
14097 fi
14098 ;;
14099 esac
14100 fi
14101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14102 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14103 esac
14104 fi
14105
14106 ;;
14107 *)
14108 ;;
14109 esac
14110
14111
14112
14113 # Check if we need to add extra paths to CPPFLAGS and LDFLAGS for macOS.
14114
14115
14116 case $target_os in
14117 *darwin*)
14118 # Get the homebrew directory, which varies based on arch.
14119 case "$(uname -m)" in
14120 arm64)
14121 homebrew_dir=/opt/homebrew
14122 ;;
14123 *)
14124 homebrew_dir=/usr/local
14125 ;;
14126 esac
14127
14128 # Use the homebrew directory to specify the paths to openssl.
14129 CPPFLAGS="${CPPFLAGS} -I${homebrew_dir}/opt/openssl/include"
14130 LDFLAGS="${LDFLAGS} -L${homebrew_dir}/opt/openssl/lib"
14131 ;;
14132 esac
14133
14134
14135 # Checks for AES support in OpenSSL.
14136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing AES_encrypt" >&5
14137 printf %s "checking for library containing AES_encrypt... " >&6; }
14138 if test ${ac_cv_search_AES_encrypt+y}
14139 then :
14140 printf %s "(cached) " >&6
14141 else case e in #(
14142 e) ac_func_search_save_LIBS=$LIBS
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145
14146 /* Override any GCC internal prototype to avoid an error.
14147 Use char because int might match the return type of a GCC
14148 builtin and then its argument prototype would still apply.
14149 The 'extern "C"' is for builds by C++ compilers;
14150 although this is not generally supported in C code supporting it here
14151 has little cost and some practical benefit (sr 110532). */
14152 #ifdef __cplusplus
14153 extern "C"
14154 #endif
14155 char AES_encrypt (void);
14156 int
14157 main (void)
14158 {
14159 return AES_encrypt ();
14160 ;
14161 return 0;
14162 }
14163 _ACEOF
14164 for ac_lib in '' crypto
14165 do
14166 if test -z "$ac_lib"; then
14167 ac_res="none required"
14168 else
14169 ac_res=-l$ac_lib
14170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14171 fi
14172 if ac_fn_c_try_link "$LINENO"
14173 then :
14174 ac_cv_search_AES_encrypt=$ac_res
14175 fi
14176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14177 conftest$ac_exeext
14178 if test ${ac_cv_search_AES_encrypt+y}
14179 then :
14180 break
14181 fi
14182 done
14183 if test ${ac_cv_search_AES_encrypt+y}
14184 then :
14185
14186 else case e in #(
14187 e) ac_cv_search_AES_encrypt=no ;;
14188 esac
14189 fi
14190 rm conftest.$ac_ext
14191 LIBS=$ac_func_search_save_LIBS ;;
14192 esac
14193 fi
14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_AES_encrypt" >&5
14195 printf "%s\n" "$ac_cv_search_AES_encrypt" >&6; }
14196 ac_res=$ac_cv_search_AES_encrypt
14197 if test "$ac_res" != no
14198 then :
14199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14200
14201 else case e in #(
14202 e) as_fn_error $? "function AES_ENCRYPT not found" "$LINENO" 5 ;;
14203 esac
14204 fi
14205
14206 for ac_header in openssl/aes.h
14207 do :
14208 ac_fn_c_check_header_compile "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default"
14209 if test "x$ac_cv_header_openssl_aes_h" = xyes
14210 then :
14211 printf "%s\n" "#define HAVE_OPENSSL_AES_H 1" >>confdefs.h
14212
14213 else case e in #(
14214 e) as_fn_error $? "Unable to find the openssl/aes.h header" "$LINENO" 5 ;;
14215 esac
14216 fi
14217
14218 done
14219
14220 # Check how we can find out the available memory.
14221
14222 ac_func=
14223 for ac_item in $ac_func_c_list
14224 do
14225 if test $ac_func; then
14226 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
14227 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
14228 echo "#define $ac_item 1" >> confdefs.h
14229 fi
14230 ac_func=
14231 else
14232 ac_func=$ac_item
14233 fi
14234 done
14235
14236
14237
14238 # Check for a linuxy sysinfo syscall; and while we're doing that,
14239 # check if struct sysinfo is the old version (total RAM == totalmem)
14240 # or the new version (total RAM == totalmem * mem_unit).
14241
14242
14243 ac_fn_c_check_type "$LINENO" "struct sysinfo" "ac_cv_type_struct_sysinfo" "#include <sys/sysinfo.h>
14244 "
14245 if test "x$ac_cv_type_struct_sysinfo" = xyes
14246 then :
14247
14248 printf "%s\n" "#define HAVE_STRUCT_SYSINFO 1" >>confdefs.h
14249
14250
14251 fi
14252
14253 ac_fn_c_check_member "$LINENO" "struct sysinfo" "totalram" "ac_cv_member_struct_sysinfo_totalram" "#include <sys/sysinfo.h>
14254 "
14255 if test "x$ac_cv_member_struct_sysinfo_totalram" = xyes
14256 then :
14257
14258 printf "%s\n" "#define HAVE_STRUCT_SYSINFO_TOTALRAM 1" >>confdefs.h
14259
14260
14261 fi
14262 ac_fn_c_check_member "$LINENO" "struct sysinfo" "mem_unit" "ac_cv_member_struct_sysinfo_mem_unit" "#include <sys/sysinfo.h>
14263 "
14264 if test "x$ac_cv_member_struct_sysinfo_mem_unit" = xyes
14265 then :
14266
14267 printf "%s\n" "#define HAVE_STRUCT_SYSINFO_MEM_UNIT 1" >>confdefs.h
14268
14269
14270 fi
14271
14272
14273 # Check if we have <sys/param.h>, since some systems require it for
14274 # sysctl to work.
14275
14276
14277 # Check for <sys/sysctl.h>. If it exists and it defines HW_USERMEM
14278 # and/or HW_MEMSIZE, we'll try using those as memory limits.
14279
14280
14281
14282 # Check for posix_memalign.
14283
14284
14285
14286 # Check for mmap so we can work around its absence on Minix.
14287
14288
14289
14290 # Use 64-bit file offsets.
14291 # Check whether --enable-largefile was given.
14292 if test ${enable_largefile+y}
14293 then :
14294 enableval=$enable_largefile;
14295 fi
14296 if test "$enable_largefile,$enable_year2038" != no,no
14297 then :
14298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14299 printf %s "checking for $CC option to enable large file support... " >&6; }
14300 if test ${ac_cv_sys_largefile_opts+y}
14301 then :
14302 printf %s "(cached) " >&6
14303 else case e in #(
14304 e) ac_save_CC="$CC"
14305 ac_opt_found=no
14306 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
14307 if test x"$ac_opt" != x"none needed"
14308 then :
14309 CC="$ac_save_CC $ac_opt"
14310 fi
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313 #include <sys/types.h>
14314 #ifndef FTYPE
14315 # define FTYPE off_t
14316 #endif
14317 /* Check that FTYPE can represent 2**63 - 1 correctly.
14318 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14319 since some C++ compilers masquerading as C compilers
14320 incorrectly reject 9223372036854775807. */
14321 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14322 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14323 && LARGE_FTYPE % 2147483647 == 1)
14324 ? 1 : -1];
14325 int
14326 main (void)
14327 {
14328
14329 ;
14330 return 0;
14331 }
14332 _ACEOF
14333 if ac_fn_c_try_compile "$LINENO"
14334 then :
14335 if test x"$ac_opt" = x"none needed"
14336 then :
14337 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14338 CC="$CC -DFTYPE=ino_t"
14339 if ac_fn_c_try_compile "$LINENO"
14340 then :
14341
14342 else case e in #(
14343 e) CC="$CC -D_FILE_OFFSET_BITS=64"
14344 if ac_fn_c_try_compile "$LINENO"
14345 then :
14346 ac_opt='-D_FILE_OFFSET_BITS=64'
14347 fi
14348 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14349 esac
14350 fi
14351 rm -f core conftest.err conftest.$ac_objext conftest.beam
14352 fi
14353 ac_cv_sys_largefile_opts=$ac_opt
14354 ac_opt_found=yes
14355 fi
14356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14357 test $ac_opt_found = no || break
14358 done
14359 CC="$ac_save_CC"
14360
14361 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14362 esac
14363 fi
14364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14365 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14366
14367 ac_have_largefile=yes
14368 case $ac_cv_sys_largefile_opts in #(
14369 "none needed") :
14370 ;; #(
14371 "supported through gnulib") :
14372 ;; #(
14373 "support not detected") :
14374 ac_have_largefile=no ;; #(
14375 "-D_FILE_OFFSET_BITS=64") :
14376
14377 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14378 ;; #(
14379 "-D_LARGE_FILES=1") :
14380
14381 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14382 ;; #(
14383 "-n32") :
14384 CC="$CC -n32" ;; #(
14385 *) :
14386 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14387 esac
14388
14389 if test "$enable_year2038" != no
14390 then :
14391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14392 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14393 if test ${ac_cv_sys_year2038_opts+y}
14394 then :
14395 printf %s "(cached) " >&6
14396 else case e in #(
14397 e) ac_save_CPPFLAGS="$CPPFLAGS"
14398 ac_opt_found=no
14399 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
14400 if test x"$ac_opt" != x"none needed"
14401 then :
14402 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14403 fi
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406
14407 #include <time.h>
14408 /* Check that time_t can represent 2**32 - 1 correctly. */
14409 #define LARGE_TIME_T \\
14410 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
14411 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
14412 && LARGE_TIME_T % 65537 == 0)
14413 ? 1 : -1];
14414
14415 int
14416 main (void)
14417 {
14418
14419 ;
14420 return 0;
14421 }
14422 _ACEOF
14423 if ac_fn_c_try_compile "$LINENO"
14424 then :
14425 ac_cv_sys_year2038_opts="$ac_opt"
14426 ac_opt_found=yes
14427 fi
14428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14429 test $ac_opt_found = no || break
14430 done
14431 CPPFLAGS="$ac_save_CPPFLAGS"
14432 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
14433 esac
14434 fi
14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
14436 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
14437
14438 ac_have_year2038=yes
14439 case $ac_cv_sys_year2038_opts in #(
14440 "none needed") :
14441 ;; #(
14442 "support not detected") :
14443 ac_have_year2038=no ;; #(
14444 "-D_TIME_BITS=64") :
14445
14446 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
14447 ;; #(
14448 "-D__MINGW_USE_VC2005_COMPAT") :
14449
14450 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
14451 ;; #(
14452 "-U_USE_32_BIT_TIME_T"*) :
14453 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14454 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14455 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
14456 will stop working after mid-January 2038. Remove
14457 _USE_32BIT_TIME_T from the compiler flags.
14458 See 'config.log' for more details" "$LINENO" 5; } ;; #(
14459 *) :
14460 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
14461 esac
14462
14463 fi
14464
14465 fi
14466
14467 # Check whether the user has requested to disable compiler warnings.
14468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
14469 printf %s "checking for C compiler vendor... " >&6; }
14470 if test ${ax_cv_c_compiler_vendor+y}
14471 then :
14472 printf %s "(cached) " >&6
14473 else case e in #(
14474 e)
14475 vendors="
14476 intel: __ICC,__ECC,__INTEL_COMPILER
14477 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__
14478 pathscale: __PATHCC__,__PATHSCALE__
14479 clang: __clang__
14480 cray: _CRAYC
14481 fujitsu: __FUJITSU
14482 sdcc: SDCC,__SDCC
14483 sx: _SX
14484 nvhpc: __NVCOMPILER
14485 portland: __PGI
14486 gnu: __GNUC__
14487 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
14488 hp: __HP_cc,__HP_aCC
14489 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
14490 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
14491 comeau: __COMO__
14492 kai: __KCC
14493 lcc: __LCC__
14494 sgi: __sgi,sgi
14495 microsoft: _MSC_VER
14496 metrowerks: __MWERKS__
14497 watcom: __WATCOMC__
14498 tcc: __TINYC__
14499 unknown: UNKNOWN
14500 "
14501 for ventest in $vendors; do
14502 case $ventest in
14503 *:)
14504 vendor=$ventest
14505 continue
14506 ;;
14507 *)
14508 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
14509 ;;
14510 esac
14511
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h. */
14514
14515 int
14516 main (void)
14517 {
14518
14519 #if !($vencpp)
14520 thisisanerror;
14521 #endif
14522
14523 ;
14524 return 0;
14525 }
14526 _ACEOF
14527 if ac_fn_c_try_compile "$LINENO"
14528 then :
14529 break
14530 fi
14531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14532 done
14533
14534 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
14535 ;;
14536 esac
14537 fi
14538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
14539 printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; }
14540
14541
14542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler_warnings" >&5
14543 printf %s "checking compiler_warnings... " >&6; }
14544 # Check whether --enable-compiler_warnings was given.
14545 if test ${enable_compiler_warnings+y}
14546 then :
14547 enableval=$enable_compiler_warnings; ac_compiler_warnings=$enableval
14548 else case e in #(
14549 e) ac_compiler_warnings=yes ;;
14550 esac
14551 fi
14552
14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_compiler_warnings}" >&5
14554 printf "%s\n" "${ac_compiler_warnings}" >&6; }
14555 if test x${ac_compiler_warnings} = xyes
14556 then :
14557 ac_ext=c
14558 ac_cpp='$CPP $CPPFLAGS'
14559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14562
14563
14564
14565
14566
14567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGS for most reasonable warnings" >&5
14568 printf %s "checking CFLAGS for most reasonable warnings... " >&6; }
14569 if test ${ac_cv_cflags_warn_all+y}
14570 then :
14571 printf %s "(cached) " >&6
14572 else case e in #(
14573 e)
14574 ac_cv_cflags_warn_all=""
14575 ac_save_cflags_warn_all_found="yes"
14576 case "$ax_cv_c_compiler_vendor" in #(
14577 intel) :
14578 ac_cv_cflags_warn_all="-w2" ;; #(
14579 ibm) :
14580 ac_cv_cflags_warn_all="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" ;; #(
14581 pathscale) :
14582 ;; #(
14583 clang) :
14584 ac_cv_cflags_warn_all="-Wall" ;; #(
14585 cray) :
14586 ac_cv_cflags_warn_all="-h msglevel 2" ;; #(
14587 fujitsu) :
14588 ;; #(
14589 sdcc) :
14590 ;; #(
14591 sx) :
14592 ac_cv_cflags_warn_all="-pvctl,fullmsg" ;; #(
14593 portland) :
14594 ;; #(
14595 gnu) :
14596 ac_cv_cflags_warn_all="-Wall" ;; #(
14597 sun) :
14598 ac_cv_cflags_warn_all="-v" ;; #(
14599 hp) :
14600 ac_cv_cflags_warn_all="+w1" ;; #(
14601 dec) :
14602 ac_cv_cflags_warn_all="-verbose -w0 -warnprotos" ;; #(
14603 borland) :
14604 ;; #(
14605 comeau) :
14606 ;; #(
14607 kai) :
14608 ;; #(
14609 lcc) :
14610 ;; #(
14611 sgi) :
14612 ac_cv_cflags_warn_all="-fullwarn" ;; #(
14613 microsoft) :
14614 ;; #(
14615 metrowerks) :
14616 ;; #(
14617 watcom) :
14618 ;; #(
14619 tcc) :
14620 ;; #(
14621 unknown) :
14622
14623 ac_cv_cflags_warn_all=""
14624 ac_save_cflags_warn_all_found="no"
14625 ;; #(
14626 *) :
14627
14628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&5
14629 printf "%s\n" "$as_me: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&2;}
14630 ac_cv_cflags_warn_all=""
14631 ac_save_cflags_warn_all_found="no"
14632
14633 ;;
14634 esac
14635
14636 if test "x$ac_save_cflags_warn_all_found" = "xyes"
14637 then :
14638 if test "x$ac_cv_cflags_warn_all" != "x"
14639 then :
14640
14641 if test ${CFLAGS+y}
14642 then :
14643
14644 case " $CFLAGS " in #(
14645 *" $ac_cv_cflags_warn_all "*) :
14646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
14647 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
14648 ac_status=$?
14649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14650 test $ac_status = 0; } ;; #(
14651 *) :
14652
14653 CFLAGS="$ac_cv_cflags_warn_all $CFLAGS"
14654 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14655 (: CFLAGS="$CFLAGS") 2>&5
14656 ac_status=$?
14657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14658 test $ac_status = 0; }
14659 ;;
14660 esac
14661
14662 else case e in #(
14663 e)
14664 CFLAGS=$ac_cv_cflags_warn_all
14665 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14666 (: CFLAGS="$CFLAGS") 2>&5
14667 ac_status=$?
14668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14669 test $ac_status = 0; }
14670 ;;
14671 esac
14672 fi
14673
14674 fi
14675
14676 else case e in #(
14677 e) true
14678 ;;
14679 esac
14680 fi ;;
14681 esac
14682 fi
14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
14684 printf "%s\n" "$ac_cv_cflags_warn_all" >&6; }
14685
14686 ac_ext=c
14687 ac_cpp='$CPP $CPPFLAGS'
14688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14691
14692
14693 fi
14694
14695
14696 # Check libcperciva POSIX compatibility.
14697
14698
14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking POSIX compatibility..." >&5
14700 printf "%s\n" "$as_me: checking POSIX compatibility..." >&6;}
14701 LIBCPERCIVA_DIR="${srcdir}/libcperciva"
14702 LDADD_POSIX=`export CC="${CC}"; ${POSIX_SH} ${LIBCPERCIVA_DIR}/POSIX/posix-l.sh "$PATH"`
14703 CFLAGS_POSIX=`export CC="${CC}"; ${POSIX_SH} ${LIBCPERCIVA_DIR}/POSIX/posix-cflags.sh "$PATH"`
14704
14705
14706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ... done checking POSIX compatibility" >&5
14707 printf "%s\n" "... done checking POSIX compatibility" >&6; }
14708
14709
14710 # Check whether the user wants to install libscrypt-kdf.
14711 # Check whether --enable-libscrypt-kdf was given.
14712 if test ${enable_libscrypt_kdf+y}
14713 then :
14714 enableval=$enable_libscrypt_kdf;
14715 fi
14716
14717 if test "x${enable_libscrypt_kdf}" = "xyes"; then
14718 LIBSCRYPT_KDF_TRUE=
14719 LIBSCRYPT_KDF_FALSE='#'
14720 else
14721 LIBSCRYPT_KDF_TRUE='#'
14722 LIBSCRYPT_KDF_FALSE=
14723 fi
14724
14725
14726 # Write configure results and the Makefile.
14727 ac_config_headers="$ac_config_headers config.h"
14728
14729 ac_config_files="$ac_config_files Makefile"
14730
14731 cat >confcache <<\_ACEOF
14732 # This file is a shell script that caches the results of configure
14733 # tests run on this system so they can be shared between configure
14734 # scripts and configure runs, see configure's option --config-cache.
14735 # It is not useful on other systems. If it contains results you don't
14736 # want to keep, you may remove or edit it.
14737 #
14738 # config.status only pays attention to the cache file if you give it
14739 # the --recheck option to rerun configure.
14740 #
14741 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
14742 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
14743 # following values.
14744
14745 _ACEOF
14746
14747 # The following way of writing the cache mishandles newlines in values,
14748 # but we know of no workaround that is simple, portable, and efficient.
14749 # So, we kill variables containing newlines.
14750 # Ultrix sh set writes to stderr and can't be redirected directly,
14751 # and sets the high bit in the cache file unless we assign to the vars.
14752 (
14753 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14754 eval ac_val=\$$ac_var
14755 case $ac_val in #(
14756 *${as_nl}*)
14757 case $ac_var in #(
14758 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14759 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14760 esac
14761 case $ac_var in #(
14762 _ | IFS | as_nl) ;; #(
14763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14764 *) { eval $ac_var=; unset $ac_var;} ;;
14765 esac ;;
14766 esac
14767 done
14768
14769 (set) 2>&1 |
14770 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14771 *${as_nl}ac_space=\ *)
14772 # 'set' does not quote correctly, so add quotes: double-quote
14773 # substitution turns \\\\ into \\, and sed turns \\ into \.
14774 sed -n \
14775 "s/'/'\\\\''/g;
14776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14777 ;; #(
14778 *)
14779 # 'set' quotes correctly as required by POSIX, so do not add quotes.
14780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14781 ;;
14782 esac |
14783 sort
14784 ) |
14785 sed '
14786 /^ac_cv_env_/b end
14787 t clear
14788 :clear
14789 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14790 t end
14791 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14792 :end' >>confcache
14793 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14794 if test -w "$cache_file"; then
14795 if test "x$cache_file" != "x/dev/null"; then
14796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14797 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14798 if test ! -f "$cache_file" || test -h "$cache_file"; then
14799 cat confcache >"$cache_file"
14800 else
14801 case $cache_file in #(
14802 */* | ?:*)
14803 mv -f confcache "$cache_file"$$ &&
14804 mv -f "$cache_file"$$ "$cache_file" ;; #(
14805 *)
14806 mv -f confcache "$cache_file" ;;
14807 esac
14808 fi
14809 fi
14810 else
14811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14812 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14813 fi
14814 fi
14815 rm -f confcache
14816
14817 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14818 # Let make expand exec_prefix.
14819 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14820
14821 DEFS=-DHAVE_CONFIG_H
14822
14823 ac_libobjs=
14824 ac_ltlibobjs=
14825 U=
14826 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14827 # 1. Remove the extension, and $U if already installed.
14828 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14829 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14830 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14831 # will be set to the directory where LIBOBJS objects are built.
14832 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14833 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14834 done
14835 LIBOBJS=$ac_libobjs
14836
14837 LTLIBOBJS=$ac_ltlibobjs
14838
14839
14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14841 printf %s "checking that generated files are newer than configure... " >&6; }
14842 if test -n "$am_sleep_pid"; then
14843 # Hide warnings about reused PIDs.
14844 wait $am_sleep_pid 2>/dev/null
14845 fi
14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14847 printf "%s\n" "done" >&6; }
14848 case $enable_silent_rules in # (((
14849 yes) AM_DEFAULT_VERBOSITY=0;;
14850 no) AM_DEFAULT_VERBOSITY=1;;
14851 esac
14852 if test $am_cv_make_support_nested_variables = yes; then
14853 AM_V='$(V)'
14854 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14855 else
14856 AM_V=$AM_DEFAULT_VERBOSITY
14857 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14858 fi
14859
14860 if test -n "$EXEEXT"; then
14861 am__EXEEXT_TRUE=
14862 am__EXEEXT_FALSE='#'
14863 else
14864 am__EXEEXT_TRUE='#'
14865 am__EXEEXT_FALSE=
14866 fi
14867
14868 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14869 as_fn_error $? "conditional \"AMDEP\" was never defined.
14870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14871 fi
14872 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14873 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14875 fi
14876 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14877 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14879 fi
14880 # Check whether --enable-year2038 was given.
14881 if test ${enable_year2038+y}
14882 then :
14883 enableval=$enable_year2038;
14884 fi
14885
14886 if test -z "${LIBSCRYPT_KDF_TRUE}" && test -z "${LIBSCRYPT_KDF_FALSE}"; then
14887 as_fn_error $? "conditional \"LIBSCRYPT_KDF\" was never defined.
14888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14889 fi
14890
14891 : "${CONFIG_STATUS=./config.status}"
14892 ac_write_fail=0
14893 ac_clean_files_save=$ac_clean_files
14894 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14896 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14897 as_write_fail=0
14898 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14899 #! $SHELL
14900 # Generated by $as_me.
14901 # Run this file to recreate the current configuration.
14902 # Compiler output produced by configure, useful for debugging
14903 # configure, is in config.log if it exists.
14904
14905 debug=false
14906 ac_cs_recheck=false
14907 ac_cs_silent=false
14908
14909 SHELL=\${CONFIG_SHELL-$SHELL}
14910 export SHELL
14911 _ASEOF
14912 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14913 ## -------------------- ##
14914 ## M4sh Initialization. ##
14915 ## -------------------- ##
14916
14917 # Be more Bourne compatible
14918 DUALCASE=1; export DUALCASE # for MKS sh
14919 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14920 then :
14921 emulate sh
14922 NULLCMD=:
14923 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14924 # is contrary to our usage. Disable this feature.
14925 alias -g '${1+"$@"}'='"$@"'
14926 setopt NO_GLOB_SUBST
14927 else case e in #(
14928 e) case `(set -o) 2>/dev/null` in #(
14929 *posix*) :
14930 set -o posix ;; #(
14931 *) :
14932 ;;
14933 esac ;;
14934 esac
14935 fi
14936
14937
14938
14939 # Reset variables that may have inherited troublesome values from
14940 # the environment.
14941
14942 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14943 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14944 # side effect of setting IFS to empty, thus disabling word splitting.)
14945 # Quoting is to prevent editors from complaining about space-tab.
14946 as_nl='
14947 '
14948 export as_nl
14949 IFS=" "" $as_nl"
14950
14951 PS1='$ '
14952 PS2='> '
14953 PS4='+ '
14954
14955 # Ensure predictable behavior from utilities with locale-dependent output.
14956 LC_ALL=C
14957 export LC_ALL
14958 LANGUAGE=C
14959 export LANGUAGE
14960
14961 # We cannot yet rely on "unset" to work, but we need these variables
14962 # to be unset--not just set to an empty or harmless value--now, to
14963 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14964 # also avoids known problems related to "unset" and subshell syntax
14965 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14966 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14967 do eval test \${$as_var+y} \
14968 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14969 done
14970
14971 # Ensure that fds 0, 1, and 2 are open.
14972 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14973 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14974 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14975
14976 # The user is always right.
14977 if ${PATH_SEPARATOR+false} :; then
14978 PATH_SEPARATOR=:
14979 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14980 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14981 PATH_SEPARATOR=';'
14982 }
14983 fi
14984
14985
14986 # Find who we are. Look in the path if we contain no directory separator.
14987 as_myself=
14988 case $0 in #((
14989 *[\\/]* ) as_myself=$0 ;;
14990 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14991 for as_dir in $PATH
14992 do
14993 IFS=$as_save_IFS
14994 case $as_dir in #(((
14995 '') as_dir=./ ;;
14996 */) ;;
14997 *) as_dir=$as_dir/ ;;
14998 esac
14999 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15000 done
15001 IFS=$as_save_IFS
15002
15003 ;;
15004 esac
15005 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15006 # in which case we are not to be found in the path.
15007 if test "x$as_myself" = x; then
15008 as_myself=$0
15009 fi
15010 if test ! -f "$as_myself"; then
15011 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15012 exit 1
15013 fi
15014
15015
15016
15017 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15018 # ----------------------------------------
15019 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15020 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15021 # script with STATUS, using 1 if that was 0.
15022 as_fn_error ()
15023 {
15024 as_status=$1; test $as_status -eq 0 && as_status=1
15025 if test "$4"; then
15026 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15028 fi
15029 printf "%s\n" "$as_me: error: $2" >&2
15030 as_fn_exit $as_status
15031 } # as_fn_error
15032
15033
15034 # as_fn_set_status STATUS
15035 # -----------------------
15036 # Set $? to STATUS, without forking.
15037 as_fn_set_status ()
15038 {
15039 return $1
15040 } # as_fn_set_status
15041
15042 # as_fn_exit STATUS
15043 # -----------------
15044 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15045 as_fn_exit ()
15046 {
15047 set +e
15048 as_fn_set_status $1
15049 exit $1
15050 } # as_fn_exit
15051
15052 # as_fn_unset VAR
15053 # ---------------
15054 # Portably unset VAR.
15055 as_fn_unset ()
15056 {
15057 { eval $1=; unset $1;}
15058 }
15059 as_unset=as_fn_unset
15060
15061 # as_fn_append VAR VALUE
15062 # ----------------------
15063 # Append the text in VALUE to the end of the definition contained in VAR. Take
15064 # advantage of any shell optimizations that allow amortized linear growth over
15065 # repeated appends, instead of the typical quadratic growth present in naive
15066 # implementations.
15067 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15068 then :
15069 eval 'as_fn_append ()
15070 {
15071 eval $1+=\$2
15072 }'
15073 else case e in #(
15074 e) as_fn_append ()
15075 {
15076 eval $1=\$$1\$2
15077 } ;;
15078 esac
15079 fi # as_fn_append
15080
15081 # as_fn_arith ARG...
15082 # ------------------
15083 # Perform arithmetic evaluation on the ARGs, and store the result in the
15084 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15085 # must be portable across $(()) and expr.
15086 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15087 then :
15088 eval 'as_fn_arith ()
15089 {
15090 as_val=$(( $* ))
15091 }'
15092 else case e in #(
15093 e) as_fn_arith ()
15094 {
15095 as_val=`expr "$@" || test $? -eq 1`
15096 } ;;
15097 esac
15098 fi # as_fn_arith
15099
15100
15101 if expr a : '\(a\)' >/dev/null 2>&1 &&
15102 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15103 as_expr=expr
15104 else
15105 as_expr=false
15106 fi
15107
15108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15109 as_basename=basename
15110 else
15111 as_basename=false
15112 fi
15113
15114 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15115 as_dirname=dirname
15116 else
15117 as_dirname=false
15118 fi
15119
15120 as_me=`$as_basename -- "$0" ||
15121 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15122 X"$0" : 'X\(//\)$' \| \
15123 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15124 printf "%s\n" X/"$0" |
15125 sed '/^.*\/\([^/][^/]*\)\/*$/{
15126 s//\1/
15127 q
15128 }
15129 /^X\/\(\/\/\)$/{
15130 s//\1/
15131 q
15132 }
15133 /^X\/\(\/\).*/{
15134 s//\1/
15135 q
15136 }
15137 s/.*/./; q'`
15138
15139 # Avoid depending upon Character Ranges.
15140 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15141 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15142 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15143 as_cr_digits='0123456789'
15144 as_cr_alnum=$as_cr_Letters$as_cr_digits
15145
15146
15147 # Determine whether it's possible to make 'echo' print without a newline.
15148 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15149 # for compatibility with existing Makefiles.
15150 ECHO_C= ECHO_N= ECHO_T=
15151 case `echo -n x` in #(((((
15152 -n*)
15153 case `echo 'xy\c'` in
15154 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15155 xy) ECHO_C='\c';;
15156 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15157 ECHO_T=' ';;
15158 esac;;
15159 *)
15160 ECHO_N='-n';;
15161 esac
15162
15163 # For backward compatibility with old third-party macros, we provide
15164 # the shell variables $as_echo and $as_echo_n. New code should use
15165 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15166 as_echo='printf %s\n'
15167 as_echo_n='printf %s'
15168
15169 rm -f conf$$ conf$$.exe conf$$.file
15170 if test -d conf$$.dir; then
15171 rm -f conf$$.dir/conf$$.file
15172 else
15173 rm -f conf$$.dir
15174 mkdir conf$$.dir 2>/dev/null
15175 fi
15176 if (echo >conf$$.file) 2>/dev/null; then
15177 if ln -s conf$$.file conf$$ 2>/dev/null; then
15178 as_ln_s='ln -s'
15179 # ... but there are two gotchas:
15180 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15181 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15182 # In both cases, we have to default to 'cp -pR'.
15183 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15184 as_ln_s='cp -pR'
15185 elif ln conf$$.file conf$$ 2>/dev/null; then
15186 as_ln_s=ln
15187 else
15188 as_ln_s='cp -pR'
15189 fi
15190 else
15191 as_ln_s='cp -pR'
15192 fi
15193 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15194 rmdir conf$$.dir 2>/dev/null
15195
15196
15197 # as_fn_mkdir_p
15198 # -------------
15199 # Create "$as_dir" as a directory, including parents if necessary.
15200 as_fn_mkdir_p ()
15201 {
15202
15203 case $as_dir in #(
15204 -*) as_dir=./$as_dir;;
15205 esac
15206 test -d "$as_dir" || eval $as_mkdir_p || {
15207 as_dirs=
15208 while :; do
15209 case $as_dir in #(
15210 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15211 *) as_qdir=$as_dir;;
15212 esac
15213 as_dirs="'$as_qdir' $as_dirs"
15214 as_dir=`$as_dirname -- "$as_dir" ||
15215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15216 X"$as_dir" : 'X\(//\)[^/]' \| \
15217 X"$as_dir" : 'X\(//\)$' \| \
15218 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15219 printf "%s\n" X"$as_dir" |
15220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15221 s//\1/
15222 q
15223 }
15224 /^X\(\/\/\)[^/].*/{
15225 s//\1/
15226 q
15227 }
15228 /^X\(\/\/\)$/{
15229 s//\1/
15230 q
15231 }
15232 /^X\(\/\).*/{
15233 s//\1/
15234 q
15235 }
15236 s/.*/./; q'`
15237 test -d "$as_dir" && break
15238 done
15239 test -z "$as_dirs" || eval "mkdir $as_dirs"
15240 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15241
15242
15243 } # as_fn_mkdir_p
15244 if mkdir -p . 2>/dev/null; then
15245 as_mkdir_p='mkdir -p "$as_dir"'
15246 else
15247 test -d ./-p && rmdir ./-p
15248 as_mkdir_p=false
15249 fi
15250
15251
15252 # as_fn_executable_p FILE
15253 # -----------------------
15254 # Test if FILE is an executable regular file.
15255 as_fn_executable_p ()
15256 {
15257 test -f "$1" && test -x "$1"
15258 } # as_fn_executable_p
15259 as_test_x='test -x'
15260 as_executable_p=as_fn_executable_p
15261
15262 # Sed expression to map a string onto a valid CPP name.
15263 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15264 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15265
15266 # Sed expression to map a string onto a valid variable name.
15267 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15268 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15269
15270
15271 exec 6>&1
15272 ## ----------------------------------- ##
15273 ## Main body of $CONFIG_STATUS script. ##
15274 ## ----------------------------------- ##
15275 _ASEOF
15276 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15277
15278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15279 # Save the log message, to keep $0 and so on meaningful, and to
15280 # report actual input values of CONFIG_FILES etc. instead of their
15281 # values after options handling.
15282 ac_log="
15283 This file was extended by scrypt $as_me 1.3.3, which was
15284 generated by GNU Autoconf 2.72. Invocation command line was
15285
15286 CONFIG_FILES = $CONFIG_FILES
15287 CONFIG_HEADERS = $CONFIG_HEADERS
15288 CONFIG_LINKS = $CONFIG_LINKS
15289 CONFIG_COMMANDS = $CONFIG_COMMANDS
15290 $ $0 $@
15291
15292 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15293 "
15294
15295 _ACEOF
15296
15297 case $ac_config_files in *"
15298 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15299 esac
15300
15301 case $ac_config_headers in *"
15302 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15303 esac
15304
15305
15306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15307 # Files that config.status was made for.
15308 config_files="$ac_config_files"
15309 config_headers="$ac_config_headers"
15310 config_commands="$ac_config_commands"
15311
15312 _ACEOF
15313
15314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15315 ac_cs_usage="\
15316 '$as_me' instantiates files and other configuration actions
15317 from templates according to the current configuration. Unless the files
15318 and actions are specified as TAGs, all are instantiated by default.
15319
15320 Usage: $0 [OPTION]... [TAG]...
15321
15322 -h, --help print this help, then exit
15323 -V, --version print version number and configuration settings, then exit
15324 --config print configuration, then exit
15325 -q, --quiet, --silent
15326 do not print progress messages
15327 -d, --debug don't remove temporary files
15328 --recheck update $as_me by reconfiguring in the same conditions
15329 --file=FILE[:TEMPLATE]
15330 instantiate the configuration file FILE
15331 --header=FILE[:TEMPLATE]
15332 instantiate the configuration header FILE
15333
15334 Configuration files:
15335 $config_files
15336
15337 Configuration headers:
15338 $config_headers
15339
15340 Configuration commands:
15341 $config_commands
15342
15343 Report bugs to <https://github.com/Tarsnap/scrypt>.
15344 scrypt home page: <http://www.tarsnap.com/scrypt/>."
15345
15346 _ACEOF
15347 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15348 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15350 ac_cs_config='$ac_cs_config_escaped'
15351 ac_cs_version="\\
15352 scrypt config.status 1.3.3
15353 configured by $0, generated by GNU Autoconf 2.72,
15354 with options \\"\$ac_cs_config\\"
15355
15356 Copyright (C) 2023 Free Software Foundation, Inc.
15357 This config.status script is free software; the Free Software Foundation
15358 gives unlimited permission to copy, distribute and modify it."
15359
15360 ac_pwd='$ac_pwd'
15361 srcdir='$srcdir'
15362 INSTALL='$INSTALL'
15363 MKDIR_P='$MKDIR_P'
15364 AWK='$AWK'
15365 test -n "\$AWK" || AWK=awk
15366 _ACEOF
15367
15368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15369 # The default lists apply if the user does not specify any file.
15370 ac_need_defaults=:
15371 while test $# != 0
15372 do
15373 case $1 in
15374 --*=?*)
15375 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15376 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15377 ac_shift=:
15378 ;;
15379 --*=)
15380 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15381 ac_optarg=
15382 ac_shift=:
15383 ;;
15384 *)
15385 ac_option=$1
15386 ac_optarg=$2
15387 ac_shift=shift
15388 ;;
15389 esac
15390
15391 case $ac_option in
15392 # Handling of the options.
15393 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15394 ac_cs_recheck=: ;;
15395 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15396 printf "%s\n" "$ac_cs_version"; exit ;;
15397 --config | --confi | --conf | --con | --co | --c )
15398 printf "%s\n" "$ac_cs_config"; exit ;;
15399 --debug | --debu | --deb | --de | --d | -d )
15400 debug=: ;;
15401 --file | --fil | --fi | --f )
15402 $ac_shift
15403 case $ac_optarg in
15404 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15405 '') as_fn_error $? "missing file argument" ;;
15406 esac
15407 as_fn_append CONFIG_FILES " '$ac_optarg'"
15408 ac_need_defaults=false;;
15409 --header | --heade | --head | --hea )
15410 $ac_shift
15411 case $ac_optarg in
15412 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15413 esac
15414 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15415 ac_need_defaults=false;;
15416 --he | --h)
15417 # Conflict between --help and --header
15418 as_fn_error $? "ambiguous option: '$1'
15419 Try '$0 --help' for more information.";;
15420 --help | --hel | -h )
15421 printf "%s\n" "$ac_cs_usage"; exit ;;
15422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15423 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15424 ac_cs_silent=: ;;
15425
15426 # This is an error.
15427 -*) as_fn_error $? "unrecognized option: '$1'
15428 Try '$0 --help' for more information." ;;
15429
15430 *) as_fn_append ac_config_targets " $1"
15431 ac_need_defaults=false ;;
15432
15433 esac
15434 shift
15435 done
15436
15437 ac_configure_extra_args=
15438
15439 if $ac_cs_silent; then
15440 exec 6>/dev/null
15441 ac_configure_extra_args="$ac_configure_extra_args --silent"
15442 fi
15443
15444 _ACEOF
15445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15446 if \$ac_cs_recheck; then
15447 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15448 shift
15449 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15450 CONFIG_SHELL='$SHELL'
15451 export CONFIG_SHELL
15452 exec "\$@"
15453 fi
15454
15455 _ACEOF
15456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15457 exec 5>>config.log
15458 {
15459 echo
15460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15461 ## Running $as_me. ##
15462 _ASBOX
15463 printf "%s\n" "$ac_log"
15464 } >&5
15465
15466 _ACEOF
15467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15468 #
15469 # INIT-COMMANDS
15470 #
15471 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15472
15473
15474 # The HP-UX ksh and POSIX shell print the target directory to stdout
15475 # if CDPATH is set.
15476 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15477
15478 sed_quote_subst='$sed_quote_subst'
15479 double_quote_subst='$double_quote_subst'
15480 delay_variable_subst='$delay_variable_subst'
15481 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15482 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15483 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15484 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15485 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15486 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15487 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15488 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15489 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15490 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15491 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15492 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15493 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15494 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15495 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15496 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15497 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15498 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15499 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15500 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15501 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15502 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15503 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15504 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15505 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15506 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15507 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15508 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15509 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15510 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15511 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15512 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15513 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15514 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15515 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15516 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15517 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15518 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15519 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15520 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15521 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15522 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15523 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15524 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15525 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15526 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15527 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15528 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15529 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15530 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15531 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15532 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15533 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15534 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15535 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15536 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15537 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15538 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15539 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15540 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15541 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"`'
15542 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15543 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15544 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15545 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15546 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15547 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15548 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15549 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15550 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15551 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15552 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15553 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15554 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15555 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15556 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15557 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15558 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15559 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15560 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15561 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15562 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15563 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15564 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15565 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15566 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15567 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15568 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15569 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15570 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15571 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15572 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15573 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15574 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15575 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15576 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15577 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15578 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15579 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15580 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15581 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15582 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15583 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15584 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15585 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15586 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15587 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15588 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15589 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15590 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15591 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15592 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15593 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15594 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15595 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15596 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15597 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15598 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15599 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15600 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15601 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15602 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15603 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15604 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15605 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15606 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15607 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15608 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15609 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15610 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15611 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15612 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15613 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15614 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15615 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15616 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15617 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15618
15619 LTCC='$LTCC'
15620 LTCFLAGS='$LTCFLAGS'
15621 compiler='$compiler_DEFAULT'
15622
15623 # A function that is used when there is no print builtin or printf.
15624 func_fallback_echo ()
15625 {
15626 eval 'cat <<_LTECHO_EOF
15627 \$1
15628 _LTECHO_EOF'
15629 }
15630
15631 # Quote evaled strings.
15632 for var in SHELL \
15633 ECHO \
15634 PATH_SEPARATOR \
15635 SED \
15636 GREP \
15637 EGREP \
15638 FGREP \
15639 LD \
15640 NM \
15641 LN_S \
15642 lt_SP2NL \
15643 lt_NL2SP \
15644 reload_flag \
15645 FILECMD \
15646 OBJDUMP \
15647 deplibs_check_method \
15648 file_magic_cmd \
15649 file_magic_glob \
15650 want_nocaseglob \
15651 DLLTOOL \
15652 sharedlib_from_linklib_cmd \
15653 AR \
15654 archiver_list_spec \
15655 STRIP \
15656 RANLIB \
15657 CC \
15658 CFLAGS \
15659 compiler \
15660 lt_cv_sys_global_symbol_pipe \
15661 lt_cv_sys_global_symbol_to_cdecl \
15662 lt_cv_sys_global_symbol_to_import \
15663 lt_cv_sys_global_symbol_to_c_name_address \
15664 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15665 lt_cv_nm_interface \
15666 nm_file_list_spec \
15667 lt_cv_truncate_bin \
15668 lt_prog_compiler_no_builtin_flag \
15669 lt_prog_compiler_pic \
15670 lt_prog_compiler_wl \
15671 lt_prog_compiler_static \
15672 lt_cv_prog_compiler_c_o \
15673 need_locks \
15674 MANIFEST_TOOL \
15675 DSYMUTIL \
15676 NMEDIT \
15677 LIPO \
15678 OTOOL \
15679 OTOOL64 \
15680 shrext_cmds \
15681 export_dynamic_flag_spec \
15682 whole_archive_flag_spec \
15683 compiler_needs_object \
15684 with_gnu_ld \
15685 allow_undefined_flag \
15686 no_undefined_flag \
15687 hardcode_libdir_flag_spec \
15688 hardcode_libdir_separator \
15689 exclude_expsyms \
15690 include_expsyms \
15691 file_list_spec \
15692 variables_saved_for_relink \
15693 libname_spec \
15694 library_names_spec \
15695 soname_spec \
15696 install_override_mode \
15697 finish_eval \
15698 old_striplib \
15699 striplib; do
15700 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15701 *[\\\\\\\`\\"\\\$]*)
15702 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15703 ;;
15704 *)
15705 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15706 ;;
15707 esac
15708 done
15709
15710 # Double-quote double-evaled strings.
15711 for var in reload_cmds \
15712 old_postinstall_cmds \
15713 old_postuninstall_cmds \
15714 old_archive_cmds \
15715 extract_expsyms_cmds \
15716 old_archive_from_new_cmds \
15717 old_archive_from_expsyms_cmds \
15718 archive_cmds \
15719 archive_expsym_cmds \
15720 module_cmds \
15721 module_expsym_cmds \
15722 export_symbols_cmds \
15723 prelink_cmds \
15724 postlink_cmds \
15725 postinstall_cmds \
15726 postuninstall_cmds \
15727 finish_cmds \
15728 sys_lib_search_path_spec \
15729 configure_time_dlsearch_path \
15730 configure_time_lt_sys_library_path; do
15731 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15732 *[\\\\\\\`\\"\\\$]*)
15733 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15734 ;;
15735 *)
15736 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15737 ;;
15738 esac
15739 done
15740
15741 ac_aux_dir='$ac_aux_dir'
15742
15743 # See if we are running on zsh, and set the options that allow our
15744 # commands through without removal of \ escapes INIT.
15745 if test -n "\${ZSH_VERSION+set}"; then
15746 setopt NO_GLOB_SUBST
15747 fi
15748
15749
15750 PACKAGE='$PACKAGE'
15751 VERSION='$VERSION'
15752 RM='$RM'
15753 ofile='$ofile'
15754
15755
15756
15757
15758 _ACEOF
15759
15760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15761
15762 # Handling of arguments.
15763 for ac_config_target in $ac_config_targets
15764 do
15765 case $ac_config_target in
15766 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15767 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15768 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15769 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15770
15771 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
15772 esac
15773 done
15774
15775
15776 # If the user did not use the arguments to specify the items to instantiate,
15777 # then the envvar interface is used. Set only those that are not.
15778 # We use the long form for the default assignment because of an extremely
15779 # bizarre bug on SunOS 4.1.3.
15780 if $ac_need_defaults; then
15781 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15782 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15783 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15784 fi
15785
15786 # Have a temporary directory for convenience. Make it in the build tree
15787 # simply because there is no reason against having it here, and in addition,
15788 # creating and moving files from /tmp can sometimes cause problems.
15789 # Hook for its removal unless debugging.
15790 # Note that there is a small window in which the directory will not be cleaned:
15791 # after its creation but before its name has been assigned to '$tmp'.
15792 $debug ||
15793 {
15794 tmp= ac_tmp=
15795 trap 'exit_status=$?
15796 : "${ac_tmp:=$tmp}"
15797 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15798 ' 0
15799 trap 'as_fn_exit 1' 1 2 13 15
15800 }
15801 # Create a (secure) tmp directory for tmp files.
15802
15803 {
15804 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15805 test -d "$tmp"
15806 } ||
15807 {
15808 tmp=./conf$$-$RANDOM
15809 (umask 077 && mkdir "$tmp")
15810 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15811 ac_tmp=$tmp
15812
15813 # Set up the scripts for CONFIG_FILES section.
15814 # No need to generate them if there are no CONFIG_FILES.
15815 # This happens for instance with './config.status config.h'.
15816 if test -n "$CONFIG_FILES"; then
15817
15818
15819 ac_cr=`echo X | tr X '\015'`
15820 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15821 # But we know of no other shell where ac_cr would be empty at this
15822 # point, so we can use a bashism as a fallback.
15823 if test "x$ac_cr" = x; then
15824 eval ac_cr=\$\'\\r\'
15825 fi
15826 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15827 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15828 ac_cs_awk_cr='\\r'
15829 else
15830 ac_cs_awk_cr=$ac_cr
15831 fi
15832
15833 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15834 _ACEOF
15835
15836
15837 {
15838 echo "cat >conf$$subs.awk <<_ACEOF" &&
15839 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15840 echo "_ACEOF"
15841 } >conf$$subs.sh ||
15842 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15843 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15844 ac_delim='%!_!# '
15845 for ac_last_try in false false false false false :; do
15846 . ./conf$$subs.sh ||
15847 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15848
15849 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15850 if test $ac_delim_n = $ac_delim_num; then
15851 break
15852 elif $ac_last_try; then
15853 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15854 else
15855 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15856 fi
15857 done
15858 rm -f conf$$subs.sh
15859
15860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15861 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15862 _ACEOF
15863 sed -n '
15864 h
15865 s/^/S["/; s/!.*/"]=/
15866 p
15867 g
15868 s/^[^!]*!//
15869 :repl
15870 t repl
15871 s/'"$ac_delim"'$//
15872 t delim
15873 :nl
15874 h
15875 s/\(.\{148\}\)..*/\1/
15876 t more1
15877 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15878 p
15879 n
15880 b repl
15881 :more1
15882 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15883 p
15884 g
15885 s/.\{148\}//
15886 t nl
15887 :delim
15888 h
15889 s/\(.\{148\}\)..*/\1/
15890 t more2
15891 s/["\\]/\\&/g; s/^/"/; s/$/"/
15892 p
15893 b
15894 :more2
15895 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15896 p
15897 g
15898 s/.\{148\}//
15899 t delim
15900 ' <conf$$subs.awk | sed '
15901 /^[^""]/{
15902 N
15903 s/\n//
15904 }
15905 ' >>$CONFIG_STATUS || ac_write_fail=1
15906 rm -f conf$$subs.awk
15907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15908 _ACAWK
15909 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15910 for (key in S) S_is_set[key] = 1
15911 FS = ""
15912
15913 }
15914 {
15915 line = $ 0
15916 nfields = split(line, field, "@")
15917 substed = 0
15918 len = length(field[1])
15919 for (i = 2; i < nfields; i++) {
15920 key = field[i]
15921 keylen = length(key)
15922 if (S_is_set[key]) {
15923 value = S[key]
15924 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15925 len += length(value) + length(field[++i])
15926 substed = 1
15927 } else
15928 len += 1 + keylen
15929 }
15930
15931 print line
15932 }
15933
15934 _ACAWK
15935 _ACEOF
15936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15937 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15938 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15939 else
15940 cat
15941 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15942 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15943 _ACEOF
15944
15945 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15946 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15947 # trailing colons and then remove the whole line if VPATH becomes empty
15948 # (actually we leave an empty line to preserve line numbers).
15949 if test "x$srcdir" = x.; then
15950 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15951 h
15952 s///
15953 s/^/:/
15954 s/[ ]*$/:/
15955 s/:\$(srcdir):/:/g
15956 s/:\${srcdir}:/:/g
15957 s/:@srcdir@:/:/g
15958 s/^:*//
15959 s/:*$//
15960 x
15961 s/\(=[ ]*\).*/\1/
15962 G
15963 s/\n//
15964 s/^[^=]*=[ ]*$//
15965 }'
15966 fi
15967
15968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15969 fi # test -n "$CONFIG_FILES"
15970
15971 # Set up the scripts for CONFIG_HEADERS section.
15972 # No need to generate them if there are no CONFIG_HEADERS.
15973 # This happens for instance with './config.status Makefile'.
15974 if test -n "$CONFIG_HEADERS"; then
15975 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15976 BEGIN {
15977 _ACEOF
15978
15979 # Transform confdefs.h into an awk script 'defines.awk', embedded as
15980 # here-document in config.status, that substitutes the proper values into
15981 # config.h.in to produce config.h.
15982
15983 # Create a delimiter string that does not exist in confdefs.h, to ease
15984 # handling of long lines.
15985 ac_delim='%!_!# '
15986 for ac_last_try in false false :; do
15987 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15988 if test -z "$ac_tt"; then
15989 break
15990 elif $ac_last_try; then
15991 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15992 else
15993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15994 fi
15995 done
15996
15997 # For the awk script, D is an array of macro values keyed by name,
15998 # likewise P contains macro parameters if any. Preserve backslash
15999 # newline sequences.
16000
16001 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16002 sed -n '
16003 s/.\{148\}/&'"$ac_delim"'/g
16004 t rset
16005 :rset
16006 s/^[ ]*#[ ]*define[ ][ ]*/ /
16007 t def
16008 d
16009 :def
16010 s/\\$//
16011 t bsnl
16012 s/["\\]/\\&/g
16013 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16014 D["\1"]=" \3"/p
16015 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16016 d
16017 :bsnl
16018 s/["\\]/\\&/g
16019 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16020 D["\1"]=" \3\\\\\\n"\\/p
16021 t cont
16022 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16023 t cont
16024 d
16025 :cont
16026 n
16027 s/.\{148\}/&'"$ac_delim"'/g
16028 t clear
16029 :clear
16030 s/\\$//
16031 t bsnlc
16032 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16033 d
16034 :bsnlc
16035 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16036 b cont
16037 ' <confdefs.h | sed '
16038 s/'"$ac_delim"'/"\\\
16039 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16040
16041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16042 for (key in D) D_is_set[key] = 1
16043 FS = ""
16044 }
16045 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16046 line = \$ 0
16047 split(line, arg, " ")
16048 if (arg[1] == "#") {
16049 defundef = arg[2]
16050 mac1 = arg[3]
16051 } else {
16052 defundef = substr(arg[1], 2)
16053 mac1 = arg[2]
16054 }
16055 split(mac1, mac2, "(") #)
16056 macro = mac2[1]
16057 prefix = substr(line, 1, index(line, defundef) - 1)
16058 if (D_is_set[macro]) {
16059 # Preserve the white space surrounding the "#".
16060 print prefix "define", macro P[macro] D[macro]
16061 next
16062 } else {
16063 # Replace #undef with comments. This is necessary, for example,
16064 # in the case of _POSIX_SOURCE, which is predefined and required
16065 # on some systems where configure will not decide to define it.
16066 if (defundef == "undef") {
16067 print "/*", prefix defundef, macro, "*/"
16068 next
16069 }
16070 }
16071 }
16072 { print }
16073 _ACAWK
16074 _ACEOF
16075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16076 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16077 fi # test -n "$CONFIG_HEADERS"
16078
16079
16080 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16081 shift
16082 for ac_tag
16083 do
16084 case $ac_tag in
16085 :[FHLC]) ac_mode=$ac_tag; continue;;
16086 esac
16087 case $ac_mode$ac_tag in
16088 :[FHL]*:*);;
16089 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16090 :[FH]-) ac_tag=-:-;;
16091 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16092 esac
16093 ac_save_IFS=$IFS
16094 IFS=:
16095 set x $ac_tag
16096 IFS=$ac_save_IFS
16097 shift
16098 ac_file=$1
16099 shift
16100
16101 case $ac_mode in
16102 :L) ac_source=$1;;
16103 :[FH])
16104 ac_file_inputs=
16105 for ac_f
16106 do
16107 case $ac_f in
16108 -) ac_f="$ac_tmp/stdin";;
16109 *) # Look for the file first in the build tree, then in the source tree
16110 # (if the path is not absolute). The absolute path cannot be DOS-style,
16111 # because $ac_f cannot contain ':'.
16112 test -f "$ac_f" ||
16113 case $ac_f in
16114 [\\/$]*) false;;
16115 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16116 esac ||
16117 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16118 esac
16119 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16120 as_fn_append ac_file_inputs " '$ac_f'"
16121 done
16122
16123 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16124 # use $as_me), people would be surprised to read:
16125 # /* config.h. Generated by config.status. */
16126 configure_input='Generated from '`
16127 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16128 `' by configure.'
16129 if test x"$ac_file" != x-; then
16130 configure_input="$ac_file. $configure_input"
16131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16132 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16133 fi
16134 # Neutralize special characters interpreted by sed in replacement strings.
16135 case $configure_input in #(
16136 *\&* | *\|* | *\\* )
16137 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16138 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16139 *) ac_sed_conf_input=$configure_input;;
16140 esac
16141
16142 case $ac_tag in
16143 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16144 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16145 esac
16146 ;;
16147 esac
16148
16149 ac_dir=`$as_dirname -- "$ac_file" ||
16150 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16151 X"$ac_file" : 'X\(//\)[^/]' \| \
16152 X"$ac_file" : 'X\(//\)$' \| \
16153 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16154 printf "%s\n" X"$ac_file" |
16155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16156 s//\1/
16157 q
16158 }
16159 /^X\(\/\/\)[^/].*/{
16160 s//\1/
16161 q
16162 }
16163 /^X\(\/\/\)$/{
16164 s//\1/
16165 q
16166 }
16167 /^X\(\/\).*/{
16168 s//\1/
16169 q
16170 }
16171 s/.*/./; q'`
16172 as_dir="$ac_dir"; as_fn_mkdir_p
16173 ac_builddir=.
16174
16175 case "$ac_dir" in
16176 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16177 *)
16178 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16179 # A ".." for each directory in $ac_dir_suffix.
16180 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16181 case $ac_top_builddir_sub in
16182 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16183 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16184 esac ;;
16185 esac
16186 ac_abs_top_builddir=$ac_pwd
16187 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16188 # for backward compatibility:
16189 ac_top_builddir=$ac_top_build_prefix
16190
16191 case $srcdir in
16192 .) # We are building in place.
16193 ac_srcdir=.
16194 ac_top_srcdir=$ac_top_builddir_sub
16195 ac_abs_top_srcdir=$ac_pwd ;;
16196 [\\/]* | ?:[\\/]* ) # Absolute name.
16197 ac_srcdir=$srcdir$ac_dir_suffix;
16198 ac_top_srcdir=$srcdir
16199 ac_abs_top_srcdir=$srcdir ;;
16200 *) # Relative name.
16201 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16202 ac_top_srcdir=$ac_top_build_prefix$srcdir
16203 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16204 esac
16205 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16206
16207
16208 case $ac_mode in
16209 :F)
16210 #
16211 # CONFIG_FILE
16212 #
16213
16214 case $INSTALL in
16215 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16216 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16217 esac
16218 ac_MKDIR_P=$MKDIR_P
16219 case $MKDIR_P in
16220 [\\/$]* | ?:[\\/]* ) ;;
16221 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16222 esac
16223 _ACEOF
16224
16225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16226 # If the template does not know about datarootdir, expand it.
16227 # FIXME: This hack should be removed a few years after 2.60.
16228 ac_datarootdir_hack=; ac_datarootdir_seen=
16229 ac_sed_dataroot='
16230 /datarootdir/ {
16231 p
16232 q
16233 }
16234 /@datadir@/p
16235 /@docdir@/p
16236 /@infodir@/p
16237 /@localedir@/p
16238 /@mandir@/p'
16239 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16240 *datarootdir*) ac_datarootdir_seen=yes;;
16241 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16243 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16244 _ACEOF
16245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16246 ac_datarootdir_hack='
16247 s&@datadir@&$datadir&g
16248 s&@docdir@&$docdir&g
16249 s&@infodir@&$infodir&g
16250 s&@localedir@&$localedir&g
16251 s&@mandir@&$mandir&g
16252 s&\\\${datarootdir}&$datarootdir&g' ;;
16253 esac
16254 _ACEOF
16255
16256 # Neutralize VPATH when '$srcdir' = '.'.
16257 # Shell code in configure.ac might set extrasub.
16258 # FIXME: do we really want to maintain this feature?
16259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16260 ac_sed_extra="$ac_vpsub
16261 $extrasub
16262 _ACEOF
16263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16264 :t
16265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16266 s|@configure_input@|$ac_sed_conf_input|;t t
16267 s&@top_builddir@&$ac_top_builddir_sub&;t t
16268 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16269 s&@srcdir@&$ac_srcdir&;t t
16270 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16271 s&@top_srcdir@&$ac_top_srcdir&;t t
16272 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16273 s&@builddir@&$ac_builddir&;t t
16274 s&@abs_builddir@&$ac_abs_builddir&;t t
16275 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16276 s&@INSTALL@&$ac_INSTALL&;t t
16277 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16278 $ac_datarootdir_hack
16279 "
16280 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16281 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16282
16283 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16284 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16285 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16286 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16288 which seems to be undefined. Please make sure it is defined" >&5
16289 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16290 which seems to be undefined. Please make sure it is defined" >&2;}
16291
16292 rm -f "$ac_tmp/stdin"
16293 case $ac_file in
16294 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16295 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16296 esac \
16297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16298 ;;
16299 :H)
16300 #
16301 # CONFIG_HEADER
16302 #
16303 if test x"$ac_file" != x-; then
16304 {
16305 printf "%s\n" "/* $configure_input */" >&1 \
16306 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16307 } >"$ac_tmp/config.h" \
16308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16309 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16311 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16312 else
16313 rm -f "$ac_file"
16314 mv "$ac_tmp/config.h" "$ac_file" \
16315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16316 fi
16317 else
16318 printf "%s\n" "/* $configure_input */" >&1 \
16319 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16320 || as_fn_error $? "could not create -" "$LINENO" 5
16321 fi
16322 # Compute "$ac_file"'s index in $config_headers.
16323 _am_arg="$ac_file"
16324 _am_stamp_count=1
16325 for _am_header in $config_headers :; do
16326 case $_am_header in
16327 $_am_arg | $_am_arg:* )
16328 break ;;
16329 * )
16330 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16331 esac
16332 done
16333 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16334 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16335 X"$_am_arg" : 'X\(//\)[^/]' \| \
16336 X"$_am_arg" : 'X\(//\)$' \| \
16337 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16338 printf "%s\n" X"$_am_arg" |
16339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16340 s//\1/
16341 q
16342 }
16343 /^X\(\/\/\)[^/].*/{
16344 s//\1/
16345 q
16346 }
16347 /^X\(\/\/\)$/{
16348 s//\1/
16349 q
16350 }
16351 /^X\(\/\).*/{
16352 s//\1/
16353 q
16354 }
16355 s/.*/./; q'`/stamp-h$_am_stamp_count
16356 ;;
16357
16358 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16359 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16360 ;;
16361 esac
16362
16363
16364 case $ac_file$ac_mode in
16365 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16366 # Older Autoconf quotes --file arguments for eval, but not when files
16367 # are listed without --file. Let's play safe and only enable the eval
16368 # if we detect the quoting.
16369 # TODO: see whether this extra hack can be removed once we start
16370 # requiring Autoconf 2.70 or later.
16371 case $CONFIG_FILES in #(
16372 *\'*) :
16373 eval set x "$CONFIG_FILES" ;; #(
16374 *) :
16375 set x $CONFIG_FILES ;; #(
16376 *) :
16377 ;;
16378 esac
16379 shift
16380 # Used to flag and report bootstrapping failures.
16381 am_rc=0
16382 for am_mf
16383 do
16384 # Strip MF so we end up with the name of the file.
16385 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16386 # Check whether this is an Automake generated Makefile which includes
16387 # dependency-tracking related rules and includes.
16388 # Grep'ing the whole file directly is not great: AIX grep has a line
16389 # limit of 2048, but all sed's we know have understand at least 4000.
16390 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16391 || continue
16392 am_dirpart=`$as_dirname -- "$am_mf" ||
16393 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16394 X"$am_mf" : 'X\(//\)[^/]' \| \
16395 X"$am_mf" : 'X\(//\)$' \| \
16396 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16397 printf "%s\n" X"$am_mf" |
16398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16399 s//\1/
16400 q
16401 }
16402 /^X\(\/\/\)[^/].*/{
16403 s//\1/
16404 q
16405 }
16406 /^X\(\/\/\)$/{
16407 s//\1/
16408 q
16409 }
16410 /^X\(\/\).*/{
16411 s//\1/
16412 q
16413 }
16414 s/.*/./; q'`
16415 am_filepart=`$as_basename -- "$am_mf" ||
16416 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16417 X"$am_mf" : 'X\(//\)$' \| \
16418 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16419 printf "%s\n" X/"$am_mf" |
16420 sed '/^.*\/\([^/][^/]*\)\/*$/{
16421 s//\1/
16422 q
16423 }
16424 /^X\/\(\/\/\)$/{
16425 s//\1/
16426 q
16427 }
16428 /^X\/\(\/\).*/{
16429 s//\1/
16430 q
16431 }
16432 s/.*/./; q'`
16433 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16434 && sed -e '/# am--include-marker/d' "$am_filepart" \
16435 | $MAKE -f - am--depfiles" >&5
16436 (cd "$am_dirpart" \
16437 && sed -e '/# am--include-marker/d' "$am_filepart" \
16438 | $MAKE -f - am--depfiles) >&5 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } || am_rc=$?
16442 done
16443 if test $am_rc -ne 0; then
16444 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16445 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16446 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16447 for automatic dependency tracking. If GNU make was not used, consider
16448 re-running the configure script with MAKE=\"gmake\" (or whatever is
16449 necessary). You can also try re-running configure with the
16450 '--disable-dependency-tracking' option to at least be able to build
16451 the package (albeit without support for automatic dependency tracking).
16452 See 'config.log' for more details" "$LINENO" 5; }
16453 fi
16454 { am_dirpart=; unset am_dirpart;}
16455 { am_filepart=; unset am_filepart;}
16456 { am_mf=; unset am_mf;}
16457 { am_rc=; unset am_rc;}
16458 rm -f conftest-deps.mk
16459 }
16460 ;;
16461 "libtool":C)
16462
16463 # See if we are running on zsh, and set the options that allow our
16464 # commands through without removal of \ escapes.
16465 if test -n "${ZSH_VERSION+set}"; then
16466 setopt NO_GLOB_SUBST
16467 fi
16468
16469 cfgfile=${ofile}T
16470 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16471 $RM "$cfgfile"
16472
16473 cat <<_LT_EOF >> "$cfgfile"
16474 #! $SHELL
16475 # Generated automatically by $as_me ($PACKAGE) $VERSION
16476 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16477
16478 # Provide generalized library-building support services.
16479 # Written by Gordon Matzigkeit, 1996
16480
16481 # Copyright (C) 2024 Free Software Foundation, Inc.
16482 # This is free software; see the source for copying conditions. There is NO
16483 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16484
16485 # GNU Libtool is free software; you can redistribute it and/or modify
16486 # it under the terms of the GNU General Public License as published by
16487 # the Free Software Foundation; either version 2 of the License, or
16488 # (at your option) any later version.
16489 #
16490 # As a special exception to the GNU General Public License, if you
16491 # distribute this file as part of a program or library that is built
16492 # using GNU Libtool, you may include this file under the same
16493 # distribution terms that you use for the rest of that program.
16494 #
16495 # GNU Libtool is distributed in the hope that it will be useful, but
16496 # WITHOUT ANY WARRANTY; without even the implied warranty of
16497 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16498 # GNU General Public License for more details.
16499 #
16500 # You should have received a copy of the GNU General Public License
16501 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16502
16503
16504 # The names of the tagged configurations supported by this script.
16505 available_tags=''
16506
16507 # Configured defaults for sys_lib_dlsearch_path munging.
16508 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16509
16510 # ### BEGIN LIBTOOL CONFIG
16511
16512 # Which release of libtool.m4 was used?
16513 macro_version=$macro_version
16514 macro_revision=$macro_revision
16515
16516 # Whether or not to build shared libraries.
16517 build_libtool_libs=$enable_shared
16518
16519 # Whether or not to build static libraries.
16520 build_old_libs=$enable_static
16521
16522 # What type of objects to build.
16523 pic_mode=$pic_mode
16524
16525 # Whether or not to optimize for fast installation.
16526 fast_install=$enable_fast_install
16527
16528 # Shared archive member basename,for filename based shared library versioning on AIX.
16529 shared_archive_member_spec=$shared_archive_member_spec
16530
16531 # Shell to use when invoking shell scripts.
16532 SHELL=$lt_SHELL
16533
16534 # An echo program that protects backslashes.
16535 ECHO=$lt_ECHO
16536
16537 # The PATH separator for the build system.
16538 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16539
16540 # The host system.
16541 host_alias=$host_alias
16542 host=$host
16543 host_os=$host_os
16544
16545 # The build system.
16546 build_alias=$build_alias
16547 build=$build
16548 build_os=$build_os
16549
16550 # A sed program that does not truncate output.
16551 SED=$lt_SED
16552
16553 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16554 Xsed="\$SED -e 1s/^X//"
16555
16556 # A grep program that handles long lines.
16557 GREP=$lt_GREP
16558
16559 # An ERE matcher.
16560 EGREP=$lt_EGREP
16561
16562 # A literal string matcher.
16563 FGREP=$lt_FGREP
16564
16565 # A BSD- or MS-compatible name lister.
16566 NM=$lt_NM
16567
16568 # Whether we need soft or hard links.
16569 LN_S=$lt_LN_S
16570
16571 # What is the maximum length of a command?
16572 max_cmd_len=$max_cmd_len
16573
16574 # Object file suffix (normally "o").
16575 objext=$ac_objext
16576
16577 # Executable file suffix (normally "").
16578 exeext=$exeext
16579
16580 # whether the shell understands "unset".
16581 lt_unset=$lt_unset
16582
16583 # turn spaces into newlines.
16584 SP2NL=$lt_lt_SP2NL
16585
16586 # turn newlines into spaces.
16587 NL2SP=$lt_lt_NL2SP
16588
16589 # convert \$build file names to \$host format.
16590 to_host_file_cmd=$lt_cv_to_host_file_cmd
16591
16592 # convert \$build files to toolchain format.
16593 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16594
16595 # A file(cmd) program that detects file types.
16596 FILECMD=$lt_FILECMD
16597
16598 # An object symbol dumper.
16599 OBJDUMP=$lt_OBJDUMP
16600
16601 # Method to check whether dependent libraries are shared objects.
16602 deplibs_check_method=$lt_deplibs_check_method
16603
16604 # Command to use when deplibs_check_method = "file_magic".
16605 file_magic_cmd=$lt_file_magic_cmd
16606
16607 # How to find potential files when deplibs_check_method = "file_magic".
16608 file_magic_glob=$lt_file_magic_glob
16609
16610 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16611 want_nocaseglob=$lt_want_nocaseglob
16612
16613 # DLL creation program.
16614 DLLTOOL=$lt_DLLTOOL
16615
16616 # Command to associate shared and link libraries.
16617 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16618
16619 # The archiver.
16620 AR=$lt_AR
16621
16622 # Flags to create an archive (by configure).
16623 lt_ar_flags=$lt_ar_flags
16624
16625 # Flags to create an archive.
16626 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16627
16628 # How to feed a file listing to the archiver.
16629 archiver_list_spec=$lt_archiver_list_spec
16630
16631 # A symbol stripping program.
16632 STRIP=$lt_STRIP
16633
16634 # Commands used to install an old-style archive.
16635 RANLIB=$lt_RANLIB
16636 old_postinstall_cmds=$lt_old_postinstall_cmds
16637 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16638
16639 # Whether to use a lock for old archive extraction.
16640 lock_old_archive_extraction=$lock_old_archive_extraction
16641
16642 # A C compiler.
16643 LTCC=$lt_CC
16644
16645 # LTCC compiler flags.
16646 LTCFLAGS=$lt_CFLAGS
16647
16648 # Take the output of nm and produce a listing of raw symbols and C names.
16649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16650
16651 # Transform the output of nm in a proper C declaration.
16652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16653
16654 # Transform the output of nm into a list of symbols to manually relocate.
16655 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16656
16657 # Transform the output of nm in a C name address pair.
16658 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16659
16660 # Transform the output of nm in a C name address pair when lib prefix is needed.
16661 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16662
16663 # The name lister interface.
16664 nm_interface=$lt_lt_cv_nm_interface
16665
16666 # Specify filename containing input files for \$NM.
16667 nm_file_list_spec=$lt_nm_file_list_spec
16668
16669 # The root where to search for dependent libraries,and where our libraries should be installed.
16670 lt_sysroot=$lt_sysroot
16671
16672 # Command to truncate a binary pipe.
16673 lt_truncate_bin=$lt_lt_cv_truncate_bin
16674
16675 # The name of the directory that contains temporary libtool files.
16676 objdir=$objdir
16677
16678 # Used to examine libraries when file_magic_cmd begins with "file".
16679 MAGIC_CMD=$MAGIC_CMD
16680
16681 # Must we lock files when doing compilation?
16682 need_locks=$lt_need_locks
16683
16684 # Manifest tool.
16685 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16686
16687 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16688 DSYMUTIL=$lt_DSYMUTIL
16689
16690 # Tool to change global to local symbols on Mac OS X.
16691 NMEDIT=$lt_NMEDIT
16692
16693 # Tool to manipulate fat objects and archives on Mac OS X.
16694 LIPO=$lt_LIPO
16695
16696 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16697 OTOOL=$lt_OTOOL
16698
16699 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16700 OTOOL64=$lt_OTOOL64
16701
16702 # Old archive suffix (normally "a").
16703 libext=$libext
16704
16705 # Shared library suffix (normally ".so").
16706 shrext_cmds=$lt_shrext_cmds
16707
16708 # The commands to extract the exported symbol list from a shared archive.
16709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16710
16711 # Variables whose values should be saved in libtool wrapper scripts and
16712 # restored at link time.
16713 variables_saved_for_relink=$lt_variables_saved_for_relink
16714
16715 # Do we need the "lib" prefix for modules?
16716 need_lib_prefix=$need_lib_prefix
16717
16718 # Do we need a version for libraries?
16719 need_version=$need_version
16720
16721 # Library versioning type.
16722 version_type=$version_type
16723
16724 # Shared library runtime path variable.
16725 runpath_var=$runpath_var
16726
16727 # Shared library path variable.
16728 shlibpath_var=$shlibpath_var
16729
16730 # Is shlibpath searched before the hard-coded library search path?
16731 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16732
16733 # Format of library name prefix.
16734 libname_spec=$lt_libname_spec
16735
16736 # List of archive names. First name is the real one, the rest are links.
16737 # The last name is the one that the linker finds with -lNAME
16738 library_names_spec=$lt_library_names_spec
16739
16740 # The coded name of the library, if different from the real name.
16741 soname_spec=$lt_soname_spec
16742
16743 # Permission mode override for installation of shared libraries.
16744 install_override_mode=$lt_install_override_mode
16745
16746 # Command to use after installation of a shared archive.
16747 postinstall_cmds=$lt_postinstall_cmds
16748
16749 # Command to use after uninstallation of a shared archive.
16750 postuninstall_cmds=$lt_postuninstall_cmds
16751
16752 # Commands used to finish a libtool library installation in a directory.
16753 finish_cmds=$lt_finish_cmds
16754
16755 # As "finish_cmds", except a single script fragment to be evaled but
16756 # not shown.
16757 finish_eval=$lt_finish_eval
16758
16759 # Whether we should hardcode library paths into libraries.
16760 hardcode_into_libs=$hardcode_into_libs
16761
16762 # Compile-time system search path for libraries.
16763 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16764
16765 # Detected run-time system search path for libraries.
16766 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16767
16768 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16769 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16770
16771 # Whether dlopen is supported.
16772 dlopen_support=$enable_dlopen
16773
16774 # Whether dlopen of programs is supported.
16775 dlopen_self=$enable_dlopen_self
16776
16777 # Whether dlopen of statically linked programs is supported.
16778 dlopen_self_static=$enable_dlopen_self_static
16779
16780 # Commands to strip libraries.
16781 old_striplib=$lt_old_striplib
16782 striplib=$lt_striplib
16783
16784
16785 # The linker used to build libraries.
16786 LD=$lt_LD
16787
16788 # How to create reloadable object files.
16789 reload_flag=$lt_reload_flag
16790 reload_cmds=$lt_reload_cmds
16791
16792 # Commands used to build an old-style archive.
16793 old_archive_cmds=$lt_old_archive_cmds
16794
16795 # A language specific compiler.
16796 CC=$lt_compiler
16797
16798 # Is the compiler the GNU compiler?
16799 with_gcc=$GCC
16800
16801 # Compiler flag to turn off builtin functions.
16802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16803
16804 # Additional compiler flags for building library objects.
16805 pic_flag=$lt_lt_prog_compiler_pic
16806
16807 # How to pass a linker flag through the compiler.
16808 wl=$lt_lt_prog_compiler_wl
16809
16810 # Compiler flag to prevent dynamic linking.
16811 link_static_flag=$lt_lt_prog_compiler_static
16812
16813 # Does compiler simultaneously support -c and -o options?
16814 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16815
16816 # Whether or not to add -lc for building shared libraries.
16817 build_libtool_need_lc=$archive_cmds_need_lc
16818
16819 # Whether or not to disallow shared libs when runtime libs are static.
16820 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16821
16822 # Compiler flag to allow reflexive dlopens.
16823 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16824
16825 # Compiler flag to generate shared objects directly from archives.
16826 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16827
16828 # Whether the compiler copes with passing no objects directly.
16829 compiler_needs_object=$lt_compiler_needs_object
16830
16831 # Create an old-style archive from a shared archive.
16832 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16833
16834 # Create a temporary old-style archive to link instead of a shared archive.
16835 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16836
16837 # Commands used to build a shared archive.
16838 archive_cmds=$lt_archive_cmds
16839 archive_expsym_cmds=$lt_archive_expsym_cmds
16840
16841 # Commands used to build a loadable module if different from building
16842 # a shared archive.
16843 module_cmds=$lt_module_cmds
16844 module_expsym_cmds=$lt_module_expsym_cmds
16845
16846 # Whether we are building with GNU ld or not.
16847 with_gnu_ld=$lt_with_gnu_ld
16848
16849 # Flag that allows shared libraries with undefined symbols to be built.
16850 allow_undefined_flag=$lt_allow_undefined_flag
16851
16852 # Flag that enforces no undefined symbols.
16853 no_undefined_flag=$lt_no_undefined_flag
16854
16855 # Flag to hardcode \$libdir into a binary during linking.
16856 # This must work even if \$libdir does not exist
16857 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16858
16859 # Whether we need a single "-rpath" flag with a separated argument.
16860 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16861
16862 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16863 # DIR into the resulting binary.
16864 hardcode_direct=$hardcode_direct
16865
16866 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16867 # DIR into the resulting binary and the resulting library dependency is
16868 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
16869 # library is relocated.
16870 hardcode_direct_absolute=$hardcode_direct_absolute
16871
16872 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16873 # into the resulting binary.
16874 hardcode_minus_L=$hardcode_minus_L
16875
16876 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16877 # into the resulting binary.
16878 hardcode_shlibpath_var=$hardcode_shlibpath_var
16879
16880 # Set to "yes" if building a shared library automatically hardcodes DIR
16881 # into the library and all subsequent libraries and executables linked
16882 # against it.
16883 hardcode_automatic=$hardcode_automatic
16884
16885 # Set to yes if linker adds runtime paths of dependent libraries
16886 # to runtime path list.
16887 inherit_rpath=$inherit_rpath
16888
16889 # Whether libtool must link a program against all its dependency libraries.
16890 link_all_deplibs=$link_all_deplibs
16891
16892 # Set to "yes" if exported symbols are required.
16893 always_export_symbols=$always_export_symbols
16894
16895 # The commands to list exported symbols.
16896 export_symbols_cmds=$lt_export_symbols_cmds
16897
16898 # Symbols that should not be listed in the preloaded symbols.
16899 exclude_expsyms=$lt_exclude_expsyms
16900
16901 # Symbols that must always be exported.
16902 include_expsyms=$lt_include_expsyms
16903
16904 # Commands necessary for linking programs (against libraries) with templates.
16905 prelink_cmds=$lt_prelink_cmds
16906
16907 # Commands necessary for finishing linking programs.
16908 postlink_cmds=$lt_postlink_cmds
16909
16910 # Specify filename containing input files.
16911 file_list_spec=$lt_file_list_spec
16912
16913 # How to hardcode a shared library path into an executable.
16914 hardcode_action=$hardcode_action
16915
16916 # ### END LIBTOOL CONFIG
16917
16918 _LT_EOF
16919
16920 cat <<'_LT_EOF' >> "$cfgfile"
16921
16922 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16923
16924 # func_munge_path_list VARIABLE PATH
16925 # -----------------------------------
16926 # VARIABLE is name of variable containing _space_ separated list of
16927 # directories to be munged by the contents of PATH, which is string
16928 # having a format:
16929 # "DIR[:DIR]:"
16930 # string "DIR[ DIR]" will be prepended to VARIABLE
16931 # ":DIR[:DIR]"
16932 # string "DIR[ DIR]" will be appended to VARIABLE
16933 # "DIRP[:DIRP]::[DIRA:]DIRA"
16934 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16935 # "DIRA[ DIRA]" will be appended to VARIABLE
16936 # "DIR[:DIR]"
16937 # VARIABLE will be replaced by "DIR[ DIR]"
16938 func_munge_path_list ()
16939 {
16940 case x$2 in
16941 x)
16942 ;;
16943 *:)
16944 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16945 ;;
16946 x:*)
16947 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16948 ;;
16949 *::*)
16950 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16951 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16952 ;;
16953 *)
16954 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16955 ;;
16956 esac
16957 }
16958
16959
16960 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16961 func_cc_basename ()
16962 {
16963 for cc_temp in $*""; do
16964 case $cc_temp in
16965 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16966 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16967 \-*) ;;
16968 *) break;;
16969 esac
16970 done
16971 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16972 }
16973
16974
16975 # ### END FUNCTIONS SHARED WITH CONFIGURE
16976
16977 _LT_EOF
16978
16979 case $host_os in
16980 aix3*)
16981 cat <<\_LT_EOF >> "$cfgfile"
16982 # AIX sometimes has problems with the GCC collect2 program. For some
16983 # reason, if we set the COLLECT_NAMES environment variable, the problems
16984 # vanish in a puff of smoke.
16985 if test set != "${COLLECT_NAMES+set}"; then
16986 COLLECT_NAMES=
16987 export COLLECT_NAMES
16988 fi
16989 _LT_EOF
16990 ;;
16991 esac
16992
16993
16994
16995 ltmain=$ac_aux_dir/ltmain.sh
16996
16997
16998 # We use sed instead of cat because bash on DJGPP gets confused if
16999 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17000 # text mode, it properly converts lines to CR/LF. This bash problem
17001 # is reportedly fixed, but why not run on old versions too?
17002 $SED '$q' "$ltmain" >> "$cfgfile" \
17003 || (rm -f "$cfgfile"; exit 1)
17004
17005 mv -f "$cfgfile" "$ofile" ||
17006 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17007 chmod +x "$ofile"
17008
17009 ;;
17010
17011 esac
17012 done # for ac_tag
17013
17014
17015 as_fn_exit 0
17016 _ACEOF
17017 ac_clean_files=$ac_clean_files_save
17018
17019 test $ac_write_fail = 0 ||
17020 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17021
17022
17023 # configure is writing to config.log, and then calls config.status.
17024 # config.status does its own redirection, appending to config.log.
17025 # Unfortunately, on DOS this fails, as config.log is still kept open
17026 # by configure, so config.status won't be able to write to it; its
17027 # output is simply discarded. So we exec the FD to /dev/null,
17028 # effectively closing config.log, so it can be properly (re)opened and
17029 # appended to by config.status. When coming back to configure, we
17030 # need to make the FD available again.
17031 if test "$no_create" != yes; then
17032 ac_cs_success=:
17033 ac_config_status_args=
17034 test "$silent" = yes &&
17035 ac_config_status_args="$ac_config_status_args --quiet"
17036 exec 5>/dev/null
17037 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17038 exec 5>>config.log
17039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17040 # would make configure fail if this is the last instruction.
17041 $ac_cs_success || as_fn_exit 1
17042 fi
17043 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17045 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17046 fi
17047
17048