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 haveged 1.9.26.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='haveged'
613 PACKAGE_TARNAME='haveged'
614 PACKAGE_VERSION='1.9.26'
615 PACKAGE_STRING='haveged 1.9.26'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_unique_file="src/haveged.c"
652 ac_subst_vars='am__EXEEXT_FALSE
653 am__EXEEXT_TRUE
654 LTLIBOBJS
655 LIBOBJS
656 HA_LDFLAGS
657 ENABLE_NIST_TEST_FALSE
658 ENABLE_NIST_TEST_TRUE
659 ENABLE_ENT_TEST_FALSE
660 ENABLE_ENT_TEST_TRUE
661 ENABLE_BIN_FALSE
662 ENABLE_BIN_TRUE
663 HAVEGE_LT_VERSION
664 LT_SYS_LIBRARY_PATH
665 OTOOL64
666 OTOOL
667 LIPO
668 NMEDIT
669 DSYMUTIL
670 MANIFEST_TOOL
671 RANLIB
672 ac_ct_AR
673 AR
674 DLLTOOL
675 OBJDUMP
676 FILECMD
677 LN_S
678 NM
679 ac_ct_DUMPBIN
680 DUMPBIN
681 LD
682 FGREP
683 EGREP
684 GREP
685 SED
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 LIBTOOL
695 am__xargs_n
696 am__rm_f_notfound
697 AM_BACKSLASH
698 AM_DEFAULT_VERBOSITY
699 AM_DEFAULT_V
700 AM_V
701 CSCOPE
702 ETAGS
703 CTAGS
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
709 AWK
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 runstatedir
754 localstatedir
755 sharedstatedir
756 sysconfdir
757 datadir
758 datarootdir
759 libexecdir
760 sbindir
761 bindir
762 program_transform_name
763 prefix
764 exec_prefix
765 PACKAGE_URL
766 PACKAGE_BUGREPORT
767 PACKAGE_STRING
768 PACKAGE_VERSION
769 PACKAGE_TARNAME
770 PACKAGE_NAME
771 PATH_SEPARATOR
772 SHELL'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 enable_silent_rules
777 enable_shared
778 enable_static
779 enable_pic
780 with_pic
781 enable_fast_install
782 enable_aix_soname
783 with_aix_soname
784 with_gnu_ld
785 with_sysroot
786 enable_libtool_lock
787 enable_clock_gettime
788 enable_daemon
789 enable_diagnostic
790 enable_nistest
791 enable_enttest
792 enable_olt
793 enable_threads
794 enable_tune
795 '
796 ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 LIBS
803 CPPFLAGS
804 LT_SYS_LIBRARY_PATH'
805
806
807 # Initialize some variables set by options.
808 ac_init_help=
809 ac_init_version=false
810 ac_unrecognized_opts=
811 ac_unrecognized_sep=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
814 cache_file=/dev/null
815 exec_prefix=NONE
816 no_create=
817 no_recursion=
818 prefix=NONE
819 program_prefix=NONE
820 program_suffix=NONE
821 program_transform_name=s,x,x,
822 silent=
823 site=
824 srcdir=
825 verbose=
826 x_includes=NONE
827 x_libraries=NONE
828
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir='${exec_prefix}/bin'
836 sbindir='${exec_prefix}/sbin'
837 libexecdir='${exec_prefix}/libexec'
838 datarootdir='${prefix}/share'
839 datadir='${datarootdir}'
840 sysconfdir='${prefix}/etc'
841 sharedstatedir='${prefix}/com'
842 localstatedir='${prefix}/var'
843 runstatedir='${localstatedir}/run'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847 infodir='${datarootdir}/info'
848 htmldir='${docdir}'
849 dvidir='${docdir}'
850 pdfdir='${docdir}'
851 psdir='${docdir}'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
855
856 ac_prev=
857 ac_dashdash=
858 for ac_option
859 do
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\$ac_option
863 ac_prev=
864 continue
865 fi
866
867 case $ac_option in
868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 *=) ac_optarg= ;;
870 *) ac_optarg=yes ;;
871 esac
872
873 case $ac_dashdash$ac_option in
874 --)
875 ac_dashdash=yes ;;
876
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
881
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
886
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
893
894 --config-cache | -C)
895 cache_file=config.cache ;;
896
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
901
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
908
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: '$ac_useropt'"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
934
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: '$ac_useropt'"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -runstatedir | --runstatedir | --runstatedi | --runstated \
1095 | --runstate | --runstat | --runsta | --runst | --runs \
1096 | --run | --ru | --r)
1097 ac_prev=runstatedir ;;
1098 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1099 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1100 | --run=* | --ru=* | --r=*)
1101 runstatedir=$ac_optarg ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: '$ac_useropt'"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1163
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: '$ac_useropt'"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1197
1198 -*) as_fn_error $? "unrecognized option: '$ac_option'
1199 Try '$0 --help' for more information"
1200 ;;
1201
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1211
1212 *)
1213 # FIXME: should be removed in autoconf 3.0.
1214 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 ;;
1219
1220 esac
1221 done
1222
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $? "missing argument to $ac_option"
1226 fi
1227
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1234 fi
1235
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir runstatedir
1241 do
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1256
1257 # There might be people who depend on the old broken behavior: '$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271 fi
1272
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276 test "$silent" = yes && exec 6>/dev/null
1277
1278
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 printf "%s\n" X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1317 fi
1318 else
1319 ac_srcdir_defaulted=no
1320 fi
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 fi
1325 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 pwd)`
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332 fi
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1336 case $srcdir in
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 esac
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 done
1345
1346 #
1347 # Report the --help message.
1348 #
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
1353 'configure' configures haveged 1.9.26 to adapt to many kinds of systems.
1354
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1359
1360 Defaults for the options are specified in brackets.
1361
1362 Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print 'checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for '--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or '..']
1372
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 [PREFIX]
1378
1379 By default, 'make install' will install all the files in
1380 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than '$ac_default_prefix' using '--prefix',
1382 for instance '--prefix=\$HOME'.
1383
1384 For better control, use the options below.
1385
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/haveged]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1407 _ACEOF
1408
1409 cat <<\_ACEOF
1410
1411 Program names:
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415
1416 System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 _ACEOF
1420 fi
1421
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of haveged 1.9.26:";;
1425 esac
1426 cat <<\_ACEOF
1427
1428 Optional Features:
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --enable-silent-rules less verbose build output (undo: "make V=1")
1433 --disable-silent-rules verbose build output (undo: "make V=0")
1434 --enable-shared[=PKGS] build shared libraries [default=yes]
1435 --enable-static[=PKGS] build static libraries [default=yes]
1436 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1437 both]
1438 --enable-fast-install[=PKGS]
1439 optimize for fast installation [default=yes]
1440 --enable-aix-soname=aix|svr4|both
1441 shared library versioning (aka "SONAME") variant to
1442 provide on AIX, [default=aix].
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --enable-clock_gettime=no/yes
1445 Enable clock_gettime [default=yes if no rdtsc]
1446 --enable-daemon=yes/no Enable daemon [default=yes if linux]
1447 --enable-diagnostic=no/capture/inject/yes
1448 Enable diagnostic mode [default=no]
1449 --enable-nistest=no/yes Run NIST test suite [default=no]
1450 --enable-enttest=no/yes Run ENT test suite [default=yes]
1451 --enable-olt=yes/no Enable online tests [default=yes]
1452 --enable-threads=no/yes Enable threads [default=no]
1453 --enable-tune=yes/cpuid/vfs/no
1454 Enable host tune methods [default=yes]
1455
1456 Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1460 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1461 compiler's sysroot if not specified).
1462
1463 Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 LIBS libraries to pass to the linker, e.g. -l<library>
1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
1471 LT_SYS_LIBRARY_PATH
1472 User-defined run-time library search path.
1473
1474 Use these variables to override the choices made by 'configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1476
1477 Report bugs to the package provider.
1478 _ACEOF
1479 ac_status=$?
1480 fi
1481
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1489
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *)
1493 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1505
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for configure.gnu first; this name is used for a wrapper for
1524 # Metaconfig's "Configure" on case-insensitive file systems.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1531 else
1532 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1535 done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540 cat <<\_ACEOF
1541 haveged configure 1.9.26
1542 generated by GNU Autoconf 2.72
1543
1544 Copyright (C) 2023 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548 exit
1549 fi
1550
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1554
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext conftest.beam
1562 if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 printf "%s\n" "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext
1581 then :
1582 ac_retval=0
1583 else case e in #(
1584 e) printf "%s\n" "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=1 ;;
1588 esac
1589 fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592
1593 } # ac_fn_c_try_compile
1594
1595 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1596 # -------------------------------------------------------
1597 # Tests whether HEADER exists and can be compiled using the include files in
1598 # INCLUDES, setting the cache variable VAR accordingly.
1599 ac_fn_c_check_header_compile ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603 printf %s "checking for $2... " >&6; }
1604 if eval test \${$3+y}
1605 then :
1606 printf %s "(cached) " >&6
1607 else case e in #(
1608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1610 $4
1611 #include <$2>
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"
1614 then :
1615 eval "$3=yes"
1616 else case e in #(
1617 e) eval "$3=no" ;;
1618 esac
1619 fi
1620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1621 esac
1622 fi
1623 eval ac_res=\$$3
1624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625 printf "%s\n" "$ac_res" >&6; }
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627
1628 } # ac_fn_c_check_header_compile
1629
1630 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1631 # -------------------------------------------
1632 # Tests whether TYPE exists after having included INCLUDES, setting cache
1633 # variable VAR accordingly.
1634 ac_fn_c_check_type ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 printf %s "checking for $2... " >&6; }
1639 if eval test \${$3+y}
1640 then :
1641 printf %s "(cached) " >&6
1642 else case e in #(
1643 e) eval "$3=no"
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1646 $4
1647 int
1648 main (void)
1649 {
1650 if (sizeof ($2))
1651 return 0;
1652 ;
1653 return 0;
1654 }
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"
1657 then :
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1660 $4
1661 int
1662 main (void)
1663 {
1664 if (sizeof (($2)))
1665 return 0;
1666 ;
1667 return 0;
1668 }
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"
1671 then :
1672
1673 else case e in #(
1674 e) eval "$3=yes" ;;
1675 esac
1676 fi
1677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1680 esac
1681 fi
1682 eval ac_res=\$$3
1683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 printf "%s\n" "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687 } # ac_fn_c_check_type
1688
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_link ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 printf "%s\n" "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest$ac_exeext && {
1715 test "$cross_compiling" = yes ||
1716 test -x conftest$ac_exeext
1717 }
1718 then :
1719 ac_retval=0
1720 else case e in #(
1721 e) printf "%s\n" "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1 ;;
1725 esac
1726 fi
1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729 # interfere with the next link command; also delete a directory that is
1730 # left behind by Apple's compiler. We do this before executing the actions.
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_link
1736
1737 # ac_fn_c_check_func LINENO FUNC VAR
1738 # ----------------------------------
1739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1740 ac_fn_c_check_func ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 printf %s "checking for $2... " >&6; }
1745 if eval test \${$3+y}
1746 then :
1747 printf %s "(cached) " >&6
1748 else case e in #(
1749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1753 #define $2 innocuous_$2
1754
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $2 (void); below. */
1757
1758 #include <limits.h>
1759 #undef $2
1760
1761 /* Override any GCC internal prototype to avoid an error.
1762 Use char because int might match the return type of a GCC
1763 builtin and then its argument prototype would still apply. */
1764 #ifdef __cplusplus
1765 extern "C"
1766 #endif
1767 char $2 (void);
1768 /* The GNU C library defines this for functions which it implements
1769 to always fail with ENOSYS. Some functions are actually named
1770 something starting with __ and the normal name is an alias. */
1771 #if defined __stub_$2 || defined __stub___$2
1772 choke me
1773 #endif
1774
1775 int
1776 main (void)
1777 {
1778 return $2 ();
1779 ;
1780 return 0;
1781 }
1782 _ACEOF
1783 if ac_fn_c_try_link "$LINENO"
1784 then :
1785 eval "$3=yes"
1786 else case e in #(
1787 e) eval "$3=no" ;;
1788 esac
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1791 conftest$ac_exeext conftest.$ac_ext ;;
1792 esac
1793 fi
1794 eval ac_res=\$$3
1795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 printf "%s\n" "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799 } # ac_fn_c_check_func
1800 ac_configure_args_raw=
1801 for ac_arg
1802 do
1803 case $ac_arg in
1804 *\'*)
1805 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1806 esac
1807 as_fn_append ac_configure_args_raw " '$ac_arg'"
1808 done
1809
1810 case $ac_configure_args_raw in
1811 *$as_nl*)
1812 ac_safe_unquote= ;;
1813 *)
1814 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1815 ac_unsafe_a="$ac_unsafe_z#~"
1816 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1817 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1818 esac
1819
1820 cat >config.log <<_ACEOF
1821 This file contains any messages produced by compilers while
1822 running configure, to aid debugging if configure makes a mistake.
1823
1824 It was created by haveged $as_me 1.9.26, which was
1825 generated by GNU Autoconf 2.72. Invocation command line was
1826
1827 $ $0$ac_configure_args_raw
1828
1829 _ACEOF
1830 exec 5>>config.log
1831 {
1832 cat <<_ASUNAME
1833 ## --------- ##
1834 ## Platform. ##
1835 ## --------- ##
1836
1837 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1838 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1839 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1840 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1841 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1842
1843 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1844 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1845
1846 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1847 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1848 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1849 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1850 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1851 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1852 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1853
1854 _ASUNAME
1855
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1858 do
1859 IFS=$as_save_IFS
1860 case $as_dir in #(((
1861 '') as_dir=./ ;;
1862 */) ;;
1863 *) as_dir=$as_dir/ ;;
1864 esac
1865 printf "%s\n" "PATH: $as_dir"
1866 done
1867 IFS=$as_save_IFS
1868
1869 } >&5
1870
1871 cat >&5 <<_ACEOF
1872
1873
1874 ## ----------- ##
1875 ## Core tests. ##
1876 ## ----------- ##
1877
1878 _ACEOF
1879
1880
1881 # Keep a trace of the command line.
1882 # Strip out --no-create and --no-recursion so they do not pile up.
1883 # Strip out --silent because we don't want to record it for future runs.
1884 # Also quote any args containing shell meta-characters.
1885 # Make two passes to allow for proper duplicate-argument suppression.
1886 ac_configure_args=
1887 ac_configure_args0=
1888 ac_configure_args1=
1889 ac_must_keep_next=false
1890 for ac_pass in 1 2
1891 do
1892 for ac_arg
1893 do
1894 case $ac_arg in
1895 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1897 | -silent | --silent | --silen | --sile | --sil)
1898 continue ;;
1899 *\'*)
1900 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1901 esac
1902 case $ac_pass in
1903 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1904 2)
1905 as_fn_append ac_configure_args1 " '$ac_arg'"
1906 if test $ac_must_keep_next = true; then
1907 ac_must_keep_next=false # Got value, back to normal.
1908 else
1909 case $ac_arg in
1910 *=* | --config-cache | -C | -disable-* | --disable-* \
1911 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1912 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1913 | -with-* | --with-* | -without-* | --without-* | --x)
1914 case "$ac_configure_args0 " in
1915 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1916 esac
1917 ;;
1918 -* ) ac_must_keep_next=true ;;
1919 esac
1920 fi
1921 as_fn_append ac_configure_args " '$ac_arg'"
1922 ;;
1923 esac
1924 done
1925 done
1926 { ac_configure_args0=; unset ac_configure_args0;}
1927 { ac_configure_args1=; unset ac_configure_args1;}
1928
1929 # When interrupted or exit'd, cleanup temporary files, and complete
1930 # config.log. We remove comments because anyway the quotes in there
1931 # would cause problems or look ugly.
1932 # WARNING: Use '\'' to represent an apostrophe within the trap.
1933 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1934 trap 'exit_status=$?
1935 # Sanitize IFS.
1936 IFS=" "" $as_nl"
1937 # Save into config.log some information that might help in debugging.
1938 {
1939 echo
1940
1941 printf "%s\n" "## ---------------- ##
1942 ## Cache variables. ##
1943 ## ---------------- ##"
1944 echo
1945 # The following way of writing the cache mishandles newlines in values,
1946 (
1947 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1948 eval ac_val=\$$ac_var
1949 case $ac_val in #(
1950 *${as_nl}*)
1951 case $ac_var in #(
1952 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1953 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1954 esac
1955 case $ac_var in #(
1956 _ | IFS | as_nl) ;; #(
1957 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1958 *) { eval $ac_var=; unset $ac_var;} ;;
1959 esac ;;
1960 esac
1961 done
1962 (set) 2>&1 |
1963 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1964 *${as_nl}ac_space=\ *)
1965 sed -n \
1966 "s/'\''/'\''\\\\'\'''\''/g;
1967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1968 ;; #(
1969 *)
1970 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1971 ;;
1972 esac |
1973 sort
1974 )
1975 echo
1976
1977 printf "%s\n" "## ----------------- ##
1978 ## Output variables. ##
1979 ## ----------------- ##"
1980 echo
1981 for ac_var in $ac_subst_vars
1982 do
1983 eval ac_val=\$$ac_var
1984 case $ac_val in
1985 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1986 esac
1987 printf "%s\n" "$ac_var='\''$ac_val'\''"
1988 done | sort
1989 echo
1990
1991 if test -n "$ac_subst_files"; then
1992 printf "%s\n" "## ------------------- ##
1993 ## File substitutions. ##
1994 ## ------------------- ##"
1995 echo
1996 for ac_var in $ac_subst_files
1997 do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in
2000 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2001 esac
2002 printf "%s\n" "$ac_var='\''$ac_val'\''"
2003 done | sort
2004 echo
2005 fi
2006
2007 if test -s confdefs.h; then
2008 printf "%s\n" "## ----------- ##
2009 ## confdefs.h. ##
2010 ## ----------- ##"
2011 echo
2012 cat confdefs.h
2013 echo
2014 fi
2015 test "$ac_signal" != 0 &&
2016 printf "%s\n" "$as_me: caught signal $ac_signal"
2017 printf "%s\n" "$as_me: exit $exit_status"
2018 } >&5
2019 rm -f core *.core core.conftest.* &&
2020 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2021 exit $exit_status
2022 ' 0
2023 for ac_signal in 1 2 13 15; do
2024 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2025 done
2026 ac_signal=0
2027
2028 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2029 rm -f -r conftest* confdefs.h
2030
2031 printf "%s\n" "/* confdefs.h */" > confdefs.h
2032
2033 # Predefined preprocessor variables.
2034
2035 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2036
2037 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2038
2039 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2040
2041 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2042
2043 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2044
2045 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2046
2047
2048 # Let the site file select an alternate cache file if it wants to.
2049 # Prefer an explicitly selected file to automatically selected ones.
2050 if test -n "$CONFIG_SITE"; then
2051 ac_site_files="$CONFIG_SITE"
2052 elif test "x$prefix" != xNONE; then
2053 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2054 else
2055 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2056 fi
2057
2058 for ac_site_file in $ac_site_files
2059 do
2060 case $ac_site_file in #(
2061 */*) :
2062 ;; #(
2063 *) :
2064 ac_site_file=./$ac_site_file ;;
2065 esac
2066 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2068 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2069 sed 's/^/| /' "$ac_site_file" >&5
2070 . "$ac_site_file" \
2071 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2072 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2073 as_fn_error $? "failed to load site script $ac_site_file
2074 See 'config.log' for more details" "$LINENO" 5; }
2075 fi
2076 done
2077
2078 if test -r "$cache_file"; then
2079 # Some versions of bash will fail to source /dev/null (special files
2080 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2081 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2083 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2084 case $cache_file in
2085 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2086 *) . "./$cache_file";;
2087 esac
2088 fi
2089 else
2090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2091 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2092 >$cache_file
2093 fi
2094
2095 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2096 # Test code for whether the C compiler supports C89 (global declarations)
2097 ac_c_conftest_c89_globals='
2098 /* Does the compiler advertise C89 conformance?
2099 Do not test the value of __STDC__, because some compilers set it to 0
2100 while being otherwise adequately conformant. */
2101 #if !defined __STDC__
2102 # error "Compiler does not advertise C89 conformance"
2103 #endif
2104
2105 #include <stddef.h>
2106 #include <stdarg.h>
2107 struct stat;
2108 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2109 struct buf { int x; };
2110 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2111 static char *e (char **p, int i)
2112 {
2113 return p[i];
2114 }
2115 static char *f (char * (*g) (char **, int), char **p, ...)
2116 {
2117 char *s;
2118 va_list v;
2119 va_start (v,p);
2120 s = g (p, va_arg (v,int));
2121 va_end (v);
2122 return s;
2123 }
2124
2125 /* C89 style stringification. */
2126 #define noexpand_stringify(a) #a
2127 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2128
2129 /* C89 style token pasting. Exercises some of the corner cases that
2130 e.g. old MSVC gets wrong, but not very hard. */
2131 #define noexpand_concat(a,b) a##b
2132 #define expand_concat(a,b) noexpand_concat(a,b)
2133 extern int vA;
2134 extern int vbee;
2135 #define aye A
2136 #define bee B
2137 int *pvA = &expand_concat(v,aye);
2138 int *pvbee = &noexpand_concat(v,bee);
2139
2140 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2141 function prototypes and stuff, but not \xHH hex character constants.
2142 These do not provoke an error unfortunately, instead are silently treated
2143 as an "x". The following induces an error, until -std is added to get
2144 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2145 array size at least. It is necessary to write \x00 == 0 to get something
2146 that is true only with -std. */
2147 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2148
2149 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2150 inside strings and character constants. */
2151 #define FOO(x) '\''x'\''
2152 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2153
2154 int test (int i, double x);
2155 struct s1 {int (*f) (int a);};
2156 struct s2 {int (*f) (double a);};
2157 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2158 int, int);'
2159
2160 # Test code for whether the C compiler supports C89 (body of main).
2161 ac_c_conftest_c89_main='
2162 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2163 '
2164
2165 # Test code for whether the C compiler supports C99 (global declarations)
2166 ac_c_conftest_c99_globals='
2167 /* Does the compiler advertise C99 conformance? */
2168 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2169 # error "Compiler does not advertise C99 conformance"
2170 #endif
2171
2172 // See if C++-style comments work.
2173
2174 #include <stdbool.h>
2175 extern int puts (const char *);
2176 extern int printf (const char *, ...);
2177 extern int dprintf (int, const char *, ...);
2178 extern void *malloc (size_t);
2179 extern void free (void *);
2180
2181 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2182 // dprintf is used instead of fprintf to avoid needing to declare
2183 // FILE and stderr.
2184 #define debug(...) dprintf (2, __VA_ARGS__)
2185 #define showlist(...) puts (#__VA_ARGS__)
2186 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2187 static void
2188 test_varargs_macros (void)
2189 {
2190 int x = 1234;
2191 int y = 5678;
2192 debug ("Flag");
2193 debug ("X = %d\n", x);
2194 showlist (The first, second, and third items.);
2195 report (x>y, "x is %d but y is %d", x, y);
2196 }
2197
2198 // Check long long types.
2199 #define BIG64 18446744073709551615ull
2200 #define BIG32 4294967295ul
2201 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2202 #if !BIG_OK
2203 #error "your preprocessor is broken"
2204 #endif
2205 #if BIG_OK
2206 #else
2207 #error "your preprocessor is broken"
2208 #endif
2209 static long long int bignum = -9223372036854775807LL;
2210 static unsigned long long int ubignum = BIG64;
2211
2212 struct incomplete_array
2213 {
2214 int datasize;
2215 double data[];
2216 };
2217
2218 struct named_init {
2219 int number;
2220 const wchar_t *name;
2221 double average;
2222 };
2223
2224 typedef const char *ccp;
2225
2226 static inline int
2227 test_restrict (ccp restrict text)
2228 {
2229 // Iterate through items via the restricted pointer.
2230 // Also check for declarations in for loops.
2231 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2232 continue;
2233 return 0;
2234 }
2235
2236 // Check varargs and va_copy.
2237 static bool
2238 test_varargs (const char *format, ...)
2239 {
2240 va_list args;
2241 va_start (args, format);
2242 va_list args_copy;
2243 va_copy (args_copy, args);
2244
2245 const char *str = "";
2246 int number = 0;
2247 float fnumber = 0;
2248
2249 while (*format)
2250 {
2251 switch (*format++)
2252 {
2253 case '\''s'\'': // string
2254 str = va_arg (args_copy, const char *);
2255 break;
2256 case '\''d'\'': // int
2257 number = va_arg (args_copy, int);
2258 break;
2259 case '\''f'\'': // float
2260 fnumber = va_arg (args_copy, double);
2261 break;
2262 default:
2263 break;
2264 }
2265 }
2266 va_end (args_copy);
2267 va_end (args);
2268
2269 return *str && number && fnumber;
2270 }
2271 '
2272
2273 # Test code for whether the C compiler supports C99 (body of main).
2274 ac_c_conftest_c99_main='
2275 // Check bool.
2276 _Bool success = false;
2277 success |= (argc != 0);
2278
2279 // Check restrict.
2280 if (test_restrict ("String literal") == 0)
2281 success = true;
2282 char *restrict newvar = "Another string";
2283
2284 // Check varargs.
2285 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2286 test_varargs_macros ();
2287
2288 // Check flexible array members.
2289 struct incomplete_array *ia =
2290 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2291 ia->datasize = 10;
2292 for (int i = 0; i < ia->datasize; ++i)
2293 ia->data[i] = i * 1.234;
2294 // Work around memory leak warnings.
2295 free (ia);
2296
2297 // Check named initializers.
2298 struct named_init ni = {
2299 .number = 34,
2300 .name = L"Test wide string",
2301 .average = 543.34343,
2302 };
2303
2304 ni.number = 58;
2305
2306 int dynamic_array[ni.number];
2307 dynamic_array[0] = argv[0][0];
2308 dynamic_array[ni.number - 1] = 543;
2309
2310 // work around unused variable warnings
2311 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2312 || dynamic_array[ni.number - 1] != 543);
2313 '
2314
2315 # Test code for whether the C compiler supports C11 (global declarations)
2316 ac_c_conftest_c11_globals='
2317 /* Does the compiler advertise C11 conformance? */
2318 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2319 # error "Compiler does not advertise C11 conformance"
2320 #endif
2321
2322 // Check _Alignas.
2323 char _Alignas (double) aligned_as_double;
2324 char _Alignas (0) no_special_alignment;
2325 extern char aligned_as_int;
2326 char _Alignas (0) _Alignas (int) aligned_as_int;
2327
2328 // Check _Alignof.
2329 enum
2330 {
2331 int_alignment = _Alignof (int),
2332 int_array_alignment = _Alignof (int[100]),
2333 char_alignment = _Alignof (char)
2334 };
2335 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2336
2337 // Check _Noreturn.
2338 int _Noreturn does_not_return (void) { for (;;) continue; }
2339
2340 // Check _Static_assert.
2341 struct test_static_assert
2342 {
2343 int x;
2344 _Static_assert (sizeof (int) <= sizeof (long int),
2345 "_Static_assert does not work in struct");
2346 long int y;
2347 };
2348
2349 // Check UTF-8 literals.
2350 #define u8 syntax error!
2351 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2352
2353 // Check duplicate typedefs.
2354 typedef long *long_ptr;
2355 typedef long int *long_ptr;
2356 typedef long_ptr long_ptr;
2357
2358 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2359 struct anonymous
2360 {
2361 union {
2362 struct { int i; int j; };
2363 struct { int k; long int l; } w;
2364 };
2365 int m;
2366 } v1;
2367 '
2368
2369 # Test code for whether the C compiler supports C11 (body of main).
2370 ac_c_conftest_c11_main='
2371 _Static_assert ((offsetof (struct anonymous, i)
2372 == offsetof (struct anonymous, w.k)),
2373 "Anonymous union alignment botch");
2374 v1.i = 2;
2375 v1.w.k = 5;
2376 ok |= v1.i != 5;
2377 '
2378
2379 # Test code for whether the C compiler supports C11 (complete).
2380 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2381 ${ac_c_conftest_c99_globals}
2382 ${ac_c_conftest_c11_globals}
2383
2384 int
2385 main (int argc, char **argv)
2386 {
2387 int ok = 0;
2388 ${ac_c_conftest_c89_main}
2389 ${ac_c_conftest_c99_main}
2390 ${ac_c_conftest_c11_main}
2391 return ok;
2392 }
2393 "
2394
2395 # Test code for whether the C compiler supports C99 (complete).
2396 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2397 ${ac_c_conftest_c99_globals}
2398
2399 int
2400 main (int argc, char **argv)
2401 {
2402 int ok = 0;
2403 ${ac_c_conftest_c89_main}
2404 ${ac_c_conftest_c99_main}
2405 return ok;
2406 }
2407 "
2408
2409 # Test code for whether the C compiler supports C89 (complete).
2410 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2411
2412 int
2413 main (int argc, char **argv)
2414 {
2415 int ok = 0;
2416 ${ac_c_conftest_c89_main}
2417 return ok;
2418 }
2419 "
2420
2421 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2422 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2423 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2424 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2425 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2426 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2427 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2428 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2429 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2430 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2431 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2432 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
2433 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
2434
2435 # Auxiliary files required by this configure script.
2436 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2437
2438 # Locations in which to look for auxiliary files.
2439 ac_aux_dir_candidates="${srcdir}/config"
2440
2441 # Search for a directory containing all of the required auxiliary files,
2442 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2443 # If we don't find one directory that contains all the files we need,
2444 # we report the set of missing files from the *first* directory in
2445 # $ac_aux_dir_candidates and give up.
2446 ac_missing_aux_files=""
2447 ac_first_candidate=:
2448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 as_found=false
2451 for as_dir in $ac_aux_dir_candidates
2452 do
2453 IFS=$as_save_IFS
2454 case $as_dir in #(((
2455 '') as_dir=./ ;;
2456 */) ;;
2457 *) as_dir=$as_dir/ ;;
2458 esac
2459 as_found=:
2460
2461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2462 ac_aux_dir_found=yes
2463 ac_install_sh=
2464 for ac_aux in $ac_aux_files
2465 do
2466 # As a special case, if "install-sh" is required, that requirement
2467 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2468 # and $ac_install_sh is set appropriately for whichever one is found.
2469 if test x"$ac_aux" = x"install-sh"
2470 then
2471 if test -f "${as_dir}install-sh"; then
2472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2473 ac_install_sh="${as_dir}install-sh -c"
2474 elif test -f "${as_dir}install.sh"; then
2475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2476 ac_install_sh="${as_dir}install.sh -c"
2477 elif test -f "${as_dir}shtool"; then
2478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2479 ac_install_sh="${as_dir}shtool install -c"
2480 else
2481 ac_aux_dir_found=no
2482 if $ac_first_candidate; then
2483 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2484 else
2485 break
2486 fi
2487 fi
2488 else
2489 if test -f "${as_dir}${ac_aux}"; then
2490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2491 else
2492 ac_aux_dir_found=no
2493 if $ac_first_candidate; then
2494 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2495 else
2496 break
2497 fi
2498 fi
2499 fi
2500 done
2501 if test "$ac_aux_dir_found" = yes; then
2502 ac_aux_dir="$as_dir"
2503 break
2504 fi
2505 ac_first_candidate=false
2506
2507 as_found=false
2508 done
2509 IFS=$as_save_IFS
2510 if $as_found
2511 then :
2512
2513 else case e in #(
2514 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2515 esac
2516 fi
2517
2518
2519 # These three variables are undocumented and unsupported,
2520 # and are intended to be withdrawn in a future Autoconf release.
2521 # They can cause serious problems if a builder's source tree is in a directory
2522 # whose full name contains unusual characters.
2523 if test -f "${ac_aux_dir}config.guess"; then
2524 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2525 fi
2526 if test -f "${ac_aux_dir}config.sub"; then
2527 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2528 fi
2529 if test -f "$ac_aux_dir/configure"; then
2530 ac_configure="$SHELL ${ac_aux_dir}configure"
2531 fi
2532
2533 # Check that the precious variables saved in the cache have kept the same
2534 # value.
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538 eval ac_new_set=\$ac_env_${ac_var}_set
2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540 eval ac_new_val=\$ac_env_${ac_var}_value
2541 case $ac_old_set,$ac_new_set in
2542 set,)
2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2544 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2546 ,set)
2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2548 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2550 ,);;
2551 *)
2552 if test "x$ac_old_val" != "x$ac_new_val"; then
2553 # differences in whitespace do not lead to failure.
2554 ac_old_val_w=`echo x $ac_old_val`
2555 ac_new_val_w=`echo x $ac_new_val`
2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2558 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2559 ac_cache_corrupted=:
2560 else
2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2562 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2563 eval $ac_var=\$ac_old_val
2564 fi
2565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2566 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2568 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2569 fi;;
2570 esac
2571 # Pass precious variables to config.status.
2572 if test "$ac_new_set" = set; then
2573 case $ac_new_val in
2574 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575 *) ac_arg=$ac_var=$ac_new_val ;;
2576 esac
2577 case " $ac_configure_args " in
2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2579 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2580 esac
2581 fi
2582 done
2583 if $ac_cache_corrupted; then
2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2585 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2588 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2589 and start over" "$LINENO" 5
2590 fi
2591 ## -------------------- ##
2592 ## Main body of script. ##
2593 ## -------------------- ##
2594
2595 ac_ext=c
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614 # Expand $ac_aux_dir to an absolute path.
2615 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2616
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 if test -n "$ac_tool_prefix"; then
2623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2624 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 printf %s "checking for $ac_word... " >&6; }
2627 if test ${ac_cv_prog_CC+y}
2628 then :
2629 printf %s "(cached) " >&6
2630 else case e in #(
2631 e) if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637 IFS=$as_save_IFS
2638 case $as_dir in #(((
2639 '') as_dir=./ ;;
2640 */) ;;
2641 *) as_dir=$as_dir/ ;;
2642 esac
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2647 break 2
2648 fi
2649 done
2650 done
2651 IFS=$as_save_IFS
2652
2653 fi ;;
2654 esac
2655 fi
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659 printf "%s\n" "$CC" >&6; }
2660 else
2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 printf "%s\n" "no" >&6; }
2663 fi
2664
2665
2666 fi
2667 if test -z "$ac_cv_prog_CC"; then
2668 ac_ct_CC=$CC
2669 # Extract the first word of "gcc", so it can be a program name with args.
2670 set dummy gcc; ac_word=$2
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 printf %s "checking for $ac_word... " >&6; }
2673 if test ${ac_cv_prog_ac_ct_CC+y}
2674 then :
2675 printf %s "(cached) " >&6
2676 else case e in #(
2677 e) if test -n "$ac_ct_CC"; then
2678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683 IFS=$as_save_IFS
2684 case $as_dir in #(((
2685 '') as_dir=./ ;;
2686 */) ;;
2687 *) as_dir=$as_dir/ ;;
2688 esac
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_ac_ct_CC="gcc"
2692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi ;;
2700 esac
2701 fi
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2705 printf "%s\n" "$ac_ct_CC" >&6; }
2706 else
2707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 printf "%s\n" "no" >&6; }
2709 fi
2710
2711 if test "x$ac_ct_CC" = x; then
2712 CC=""
2713 else
2714 case $cross_compiling:$ac_tool_warned in
2715 yes:)
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2717 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2718 ac_tool_warned=yes ;;
2719 esac
2720 CC=$ac_ct_CC
2721 fi
2722 else
2723 CC="$ac_cv_prog_CC"
2724 fi
2725
2726 if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}cc; ac_word=$2
2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 printf %s "checking for $ac_word... " >&6; }
2732 if test ${ac_cv_prog_CC+y}
2733 then :
2734 printf %s "(cached) " >&6
2735 else case e in #(
2736 e) if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742 IFS=$as_save_IFS
2743 case $as_dir in #(((
2744 '') as_dir=./ ;;
2745 */) ;;
2746 *) as_dir=$as_dir/ ;;
2747 esac
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2750 ac_cv_prog_CC="${ac_tool_prefix}cc"
2751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi ;;
2759 esac
2760 fi
2761 CC=$ac_cv_prog_CC
2762 if test -n "$CC"; then
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764 printf "%s\n" "$CC" >&6; }
2765 else
2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 printf "%s\n" "no" >&6; }
2768 fi
2769
2770
2771 fi
2772 fi
2773 if test -z "$CC"; then
2774 # Extract the first word of "cc", so it can be a program name with args.
2775 set dummy cc; ac_word=$2
2776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 printf %s "checking for $ac_word... " >&6; }
2778 if test ${ac_cv_prog_CC+y}
2779 then :
2780 printf %s "(cached) " >&6
2781 else case e in #(
2782 e) if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 ac_prog_rejected=no
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789 IFS=$as_save_IFS
2790 case $as_dir in #(((
2791 '') as_dir=./ ;;
2792 */) ;;
2793 *) as_dir=$as_dir/ ;;
2794 esac
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2797 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2798 ac_prog_rejected=yes
2799 continue
2800 fi
2801 ac_cv_prog_CC="cc"
2802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 if test $ac_prog_rejected = yes; then
2810 # We found a bogon in the path, so make sure we never use it.
2811 set dummy $ac_cv_prog_CC
2812 shift
2813 if test $# != 0; then
2814 # We chose a different compiler from the bogus one.
2815 # However, it has the same basename, so the bogon will be chosen
2816 # first if we set CC to just the basename; use the full file name.
2817 shift
2818 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2819 fi
2820 fi
2821 fi ;;
2822 esac
2823 fi
2824 CC=$ac_cv_prog_CC
2825 if test -n "$CC"; then
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2827 printf "%s\n" "$CC" >&6; }
2828 else
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 printf "%s\n" "no" >&6; }
2831 fi
2832
2833
2834 fi
2835 if test -z "$CC"; then
2836 if test -n "$ac_tool_prefix"; then
2837 for ac_prog in cl.exe
2838 do
2839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 printf %s "checking for $ac_word... " >&6; }
2843 if test ${ac_cv_prog_CC+y}
2844 then :
2845 printf %s "(cached) " >&6
2846 else case e in #(
2847 e) if test -n "$CC"; then
2848 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853 IFS=$as_save_IFS
2854 case $as_dir in #(((
2855 '') as_dir=./ ;;
2856 */) ;;
2857 *) as_dir=$as_dir/ ;;
2858 esac
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2863 break 2
2864 fi
2865 done
2866 done
2867 IFS=$as_save_IFS
2868
2869 fi ;;
2870 esac
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 printf "%s\n" "$CC" >&6; }
2876 else
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 printf "%s\n" "no" >&6; }
2879 fi
2880
2881
2882 test -n "$CC" && break
2883 done
2884 fi
2885 if test -z "$CC"; then
2886 ac_ct_CC=$CC
2887 for ac_prog in cl.exe
2888 do
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 printf %s "checking for $ac_word... " >&6; }
2893 if test ${ac_cv_prog_ac_ct_CC+y}
2894 then :
2895 printf %s "(cached) " >&6
2896 else case e in #(
2897 e) if test -n "$ac_ct_CC"; then
2898 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903 IFS=$as_save_IFS
2904 case $as_dir in #(((
2905 '') as_dir=./ ;;
2906 */) ;;
2907 *) as_dir=$as_dir/ ;;
2908 esac
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_ac_ct_CC="$ac_prog"
2912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi ;;
2920 esac
2921 fi
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925 printf "%s\n" "$ac_ct_CC" >&6; }
2926 else
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 printf "%s\n" "no" >&6; }
2929 fi
2930
2931
2932 test -n "$ac_ct_CC" && break
2933 done
2934
2935 if test "x$ac_ct_CC" = x; then
2936 CC=""
2937 else
2938 case $cross_compiling:$ac_tool_warned in
2939 yes:)
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2941 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2942 ac_tool_warned=yes ;;
2943 esac
2944 CC=$ac_ct_CC
2945 fi
2946 fi
2947
2948 fi
2949 if test -z "$CC"; then
2950 if test -n "$ac_tool_prefix"; then
2951 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2952 set dummy ${ac_tool_prefix}clang; ac_word=$2
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 printf %s "checking for $ac_word... " >&6; }
2955 if test ${ac_cv_prog_CC+y}
2956 then :
2957 printf %s "(cached) " >&6
2958 else case e in #(
2959 e) if test -n "$CC"; then
2960 ac_cv_prog_CC="$CC" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965 IFS=$as_save_IFS
2966 case $as_dir in #(((
2967 '') as_dir=./ ;;
2968 */) ;;
2969 *) as_dir=$as_dir/ ;;
2970 esac
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_CC="${ac_tool_prefix}clang"
2974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi ;;
2982 esac
2983 fi
2984 CC=$ac_cv_prog_CC
2985 if test -n "$CC"; then
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987 printf "%s\n" "$CC" >&6; }
2988 else
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 printf "%s\n" "no" >&6; }
2991 fi
2992
2993
2994 fi
2995 if test -z "$ac_cv_prog_CC"; then
2996 ac_ct_CC=$CC
2997 # Extract the first word of "clang", so it can be a program name with args.
2998 set dummy clang; ac_word=$2
2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 printf %s "checking for $ac_word... " >&6; }
3001 if test ${ac_cv_prog_ac_ct_CC+y}
3002 then :
3003 printf %s "(cached) " >&6
3004 else case e in #(
3005 e) if test -n "$ac_ct_CC"; then
3006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011 IFS=$as_save_IFS
3012 case $as_dir in #(((
3013 '') as_dir=./ ;;
3014 */) ;;
3015 *) as_dir=$as_dir/ ;;
3016 esac
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_CC="clang"
3020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023 done
3024 done
3025 IFS=$as_save_IFS
3026
3027 fi ;;
3028 esac
3029 fi
3030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031 if test -n "$ac_ct_CC"; then
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3033 printf "%s\n" "$ac_ct_CC" >&6; }
3034 else
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 printf "%s\n" "no" >&6; }
3037 fi
3038
3039 if test "x$ac_ct_CC" = x; then
3040 CC=""
3041 else
3042 case $cross_compiling:$ac_tool_warned in
3043 yes:)
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3047 esac
3048 CC=$ac_ct_CC
3049 fi
3050 else
3051 CC="$ac_cv_prog_CC"
3052 fi
3053
3054 fi
3055
3056
3057 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3058 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3059 as_fn_error $? "no acceptable C compiler found in \$PATH
3060 See 'config.log' for more details" "$LINENO" 5; }
3061
3062 # Provide some information about the compiler.
3063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3064 set X $ac_compile
3065 ac_compiler=$2
3066 for ac_option in --version -v -V -qversion -version; do
3067 { { ac_try="$ac_compiler $ac_option >&5"
3068 case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071 esac
3072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073 printf "%s\n" "$ac_try_echo"; } >&5
3074 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3075 ac_status=$?
3076 if test -s conftest.err; then
3077 sed '10a\
3078 ... rest of stderr output deleted ...
3079 10q' conftest.err >conftest.er1
3080 cat conftest.er1 >&5
3081 fi
3082 rm -f conftest.er1 conftest.err
3083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }
3085 done
3086
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3089
3090 int
3091 main (void)
3092 {
3093
3094 ;
3095 return 0;
3096 }
3097 _ACEOF
3098 ac_clean_files_save=$ac_clean_files
3099 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3100 # Try to create an executable without -o first, disregard a.out.
3101 # It will help us diagnose broken compilers, and finding out an intuition
3102 # of exeext.
3103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3104 printf %s "checking whether the C compiler works... " >&6; }
3105 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3106
3107 # The possible output files:
3108 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3109
3110 ac_rmfiles=
3111 for ac_file in $ac_files
3112 do
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3115 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3116 esac
3117 done
3118 rm -f $ac_rmfiles
3119
3120 if { { ac_try="$ac_link_default"
3121 case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 printf "%s\n" "$ac_try_echo"; } >&5
3127 (eval "$ac_link_default") 2>&5
3128 ac_status=$?
3129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }
3131 then :
3132 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3133 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3134 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3135 # so that the user can short-circuit this test for compilers unknown to
3136 # Autoconf.
3137 for ac_file in $ac_files ''
3138 do
3139 test -f "$ac_file" || continue
3140 case $ac_file in
3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3142 ;;
3143 [ab].out )
3144 # We found the default executable, but exeext='' is most
3145 # certainly right.
3146 break;;
3147 *.* )
3148 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3149 then :; else
3150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 fi
3152 # We set ac_cv_exeext here because the later test for it is not
3153 # safe: cross compilers may not add the suffix if given an '-o'
3154 # argument, so we may need to know it at that point already.
3155 # Even if this section looks crufty: it has the advantage of
3156 # actually working.
3157 break;;
3158 * )
3159 break;;
3160 esac
3161 done
3162 test "$ac_cv_exeext" = no && ac_cv_exeext=
3163
3164 else case e in #(
3165 e) ac_file='' ;;
3166 esac
3167 fi
3168 if test -z "$ac_file"
3169 then :
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 printf "%s\n" "no" >&6; }
3172 printf "%s\n" "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3176 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3177 as_fn_error 77 "C compiler cannot create executables
3178 See 'config.log' for more details" "$LINENO" 5; }
3179 else case e in #(
3180 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181 printf "%s\n" "yes" >&6; } ;;
3182 esac
3183 fi
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3185 printf %s "checking for C compiler default output file name... " >&6; }
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3187 printf "%s\n" "$ac_file" >&6; }
3188 ac_exeext=$ac_cv_exeext
3189
3190 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3191 ac_clean_files=$ac_clean_files_save
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3193 printf %s "checking for suffix of executables... " >&6; }
3194 if { { ac_try="$ac_link"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 printf "%s\n" "$ac_try_echo"; } >&5
3201 (eval "$ac_link") 2>&5
3202 ac_status=$?
3203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }
3205 then :
3206 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3207 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3208 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3209 # 'rm'.
3210 for ac_file in conftest.exe conftest conftest.*; do
3211 test -f "$ac_file" || continue
3212 case $ac_file in
3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3214 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3215 break;;
3216 * ) break;;
3217 esac
3218 done
3219 else case e in #(
3220 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3221 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3222 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3223 See 'config.log' for more details" "$LINENO" 5; } ;;
3224 esac
3225 fi
3226 rm -f conftest conftest$ac_cv_exeext
3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3228 printf "%s\n" "$ac_cv_exeext" >&6; }
3229
3230 rm -f conftest.$ac_ext
3231 EXEEXT=$ac_cv_exeext
3232 ac_exeext=$EXEEXT
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3235 #include <stdio.h>
3236 int
3237 main (void)
3238 {
3239 FILE *f = fopen ("conftest.out", "w");
3240 if (!f)
3241 return 1;
3242 return ferror (f) || fclose (f) != 0;
3243
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 ac_clean_files="$ac_clean_files conftest.out"
3249 # Check that the compiler produces executables we can run. If not, either
3250 # the compiler is broken, or we cross compile.
3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3252 printf %s "checking whether we are cross compiling... " >&6; }
3253 if test "$cross_compiling" != yes; then
3254 { { ac_try="$ac_link"
3255 case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 printf "%s\n" "$ac_try_echo"; } >&5
3261 (eval "$ac_link") 2>&5
3262 ac_status=$?
3263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }
3265 if { ac_try='./conftest$ac_cv_exeext'
3266 { { case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 printf "%s\n" "$ac_try_echo"; } >&5
3272 (eval "$ac_try") 2>&5
3273 ac_status=$?
3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }; }; then
3276 cross_compiling=no
3277 else
3278 if test "$cross_compiling" = maybe; then
3279 cross_compiling=yes
3280 else
3281 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3282 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3283 as_fn_error 77 "cannot run C compiled programs.
3284 If you meant to cross compile, use '--host'.
3285 See 'config.log' for more details" "$LINENO" 5; }
3286 fi
3287 fi
3288 fi
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3290 printf "%s\n" "$cross_compiling" >&6; }
3291
3292 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3293 conftest.o conftest.obj conftest.out
3294 ac_clean_files=$ac_clean_files_save
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3296 printf %s "checking for suffix of object files... " >&6; }
3297 if test ${ac_cv_objext+y}
3298 then :
3299 printf %s "(cached) " >&6
3300 else case e in #(
3301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3303
3304 int
3305 main (void)
3306 {
3307
3308 ;
3309 return 0;
3310 }
3311 _ACEOF
3312 rm -f conftest.o conftest.obj
3313 if { { ac_try="$ac_compile"
3314 case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 printf "%s\n" "$ac_try_echo"; } >&5
3320 (eval "$ac_compile") 2>&5
3321 ac_status=$?
3322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }
3324 then :
3325 for ac_file in conftest.o conftest.obj conftest.*; do
3326 test -f "$ac_file" || continue;
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3330 break;;
3331 esac
3332 done
3333 else case e in #(
3334 e) printf "%s\n" "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3336
3337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3338 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3339 as_fn_error $? "cannot compute suffix of object files: cannot compile
3340 See 'config.log' for more details" "$LINENO" 5; } ;;
3341 esac
3342 fi
3343 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3344 esac
3345 fi
3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3347 printf "%s\n" "$ac_cv_objext" >&6; }
3348 OBJEXT=$ac_cv_objext
3349 ac_objext=$OBJEXT
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3351 printf %s "checking whether the compiler supports GNU C... " >&6; }
3352 if test ${ac_cv_c_compiler_gnu+y}
3353 then :
3354 printf %s "(cached) " >&6
3355 else case e in #(
3356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358
3359 int
3360 main (void)
3361 {
3362 #ifndef __GNUC__
3363 choke me
3364 #endif
3365
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 if ac_fn_c_try_compile "$LINENO"
3371 then :
3372 ac_compiler_gnu=yes
3373 else case e in #(
3374 e) ac_compiler_gnu=no ;;
3375 esac
3376 fi
3377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3378 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3379 ;;
3380 esac
3381 fi
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3383 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385
3386 if test $ac_compiler_gnu = yes; then
3387 GCC=yes
3388 else
3389 GCC=
3390 fi
3391 ac_test_CFLAGS=${CFLAGS+y}
3392 ac_save_CFLAGS=$CFLAGS
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3394 printf %s "checking whether $CC accepts -g... " >&6; }
3395 if test ${ac_cv_prog_cc_g+y}
3396 then :
3397 printf %s "(cached) " >&6
3398 else case e in #(
3399 e) ac_save_c_werror_flag=$ac_c_werror_flag
3400 ac_c_werror_flag=yes
3401 ac_cv_prog_cc_g=no
3402 CFLAGS="-g"
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405
3406 int
3407 main (void)
3408 {
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 if ac_fn_c_try_compile "$LINENO"
3415 then :
3416 ac_cv_prog_cc_g=yes
3417 else case e in #(
3418 e) CFLAGS=""
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421
3422 int
3423 main (void)
3424 {
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"
3431 then :
3432
3433 else case e in #(
3434 e) ac_c_werror_flag=$ac_save_c_werror_flag
3435 CFLAGS="-g"
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438
3439 int
3440 main (void)
3441 {
3442
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 if ac_fn_c_try_compile "$LINENO"
3448 then :
3449 ac_cv_prog_cc_g=yes
3450 fi
3451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3452 esac
3453 fi
3454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3455 esac
3456 fi
3457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3458 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3459 esac
3460 fi
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3462 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3463 if test $ac_test_CFLAGS; then
3464 CFLAGS=$ac_save_CFLAGS
3465 elif test $ac_cv_prog_cc_g = yes; then
3466 if test "$GCC" = yes; then
3467 CFLAGS="-g -O2"
3468 else
3469 CFLAGS="-g"
3470 fi
3471 else
3472 if test "$GCC" = yes; then
3473 CFLAGS="-O2"
3474 else
3475 CFLAGS=
3476 fi
3477 fi
3478 ac_prog_cc_stdc=no
3479 if test x$ac_prog_cc_stdc = xno
3480 then :
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3482 printf %s "checking for $CC option to enable C11 features... " >&6; }
3483 if test ${ac_cv_prog_cc_c11+y}
3484 then :
3485 printf %s "(cached) " >&6
3486 else case e in #(
3487 e) ac_cv_prog_cc_c11=no
3488 ac_save_CC=$CC
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3491 $ac_c_conftest_c11_program
3492 _ACEOF
3493 for ac_arg in '' -std=gnu11
3494 do
3495 CC="$ac_save_CC $ac_arg"
3496 if ac_fn_c_try_compile "$LINENO"
3497 then :
3498 ac_cv_prog_cc_c11=$ac_arg
3499 fi
3500 rm -f core conftest.err conftest.$ac_objext conftest.beam
3501 test "x$ac_cv_prog_cc_c11" != "xno" && break
3502 done
3503 rm -f conftest.$ac_ext
3504 CC=$ac_save_CC ;;
3505 esac
3506 fi
3507
3508 if test "x$ac_cv_prog_cc_c11" = xno
3509 then :
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3511 printf "%s\n" "unsupported" >&6; }
3512 else case e in #(
3513 e) if test "x$ac_cv_prog_cc_c11" = x
3514 then :
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3516 printf "%s\n" "none needed" >&6; }
3517 else case e in #(
3518 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3519 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3520 CC="$CC $ac_cv_prog_cc_c11" ;;
3521 esac
3522 fi
3523 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3524 ac_prog_cc_stdc=c11 ;;
3525 esac
3526 fi
3527 fi
3528 if test x$ac_prog_cc_stdc = xno
3529 then :
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3531 printf %s "checking for $CC option to enable C99 features... " >&6; }
3532 if test ${ac_cv_prog_cc_c99+y}
3533 then :
3534 printf %s "(cached) " >&6
3535 else case e in #(
3536 e) ac_cv_prog_cc_c99=no
3537 ac_save_CC=$CC
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3540 $ac_c_conftest_c99_program
3541 _ACEOF
3542 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3543 do
3544 CC="$ac_save_CC $ac_arg"
3545 if ac_fn_c_try_compile "$LINENO"
3546 then :
3547 ac_cv_prog_cc_c99=$ac_arg
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.beam
3550 test "x$ac_cv_prog_cc_c99" != "xno" && break
3551 done
3552 rm -f conftest.$ac_ext
3553 CC=$ac_save_CC ;;
3554 esac
3555 fi
3556
3557 if test "x$ac_cv_prog_cc_c99" = xno
3558 then :
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3560 printf "%s\n" "unsupported" >&6; }
3561 else case e in #(
3562 e) if test "x$ac_cv_prog_cc_c99" = x
3563 then :
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3565 printf "%s\n" "none needed" >&6; }
3566 else case e in #(
3567 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3568 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3569 CC="$CC $ac_cv_prog_cc_c99" ;;
3570 esac
3571 fi
3572 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3573 ac_prog_cc_stdc=c99 ;;
3574 esac
3575 fi
3576 fi
3577 if test x$ac_prog_cc_stdc = xno
3578 then :
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3580 printf %s "checking for $CC option to enable C89 features... " >&6; }
3581 if test ${ac_cv_prog_cc_c89+y}
3582 then :
3583 printf %s "(cached) " >&6
3584 else case e in #(
3585 e) ac_cv_prog_cc_c89=no
3586 ac_save_CC=$CC
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589 $ac_c_conftest_c89_program
3590 _ACEOF
3591 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3592 do
3593 CC="$ac_save_CC $ac_arg"
3594 if ac_fn_c_try_compile "$LINENO"
3595 then :
3596 ac_cv_prog_cc_c89=$ac_arg
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.beam
3599 test "x$ac_cv_prog_cc_c89" != "xno" && break
3600 done
3601 rm -f conftest.$ac_ext
3602 CC=$ac_save_CC ;;
3603 esac
3604 fi
3605
3606 if test "x$ac_cv_prog_cc_c89" = xno
3607 then :
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3609 printf "%s\n" "unsupported" >&6; }
3610 else case e in #(
3611 e) if test "x$ac_cv_prog_cc_c89" = x
3612 then :
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3614 printf "%s\n" "none needed" >&6; }
3615 else case e in #(
3616 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3617 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3618 CC="$CC $ac_cv_prog_cc_c89" ;;
3619 esac
3620 fi
3621 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3622 ac_prog_cc_stdc=c89 ;;
3623 esac
3624 fi
3625 fi
3626
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3640 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3641 if test ${am_cv_prog_cc_c_o+y}
3642 then :
3643 printf %s "(cached) " >&6
3644 else case e in #(
3645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647
3648 int
3649 main (void)
3650 {
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 # Make sure it works both with $CC and with simple cc.
3657 # Following AC_PROG_CC_C_O, we do the test twice because some
3658 # compilers refuse to overwrite an existing .o file with -o,
3659 # though they will create one.
3660 am_cv_prog_cc_c_o=yes
3661 for am_i in 1 2; do
3662 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3663 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } \
3667 && test -f conftest2.$ac_objext; then
3668 : OK
3669 else
3670 am_cv_prog_cc_c_o=no
3671 break
3672 fi
3673 done
3674 # aligned with autoconf, so not including core; see bug#72225.
3675 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
3676 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
3677 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
3678 unset am_i ;;
3679 esac
3680 fi
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3682 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3683 if test "$am_cv_prog_cc_c_o" != yes; then
3684 # Losing compiler, so override with the script.
3685 # FIXME: It is wrong to rewrite CC.
3686 # But if we don't then we get into trouble of one sort or another.
3687 # A longer-term fix would be to have automake use am__CC in this case,
3688 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3689 CC="$am_aux_dir/compile $CC"
3690 fi
3691 ac_ext=c
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696
3697
3698
3699 ac_header= ac_cache=
3700 for ac_item in $ac_header_c_list
3701 do
3702 if test $ac_cache; then
3703 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3704 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3705 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3706 fi
3707 ac_header= ac_cache=
3708 elif test $ac_header; then
3709 ac_cache=$ac_item
3710 else
3711 ac_header=$ac_item
3712 fi
3713 done
3714
3715
3716
3717
3718
3719
3720
3721
3722 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3723 then :
3724
3725 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3726
3727 fi
3728
3729
3730
3731
3732
3733
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3735 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3736 if test ${ac_cv_safe_to_define___extensions__+y}
3737 then :
3738 printf %s "(cached) " >&6
3739 else case e in #(
3740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742
3743 # define __EXTENSIONS__ 1
3744 $ac_includes_default
3745 int
3746 main (void)
3747 {
3748
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"
3754 then :
3755 ac_cv_safe_to_define___extensions__=yes
3756 else case e in #(
3757 e) ac_cv_safe_to_define___extensions__=no ;;
3758 esac
3759 fi
3760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3761 esac
3762 fi
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3764 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3765
3766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3767 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3768 if test ${ac_cv_should_define__xopen_source+y}
3769 then :
3770 printf %s "(cached) " >&6
3771 else case e in #(
3772 e) ac_cv_should_define__xopen_source=no
3773 if test $ac_cv_header_wchar_h = yes
3774 then :
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777
3778 #include <wchar.h>
3779 mbstate_t x;
3780 int
3781 main (void)
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"
3789 then :
3790
3791 else case e in #(
3792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794
3795 #define _XOPEN_SOURCE 500
3796 #include <wchar.h>
3797 mbstate_t x;
3798 int
3799 main (void)
3800 {
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"
3807 then :
3808 ac_cv_should_define__xopen_source=yes
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3811 esac
3812 fi
3813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3814 fi ;;
3815 esac
3816 fi
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3818 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3819
3820 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3821
3822 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3823
3824 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3825
3826 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3827
3828 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3829
3830 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3831
3832 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3833
3834 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3835
3836 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3837
3838 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3839
3840 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3841
3842 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3843
3844 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3845
3846 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3847
3848 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3849
3850 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3851
3852 if test $ac_cv_header_minix_config_h = yes
3853 then :
3854 MINIX=yes
3855 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3856
3857 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3858
3859 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3860
3861 else case e in #(
3862 e) MINIX= ;;
3863 esac
3864 fi
3865 if test $ac_cv_safe_to_define___extensions__ = yes
3866 then :
3867 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3868
3869 fi
3870 if test $ac_cv_should_define__xopen_source = yes
3871 then :
3872 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3873
3874 fi
3875
3876 ac_config_headers="$ac_config_headers config.h"
3877
3878 am__api_version='1.18'
3879
3880
3881 # Find a good install program. We prefer a C program (faster),
3882 # so one script is as good as another. But avoid the broken or
3883 # incompatible versions:
3884 # SysV /etc/install, /usr/sbin/install
3885 # SunOS /usr/etc/install
3886 # IRIX /sbin/install
3887 # AIX /bin/install
3888 # AmigaOS /C/install, which installs bootblocks on floppy discs
3889 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3890 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3891 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3892 # OS/2's system install, which has a completely different semantic
3893 # ./install, which can be erroneously created by make from ./install.sh.
3894 # Reject install programs that cannot install multiple files.
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3896 printf %s "checking for a BSD-compatible install... " >&6; }
3897 if test -z "$INSTALL"; then
3898 if test ${ac_cv_path_install+y}
3899 then :
3900 printf %s "(cached) " >&6
3901 else case e in #(
3902 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905 IFS=$as_save_IFS
3906 case $as_dir in #(((
3907 '') as_dir=./ ;;
3908 */) ;;
3909 *) as_dir=$as_dir/ ;;
3910 esac
3911 # Account for fact that we put trailing slashes in our PATH walk.
3912 case $as_dir in #((
3913 ./ | /[cC]/* | \
3914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3916 /usr/ucb/* ) ;;
3917 *)
3918 # OSF1 and SCO ODT 3.0 have their own names for install.
3919 # Don't use installbsd from OSF since it installs stuff as root
3920 # by default.
3921 for ac_prog in ginstall scoinst install; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3924 if test $ac_prog = install &&
3925 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3926 # AIX install. It has an incompatible calling convention.
3927 :
3928 elif test $ac_prog = install &&
3929 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930 # program-specific install script used by HP pwplus--don't use.
3931 :
3932 else
3933 rm -rf conftest.one conftest.two conftest.dir
3934 echo one > conftest.one
3935 echo two > conftest.two
3936 mkdir conftest.dir
3937 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3938 test -s conftest.one && test -s conftest.two &&
3939 test -s conftest.dir/conftest.one &&
3940 test -s conftest.dir/conftest.two
3941 then
3942 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3943 break 3
3944 fi
3945 fi
3946 fi
3947 done
3948 done
3949 ;;
3950 esac
3951
3952 done
3953 IFS=$as_save_IFS
3954
3955 rm -rf conftest.one conftest.two conftest.dir
3956 ;;
3957 esac
3958 fi
3959 if test ${ac_cv_path_install+y}; then
3960 INSTALL=$ac_cv_path_install
3961 else
3962 # As a last resort, use the slow shell script. Don't cache a
3963 # value for INSTALL within a source directory, because that will
3964 # break other packages using the cache if that directory is
3965 # removed, or if the value is a relative name.
3966 INSTALL=$ac_install_sh
3967 fi
3968 fi
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3970 printf "%s\n" "$INSTALL" >&6; }
3971
3972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3973 # It thinks the first close brace ends the variable substitution.
3974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3975
3976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3977
3978 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3979
3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3981 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3982 if test ${am_cv_sleep_fractional_seconds+y}
3983 then :
3984 printf %s "(cached) " >&6
3985 else case e in #(
3986 e) if sleep 0.001 2>/dev/null
3987 then :
3988 am_cv_sleep_fractional_seconds=yes
3989 else case e in #(
3990 e) am_cv_sleep_fractional_seconds=no ;;
3991 esac
3992 fi
3993 ;;
3994 esac
3995 fi
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3997 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3998
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4000 printf %s "checking filesystem timestamp resolution... " >&6; }
4001 if test ${am_cv_filesystem_timestamp_resolution+y}
4002 then :
4003 printf %s "(cached) " >&6
4004 else case e in #(
4005 e) # Default to the worst case.
4006 am_cv_filesystem_timestamp_resolution=2
4007
4008 # Only try to go finer than 1 sec if sleep can do it.
4009 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4010 # - 1 sec is not much of a win compared to 2 sec, and
4011 # - it takes 2 seconds to perform the test whether 1 sec works.
4012 #
4013 # Instead, just use the default 2s on platforms that have 1s resolution,
4014 # accept the extra 1s delay when using $sleep in the Automake tests, in
4015 # exchange for not incurring the 2s delay for running the test for all
4016 # packages.
4017 #
4018 am_try_resolutions=
4019 if test "$am_cv_sleep_fractional_seconds" = yes; then
4020 # Even a millisecond often causes a bunch of false positives,
4021 # so just try a hundredth of a second. The time saved between .001 and
4022 # .01 is not terribly consequential.
4023 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4024 fi
4025
4026 # In order to catch current-generation FAT out, we must *modify* files
4027 # that already exist; the *creation* timestamp is finer. Use names
4028 # that make ls -t sort them differently when they have equal
4029 # timestamps than when they have distinct timestamps, keeping
4030 # in mind that ls -t prints the *newest* file first.
4031 rm -f conftest.ts?
4032 : > conftest.ts1
4033 : > conftest.ts2
4034 : > conftest.ts3
4035
4036 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4037 # clobber the current shell's arguments. (Outer-level square brackets
4038 # are removed by m4; they're present so that m4 does not expand
4039 # <dollar><star>; be careful, easy to get confused.)
4040 if (
4041 set X `ls -t conftest.ts[12]` &&
4042 {
4043 test "$*" != "X conftest.ts1 conftest.ts2" ||
4044 test "$*" != "X conftest.ts2 conftest.ts1";
4045 }
4046 ); then :; else
4047 # If neither matched, then we have a broken ls. This can happen
4048 # if, for instance, CONFIG_SHELL is bash and it inherits a
4049 # broken ls alias from the environment. This has actually
4050 # happened. Such a system could not be considered "sane".
4051 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4053 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4054 as_fn_error $? "ls -t produces unexpected output.
4055 Make sure there is not a broken ls alias in your environment.
4056 See 'config.log' for more details" "$LINENO" 5; }
4057 fi
4058
4059 for am_try_res in $am_try_resolutions; do
4060 # Any one fine-grained sleep might happen to cross the boundary
4061 # between two values of a coarser actual resolution, but if we do
4062 # two fine-grained sleeps in a row, at least one of them will fall
4063 # entirely within a coarse interval.
4064 echo alpha > conftest.ts1
4065 sleep $am_try_res
4066 echo beta > conftest.ts2
4067 sleep $am_try_res
4068 echo gamma > conftest.ts3
4069
4070 # We assume that 'ls -t' will make use of high-resolution
4071 # timestamps if the operating system supports them at all.
4072 if (set X `ls -t conftest.ts?` &&
4073 test "$2" = conftest.ts3 &&
4074 test "$3" = conftest.ts2 &&
4075 test "$4" = conftest.ts1); then
4076 #
4077 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4078 # because we don't need to test make.
4079 make_ok=true
4080 if test $am_try_res != 1; then
4081 # But if we've succeeded so far with a subsecond resolution, we
4082 # have one more thing to check: make. It can happen that
4083 # everything else supports the subsecond mtimes, but make doesn't;
4084 # notably on macOS, which ships make 3.81 from 2006 (the last one
4085 # released under GPLv2). https://bugs.gnu.org/68808
4086 #
4087 # We test $MAKE if it is defined in the environment, else "make".
4088 # It might get overridden later, but our hope is that in practice
4089 # it does not matter: it is the system "make" which is (by far)
4090 # the most likely to be broken, whereas if the user overrides it,
4091 # probably they did so with a better, or at least not worse, make.
4092 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4093 #
4094 # Create a Makefile (real tab character here):
4095 rm -f conftest.mk
4096 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4097 echo ' touch conftest.ts2' >>conftest.mk
4098 #
4099 # Now, running
4100 # touch conftest.ts1; touch conftest.ts2; make
4101 # should touch ts1 because ts2 is newer. This could happen by luck,
4102 # but most often, it will fail if make's support is insufficient. So
4103 # test for several consecutive successes.
4104 #
4105 # (We reuse conftest.ts[12] because we still want to modify existing
4106 # files, not create new ones, per above.)
4107 n=0
4108 make=${MAKE-make}
4109 until test $n -eq 3; do
4110 echo one > conftest.ts1
4111 sleep $am_try_res
4112 echo two > conftest.ts2 # ts2 should now be newer than ts1
4113 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4114 make_ok=false
4115 break # out of $n loop
4116 fi
4117 n=`expr $n + 1`
4118 done
4119 fi
4120 #
4121 if $make_ok; then
4122 # Everything we know to check worked out, so call this resolution good.
4123 am_cv_filesystem_timestamp_resolution=$am_try_res
4124 break # out of $am_try_res loop
4125 fi
4126 # Otherwise, we'll go on to check the next resolution.
4127 fi
4128 done
4129 rm -f conftest.ts?
4130 # (end _am_filesystem_timestamp_resolution)
4131 ;;
4132 esac
4133 fi
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4135 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4136
4137 # This check should not be cached, as it may vary across builds of
4138 # different projects.
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4140 printf %s "checking whether build environment is sane... " >&6; }
4141 # Reject unsafe characters in $srcdir or the absolute working directory
4142 # name. Accept space and tab only in the latter.
4143 am_lf='
4144 '
4145 case `pwd` in
4146 *[\\\"\#\$\&\'\`$am_lf]*)
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 printf "%s\n" "no" >&6; }
4149 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4150 esac
4151 case $srcdir in
4152 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 printf "%s\n" "no" >&6; }
4155 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4156 esac
4157
4158 # Do 'set' in a subshell so we don't clobber the current shell's
4159 # arguments. Must try -L first in case configure is actually a
4160 # symlink; some systems play weird games with the mod time of symlinks
4161 # (eg FreeBSD returns the mod time of the symlink's containing
4162 # directory).
4163 am_build_env_is_sane=no
4164 am_has_slept=no
4165 rm -f conftest.file
4166 for am_try in 1 2; do
4167 echo "timestamp, slept: $am_has_slept" > conftest.file
4168 if (
4169 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4170 if test "$*" = "X"; then
4171 # -L didn't work.
4172 set X `ls -t "$srcdir/configure" conftest.file`
4173 fi
4174 test "$2" = conftest.file
4175 ); then
4176 am_build_env_is_sane=yes
4177 break
4178 fi
4179 # Just in case.
4180 sleep "$am_cv_filesystem_timestamp_resolution"
4181 am_has_slept=yes
4182 done
4183
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4185 printf "%s\n" "$am_build_env_is_sane" >&6; }
4186 if test "$am_build_env_is_sane" = no; then
4187 as_fn_error $? "newly created file is older than distributed files!
4188 Check your system clock" "$LINENO" 5
4189 fi
4190
4191 # If we didn't sleep, we still need to ensure time stamps of config.status and
4192 # generated files are strictly newer.
4193 am_sleep_pid=
4194 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4195 then :
4196
4197 else case e in #(
4198 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4199 am_sleep_pid=$!
4200 ;;
4201 esac
4202 fi
4203
4204 rm -f conftest.file
4205
4206 test "$program_prefix" != NONE &&
4207 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4208 # Use a double $ so make ignores it.
4209 test "$program_suffix" != NONE &&
4210 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4211 # Double any \ or $.
4212 # By default was 's,x,x', remove it if useless.
4213 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4214 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4215
4216
4217 if test x"${MISSING+set}" != xset; then
4218 MISSING="\${SHELL} '$am_aux_dir/missing'"
4219 fi
4220 # Use eval to expand $SHELL
4221 if eval "$MISSING --is-lightweight"; then
4222 am_missing_run="$MISSING "
4223 else
4224 am_missing_run=
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4226 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4227 fi
4228
4229 if test x"${install_sh+set}" != xset; then
4230 case $am_aux_dir in
4231 *\ * | *\ *)
4232 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4233 *)
4234 install_sh="\${SHELL} $am_aux_dir/install-sh"
4235 esac
4236 fi
4237
4238 # Installed binaries are usually stripped using 'strip' when the user
4239 # run "make install-strip". However 'strip' might not be the right
4240 # tool to use in cross-compilation environments, therefore Automake
4241 # will honor the 'STRIP' environment variable to overrule this program.
4242 if test "$cross_compiling" != no; then
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4245 set dummy ${ac_tool_prefix}strip; ac_word=$2
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 printf %s "checking for $ac_word... " >&6; }
4248 if test ${ac_cv_prog_STRIP+y}
4249 then :
4250 printf %s "(cached) " >&6
4251 else case e in #(
4252 e) if test -n "$STRIP"; then
4253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4257 do
4258 IFS=$as_save_IFS
4259 case $as_dir in #(((
4260 '') as_dir=./ ;;
4261 */) ;;
4262 *) as_dir=$as_dir/ ;;
4263 esac
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4266 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4268 break 2
4269 fi
4270 done
4271 done
4272 IFS=$as_save_IFS
4273
4274 fi ;;
4275 esac
4276 fi
4277 STRIP=$ac_cv_prog_STRIP
4278 if test -n "$STRIP"; then
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4280 printf "%s\n" "$STRIP" >&6; }
4281 else
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 printf "%s\n" "no" >&6; }
4284 fi
4285
4286
4287 fi
4288 if test -z "$ac_cv_prog_STRIP"; then
4289 ac_ct_STRIP=$STRIP
4290 # Extract the first word of "strip", so it can be a program name with args.
4291 set dummy strip; ac_word=$2
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293 printf %s "checking for $ac_word... " >&6; }
4294 if test ${ac_cv_prog_ac_ct_STRIP+y}
4295 then :
4296 printf %s "(cached) " >&6
4297 else case e in #(
4298 e) if test -n "$ac_ct_STRIP"; then
4299 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4303 do
4304 IFS=$as_save_IFS
4305 case $as_dir in #(((
4306 '') as_dir=./ ;;
4307 */) ;;
4308 *) as_dir=$as_dir/ ;;
4309 esac
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_ac_ct_STRIP="strip"
4313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 fi ;;
4321 esac
4322 fi
4323 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4324 if test -n "$ac_ct_STRIP"; then
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4326 printf "%s\n" "$ac_ct_STRIP" >&6; }
4327 else
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 printf "%s\n" "no" >&6; }
4330 fi
4331
4332 if test "x$ac_ct_STRIP" = x; then
4333 STRIP=":"
4334 else
4335 case $cross_compiling:$ac_tool_warned in
4336 yes:)
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4338 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4339 ac_tool_warned=yes ;;
4340 esac
4341 STRIP=$ac_ct_STRIP
4342 fi
4343 else
4344 STRIP="$ac_cv_prog_STRIP"
4345 fi
4346
4347 fi
4348 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4349
4350
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4352 printf %s "checking for a race-free mkdir -p... " >&6; }
4353 if test -z "$MKDIR_P"; then
4354 if test ${ac_cv_path_mkdir+y}
4355 then :
4356 printf %s "(cached) " >&6
4357 else case e in #(
4358 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4360 do
4361 IFS=$as_save_IFS
4362 case $as_dir in #(((
4363 '') as_dir=./ ;;
4364 */) ;;
4365 *) as_dir=$as_dir/ ;;
4366 esac
4367 for ac_prog in mkdir gmkdir; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4370 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4371 'mkdir ('*'coreutils) '* | \
4372 *'BusyBox '* | \
4373 'mkdir (fileutils) '4.1*)
4374 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4375 break 3;;
4376 esac
4377 done
4378 done
4379 done
4380 IFS=$as_save_IFS
4381 ;;
4382 esac
4383 fi
4384
4385 test -d ./--version && rmdir ./--version
4386 if test ${ac_cv_path_mkdir+y}; then
4387 MKDIR_P="$ac_cv_path_mkdir -p"
4388 else
4389 # As a last resort, use plain mkdir -p,
4390 # in the hope it doesn't have the bugs of ancient mkdir.
4391 MKDIR_P='mkdir -p'
4392 fi
4393 fi
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4395 printf "%s\n" "$MKDIR_P" >&6; }
4396
4397 for ac_prog in gawk mawk nawk awk
4398 do
4399 # Extract the first word of "$ac_prog", so it can be a program name with args.
4400 set dummy $ac_prog; ac_word=$2
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 printf %s "checking for $ac_word... " >&6; }
4403 if test ${ac_cv_prog_AWK+y}
4404 then :
4405 printf %s "(cached) " >&6
4406 else case e in #(
4407 e) if test -n "$AWK"; then
4408 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4412 do
4413 IFS=$as_save_IFS
4414 case $as_dir in #(((
4415 '') as_dir=./ ;;
4416 */) ;;
4417 *) as_dir=$as_dir/ ;;
4418 esac
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4421 ac_cv_prog_AWK="$ac_prog"
4422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425 done
4426 done
4427 IFS=$as_save_IFS
4428
4429 fi ;;
4430 esac
4431 fi
4432 AWK=$ac_cv_prog_AWK
4433 if test -n "$AWK"; then
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4435 printf "%s\n" "$AWK" >&6; }
4436 else
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 printf "%s\n" "no" >&6; }
4439 fi
4440
4441
4442 test -n "$AWK" && break
4443 done
4444
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4446 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4447 set x ${MAKE-make}
4448 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4449 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4450 then :
4451 printf %s "(cached) " >&6
4452 else case e in #(
4453 e) cat >conftest.make <<\_ACEOF
4454 SHELL = /bin/sh
4455 all:
4456 @echo '@@@%%%=$(MAKE)=@@@%%%'
4457 _ACEOF
4458 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4459 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4460 *@@@%%%=?*=@@@%%%*)
4461 eval ac_cv_prog_make_${ac_make}_set=yes;;
4462 *)
4463 eval ac_cv_prog_make_${ac_make}_set=no;;
4464 esac
4465 rm -f conftest.make ;;
4466 esac
4467 fi
4468 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4470 printf "%s\n" "yes" >&6; }
4471 SET_MAKE=
4472 else
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 printf "%s\n" "no" >&6; }
4475 SET_MAKE="MAKE=${MAKE-make}"
4476 fi
4477
4478 rm -rf .tst 2>/dev/null
4479 mkdir .tst 2>/dev/null
4480 if test -d .tst; then
4481 am__leading_dot=.
4482 else
4483 am__leading_dot=_
4484 fi
4485 rmdir .tst 2>/dev/null
4486
4487 AM_DEFAULT_VERBOSITY=1
4488 # Check whether --enable-silent-rules was given.
4489 if test ${enable_silent_rules+y}
4490 then :
4491 enableval=$enable_silent_rules;
4492 fi
4493
4494 am_make=${MAKE-make}
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4496 printf %s "checking whether $am_make supports nested variables... " >&6; }
4497 if test ${am_cv_make_support_nested_variables+y}
4498 then :
4499 printf %s "(cached) " >&6
4500 else case e in #(
4501 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4502 BAR0=false
4503 BAR1=true
4504 V=1
4505 am__doit:
4506 @$(TRUE)
4507 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4508 am_cv_make_support_nested_variables=yes
4509 else
4510 am_cv_make_support_nested_variables=no
4511 fi ;;
4512 esac
4513 fi
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4515 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4516 AM_BACKSLASH='\'
4517
4518 am__rm_f_notfound=
4519 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4520 then :
4521
4522 else case e in #(
4523 e) am__rm_f_notfound='""' ;;
4524 esac
4525 fi
4526
4527
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4529 printf %s "checking xargs -n works... " >&6; }
4530 if test ${am_cv_xargs_n_works+y}
4531 then :
4532 printf %s "(cached) " >&6
4533 else case e in #(
4534 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4535 3"
4536 then :
4537 am_cv_xargs_n_works=yes
4538 else case e in #(
4539 e) am_cv_xargs_n_works=no ;;
4540 esac
4541 fi ;;
4542 esac
4543 fi
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4545 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4546 if test "$am_cv_xargs_n_works" = yes
4547 then :
4548 am__xargs_n='xargs -n'
4549 else case e in #(
4550 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4551 ;;
4552 esac
4553 fi
4554
4555 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4556 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4557 # is not polluted with repeated "-I."
4558 am__isrc=' -I$(srcdir)'
4559 # test to see if srcdir already configured
4560 if test -f $srcdir/config.status; then
4561 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4562 fi
4563 fi
4564
4565 # test whether we have cygpath
4566 if test -z "$CYGPATH_W"; then
4567 if (cygpath --version) >/dev/null 2>/dev/null; then
4568 CYGPATH_W='cygpath -w'
4569 else
4570 CYGPATH_W=echo
4571 fi
4572 fi
4573
4574
4575 # Define the identity of the package.
4576 PACKAGE='haveged'
4577 VERSION='1.9.26'
4578
4579
4580 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4581
4582
4583 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4584
4585 # Some tools Automake needs.
4586
4587 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4588
4589
4590 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4591
4592
4593 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4594
4595
4596 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4597
4598
4599 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4600
4601 # For better backward compatibility. To be removed once Automake 1.9.x
4602 # dies out for good. For more background, see:
4603 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4604 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4605 mkdir_p='$(MKDIR_P)'
4606
4607 # We need awk for the "check" target (and possibly the TAP driver). The
4608 # system "awk" is bad on some platforms.
4609 # Always define AMTAR for backward compatibility. Yes, it's still used
4610 # in the wild :-( We should find a proper way to deprecate it ...
4611 AMTAR='$${TAR-tar}'
4612
4613
4614 # We'll loop over all known methods to create a tar archive until one works.
4615 _am_tools='gnutar plaintar pax cpio none'
4616
4617 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4618 # There is notably a 21 bits limit for the UID and the GID. In fact,
4619 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4620 # and bug#13588).
4621 am_max_uid=2097151 # 2^21 - 1
4622 am_max_gid=$am_max_uid
4623 # The $UID and $GID variables are not portable, so we need to resort
4624 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4625 # below are definitely unexpected, so allow the users to see them
4626 # (that is, avoid stderr redirection).
4627 am_uid=`id -u || echo unknown`
4628 am_gid=`id -g || echo unknown`
4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4630 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4631 if test x$am_uid = xunknown; then
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4633 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4634 elif test $am_uid -le $am_max_uid; then
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4636 printf "%s\n" "yes" >&6; }
4637 else
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 printf "%s\n" "no" >&6; }
4640 _am_tools=none
4641 fi
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4643 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4644 if test x$gm_gid = xunknown; then
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4646 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4647 elif test $am_gid -le $am_max_gid; then
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4649 printf "%s\n" "yes" >&6; }
4650 else
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 printf "%s\n" "no" >&6; }
4653 _am_tools=none
4654 fi
4655
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4657 printf %s "checking how to create a ustar tar archive... " >&6; }
4658
4659 # Go ahead even if we have the value already cached. We do so because we
4660 # need to set the values for the 'am__tar' and 'am__untar' variables.
4661 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4662
4663 for _am_tool in $_am_tools; do
4664 case $_am_tool in
4665 gnutar)
4666 for _am_tar in tar gnutar gtar; do
4667 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4668 ($_am_tar --version) >&5 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } && break
4672 done
4673 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4674 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4675 am__untar="$_am_tar -xf -"
4676 ;;
4677 plaintar)
4678 # Must skip GNU tar: if it does not support --format= it doesn't create
4679 # ustar tarball either.
4680 (tar --version) >/dev/null 2>&1 && continue
4681 am__tar='tar chf - "$$tardir"'
4682 am__tar_='tar chf - "$tardir"'
4683 am__untar='tar xf -'
4684 ;;
4685 pax)
4686 am__tar='pax -L -x ustar -w "$$tardir"'
4687 am__tar_='pax -L -x ustar -w "$tardir"'
4688 am__untar='pax -r'
4689 ;;
4690 cpio)
4691 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4692 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4693 am__untar='cpio -i -H ustar -d'
4694 ;;
4695 none)
4696 am__tar=false
4697 am__tar_=false
4698 am__untar=false
4699 ;;
4700 esac
4701
4702 # If the value was cached, stop now. We just wanted to have am__tar
4703 # and am__untar set.
4704 test -n "${am_cv_prog_tar_ustar}" && break
4705
4706 # tar/untar a dummy directory, and stop if the command works.
4707 rm -rf conftest.dir
4708 mkdir conftest.dir
4709 echo GrepMe > conftest.dir/file
4710 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4711 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }
4715 rm -rf conftest.dir
4716 if test -s conftest.tar; then
4717 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4718 ($am__untar <conftest.tar) >&5 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }
4722 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4723 (cat conftest.dir/file) >&5 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }
4727 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4728 fi
4729 done
4730 rm -rf conftest.dir
4731
4732 if test ${am_cv_prog_tar_ustar+y}
4733 then :
4734 printf %s "(cached) " >&6
4735 else case e in #(
4736 e) am_cv_prog_tar_ustar=$_am_tool ;;
4737 esac
4738 fi
4739
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4741 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4742
4743
4744
4745
4746
4747 # Variables for tags utilities; see am/tags.am
4748 if test -z "$CTAGS"; then
4749 CTAGS=ctags
4750 fi
4751
4752 if test -z "$ETAGS"; then
4753 ETAGS=etags
4754 fi
4755
4756 if test -z "$CSCOPE"; then
4757 CSCOPE=cscope
4758 fi
4759
4760
4761
4762
4763
4764
4765
4766
4767 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4768 if test "x$ac_cv_type_uint32_t" = xyes
4769 then :
4770
4771 printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
4772
4773
4774 fi
4775 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4776 if test "x$ac_cv_type_uint8_t" = xyes
4777 then :
4778
4779 printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
4780
4781
4782 fi
4783
4784 HA_LDFLAGS="-pthread"
4785
4786 ##libtool_start##
4787 case `pwd` in
4788 *\ * | *\ *)
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4790 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4791 esac
4792
4793
4794
4795 macro_version='2.5.4'
4796 macro_revision='2.5.4'
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811 ltmain=$ac_aux_dir/ltmain.sh
4812
4813
4814
4815 # Make sure we can run config.sub.
4816 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4817 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4818
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4820 printf %s "checking build system type... " >&6; }
4821 if test ${ac_cv_build+y}
4822 then :
4823 printf %s "(cached) " >&6
4824 else case e in #(
4825 e) ac_build_alias=$build_alias
4826 test "x$ac_build_alias" = x &&
4827 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4828 test "x$ac_build_alias" = x &&
4829 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4830 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4831 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4832 ;;
4833 esac
4834 fi
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4836 printf "%s\n" "$ac_cv_build" >&6; }
4837 case $ac_cv_build in
4838 *-*-*) ;;
4839 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4840 esac
4841 build=$ac_cv_build
4842 ac_save_IFS=$IFS; IFS='-'
4843 set x $ac_cv_build
4844 shift
4845 build_cpu=$1
4846 build_vendor=$2
4847 shift; shift
4848 # Remember, the first character of IFS is used to create $*,
4849 # except with old shells:
4850 build_os=$*
4851 IFS=$ac_save_IFS
4852 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4853
4854
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4856 printf %s "checking host system type... " >&6; }
4857 if test ${ac_cv_host+y}
4858 then :
4859 printf %s "(cached) " >&6
4860 else case e in #(
4861 e) if test "x$host_alias" = x; then
4862 ac_cv_host=$ac_cv_build
4863 else
4864 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4865 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4866 fi
4867 ;;
4868 esac
4869 fi
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4871 printf "%s\n" "$ac_cv_host" >&6; }
4872 case $ac_cv_host in
4873 *-*-*) ;;
4874 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4875 esac
4876 host=$ac_cv_host
4877 ac_save_IFS=$IFS; IFS='-'
4878 set x $ac_cv_host
4879 shift
4880 host_cpu=$1
4881 host_vendor=$2
4882 shift; shift
4883 # Remember, the first character of IFS is used to create $*,
4884 # except with old shells:
4885 host_os=$*
4886 IFS=$ac_save_IFS
4887 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4888
4889
4890 # Backslashify metacharacters that are still active within
4891 # double-quoted strings.
4892 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4893
4894 # Same as above, but do not quote variable references.
4895 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4896
4897 # Sed substitution to delay expansion of an escaped shell variable in a
4898 # double_quote_subst'ed string.
4899 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4900
4901 # Sed substitution to delay expansion of an escaped single quote.
4902 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4903
4904 # Sed substitution to avoid accidental globbing in evaled expressions
4905 no_glob_subst='s/\*/\\\*/g'
4906
4907 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4908 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4909 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4910
4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4912 printf %s "checking how to print strings... " >&6; }
4913 # Test print first, because it will be a builtin if present.
4914 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4915 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4916 ECHO='print -r --'
4917 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4918 ECHO='printf %s\n'
4919 else
4920 # Use this function as a fallback that always works.
4921 func_fallback_echo ()
4922 {
4923 eval 'cat <<_LTECHO_EOF
4924 $1
4925 _LTECHO_EOF'
4926 }
4927 ECHO='func_fallback_echo'
4928 fi
4929
4930 # func_echo_all arg...
4931 # Invoke $ECHO with all args, space-separated.
4932 func_echo_all ()
4933 {
4934 $ECHO ""
4935 }
4936
4937 case $ECHO in
4938 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4939 printf "%s\n" "printf" >&6; } ;;
4940 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4941 printf "%s\n" "print -r" >&6; } ;;
4942 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4943 printf "%s\n" "cat" >&6; } ;;
4944 esac
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4960 printf %s "checking for a sed that does not truncate output... " >&6; }
4961 if test ${ac_cv_path_SED+y}
4962 then :
4963 printf %s "(cached) " >&6
4964 else case e in #(
4965 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4966 for ac_i in 1 2 3 4 5 6 7; do
4967 ac_script="$ac_script$as_nl$ac_script"
4968 done
4969 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4970 { ac_script=; unset ac_script;}
4971 if test -z "$SED"; then
4972 ac_path_SED_found=false
4973 # Loop through the user's path and test for each of PROGNAME-LIST
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977 IFS=$as_save_IFS
4978 case $as_dir in #(((
4979 '') as_dir=./ ;;
4980 */) ;;
4981 *) as_dir=$as_dir/ ;;
4982 esac
4983 for ac_prog in sed gsed
4984 do
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4987 as_fn_executable_p "$ac_path_SED" || continue
4988 # Check for GNU ac_path_SED and select it if it is found.
4989 # Check for GNU $ac_path_SED
4990 case `"$ac_path_SED" --version 2>&1` in #(
4991 *GNU*)
4992 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4993 #(
4994 *)
4995 ac_count=0
4996 printf %s 0123456789 >"conftest.in"
4997 while :
4998 do
4999 cat "conftest.in" "conftest.in" >"conftest.tmp"
5000 mv "conftest.tmp" "conftest.in"
5001 cp "conftest.in" "conftest.nl"
5002 printf "%s\n" '' >> "conftest.nl"
5003 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5005 as_fn_arith $ac_count + 1 && ac_count=$as_val
5006 if test $ac_count -gt ${ac_path_SED_max-0}; then
5007 # Best one so far, save it but keep looking for a better one
5008 ac_cv_path_SED="$ac_path_SED"
5009 ac_path_SED_max=$ac_count
5010 fi
5011 # 10*(2^10) chars as input seems more than enough
5012 test $ac_count -gt 10 && break
5013 done
5014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5015 esac
5016
5017 $ac_path_SED_found && break 3
5018 done
5019 done
5020 done
5021 IFS=$as_save_IFS
5022 if test -z "$ac_cv_path_SED"; then
5023 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5024 fi
5025 else
5026 ac_cv_path_SED=$SED
5027 fi
5028 ;;
5029 esac
5030 fi
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5032 printf "%s\n" "$ac_cv_path_SED" >&6; }
5033 SED="$ac_cv_path_SED"
5034 rm -f conftest.sed
5035
5036 test -z "$SED" && SED=sed
5037 Xsed="$SED -e 1s/^X//"
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5050 printf %s "checking for grep that handles long lines and -e... " >&6; }
5051 if test ${ac_cv_path_GREP+y}
5052 then :
5053 printf %s "(cached) " >&6
5054 else case e in #(
5055 e) if test -z "$GREP"; then
5056 ac_path_GREP_found=false
5057 # Loop through the user's path and test for each of PROGNAME-LIST
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5060 do
5061 IFS=$as_save_IFS
5062 case $as_dir in #(((
5063 '') as_dir=./ ;;
5064 */) ;;
5065 *) as_dir=$as_dir/ ;;
5066 esac
5067 for ac_prog in grep ggrep
5068 do
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5071 as_fn_executable_p "$ac_path_GREP" || continue
5072 # Check for GNU ac_path_GREP and select it if it is found.
5073 # Check for GNU $ac_path_GREP
5074 case `"$ac_path_GREP" --version 2>&1` in #(
5075 *GNU*)
5076 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5077 #(
5078 *)
5079 ac_count=0
5080 printf %s 0123456789 >"conftest.in"
5081 while :
5082 do
5083 cat "conftest.in" "conftest.in" >"conftest.tmp"
5084 mv "conftest.tmp" "conftest.in"
5085 cp "conftest.in" "conftest.nl"
5086 printf "%s\n" 'GREP' >> "conftest.nl"
5087 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5089 as_fn_arith $ac_count + 1 && ac_count=$as_val
5090 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5091 # Best one so far, save it but keep looking for a better one
5092 ac_cv_path_GREP="$ac_path_GREP"
5093 ac_path_GREP_max=$ac_count
5094 fi
5095 # 10*(2^10) chars as input seems more than enough
5096 test $ac_count -gt 10 && break
5097 done
5098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5099 esac
5100
5101 $ac_path_GREP_found && break 3
5102 done
5103 done
5104 done
5105 IFS=$as_save_IFS
5106 if test -z "$ac_cv_path_GREP"; then
5107 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5108 fi
5109 else
5110 ac_cv_path_GREP=$GREP
5111 fi
5112 ;;
5113 esac
5114 fi
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5116 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5117 GREP="$ac_cv_path_GREP"
5118
5119
5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5121 printf %s "checking for egrep... " >&6; }
5122 if test ${ac_cv_path_EGREP+y}
5123 then :
5124 printf %s "(cached) " >&6
5125 else case e in #(
5126 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5127 then ac_cv_path_EGREP="$GREP -E"
5128 else
5129 if test -z "$EGREP"; then
5130 ac_path_EGREP_found=false
5131 # Loop through the user's path and test for each of PROGNAME-LIST
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5134 do
5135 IFS=$as_save_IFS
5136 case $as_dir in #(((
5137 '') as_dir=./ ;;
5138 */) ;;
5139 *) as_dir=$as_dir/ ;;
5140 esac
5141 for ac_prog in egrep
5142 do
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5145 as_fn_executable_p "$ac_path_EGREP" || continue
5146 # Check for GNU ac_path_EGREP and select it if it is found.
5147 # Check for GNU $ac_path_EGREP
5148 case `"$ac_path_EGREP" --version 2>&1` in #(
5149 *GNU*)
5150 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5151 #(
5152 *)
5153 ac_count=0
5154 printf %s 0123456789 >"conftest.in"
5155 while :
5156 do
5157 cat "conftest.in" "conftest.in" >"conftest.tmp"
5158 mv "conftest.tmp" "conftest.in"
5159 cp "conftest.in" "conftest.nl"
5160 printf "%s\n" 'EGREP' >> "conftest.nl"
5161 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5163 as_fn_arith $ac_count + 1 && ac_count=$as_val
5164 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5165 # Best one so far, save it but keep looking for a better one
5166 ac_cv_path_EGREP="$ac_path_EGREP"
5167 ac_path_EGREP_max=$ac_count
5168 fi
5169 # 10*(2^10) chars as input seems more than enough
5170 test $ac_count -gt 10 && break
5171 done
5172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5173 esac
5174
5175 $ac_path_EGREP_found && break 3
5176 done
5177 done
5178 done
5179 IFS=$as_save_IFS
5180 if test -z "$ac_cv_path_EGREP"; then
5181 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5182 fi
5183 else
5184 ac_cv_path_EGREP=$EGREP
5185 fi
5186
5187 fi ;;
5188 esac
5189 fi
5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5191 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5192 EGREP="$ac_cv_path_EGREP"
5193
5194 EGREP_TRADITIONAL=$EGREP
5195 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5196
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5198 printf %s "checking for fgrep... " >&6; }
5199 if test ${ac_cv_path_FGREP+y}
5200 then :
5201 printf %s "(cached) " >&6
5202 else case e in #(
5203 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5204 then ac_cv_path_FGREP="$GREP -F"
5205 else
5206 if test -z "$FGREP"; then
5207 ac_path_FGREP_found=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5211 do
5212 IFS=$as_save_IFS
5213 case $as_dir in #(((
5214 '') as_dir=./ ;;
5215 */) ;;
5216 *) as_dir=$as_dir/ ;;
5217 esac
5218 for ac_prog in fgrep
5219 do
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5222 as_fn_executable_p "$ac_path_FGREP" || continue
5223 # Check for GNU ac_path_FGREP and select it if it is found.
5224 # Check for GNU $ac_path_FGREP
5225 case `"$ac_path_FGREP" --version 2>&1` in #(
5226 *GNU*)
5227 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5228 #(
5229 *)
5230 ac_count=0
5231 printf %s 0123456789 >"conftest.in"
5232 while :
5233 do
5234 cat "conftest.in" "conftest.in" >"conftest.tmp"
5235 mv "conftest.tmp" "conftest.in"
5236 cp "conftest.in" "conftest.nl"
5237 printf "%s\n" 'FGREP' >> "conftest.nl"
5238 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5240 as_fn_arith $ac_count + 1 && ac_count=$as_val
5241 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5242 # Best one so far, save it but keep looking for a better one
5243 ac_cv_path_FGREP="$ac_path_FGREP"
5244 ac_path_FGREP_max=$ac_count
5245 fi
5246 # 10*(2^10) chars as input seems more than enough
5247 test $ac_count -gt 10 && break
5248 done
5249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5250 esac
5251
5252 $ac_path_FGREP_found && break 3
5253 done
5254 done
5255 done
5256 IFS=$as_save_IFS
5257 if test -z "$ac_cv_path_FGREP"; then
5258 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5259 fi
5260 else
5261 ac_cv_path_FGREP=$FGREP
5262 fi
5263
5264 fi ;;
5265 esac
5266 fi
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5268 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5269 FGREP="$ac_cv_path_FGREP"
5270
5271
5272 test -z "$GREP" && GREP=grep
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292 # Check whether --with-gnu-ld was given.
5293 if test ${with_gnu_ld+y}
5294 then :
5295 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5296 else case e in #(
5297 e) with_gnu_ld=no ;;
5298 esac
5299 fi
5300
5301 ac_prog=ld
5302 if test yes = "$GCC"; then
5303 # Check if gcc -print-prog-name=ld gives a path.
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5305 printf %s "checking for ld used by $CC... " >&6; }
5306 case $host in
5307 *-*-mingw* | *-*-windows*)
5308 # gcc leaves a trailing carriage return, which upsets mingw
5309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5310 *)
5311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5312 esac
5313 case $ac_prog in
5314 # Accept absolute paths.
5315 [\\/]* | ?:[\\/]*)
5316 re_direlt='/[^/][^/]*/\.\./'
5317 # Canonicalize the pathname of ld
5318 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5319 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5320 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5321 done
5322 test -z "$LD" && LD=$ac_prog
5323 ;;
5324 "")
5325 # If it fails, then pretend we aren't using GCC.
5326 ac_prog=ld
5327 ;;
5328 *)
5329 # If it is relative, then search for the first ld in PATH.
5330 with_gnu_ld=unknown
5331 ;;
5332 esac
5333 elif test yes = "$with_gnu_ld"; then
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5335 printf %s "checking for GNU ld... " >&6; }
5336 else
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5338 printf %s "checking for non-GNU ld... " >&6; }
5339 fi
5340 if test ${lt_cv_path_LD+y}
5341 then :
5342 printf %s "(cached) " >&6
5343 else case e in #(
5344 e) if test -z "$LD"; then
5345 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5346 for ac_dir in $PATH; do
5347 IFS=$lt_save_ifs
5348 test -z "$ac_dir" && ac_dir=.
5349 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5350 lt_cv_path_LD=$ac_dir/$ac_prog
5351 # Check to see if the program is GNU ld. I'd rather use --version,
5352 # but apparently some variants of GNU ld only accept -v.
5353 # Break only if it was the GNU/non-GNU ld that we prefer.
5354 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5355 *GNU* | *'with BFD'*)
5356 test no != "$with_gnu_ld" && break
5357 ;;
5358 *)
5359 test yes != "$with_gnu_ld" && break
5360 ;;
5361 esac
5362 fi
5363 done
5364 IFS=$lt_save_ifs
5365 else
5366 lt_cv_path_LD=$LD # Let the user override the test with a path.
5367 fi ;;
5368 esac
5369 fi
5370
5371 LD=$lt_cv_path_LD
5372 if test -n "$LD"; then
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5374 printf "%s\n" "$LD" >&6; }
5375 else
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 printf "%s\n" "no" >&6; }
5378 fi
5379 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5381 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5382 if test ${lt_cv_prog_gnu_ld+y}
5383 then :
5384 printf %s "(cached) " >&6
5385 else case e in #(
5386 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5387 case `$LD -v 2>&1 </dev/null` in
5388 *GNU* | *'with BFD'*)
5389 lt_cv_prog_gnu_ld=yes
5390 ;;
5391 *)
5392 lt_cv_prog_gnu_ld=no
5393 ;;
5394 esac ;;
5395 esac
5396 fi
5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5398 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5399 with_gnu_ld=$lt_cv_prog_gnu_ld
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5410 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5411 if test ${lt_cv_path_NM+y}
5412 then :
5413 printf %s "(cached) " >&6
5414 else case e in #(
5415 e) if test -n "$NM"; then
5416 # Let the user override the test.
5417 lt_cv_path_NM=$NM
5418 else
5419 lt_nm_to_check=${ac_tool_prefix}nm
5420 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5421 lt_nm_to_check="$lt_nm_to_check nm"
5422 fi
5423 for lt_tmp_nm in $lt_nm_to_check; do
5424 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5425 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5426 IFS=$lt_save_ifs
5427 test -z "$ac_dir" && ac_dir=.
5428 tmp_nm=$ac_dir/$lt_tmp_nm
5429 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5430 # Check to see if the nm accepts a BSD-compat flag.
5431 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5432 # nm: unknown option "B" ignored
5433 # Tru64's nm complains that /dev/null is an invalid object file
5434 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5435 case $build_os in
5436 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5437 *) lt_bad_file=/dev/null ;;
5438 esac
5439 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5440 *$lt_bad_file* | *'Invalid file or object type'*)
5441 lt_cv_path_NM="$tmp_nm -B"
5442 break 2
5443 ;;
5444 *)
5445 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5446 */dev/null*)
5447 lt_cv_path_NM="$tmp_nm -p"
5448 break 2
5449 ;;
5450 *)
5451 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5452 continue # so that we can try to find one that supports BSD flags
5453 ;;
5454 esac
5455 ;;
5456 esac
5457 fi
5458 done
5459 IFS=$lt_save_ifs
5460 done
5461 : ${lt_cv_path_NM=no}
5462 fi ;;
5463 esac
5464 fi
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5466 printf "%s\n" "$lt_cv_path_NM" >&6; }
5467 if test no != "$lt_cv_path_NM"; then
5468 NM=$lt_cv_path_NM
5469 else
5470 # Didn't find any BSD compatible name lister, look for dumpbin.
5471 if test -n "$DUMPBIN"; then :
5472 # Let the user override the test.
5473 else
5474 if test -n "$ac_tool_prefix"; then
5475 for ac_prog in dumpbin "link -dump"
5476 do
5477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 printf %s "checking for $ac_word... " >&6; }
5481 if test ${ac_cv_prog_DUMPBIN+y}
5482 then :
5483 printf %s "(cached) " >&6
5484 else case e in #(
5485 e) if test -n "$DUMPBIN"; then
5486 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5487 else
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491 IFS=$as_save_IFS
5492 case $as_dir in #(((
5493 '') as_dir=./ ;;
5494 */) ;;
5495 *) as_dir=$as_dir/ ;;
5496 esac
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5499 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5501 break 2
5502 fi
5503 done
5504 done
5505 IFS=$as_save_IFS
5506
5507 fi ;;
5508 esac
5509 fi
5510 DUMPBIN=$ac_cv_prog_DUMPBIN
5511 if test -n "$DUMPBIN"; then
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5513 printf "%s\n" "$DUMPBIN" >&6; }
5514 else
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 printf "%s\n" "no" >&6; }
5517 fi
5518
5519
5520 test -n "$DUMPBIN" && break
5521 done
5522 fi
5523 if test -z "$DUMPBIN"; then
5524 ac_ct_DUMPBIN=$DUMPBIN
5525 for ac_prog in dumpbin "link -dump"
5526 do
5527 # Extract the first word of "$ac_prog", so it can be a program name with args.
5528 set dummy $ac_prog; ac_word=$2
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 printf %s "checking for $ac_word... " >&6; }
5531 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5532 then :
5533 printf %s "(cached) " >&6
5534 else case e in #(
5535 e) if test -n "$ac_ct_DUMPBIN"; then
5536 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541 IFS=$as_save_IFS
5542 case $as_dir in #(((
5543 '') as_dir=./ ;;
5544 */) ;;
5545 *) as_dir=$as_dir/ ;;
5546 esac
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5549 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5551 break 2
5552 fi
5553 done
5554 done
5555 IFS=$as_save_IFS
5556
5557 fi ;;
5558 esac
5559 fi
5560 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5561 if test -n "$ac_ct_DUMPBIN"; then
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5563 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5564 else
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 printf "%s\n" "no" >&6; }
5567 fi
5568
5569
5570 test -n "$ac_ct_DUMPBIN" && break
5571 done
5572
5573 if test "x$ac_ct_DUMPBIN" = x; then
5574 DUMPBIN=":"
5575 else
5576 case $cross_compiling:$ac_tool_warned in
5577 yes:)
5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580 ac_tool_warned=yes ;;
5581 esac
5582 DUMPBIN=$ac_ct_DUMPBIN
5583 fi
5584 fi
5585
5586 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5587 *COFF*)
5588 DUMPBIN="$DUMPBIN -symbols -headers"
5589 ;;
5590 *)
5591 DUMPBIN=:
5592 ;;
5593 esac
5594 fi
5595
5596 if test : != "$DUMPBIN"; then
5597 NM=$DUMPBIN
5598 fi
5599 fi
5600 test -z "$NM" && NM=nm
5601
5602
5603
5604
5605
5606
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5608 printf %s "checking the name lister ($NM) interface... " >&6; }
5609 if test ${lt_cv_nm_interface+y}
5610 then :
5611 printf %s "(cached) " >&6
5612 else case e in #(
5613 e) lt_cv_nm_interface="BSD nm"
5614 echo "int some_variable = 0;" > conftest.$ac_ext
5615 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5616 (eval "$ac_compile" 2>conftest.err)
5617 cat conftest.err >&5
5618 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5619 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5620 cat conftest.err >&5
5621 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5622 cat conftest.out >&5
5623 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5624 lt_cv_nm_interface="MS dumpbin"
5625 fi
5626 rm -f conftest* ;;
5627 esac
5628 fi
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5630 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5631
5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5633 printf %s "checking whether ln -s works... " >&6; }
5634 LN_S=$as_ln_s
5635 if test "$LN_S" = "ln -s"; then
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5637 printf "%s\n" "yes" >&6; }
5638 else
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5640 printf "%s\n" "no, using $LN_S" >&6; }
5641 fi
5642
5643 # find the maximum length of command line arguments
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5645 printf %s "checking the maximum length of command line arguments... " >&6; }
5646 if test ${lt_cv_sys_max_cmd_len+y}
5647 then :
5648 printf %s "(cached) " >&6
5649 else case e in #(
5650 e) i=0
5651 teststring=ABCD
5652
5653 case $build_os in
5654 msdosdjgpp*)
5655 # On DJGPP, this test can blow up pretty badly due to problems in libc
5656 # (any single argument exceeding 2000 bytes causes a buffer overrun
5657 # during glob expansion). Even if it were fixed, the result of this
5658 # check would be larger than it should be.
5659 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5660 ;;
5661
5662 gnu* | ironclad*)
5663 # Under GNU Hurd and Ironclad, this test is not required because there
5664 # is no limit to the length of command line arguments.
5665 # Libtool will interpret -1 as no limit whatsoever
5666 lt_cv_sys_max_cmd_len=-1;
5667 ;;
5668
5669 cygwin* | mingw* | windows* | cegcc*)
5670 # On Win9x/ME, this test blows up -- it succeeds, but takes
5671 # about 5 minutes as the teststring grows exponentially.
5672 # Worse, since 9x/ME are not pre-emptively multitasking,
5673 # you end up with a "frozen" computer, even though with patience
5674 # the test eventually succeeds (with a max line length of 256k).
5675 # Instead, let's just punt: use the minimum linelength reported by
5676 # all of the supported platforms: 8192 (on NT/2K/XP).
5677 lt_cv_sys_max_cmd_len=8192;
5678 ;;
5679
5680 mint*)
5681 # On MiNT this can take a long time and run out of memory.
5682 lt_cv_sys_max_cmd_len=8192;
5683 ;;
5684
5685 amigaos*)
5686 # On AmigaOS with pdksh, this test takes hours, literally.
5687 # So we just punt and use a minimum line length of 8192.
5688 lt_cv_sys_max_cmd_len=8192;
5689 ;;
5690
5691 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5692 # This has been around since 386BSD, at least. Likely further.
5693 if test -x /sbin/sysctl; then
5694 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5695 elif test -x /usr/sbin/sysctl; then
5696 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5697 else
5698 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5699 fi
5700 # And add a safety zone
5701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5703 ;;
5704
5705 interix*)
5706 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5707 lt_cv_sys_max_cmd_len=196608
5708 ;;
5709
5710 os2*)
5711 # The test takes a long time on OS/2.
5712 lt_cv_sys_max_cmd_len=8192
5713 ;;
5714
5715 osf*)
5716 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5717 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5718 # nice to cause kernel panics so lets avoid the loop below.
5719 # First set a reasonable default.
5720 lt_cv_sys_max_cmd_len=16384
5721 #
5722 if test -x /sbin/sysconfig; then
5723 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5724 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5725 esac
5726 fi
5727 ;;
5728 sco3.2v5*)
5729 lt_cv_sys_max_cmd_len=102400
5730 ;;
5731 sysv5* | sco5v6* | sysv4.2uw2*)
5732 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5733 if test -n "$kargmax"; then
5734 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5735 else
5736 lt_cv_sys_max_cmd_len=32768
5737 fi
5738 ;;
5739 *)
5740 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5741 if test -n "$lt_cv_sys_max_cmd_len" && \
5742 test undefined != "$lt_cv_sys_max_cmd_len"; then
5743 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5745 else
5746 # Make teststring a little bigger before we do anything with it.
5747 # a 1K string should be a reasonable start.
5748 for i in 1 2 3 4 5 6 7 8; do
5749 teststring=$teststring$teststring
5750 done
5751 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5752 # If test is not a shell built-in, we'll probably end up computing a
5753 # maximum length that is only half of the actual maximum length, but
5754 # we can't tell.
5755 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5756 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5757 test 17 != "$i" # 1/2 MB should be enough
5758 do
5759 i=`expr $i + 1`
5760 teststring=$teststring$teststring
5761 done
5762 # Only check the string length outside the loop.
5763 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5764 teststring=
5765 # Add a significant safety factor because C++ compilers can tack on
5766 # massive amounts of additional arguments before passing them to the
5767 # linker. It appears as though 1/2 is a usable value.
5768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5769 fi
5770 ;;
5771 esac
5772 ;;
5773 esac
5774 fi
5775
5776 if test -n "$lt_cv_sys_max_cmd_len"; then
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5778 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5779 else
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5781 printf "%s\n" "none" >&6; }
5782 fi
5783 max_cmd_len=$lt_cv_sys_max_cmd_len
5784
5785
5786
5787
5788
5789
5790 : ${CP="cp -f"}
5791 : ${MV="mv -f"}
5792 : ${RM="rm -f"}
5793
5794 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5795 lt_unset=unset
5796 else
5797 lt_unset=false
5798 fi
5799
5800
5801
5802
5803
5804 # test EBCDIC or ASCII
5805 case `echo X|tr X '\101'` in
5806 A) # ASCII based system
5807 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5808 lt_SP2NL='tr \040 \012'
5809 lt_NL2SP='tr \015\012 \040\040'
5810 ;;
5811 *) # EBCDIC based system
5812 lt_SP2NL='tr \100 \n'
5813 lt_NL2SP='tr \r\n \100\100'
5814 ;;
5815 esac
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5826 printf %s "checking how to convert $build file names to $host format... " >&6; }
5827 if test ${lt_cv_to_host_file_cmd+y}
5828 then :
5829 printf %s "(cached) " >&6
5830 else case e in #(
5831 e) case $host in
5832 *-*-mingw* )
5833 case $build in
5834 *-*-mingw* | *-*-windows* ) # actually msys
5835 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5836 ;;
5837 *-*-cygwin* )
5838 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5839 ;;
5840 * ) # otherwise, assume *nix
5841 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5842 ;;
5843 esac
5844 ;;
5845 *-*-cygwin* )
5846 case $build in
5847 *-*-mingw* | *-*-windows* ) # actually msys
5848 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5849 ;;
5850 *-*-cygwin* )
5851 lt_cv_to_host_file_cmd=func_convert_file_noop
5852 ;;
5853 * ) # otherwise, assume *nix
5854 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5855 ;;
5856 esac
5857 ;;
5858 * ) # unhandled hosts (and "normal" native builds)
5859 lt_cv_to_host_file_cmd=func_convert_file_noop
5860 ;;
5861 esac
5862 ;;
5863 esac
5864 fi
5865
5866 to_host_file_cmd=$lt_cv_to_host_file_cmd
5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5868 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5869
5870
5871
5872
5873
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5875 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5876 if test ${lt_cv_to_tool_file_cmd+y}
5877 then :
5878 printf %s "(cached) " >&6
5879 else case e in #(
5880 e) #assume ordinary cross tools, or native build.
5881 lt_cv_to_tool_file_cmd=func_convert_file_noop
5882 case $host in
5883 *-*-mingw* | *-*-windows* )
5884 case $build in
5885 *-*-mingw* | *-*-windows* ) # actually msys
5886 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5887 ;;
5888 esac
5889 ;;
5890 esac
5891 ;;
5892 esac
5893 fi
5894
5895 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5897 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5898
5899
5900
5901
5902
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5904 printf %s "checking for $LD option to reload object files... " >&6; }
5905 if test ${lt_cv_ld_reload_flag+y}
5906 then :
5907 printf %s "(cached) " >&6
5908 else case e in #(
5909 e) lt_cv_ld_reload_flag='-r' ;;
5910 esac
5911 fi
5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5913 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5914 reload_flag=$lt_cv_ld_reload_flag
5915 case $reload_flag in
5916 "" | " "*) ;;
5917 *) reload_flag=" $reload_flag" ;;
5918 esac
5919 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5920 case $host_os in
5921 cygwin* | mingw* | windows* | pw32* | cegcc*)
5922 if test yes != "$GCC"; then
5923 reload_cmds=false
5924 fi
5925 ;;
5926 darwin*)
5927 if test yes = "$GCC"; then
5928 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5929 else
5930 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5931 fi
5932 ;;
5933 esac
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943 # Extract the first word of "file", so it can be a program name with args.
5944 set dummy file; ac_word=$2
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 printf %s "checking for $ac_word... " >&6; }
5947 if test ${ac_cv_prog_FILECMD+y}
5948 then :
5949 printf %s "(cached) " >&6
5950 else case e in #(
5951 e) if test -n "$FILECMD"; then
5952 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957 IFS=$as_save_IFS
5958 case $as_dir in #(((
5959 '') as_dir=./ ;;
5960 */) ;;
5961 *) as_dir=$as_dir/ ;;
5962 esac
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5965 ac_cv_prog_FILECMD="file"
5966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969 done
5970 done
5971 IFS=$as_save_IFS
5972
5973 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
5974 fi ;;
5975 esac
5976 fi
5977 FILECMD=$ac_cv_prog_FILECMD
5978 if test -n "$FILECMD"; then
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5980 printf "%s\n" "$FILECMD" >&6; }
5981 else
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 printf "%s\n" "no" >&6; }
5984 fi
5985
5986
5987
5988
5989
5990
5991
5992
5993 if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5995 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 printf %s "checking for $ac_word... " >&6; }
5998 if test ${ac_cv_prog_OBJDUMP+y}
5999 then :
6000 printf %s "(cached) " >&6
6001 else case e in #(
6002 e) if test -n "$OBJDUMP"; then
6003 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008 IFS=$as_save_IFS
6009 case $as_dir in #(((
6010 '') as_dir=./ ;;
6011 */) ;;
6012 *) as_dir=$as_dir/ ;;
6013 esac
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi ;;
6025 esac
6026 fi
6027 OBJDUMP=$ac_cv_prog_OBJDUMP
6028 if test -n "$OBJDUMP"; then
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6030 printf "%s\n" "$OBJDUMP" >&6; }
6031 else
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 printf "%s\n" "no" >&6; }
6034 fi
6035
6036
6037 fi
6038 if test -z "$ac_cv_prog_OBJDUMP"; then
6039 ac_ct_OBJDUMP=$OBJDUMP
6040 # Extract the first word of "objdump", so it can be a program name with args.
6041 set dummy objdump; ac_word=$2
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 printf %s "checking for $ac_word... " >&6; }
6044 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6045 then :
6046 printf %s "(cached) " >&6
6047 else case e in #(
6048 e) if test -n "$ac_ct_OBJDUMP"; then
6049 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054 IFS=$as_save_IFS
6055 case $as_dir in #(((
6056 '') as_dir=./ ;;
6057 */) ;;
6058 *) as_dir=$as_dir/ ;;
6059 esac
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6064 break 2
6065 fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070 fi ;;
6071 esac
6072 fi
6073 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6074 if test -n "$ac_ct_OBJDUMP"; then
6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6076 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6077 else
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 printf "%s\n" "no" >&6; }
6080 fi
6081
6082 if test "x$ac_ct_OBJDUMP" = x; then
6083 OBJDUMP="false"
6084 else
6085 case $cross_compiling:$ac_tool_warned in
6086 yes:)
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6088 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6089 ac_tool_warned=yes ;;
6090 esac
6091 OBJDUMP=$ac_ct_OBJDUMP
6092 fi
6093 else
6094 OBJDUMP="$ac_cv_prog_OBJDUMP"
6095 fi
6096
6097 test -z "$OBJDUMP" && OBJDUMP=objdump
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6108 printf %s "checking how to recognize dependent libraries... " >&6; }
6109 if test ${lt_cv_deplibs_check_method+y}
6110 then :
6111 printf %s "(cached) " >&6
6112 else case e in #(
6113 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6114 lt_cv_file_magic_test_file=
6115 lt_cv_deplibs_check_method='unknown'
6116 # Need to set the preceding variable on all platforms that support
6117 # interlibrary dependencies.
6118 # 'none' -- dependencies not supported.
6119 # 'unknown' -- same as none, but documents that we really don't know.
6120 # 'pass_all' -- all dependencies passed with no checks.
6121 # 'file_magic [[regex]]' -- check by looking for files in library path
6122 # that responds to the $file_magic_cmd with a given extended regex.
6123 # If you have 'file' or equivalent on your system and you're not sure
6124 # whether 'pass_all' will *always* work, you probably want this one.
6125
6126 case $host_os in
6127 aix[4-9]*)
6128 lt_cv_deplibs_check_method=pass_all
6129 ;;
6130
6131 beos*)
6132 lt_cv_deplibs_check_method=pass_all
6133 ;;
6134
6135 bsdi[45]*)
6136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6137 lt_cv_file_magic_cmd='$FILECMD -L'
6138 lt_cv_file_magic_test_file=/shlib/libc.so
6139 ;;
6140
6141 cygwin*)
6142 # func_win32_libid is a shell function defined in ltmain.sh
6143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6144 lt_cv_file_magic_cmd='func_win32_libid'
6145 ;;
6146
6147 mingw* | windows* | pw32*)
6148 # Base MSYS/MinGW do not provide the 'file' command needed by
6149 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6150 # unless we find 'file', for example because we are cross-compiling.
6151 if ( file / ) >/dev/null 2>&1; then
6152 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6153 lt_cv_file_magic_cmd='func_win32_libid'
6154 else
6155 # Keep this pattern in sync with the one in func_win32_libid.
6156 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6157 lt_cv_file_magic_cmd='$OBJDUMP -f'
6158 fi
6159 ;;
6160
6161 cegcc*)
6162 # use the weaker test based on 'objdump'. See mingw*.
6163 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6164 lt_cv_file_magic_cmd='$OBJDUMP -f'
6165 ;;
6166
6167 darwin* | rhapsody*)
6168 lt_cv_deplibs_check_method=pass_all
6169 ;;
6170
6171 freebsd* | dragonfly* | midnightbsd*)
6172 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6173 case $host_cpu in
6174 i*86 )
6175 # Not sure whether the presence of OpenBSD here was a mistake.
6176 # Let's accept both of them until this is cleared up.
6177 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6178 lt_cv_file_magic_cmd=$FILECMD
6179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6180 ;;
6181 esac
6182 else
6183 lt_cv_deplibs_check_method=pass_all
6184 fi
6185 ;;
6186
6187 haiku*)
6188 lt_cv_deplibs_check_method=pass_all
6189 ;;
6190
6191 hpux10.20* | hpux11*)
6192 lt_cv_file_magic_cmd=$FILECMD
6193 case $host_cpu in
6194 ia64*)
6195 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6196 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6197 ;;
6198 hppa*64*)
6199 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]'
6200 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6201 ;;
6202 *)
6203 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6204 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6205 ;;
6206 esac
6207 ;;
6208
6209 interix[3-9]*)
6210 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6212 ;;
6213
6214 irix5* | irix6* | nonstopux*)
6215 case $LD in
6216 *-32|*"-32 ") libmagic=32-bit;;
6217 *-n32|*"-n32 ") libmagic=N32;;
6218 *-64|*"-64 ") libmagic=64-bit;;
6219 *) libmagic=never-match;;
6220 esac
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223
6224 # This must be glibc/ELF.
6225 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6226 lt_cv_deplibs_check_method=pass_all
6227 ;;
6228
6229 *-mlibc)
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232
6233 netbsd* | netbsdelf*-gnu)
6234 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6236 else
6237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6238 fi
6239 ;;
6240
6241 newos6*)
6242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6243 lt_cv_file_magic_cmd=$FILECMD
6244 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6245 ;;
6246
6247 *nto* | *qnx*)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250
6251 openbsd*)
6252 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6254 else
6255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6256 fi
6257 ;;
6258
6259 osf3* | osf4* | osf5*)
6260 lt_cv_deplibs_check_method=pass_all
6261 ;;
6262
6263 rdos*)
6264 lt_cv_deplibs_check_method=pass_all
6265 ;;
6266
6267 serenity*)
6268 lt_cv_deplibs_check_method=pass_all
6269 ;;
6270
6271 solaris*)
6272 lt_cv_deplibs_check_method=pass_all
6273 ;;
6274
6275 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6276 lt_cv_deplibs_check_method=pass_all
6277 ;;
6278
6279 sysv4 | sysv4.3*)
6280 case $host_vendor in
6281 motorola)
6282 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]'
6283 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6284 ;;
6285 ncr)
6286 lt_cv_deplibs_check_method=pass_all
6287 ;;
6288 sequent)
6289 lt_cv_file_magic_cmd='/bin/file'
6290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6291 ;;
6292 sni)
6293 lt_cv_file_magic_cmd='/bin/file'
6294 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6295 lt_cv_file_magic_test_file=/lib/libc.so
6296 ;;
6297 siemens)
6298 lt_cv_deplibs_check_method=pass_all
6299 ;;
6300 pc)
6301 lt_cv_deplibs_check_method=pass_all
6302 ;;
6303 esac
6304 ;;
6305
6306 tpf*)
6307 lt_cv_deplibs_check_method=pass_all
6308 ;;
6309 os2*)
6310 lt_cv_deplibs_check_method=pass_all
6311 ;;
6312 esac
6313 ;;
6314 esac
6315 fi
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6317 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6318
6319 file_magic_glob=
6320 want_nocaseglob=no
6321 if test "$build" = "$host"; then
6322 case $host_os in
6323 mingw* | windows* | pw32*)
6324 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6325 want_nocaseglob=yes
6326 else
6327 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6328 fi
6329 ;;
6330 esac
6331 fi
6332
6333 file_magic_cmd=$lt_cv_file_magic_cmd
6334 deplibs_check_method=$lt_cv_deplibs_check_method
6335 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358 if test -n "$ac_tool_prefix"; then
6359 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6360 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 printf %s "checking for $ac_word... " >&6; }
6363 if test ${ac_cv_prog_DLLTOOL+y}
6364 then :
6365 printf %s "(cached) " >&6
6366 else case e in #(
6367 e) if test -n "$DLLTOOL"; then
6368 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6369 else
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6372 do
6373 IFS=$as_save_IFS
6374 case $as_dir in #(((
6375 '') as_dir=./ ;;
6376 */) ;;
6377 *) as_dir=$as_dir/ ;;
6378 esac
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6381 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6383 break 2
6384 fi
6385 done
6386 done
6387 IFS=$as_save_IFS
6388
6389 fi ;;
6390 esac
6391 fi
6392 DLLTOOL=$ac_cv_prog_DLLTOOL
6393 if test -n "$DLLTOOL"; then
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6395 printf "%s\n" "$DLLTOOL" >&6; }
6396 else
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 printf "%s\n" "no" >&6; }
6399 fi
6400
6401
6402 fi
6403 if test -z "$ac_cv_prog_DLLTOOL"; then
6404 ac_ct_DLLTOOL=$DLLTOOL
6405 # Extract the first word of "dlltool", so it can be a program name with args.
6406 set dummy dlltool; ac_word=$2
6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 printf %s "checking for $ac_word... " >&6; }
6409 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6410 then :
6411 printf %s "(cached) " >&6
6412 else case e in #(
6413 e) if test -n "$ac_ct_DLLTOOL"; then
6414 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419 IFS=$as_save_IFS
6420 case $as_dir in #(((
6421 '') as_dir=./ ;;
6422 */) ;;
6423 *) as_dir=$as_dir/ ;;
6424 esac
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6427 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6429 break 2
6430 fi
6431 done
6432 done
6433 IFS=$as_save_IFS
6434
6435 fi ;;
6436 esac
6437 fi
6438 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6439 if test -n "$ac_ct_DLLTOOL"; then
6440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6441 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6442 else
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 printf "%s\n" "no" >&6; }
6445 fi
6446
6447 if test "x$ac_ct_DLLTOOL" = x; then
6448 DLLTOOL="false"
6449 else
6450 case $cross_compiling:$ac_tool_warned in
6451 yes:)
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454 ac_tool_warned=yes ;;
6455 esac
6456 DLLTOOL=$ac_ct_DLLTOOL
6457 fi
6458 else
6459 DLLTOOL="$ac_cv_prog_DLLTOOL"
6460 fi
6461
6462 test -z "$DLLTOOL" && DLLTOOL=dlltool
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6474 printf %s "checking how to associate runtime and link libraries... " >&6; }
6475 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6476 then :
6477 printf %s "(cached) " >&6
6478 else case e in #(
6479 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6480
6481 case $host_os in
6482 cygwin* | mingw* | windows* | pw32* | cegcc*)
6483 # two different shell functions defined in ltmain.sh;
6484 # decide which one to use based on capabilities of $DLLTOOL
6485 case `$DLLTOOL --help 2>&1` in
6486 *--identify-strict*)
6487 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6488 ;;
6489 *)
6490 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6491 ;;
6492 esac
6493 ;;
6494 *)
6495 # fallback: assume linklib IS sharedlib
6496 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6497 ;;
6498 esac
6499 ;;
6500 esac
6501 fi
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6503 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6504 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6505 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6506
6507
6508
6509
6510
6511
6512
6513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6515 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 printf %s "checking for $ac_word... " >&6; }
6518 if test ${ac_cv_prog_RANLIB+y}
6519 then :
6520 printf %s "(cached) " >&6
6521 else case e in #(
6522 e) if test -n "$RANLIB"; then
6523 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528 IFS=$as_save_IFS
6529 case $as_dir in #(((
6530 '') as_dir=./ ;;
6531 */) ;;
6532 *) as_dir=$as_dir/ ;;
6533 esac
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6536 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544 fi ;;
6545 esac
6546 fi
6547 RANLIB=$ac_cv_prog_RANLIB
6548 if test -n "$RANLIB"; then
6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6550 printf "%s\n" "$RANLIB" >&6; }
6551 else
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 printf "%s\n" "no" >&6; }
6554 fi
6555
6556
6557 fi
6558 if test -z "$ac_cv_prog_RANLIB"; then
6559 ac_ct_RANLIB=$RANLIB
6560 # Extract the first word of "ranlib", so it can be a program name with args.
6561 set dummy ranlib; ac_word=$2
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563 printf %s "checking for $ac_word... " >&6; }
6564 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6565 then :
6566 printf %s "(cached) " >&6
6567 else case e in #(
6568 e) if test -n "$ac_ct_RANLIB"; then
6569 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574 IFS=$as_save_IFS
6575 case $as_dir in #(((
6576 '') as_dir=./ ;;
6577 */) ;;
6578 *) as_dir=$as_dir/ ;;
6579 esac
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6582 ac_cv_prog_ac_ct_RANLIB="ranlib"
6583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590 fi ;;
6591 esac
6592 fi
6593 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6594 if test -n "$ac_ct_RANLIB"; then
6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6596 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6597 else
6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 printf "%s\n" "no" >&6; }
6600 fi
6601
6602 if test "x$ac_ct_RANLIB" = x; then
6603 RANLIB=":"
6604 else
6605 case $cross_compiling:$ac_tool_warned in
6606 yes:)
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6608 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6609 ac_tool_warned=yes ;;
6610 esac
6611 RANLIB=$ac_ct_RANLIB
6612 fi
6613 else
6614 RANLIB="$ac_cv_prog_RANLIB"
6615 fi
6616
6617 if test -n "$ac_tool_prefix"; then
6618 for ac_prog in ar
6619 do
6620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 printf %s "checking for $ac_word... " >&6; }
6624 if test ${ac_cv_prog_AR+y}
6625 then :
6626 printf %s "(cached) " >&6
6627 else case e in #(
6628 e) if test -n "$AR"; then
6629 ac_cv_prog_AR="$AR" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634 IFS=$as_save_IFS
6635 case $as_dir in #(((
6636 '') as_dir=./ ;;
6637 */) ;;
6638 *) as_dir=$as_dir/ ;;
6639 esac
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650 fi ;;
6651 esac
6652 fi
6653 AR=$ac_cv_prog_AR
6654 if test -n "$AR"; then
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6656 printf "%s\n" "$AR" >&6; }
6657 else
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 printf "%s\n" "no" >&6; }
6660 fi
6661
6662
6663 test -n "$AR" && break
6664 done
6665 fi
6666 if test -z "$AR"; then
6667 ac_ct_AR=$AR
6668 for ac_prog in ar
6669 do
6670 # Extract the first word of "$ac_prog", so it can be a program name with args.
6671 set dummy $ac_prog; ac_word=$2
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 printf %s "checking for $ac_word... " >&6; }
6674 if test ${ac_cv_prog_ac_ct_AR+y}
6675 then :
6676 printf %s "(cached) " >&6
6677 else case e in #(
6678 e) if test -n "$ac_ct_AR"; then
6679 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684 IFS=$as_save_IFS
6685 case $as_dir in #(((
6686 '') as_dir=./ ;;
6687 */) ;;
6688 *) as_dir=$as_dir/ ;;
6689 esac
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6692 ac_cv_prog_ac_ct_AR="$ac_prog"
6693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6694 break 2
6695 fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700 fi ;;
6701 esac
6702 fi
6703 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6704 if test -n "$ac_ct_AR"; then
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6706 printf "%s\n" "$ac_ct_AR" >&6; }
6707 else
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 printf "%s\n" "no" >&6; }
6710 fi
6711
6712
6713 test -n "$ac_ct_AR" && break
6714 done
6715
6716 if test "x$ac_ct_AR" = x; then
6717 AR="false"
6718 else
6719 case $cross_compiling:$ac_tool_warned in
6720 yes:)
6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725 AR=$ac_ct_AR
6726 fi
6727 fi
6728
6729 : ${AR=ar}
6730
6731
6732
6733
6734
6735
6736 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6737 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6738 # higher priority because that's what people were doing historically (setting
6739 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6740 # variable obsoleted/removed.
6741
6742 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6743 lt_ar_flags=$AR_FLAGS
6744
6745
6746
6747
6748
6749
6750 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6751 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6752
6753
6754
6755
6756
6757
6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6759 printf %s "checking for archiver @FILE support... " >&6; }
6760 if test ${lt_cv_ar_at_file+y}
6761 then :
6762 printf %s "(cached) " >&6
6763 else case e in #(
6764 e) lt_cv_ar_at_file=no
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767
6768 int
6769 main (void)
6770 {
6771
6772 ;
6773 return 0;
6774 }
6775 _ACEOF
6776 if ac_fn_c_try_compile "$LINENO"
6777 then :
6778 echo conftest.$ac_objext > conftest.lst
6779 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6781 (eval $lt_ar_try) 2>&5
6782 ac_status=$?
6783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784 test $ac_status = 0; }
6785 if test 0 -eq "$ac_status"; then
6786 # Ensure the archiver fails upon bogus file names.
6787 rm -f conftest.$ac_objext libconftest.a
6788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6789 (eval $lt_ar_try) 2>&5
6790 ac_status=$?
6791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792 test $ac_status = 0; }
6793 if test 0 -ne "$ac_status"; then
6794 lt_cv_ar_at_file=@
6795 fi
6796 fi
6797 rm -f conftest.* libconftest.a
6798
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6801 ;;
6802 esac
6803 fi
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6805 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6806
6807 if test no = "$lt_cv_ar_at_file"; then
6808 archiver_list_spec=
6809 else
6810 archiver_list_spec=$lt_cv_ar_at_file
6811 fi
6812
6813
6814
6815
6816
6817
6818
6819 if test -n "$ac_tool_prefix"; then
6820 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6821 set dummy ${ac_tool_prefix}strip; ac_word=$2
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 printf %s "checking for $ac_word... " >&6; }
6824 if test ${ac_cv_prog_STRIP+y}
6825 then :
6826 printf %s "(cached) " >&6
6827 else case e in #(
6828 e) if test -n "$STRIP"; then
6829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 case $as_dir in #(((
6836 '') as_dir=./ ;;
6837 */) ;;
6838 *) as_dir=$as_dir/ ;;
6839 esac
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6842 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6844 break 2
6845 fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi ;;
6851 esac
6852 fi
6853 STRIP=$ac_cv_prog_STRIP
6854 if test -n "$STRIP"; then
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6856 printf "%s\n" "$STRIP" >&6; }
6857 else
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 printf "%s\n" "no" >&6; }
6860 fi
6861
6862
6863 fi
6864 if test -z "$ac_cv_prog_STRIP"; then
6865 ac_ct_STRIP=$STRIP
6866 # Extract the first word of "strip", so it can be a program name with args.
6867 set dummy strip; ac_word=$2
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 printf %s "checking for $ac_word... " >&6; }
6870 if test ${ac_cv_prog_ac_ct_STRIP+y}
6871 then :
6872 printf %s "(cached) " >&6
6873 else case e in #(
6874 e) if test -n "$ac_ct_STRIP"; then
6875 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880 IFS=$as_save_IFS
6881 case $as_dir in #(((
6882 '') as_dir=./ ;;
6883 */) ;;
6884 *) as_dir=$as_dir/ ;;
6885 esac
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6888 ac_cv_prog_ac_ct_STRIP="strip"
6889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6890 break 2
6891 fi
6892 done
6893 done
6894 IFS=$as_save_IFS
6895
6896 fi ;;
6897 esac
6898 fi
6899 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6900 if test -n "$ac_ct_STRIP"; then
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6902 printf "%s\n" "$ac_ct_STRIP" >&6; }
6903 else
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 printf "%s\n" "no" >&6; }
6906 fi
6907
6908 if test "x$ac_ct_STRIP" = x; then
6909 STRIP=":"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912 yes:)
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915 ac_tool_warned=yes ;;
6916 esac
6917 STRIP=$ac_ct_STRIP
6918 fi
6919 else
6920 STRIP="$ac_cv_prog_STRIP"
6921 fi
6922
6923 test -z "$STRIP" && STRIP=:
6924
6925
6926
6927
6928
6929
6930
6931 test -z "$RANLIB" && RANLIB=:
6932
6933
6934
6935
6936
6937
6938 # Determine commands to create old-style static archives.
6939 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6940 old_postinstall_cmds='chmod 644 $oldlib'
6941 old_postuninstall_cmds=
6942
6943 if test -n "$RANLIB"; then
6944 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6945 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6946 fi
6947
6948 case $host_os in
6949 darwin*)
6950 lock_old_archive_extraction=yes ;;
6951 *)
6952 lock_old_archive_extraction=no ;;
6953 esac
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993 # If no C compiler was specified, use CC.
6994 LTCC=${LTCC-"$CC"}
6995
6996 # If no C compiler flags were specified, use CFLAGS.
6997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6998
6999 # Allow CC to be a program name with arguments.
7000 compiler=$CC
7001
7002
7003 # Check for command to grab the raw symbol name followed by C symbol from nm.
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7005 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7006 if test ${lt_cv_sys_global_symbol_pipe+y}
7007 then :
7008 printf %s "(cached) " >&6
7009 else case e in #(
7010 e)
7011 # These are sane defaults that work on at least a few old systems.
7012 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7013
7014 # Character class describing NM global symbol codes.
7015 symcode='[BCDEGRST]'
7016
7017 # Regexp to match symbols that can be accessed directly from C.
7018 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7019
7020 # Define system-specific variables.
7021 case $host_os in
7022 aix*)
7023 symcode='[BCDT]'
7024 ;;
7025 cygwin* | mingw* | windows* | pw32* | cegcc*)
7026 symcode='[ABCDGISTW]'
7027 ;;
7028 hpux*)
7029 if test ia64 = "$host_cpu"; then
7030 symcode='[ABCDEGRST]'
7031 fi
7032 ;;
7033 irix* | nonstopux*)
7034 symcode='[BCDEGRST]'
7035 ;;
7036 osf*)
7037 symcode='[BCDEGQRST]'
7038 ;;
7039 solaris*)
7040 symcode='[BCDRT]'
7041 ;;
7042 sco3.2v5*)
7043 symcode='[DT]'
7044 ;;
7045 sysv4.2uw2*)
7046 symcode='[DT]'
7047 ;;
7048 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7049 symcode='[ABDT]'
7050 ;;
7051 sysv4)
7052 symcode='[DFNSTU]'
7053 ;;
7054 esac
7055
7056 # If we're using GNU nm, then use its standard symbol codes.
7057 case `$NM -V 2>&1` in
7058 *GNU* | *'with BFD'*)
7059 symcode='[ABCDGIRSTW]' ;;
7060 esac
7061
7062 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7063 # Gets list of data symbols to import.
7064 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7065 # Adjust the below global symbol transforms to fixup imported variables.
7066 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7067 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7068 lt_c_name_lib_hook="\
7069 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7070 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7071 else
7072 # Disable hooks by default.
7073 lt_cv_sys_global_symbol_to_import=
7074 lt_cdecl_hook=
7075 lt_c_name_hook=
7076 lt_c_name_lib_hook=
7077 fi
7078
7079 # Transform an extracted symbol line into a proper C declaration.
7080 # Some systems (esp. on ia64) link data and code symbols differently,
7081 # so use this general approach.
7082 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7083 $lt_cdecl_hook\
7084 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7085 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7086
7087 # Transform an extracted symbol line into symbol name and symbol address
7088 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7089 $lt_c_name_hook\
7090 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7091 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7092
7093 # Transform an extracted symbol line into symbol name with lib prefix and
7094 # symbol address.
7095 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7096 $lt_c_name_lib_hook\
7097 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7098 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7099 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7100
7101 # Handle CRLF in mingw tool chain
7102 opt_cr=
7103 case $build_os in
7104 mingw* | windows*)
7105 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7106 ;;
7107 esac
7108
7109 # Try without a prefix underscore, then with it.
7110 for ac_symprfx in "" "_"; do
7111
7112 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7113 symxfrm="\\1 $ac_symprfx\\2 \\2"
7114
7115 # Write the raw and C identifiers.
7116 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7117 # Fake it for dumpbin and say T for any non-static function,
7118 # D for any global variable and I for any imported variable.
7119 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7120 # which start with @ or ?.
7121 lt_cv_sys_global_symbol_pipe="$AWK '"\
7122 " {last_section=section; section=\$ 3};"\
7123 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7124 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7125 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7126 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7127 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7128 " \$ 0!~/External *\|/{next};"\
7129 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7130 " {if(hide[section]) next};"\
7131 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7132 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7133 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7134 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7135 " ' prfx=^$ac_symprfx"
7136 else
7137 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7138 fi
7139 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7140
7141 # Check to see that the pipe works correctly.
7142 pipe_works=no
7143
7144 rm -f conftest*
7145 cat > conftest.$ac_ext <<_LT_EOF
7146 #ifdef __cplusplus
7147 extern "C" {
7148 #endif
7149 char nm_test_var;
7150 void nm_test_func(void);
7151 void nm_test_func(void){}
7152 #ifdef __cplusplus
7153 }
7154 #endif
7155 int main(void){nm_test_var='a';nm_test_func();return(0);}
7156 _LT_EOF
7157
7158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7159 (eval $ac_compile) 2>&5
7160 ac_status=$?
7161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7162 test $ac_status = 0; }; then
7163 # Now try to grab the symbols.
7164 nlist=conftest.nm
7165 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7166 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7167 # Try sorting and uniquifying the output.
7168 if sort "$nlist" | uniq > "$nlist"T; then
7169 mv -f "$nlist"T "$nlist"
7170 else
7171 rm -f "$nlist"T
7172 fi
7173
7174 # Make sure that we snagged all the symbols we need.
7175 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7176 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7177 cat <<_LT_EOF > conftest.$ac_ext
7178 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7179 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7180 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7181 relocations are performed -- see ld's documentation on pseudo-relocs. */
7182 # define LT_DLSYM_CONST
7183 #elif defined __osf__
7184 /* This system does not cope well with relocations in const data. */
7185 # define LT_DLSYM_CONST
7186 #else
7187 # define LT_DLSYM_CONST const
7188 #endif
7189
7190 #ifdef __cplusplus
7191 extern "C" {
7192 #endif
7193
7194 _LT_EOF
7195 # Now generate the symbol file.
7196 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7197
7198 cat <<_LT_EOF >> conftest.$ac_ext
7199
7200 /* The mapping between symbol names and symbols. */
7201 LT_DLSYM_CONST struct {
7202 const char *name;
7203 void *address;
7204 }
7205 lt__PROGRAM__LTX_preloaded_symbols[] =
7206 {
7207 { "@PROGRAM@", (void *) 0 },
7208 _LT_EOF
7209 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7210 cat <<\_LT_EOF >> conftest.$ac_ext
7211 {0, (void *) 0}
7212 };
7213
7214 /* This works around a problem in FreeBSD linker */
7215 #ifdef FREEBSD_WORKAROUND
7216 static const void *lt_preloaded_setup() {
7217 return lt__PROGRAM__LTX_preloaded_symbols;
7218 }
7219 #endif
7220
7221 #ifdef __cplusplus
7222 }
7223 #endif
7224 _LT_EOF
7225 # Now try linking the two files.
7226 mv conftest.$ac_objext conftstm.$ac_objext
7227 lt_globsym_save_LIBS=$LIBS
7228 lt_globsym_save_CFLAGS=$CFLAGS
7229 LIBS=conftstm.$ac_objext
7230 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7232 (eval $ac_link) 2>&5
7233 ac_status=$?
7234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7235 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7236 pipe_works=yes
7237 fi
7238 LIBS=$lt_globsym_save_LIBS
7239 CFLAGS=$lt_globsym_save_CFLAGS
7240 else
7241 echo "cannot find nm_test_func in $nlist" >&5
7242 fi
7243 else
7244 echo "cannot find nm_test_var in $nlist" >&5
7245 fi
7246 else
7247 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7248 fi
7249 else
7250 echo "$progname: failed program was:" >&5
7251 cat conftest.$ac_ext >&5
7252 fi
7253 rm -rf conftest* conftst*
7254
7255 # Do not use the global_symbol_pipe unless it works.
7256 if test yes = "$pipe_works"; then
7257 break
7258 else
7259 lt_cv_sys_global_symbol_pipe=
7260 fi
7261 done
7262 ;;
7263 esac
7264 fi
7265
7266 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7267 lt_cv_sys_global_symbol_to_cdecl=
7268 fi
7269 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7271 printf "%s\n" "failed" >&6; }
7272 else
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7274 printf "%s\n" "ok" >&6; }
7275 fi
7276
7277 # Response file support.
7278 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7279 nm_file_list_spec='@'
7280 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7281 nm_file_list_spec='@'
7282 fi
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7321 printf %s "checking for sysroot... " >&6; }
7322
7323 # Check whether --with-sysroot was given.
7324 if test ${with_sysroot+y}
7325 then :
7326 withval=$with_sysroot;
7327 else case e in #(
7328 e) with_sysroot=no ;;
7329 esac
7330 fi
7331
7332
7333 lt_sysroot=
7334 case $with_sysroot in #(
7335 yes)
7336 if test yes = "$GCC"; then
7337 # Trim trailing / since we'll always append absolute paths and we want
7338 # to avoid //, if only for less confusing output for the user.
7339 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7340 fi
7341 ;; #(
7342 /*)
7343 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7344 ;; #(
7345 no|'')
7346 ;; #(
7347 *)
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7349 printf "%s\n" "$with_sysroot" >&6; }
7350 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7351 ;;
7352 esac
7353
7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7355 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7356
7357
7358
7359
7360
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7362 printf %s "checking for a working dd... " >&6; }
7363 if test ${ac_cv_path_lt_DD+y}
7364 then :
7365 printf %s "(cached) " >&6
7366 else case e in #(
7367 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7368 cat conftest.i conftest.i >conftest2.i
7369 : ${lt_DD:=$DD}
7370 if test -z "$lt_DD"; then
7371 ac_path_lt_DD_found=false
7372 # Loop through the user's path and test for each of PROGNAME-LIST
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7375 do
7376 IFS=$as_save_IFS
7377 case $as_dir in #(((
7378 '') as_dir=./ ;;
7379 */) ;;
7380 *) as_dir=$as_dir/ ;;
7381 esac
7382 for ac_prog in dd
7383 do
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7386 as_fn_executable_p "$ac_path_lt_DD" || continue
7387 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7388 cmp -s conftest.i conftest.out \
7389 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7390 fi
7391 $ac_path_lt_DD_found && break 3
7392 done
7393 done
7394 done
7395 IFS=$as_save_IFS
7396 if test -z "$ac_cv_path_lt_DD"; then
7397 :
7398 fi
7399 else
7400 ac_cv_path_lt_DD=$lt_DD
7401 fi
7402
7403 rm -f conftest.i conftest2.i conftest.out ;;
7404 esac
7405 fi
7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7407 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7408
7409
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7411 printf %s "checking how to truncate binary pipes... " >&6; }
7412 if test ${lt_cv_truncate_bin+y}
7413 then :
7414 printf %s "(cached) " >&6
7415 else case e in #(
7416 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7417 cat conftest.i conftest.i >conftest2.i
7418 lt_cv_truncate_bin=
7419 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7420 cmp -s conftest.i conftest.out \
7421 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7422 fi
7423 rm -f conftest.i conftest2.i conftest.out
7424 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7425 esac
7426 fi
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7428 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7429
7430
7431
7432
7433
7434
7435
7436 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7437 func_cc_basename ()
7438 {
7439 for cc_temp in $*""; do
7440 case $cc_temp in
7441 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7442 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7443 \-*) ;;
7444 *) break;;
7445 esac
7446 done
7447 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7448 }
7449
7450 # Check whether --enable-libtool-lock was given.
7451 if test ${enable_libtool_lock+y}
7452 then :
7453 enableval=$enable_libtool_lock;
7454 fi
7455
7456 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7457
7458 # Some flags need to be propagated to the compiler or linker for good
7459 # libtool support.
7460 case $host in
7461 ia64-*-hpux*)
7462 # Find out what ABI is being produced by ac_compile, and set mode
7463 # options accordingly.
7464 echo 'int i;' > conftest.$ac_ext
7465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7466 (eval $ac_compile) 2>&5
7467 ac_status=$?
7468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7469 test $ac_status = 0; }; then
7470 case `$FILECMD conftest.$ac_objext` in
7471 *ELF-32*)
7472 HPUX_IA64_MODE=32
7473 ;;
7474 *ELF-64*)
7475 HPUX_IA64_MODE=64
7476 ;;
7477 esac
7478 fi
7479 rm -rf conftest*
7480 ;;
7481 *-*-irix6*)
7482 # Find out what ABI is being produced by ac_compile, and set linker
7483 # options accordingly.
7484 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7486 (eval $ac_compile) 2>&5
7487 ac_status=$?
7488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7489 test $ac_status = 0; }; then
7490 if test yes = "$lt_cv_prog_gnu_ld"; then
7491 case `$FILECMD conftest.$ac_objext` in
7492 *32-bit*)
7493 LD="${LD-ld} -melf32bsmip"
7494 ;;
7495 *N32*)
7496 LD="${LD-ld} -melf32bmipn32"
7497 ;;
7498 *64-bit*)
7499 LD="${LD-ld} -melf64bmip"
7500 ;;
7501 esac
7502 else
7503 case `$FILECMD conftest.$ac_objext` in
7504 *32-bit*)
7505 LD="${LD-ld} -32"
7506 ;;
7507 *N32*)
7508 LD="${LD-ld} -n32"
7509 ;;
7510 *64-bit*)
7511 LD="${LD-ld} -64"
7512 ;;
7513 esac
7514 fi
7515 fi
7516 rm -rf conftest*
7517 ;;
7518
7519 mips64*-*linux*)
7520 # Find out what ABI is being produced by ac_compile, and set linker
7521 # options accordingly.
7522 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7524 (eval $ac_compile) 2>&5
7525 ac_status=$?
7526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7527 test $ac_status = 0; }; then
7528 emul=elf
7529 case `$FILECMD conftest.$ac_objext` in
7530 *32-bit*)
7531 emul="${emul}32"
7532 ;;
7533 *64-bit*)
7534 emul="${emul}64"
7535 ;;
7536 esac
7537 case `$FILECMD conftest.$ac_objext` in
7538 *MSB*)
7539 emul="${emul}btsmip"
7540 ;;
7541 *LSB*)
7542 emul="${emul}ltsmip"
7543 ;;
7544 esac
7545 case `$FILECMD conftest.$ac_objext` in
7546 *N32*)
7547 emul="${emul}n32"
7548 ;;
7549 esac
7550 LD="${LD-ld} -m $emul"
7551 fi
7552 rm -rf conftest*
7553 ;;
7554
7555 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7556 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7557 # Find out what ABI is being produced by ac_compile, and set linker
7558 # options accordingly. Note that the listed cases only cover the
7559 # situations where additional linker options are needed (such as when
7560 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7561 # vice versa); the common cases where no linker options are needed do
7562 # not appear in the list.
7563 echo 'int i;' > conftest.$ac_ext
7564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7565 (eval $ac_compile) 2>&5
7566 ac_status=$?
7567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7568 test $ac_status = 0; }; then
7569 case `$FILECMD conftest.o` in
7570 *32-bit*)
7571 case $host in
7572 x86_64-*kfreebsd*-gnu)
7573 LD="${LD-ld} -m elf_i386_fbsd"
7574 ;;
7575 x86_64-*linux*|x86_64-gnu*)
7576 case `$FILECMD conftest.o` in
7577 *x86-64*)
7578 LD="${LD-ld} -m elf32_x86_64"
7579 ;;
7580 *)
7581 LD="${LD-ld} -m elf_i386"
7582 ;;
7583 esac
7584 ;;
7585 powerpc64le-*linux*)
7586 LD="${LD-ld} -m elf32lppclinux"
7587 ;;
7588 powerpc64-*linux*)
7589 LD="${LD-ld} -m elf32ppclinux"
7590 ;;
7591 s390x-*linux*)
7592 LD="${LD-ld} -m elf_s390"
7593 ;;
7594 sparc64-*linux*)
7595 LD="${LD-ld} -m elf32_sparc"
7596 ;;
7597 esac
7598 ;;
7599 *64-bit*)
7600 case $host in
7601 x86_64-*kfreebsd*-gnu)
7602 LD="${LD-ld} -m elf_x86_64_fbsd"
7603 ;;
7604 x86_64-*linux*|x86_64-gnu*)
7605 LD="${LD-ld} -m elf_x86_64"
7606 ;;
7607 powerpcle-*linux*)
7608 LD="${LD-ld} -m elf64lppc"
7609 ;;
7610 powerpc-*linux*)
7611 LD="${LD-ld} -m elf64ppc"
7612 ;;
7613 s390*-*linux*|s390*-*tpf*)
7614 LD="${LD-ld} -m elf64_s390"
7615 ;;
7616 sparc*-*linux*)
7617 LD="${LD-ld} -m elf64_sparc"
7618 ;;
7619 esac
7620 ;;
7621 esac
7622 fi
7623 rm -rf conftest*
7624 ;;
7625
7626 *-*-sco3.2v5*)
7627 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7628 SAVE_CFLAGS=$CFLAGS
7629 CFLAGS="$CFLAGS -belf"
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7631 printf %s "checking whether the C compiler needs -belf... " >&6; }
7632 if test ${lt_cv_cc_needs_belf+y}
7633 then :
7634 printf %s "(cached) " >&6
7635 else case e in #(
7636 e) ac_ext=c
7637 ac_cpp='$CPP $CPPFLAGS'
7638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7641
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644
7645 int
7646 main (void)
7647 {
7648
7649 ;
7650 return 0;
7651 }
7652 _ACEOF
7653 if ac_fn_c_try_link "$LINENO"
7654 then :
7655 lt_cv_cc_needs_belf=yes
7656 else case e in #(
7657 e) lt_cv_cc_needs_belf=no ;;
7658 esac
7659 fi
7660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7661 conftest$ac_exeext conftest.$ac_ext
7662 ac_ext=c
7663 ac_cpp='$CPP $CPPFLAGS'
7664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7667 ;;
7668 esac
7669 fi
7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7671 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7672 if test yes != "$lt_cv_cc_needs_belf"; then
7673 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7674 CFLAGS=$SAVE_CFLAGS
7675 fi
7676 ;;
7677 *-*solaris*)
7678 # Find out what ABI is being produced by ac_compile, and set linker
7679 # options accordingly.
7680 echo 'int i;' > conftest.$ac_ext
7681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7682 (eval $ac_compile) 2>&5
7683 ac_status=$?
7684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7685 test $ac_status = 0; }; then
7686 case `$FILECMD conftest.o` in
7687 *64-bit*)
7688 case $lt_cv_prog_gnu_ld in
7689 yes*)
7690 case $host in
7691 i?86-*-solaris*|x86_64-*-solaris*)
7692 LD="${LD-ld} -m elf_x86_64"
7693 ;;
7694 sparc*-*-solaris*)
7695 LD="${LD-ld} -m elf64_sparc"
7696 ;;
7697 esac
7698 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7699 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7700 LD=${LD-ld}_sol2
7701 fi
7702 ;;
7703 *)
7704 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7705 LD="${LD-ld} -64"
7706 fi
7707 ;;
7708 esac
7709 ;;
7710 esac
7711 fi
7712 rm -rf conftest*
7713 ;;
7714 esac
7715
7716 need_locks=$enable_libtool_lock
7717
7718 if test -n "$ac_tool_prefix"; then
7719 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7720 set dummy ${ac_tool_prefix}mt; ac_word=$2
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 printf %s "checking for $ac_word... " >&6; }
7723 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7724 then :
7725 printf %s "(cached) " >&6
7726 else case e in #(
7727 e) if test -n "$MANIFEST_TOOL"; then
7728 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7729 else
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733 IFS=$as_save_IFS
7734 case $as_dir in #(((
7735 '') as_dir=./ ;;
7736 */) ;;
7737 *) as_dir=$as_dir/ ;;
7738 esac
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7741 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745 done
7746 done
7747 IFS=$as_save_IFS
7748
7749 fi ;;
7750 esac
7751 fi
7752 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7753 if test -n "$MANIFEST_TOOL"; then
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7755 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7756 else
7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 printf "%s\n" "no" >&6; }
7759 fi
7760
7761
7762 fi
7763 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7764 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7765 # Extract the first word of "mt", so it can be a program name with args.
7766 set dummy mt; ac_word=$2
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 printf %s "checking for $ac_word... " >&6; }
7769 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7770 then :
7771 printf %s "(cached) " >&6
7772 else case e in #(
7773 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7774 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779 IFS=$as_save_IFS
7780 case $as_dir in #(((
7781 '') as_dir=./ ;;
7782 */) ;;
7783 *) as_dir=$as_dir/ ;;
7784 esac
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 fi ;;
7796 esac
7797 fi
7798 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7799 if test -n "$ac_ct_MANIFEST_TOOL"; then
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7801 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7802 else
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 printf "%s\n" "no" >&6; }
7805 fi
7806
7807 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7808 MANIFEST_TOOL=":"
7809 else
7810 case $cross_compiling:$ac_tool_warned in
7811 yes:)
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7813 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7814 ac_tool_warned=yes ;;
7815 esac
7816 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7817 fi
7818 else
7819 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7820 fi
7821
7822 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7824 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7825 if test ${lt_cv_path_manifest_tool+y}
7826 then :
7827 printf %s "(cached) " >&6
7828 else case e in #(
7829 e) lt_cv_path_manifest_tool=no
7830 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7831 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7832 cat conftest.err >&5
7833 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7834 lt_cv_path_manifest_tool=yes
7835 fi
7836 rm -f conftest* ;;
7837 esac
7838 fi
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7840 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7841 if test yes != "$lt_cv_path_manifest_tool"; then
7842 MANIFEST_TOOL=:
7843 fi
7844
7845
7846
7847
7848
7849
7850 case $host_os in
7851 rhapsody* | darwin*)
7852 if test -n "$ac_tool_prefix"; then
7853 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7854 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 printf %s "checking for $ac_word... " >&6; }
7857 if test ${ac_cv_prog_DSYMUTIL+y}
7858 then :
7859 printf %s "(cached) " >&6
7860 else case e in #(
7861 e) if test -n "$DSYMUTIL"; then
7862 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7863 else
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867 IFS=$as_save_IFS
7868 case $as_dir in #(((
7869 '') as_dir=./ ;;
7870 */) ;;
7871 *) as_dir=$as_dir/ ;;
7872 esac
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7875 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7877 break 2
7878 fi
7879 done
7880 done
7881 IFS=$as_save_IFS
7882
7883 fi ;;
7884 esac
7885 fi
7886 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7887 if test -n "$DSYMUTIL"; then
7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7889 printf "%s\n" "$DSYMUTIL" >&6; }
7890 else
7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 printf "%s\n" "no" >&6; }
7893 fi
7894
7895
7896 fi
7897 if test -z "$ac_cv_prog_DSYMUTIL"; then
7898 ac_ct_DSYMUTIL=$DSYMUTIL
7899 # Extract the first word of "dsymutil", so it can be a program name with args.
7900 set dummy dsymutil; ac_word=$2
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 printf %s "checking for $ac_word... " >&6; }
7903 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7904 then :
7905 printf %s "(cached) " >&6
7906 else case e in #(
7907 e) if test -n "$ac_ct_DSYMUTIL"; then
7908 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913 IFS=$as_save_IFS
7914 case $as_dir in #(((
7915 '') as_dir=./ ;;
7916 */) ;;
7917 *) as_dir=$as_dir/ ;;
7918 esac
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7921 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7923 break 2
7924 fi
7925 done
7926 done
7927 IFS=$as_save_IFS
7928
7929 fi ;;
7930 esac
7931 fi
7932 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7933 if test -n "$ac_ct_DSYMUTIL"; then
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7935 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7936 else
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 printf "%s\n" "no" >&6; }
7939 fi
7940
7941 if test "x$ac_ct_DSYMUTIL" = x; then
7942 DSYMUTIL=":"
7943 else
7944 case $cross_compiling:$ac_tool_warned in
7945 yes:)
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7947 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7948 ac_tool_warned=yes ;;
7949 esac
7950 DSYMUTIL=$ac_ct_DSYMUTIL
7951 fi
7952 else
7953 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7954 fi
7955
7956 if test -n "$ac_tool_prefix"; then
7957 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7958 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 printf %s "checking for $ac_word... " >&6; }
7961 if test ${ac_cv_prog_NMEDIT+y}
7962 then :
7963 printf %s "(cached) " >&6
7964 else case e in #(
7965 e) if test -n "$NMEDIT"; then
7966 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971 IFS=$as_save_IFS
7972 case $as_dir in #(((
7973 '') as_dir=./ ;;
7974 */) ;;
7975 *) as_dir=$as_dir/ ;;
7976 esac
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7979 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983 done
7984 done
7985 IFS=$as_save_IFS
7986
7987 fi ;;
7988 esac
7989 fi
7990 NMEDIT=$ac_cv_prog_NMEDIT
7991 if test -n "$NMEDIT"; then
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7993 printf "%s\n" "$NMEDIT" >&6; }
7994 else
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 printf "%s\n" "no" >&6; }
7997 fi
7998
7999
8000 fi
8001 if test -z "$ac_cv_prog_NMEDIT"; then
8002 ac_ct_NMEDIT=$NMEDIT
8003 # Extract the first word of "nmedit", so it can be a program name with args.
8004 set dummy nmedit; ac_word=$2
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 printf %s "checking for $ac_word... " >&6; }
8007 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8008 then :
8009 printf %s "(cached) " >&6
8010 else case e in #(
8011 e) if test -n "$ac_ct_NMEDIT"; then
8012 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8016 do
8017 IFS=$as_save_IFS
8018 case $as_dir in #(((
8019 '') as_dir=./ ;;
8020 */) ;;
8021 *) as_dir=$as_dir/ ;;
8022 esac
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8025 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8027 break 2
8028 fi
8029 done
8030 done
8031 IFS=$as_save_IFS
8032
8033 fi ;;
8034 esac
8035 fi
8036 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8037 if test -n "$ac_ct_NMEDIT"; then
8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8039 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8040 else
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 printf "%s\n" "no" >&6; }
8043 fi
8044
8045 if test "x$ac_ct_NMEDIT" = x; then
8046 NMEDIT=":"
8047 else
8048 case $cross_compiling:$ac_tool_warned in
8049 yes:)
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8051 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8052 ac_tool_warned=yes ;;
8053 esac
8054 NMEDIT=$ac_ct_NMEDIT
8055 fi
8056 else
8057 NMEDIT="$ac_cv_prog_NMEDIT"
8058 fi
8059
8060 if test -n "$ac_tool_prefix"; then
8061 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8062 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064 printf %s "checking for $ac_word... " >&6; }
8065 if test ${ac_cv_prog_LIPO+y}
8066 then :
8067 printf %s "(cached) " >&6
8068 else case e in #(
8069 e) if test -n "$LIPO"; then
8070 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8071 else
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in $PATH
8074 do
8075 IFS=$as_save_IFS
8076 case $as_dir in #(((
8077 '') as_dir=./ ;;
8078 */) ;;
8079 *) as_dir=$as_dir/ ;;
8080 esac
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8083 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8085 break 2
8086 fi
8087 done
8088 done
8089 IFS=$as_save_IFS
8090
8091 fi ;;
8092 esac
8093 fi
8094 LIPO=$ac_cv_prog_LIPO
8095 if test -n "$LIPO"; then
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8097 printf "%s\n" "$LIPO" >&6; }
8098 else
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 printf "%s\n" "no" >&6; }
8101 fi
8102
8103
8104 fi
8105 if test -z "$ac_cv_prog_LIPO"; then
8106 ac_ct_LIPO=$LIPO
8107 # Extract the first word of "lipo", so it can be a program name with args.
8108 set dummy lipo; ac_word=$2
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 printf %s "checking for $ac_word... " >&6; }
8111 if test ${ac_cv_prog_ac_ct_LIPO+y}
8112 then :
8113 printf %s "(cached) " >&6
8114 else case e in #(
8115 e) if test -n "$ac_ct_LIPO"; then
8116 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8117 else
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8120 do
8121 IFS=$as_save_IFS
8122 case $as_dir in #(((
8123 '') as_dir=./ ;;
8124 */) ;;
8125 *) as_dir=$as_dir/ ;;
8126 esac
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8129 ac_cv_prog_ac_ct_LIPO="lipo"
8130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8131 break 2
8132 fi
8133 done
8134 done
8135 IFS=$as_save_IFS
8136
8137 fi ;;
8138 esac
8139 fi
8140 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8141 if test -n "$ac_ct_LIPO"; then
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8143 printf "%s\n" "$ac_ct_LIPO" >&6; }
8144 else
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 printf "%s\n" "no" >&6; }
8147 fi
8148
8149 if test "x$ac_ct_LIPO" = x; then
8150 LIPO=":"
8151 else
8152 case $cross_compiling:$ac_tool_warned in
8153 yes:)
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8155 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8156 ac_tool_warned=yes ;;
8157 esac
8158 LIPO=$ac_ct_LIPO
8159 fi
8160 else
8161 LIPO="$ac_cv_prog_LIPO"
8162 fi
8163
8164 if test -n "$ac_tool_prefix"; then
8165 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}otool; ac_word=$2
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 printf %s "checking for $ac_word... " >&6; }
8169 if test ${ac_cv_prog_OTOOL+y}
8170 then :
8171 printf %s "(cached) " >&6
8172 else case e in #(
8173 e) if test -n "$OTOOL"; then
8174 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8175 else
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8178 do
8179 IFS=$as_save_IFS
8180 case $as_dir in #(((
8181 '') as_dir=./ ;;
8182 */) ;;
8183 *) as_dir=$as_dir/ ;;
8184 esac
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8187 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8189 break 2
8190 fi
8191 done
8192 done
8193 IFS=$as_save_IFS
8194
8195 fi ;;
8196 esac
8197 fi
8198 OTOOL=$ac_cv_prog_OTOOL
8199 if test -n "$OTOOL"; then
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8201 printf "%s\n" "$OTOOL" >&6; }
8202 else
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 printf "%s\n" "no" >&6; }
8205 fi
8206
8207
8208 fi
8209 if test -z "$ac_cv_prog_OTOOL"; then
8210 ac_ct_OTOOL=$OTOOL
8211 # Extract the first word of "otool", so it can be a program name with args.
8212 set dummy otool; ac_word=$2
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 printf %s "checking for $ac_word... " >&6; }
8215 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8216 then :
8217 printf %s "(cached) " >&6
8218 else case e in #(
8219 e) if test -n "$ac_ct_OTOOL"; then
8220 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8221 else
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH
8224 do
8225 IFS=$as_save_IFS
8226 case $as_dir in #(((
8227 '') as_dir=./ ;;
8228 */) ;;
8229 *) as_dir=$as_dir/ ;;
8230 esac
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8233 ac_cv_prog_ac_ct_OTOOL="otool"
8234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8235 break 2
8236 fi
8237 done
8238 done
8239 IFS=$as_save_IFS
8240
8241 fi ;;
8242 esac
8243 fi
8244 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8245 if test -n "$ac_ct_OTOOL"; then
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8247 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8248 else
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 printf "%s\n" "no" >&6; }
8251 fi
8252
8253 if test "x$ac_ct_OTOOL" = x; then
8254 OTOOL=":"
8255 else
8256 case $cross_compiling:$ac_tool_warned in
8257 yes:)
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8259 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8260 ac_tool_warned=yes ;;
8261 esac
8262 OTOOL=$ac_ct_OTOOL
8263 fi
8264 else
8265 OTOOL="$ac_cv_prog_OTOOL"
8266 fi
8267
8268 if test -n "$ac_tool_prefix"; then
8269 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8270 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 printf %s "checking for $ac_word... " >&6; }
8273 if test ${ac_cv_prog_OTOOL64+y}
8274 then :
8275 printf %s "(cached) " >&6
8276 else case e in #(
8277 e) if test -n "$OTOOL64"; then
8278 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283 IFS=$as_save_IFS
8284 case $as_dir in #(((
8285 '') as_dir=./ ;;
8286 */) ;;
8287 *) as_dir=$as_dir/ ;;
8288 esac
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8291 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8293 break 2
8294 fi
8295 done
8296 done
8297 IFS=$as_save_IFS
8298
8299 fi ;;
8300 esac
8301 fi
8302 OTOOL64=$ac_cv_prog_OTOOL64
8303 if test -n "$OTOOL64"; then
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8305 printf "%s\n" "$OTOOL64" >&6; }
8306 else
8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 printf "%s\n" "no" >&6; }
8309 fi
8310
8311
8312 fi
8313 if test -z "$ac_cv_prog_OTOOL64"; then
8314 ac_ct_OTOOL64=$OTOOL64
8315 # Extract the first word of "otool64", so it can be a program name with args.
8316 set dummy otool64; ac_word=$2
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 printf %s "checking for $ac_word... " >&6; }
8319 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8320 then :
8321 printf %s "(cached) " >&6
8322 else case e in #(
8323 e) if test -n "$ac_ct_OTOOL64"; then
8324 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329 IFS=$as_save_IFS
8330 case $as_dir in #(((
8331 '') as_dir=./ ;;
8332 */) ;;
8333 *) as_dir=$as_dir/ ;;
8334 esac
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8337 ac_cv_prog_ac_ct_OTOOL64="otool64"
8338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341 done
8342 done
8343 IFS=$as_save_IFS
8344
8345 fi ;;
8346 esac
8347 fi
8348 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8349 if test -n "$ac_ct_OTOOL64"; then
8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8351 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8352 else
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 printf "%s\n" "no" >&6; }
8355 fi
8356
8357 if test "x$ac_ct_OTOOL64" = x; then
8358 OTOOL64=":"
8359 else
8360 case $cross_compiling:$ac_tool_warned in
8361 yes:)
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8363 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8364 ac_tool_warned=yes ;;
8365 esac
8366 OTOOL64=$ac_ct_OTOOL64
8367 fi
8368 else
8369 OTOOL64="$ac_cv_prog_OTOOL64"
8370 fi
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8399 printf %s "checking for -single_module linker flag... " >&6; }
8400 if test ${lt_cv_apple_cc_single_mod+y}
8401 then :
8402 printf %s "(cached) " >&6
8403 else case e in #(
8404 e) lt_cv_apple_cc_single_mod=no
8405 if test -z "$LT_MULTI_MODULE"; then
8406 # By default we will add the -single_module flag. You can override
8407 # by either setting the environment variable LT_MULTI_MODULE
8408 # non-empty at configure time, or by adding -multi_module to the
8409 # link flags.
8410 rm -rf libconftest.dylib*
8411 echo "int foo(void){return 1;}" > conftest.c
8412 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8413 -dynamiclib -Wl,-single_module conftest.c" >&5
8414 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8415 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8416 _lt_result=$?
8417 # If there is a non-empty error log, and "single_module"
8418 # appears in it, assume the flag caused a linker warning
8419 if test -s conftest.err && $GREP single_module conftest.err; then
8420 cat conftest.err >&5
8421 # Otherwise, if the output was created with a 0 exit code from
8422 # the compiler, it worked.
8423 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8424 lt_cv_apple_cc_single_mod=yes
8425 else
8426 cat conftest.err >&5
8427 fi
8428 rm -rf libconftest.dylib*
8429 rm -f conftest.*
8430 fi ;;
8431 esac
8432 fi
8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8434 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8435
8436 # Feature test to disable chained fixups since it is not
8437 # compatible with '-undefined dynamic_lookup'
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8439 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8440 if test ${lt_cv_support_no_fixup_chains+y}
8441 then :
8442 printf %s "(cached) " >&6
8443 else case e in #(
8444 e) save_LDFLAGS=$LDFLAGS
8445 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448
8449 int
8450 main (void)
8451 {
8452
8453 ;
8454 return 0;
8455 }
8456 _ACEOF
8457 if ac_fn_c_try_link "$LINENO"
8458 then :
8459 lt_cv_support_no_fixup_chains=yes
8460 else case e in #(
8461 e) lt_cv_support_no_fixup_chains=no
8462 ;;
8463 esac
8464 fi
8465 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8466 conftest$ac_exeext conftest.$ac_ext
8467 LDFLAGS=$save_LDFLAGS
8468
8469 ;;
8470 esac
8471 fi
8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8473 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8474
8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8476 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8477 if test ${lt_cv_ld_exported_symbols_list+y}
8478 then :
8479 printf %s "(cached) " >&6
8480 else case e in #(
8481 e) lt_cv_ld_exported_symbols_list=no
8482 save_LDFLAGS=$LDFLAGS
8483 echo "_main" > conftest.sym
8484 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487
8488 int
8489 main (void)
8490 {
8491
8492 ;
8493 return 0;
8494 }
8495 _ACEOF
8496 if ac_fn_c_try_link "$LINENO"
8497 then :
8498 lt_cv_ld_exported_symbols_list=yes
8499 else case e in #(
8500 e) lt_cv_ld_exported_symbols_list=no ;;
8501 esac
8502 fi
8503 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8504 conftest$ac_exeext conftest.$ac_ext
8505 LDFLAGS=$save_LDFLAGS
8506 ;;
8507 esac
8508 fi
8509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8510 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8511
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8513 printf %s "checking for -force_load linker flag... " >&6; }
8514 if test ${lt_cv_ld_force_load+y}
8515 then :
8516 printf %s "(cached) " >&6
8517 else case e in #(
8518 e) lt_cv_ld_force_load=no
8519 cat > conftest.c << _LT_EOF
8520 int forced_loaded() { return 2;}
8521 _LT_EOF
8522 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8523 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8524 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8525 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8526 echo "$RANLIB libconftest.a" >&5
8527 $RANLIB libconftest.a 2>&5
8528 cat > conftest.c << _LT_EOF
8529 int main(void) { return 0;}
8530 _LT_EOF
8531 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8532 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8533 _lt_result=$?
8534 if test -s conftest.err && $GREP force_load conftest.err; then
8535 cat conftest.err >&5
8536 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8537 lt_cv_ld_force_load=yes
8538 else
8539 cat conftest.err >&5
8540 fi
8541 rm -f conftest.err libconftest.a conftest conftest.c
8542 rm -rf conftest.dSYM
8543 ;;
8544 esac
8545 fi
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8547 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8548 case $host_os in
8549 rhapsody* | darwin1.[012])
8550 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8551 darwin1.*)
8552 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8553 darwin*)
8554 case $MACOSX_DEPLOYMENT_TARGET,$host in
8555 10.[012],*|,*powerpc*-darwin[5-8]*)
8556 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8557 *)
8558 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8559 if test yes = "$lt_cv_support_no_fixup_chains"; then
8560 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8561 fi
8562 ;;
8563 esac
8564 ;;
8565 esac
8566 if test yes = "$lt_cv_apple_cc_single_mod"; then
8567 _lt_dar_single_mod='$single_module'
8568 fi
8569 _lt_dar_needs_single_mod=no
8570 case $host_os in
8571 rhapsody* | darwin1.*)
8572 _lt_dar_needs_single_mod=yes ;;
8573 darwin*)
8574 # When targeting Mac OS X 10.4 (darwin 8) or later,
8575 # -single_module is the default and -multi_module is unsupported.
8576 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8577 # target any OS version that needs -single_module.
8578 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8579 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8580 _lt_dar_needs_single_mod=yes ;;
8581 esac
8582 ;;
8583 esac
8584 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8585 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8586 else
8587 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8588 fi
8589 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8590 _lt_dsymutil='~$DSYMUTIL $lib || :'
8591 else
8592 _lt_dsymutil=
8593 fi
8594 ;;
8595 esac
8596
8597 # func_munge_path_list VARIABLE PATH
8598 # -----------------------------------
8599 # VARIABLE is name of variable containing _space_ separated list of
8600 # directories to be munged by the contents of PATH, which is string
8601 # having a format:
8602 # "DIR[:DIR]:"
8603 # string "DIR[ DIR]" will be prepended to VARIABLE
8604 # ":DIR[:DIR]"
8605 # string "DIR[ DIR]" will be appended to VARIABLE
8606 # "DIRP[:DIRP]::[DIRA:]DIRA"
8607 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8608 # "DIRA[ DIRA]" will be appended to VARIABLE
8609 # "DIR[:DIR]"
8610 # VARIABLE will be replaced by "DIR[ DIR]"
8611 func_munge_path_list ()
8612 {
8613 case x$2 in
8614 x)
8615 ;;
8616 *:)
8617 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8618 ;;
8619 x:*)
8620 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8621 ;;
8622 *::*)
8623 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8624 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8625 ;;
8626 *)
8627 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8628 ;;
8629 esac
8630 }
8631
8632 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8633 "
8634 if test "x$ac_cv_header_dlfcn_h" = xyes
8635 then :
8636 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8637
8638 fi
8639
8640
8641
8642
8643
8644 # Set options
8645
8646
8647
8648 enable_dlopen=no
8649
8650
8651 enable_win32_dll=no
8652
8653
8654 # Check whether --enable-shared was given.
8655 if test ${enable_shared+y}
8656 then :
8657 enableval=$enable_shared; p=${PACKAGE-default}
8658 case $enableval in
8659 yes) enable_shared=yes ;;
8660 no) enable_shared=no ;;
8661 *)
8662 enable_shared=no
8663 # Look at the argument we got. We use all the common list separators.
8664 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8665 for pkg in $enableval; do
8666 IFS=$lt_save_ifs
8667 if test "X$pkg" = "X$p"; then
8668 enable_shared=yes
8669 fi
8670 done
8671 IFS=$lt_save_ifs
8672 ;;
8673 esac
8674 else case e in #(
8675 e) enable_shared=yes ;;
8676 esac
8677 fi
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687 # Check whether --enable-static was given.
8688 if test ${enable_static+y}
8689 then :
8690 enableval=$enable_static; p=${PACKAGE-default}
8691 case $enableval in
8692 yes) enable_static=yes ;;
8693 no) enable_static=no ;;
8694 *)
8695 enable_static=no
8696 # Look at the argument we got. We use all the common list separators.
8697 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8698 for pkg in $enableval; do
8699 IFS=$lt_save_ifs
8700 if test "X$pkg" = "X$p"; then
8701 enable_static=yes
8702 fi
8703 done
8704 IFS=$lt_save_ifs
8705 ;;
8706 esac
8707 else case e in #(
8708 e) enable_static=yes ;;
8709 esac
8710 fi
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720 # Check whether --enable-pic was given.
8721 if test ${enable_pic+y}
8722 then :
8723 enableval=$enable_pic; lt_p=${PACKAGE-default}
8724 case $enableval in
8725 yes|no) pic_mode=$enableval ;;
8726 *)
8727 pic_mode=default
8728 # Look at the argument we got. We use all the common list separators.
8729 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8730 for lt_pkg in $enableval; do
8731 IFS=$lt_save_ifs
8732 if test "X$lt_pkg" = "X$lt_p"; then
8733 pic_mode=yes
8734 fi
8735 done
8736 IFS=$lt_save_ifs
8737 ;;
8738 esac
8739 else case e in #(
8740 e) # Check whether --with-pic was given.
8741 if test ${with_pic+y}
8742 then :
8743 withval=$with_pic; lt_p=${PACKAGE-default}
8744 case $withval in
8745 yes|no) pic_mode=$withval ;;
8746 *)
8747 pic_mode=default
8748 # Look at the argument we got. We use all the common list separators.
8749 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8750 for lt_pkg in $withval; do
8751 IFS=$lt_save_ifs
8752 if test "X$lt_pkg" = "X$lt_p"; then
8753 pic_mode=yes
8754 fi
8755 done
8756 IFS=$lt_save_ifs
8757 ;;
8758 esac
8759 else case e in #(
8760 e) pic_mode=default ;;
8761 esac
8762 fi
8763
8764 ;;
8765 esac
8766 fi
8767
8768
8769
8770
8771
8772
8773
8774
8775 # Check whether --enable-fast-install was given.
8776 if test ${enable_fast_install+y}
8777 then :
8778 enableval=$enable_fast_install; p=${PACKAGE-default}
8779 case $enableval in
8780 yes) enable_fast_install=yes ;;
8781 no) enable_fast_install=no ;;
8782 *)
8783 enable_fast_install=no
8784 # Look at the argument we got. We use all the common list separators.
8785 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8786 for pkg in $enableval; do
8787 IFS=$lt_save_ifs
8788 if test "X$pkg" = "X$p"; then
8789 enable_fast_install=yes
8790 fi
8791 done
8792 IFS=$lt_save_ifs
8793 ;;
8794 esac
8795 else case e in #(
8796 e) enable_fast_install=yes ;;
8797 esac
8798 fi
8799
8800
8801
8802
8803
8804
8805
8806
8807 shared_archive_member_spec=
8808 case $host,$enable_shared in
8809 power*-*-aix[5-9]*,yes)
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8811 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8812 # Check whether --enable-aix-soname was given.
8813 if test ${enable_aix_soname+y}
8814 then :
8815 enableval=$enable_aix_soname; case $enableval in
8816 aix|svr4|both)
8817 ;;
8818 *)
8819 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8820 ;;
8821 esac
8822 lt_cv_with_aix_soname=$enable_aix_soname
8823 else case e in #(
8824 e) # Check whether --with-aix-soname was given.
8825 if test ${with_aix_soname+y}
8826 then :
8827 withval=$with_aix_soname; case $withval in
8828 aix|svr4|both)
8829 ;;
8830 *)
8831 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8832 ;;
8833 esac
8834 lt_cv_with_aix_soname=$with_aix_soname
8835 else case e in #(
8836 e) if test ${lt_cv_with_aix_soname+y}
8837 then :
8838 printf %s "(cached) " >&6
8839 else case e in #(
8840 e) lt_cv_with_aix_soname=aix ;;
8841 esac
8842 fi
8843 ;;
8844 esac
8845 fi
8846
8847 enable_aix_soname=$lt_cv_with_aix_soname ;;
8848 esac
8849 fi
8850
8851 with_aix_soname=$enable_aix_soname
8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8853 printf "%s\n" "$with_aix_soname" >&6; }
8854 if test aix != "$with_aix_soname"; then
8855 # For the AIX way of multilib, we name the shared archive member
8856 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8857 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8858 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8859 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8860 if test 64 = "${OBJECT_MODE-32}"; then
8861 shared_archive_member_spec=shr_64
8862 else
8863 shared_archive_member_spec=shr
8864 fi
8865 fi
8866 ;;
8867 *)
8868 with_aix_soname=aix
8869 ;;
8870 esac
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881 # This can be used to rebuild libtool when needed
8882 LIBTOOL_DEPS=$ltmain
8883
8884 # Always use our own libtool.
8885 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916 test -z "$LN_S" && LN_S="ln -s"
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931 if test -n "${ZSH_VERSION+set}"; then
8932 setopt NO_GLOB_SUBST
8933 fi
8934
8935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8936 printf %s "checking for objdir... " >&6; }
8937 if test ${lt_cv_objdir+y}
8938 then :
8939 printf %s "(cached) " >&6
8940 else case e in #(
8941 e) rm -f .libs 2>/dev/null
8942 mkdir .libs 2>/dev/null
8943 if test -d .libs; then
8944 lt_cv_objdir=.libs
8945 else
8946 # MS-DOS does not allow filenames that begin with a dot.
8947 lt_cv_objdir=_libs
8948 fi
8949 rmdir .libs 2>/dev/null ;;
8950 esac
8951 fi
8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8953 printf "%s\n" "$lt_cv_objdir" >&6; }
8954 objdir=$lt_cv_objdir
8955
8956
8957
8958
8959
8960 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8961
8962
8963
8964
8965 case $host_os in
8966 aix3*)
8967 # AIX sometimes has problems with the GCC collect2 program. For some
8968 # reason, if we set the COLLECT_NAMES environment variable, the problems
8969 # vanish in a puff of smoke.
8970 if test set != "${COLLECT_NAMES+set}"; then
8971 COLLECT_NAMES=
8972 export COLLECT_NAMES
8973 fi
8974 ;;
8975 esac
8976
8977 # Global variables:
8978 ofile=libtool
8979 can_build_shared=yes
8980
8981 # All known linkers require a '.a' archive for static linking (except MSVC and
8982 # ICC, which need '.lib').
8983 libext=a
8984
8985 with_gnu_ld=$lt_cv_prog_gnu_ld
8986
8987 old_CC=$CC
8988 old_CFLAGS=$CFLAGS
8989
8990 # Set sane defaults for various variables
8991 test -z "$CC" && CC=cc
8992 test -z "$LTCC" && LTCC=$CC
8993 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8994 test -z "$LD" && LD=ld
8995 test -z "$ac_objext" && ac_objext=o
8996
8997 func_cc_basename $compiler
8998 cc_basename=$func_cc_basename_result
8999
9000
9001 # Only perform the check for file, if the check method requires it
9002 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9003 case $deplibs_check_method in
9004 file_magic*)
9005 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9007 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9008 if test ${lt_cv_path_MAGIC_CMD+y}
9009 then :
9010 printf %s "(cached) " >&6
9011 else case e in #(
9012 e) case $MAGIC_CMD in
9013 [\\/*] | ?:[\\/]*)
9014 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9015 ;;
9016 *)
9017 lt_save_MAGIC_CMD=$MAGIC_CMD
9018 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9020 for ac_dir in $ac_dummy; do
9021 IFS=$lt_save_ifs
9022 test -z "$ac_dir" && ac_dir=.
9023 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9024 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9025 if test -n "$file_magic_test_file"; then
9026 case $deplibs_check_method in
9027 "file_magic "*)
9028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9029 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9031 $EGREP "$file_magic_regex" > /dev/null; then
9032 :
9033 else
9034 cat <<_LT_EOF 1>&2
9035
9036 *** Warning: the command libtool uses to detect shared libraries,
9037 *** $file_magic_cmd, produces output that libtool cannot recognize.
9038 *** The result is that libtool may fail to recognize shared libraries
9039 *** as such. This will affect the creation of libtool libraries that
9040 *** depend on shared libraries, but programs linked with such libtool
9041 *** libraries will work regardless of this problem. Nevertheless, you
9042 *** may want to report the problem to your system manager and/or to
9043 *** [email protected]
9044
9045 _LT_EOF
9046 fi ;;
9047 esac
9048 fi
9049 break
9050 fi
9051 done
9052 IFS=$lt_save_ifs
9053 MAGIC_CMD=$lt_save_MAGIC_CMD
9054 ;;
9055 esac ;;
9056 esac
9057 fi
9058
9059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9060 if test -n "$MAGIC_CMD"; then
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9062 printf "%s\n" "$MAGIC_CMD" >&6; }
9063 else
9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 printf "%s\n" "no" >&6; }
9066 fi
9067
9068
9069
9070
9071
9072 if test -z "$lt_cv_path_MAGIC_CMD"; then
9073 if test -n "$ac_tool_prefix"; then
9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9075 printf %s "checking for file... " >&6; }
9076 if test ${lt_cv_path_MAGIC_CMD+y}
9077 then :
9078 printf %s "(cached) " >&6
9079 else case e in #(
9080 e) case $MAGIC_CMD in
9081 [\\/*] | ?:[\\/]*)
9082 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9083 ;;
9084 *)
9085 lt_save_MAGIC_CMD=$MAGIC_CMD
9086 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9087 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9088 for ac_dir in $ac_dummy; do
9089 IFS=$lt_save_ifs
9090 test -z "$ac_dir" && ac_dir=.
9091 if test -f "$ac_dir/file"; then
9092 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9093 if test -n "$file_magic_test_file"; then
9094 case $deplibs_check_method in
9095 "file_magic "*)
9096 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9097 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9099 $EGREP "$file_magic_regex" > /dev/null; then
9100 :
9101 else
9102 cat <<_LT_EOF 1>&2
9103
9104 *** Warning: the command libtool uses to detect shared libraries,
9105 *** $file_magic_cmd, produces output that libtool cannot recognize.
9106 *** The result is that libtool may fail to recognize shared libraries
9107 *** as such. This will affect the creation of libtool libraries that
9108 *** depend on shared libraries, but programs linked with such libtool
9109 *** libraries will work regardless of this problem. Nevertheless, you
9110 *** may want to report the problem to your system manager and/or to
9111 *** [email protected]
9112
9113 _LT_EOF
9114 fi ;;
9115 esac
9116 fi
9117 break
9118 fi
9119 done
9120 IFS=$lt_save_ifs
9121 MAGIC_CMD=$lt_save_MAGIC_CMD
9122 ;;
9123 esac ;;
9124 esac
9125 fi
9126
9127 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9128 if test -n "$MAGIC_CMD"; then
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9130 printf "%s\n" "$MAGIC_CMD" >&6; }
9131 else
9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133 printf "%s\n" "no" >&6; }
9134 fi
9135
9136
9137 else
9138 MAGIC_CMD=:
9139 fi
9140 fi
9141
9142 fi
9143 ;;
9144 esac
9145
9146 # Use C for the default configuration in the libtool script
9147
9148 lt_save_CC=$CC
9149 ac_ext=c
9150 ac_cpp='$CPP $CPPFLAGS'
9151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9154
9155
9156 # Source file extension for C test sources.
9157 ac_ext=c
9158
9159 # Object file extension for compiled C test sources.
9160 objext=o
9161 objext=$objext
9162
9163 # Code to be used in simple compile tests
9164 lt_simple_compile_test_code="int some_variable = 0;"
9165
9166 # Code to be used in simple link tests
9167 lt_simple_link_test_code='int main(void){return(0);}'
9168
9169
9170
9171
9172
9173
9174
9175 # If no C compiler was specified, use CC.
9176 LTCC=${LTCC-"$CC"}
9177
9178 # If no C compiler flags were specified, use CFLAGS.
9179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9180
9181 # Allow CC to be a program name with arguments.
9182 compiler=$CC
9183
9184 # Save the default compiler, since it gets overwritten when the other
9185 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9186 compiler_DEFAULT=$CC
9187
9188 # save warnings/boilerplate of simple test code
9189 ac_outfile=conftest.$ac_objext
9190 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9191 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9192 _lt_compiler_boilerplate=`cat conftest.err`
9193 $RM conftest*
9194
9195 ac_outfile=conftest.$ac_objext
9196 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9197 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9198 _lt_linker_boilerplate=`cat conftest.err`
9199 $RM -r conftest*
9200
9201
9202 if test -n "$compiler"; then
9203
9204 lt_prog_compiler_no_builtin_flag=
9205
9206 if test yes = "$GCC"; then
9207 case $cc_basename in
9208 nvcc*)
9209 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9210 *)
9211 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9212 esac
9213
9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9215 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9216 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9217 then :
9218 printf %s "(cached) " >&6
9219 else case e in #(
9220 e) lt_cv_prog_compiler_rtti_exceptions=no
9221 ac_outfile=conftest.$ac_objext
9222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9223 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9224 # Insert the option either (1) after the last *FLAGS variable, or
9225 # (2) before a word containing "conftest.", or (3) at the end.
9226 # Note that $ac_compile itself does not contain backslashes and begins
9227 # with a dollar sign (not a hyphen), so the echo should work correctly.
9228 # The option is referenced via a variable to avoid confusing sed.
9229 lt_compile=`echo "$ac_compile" | $SED \
9230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9232 -e 's:$: $lt_compiler_flag:'`
9233 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9234 (eval "$lt_compile" 2>conftest.err)
9235 ac_status=$?
9236 cat conftest.err >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 if (exit $ac_status) && test -s "$ac_outfile"; then
9239 # The compiler can only warn and ignore the option if not recognized
9240 # So say no if there are warnings other than the usual output.
9241 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9243 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9244 lt_cv_prog_compiler_rtti_exceptions=yes
9245 fi
9246 fi
9247 $RM conftest*
9248 ;;
9249 esac
9250 fi
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9252 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9253
9254 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9255 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9256 else
9257 :
9258 fi
9259
9260 fi
9261
9262
9263
9264
9265
9266
9267 lt_prog_compiler_wl=
9268 lt_prog_compiler_pic=
9269 lt_prog_compiler_static=
9270
9271
9272 if test yes = "$GCC"; then
9273 lt_prog_compiler_wl='-Wl,'
9274 lt_prog_compiler_static='-static'
9275
9276 case $host_os in
9277 aix*)
9278 # All AIX code is PIC.
9279 if test ia64 = "$host_cpu"; then
9280 # AIX 5 now supports IA64 processor
9281 lt_prog_compiler_static='-Bstatic'
9282 fi
9283 lt_prog_compiler_pic='-fPIC'
9284 ;;
9285
9286 amigaos*)
9287 case $host_cpu in
9288 powerpc)
9289 # see comment about AmigaOS4 .so support
9290 lt_prog_compiler_pic='-fPIC'
9291 ;;
9292 m68k)
9293 # FIXME: we need at least 68020 code to build shared libraries, but
9294 # adding the '-m68020' flag to GCC prevents building anything better,
9295 # like '-m68040'.
9296 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9297 ;;
9298 esac
9299 ;;
9300
9301 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9302 # PIC is the default for these OSes.
9303 ;;
9304
9305 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9306 # This hack is so that the source file can tell whether it is being
9307 # built for inclusion in a dll (and should export symbols for example).
9308 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9309 # (--disable-auto-import) libraries
9310 lt_prog_compiler_pic='-DDLL_EXPORT'
9311 case $host_os in
9312 os2*)
9313 lt_prog_compiler_static='$wl-static'
9314 ;;
9315 esac
9316 ;;
9317
9318 darwin* | rhapsody*)
9319 # PIC is the default on this platform
9320 # Common symbols not allowed in MH_DYLIB files
9321 lt_prog_compiler_pic='-fno-common'
9322 ;;
9323
9324 haiku*)
9325 # PIC is the default for Haiku.
9326 # The "-static" flag exists, but is broken.
9327 lt_prog_compiler_static=
9328 ;;
9329
9330 hpux*)
9331 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9332 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9333 # sets the default TLS model and affects inlining.
9334 case $host_cpu in
9335 hppa*64*)
9336 # +Z the default
9337 ;;
9338 *)
9339 lt_prog_compiler_pic='-fPIC'
9340 ;;
9341 esac
9342 ;;
9343
9344 interix[3-9]*)
9345 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9346 # Instead, we relocate shared libraries at runtime.
9347 ;;
9348
9349 msdosdjgpp*)
9350 # Just because we use GCC doesn't mean we suddenly get shared libraries
9351 # on systems that don't support them.
9352 lt_prog_compiler_can_build_shared=no
9353 enable_shared=no
9354 ;;
9355
9356 *nto* | *qnx*)
9357 # QNX uses GNU C++, but need to define -shared option too, otherwise
9358 # it will coredump.
9359 lt_prog_compiler_pic='-fPIC -shared'
9360 ;;
9361
9362 sysv4*MP*)
9363 if test -d /usr/nec; then
9364 lt_prog_compiler_pic=-Kconform_pic
9365 fi
9366 ;;
9367
9368 *)
9369 lt_prog_compiler_pic='-fPIC'
9370 ;;
9371 esac
9372
9373 case $cc_basename in
9374 nvcc*) # Cuda Compiler Driver 2.2
9375 lt_prog_compiler_wl='-Xlinker '
9376 if test -n "$lt_prog_compiler_pic"; then
9377 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9378 fi
9379 ;;
9380 esac
9381 else
9382 # PORTME Check for flag to pass linker flags through the system compiler.
9383 case $host_os in
9384 aix*)
9385 lt_prog_compiler_wl='-Wl,'
9386 if test ia64 = "$host_cpu"; then
9387 # AIX 5 now supports IA64 processor
9388 lt_prog_compiler_static='-Bstatic'
9389 else
9390 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9391 fi
9392 ;;
9393
9394 darwin* | rhapsody*)
9395 # PIC is the default on this platform
9396 # Common symbols not allowed in MH_DYLIB files
9397 lt_prog_compiler_pic='-fno-common'
9398 case $cc_basename in
9399 nagfor*)
9400 # NAG Fortran compiler
9401 lt_prog_compiler_wl='-Wl,-Wl,,'
9402 lt_prog_compiler_pic='-PIC'
9403 lt_prog_compiler_static='-Bstatic'
9404 ;;
9405 esac
9406 ;;
9407
9408 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9409 # This hack is so that the source file can tell whether it is being
9410 # built for inclusion in a dll (and should export symbols for example).
9411 lt_prog_compiler_pic='-DDLL_EXPORT'
9412 case $host_os in
9413 os2*)
9414 lt_prog_compiler_static='$wl-static'
9415 ;;
9416 esac
9417 ;;
9418
9419 hpux9* | hpux10* | hpux11*)
9420 lt_prog_compiler_wl='-Wl,'
9421 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9422 # not for PA HP-UX.
9423 case $host_cpu in
9424 hppa*64*|ia64*)
9425 # +Z the default
9426 ;;
9427 *)
9428 lt_prog_compiler_pic='+Z'
9429 ;;
9430 esac
9431 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9432 lt_prog_compiler_static='$wl-a ${wl}archive'
9433 ;;
9434
9435 irix5* | irix6* | nonstopux*)
9436 lt_prog_compiler_wl='-Wl,'
9437 # PIC (with -KPIC) is the default.
9438 lt_prog_compiler_static='-non_shared'
9439 ;;
9440
9441 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9442 case $cc_basename in
9443 # old Intel for x86_64, which still supported -KPIC.
9444 ecc*)
9445 lt_prog_compiler_wl='-Wl,'
9446 lt_prog_compiler_pic='-KPIC'
9447 lt_prog_compiler_static='-static'
9448 ;;
9449 *flang* | ftn | f18* | f95*)
9450 # Flang compiler.
9451 lt_prog_compiler_wl='-Wl,'
9452 lt_prog_compiler_pic='-fPIC'
9453 lt_prog_compiler_static='-static'
9454 ;;
9455 # icc used to be incompatible with GCC.
9456 # ICC 10 doesn't accept -KPIC any more.
9457 icc* | ifort*)
9458 lt_prog_compiler_wl='-Wl,'
9459 lt_prog_compiler_pic='-fPIC'
9460 lt_prog_compiler_static='-static'
9461 ;;
9462 # Lahey Fortran 8.1.
9463 lf95*)
9464 lt_prog_compiler_wl='-Wl,'
9465 lt_prog_compiler_pic='--shared'
9466 lt_prog_compiler_static='--static'
9467 ;;
9468 nagfor*)
9469 # NAG Fortran compiler
9470 lt_prog_compiler_wl='-Wl,-Wl,,'
9471 lt_prog_compiler_pic='-PIC'
9472 lt_prog_compiler_static='-Bstatic'
9473 ;;
9474 tcc*)
9475 # Fabrice Bellard et al's Tiny C Compiler
9476 lt_prog_compiler_wl='-Wl,'
9477 lt_prog_compiler_pic='-fPIC'
9478 lt_prog_compiler_static='-static'
9479 ;;
9480 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9481 # Portland Group compilers (*not* the Pentium gcc compiler,
9482 # which looks to be a dead project)
9483 lt_prog_compiler_wl='-Wl,'
9484 lt_prog_compiler_pic='-fpic'
9485 lt_prog_compiler_static='-Bstatic'
9486 ;;
9487 ccc*)
9488 lt_prog_compiler_wl='-Wl,'
9489 # All Alpha code is PIC.
9490 lt_prog_compiler_static='-non_shared'
9491 ;;
9492 xl* | bgxl* | bgf* | mpixl*)
9493 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9494 lt_prog_compiler_wl='-Wl,'
9495 lt_prog_compiler_pic='-qpic'
9496 lt_prog_compiler_static='-qstaticlink'
9497 ;;
9498 *)
9499 case `$CC -V 2>&1 | $SED 5q` in
9500 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9501 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9502 lt_prog_compiler_pic='-KPIC'
9503 lt_prog_compiler_static='-Bstatic'
9504 lt_prog_compiler_wl=''
9505 ;;
9506 *Sun\ F* | *Sun*Fortran*)
9507 lt_prog_compiler_pic='-KPIC'
9508 lt_prog_compiler_static='-Bstatic'
9509 lt_prog_compiler_wl='-Qoption ld '
9510 ;;
9511 *Sun\ C*)
9512 # Sun C 5.9
9513 lt_prog_compiler_pic='-KPIC'
9514 lt_prog_compiler_static='-Bstatic'
9515 lt_prog_compiler_wl='-Wl,'
9516 ;;
9517 *Intel*\ [CF]*Compiler*)
9518 lt_prog_compiler_wl='-Wl,'
9519 lt_prog_compiler_pic='-fPIC'
9520 lt_prog_compiler_static='-static'
9521 ;;
9522 *Portland\ Group*)
9523 lt_prog_compiler_wl='-Wl,'
9524 lt_prog_compiler_pic='-fpic'
9525 lt_prog_compiler_static='-Bstatic'
9526 ;;
9527 esac
9528 ;;
9529 esac
9530 ;;
9531
9532 newsos6)
9533 lt_prog_compiler_pic='-KPIC'
9534 lt_prog_compiler_static='-Bstatic'
9535 ;;
9536
9537 *-mlibc)
9538 lt_prog_compiler_wl='-Wl,'
9539 lt_prog_compiler_pic='-fPIC'
9540 lt_prog_compiler_static='-static'
9541 ;;
9542
9543 *nto* | *qnx*)
9544 # QNX uses GNU C++, but need to define -shared option too, otherwise
9545 # it will coredump.
9546 lt_prog_compiler_pic='-fPIC -shared'
9547 ;;
9548
9549 osf3* | osf4* | osf5*)
9550 lt_prog_compiler_wl='-Wl,'
9551 # All OSF/1 code is PIC.
9552 lt_prog_compiler_static='-non_shared'
9553 ;;
9554
9555 rdos*)
9556 lt_prog_compiler_static='-non_shared'
9557 ;;
9558
9559 serenity*)
9560 ;;
9561
9562 solaris*)
9563 lt_prog_compiler_pic='-KPIC'
9564 lt_prog_compiler_static='-Bstatic'
9565 case $cc_basename in
9566 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9567 lt_prog_compiler_wl='-Qoption ld ';;
9568 *)
9569 lt_prog_compiler_wl='-Wl,';;
9570 esac
9571 ;;
9572
9573 sunos4*)
9574 lt_prog_compiler_wl='-Qoption ld '
9575 lt_prog_compiler_pic='-PIC'
9576 lt_prog_compiler_static='-Bstatic'
9577 ;;
9578
9579 sysv4 | sysv4.2uw2* | sysv4.3*)
9580 lt_prog_compiler_wl='-Wl,'
9581 lt_prog_compiler_pic='-KPIC'
9582 lt_prog_compiler_static='-Bstatic'
9583 ;;
9584
9585 sysv4*MP*)
9586 if test -d /usr/nec; then
9587 lt_prog_compiler_pic='-Kconform_pic'
9588 lt_prog_compiler_static='-Bstatic'
9589 fi
9590 ;;
9591
9592 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9593 lt_prog_compiler_wl='-Wl,'
9594 lt_prog_compiler_pic='-KPIC'
9595 lt_prog_compiler_static='-Bstatic'
9596 ;;
9597
9598 unicos*)
9599 lt_prog_compiler_wl='-Wl,'
9600 lt_prog_compiler_can_build_shared=no
9601 ;;
9602
9603 uts4*)
9604 lt_prog_compiler_pic='-pic'
9605 lt_prog_compiler_static='-Bstatic'
9606 ;;
9607
9608 *)
9609 lt_prog_compiler_can_build_shared=no
9610 ;;
9611 esac
9612 fi
9613
9614 case $host_os in
9615 # For platforms that do not support PIC, -DPIC is meaningless:
9616 *djgpp*)
9617 lt_prog_compiler_pic=
9618 ;;
9619 *)
9620 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9621 ;;
9622 esac
9623
9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9625 printf %s "checking for $compiler option to produce PIC... " >&6; }
9626 if test ${lt_cv_prog_compiler_pic+y}
9627 then :
9628 printf %s "(cached) " >&6
9629 else case e in #(
9630 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9631 esac
9632 fi
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9634 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9635 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9636
9637 #
9638 # Check to make sure the PIC flag actually works.
9639 #
9640 if test -n "$lt_prog_compiler_pic"; then
9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9642 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9643 if test ${lt_cv_prog_compiler_pic_works+y}
9644 then :
9645 printf %s "(cached) " >&6
9646 else case e in #(
9647 e) lt_cv_prog_compiler_pic_works=no
9648 ac_outfile=conftest.$ac_objext
9649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9650 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9651 # Insert the option either (1) after the last *FLAGS variable, or
9652 # (2) before a word containing "conftest.", or (3) at the end.
9653 # Note that $ac_compile itself does not contain backslashes and begins
9654 # with a dollar sign (not a hyphen), so the echo should work correctly.
9655 # The option is referenced via a variable to avoid confusing sed.
9656 lt_compile=`echo "$ac_compile" | $SED \
9657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9659 -e 's:$: $lt_compiler_flag:'`
9660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9661 (eval "$lt_compile" 2>conftest.err)
9662 ac_status=$?
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 if (exit $ac_status) && test -s "$ac_outfile"; then
9666 # The compiler can only warn and ignore the option if not recognized
9667 # So say no if there are warnings other than the usual output.
9668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9671 lt_cv_prog_compiler_pic_works=yes
9672 fi
9673 fi
9674 $RM conftest*
9675 ;;
9676 esac
9677 fi
9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9679 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9680
9681 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9682 case $lt_prog_compiler_pic in
9683 "" | " "*) ;;
9684 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9685 esac
9686 else
9687 lt_prog_compiler_pic=
9688 lt_prog_compiler_can_build_shared=no
9689 fi
9690
9691 fi
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703 #
9704 # Check to make sure the static flag actually works.
9705 #
9706 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9708 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9709 if test ${lt_cv_prog_compiler_static_works+y}
9710 then :
9711 printf %s "(cached) " >&6
9712 else case e in #(
9713 e) lt_cv_prog_compiler_static_works=no
9714 save_LDFLAGS=$LDFLAGS
9715 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9716 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9717 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9718 # The linker can only warn and ignore the option if not recognized
9719 # So say no if there are warnings
9720 if test -s conftest.err; then
9721 # Append any errors to the config.log.
9722 cat conftest.err 1>&5
9723 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9725 if diff conftest.exp conftest.er2 >/dev/null; then
9726 lt_cv_prog_compiler_static_works=yes
9727 fi
9728 else
9729 lt_cv_prog_compiler_static_works=yes
9730 fi
9731 fi
9732 $RM -r conftest*
9733 LDFLAGS=$save_LDFLAGS
9734 ;;
9735 esac
9736 fi
9737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9738 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9739
9740 if test yes = "$lt_cv_prog_compiler_static_works"; then
9741 :
9742 else
9743 lt_prog_compiler_static=
9744 fi
9745
9746
9747
9748
9749
9750
9751
9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9753 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9754 if test ${lt_cv_prog_compiler_c_o+y}
9755 then :
9756 printf %s "(cached) " >&6
9757 else case e in #(
9758 e) lt_cv_prog_compiler_c_o=no
9759 $RM -r conftest 2>/dev/null
9760 mkdir conftest
9761 cd conftest
9762 mkdir out
9763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9764
9765 lt_compiler_flag="-o out/conftest2.$ac_objext"
9766 # Insert the option either (1) after the last *FLAGS variable, or
9767 # (2) before a word containing "conftest.", or (3) at the end.
9768 # Note that $ac_compile itself does not contain backslashes and begins
9769 # with a dollar sign (not a hyphen), so the echo should work correctly.
9770 lt_compile=`echo "$ac_compile" | $SED \
9771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9773 -e 's:$: $lt_compiler_flag:'`
9774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9775 (eval "$lt_compile" 2>out/conftest.err)
9776 ac_status=$?
9777 cat out/conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9780 then
9781 # The compiler can only warn and ignore the option if not recognized
9782 # So say no if there are warnings
9783 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9784 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9785 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9786 lt_cv_prog_compiler_c_o=yes
9787 fi
9788 fi
9789 chmod u+w . 2>&5
9790 $RM conftest*
9791 # SGI C++ compiler will create directory out/ii_files/ for
9792 # template instantiation
9793 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9794 $RM out/* && rmdir out
9795 cd ..
9796 $RM -r conftest
9797 $RM conftest*
9798 ;;
9799 esac
9800 fi
9801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9802 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9803
9804
9805
9806
9807
9808
9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9810 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9811 if test ${lt_cv_prog_compiler_c_o+y}
9812 then :
9813 printf %s "(cached) " >&6
9814 else case e in #(
9815 e) lt_cv_prog_compiler_c_o=no
9816 $RM -r conftest 2>/dev/null
9817 mkdir conftest
9818 cd conftest
9819 mkdir out
9820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9821
9822 lt_compiler_flag="-o out/conftest2.$ac_objext"
9823 # Insert the option either (1) after the last *FLAGS variable, or
9824 # (2) before a word containing "conftest.", or (3) at the end.
9825 # Note that $ac_compile itself does not contain backslashes and begins
9826 # with a dollar sign (not a hyphen), so the echo should work correctly.
9827 lt_compile=`echo "$ac_compile" | $SED \
9828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9830 -e 's:$: $lt_compiler_flag:'`
9831 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9832 (eval "$lt_compile" 2>out/conftest.err)
9833 ac_status=$?
9834 cat out/conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9837 then
9838 # The compiler can only warn and ignore the option if not recognized
9839 # So say no if there are warnings
9840 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9843 lt_cv_prog_compiler_c_o=yes
9844 fi
9845 fi
9846 chmod u+w . 2>&5
9847 $RM conftest*
9848 # SGI C++ compiler will create directory out/ii_files/ for
9849 # template instantiation
9850 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9851 $RM out/* && rmdir out
9852 cd ..
9853 $RM -r conftest
9854 $RM conftest*
9855 ;;
9856 esac
9857 fi
9858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9859 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9860
9861
9862
9863
9864 hard_links=nottested
9865 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9866 # do not overwrite the value of need_locks provided by the user
9867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9868 printf %s "checking if we can lock with hard links... " >&6; }
9869 hard_links=yes
9870 $RM conftest*
9871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9872 touch conftest.a
9873 ln conftest.a conftest.b 2>&5 || hard_links=no
9874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9876 printf "%s\n" "$hard_links" >&6; }
9877 if test no = "$hard_links"; then
9878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9879 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9880 need_locks=warn
9881 fi
9882 else
9883 need_locks=no
9884 fi
9885
9886
9887
9888
9889
9890
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9892 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9893
9894 runpath_var=
9895 allow_undefined_flag=
9896 always_export_symbols=no
9897 archive_cmds=
9898 archive_expsym_cmds=
9899 compiler_needs_object=no
9900 enable_shared_with_static_runtimes=no
9901 export_dynamic_flag_spec=
9902 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9903 hardcode_automatic=no
9904 hardcode_direct=no
9905 hardcode_direct_absolute=no
9906 hardcode_libdir_flag_spec=
9907 hardcode_libdir_separator=
9908 hardcode_minus_L=no
9909 hardcode_shlibpath_var=unsupported
9910 inherit_rpath=no
9911 link_all_deplibs=unknown
9912 module_cmds=
9913 module_expsym_cmds=
9914 old_archive_from_new_cmds=
9915 old_archive_from_expsyms_cmds=
9916 thread_safe_flag_spec=
9917 whole_archive_flag_spec=
9918 # include_expsyms should be a list of space-separated symbols to be *always*
9919 # included in the symbol list
9920 include_expsyms=
9921 # exclude_expsyms can be an extended regexp of symbols to exclude
9922 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9923 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9924 # as well as any symbol that contains 'd'.
9925 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9926 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9927 # platforms (ab)use it in PIC code, but their linkers get confused if
9928 # the symbol is explicitly referenced. Since portable code cannot
9929 # rely on this symbol name, it's probably fine to never include it in
9930 # preloaded symbol tables.
9931 # Exclude shared library initialization/finalization symbols.
9932 extract_expsyms_cmds=
9933
9934 case $host_os in
9935 cygwin* | mingw* | windows* | pw32* | cegcc*)
9936 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9937 # When not using gcc, we currently assume that we are using
9938 # Microsoft Visual C++ or Intel C++ Compiler.
9939 if test yes != "$GCC"; then
9940 with_gnu_ld=no
9941 fi
9942 ;;
9943 interix*)
9944 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9945 with_gnu_ld=yes
9946 ;;
9947 esac
9948
9949 ld_shlibs=yes
9950
9951 # On some targets, GNU ld is compatible enough with the native linker
9952 # that we're better off using the native interface for both.
9953 lt_use_gnu_ld_interface=no
9954 if test yes = "$with_gnu_ld"; then
9955 case $host_os in
9956 aix*)
9957 # The AIX port of GNU ld has always aspired to compatibility
9958 # with the native linker. However, as the warning in the GNU ld
9959 # block says, versions before 2.19.5* couldn't really create working
9960 # shared libraries, regardless of the interface used.
9961 case `$LD -v 2>&1` in
9962 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9963 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9964 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9965 *)
9966 lt_use_gnu_ld_interface=yes
9967 ;;
9968 esac
9969 ;;
9970 *)
9971 lt_use_gnu_ld_interface=yes
9972 ;;
9973 esac
9974 fi
9975
9976 if test yes = "$lt_use_gnu_ld_interface"; then
9977 # If archive_cmds runs LD, not CC, wlarc should be empty
9978 wlarc='$wl'
9979
9980 # Set some defaults for GNU ld with shared library support. These
9981 # are reset later if shared libraries are not supported. Putting them
9982 # here allows them to be overridden if necessary.
9983 runpath_var=LD_RUN_PATH
9984 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9985 export_dynamic_flag_spec='$wl--export-dynamic'
9986 # ancient GNU ld didn't support --whole-archive et. al.
9987 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9988 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9989 else
9990 whole_archive_flag_spec=
9991 fi
9992 supports_anon_versioning=no
9993 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9994 *GNU\ gold*) supports_anon_versioning=yes ;;
9995 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9996 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9997 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9998 *\ 2.11.*) ;; # other 2.11 versions
9999 *) supports_anon_versioning=yes ;;
10000 esac
10001
10002 # See if GNU ld supports shared libraries.
10003 case $host_os in
10004 aix[3-9]*)
10005 # On AIX/PPC, the GNU linker is very broken
10006 if test ia64 != "$host_cpu"; then
10007 ld_shlibs=no
10008 cat <<_LT_EOF 1>&2
10009
10010 *** Warning: the GNU linker, at least up to release 2.19, is reported
10011 *** to be unable to reliably create shared libraries on AIX.
10012 *** Therefore, libtool is disabling shared libraries support. If you
10013 *** really care for shared libraries, you may want to install binutils
10014 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10015 *** You will then need to restart the configuration process.
10016
10017 _LT_EOF
10018 fi
10019 ;;
10020
10021 amigaos*)
10022 case $host_cpu in
10023 powerpc)
10024 # see comment about AmigaOS4 .so support
10025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10026 archive_expsym_cmds=''
10027 ;;
10028 m68k)
10029 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)'
10030 hardcode_libdir_flag_spec='-L$libdir'
10031 hardcode_minus_L=yes
10032 ;;
10033 esac
10034 ;;
10035
10036 beos*)
10037 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10038 allow_undefined_flag=unsupported
10039 # Joseph Beckenbach <[email protected]> says some releases of gcc
10040 # support --undefined. This deserves some investigation. FIXME
10041 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10042 else
10043 ld_shlibs=no
10044 fi
10045 ;;
10046
10047 cygwin* | mingw* | windows* | pw32* | cegcc*)
10048 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10049 # as there is no search path for DLLs.
10050 hardcode_libdir_flag_spec='-L$libdir'
10051 export_dynamic_flag_spec='$wl--export-all-symbols'
10052 allow_undefined_flag=unsupported
10053 always_export_symbols=no
10054 enable_shared_with_static_runtimes=yes
10055 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'
10056 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10057 file_list_spec='@'
10058
10059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10061 # If the export-symbols file already is a .def file, use it as
10062 # is; otherwise, prepend EXPORTS...
10063 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10064 cp $export_symbols $output_objdir/$soname.def;
10065 else
10066 echo EXPORTS > $output_objdir/$soname.def;
10067 cat $export_symbols >> $output_objdir/$soname.def;
10068 fi~
10069 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10070 else
10071 ld_shlibs=no
10072 fi
10073 ;;
10074
10075 haiku*)
10076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10077 link_all_deplibs=no
10078 ;;
10079
10080 os2*)
10081 hardcode_libdir_flag_spec='-L$libdir'
10082 hardcode_minus_L=yes
10083 allow_undefined_flag=unsupported
10084 shrext_cmds=.dll
10085 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10086 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10087 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10088 $ECHO EXPORTS >> $output_objdir/$libname.def~
10089 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10090 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10091 emximp -o $lib $output_objdir/$libname.def'
10092 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10093 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10094 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10095 $ECHO EXPORTS >> $output_objdir/$libname.def~
10096 prefix_cmds="$SED"~
10097 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10098 prefix_cmds="$prefix_cmds -e 1d";
10099 fi~
10100 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10101 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10102 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10103 emximp -o $lib $output_objdir/$libname.def'
10104 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10105 enable_shared_with_static_runtimes=yes
10106 file_list_spec='@'
10107 ;;
10108
10109 interix[3-9]*)
10110 hardcode_direct=no
10111 hardcode_shlibpath_var=no
10112 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10113 export_dynamic_flag_spec='$wl-E'
10114 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10115 # Instead, shared libraries are loaded at an image base (0x10000000 by
10116 # default) and relocated if they conflict, which is a slow very memory
10117 # consuming and fragmenting process. To avoid this, we pick a random,
10118 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10119 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10120 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10121 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'
10122 ;;
10123
10124 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10125 tmp_diet=no
10126 if test linux-dietlibc = "$host_os"; then
10127 case $cc_basename in
10128 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10129 esac
10130 fi
10131 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10132 && test no = "$tmp_diet"
10133 then
10134 tmp_addflag=' $pic_flag'
10135 tmp_sharedflag='-shared'
10136 case $cc_basename,$host_cpu in
10137 pgcc*) # Portland Group C compiler
10138 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'
10139 tmp_addflag=' $pic_flag'
10140 ;;
10141 pgf77* | pgf90* | pgf95* | pgfortran*)
10142 # Portland Group f77 and f90 compilers
10143 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'
10144 tmp_addflag=' $pic_flag -Mnomain' ;;
10145 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10146 tmp_addflag=' -i_dynamic' ;;
10147 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10148 tmp_addflag=' -i_dynamic -nofor_main' ;;
10149 ifc* | ifort*) # Intel Fortran compiler
10150 tmp_addflag=' -nofor_main' ;;
10151 lf95*) # Lahey Fortran 8.1
10152 whole_archive_flag_spec=
10153 tmp_sharedflag='--shared' ;;
10154 nagfor*) # NAGFOR 5.3
10155 tmp_sharedflag='-Wl,-shared' ;;
10156 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10157 tmp_sharedflag='-qmkshrobj'
10158 tmp_addflag= ;;
10159 nvcc*) # Cuda Compiler Driver 2.2
10160 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'
10161 compiler_needs_object=yes
10162 ;;
10163 esac
10164 case `$CC -V 2>&1 | $SED 5q` in
10165 *Sun\ C*) # Sun C 5.9
10166 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'
10167 compiler_needs_object=yes
10168 tmp_sharedflag='-G' ;;
10169 *Sun\ F*) # Sun Fortran 8.3
10170 tmp_sharedflag='-G' ;;
10171 esac
10172 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10173
10174 if test yes = "$supports_anon_versioning"; then
10175 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10176 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10177 echo "local: *; };" >> $output_objdir/$libname.ver~
10178 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10179 fi
10180
10181 case $cc_basename in
10182 tcc*)
10183 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10184 export_dynamic_flag_spec='-rdynamic'
10185 ;;
10186 xlf* | bgf* | bgxlf* | mpixlf*)
10187 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10188 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10189 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10190 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10191 if test yes = "$supports_anon_versioning"; then
10192 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10193 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10194 echo "local: *; };" >> $output_objdir/$libname.ver~
10195 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10196 fi
10197 ;;
10198 esac
10199 else
10200 ld_shlibs=no
10201 fi
10202 ;;
10203
10204 *-mlibc)
10205 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10206 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10207 ;;
10208
10209 netbsd* | netbsdelf*-gnu)
10210 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10211 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10212 wlarc=
10213 else
10214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10215 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10216 fi
10217 ;;
10218
10219 solaris*)
10220 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10221 ld_shlibs=no
10222 cat <<_LT_EOF 1>&2
10223
10224 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10225 *** create shared libraries on Solaris systems. Therefore, libtool
10226 *** is disabling shared libraries support. We urge you to upgrade GNU
10227 *** binutils to release 2.9.1 or newer. Another option is to modify
10228 *** your PATH or compiler configuration so that the native linker is
10229 *** used, and then restart.
10230
10231 _LT_EOF
10232 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10233 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10234 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10235 else
10236 ld_shlibs=no
10237 fi
10238 ;;
10239
10240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10241 case `$LD -v 2>&1` in
10242 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10243 ld_shlibs=no
10244 cat <<_LT_EOF 1>&2
10245
10246 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10247 *** reliably create shared libraries on SCO systems. Therefore, libtool
10248 *** is disabling shared libraries support. We urge you to upgrade GNU
10249 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10250 *** your PATH or compiler configuration so that the native linker is
10251 *** used, and then restart.
10252
10253 _LT_EOF
10254 ;;
10255 *)
10256 # For security reasons, it is highly recommended that you always
10257 # use absolute paths for naming shared libraries, and exclude the
10258 # DT_RUNPATH tag from executables and libraries. But doing so
10259 # requires that you compile everything twice, which is a pain.
10260 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10261 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10264 else
10265 ld_shlibs=no
10266 fi
10267 ;;
10268 esac
10269 ;;
10270
10271 sunos4*)
10272 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10273 wlarc=
10274 hardcode_direct=yes
10275 hardcode_shlibpath_var=no
10276 ;;
10277
10278 *)
10279 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10281 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10282 else
10283 ld_shlibs=no
10284 fi
10285 ;;
10286 esac
10287
10288 if test no = "$ld_shlibs"; then
10289 runpath_var=
10290 hardcode_libdir_flag_spec=
10291 export_dynamic_flag_spec=
10292 whole_archive_flag_spec=
10293 fi
10294 else
10295 # PORTME fill in a description of your system's linker (not GNU ld)
10296 case $host_os in
10297 aix3*)
10298 allow_undefined_flag=unsupported
10299 always_export_symbols=yes
10300 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'
10301 # Note: this linker hardcodes the directories in LIBPATH if there
10302 # are no directories specified by -L.
10303 hardcode_minus_L=yes
10304 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10305 # Neither direct hardcoding nor static linking is supported with a
10306 # broken collect2.
10307 hardcode_direct=unsupported
10308 fi
10309 ;;
10310
10311 aix[4-9]*)
10312 if test ia64 = "$host_cpu"; then
10313 # On IA64, the linker does run time linking by default, so we don't
10314 # have to do anything special.
10315 aix_use_runtimelinking=no
10316 exp_sym_flag='-Bexport'
10317 no_entry_flag=
10318 else
10319 # If we're using GNU nm, then we don't want the "-C" option.
10320 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10321 # Without the "-l" option, or with the "-B" option, AIX nm treats
10322 # weak defined symbols like other global defined symbols, whereas
10323 # GNU nm marks them as "W".
10324 # While the 'weak' keyword is ignored in the Export File, we need
10325 # it in the Import File for the 'aix-soname' feature, so we have
10326 # to replace the "-B" option with "-P" for AIX nm.
10327 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10328 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'
10329 else
10330 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'
10331 fi
10332 aix_use_runtimelinking=no
10333
10334 # Test if we are trying to use run time linking or normal
10335 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10336 # have runtime linking enabled, and use it for executables.
10337 # For shared libraries, we enable/disable runtime linking
10338 # depending on the kind of the shared library created -
10339 # when "with_aix_soname,aix_use_runtimelinking" is:
10340 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10341 # "aix,yes" lib.so shared, rtl:yes, for executables
10342 # lib.a static archive
10343 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10344 # lib.a(lib.so.V) shared, rtl:no, for executables
10345 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10346 # lib.a(lib.so.V) shared, rtl:no
10347 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10348 # lib.a static archive
10349 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10350 for ld_flag in $LDFLAGS; do
10351 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10352 aix_use_runtimelinking=yes
10353 break
10354 fi
10355 done
10356 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10357 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10358 # so we don't have lib.a shared libs to link our executables.
10359 # We have to force runtime linking in this case.
10360 aix_use_runtimelinking=yes
10361 LDFLAGS="$LDFLAGS -Wl,-brtl"
10362 fi
10363 ;;
10364 esac
10365
10366 exp_sym_flag='-bexport'
10367 no_entry_flag='-bnoentry'
10368 fi
10369
10370 # When large executables or shared objects are built, AIX ld can
10371 # have problems creating the table of contents. If linking a library
10372 # or program results in "error TOC overflow" add -mminimal-toc to
10373 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10374 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10375
10376 archive_cmds=''
10377 hardcode_direct=yes
10378 hardcode_direct_absolute=yes
10379 hardcode_libdir_separator=':'
10380 link_all_deplibs=yes
10381 file_list_spec='$wl-f,'
10382 case $with_aix_soname,$aix_use_runtimelinking in
10383 aix,*) ;; # traditional, no import file
10384 svr4,* | *,yes) # use import file
10385 # The Import File defines what to hardcode.
10386 hardcode_direct=no
10387 hardcode_direct_absolute=no
10388 ;;
10389 esac
10390
10391 if test yes = "$GCC"; then
10392 case $host_os in aix4.[012]|aix4.[012].*)
10393 # We only want to do this on AIX 4.2 and lower, the check
10394 # below for broken collect2 doesn't work under 4.3+
10395 collect2name=`$CC -print-prog-name=collect2`
10396 if test -f "$collect2name" &&
10397 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10398 then
10399 # We have reworked collect2
10400 :
10401 else
10402 # We have old collect2
10403 hardcode_direct=unsupported
10404 # It fails to find uninstalled libraries when the uninstalled
10405 # path is not listed in the libpath. Setting hardcode_minus_L
10406 # to unsupported forces relinking
10407 hardcode_minus_L=yes
10408 hardcode_libdir_flag_spec='-L$libdir'
10409 hardcode_libdir_separator=
10410 fi
10411 ;;
10412 esac
10413 shared_flag='-shared'
10414 if test yes = "$aix_use_runtimelinking"; then
10415 shared_flag="$shared_flag "'$wl-G'
10416 fi
10417 # Need to ensure runtime linking is disabled for the traditional
10418 # shared library, or the linker may eventually find shared libraries
10419 # /with/ Import File - we do not want to mix them.
10420 shared_flag_aix='-shared'
10421 shared_flag_svr4='-shared $wl-G'
10422 else
10423 # not using gcc
10424 if test ia64 = "$host_cpu"; then
10425 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10426 # chokes on -Wl,-G. The following line is correct:
10427 shared_flag='-G'
10428 else
10429 if test yes = "$aix_use_runtimelinking"; then
10430 shared_flag='$wl-G'
10431 else
10432 shared_flag='$wl-bM:SRE'
10433 fi
10434 shared_flag_aix='$wl-bM:SRE'
10435 shared_flag_svr4='$wl-G'
10436 fi
10437 fi
10438
10439 export_dynamic_flag_spec='$wl-bexpall'
10440 # It seems that -bexpall does not export symbols beginning with
10441 # underscore (_), so it is better to generate a list of symbols to export.
10442 always_export_symbols=yes
10443 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10444 # Warning - without using the other runtime loading flags (-brtl),
10445 # -berok will link without error, but may produce a broken library.
10446 allow_undefined_flag='-berok'
10447 # Determine the default libpath from the value encoded in an
10448 # empty executable.
10449 if test set = "${lt_cv_aix_libpath+set}"; then
10450 aix_libpath=$lt_cv_aix_libpath
10451 else
10452 if test ${lt_cv_aix_libpath_+y}
10453 then :
10454 printf %s "(cached) " >&6
10455 else case e in #(
10456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10458
10459 int
10460 main (void)
10461 {
10462
10463 ;
10464 return 0;
10465 }
10466 _ACEOF
10467 if ac_fn_c_try_link "$LINENO"
10468 then :
10469
10470 lt_aix_libpath_sed='
10471 /Import File Strings/,/^$/ {
10472 /^0/ {
10473 s/^0 *\([^ ]*\) *$/\1/
10474 p
10475 }
10476 }'
10477 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478 # Check for a 64-bit object if we didn't find anything.
10479 if test -z "$lt_cv_aix_libpath_"; then
10480 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481 fi
10482 fi
10483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10484 conftest$ac_exeext conftest.$ac_ext
10485 if test -z "$lt_cv_aix_libpath_"; then
10486 lt_cv_aix_libpath_=/usr/lib:/lib
10487 fi
10488 ;;
10489 esac
10490 fi
10491
10492 aix_libpath=$lt_cv_aix_libpath_
10493 fi
10494
10495 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10496 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
10497 else
10498 if test ia64 = "$host_cpu"; then
10499 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10500 allow_undefined_flag="-z nodefs"
10501 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"
10502 else
10503 # Determine the default libpath from the value encoded in an
10504 # empty executable.
10505 if test set = "${lt_cv_aix_libpath+set}"; then
10506 aix_libpath=$lt_cv_aix_libpath
10507 else
10508 if test ${lt_cv_aix_libpath_+y}
10509 then :
10510 printf %s "(cached) " >&6
10511 else case e in #(
10512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10514
10515 int
10516 main (void)
10517 {
10518
10519 ;
10520 return 0;
10521 }
10522 _ACEOF
10523 if ac_fn_c_try_link "$LINENO"
10524 then :
10525
10526 lt_aix_libpath_sed='
10527 /Import File Strings/,/^$/ {
10528 /^0/ {
10529 s/^0 *\([^ ]*\) *$/\1/
10530 p
10531 }
10532 }'
10533 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10534 # Check for a 64-bit object if we didn't find anything.
10535 if test -z "$lt_cv_aix_libpath_"; then
10536 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10537 fi
10538 fi
10539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10540 conftest$ac_exeext conftest.$ac_ext
10541 if test -z "$lt_cv_aix_libpath_"; then
10542 lt_cv_aix_libpath_=/usr/lib:/lib
10543 fi
10544 ;;
10545 esac
10546 fi
10547
10548 aix_libpath=$lt_cv_aix_libpath_
10549 fi
10550
10551 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10552 # Warning - without using the other run time loading flags,
10553 # -berok will link without error, but may produce a broken library.
10554 no_undefined_flag=' $wl-bernotok'
10555 allow_undefined_flag=' $wl-berok'
10556 if test yes = "$with_gnu_ld"; then
10557 # We only use this code for GNU lds that support --whole-archive.
10558 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10559 else
10560 # Exported symbols can be pulled into shared objects from archives
10561 whole_archive_flag_spec='$convenience'
10562 fi
10563 archive_cmds_need_lc=yes
10564 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10565 # -brtl affects multiple linker settings, -berok does not and is overridden later
10566 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10567 if test svr4 != "$with_aix_soname"; then
10568 # This is similar to how AIX traditionally builds its shared libraries.
10569 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'
10570 fi
10571 if test aix != "$with_aix_soname"; then
10572 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'
10573 else
10574 # used by -dlpreopen to get the symbols
10575 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10576 fi
10577 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10578 fi
10579 fi
10580 ;;
10581
10582 amigaos*)
10583 case $host_cpu in
10584 powerpc)
10585 # see comment about AmigaOS4 .so support
10586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10587 archive_expsym_cmds=''
10588 ;;
10589 m68k)
10590 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)'
10591 hardcode_libdir_flag_spec='-L$libdir'
10592 hardcode_minus_L=yes
10593 ;;
10594 esac
10595 ;;
10596
10597 bsdi[45]*)
10598 export_dynamic_flag_spec=-rdynamic
10599 ;;
10600
10601 cygwin* | mingw* | windows* | pw32* | cegcc*)
10602 # When not using gcc, we currently assume that we are using
10603 # Microsoft Visual C++ or Intel C++ Compiler.
10604 # hardcode_libdir_flag_spec is actually meaningless, as there is
10605 # no search path for DLLs.
10606 case $cc_basename in
10607 cl* | icl*)
10608 # Native MSVC or ICC
10609 hardcode_libdir_flag_spec=' '
10610 allow_undefined_flag=unsupported
10611 always_export_symbols=yes
10612 file_list_spec='@'
10613 # Tell ltmain to make .lib files, not .a files.
10614 libext=lib
10615 # Tell ltmain to make .dll files, not .so files.
10616 shrext_cmds=.dll
10617 # FIXME: Setting linknames here is a bad hack.
10618 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10619 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10620 cp "$export_symbols" "$output_objdir/$soname.def";
10621 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10622 else
10623 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10624 fi~
10625 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10626 linknames='
10627 # The linker will not automatically build a static lib if we build a DLL.
10628 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10629 enable_shared_with_static_runtimes=yes
10630 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10631 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10632 # Don't use ranlib
10633 old_postinstall_cmds='chmod 644 $oldlib'
10634 postlink_cmds='lt_outputfile="@OUTPUT@"~
10635 lt_tool_outputfile="@TOOL_OUTPUT@"~
10636 case $lt_outputfile in
10637 *.exe|*.EXE) ;;
10638 *)
10639 lt_outputfile=$lt_outputfile.exe
10640 lt_tool_outputfile=$lt_tool_outputfile.exe
10641 ;;
10642 esac~
10643 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10644 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10645 $RM "$lt_outputfile.manifest";
10646 fi'
10647 ;;
10648 *)
10649 # Assume MSVC and ICC wrapper
10650 hardcode_libdir_flag_spec=' '
10651 allow_undefined_flag=unsupported
10652 # Tell ltmain to make .lib files, not .a files.
10653 libext=lib
10654 # Tell ltmain to make .dll files, not .so files.
10655 shrext_cmds=.dll
10656 # FIXME: Setting linknames here is a bad hack.
10657 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10658 # The linker will automatically build a .lib file if we build a DLL.
10659 old_archive_from_new_cmds='true'
10660 # FIXME: Should let the user specify the lib program.
10661 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10662 enable_shared_with_static_runtimes=yes
10663 ;;
10664 esac
10665 ;;
10666
10667 darwin* | rhapsody*)
10668
10669
10670 archive_cmds_need_lc=no
10671 hardcode_direct=no
10672 hardcode_automatic=yes
10673 hardcode_shlibpath_var=unsupported
10674 if test yes = "$lt_cv_ld_force_load"; then
10675 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\"`'
10676
10677 else
10678 whole_archive_flag_spec=''
10679 fi
10680 link_all_deplibs=yes
10681 allow_undefined_flag=$_lt_dar_allow_undefined
10682 case $cc_basename in
10683 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10684 *) _lt_dar_can_shared=$GCC ;;
10685 esac
10686 if test yes = "$_lt_dar_can_shared"; then
10687 output_verbose_link_cmd=func_echo_all
10688 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10689 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10690 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"
10691 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"
10692
10693 else
10694 ld_shlibs=no
10695 fi
10696
10697 ;;
10698
10699 dgux*)
10700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10701 hardcode_libdir_flag_spec='-L$libdir'
10702 hardcode_shlibpath_var=no
10703 ;;
10704
10705 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10706 # support. Future versions do this automatically, but an explicit c++rt0.o
10707 # does not break anything, and helps significantly (at the cost of a little
10708 # extra space).
10709 freebsd2.2*)
10710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10711 hardcode_libdir_flag_spec='-R$libdir'
10712 hardcode_direct=yes
10713 hardcode_shlibpath_var=no
10714 ;;
10715
10716 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10717 freebsd2.*)
10718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10719 hardcode_direct=yes
10720 hardcode_minus_L=yes
10721 hardcode_shlibpath_var=no
10722 ;;
10723
10724 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10725 freebsd* | dragonfly* | midnightbsd*)
10726 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10727 hardcode_libdir_flag_spec='-R$libdir'
10728 hardcode_direct=yes
10729 hardcode_shlibpath_var=no
10730 ;;
10731
10732 hpux9*)
10733 if test yes = "$GCC"; then
10734 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'
10735 else
10736 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'
10737 fi
10738 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10739 hardcode_libdir_separator=:
10740 hardcode_direct=yes
10741
10742 # hardcode_minus_L: Not really in the search PATH,
10743 # but as the default location of the library.
10744 hardcode_minus_L=yes
10745 export_dynamic_flag_spec='$wl-E'
10746 ;;
10747
10748 hpux10*)
10749 if test yes,no = "$GCC,$with_gnu_ld"; then
10750 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10751 else
10752 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10753 fi
10754 if test no = "$with_gnu_ld"; then
10755 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10756 hardcode_libdir_separator=:
10757 hardcode_direct=yes
10758 hardcode_direct_absolute=yes
10759 export_dynamic_flag_spec='$wl-E'
10760 # hardcode_minus_L: Not really in the search PATH,
10761 # but as the default location of the library.
10762 hardcode_minus_L=yes
10763 fi
10764 ;;
10765
10766 hpux11*)
10767 if test yes,no = "$GCC,$with_gnu_ld"; then
10768 case $host_cpu in
10769 hppa*64*)
10770 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10771 ;;
10772 ia64*)
10773 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10774 ;;
10775 *)
10776 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10777 ;;
10778 esac
10779 else
10780 case $host_cpu in
10781 hppa*64*)
10782 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10783 ;;
10784 ia64*)
10785 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10786 ;;
10787 *)
10788
10789 # Older versions of the 11.00 compiler do not understand -b yet
10790 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10792 printf %s "checking if $CC understands -b... " >&6; }
10793 if test ${lt_cv_prog_compiler__b+y}
10794 then :
10795 printf %s "(cached) " >&6
10796 else case e in #(
10797 e) lt_cv_prog_compiler__b=no
10798 save_LDFLAGS=$LDFLAGS
10799 LDFLAGS="$LDFLAGS -b"
10800 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10802 # The linker can only warn and ignore the option if not recognized
10803 # So say no if there are warnings
10804 if test -s conftest.err; then
10805 # Append any errors to the config.log.
10806 cat conftest.err 1>&5
10807 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10809 if diff conftest.exp conftest.er2 >/dev/null; then
10810 lt_cv_prog_compiler__b=yes
10811 fi
10812 else
10813 lt_cv_prog_compiler__b=yes
10814 fi
10815 fi
10816 $RM -r conftest*
10817 LDFLAGS=$save_LDFLAGS
10818 ;;
10819 esac
10820 fi
10821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10822 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10823
10824 if test yes = "$lt_cv_prog_compiler__b"; then
10825 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10826 else
10827 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10828 fi
10829
10830 ;;
10831 esac
10832 fi
10833 if test no = "$with_gnu_ld"; then
10834 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10835 hardcode_libdir_separator=:
10836
10837 case $host_cpu in
10838 hppa*64*|ia64*)
10839 hardcode_direct=no
10840 hardcode_shlibpath_var=no
10841 ;;
10842 *)
10843 hardcode_direct=yes
10844 hardcode_direct_absolute=yes
10845 export_dynamic_flag_spec='$wl-E'
10846
10847 # hardcode_minus_L: Not really in the search PATH,
10848 # but as the default location of the library.
10849 hardcode_minus_L=yes
10850 ;;
10851 esac
10852 fi
10853 ;;
10854
10855 irix5* | irix6* | nonstopux*)
10856 if test yes = "$GCC"; then
10857 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'
10858 # Try to use the -exported_symbol ld option, if it does not
10859 # work, assume that -exports_file does not work either and
10860 # implicitly export all symbols.
10861 # This should be the same for all languages, so no per-tag cache variable.
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10863 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10864 if test ${lt_cv_irix_exported_symbol+y}
10865 then :
10866 printf %s "(cached) " >&6
10867 else case e in #(
10868 e) save_LDFLAGS=$LDFLAGS
10869 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10872 int foo (void) { return 0; }
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"
10875 then :
10876 lt_cv_irix_exported_symbol=yes
10877 else case e in #(
10878 e) lt_cv_irix_exported_symbol=no ;;
10879 esac
10880 fi
10881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10882 conftest$ac_exeext conftest.$ac_ext
10883 LDFLAGS=$save_LDFLAGS ;;
10884 esac
10885 fi
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10887 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10888 if test yes = "$lt_cv_irix_exported_symbol"; then
10889 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'
10890 fi
10891 else
10892 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'
10893 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'
10894 fi
10895 archive_cmds_need_lc='no'
10896 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10897 hardcode_libdir_separator=:
10898 inherit_rpath=yes
10899 link_all_deplibs=yes
10900 ;;
10901
10902 linux*)
10903 case $cc_basename in
10904 tcc*)
10905 # Fabrice Bellard et al's Tiny C Compiler
10906 ld_shlibs=yes
10907 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10908 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10909 ;;
10910 esac
10911 ;;
10912
10913 *-mlibc)
10914 ;;
10915
10916 netbsd* | netbsdelf*-gnu)
10917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10919 else
10920 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10921 fi
10922 hardcode_libdir_flag_spec='-R$libdir'
10923 hardcode_direct=yes
10924 hardcode_shlibpath_var=no
10925 ;;
10926
10927 newsos6)
10928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10929 hardcode_direct=yes
10930 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10931 hardcode_libdir_separator=:
10932 hardcode_shlibpath_var=no
10933 ;;
10934
10935 *nto* | *qnx*)
10936 ;;
10937
10938 openbsd*)
10939 if test -f /usr/libexec/ld.so; then
10940 hardcode_direct=yes
10941 hardcode_shlibpath_var=no
10942 hardcode_direct_absolute=yes
10943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10945 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10946 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10947 export_dynamic_flag_spec='$wl-E'
10948 else
10949 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10950 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10951 fi
10952 else
10953 ld_shlibs=no
10954 fi
10955 ;;
10956
10957 os2*)
10958 hardcode_libdir_flag_spec='-L$libdir'
10959 hardcode_minus_L=yes
10960 allow_undefined_flag=unsupported
10961 shrext_cmds=.dll
10962 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10963 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10964 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10965 $ECHO EXPORTS >> $output_objdir/$libname.def~
10966 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10967 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10968 emximp -o $lib $output_objdir/$libname.def'
10969 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10970 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10971 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10972 $ECHO EXPORTS >> $output_objdir/$libname.def~
10973 prefix_cmds="$SED"~
10974 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10975 prefix_cmds="$prefix_cmds -e 1d";
10976 fi~
10977 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10978 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10979 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10980 emximp -o $lib $output_objdir/$libname.def'
10981 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10982 enable_shared_with_static_runtimes=yes
10983 file_list_spec='@'
10984 ;;
10985
10986 osf3*)
10987 if test yes = "$GCC"; then
10988 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10989 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'
10990 else
10991 allow_undefined_flag=' -expect_unresolved \*'
10992 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'
10993 fi
10994 archive_cmds_need_lc='no'
10995 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10996 hardcode_libdir_separator=:
10997 ;;
10998
10999 osf4* | osf5*) # as osf3* with the addition of -msym flag
11000 if test yes = "$GCC"; then
11001 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11002 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'
11003 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11004 else
11005 allow_undefined_flag=' -expect_unresolved \*'
11006 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'
11007 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~
11008 $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'
11009
11010 # Both c and cxx compiler support -rpath directly
11011 hardcode_libdir_flag_spec='-rpath $libdir'
11012 fi
11013 archive_cmds_need_lc='no'
11014 hardcode_libdir_separator=:
11015 ;;
11016
11017 serenity*)
11018 ;;
11019
11020 solaris*)
11021 no_undefined_flag=' -z defs'
11022 if test yes = "$GCC"; then
11023 wlarc='$wl'
11024 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11025 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11026 $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'
11027 else
11028 case `$CC -V 2>&1` in
11029 *"Compilers 5.0"*)
11030 wlarc=''
11031 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11033 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11034 ;;
11035 *)
11036 wlarc='$wl'
11037 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11039 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11040 ;;
11041 esac
11042 fi
11043 hardcode_libdir_flag_spec='-R$libdir'
11044 hardcode_shlibpath_var=no
11045 case $host_os in
11046 solaris2.[0-5] | solaris2.[0-5].*) ;;
11047 *)
11048 # The compiler driver will combine and reorder linker options,
11049 # but understands '-z linker_flag'. GCC discards it without '$wl',
11050 # but is careful enough not to reorder.
11051 # Supported since Solaris 2.6 (maybe 2.5.1?)
11052 if test yes = "$GCC"; then
11053 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11054 else
11055 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11056 fi
11057 ;;
11058 esac
11059 link_all_deplibs=yes
11060 ;;
11061
11062 sunos4*)
11063 if test sequent = "$host_vendor"; then
11064 # Use $CC to link under sequent, because it throws in some extra .o
11065 # files that make .init and .fini sections work.
11066 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11067 else
11068 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11069 fi
11070 hardcode_libdir_flag_spec='-L$libdir'
11071 hardcode_direct=yes
11072 hardcode_minus_L=yes
11073 hardcode_shlibpath_var=no
11074 ;;
11075
11076 sysv4)
11077 case $host_vendor in
11078 sni)
11079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11080 hardcode_direct=yes # is this really true???
11081 ;;
11082 siemens)
11083 ## LD is ld it makes a PLAMLIB
11084 ## CC just makes a GrossModule.
11085 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11086 reload_cmds='$CC -r -o $output$reload_objs'
11087 hardcode_direct=no
11088 ;;
11089 motorola)
11090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11091 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11092 ;;
11093 esac
11094 runpath_var='LD_RUN_PATH'
11095 hardcode_shlibpath_var=no
11096 ;;
11097
11098 sysv4.3*)
11099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11100 hardcode_shlibpath_var=no
11101 export_dynamic_flag_spec='-Bexport'
11102 ;;
11103
11104 sysv4*MP*)
11105 if test -d /usr/nec; then
11106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11107 hardcode_shlibpath_var=no
11108 runpath_var=LD_RUN_PATH
11109 hardcode_runpath_var=yes
11110 ld_shlibs=yes
11111 fi
11112 ;;
11113
11114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11115 no_undefined_flag='$wl-z,text'
11116 archive_cmds_need_lc=no
11117 hardcode_shlibpath_var=no
11118 runpath_var='LD_RUN_PATH'
11119
11120 if test yes = "$GCC"; then
11121 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11122 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11123 else
11124 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11125 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126 fi
11127 ;;
11128
11129 sysv5* | sco3.2v5* | sco5v6*)
11130 # Note: We CANNOT use -z defs as we might desire, because we do not
11131 # link with -lc, and that would cause any symbols used from libc to
11132 # always be unresolved, which means just about no library would
11133 # ever link correctly. If we're not using GNU ld we use -z text
11134 # though, which does catch some bad symbols but isn't as heavy-handed
11135 # as -z defs.
11136 no_undefined_flag='$wl-z,text'
11137 allow_undefined_flag='$wl-z,nodefs'
11138 archive_cmds_need_lc=no
11139 hardcode_shlibpath_var=no
11140 hardcode_libdir_flag_spec='$wl-R,$libdir'
11141 hardcode_libdir_separator=':'
11142 link_all_deplibs=yes
11143 export_dynamic_flag_spec='$wl-Bexport'
11144 runpath_var='LD_RUN_PATH'
11145
11146 if test yes = "$GCC"; then
11147 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11148 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11149 else
11150 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11151 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11152 fi
11153 ;;
11154
11155 uts4*)
11156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11157 hardcode_libdir_flag_spec='-L$libdir'
11158 hardcode_shlibpath_var=no
11159 ;;
11160
11161 *)
11162 ld_shlibs=no
11163 ;;
11164 esac
11165
11166 if test sni = "$host_vendor"; then
11167 case $host in
11168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11169 export_dynamic_flag_spec='$wl-Blargedynsym'
11170 ;;
11171 esac
11172 fi
11173 fi
11174
11175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11176 printf "%s\n" "$ld_shlibs" >&6; }
11177 test no = "$ld_shlibs" && can_build_shared=no
11178
11179 with_gnu_ld=$with_gnu_ld
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195 #
11196 # Do we need to explicitly link libc?
11197 #
11198 case "x$archive_cmds_need_lc" in
11199 x|xyes)
11200 # Assume -lc should be added
11201 archive_cmds_need_lc=yes
11202
11203 if test yes,yes = "$GCC,$enable_shared"; then
11204 case $archive_cmds in
11205 *'~'*)
11206 # FIXME: we may have to deal with multi-command sequences.
11207 ;;
11208 '$CC '*)
11209 # Test whether the compiler implicitly links with -lc since on some
11210 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11211 # to ld, don't add -lc before -lgcc.
11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11213 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11214 if test ${lt_cv_archive_cmds_need_lc+y}
11215 then :
11216 printf %s "(cached) " >&6
11217 else case e in #(
11218 e) $RM conftest*
11219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11220
11221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11222 (eval $ac_compile) 2>&5
11223 ac_status=$?
11224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225 test $ac_status = 0; } 2>conftest.err; then
11226 soname=conftest
11227 lib=conftest
11228 libobjs=conftest.$ac_objext
11229 deplibs=
11230 wl=$lt_prog_compiler_wl
11231 pic_flag=$lt_prog_compiler_pic
11232 compiler_flags=-v
11233 linker_flags=-v
11234 verstring=
11235 output_objdir=.
11236 libname=conftest
11237 lt_save_allow_undefined_flag=$allow_undefined_flag
11238 allow_undefined_flag=
11239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11240 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11241 ac_status=$?
11242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11243 test $ac_status = 0; }
11244 then
11245 lt_cv_archive_cmds_need_lc=no
11246 else
11247 lt_cv_archive_cmds_need_lc=yes
11248 fi
11249 allow_undefined_flag=$lt_save_allow_undefined_flag
11250 else
11251 cat conftest.err 1>&5
11252 fi
11253 $RM conftest*
11254 ;;
11255 esac
11256 fi
11257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11258 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11259 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11260 ;;
11261 esac
11262 fi
11263 ;;
11264 esac
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11418 printf %s "checking dynamic linker characteristics... " >&6; }
11419
11420 if test yes = "$GCC"; then
11421 case $host_os in
11422 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11423 *) lt_awk_arg='/^libraries:/' ;;
11424 esac
11425 case $host_os in
11426 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11427 *) lt_sed_strip_eq='s|=/|/|g' ;;
11428 esac
11429 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11430 case $lt_search_path_spec in
11431 *\;*)
11432 # if the path contains ";" then we assume it to be the separator
11433 # otherwise default to the standard path separator (i.e. ":") - it is
11434 # assumed that no part of a normal pathname contains ";" but that should
11435 # okay in the real world where ";" in dirpaths is itself problematic.
11436 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11437 ;;
11438 *)
11439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11440 ;;
11441 esac
11442 # Ok, now we have the path, separated by spaces, we can step through it
11443 # and add multilib dir if necessary...
11444 lt_tmp_lt_search_path_spec=
11445 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11446 # ...but if some path component already ends with the multilib dir we assume
11447 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11448 case "$lt_multi_os_dir; $lt_search_path_spec " in
11449 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11450 lt_multi_os_dir=
11451 ;;
11452 esac
11453 for lt_sys_path in $lt_search_path_spec; do
11454 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11455 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11456 elif test -n "$lt_multi_os_dir"; then
11457 test -d "$lt_sys_path" && \
11458 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11459 fi
11460 done
11461 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11462 BEGIN {RS = " "; FS = "/|\n";} {
11463 lt_foo = "";
11464 lt_count = 0;
11465 for (lt_i = NF; lt_i > 0; lt_i--) {
11466 if ($lt_i != "" && $lt_i != ".") {
11467 if ($lt_i == "..") {
11468 lt_count++;
11469 } else {
11470 if (lt_count == 0) {
11471 lt_foo = "/" $lt_i lt_foo;
11472 } else {
11473 lt_count--;
11474 }
11475 }
11476 }
11477 }
11478 if (lt_foo != "") { lt_freq[lt_foo]++; }
11479 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11480 }'`
11481 # AWK program above erroneously prepends '/' to C:/dos/paths
11482 # for these hosts.
11483 case $host_os in
11484 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11485 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11486 esac
11487 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11488 else
11489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11490 fi
11491 library_names_spec=
11492 libname_spec='lib$name'
11493 soname_spec=
11494 shrext_cmds=.so
11495 postinstall_cmds=
11496 postuninstall_cmds=
11497 finish_cmds=
11498 finish_eval=
11499 shlibpath_var=
11500 shlibpath_overrides_runpath=unknown
11501 version_type=none
11502 dynamic_linker="$host_os ld.so"
11503 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11504 need_lib_prefix=unknown
11505 hardcode_into_libs=no
11506
11507 # when you set need_version to no, make sure it does not cause -set_version
11508 # flags to be left without arguments
11509 need_version=unknown
11510
11511
11512
11513 case $host_os in
11514 aix3*)
11515 version_type=linux # correct to gnu/linux during the next big refactor
11516 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11517 shlibpath_var=LIBPATH
11518
11519 # AIX 3 has no versioning support, so we append a major version to the name.
11520 soname_spec='$libname$release$shared_ext$major'
11521 ;;
11522
11523 aix[4-9]*)
11524 version_type=linux # correct to gnu/linux during the next big refactor
11525 need_lib_prefix=no
11526 need_version=no
11527 hardcode_into_libs=yes
11528 if test ia64 = "$host_cpu"; then
11529 # AIX 5 supports IA64
11530 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 else
11533 # With GCC up to 2.95.x, collect2 would create an import file
11534 # for dependence libraries. The import file would start with
11535 # the line '#! .'. This would cause the generated library to
11536 # depend on '.', always an invalid library. This was fixed in
11537 # development snapshots of GCC prior to 3.0.
11538 case $host_os in
11539 aix4 | aix4.[01] | aix4.[01].*)
11540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11541 echo ' yes '
11542 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11543 :
11544 else
11545 can_build_shared=no
11546 fi
11547 ;;
11548 esac
11549 # Using Import Files as archive members, it is possible to support
11550 # filename-based versioning of shared library archives on AIX. While
11551 # this would work for both with and without runtime linking, it will
11552 # prevent static linking of such archives. So we do filename-based
11553 # shared library versioning with .so extension only, which is used
11554 # when both runtime linking and shared linking is enabled.
11555 # Unfortunately, runtime linking may impact performance, so we do
11556 # not want this to be the default eventually. Also, we use the
11557 # versioned .so libs for executables only if there is the -brtl
11558 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11559 # To allow for filename-based versioning support, we need to create
11560 # libNAME.so.V as an archive file, containing:
11561 # *) an Import File, referring to the versioned filename of the
11562 # archive as well as the shared archive member, telling the
11563 # bitwidth (32 or 64) of that shared object, and providing the
11564 # list of exported symbols of that shared object, eventually
11565 # decorated with the 'weak' keyword
11566 # *) the shared object with the F_LOADONLY flag set, to really avoid
11567 # it being seen by the linker.
11568 # At run time we better use the real file rather than another symlink,
11569 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11570
11571 case $with_aix_soname,$aix_use_runtimelinking in
11572 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11573 # soname into executable. Probably we can add versioning support to
11574 # collect2, so additional links can be useful in future.
11575 aix,yes) # traditional libtool
11576 dynamic_linker='AIX unversionable lib.so'
11577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11578 # instead of lib<name>.a to let people know that these are not
11579 # typical AIX shared libraries.
11580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11581 ;;
11582 aix,no) # traditional AIX only
11583 dynamic_linker='AIX lib.a(lib.so.V)'
11584 # We preserve .a as extension for shared libraries through AIX4.2
11585 # and later when we are not doing run time linking.
11586 library_names_spec='$libname$release.a $libname.a'
11587 soname_spec='$libname$release$shared_ext$major'
11588 ;;
11589 svr4,*) # full svr4 only
11590 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11591 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11592 # We do not specify a path in Import Files, so LIBPATH fires.
11593 shlibpath_overrides_runpath=yes
11594 ;;
11595 *,yes) # both, prefer svr4
11596 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11597 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11598 # unpreferred sharedlib libNAME.a needs extra handling
11599 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"'
11600 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"'
11601 # We do not specify a path in Import Files, so LIBPATH fires.
11602 shlibpath_overrides_runpath=yes
11603 ;;
11604 *,no) # both, prefer aix
11605 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11606 library_names_spec='$libname$release.a $libname.a'
11607 soname_spec='$libname$release$shared_ext$major'
11608 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11609 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)'
11610 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"'
11611 ;;
11612 esac
11613 shlibpath_var=LIBPATH
11614 fi
11615 ;;
11616
11617 amigaos*)
11618 case $host_cpu in
11619 powerpc)
11620 # Since July 2007 AmigaOS4 officially supports .so libraries.
11621 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623 ;;
11624 m68k)
11625 library_names_spec='$libname.ixlibrary $libname.a'
11626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11627 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'
11628 ;;
11629 esac
11630 ;;
11631
11632 beos*)
11633 library_names_spec='$libname$shared_ext'
11634 dynamic_linker="$host_os ld.so"
11635 shlibpath_var=LIBRARY_PATH
11636 ;;
11637
11638 bsdi[45]*)
11639 version_type=linux # correct to gnu/linux during the next big refactor
11640 need_version=no
11641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11642 soname_spec='$libname$release$shared_ext$major'
11643 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11646 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11647 # the default ld.so.conf also contains /usr/contrib/lib and
11648 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11649 # libtool to hard-code these into programs
11650 ;;
11651
11652 cygwin* | mingw* | windows* | pw32* | cegcc*)
11653 version_type=windows
11654 shrext_cmds=.dll
11655 need_version=no
11656 need_lib_prefix=no
11657
11658 case $GCC,$cc_basename in
11659 yes,*)
11660 # gcc
11661 library_names_spec='$libname.dll.a'
11662 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11663 # If user builds GCC with multilib enabled,
11664 # it should just install on $(libdir)
11665 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11666 if test xyes = x"$multilib"; then
11667 postinstall_cmds='base_file=`basename \$file`~
11668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11669 dldir=$destdir/`dirname \$dlpath`~
11670 $install_prog $dir/$dlname $destdir/$dlname~
11671 chmod a+x $destdir/$dlname~
11672 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11673 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11674 fi'
11675 else
11676 postinstall_cmds='base_file=`basename \$file`~
11677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11678 dldir=$destdir/`dirname \$dlpath`~
11679 test -d \$dldir || mkdir -p \$dldir~
11680 $install_prog $dir/$dlname \$dldir/$dlname~
11681 chmod a+x \$dldir/$dlname~
11682 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11683 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11684 fi'
11685 fi
11686 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11687 dlpath=$dir/\$dldll~
11688 $RM \$dlpath'
11689 shlibpath_overrides_runpath=yes
11690
11691 case $host_os in
11692 cygwin*)
11693 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11694 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11695
11696 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11697 ;;
11698 mingw* | windows* | cegcc*)
11699 # MinGW DLLs use traditional 'lib' prefix
11700 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11701 ;;
11702 pw32*)
11703 # pw32 DLLs use 'pw' prefix rather than 'lib'
11704 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11705 ;;
11706 esac
11707 dynamic_linker='Win32 ld.exe'
11708 ;;
11709
11710 *,cl* | *,icl*)
11711 # Native MSVC or ICC
11712 libname_spec='$name'
11713 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11714 library_names_spec='$libname.dll.lib'
11715
11716 case $build_os in
11717 mingw* | windows*)
11718 sys_lib_search_path_spec=
11719 lt_save_ifs=$IFS
11720 IFS=';'
11721 for lt_path in $LIB
11722 do
11723 IFS=$lt_save_ifs
11724 # Let DOS variable expansion print the short 8.3 style file name.
11725 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11726 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11727 done
11728 IFS=$lt_save_ifs
11729 # Convert to MSYS style.
11730 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11731 ;;
11732 cygwin*)
11733 # Convert to unix form, then to dos form, then back to unix form
11734 # but this time dos style (no spaces!) so that the unix form looks
11735 # like /cygdrive/c/PROGRA~1:/cygdr...
11736 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11737 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11738 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11739 ;;
11740 *)
11741 sys_lib_search_path_spec=$LIB
11742 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11743 # It is most probably a Windows format PATH.
11744 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11745 else
11746 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11747 fi
11748 # FIXME: find the short name or the path components, as spaces are
11749 # common. (e.g. "Program Files" -> "PROGRA~1")
11750 ;;
11751 esac
11752
11753 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11754 postinstall_cmds='base_file=`basename \$file`~
11755 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11756 dldir=$destdir/`dirname \$dlpath`~
11757 test -d \$dldir || mkdir -p \$dldir~
11758 $install_prog $dir/$dlname \$dldir/$dlname'
11759 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11760 dlpath=$dir/\$dldll~
11761 $RM \$dlpath'
11762 shlibpath_overrides_runpath=yes
11763 dynamic_linker='Win32 link.exe'
11764 ;;
11765
11766 *)
11767 # Assume MSVC and ICC wrapper
11768 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11769 dynamic_linker='Win32 ld.exe'
11770 ;;
11771 esac
11772 # FIXME: first we should search . and the directory the executable is in
11773 shlibpath_var=PATH
11774 ;;
11775
11776 darwin* | rhapsody*)
11777 dynamic_linker="$host_os dyld"
11778 version_type=darwin
11779 need_lib_prefix=no
11780 need_version=no
11781 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11782 soname_spec='$libname$release$major$shared_ext'
11783 shlibpath_overrides_runpath=yes
11784 shlibpath_var=DYLD_LIBRARY_PATH
11785 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11786
11787 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11788 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11789 ;;
11790
11791 dgux*)
11792 version_type=linux # correct to gnu/linux during the next big refactor
11793 need_lib_prefix=no
11794 need_version=no
11795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11796 soname_spec='$libname$release$shared_ext$major'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 ;;
11799
11800 freebsd* | dragonfly* | midnightbsd*)
11801 # DragonFly does not have aout. When/if they implement a new
11802 # versioning mechanism, adjust this.
11803 if test -x /usr/bin/objformat; then
11804 objformat=`/usr/bin/objformat`
11805 else
11806 case $host_os in
11807 freebsd[23].*) objformat=aout ;;
11808 *) objformat=elf ;;
11809 esac
11810 fi
11811 version_type=freebsd-$objformat
11812 case $version_type in
11813 freebsd-elf*)
11814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11815 soname_spec='$libname$release$shared_ext$major'
11816 need_version=no
11817 need_lib_prefix=no
11818 ;;
11819 freebsd-*)
11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11821 need_version=yes
11822 ;;
11823 esac
11824 case $host_cpu in
11825 powerpc64)
11826 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11827 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830 int test_pointer_size[sizeof (void *) - 5];
11831
11832 _ACEOF
11833 if ac_fn_c_try_compile "$LINENO"
11834 then :
11835 shlibpath_var=LD_LIBRARY_PATH
11836 else case e in #(
11837 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11838 esac
11839 fi
11840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11841 ;;
11842 *)
11843 shlibpath_var=LD_LIBRARY_PATH
11844 ;;
11845 esac
11846 case $host_os in
11847 freebsd2.*)
11848 shlibpath_overrides_runpath=yes
11849 ;;
11850 freebsd3.[01]* | freebsdelf3.[01]*)
11851 shlibpath_overrides_runpath=yes
11852 hardcode_into_libs=yes
11853 ;;
11854 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11855 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11856 shlibpath_overrides_runpath=no
11857 hardcode_into_libs=yes
11858 ;;
11859 *) # from 4.6 on, and DragonFly
11860 shlibpath_overrides_runpath=yes
11861 hardcode_into_libs=yes
11862 ;;
11863 esac
11864 ;;
11865
11866 haiku*)
11867 version_type=linux # correct to gnu/linux during the next big refactor
11868 need_lib_prefix=no
11869 need_version=no
11870 dynamic_linker="$host_os runtime_loader"
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 soname_spec='$libname$release$shared_ext$major'
11873 shlibpath_var=LIBRARY_PATH
11874 shlibpath_overrides_runpath=no
11875 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
11876 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
11877 hardcode_into_libs=no
11878 ;;
11879
11880 hpux9* | hpux10* | hpux11*)
11881 # Give a soname corresponding to the major version so that dld.sl refuses to
11882 # link against other versions.
11883 version_type=sunos
11884 need_lib_prefix=no
11885 need_version=no
11886 case $host_cpu in
11887 ia64*)
11888 shrext_cmds='.so'
11889 hardcode_into_libs=yes
11890 dynamic_linker="$host_os dld.so"
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11894 soname_spec='$libname$release$shared_ext$major'
11895 if test 32 = "$HPUX_IA64_MODE"; then
11896 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11897 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11898 else
11899 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11900 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11901 fi
11902 ;;
11903 hppa*64*)
11904 shrext_cmds='.sl'
11905 hardcode_into_libs=yes
11906 dynamic_linker="$host_os dld.sl"
11907 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11910 soname_spec='$libname$release$shared_ext$major'
11911 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11913 ;;
11914 *)
11915 shrext_cmds='.sl'
11916 dynamic_linker="$host_os dld.sl"
11917 shlibpath_var=SHLIB_PATH
11918 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11920 soname_spec='$libname$release$shared_ext$major'
11921 ;;
11922 esac
11923 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11924 postinstall_cmds='chmod 555 $lib'
11925 # or fails outright, so override atomically:
11926 install_override_mode=555
11927 ;;
11928
11929 interix[3-9]*)
11930 version_type=linux # correct to gnu/linux during the next big refactor
11931 need_lib_prefix=no
11932 need_version=no
11933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11934 soname_spec='$libname$release$shared_ext$major'
11935 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11936 shlibpath_var=LD_LIBRARY_PATH
11937 shlibpath_overrides_runpath=no
11938 hardcode_into_libs=yes
11939 ;;
11940
11941 irix5* | irix6* | nonstopux*)
11942 case $host_os in
11943 nonstopux*) version_type=nonstopux ;;
11944 *)
11945 if test yes = "$lt_cv_prog_gnu_ld"; then
11946 version_type=linux # correct to gnu/linux during the next big refactor
11947 else
11948 version_type=irix
11949 fi ;;
11950 esac
11951 need_lib_prefix=no
11952 need_version=no
11953 soname_spec='$libname$release$shared_ext$major'
11954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11955 case $host_os in
11956 irix5* | nonstopux*)
11957 libsuff= shlibsuff=
11958 ;;
11959 *)
11960 case $LD in # libtool.m4 will add one of these switches to LD
11961 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11962 libsuff= shlibsuff= libmagic=32-bit;;
11963 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11964 libsuff=32 shlibsuff=N32 libmagic=N32;;
11965 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11966 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11967 *) libsuff= shlibsuff= libmagic=never-match;;
11968 esac
11969 ;;
11970 esac
11971 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11972 shlibpath_overrides_runpath=no
11973 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11974 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11975 hardcode_into_libs=yes
11976 ;;
11977
11978 # No shared lib support for Linux oldld, aout, or coff.
11979 linux*oldld* | linux*aout* | linux*coff*)
11980 dynamic_linker=no
11981 ;;
11982
11983 linux*android*)
11984 version_type=none # Android doesn't support versioned libraries.
11985 need_lib_prefix=no
11986 need_version=no
11987 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
11988 soname_spec='$libname$release$shared_ext'
11989 finish_cmds=
11990 shlibpath_var=LD_LIBRARY_PATH
11991 shlibpath_overrides_runpath=yes
11992
11993 # This implies no fast_install, which is unacceptable.
11994 # Some rework will be needed to allow for fast_install
11995 # before this can be enabled.
11996 hardcode_into_libs=yes
11997
11998 dynamic_linker='Android linker'
11999 # -rpath works at least for libraries that are not overridden by
12000 # libraries installed in system locations.
12001 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12002 ;;
12003
12004 # This must be glibc/ELF.
12005 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12006 version_type=linux # correct to gnu/linux during the next big refactor
12007 need_lib_prefix=no
12008 need_version=no
12009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12010 soname_spec='$libname$release$shared_ext$major'
12011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12012 shlibpath_var=LD_LIBRARY_PATH
12013 shlibpath_overrides_runpath=no
12014
12015 # Some binutils ld are patched to set DT_RUNPATH
12016 if test ${lt_cv_shlibpath_overrides_runpath+y}
12017 then :
12018 printf %s "(cached) " >&6
12019 else case e in #(
12020 e) lt_cv_shlibpath_overrides_runpath=no
12021 save_LDFLAGS=$LDFLAGS
12022 save_libdir=$libdir
12023 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12024 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h. */
12027
12028 int
12029 main (void)
12030 {
12031
12032 ;
12033 return 0;
12034 }
12035 _ACEOF
12036 if ac_fn_c_try_link "$LINENO"
12037 then :
12038 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12039 then :
12040 lt_cv_shlibpath_overrides_runpath=yes
12041 fi
12042 fi
12043 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12044 conftest$ac_exeext conftest.$ac_ext
12045 LDFLAGS=$save_LDFLAGS
12046 libdir=$save_libdir
12047 ;;
12048 esac
12049 fi
12050
12051 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12052
12053 # This implies no fast_install, which is unacceptable.
12054 # Some rework will be needed to allow for fast_install
12055 # before this can be enabled.
12056 hardcode_into_libs=yes
12057
12058 # Add ABI-specific directories to the system library path.
12059 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12060
12061 # Ideally, we could use ldconfig to report *all* directories which are
12062 # searched for libraries, however this is still not possible. Aside from not
12063 # being certain /sbin/ldconfig is available, command
12064 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12065 # even though it is searched at run-time. Try to do the best guess by
12066 # appending ld.so.conf contents (and includes) to the search path.
12067 if test -f /etc/ld.so.conf; then
12068 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' ' '`
12069 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12070 fi
12071
12072 # We used to test for /lib/ld.so.1 and disable shared libraries on
12073 # powerpc, because MkLinux only supported shared libraries with the
12074 # GNU dynamic linker. Since this was broken with cross compilers,
12075 # most powerpc-linux boxes support dynamic linking these days and
12076 # people can always --disable-shared, the test was removed, and we
12077 # assume the GNU/Linux dynamic linker is in use.
12078 dynamic_linker='GNU/Linux ld.so'
12079 ;;
12080
12081 netbsdelf*-gnu)
12082 version_type=linux
12083 need_lib_prefix=no
12084 need_version=no
12085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12086 soname_spec='$libname$release$shared_ext$major'
12087 shlibpath_var=LD_LIBRARY_PATH
12088 shlibpath_overrides_runpath=no
12089 hardcode_into_libs=yes
12090 dynamic_linker='NetBSD ld.elf_so'
12091 ;;
12092
12093 netbsd*)
12094 version_type=sunos
12095 need_lib_prefix=no
12096 need_version=no
12097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12098 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12100 dynamic_linker='NetBSD (a.out) ld.so'
12101 else
12102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12103 soname_spec='$libname$release$shared_ext$major'
12104 dynamic_linker='NetBSD ld.elf_so'
12105 fi
12106 shlibpath_var=LD_LIBRARY_PATH
12107 shlibpath_overrides_runpath=yes
12108 hardcode_into_libs=yes
12109 ;;
12110
12111 *-mlibc)
12112 version_type=linux # correct to gnu/linux during the next big refactor
12113 need_lib_prefix=no
12114 need_version=no
12115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12116 soname_spec='$libname$release$shared_ext$major'
12117 dynamic_linker='mlibc ld.so'
12118 shlibpath_var=LD_LIBRARY_PATH
12119 shlibpath_overrides_runpath=no
12120 hardcode_into_libs=yes
12121 ;;
12122
12123 newsos6)
12124 version_type=linux # correct to gnu/linux during the next big refactor
12125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12126 shlibpath_var=LD_LIBRARY_PATH
12127 shlibpath_overrides_runpath=yes
12128 ;;
12129
12130 *nto* | *qnx*)
12131 version_type=qnx
12132 need_lib_prefix=no
12133 need_version=no
12134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12135 soname_spec='$libname$release$shared_ext$major'
12136 shlibpath_var=LD_LIBRARY_PATH
12137 shlibpath_overrides_runpath=no
12138 hardcode_into_libs=yes
12139 dynamic_linker='ldqnx.so'
12140 ;;
12141
12142 openbsd*)
12143 version_type=sunos
12144 sys_lib_dlsearch_path_spec=/usr/lib
12145 need_lib_prefix=no
12146 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12147 need_version=no
12148 else
12149 need_version=yes
12150 fi
12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12153 shlibpath_var=LD_LIBRARY_PATH
12154 shlibpath_overrides_runpath=yes
12155 ;;
12156
12157 os2*)
12158 libname_spec='$name'
12159 version_type=windows
12160 shrext_cmds=.dll
12161 need_version=no
12162 need_lib_prefix=no
12163 # OS/2 can only load a DLL with a base name of 8 characters or less.
12164 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12165 v=$($ECHO $release$versuffix | tr -d .-);
12166 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12167 $ECHO $n$v`$shared_ext'
12168 library_names_spec='${libname}_dll.$libext'
12169 dynamic_linker='OS/2 ld.exe'
12170 shlibpath_var=BEGINLIBPATH
12171 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12173 postinstall_cmds='base_file=`basename \$file`~
12174 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12175 dldir=$destdir/`dirname \$dlpath`~
12176 test -d \$dldir || mkdir -p \$dldir~
12177 $install_prog $dir/$dlname \$dldir/$dlname~
12178 chmod a+x \$dldir/$dlname~
12179 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12180 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12181 fi'
12182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12183 dlpath=$dir/\$dldll~
12184 $RM \$dlpath'
12185 ;;
12186
12187 osf3* | osf4* | osf5*)
12188 version_type=osf
12189 need_lib_prefix=no
12190 need_version=no
12191 soname_spec='$libname$release$shared_ext$major'
12192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12193 shlibpath_var=LD_LIBRARY_PATH
12194 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12196 ;;
12197
12198 rdos*)
12199 dynamic_linker=no
12200 ;;
12201
12202 serenity*)
12203 version_type=linux # correct to gnu/linux during the next big refactor
12204 need_lib_prefix=no
12205 need_version=no
12206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12207 soname_spec='$libname$release$shared_ext$major'
12208 shlibpath_var=LD_LIBRARY_PATH
12209 shlibpath_overrides_runpath=no
12210 dynamic_linker='SerenityOS LibELF'
12211 ;;
12212
12213 solaris*)
12214 version_type=linux # correct to gnu/linux during the next big refactor
12215 need_lib_prefix=no
12216 need_version=no
12217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12218 soname_spec='$libname$release$shared_ext$major'
12219 shlibpath_var=LD_LIBRARY_PATH
12220 shlibpath_overrides_runpath=yes
12221 hardcode_into_libs=yes
12222 # ldd complains unless libraries are executable
12223 postinstall_cmds='chmod +x $lib'
12224 ;;
12225
12226 sunos4*)
12227 version_type=sunos
12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12229 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12230 shlibpath_var=LD_LIBRARY_PATH
12231 shlibpath_overrides_runpath=yes
12232 if test yes = "$with_gnu_ld"; then
12233 need_lib_prefix=no
12234 fi
12235 need_version=yes
12236 ;;
12237
12238 sysv4 | sysv4.3*)
12239 version_type=linux # correct to gnu/linux during the next big refactor
12240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12241 soname_spec='$libname$release$shared_ext$major'
12242 shlibpath_var=LD_LIBRARY_PATH
12243 case $host_vendor in
12244 sni)
12245 shlibpath_overrides_runpath=no
12246 need_lib_prefix=no
12247 runpath_var=LD_RUN_PATH
12248 ;;
12249 siemens)
12250 need_lib_prefix=no
12251 ;;
12252 motorola)
12253 need_lib_prefix=no
12254 need_version=no
12255 shlibpath_overrides_runpath=no
12256 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12257 ;;
12258 esac
12259 ;;
12260
12261 sysv4*MP*)
12262 if test -d /usr/nec; then
12263 version_type=linux # correct to gnu/linux during the next big refactor
12264 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12265 soname_spec='$libname$shared_ext.$major'
12266 shlibpath_var=LD_LIBRARY_PATH
12267 fi
12268 ;;
12269
12270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12271 version_type=sco
12272 need_lib_prefix=no
12273 need_version=no
12274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12275 soname_spec='$libname$release$shared_ext$major'
12276 shlibpath_var=LD_LIBRARY_PATH
12277 shlibpath_overrides_runpath=yes
12278 hardcode_into_libs=yes
12279 if test yes = "$with_gnu_ld"; then
12280 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12281 else
12282 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12283 case $host_os in
12284 sco3.2v5*)
12285 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12286 ;;
12287 esac
12288 fi
12289 sys_lib_dlsearch_path_spec='/usr/lib'
12290 ;;
12291
12292 tpf*)
12293 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12294 version_type=linux # correct to gnu/linux during the next big refactor
12295 need_lib_prefix=no
12296 need_version=no
12297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12298 shlibpath_var=LD_LIBRARY_PATH
12299 shlibpath_overrides_runpath=no
12300 hardcode_into_libs=yes
12301 ;;
12302
12303 uts4*)
12304 version_type=linux # correct to gnu/linux during the next big refactor
12305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12306 soname_spec='$libname$release$shared_ext$major'
12307 shlibpath_var=LD_LIBRARY_PATH
12308 ;;
12309
12310 emscripten*)
12311 version_type=none
12312 need_lib_prefix=no
12313 need_version=no
12314 library_names_spec='$libname$release$shared_ext'
12315 soname_spec='$libname$release$shared_ext'
12316 finish_cmds=
12317 dynamic_linker="Emscripten linker"
12318 lt_prog_compiler_wl=
12319 lt_prog_compiler_pic=
12320 lt_prog_compiler_static=
12321
12322
12323 if test yes = "$GCC"; then
12324 lt_prog_compiler_wl='-Wl,'
12325 lt_prog_compiler_static='-static'
12326
12327 case $host_os in
12328 aix*)
12329 # All AIX code is PIC.
12330 if test ia64 = "$host_cpu"; then
12331 # AIX 5 now supports IA64 processor
12332 lt_prog_compiler_static='-Bstatic'
12333 fi
12334 lt_prog_compiler_pic='-fPIC'
12335 ;;
12336
12337 amigaos*)
12338 case $host_cpu in
12339 powerpc)
12340 # see comment about AmigaOS4 .so support
12341 lt_prog_compiler_pic='-fPIC'
12342 ;;
12343 m68k)
12344 # FIXME: we need at least 68020 code to build shared libraries, but
12345 # adding the '-m68020' flag to GCC prevents building anything better,
12346 # like '-m68040'.
12347 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12348 ;;
12349 esac
12350 ;;
12351
12352 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12353 # PIC is the default for these OSes.
12354 ;;
12355
12356 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12357 # This hack is so that the source file can tell whether it is being
12358 # built for inclusion in a dll (and should export symbols for example).
12359 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12360 # (--disable-auto-import) libraries
12361 lt_prog_compiler_pic='-DDLL_EXPORT'
12362 case $host_os in
12363 os2*)
12364 lt_prog_compiler_static='$wl-static'
12365 ;;
12366 esac
12367 ;;
12368
12369 darwin* | rhapsody*)
12370 # PIC is the default on this platform
12371 # Common symbols not allowed in MH_DYLIB files
12372 lt_prog_compiler_pic='-fno-common'
12373 ;;
12374
12375 haiku*)
12376 # PIC is the default for Haiku.
12377 # The "-static" flag exists, but is broken.
12378 lt_prog_compiler_static=
12379 ;;
12380
12381 hpux*)
12382 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12383 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12384 # sets the default TLS model and affects inlining.
12385 case $host_cpu in
12386 hppa*64*)
12387 # +Z the default
12388 ;;
12389 *)
12390 lt_prog_compiler_pic='-fPIC'
12391 ;;
12392 esac
12393 ;;
12394
12395 interix[3-9]*)
12396 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12397 # Instead, we relocate shared libraries at runtime.
12398 ;;
12399
12400 msdosdjgpp*)
12401 # Just because we use GCC doesn't mean we suddenly get shared libraries
12402 # on systems that don't support them.
12403 lt_prog_compiler_can_build_shared=no
12404 enable_shared=no
12405 ;;
12406
12407 *nto* | *qnx*)
12408 # QNX uses GNU C++, but need to define -shared option too, otherwise
12409 # it will coredump.
12410 lt_prog_compiler_pic='-fPIC -shared'
12411 ;;
12412
12413 sysv4*MP*)
12414 if test -d /usr/nec; then
12415 lt_prog_compiler_pic=-Kconform_pic
12416 fi
12417 ;;
12418
12419 *)
12420 lt_prog_compiler_pic='-fPIC'
12421 ;;
12422 esac
12423
12424 case $cc_basename in
12425 nvcc*) # Cuda Compiler Driver 2.2
12426 lt_prog_compiler_wl='-Xlinker '
12427 if test -n "$lt_prog_compiler_pic"; then
12428 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12429 fi
12430 ;;
12431 esac
12432 else
12433 # PORTME Check for flag to pass linker flags through the system compiler.
12434 case $host_os in
12435 aix*)
12436 lt_prog_compiler_wl='-Wl,'
12437 if test ia64 = "$host_cpu"; then
12438 # AIX 5 now supports IA64 processor
12439 lt_prog_compiler_static='-Bstatic'
12440 else
12441 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12442 fi
12443 ;;
12444
12445 darwin* | rhapsody*)
12446 # PIC is the default on this platform
12447 # Common symbols not allowed in MH_DYLIB files
12448 lt_prog_compiler_pic='-fno-common'
12449 case $cc_basename in
12450 nagfor*)
12451 # NAG Fortran compiler
12452 lt_prog_compiler_wl='-Wl,-Wl,,'
12453 lt_prog_compiler_pic='-PIC'
12454 lt_prog_compiler_static='-Bstatic'
12455 ;;
12456 esac
12457 ;;
12458
12459 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12460 # This hack is so that the source file can tell whether it is being
12461 # built for inclusion in a dll (and should export symbols for example).
12462 lt_prog_compiler_pic='-DDLL_EXPORT'
12463 case $host_os in
12464 os2*)
12465 lt_prog_compiler_static='$wl-static'
12466 ;;
12467 esac
12468 ;;
12469
12470 hpux9* | hpux10* | hpux11*)
12471 lt_prog_compiler_wl='-Wl,'
12472 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12473 # not for PA HP-UX.
12474 case $host_cpu in
12475 hppa*64*|ia64*)
12476 # +Z the default
12477 ;;
12478 *)
12479 lt_prog_compiler_pic='+Z'
12480 ;;
12481 esac
12482 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12483 lt_prog_compiler_static='$wl-a ${wl}archive'
12484 ;;
12485
12486 irix5* | irix6* | nonstopux*)
12487 lt_prog_compiler_wl='-Wl,'
12488 # PIC (with -KPIC) is the default.
12489 lt_prog_compiler_static='-non_shared'
12490 ;;
12491
12492 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12493 case $cc_basename in
12494 # old Intel for x86_64, which still supported -KPIC.
12495 ecc*)
12496 lt_prog_compiler_wl='-Wl,'
12497 lt_prog_compiler_pic='-KPIC'
12498 lt_prog_compiler_static='-static'
12499 ;;
12500 *flang* | ftn | f18* | f95*)
12501 # Flang compiler.
12502 lt_prog_compiler_wl='-Wl,'
12503 lt_prog_compiler_pic='-fPIC'
12504 lt_prog_compiler_static='-static'
12505 ;;
12506 # icc used to be incompatible with GCC.
12507 # ICC 10 doesn't accept -KPIC any more.
12508 icc* | ifort*)
12509 lt_prog_compiler_wl='-Wl,'
12510 lt_prog_compiler_pic='-fPIC'
12511 lt_prog_compiler_static='-static'
12512 ;;
12513 # Lahey Fortran 8.1.
12514 lf95*)
12515 lt_prog_compiler_wl='-Wl,'
12516 lt_prog_compiler_pic='--shared'
12517 lt_prog_compiler_static='--static'
12518 ;;
12519 nagfor*)
12520 # NAG Fortran compiler
12521 lt_prog_compiler_wl='-Wl,-Wl,,'
12522 lt_prog_compiler_pic='-PIC'
12523 lt_prog_compiler_static='-Bstatic'
12524 ;;
12525 tcc*)
12526 # Fabrice Bellard et al's Tiny C Compiler
12527 lt_prog_compiler_wl='-Wl,'
12528 lt_prog_compiler_pic='-fPIC'
12529 lt_prog_compiler_static='-static'
12530 ;;
12531 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12532 # Portland Group compilers (*not* the Pentium gcc compiler,
12533 # which looks to be a dead project)
12534 lt_prog_compiler_wl='-Wl,'
12535 lt_prog_compiler_pic='-fpic'
12536 lt_prog_compiler_static='-Bstatic'
12537 ;;
12538 ccc*)
12539 lt_prog_compiler_wl='-Wl,'
12540 # All Alpha code is PIC.
12541 lt_prog_compiler_static='-non_shared'
12542 ;;
12543 xl* | bgxl* | bgf* | mpixl*)
12544 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12545 lt_prog_compiler_wl='-Wl,'
12546 lt_prog_compiler_pic='-qpic'
12547 lt_prog_compiler_static='-qstaticlink'
12548 ;;
12549 *)
12550 case `$CC -V 2>&1 | $SED 5q` in
12551 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12552 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12553 lt_prog_compiler_pic='-KPIC'
12554 lt_prog_compiler_static='-Bstatic'
12555 lt_prog_compiler_wl=''
12556 ;;
12557 *Sun\ F* | *Sun*Fortran*)
12558 lt_prog_compiler_pic='-KPIC'
12559 lt_prog_compiler_static='-Bstatic'
12560 lt_prog_compiler_wl='-Qoption ld '
12561 ;;
12562 *Sun\ C*)
12563 # Sun C 5.9
12564 lt_prog_compiler_pic='-KPIC'
12565 lt_prog_compiler_static='-Bstatic'
12566 lt_prog_compiler_wl='-Wl,'
12567 ;;
12568 *Intel*\ [CF]*Compiler*)
12569 lt_prog_compiler_wl='-Wl,'
12570 lt_prog_compiler_pic='-fPIC'
12571 lt_prog_compiler_static='-static'
12572 ;;
12573 *Portland\ Group*)
12574 lt_prog_compiler_wl='-Wl,'
12575 lt_prog_compiler_pic='-fpic'
12576 lt_prog_compiler_static='-Bstatic'
12577 ;;
12578 esac
12579 ;;
12580 esac
12581 ;;
12582
12583 newsos6)
12584 lt_prog_compiler_pic='-KPIC'
12585 lt_prog_compiler_static='-Bstatic'
12586 ;;
12587
12588 *-mlibc)
12589 lt_prog_compiler_wl='-Wl,'
12590 lt_prog_compiler_pic='-fPIC'
12591 lt_prog_compiler_static='-static'
12592 ;;
12593
12594 *nto* | *qnx*)
12595 # QNX uses GNU C++, but need to define -shared option too, otherwise
12596 # it will coredump.
12597 lt_prog_compiler_pic='-fPIC -shared'
12598 ;;
12599
12600 osf3* | osf4* | osf5*)
12601 lt_prog_compiler_wl='-Wl,'
12602 # All OSF/1 code is PIC.
12603 lt_prog_compiler_static='-non_shared'
12604 ;;
12605
12606 rdos*)
12607 lt_prog_compiler_static='-non_shared'
12608 ;;
12609
12610 serenity*)
12611 ;;
12612
12613 solaris*)
12614 lt_prog_compiler_pic='-KPIC'
12615 lt_prog_compiler_static='-Bstatic'
12616 case $cc_basename in
12617 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12618 lt_prog_compiler_wl='-Qoption ld ';;
12619 *)
12620 lt_prog_compiler_wl='-Wl,';;
12621 esac
12622 ;;
12623
12624 sunos4*)
12625 lt_prog_compiler_wl='-Qoption ld '
12626 lt_prog_compiler_pic='-PIC'
12627 lt_prog_compiler_static='-Bstatic'
12628 ;;
12629
12630 sysv4 | sysv4.2uw2* | sysv4.3*)
12631 lt_prog_compiler_wl='-Wl,'
12632 lt_prog_compiler_pic='-KPIC'
12633 lt_prog_compiler_static='-Bstatic'
12634 ;;
12635
12636 sysv4*MP*)
12637 if test -d /usr/nec; then
12638 lt_prog_compiler_pic='-Kconform_pic'
12639 lt_prog_compiler_static='-Bstatic'
12640 fi
12641 ;;
12642
12643 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12644 lt_prog_compiler_wl='-Wl,'
12645 lt_prog_compiler_pic='-KPIC'
12646 lt_prog_compiler_static='-Bstatic'
12647 ;;
12648
12649 unicos*)
12650 lt_prog_compiler_wl='-Wl,'
12651 lt_prog_compiler_can_build_shared=no
12652 ;;
12653
12654 uts4*)
12655 lt_prog_compiler_pic='-pic'
12656 lt_prog_compiler_static='-Bstatic'
12657 ;;
12658
12659 *)
12660 lt_prog_compiler_can_build_shared=no
12661 ;;
12662 esac
12663 fi
12664
12665 case $host_os in
12666 # For platforms that do not support PIC, -DPIC is meaningless:
12667 *djgpp*)
12668 lt_prog_compiler_pic=
12669 ;;
12670 *)
12671 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12672 ;;
12673 esac
12674
12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12676 printf %s "checking for $compiler option to produce PIC... " >&6; }
12677 if test ${lt_cv_prog_compiler_pic+y}
12678 then :
12679 printf %s "(cached) " >&6
12680 else case e in #(
12681 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12682 esac
12683 fi
12684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12685 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12686 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12687
12688 #
12689 # Check to make sure the PIC flag actually works.
12690 #
12691 if test -n "$lt_prog_compiler_pic"; then
12692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12693 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12694 if test ${lt_cv_prog_compiler_pic_works+y}
12695 then :
12696 printf %s "(cached) " >&6
12697 else case e in #(
12698 e) lt_cv_prog_compiler_pic_works=no
12699 ac_outfile=conftest.$ac_objext
12700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12701 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12702 # Insert the option either (1) after the last *FLAGS variable, or
12703 # (2) before a word containing "conftest.", or (3) at the end.
12704 # Note that $ac_compile itself does not contain backslashes and begins
12705 # with a dollar sign (not a hyphen), so the echo should work correctly.
12706 # The option is referenced via a variable to avoid confusing sed.
12707 lt_compile=`echo "$ac_compile" | $SED \
12708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12710 -e 's:$: $lt_compiler_flag:'`
12711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12712 (eval "$lt_compile" 2>conftest.err)
12713 ac_status=$?
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 if (exit $ac_status) && test -s "$ac_outfile"; then
12717 # The compiler can only warn and ignore the option if not recognized
12718 # So say no if there are warnings other than the usual output.
12719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12721 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12722 lt_cv_prog_compiler_pic_works=yes
12723 fi
12724 fi
12725 $RM conftest*
12726 ;;
12727 esac
12728 fi
12729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12730 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12731
12732 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12733 case $lt_prog_compiler_pic in
12734 "" | " "*) ;;
12735 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12736 esac
12737 else
12738 lt_prog_compiler_pic=
12739 lt_prog_compiler_can_build_shared=no
12740 fi
12741
12742 fi
12743
12744
12745
12746
12747
12748 #
12749 # Check to make sure the static flag actually works.
12750 #
12751 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12753 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12754 if test ${lt_cv_prog_compiler_static_works+y}
12755 then :
12756 printf %s "(cached) " >&6
12757 else case e in #(
12758 e) lt_cv_prog_compiler_static_works=no
12759 save_LDFLAGS=$LDFLAGS
12760 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12761 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12762 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12763 # The linker can only warn and ignore the option if not recognized
12764 # So say no if there are warnings
12765 if test -s conftest.err; then
12766 # Append any errors to the config.log.
12767 cat conftest.err 1>&5
12768 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12770 if diff conftest.exp conftest.er2 >/dev/null; then
12771 lt_cv_prog_compiler_static_works=yes
12772 fi
12773 else
12774 lt_cv_prog_compiler_static_works=yes
12775 fi
12776 fi
12777 $RM -r conftest*
12778 LDFLAGS=$save_LDFLAGS
12779 ;;
12780 esac
12781 fi
12782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12783 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12784
12785 if test yes = "$lt_cv_prog_compiler_static_works"; then
12786 :
12787 else
12788 lt_prog_compiler_static=
12789 fi
12790
12791
12792
12793 ='-fPIC'
12794 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12795 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'
12796 archive_cmds_need_lc=no
12797 no_undefined_flag=
12798 ;;
12799
12800 *)
12801 dynamic_linker=no
12802 ;;
12803 esac
12804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12805 printf "%s\n" "$dynamic_linker" >&6; }
12806 test no = "$dynamic_linker" && can_build_shared=no
12807
12808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12809 if test yes = "$GCC"; then
12810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12811 fi
12812
12813 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12814 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12815 fi
12816
12817 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12818 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12819 fi
12820
12821 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12822 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12823
12824 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12825 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12826
12827 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12828 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12927 printf %s "checking how to hardcode library paths into programs... " >&6; }
12928 hardcode_action=
12929 if test -n "$hardcode_libdir_flag_spec" ||
12930 test -n "$runpath_var" ||
12931 test yes = "$hardcode_automatic"; then
12932
12933 # We can hardcode non-existent directories.
12934 if test no != "$hardcode_direct" &&
12935 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12936 # have to relink, otherwise we might link with an installed library
12937 # when we should be linking with a yet-to-be-installed one
12938 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12939 test no != "$hardcode_minus_L"; then
12940 # Linking always hardcodes the temporary library directory.
12941 hardcode_action=relink
12942 else
12943 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12944 hardcode_action=immediate
12945 fi
12946 else
12947 # We cannot hardcode anything, or else we can only hardcode existing
12948 # directories.
12949 hardcode_action=unsupported
12950 fi
12951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12952 printf "%s\n" "$hardcode_action" >&6; }
12953
12954 if test relink = "$hardcode_action" ||
12955 test yes = "$inherit_rpath"; then
12956 # Fast installation is not supported
12957 enable_fast_install=no
12958 elif test yes = "$shlibpath_overrides_runpath" ||
12959 test no = "$enable_shared"; then
12960 # Fast installation is not necessary
12961 enable_fast_install=needless
12962 fi
12963
12964
12965
12966
12967
12968
12969 if test yes != "$enable_dlopen"; then
12970 enable_dlopen=unknown
12971 enable_dlopen_self=unknown
12972 enable_dlopen_self_static=unknown
12973 else
12974 lt_cv_dlopen=no
12975 lt_cv_dlopen_libs=
12976
12977 case $host_os in
12978 beos*)
12979 lt_cv_dlopen=load_add_on
12980 lt_cv_dlopen_libs=
12981 lt_cv_dlopen_self=yes
12982 ;;
12983
12984 mingw* | windows* | pw32* | cegcc*)
12985 lt_cv_dlopen=LoadLibrary
12986 lt_cv_dlopen_libs=
12987 ;;
12988
12989 cygwin*)
12990 lt_cv_dlopen=dlopen
12991 lt_cv_dlopen_libs=
12992 ;;
12993
12994 darwin*)
12995 # if libdl is installed we need to link against it
12996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12997 printf %s "checking for dlopen in -ldl... " >&6; }
12998 if test ${ac_cv_lib_dl_dlopen+y}
12999 then :
13000 printf %s "(cached) " >&6
13001 else case e in #(
13002 e) ac_check_lib_save_LIBS=$LIBS
13003 LIBS="-ldl $LIBS"
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13006
13007 /* Override any GCC internal prototype to avoid an error.
13008 Use char because int might match the return type of a GCC
13009 builtin and then its argument prototype would still apply.
13010 The 'extern "C"' is for builds by C++ compilers;
13011 although this is not generally supported in C code supporting it here
13012 has little cost and some practical benefit (sr 110532). */
13013 #ifdef __cplusplus
13014 extern "C"
13015 #endif
13016 char dlopen (void);
13017 int
13018 main (void)
13019 {
13020 return dlopen ();
13021 ;
13022 return 0;
13023 }
13024 _ACEOF
13025 if ac_fn_c_try_link "$LINENO"
13026 then :
13027 ac_cv_lib_dl_dlopen=yes
13028 else case e in #(
13029 e) ac_cv_lib_dl_dlopen=no ;;
13030 esac
13031 fi
13032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13033 conftest$ac_exeext conftest.$ac_ext
13034 LIBS=$ac_check_lib_save_LIBS ;;
13035 esac
13036 fi
13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13038 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13039 if test "x$ac_cv_lib_dl_dlopen" = xyes
13040 then :
13041 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13042 else case e in #(
13043 e)
13044 lt_cv_dlopen=dyld
13045 lt_cv_dlopen_libs=
13046 lt_cv_dlopen_self=yes
13047 ;;
13048 esac
13049 fi
13050
13051 ;;
13052
13053 tpf*)
13054 # Don't try to run any link tests for TPF. We know it's impossible
13055 # because TPF is a cross-compiler, and we know how we open DSOs.
13056 lt_cv_dlopen=dlopen
13057 lt_cv_dlopen_libs=
13058 lt_cv_dlopen_self=no
13059 ;;
13060
13061 *)
13062 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13063 if test "x$ac_cv_func_shl_load" = xyes
13064 then :
13065 lt_cv_dlopen=shl_load
13066 else case e in #(
13067 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13068 printf %s "checking for shl_load in -ldld... " >&6; }
13069 if test ${ac_cv_lib_dld_shl_load+y}
13070 then :
13071 printf %s "(cached) " >&6
13072 else case e in #(
13073 e) ac_check_lib_save_LIBS=$LIBS
13074 LIBS="-ldld $LIBS"
13075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h. */
13077
13078 /* Override any GCC internal prototype to avoid an error.
13079 Use char because int might match the return type of a GCC
13080 builtin and then its argument prototype would still apply.
13081 The 'extern "C"' is for builds by C++ compilers;
13082 although this is not generally supported in C code supporting it here
13083 has little cost and some practical benefit (sr 110532). */
13084 #ifdef __cplusplus
13085 extern "C"
13086 #endif
13087 char shl_load (void);
13088 int
13089 main (void)
13090 {
13091 return shl_load ();
13092 ;
13093 return 0;
13094 }
13095 _ACEOF
13096 if ac_fn_c_try_link "$LINENO"
13097 then :
13098 ac_cv_lib_dld_shl_load=yes
13099 else case e in #(
13100 e) ac_cv_lib_dld_shl_load=no ;;
13101 esac
13102 fi
13103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13104 conftest$ac_exeext conftest.$ac_ext
13105 LIBS=$ac_check_lib_save_LIBS ;;
13106 esac
13107 fi
13108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13109 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13110 if test "x$ac_cv_lib_dld_shl_load" = xyes
13111 then :
13112 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13113 else case e in #(
13114 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13115 if test "x$ac_cv_func_dlopen" = xyes
13116 then :
13117 lt_cv_dlopen=dlopen
13118 else case e in #(
13119 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13120 printf %s "checking for dlopen in -ldl... " >&6; }
13121 if test ${ac_cv_lib_dl_dlopen+y}
13122 then :
13123 printf %s "(cached) " >&6
13124 else case e in #(
13125 e) ac_check_lib_save_LIBS=$LIBS
13126 LIBS="-ldl $LIBS"
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13129
13130 /* Override any GCC internal prototype to avoid an error.
13131 Use char because int might match the return type of a GCC
13132 builtin and then its argument prototype would still apply.
13133 The 'extern "C"' is for builds by C++ compilers;
13134 although this is not generally supported in C code supporting it here
13135 has little cost and some practical benefit (sr 110532). */
13136 #ifdef __cplusplus
13137 extern "C"
13138 #endif
13139 char dlopen (void);
13140 int
13141 main (void)
13142 {
13143 return dlopen ();
13144 ;
13145 return 0;
13146 }
13147 _ACEOF
13148 if ac_fn_c_try_link "$LINENO"
13149 then :
13150 ac_cv_lib_dl_dlopen=yes
13151 else case e in #(
13152 e) ac_cv_lib_dl_dlopen=no ;;
13153 esac
13154 fi
13155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13156 conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS ;;
13158 esac
13159 fi
13160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13161 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13162 if test "x$ac_cv_lib_dl_dlopen" = xyes
13163 then :
13164 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13165 else case e in #(
13166 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13167 printf %s "checking for dlopen in -lsvld... " >&6; }
13168 if test ${ac_cv_lib_svld_dlopen+y}
13169 then :
13170 printf %s "(cached) " >&6
13171 else case e in #(
13172 e) ac_check_lib_save_LIBS=$LIBS
13173 LIBS="-lsvld $LIBS"
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13176
13177 /* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply.
13180 The 'extern "C"' is for builds by C++ compilers;
13181 although this is not generally supported in C code supporting it here
13182 has little cost and some practical benefit (sr 110532). */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 char dlopen (void);
13187 int
13188 main (void)
13189 {
13190 return dlopen ();
13191 ;
13192 return 0;
13193 }
13194 _ACEOF
13195 if ac_fn_c_try_link "$LINENO"
13196 then :
13197 ac_cv_lib_svld_dlopen=yes
13198 else case e in #(
13199 e) ac_cv_lib_svld_dlopen=no ;;
13200 esac
13201 fi
13202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13203 conftest$ac_exeext conftest.$ac_ext
13204 LIBS=$ac_check_lib_save_LIBS ;;
13205 esac
13206 fi
13207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13208 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13209 if test "x$ac_cv_lib_svld_dlopen" = xyes
13210 then :
13211 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13212 else case e in #(
13213 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13214 printf %s "checking for dld_link in -ldld... " >&6; }
13215 if test ${ac_cv_lib_dld_dld_link+y}
13216 then :
13217 printf %s "(cached) " >&6
13218 else case e in #(
13219 e) ac_check_lib_save_LIBS=$LIBS
13220 LIBS="-ldld $LIBS"
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13223
13224 /* Override any GCC internal prototype to avoid an error.
13225 Use char because int might match the return type of a GCC
13226 builtin and then its argument prototype would still apply.
13227 The 'extern "C"' is for builds by C++ compilers;
13228 although this is not generally supported in C code supporting it here
13229 has little cost and some practical benefit (sr 110532). */
13230 #ifdef __cplusplus
13231 extern "C"
13232 #endif
13233 char dld_link (void);
13234 int
13235 main (void)
13236 {
13237 return dld_link ();
13238 ;
13239 return 0;
13240 }
13241 _ACEOF
13242 if ac_fn_c_try_link "$LINENO"
13243 then :
13244 ac_cv_lib_dld_dld_link=yes
13245 else case e in #(
13246 e) ac_cv_lib_dld_dld_link=no ;;
13247 esac
13248 fi
13249 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13250 conftest$ac_exeext conftest.$ac_ext
13251 LIBS=$ac_check_lib_save_LIBS ;;
13252 esac
13253 fi
13254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13255 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13256 if test "x$ac_cv_lib_dld_dld_link" = xyes
13257 then :
13258 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13259 fi
13260
13261 ;;
13262 esac
13263 fi
13264
13265 ;;
13266 esac
13267 fi
13268
13269 ;;
13270 esac
13271 fi
13272
13273 ;;
13274 esac
13275 fi
13276
13277 ;;
13278 esac
13279 fi
13280
13281 ;;
13282 esac
13283
13284 if test no = "$lt_cv_dlopen"; then
13285 enable_dlopen=no
13286 else
13287 enable_dlopen=yes
13288 fi
13289
13290 case $lt_cv_dlopen in
13291 dlopen)
13292 save_CPPFLAGS=$CPPFLAGS
13293 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13294
13295 save_LDFLAGS=$LDFLAGS
13296 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13297
13298 save_LIBS=$LIBS
13299 LIBS="$lt_cv_dlopen_libs $LIBS"
13300
13301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13302 printf %s "checking whether a program can dlopen itself... " >&6; }
13303 if test ${lt_cv_dlopen_self+y}
13304 then :
13305 printf %s "(cached) " >&6
13306 else case e in #(
13307 e) if test yes = "$cross_compiling"; then :
13308 lt_cv_dlopen_self=cross
13309 else
13310 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13311 lt_status=$lt_dlunknown
13312 cat > conftest.$ac_ext <<_LT_EOF
13313 #line $LINENO "configure"
13314 #include "confdefs.h"
13315
13316 #if HAVE_DLFCN_H
13317 #include <dlfcn.h>
13318 #endif
13319
13320 #include <stdio.h>
13321
13322 #ifdef RTLD_GLOBAL
13323 # define LT_DLGLOBAL RTLD_GLOBAL
13324 #else
13325 # ifdef DL_GLOBAL
13326 # define LT_DLGLOBAL DL_GLOBAL
13327 # else
13328 # define LT_DLGLOBAL 0
13329 # endif
13330 #endif
13331
13332 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13333 find out it does not work in some platform. */
13334 #ifndef LT_DLLAZY_OR_NOW
13335 # ifdef RTLD_LAZY
13336 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13337 # else
13338 # ifdef DL_LAZY
13339 # define LT_DLLAZY_OR_NOW DL_LAZY
13340 # else
13341 # ifdef RTLD_NOW
13342 # define LT_DLLAZY_OR_NOW RTLD_NOW
13343 # else
13344 # ifdef DL_NOW
13345 # define LT_DLLAZY_OR_NOW DL_NOW
13346 # else
13347 # define LT_DLLAZY_OR_NOW 0
13348 # endif
13349 # endif
13350 # endif
13351 # endif
13352 #endif
13353
13354 /* When -fvisibility=hidden is used, assume the code has been annotated
13355 correspondingly for the symbols needed. */
13356 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13357 int fnord (void) __attribute__((visibility("default")));
13358 #endif
13359
13360 int fnord (void) { return 42; }
13361 int main (void)
13362 {
13363 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13364 int status = $lt_dlunknown;
13365
13366 if (self)
13367 {
13368 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13369 else
13370 {
13371 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13372 else puts (dlerror ());
13373 }
13374 /* dlclose (self); */
13375 }
13376 else
13377 puts (dlerror ());
13378
13379 return status;
13380 }
13381 _LT_EOF
13382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13383 (eval $ac_link) 2>&5
13384 ac_status=$?
13385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13386 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13387 (./conftest; exit; ) >&5 2>/dev/null
13388 lt_status=$?
13389 case x$lt_status in
13390 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13391 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13392 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13393 esac
13394 else :
13395 # compilation failed
13396 lt_cv_dlopen_self=no
13397 fi
13398 fi
13399 rm -fr conftest*
13400
13401 ;;
13402 esac
13403 fi
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13405 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13406
13407 if test yes = "$lt_cv_dlopen_self"; then
13408 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13410 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13411 if test ${lt_cv_dlopen_self_static+y}
13412 then :
13413 printf %s "(cached) " >&6
13414 else case e in #(
13415 e) if test yes = "$cross_compiling"; then :
13416 lt_cv_dlopen_self_static=cross
13417 else
13418 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13419 lt_status=$lt_dlunknown
13420 cat > conftest.$ac_ext <<_LT_EOF
13421 #line $LINENO "configure"
13422 #include "confdefs.h"
13423
13424 #if HAVE_DLFCN_H
13425 #include <dlfcn.h>
13426 #endif
13427
13428 #include <stdio.h>
13429
13430 #ifdef RTLD_GLOBAL
13431 # define LT_DLGLOBAL RTLD_GLOBAL
13432 #else
13433 # ifdef DL_GLOBAL
13434 # define LT_DLGLOBAL DL_GLOBAL
13435 # else
13436 # define LT_DLGLOBAL 0
13437 # endif
13438 #endif
13439
13440 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13441 find out it does not work in some platform. */
13442 #ifndef LT_DLLAZY_OR_NOW
13443 # ifdef RTLD_LAZY
13444 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13445 # else
13446 # ifdef DL_LAZY
13447 # define LT_DLLAZY_OR_NOW DL_LAZY
13448 # else
13449 # ifdef RTLD_NOW
13450 # define LT_DLLAZY_OR_NOW RTLD_NOW
13451 # else
13452 # ifdef DL_NOW
13453 # define LT_DLLAZY_OR_NOW DL_NOW
13454 # else
13455 # define LT_DLLAZY_OR_NOW 0
13456 # endif
13457 # endif
13458 # endif
13459 # endif
13460 #endif
13461
13462 /* When -fvisibility=hidden is used, assume the code has been annotated
13463 correspondingly for the symbols needed. */
13464 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13465 int fnord (void) __attribute__((visibility("default")));
13466 #endif
13467
13468 int fnord (void) { return 42; }
13469 int main (void)
13470 {
13471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13472 int status = $lt_dlunknown;
13473
13474 if (self)
13475 {
13476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13477 else
13478 {
13479 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13480 else puts (dlerror ());
13481 }
13482 /* dlclose (self); */
13483 }
13484 else
13485 puts (dlerror ());
13486
13487 return status;
13488 }
13489 _LT_EOF
13490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13491 (eval $ac_link) 2>&5
13492 ac_status=$?
13493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13494 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13495 (./conftest; exit; ) >&5 2>/dev/null
13496 lt_status=$?
13497 case x$lt_status in
13498 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13499 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13500 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13501 esac
13502 else :
13503 # compilation failed
13504 lt_cv_dlopen_self_static=no
13505 fi
13506 fi
13507 rm -fr conftest*
13508
13509 ;;
13510 esac
13511 fi
13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13513 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13514 fi
13515
13516 CPPFLAGS=$save_CPPFLAGS
13517 LDFLAGS=$save_LDFLAGS
13518 LIBS=$save_LIBS
13519 ;;
13520 esac
13521
13522 case $lt_cv_dlopen_self in
13523 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13524 *) enable_dlopen_self=unknown ;;
13525 esac
13526
13527 case $lt_cv_dlopen_self_static in
13528 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13529 *) enable_dlopen_self_static=unknown ;;
13530 esac
13531 fi
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549 striplib=
13550 old_striplib=
13551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13552 printf %s "checking whether stripping libraries is possible... " >&6; }
13553 if test -z "$STRIP"; then
13554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 printf "%s\n" "no" >&6; }
13556 else
13557 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13558 old_striplib="$STRIP --strip-debug"
13559 striplib="$STRIP --strip-unneeded"
13560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13561 printf "%s\n" "yes" >&6; }
13562 else
13563 case $host_os in
13564 darwin*)
13565 # FIXME - insert some real tests, host_os isn't really good enough
13566 striplib="$STRIP -x"
13567 old_striplib="$STRIP -S"
13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13569 printf "%s\n" "yes" >&6; }
13570 ;;
13571 freebsd*)
13572 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13573 old_striplib="$STRIP --strip-debug"
13574 striplib="$STRIP --strip-unneeded"
13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13576 printf "%s\n" "yes" >&6; }
13577 else
13578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579 printf "%s\n" "no" >&6; }
13580 fi
13581 ;;
13582 *)
13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 printf "%s\n" "no" >&6; }
13585 ;;
13586 esac
13587 fi
13588 fi
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601 # Report what library types will actually be built
13602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13603 printf %s "checking if libtool supports shared libraries... " >&6; }
13604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13605 printf "%s\n" "$can_build_shared" >&6; }
13606
13607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13608 printf %s "checking whether to build shared libraries... " >&6; }
13609 test no = "$can_build_shared" && enable_shared=no
13610
13611 # On AIX, shared libraries and static libraries use the same namespace, and
13612 # are all built from PIC.
13613 case $host_os in
13614 aix3*)
13615 test yes = "$enable_shared" && enable_static=no
13616 if test -n "$RANLIB"; then
13617 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13618 postinstall_cmds='$RANLIB $lib'
13619 fi
13620 ;;
13621
13622 aix[4-9]*)
13623 if test ia64 != "$host_cpu"; then
13624 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13625 yes,aix,yes) ;; # shared object as lib.so file only
13626 yes,svr4,*) ;; # shared object as lib.so archive member only
13627 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13628 esac
13629 fi
13630 ;;
13631 esac
13632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13633 printf "%s\n" "$enable_shared" >&6; }
13634
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13636 printf %s "checking whether to build static libraries... " >&6; }
13637 # Make sure either enable_shared or enable_static is yes.
13638 test yes = "$enable_shared" || enable_static=yes
13639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13640 printf "%s\n" "$enable_static" >&6; }
13641
13642
13643
13644
13645 fi
13646 ac_ext=c
13647 ac_cpp='$CPP $CPPFLAGS'
13648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13651
13652 CC=$lt_save_CC
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668 ac_config_commands="$ac_config_commands libtool"
13669
13670
13671
13672
13673 # Only expand once:
13674
13675
13676
13677 # Check whether --enable-shared was given.
13678 if test ${enable_shared+y}
13679 then :
13680 enableval=$enable_shared; p=${PACKAGE-default}
13681 case $enableval in
13682 yes) enable_shared=yes ;;
13683 no) enable_shared=no ;;
13684 *)
13685 enable_shared=no
13686 # Look at the argument we got. We use all the common list separators.
13687 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13688 for pkg in $enableval; do
13689 IFS=$lt_save_ifs
13690 if test "X$pkg" = "X$p"; then
13691 enable_shared=yes
13692 fi
13693 done
13694 IFS=$lt_save_ifs
13695 ;;
13696 esac
13697 else case e in #(
13698 e) enable_shared=yes ;;
13699 esac
13700 fi
13701
13702
13703
13704
13705
13706
13707 # Check whether --enable-static was given.
13708 if test ${enable_static+y}
13709 then :
13710 enableval=$enable_static; p=${PACKAGE-default}
13711 case $enableval in
13712 yes) enable_static=yes ;;
13713 no) enable_static=no ;;
13714 *)
13715 enable_static=no
13716 # Look at the argument we got. We use all the common list separators.
13717 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13718 for pkg in $enableval; do
13719 IFS=$lt_save_ifs
13720 if test "X$pkg" = "X$p"; then
13721 enable_static=yes
13722 fi
13723 done
13724 IFS=$lt_save_ifs
13725 ;;
13726 esac
13727 else case e in #(
13728 e) enable_static=no ;;
13729 esac
13730 fi
13731
13732
13733
13734
13735
13736
13737
13738 HAVEGE_LT_VERSION="2:0:0"
13739
13740
13741 printf "%s\n" "#define HAVEGE_LIB_VERSION \"$HAVEGE_LT_VERSION\"" >>confdefs.h
13742
13743 ##libtool_end##
13744
13745 ## Make clock_gettime configurable
13746 # Check whether --enable-clock_gettime was given.
13747 if test ${enable_clock_gettime+y}
13748 then :
13749 enableval=$enable_clock_gettime;
13750 else case e in #(
13751 e) enable_clock_gettime="x" ;;
13752 esac
13753 fi
13754
13755
13756 ## Make build w/o daemon interface configurable
13757 # Check whether --enable-daemon was given.
13758 if test ${enable_daemon+y}
13759 then :
13760 enableval=$enable_daemon;
13761 else case e in #(
13762 e) enable_daemon="x" ;;
13763 esac
13764 fi
13765
13766
13767 ## Make diagnostic modes configurable
13768 # Check whether --enable-diagnostic was given.
13769 if test ${enable_diagnostic+y}
13770 then :
13771 enableval=$enable_diagnostic;
13772 else case e in #(
13773 e) enable_diagnostic="no" ;;
13774 esac
13775 fi
13776
13777 if test "x$enable_diagnostic" = "xyes"; then
13778
13779 printf "%s\n" "#define RAW_OUT_ENABLE 1" >>confdefs.h
13780
13781
13782 printf "%s\n" "#define RAW_IN_ENABLE 1" >>confdefs.h
13783
13784 enable_daemon="no";
13785 elif test "x$enable_diagnostic" = "xcapture"; then
13786
13787 printf "%s\n" "#define RAW_OUT_ENABLE 1" >>confdefs.h
13788
13789 enable_daemon="no";
13790 elif test "x$enable_diagnostic" = "xinject"; then
13791
13792 printf "%s\n" "#define RAW_IN_ENABLE 1" >>confdefs.h
13793
13794 enable_daemon="no";
13795 fi
13796
13797 ## Make nist self-test configurable
13798 # Check whether --enable-nistest was given.
13799 if test ${enable_nistest+y}
13800 then :
13801 enableval=$enable_nistest;
13802 else case e in #(
13803 e) enable_nistest="no" ;;
13804 esac
13805 fi
13806
13807
13808 ## Make ent self-test configurable
13809 # Check whether --enable-enttest was given.
13810 if test ${enable_enttest+y}
13811 then :
13812 enableval=$enable_enttest;
13813 else case e in #(
13814 e) enable_enttest="yes" ;;
13815 esac
13816 fi
13817
13818
13819 ## Make self test features configurable
13820 # Check whether --enable-olt was given.
13821 if test ${enable_olt+y}
13822 then :
13823 enableval=$enable_olt;
13824 else case e in #(
13825 e) enable_olt="yes" ;;
13826 esac
13827 fi
13828
13829 if test "x$enable_olt" = "xyes"; then
13830
13831 printf "%s\n" "#define ONLINE_TESTS_ENABLE 1" >>confdefs.h
13832
13833 fi
13834
13835 ## Make multi-thread feature configurable
13836 # Check whether --enable-threads was given.
13837 if test ${enable_threads+y}
13838 then :
13839 enableval=$enable_threads;
13840 else case e in #(
13841 e) enable_threads="no" ;;
13842 esac
13843 fi
13844
13845 if test "x$enable_threads" = "xyes"; then
13846
13847 printf "%s\n" "#define NUMBER_CORES 4" >>confdefs.h
13848
13849 else
13850
13851 printf "%s\n" "#define NUMBER_CORES 1" >>confdefs.h
13852
13853 fi
13854
13855 ## Make tuning features configurable
13856 # Check whether --enable-tune was given.
13857 if test ${enable_tune+y}
13858 then :
13859 enableval=$enable_tune;
13860 else case e in #(
13861 e) enable_tune="yes" ;;
13862 esac
13863 fi
13864
13865 if test "x$enable_tune" = "xyes"; then
13866
13867 printf "%s\n" "#define TUNING_CPUID_ENABLE 1" >>confdefs.h
13868
13869
13870 printf "%s\n" "#define TUNING_VFS_ENABLE 1" >>confdefs.h
13871
13872 elif test "x$enable_tune" = "xcpuid"; then
13873
13874 printf "%s\n" "#define TUNING_CPUID_ENABLE 1" >>confdefs.h
13875
13876 elif test "x$enable_tune" = "xvfs"; then
13877
13878 printf "%s\n" "#define TUNING_VFS_ENABLE 1" >>confdefs.h
13879
13880 fi
13881
13882 ## Checks for programs.
13883 ac_ext=c
13884 ac_cpp='$CPP $CPPFLAGS'
13885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13888 if test -n "$ac_tool_prefix"; then
13889 for ac_prog in gcc
13890 do
13891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13894 printf %s "checking for $ac_word... " >&6; }
13895 if test ${ac_cv_prog_CC+y}
13896 then :
13897 printf %s "(cached) " >&6
13898 else case e in #(
13899 e) if test -n "$CC"; then
13900 ac_cv_prog_CC="$CC" # Let the user override the test.
13901 else
13902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH
13904 do
13905 IFS=$as_save_IFS
13906 case $as_dir in #(((
13907 '') as_dir=./ ;;
13908 */) ;;
13909 *) as_dir=$as_dir/ ;;
13910 esac
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13913 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13915 break 2
13916 fi
13917 done
13918 done
13919 IFS=$as_save_IFS
13920
13921 fi ;;
13922 esac
13923 fi
13924 CC=$ac_cv_prog_CC
13925 if test -n "$CC"; then
13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13927 printf "%s\n" "$CC" >&6; }
13928 else
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13930 printf "%s\n" "no" >&6; }
13931 fi
13932
13933
13934 test -n "$CC" && break
13935 done
13936 fi
13937 if test -z "$CC"; then
13938 ac_ct_CC=$CC
13939 for ac_prog in gcc
13940 do
13941 # Extract the first word of "$ac_prog", so it can be a program name with args.
13942 set dummy $ac_prog; ac_word=$2
13943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13944 printf %s "checking for $ac_word... " >&6; }
13945 if test ${ac_cv_prog_ac_ct_CC+y}
13946 then :
13947 printf %s "(cached) " >&6
13948 else case e in #(
13949 e) if test -n "$ac_ct_CC"; then
13950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13951 else
13952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13953 for as_dir in $PATH
13954 do
13955 IFS=$as_save_IFS
13956 case $as_dir in #(((
13957 '') as_dir=./ ;;
13958 */) ;;
13959 *) as_dir=$as_dir/ ;;
13960 esac
13961 for ac_exec_ext in '' $ac_executable_extensions; do
13962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13963 ac_cv_prog_ac_ct_CC="$ac_prog"
13964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13965 break 2
13966 fi
13967 done
13968 done
13969 IFS=$as_save_IFS
13970
13971 fi ;;
13972 esac
13973 fi
13974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13975 if test -n "$ac_ct_CC"; then
13976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13977 printf "%s\n" "$ac_ct_CC" >&6; }
13978 else
13979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13980 printf "%s\n" "no" >&6; }
13981 fi
13982
13983
13984 test -n "$ac_ct_CC" && break
13985 done
13986
13987 if test "x$ac_ct_CC" = x; then
13988 CC=""
13989 else
13990 case $cross_compiling:$ac_tool_warned in
13991 yes:)
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13993 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13994 ac_tool_warned=yes ;;
13995 esac
13996 CC=$ac_ct_CC
13997 fi
13998 fi
13999
14000
14001 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14002 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14003 as_fn_error $? "no acceptable C compiler found in \$PATH
14004 See 'config.log' for more details" "$LINENO" 5; }
14005
14006 # Provide some information about the compiler.
14007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14008 set X $ac_compile
14009 ac_compiler=$2
14010 for ac_option in --version -v -V -qversion -version; do
14011 { { ac_try="$ac_compiler $ac_option >&5"
14012 case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14015 esac
14016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14017 printf "%s\n" "$ac_try_echo"; } >&5
14018 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14019 ac_status=$?
14020 if test -s conftest.err; then
14021 sed '10a\
14022 ... rest of stderr output deleted ...
14023 10q' conftest.err >conftest.er1
14024 cat conftest.er1 >&5
14025 fi
14026 rm -f conftest.er1 conftest.err
14027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14028 test $ac_status = 0; }
14029 done
14030
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14032 printf %s "checking whether the compiler supports GNU C... " >&6; }
14033 if test ${ac_cv_c_compiler_gnu+y}
14034 then :
14035 printf %s "(cached) " >&6
14036 else case e in #(
14037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14039
14040 int
14041 main (void)
14042 {
14043 #ifndef __GNUC__
14044 choke me
14045 #endif
14046
14047 ;
14048 return 0;
14049 }
14050 _ACEOF
14051 if ac_fn_c_try_compile "$LINENO"
14052 then :
14053 ac_compiler_gnu=yes
14054 else case e in #(
14055 e) ac_compiler_gnu=no ;;
14056 esac
14057 fi
14058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14059 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14060 ;;
14061 esac
14062 fi
14063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14064 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14066
14067 if test $ac_compiler_gnu = yes; then
14068 GCC=yes
14069 else
14070 GCC=
14071 fi
14072 ac_test_CFLAGS=${CFLAGS+y}
14073 ac_save_CFLAGS=$CFLAGS
14074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14075 printf %s "checking whether $CC accepts -g... " >&6; }
14076 if test ${ac_cv_prog_cc_g+y}
14077 then :
14078 printf %s "(cached) " >&6
14079 else case e in #(
14080 e) ac_save_c_werror_flag=$ac_c_werror_flag
14081 ac_c_werror_flag=yes
14082 ac_cv_prog_cc_g=no
14083 CFLAGS="-g"
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14086
14087 int
14088 main (void)
14089 {
14090
14091 ;
14092 return 0;
14093 }
14094 _ACEOF
14095 if ac_fn_c_try_compile "$LINENO"
14096 then :
14097 ac_cv_prog_cc_g=yes
14098 else case e in #(
14099 e) CFLAGS=""
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102
14103 int
14104 main (void)
14105 {
14106
14107 ;
14108 return 0;
14109 }
14110 _ACEOF
14111 if ac_fn_c_try_compile "$LINENO"
14112 then :
14113
14114 else case e in #(
14115 e) ac_c_werror_flag=$ac_save_c_werror_flag
14116 CFLAGS="-g"
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h. */
14119
14120 int
14121 main (void)
14122 {
14123
14124 ;
14125 return 0;
14126 }
14127 _ACEOF
14128 if ac_fn_c_try_compile "$LINENO"
14129 then :
14130 ac_cv_prog_cc_g=yes
14131 fi
14132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14133 esac
14134 fi
14135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14136 esac
14137 fi
14138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14139 ac_c_werror_flag=$ac_save_c_werror_flag ;;
14140 esac
14141 fi
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14143 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14144 if test $ac_test_CFLAGS; then
14145 CFLAGS=$ac_save_CFLAGS
14146 elif test $ac_cv_prog_cc_g = yes; then
14147 if test "$GCC" = yes; then
14148 CFLAGS="-g -O2"
14149 else
14150 CFLAGS="-g"
14151 fi
14152 else
14153 if test "$GCC" = yes; then
14154 CFLAGS="-O2"
14155 else
14156 CFLAGS=
14157 fi
14158 fi
14159 ac_prog_cc_stdc=no
14160 if test x$ac_prog_cc_stdc = xno
14161 then :
14162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14163 printf %s "checking for $CC option to enable C11 features... " >&6; }
14164 if test ${ac_cv_prog_cc_c11+y}
14165 then :
14166 printf %s "(cached) " >&6
14167 else case e in #(
14168 e) ac_cv_prog_cc_c11=no
14169 ac_save_CC=$CC
14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h. */
14172 $ac_c_conftest_c11_program
14173 _ACEOF
14174 for ac_arg in '' -std=gnu11
14175 do
14176 CC="$ac_save_CC $ac_arg"
14177 if ac_fn_c_try_compile "$LINENO"
14178 then :
14179 ac_cv_prog_cc_c11=$ac_arg
14180 fi
14181 rm -f core conftest.err conftest.$ac_objext conftest.beam
14182 test "x$ac_cv_prog_cc_c11" != "xno" && break
14183 done
14184 rm -f conftest.$ac_ext
14185 CC=$ac_save_CC ;;
14186 esac
14187 fi
14188
14189 if test "x$ac_cv_prog_cc_c11" = xno
14190 then :
14191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14192 printf "%s\n" "unsupported" >&6; }
14193 else case e in #(
14194 e) if test "x$ac_cv_prog_cc_c11" = x
14195 then :
14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14197 printf "%s\n" "none needed" >&6; }
14198 else case e in #(
14199 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14200 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14201 CC="$CC $ac_cv_prog_cc_c11" ;;
14202 esac
14203 fi
14204 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14205 ac_prog_cc_stdc=c11 ;;
14206 esac
14207 fi
14208 fi
14209 if test x$ac_prog_cc_stdc = xno
14210 then :
14211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14212 printf %s "checking for $CC option to enable C99 features... " >&6; }
14213 if test ${ac_cv_prog_cc_c99+y}
14214 then :
14215 printf %s "(cached) " >&6
14216 else case e in #(
14217 e) ac_cv_prog_cc_c99=no
14218 ac_save_CC=$CC
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14221 $ac_c_conftest_c99_program
14222 _ACEOF
14223 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14224 do
14225 CC="$ac_save_CC $ac_arg"
14226 if ac_fn_c_try_compile "$LINENO"
14227 then :
14228 ac_cv_prog_cc_c99=$ac_arg
14229 fi
14230 rm -f core conftest.err conftest.$ac_objext conftest.beam
14231 test "x$ac_cv_prog_cc_c99" != "xno" && break
14232 done
14233 rm -f conftest.$ac_ext
14234 CC=$ac_save_CC ;;
14235 esac
14236 fi
14237
14238 if test "x$ac_cv_prog_cc_c99" = xno
14239 then :
14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14241 printf "%s\n" "unsupported" >&6; }
14242 else case e in #(
14243 e) if test "x$ac_cv_prog_cc_c99" = x
14244 then :
14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14246 printf "%s\n" "none needed" >&6; }
14247 else case e in #(
14248 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14249 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14250 CC="$CC $ac_cv_prog_cc_c99" ;;
14251 esac
14252 fi
14253 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14254 ac_prog_cc_stdc=c99 ;;
14255 esac
14256 fi
14257 fi
14258 if test x$ac_prog_cc_stdc = xno
14259 then :
14260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14261 printf %s "checking for $CC option to enable C89 features... " >&6; }
14262 if test ${ac_cv_prog_cc_c89+y}
14263 then :
14264 printf %s "(cached) " >&6
14265 else case e in #(
14266 e) ac_cv_prog_cc_c89=no
14267 ac_save_CC=$CC
14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14269 /* end confdefs.h. */
14270 $ac_c_conftest_c89_program
14271 _ACEOF
14272 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14273 do
14274 CC="$ac_save_CC $ac_arg"
14275 if ac_fn_c_try_compile "$LINENO"
14276 then :
14277 ac_cv_prog_cc_c89=$ac_arg
14278 fi
14279 rm -f core conftest.err conftest.$ac_objext conftest.beam
14280 test "x$ac_cv_prog_cc_c89" != "xno" && break
14281 done
14282 rm -f conftest.$ac_ext
14283 CC=$ac_save_CC ;;
14284 esac
14285 fi
14286
14287 if test "x$ac_cv_prog_cc_c89" = xno
14288 then :
14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14290 printf "%s\n" "unsupported" >&6; }
14291 else case e in #(
14292 e) if test "x$ac_cv_prog_cc_c89" = x
14293 then :
14294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14295 printf "%s\n" "none needed" >&6; }
14296 else case e in #(
14297 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14298 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14299 CC="$CC $ac_cv_prog_cc_c89" ;;
14300 esac
14301 fi
14302 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14303 ac_prog_cc_stdc=c89 ;;
14304 esac
14305 fi
14306 fi
14307
14308 ac_ext=c
14309 ac_cpp='$CPP $CPPFLAGS'
14310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14313
14314
14315 ac_ext=c
14316 ac_cpp='$CPP $CPPFLAGS'
14317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14321 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14322 if test ${am_cv_prog_cc_c_o+y}
14323 then :
14324 printf %s "(cached) " >&6
14325 else case e in #(
14326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327 /* end confdefs.h. */
14328
14329 int
14330 main (void)
14331 {
14332
14333 ;
14334 return 0;
14335 }
14336 _ACEOF
14337 # Make sure it works both with $CC and with simple cc.
14338 # Following AC_PROG_CC_C_O, we do the test twice because some
14339 # compilers refuse to overwrite an existing .o file with -o,
14340 # though they will create one.
14341 am_cv_prog_cc_c_o=yes
14342 for am_i in 1 2; do
14343 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14344 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } \
14348 && test -f conftest2.$ac_objext; then
14349 : OK
14350 else
14351 am_cv_prog_cc_c_o=no
14352 break
14353 fi
14354 done
14355 # aligned with autoconf, so not including core; see bug#72225.
14356 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
14357 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
14358 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
14359 unset am_i ;;
14360 esac
14361 fi
14362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14363 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14364 if test "$am_cv_prog_cc_c_o" != yes; then
14365 # Losing compiler, so override with the script.
14366 # FIXME: It is wrong to rewrite CC.
14367 # But if we don't then we get into trouble of one sort or another.
14368 # A longer-term fix would be to have automake use am__CC in this case,
14369 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14370 CC="$am_aux_dir/compile $CC"
14371 fi
14372 ac_ext=c
14373 ac_cpp='$CPP $CPPFLAGS'
14374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14377
14378
14379
14380 ## Checks for typedefs, structures, and compiler characteristics.
14381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14382 printf %s "checking for an ANSI C-conforming const... " >&6; }
14383 if test ${ac_cv_c_const+y}
14384 then :
14385 printf %s "(cached) " >&6
14386 else case e in #(
14387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14389
14390 int
14391 main (void)
14392 {
14393
14394 #ifndef __cplusplus
14395 /* Ultrix mips cc rejects this sort of thing. */
14396 typedef int charset[2];
14397 const charset cs = { 0, 0 };
14398 /* SunOS 4.1.1 cc rejects this. */
14399 char const *const *pcpcc;
14400 char **ppc;
14401 /* NEC SVR4.0.2 mips cc rejects this. */
14402 struct point {int x, y;};
14403 static struct point const zero = {0,0};
14404 /* IBM XL C 1.02.0.0 rejects this.
14405 It does not let you subtract one const X* pointer from another in
14406 an arm of an if-expression whose if-part is not a constant
14407 expression */
14408 const char *g = "string";
14409 pcpcc = &g + (g ? g-g : 0);
14410 /* HPUX 7.0 cc rejects these. */
14411 ++pcpcc;
14412 ppc = (char**) pcpcc;
14413 pcpcc = (char const *const *) ppc;
14414 { /* SCO 3.2v4 cc rejects this sort of thing. */
14415 char tx;
14416 char *t = &tx;
14417 char const *s = 0 ? (char *) 0 : (char const *) 0;
14418
14419 *t++ = 0;
14420 if (s) return 0;
14421 }
14422 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14423 int x[] = {25, 17};
14424 const int *foo = &x[0];
14425 ++foo;
14426 }
14427 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14428 typedef const int *iptr;
14429 iptr p = 0;
14430 ++p;
14431 }
14432 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14433 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14434 struct s { int j; const int *ap[3]; } bx;
14435 struct s *b = &bx; b->j = 5;
14436 }
14437 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14438 const int foo = 10;
14439 if (!foo) return 0;
14440 }
14441 return !cs[0] && !zero.x;
14442 #endif
14443
14444 ;
14445 return 0;
14446 }
14447 _ACEOF
14448 if ac_fn_c_try_compile "$LINENO"
14449 then :
14450 ac_cv_c_const=yes
14451 else case e in #(
14452 e) ac_cv_c_const=no ;;
14453 esac
14454 fi
14455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14456 esac
14457 fi
14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14459 printf "%s\n" "$ac_cv_c_const" >&6; }
14460 if test $ac_cv_c_const = no; then
14461
14462 printf "%s\n" "#define const /**/" >>confdefs.h
14463
14464 fi
14465
14466
14467
14468 # Obsolete code to be removed.
14469 if test $ac_cv_header_sys_time_h = yes; then
14470
14471 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14472
14473 fi
14474 # End of obsolete code.
14475
14476
14477 ## Checks for library functions.
14478
14479
14480
14481
14482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
14483 printf %s "checking types of arguments for select... " >&6; }
14484 if test ${ac_cv_func_select_args+y}
14485 then :
14486 printf %s "(cached) " >&6
14487 else case e in #(
14488 e) ac_cv_func_select_args='int,int *,struct timeval *'
14489 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14490 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14491 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14494 $ac_includes_default
14495 #ifdef HAVE_SYS_SELECT_H
14496 # include <sys/select.h>
14497 #endif
14498 #ifdef HAVE_SYS_SOCKET_H
14499 # include <sys/socket.h>
14500 #endif
14501
14502 int
14503 main (void)
14504 {
14505 extern int select ($ac_arg1,
14506 $ac_arg234, $ac_arg234, $ac_arg234,
14507 $ac_arg5);
14508 ;
14509 return 0;
14510 }
14511 _ACEOF
14512 if ac_fn_c_try_compile "$LINENO"
14513 then :
14514 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14515 fi
14516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14517 done
14518 done
14519 done
14520 ;;
14521 esac
14522 fi
14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
14524 printf "%s\n" "$ac_cv_func_select_args" >&6; }
14525 ac_save_IFS=$IFS; IFS=','
14526 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14527 IFS=$ac_save_IFS
14528 shift
14529
14530 printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
14531
14532
14533 printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h
14534
14535
14536 printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h
14537
14538 rm -rf conftest*
14539
14540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14541 printf %s "checking return type of signal handlers... " >&6; }
14542 if test ${ac_cv_type_signal+y}
14543 then :
14544 printf %s "(cached) " >&6
14545 else case e in #(
14546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547 /* end confdefs.h. */
14548 #include <sys/types.h>
14549 #include <signal.h>
14550
14551 int
14552 main (void)
14553 {
14554 return *(signal (0, 0)) (0) == 1;
14555 ;
14556 return 0;
14557 }
14558 _ACEOF
14559 if ac_fn_c_try_compile "$LINENO"
14560 then :
14561 ac_cv_type_signal=int
14562 else case e in #(
14563 e) ac_cv_type_signal=void ;;
14564 esac
14565 fi
14566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14567 esac
14568 fi
14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14570 printf "%s\n" "$ac_cv_type_signal" >&6; }
14571
14572 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
14573
14574
14575 ac_fn_c_check_func "$LINENO" "__rdtsc" "ac_cv_func___rdtsc"
14576 if test "x$ac_cv_func___rdtsc" = xyes
14577 then :
14578 printf "%s\n" "#define HAVE___RDTSC 1" >>confdefs.h
14579
14580 fi
14581 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14582 if test "x$ac_cv_func_accept" = xyes
14583 then :
14584 printf "%s\n" "#define HAVE_ACCEPT 1" >>confdefs.h
14585
14586 fi
14587 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
14588 if test "x$ac_cv_func_accept4" = xyes
14589 then :
14590 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
14591
14592 fi
14593 ac_fn_c_check_func "$LINENO" "bind" "ac_cv_func_bind"
14594 if test "x$ac_cv_func_bind" = xyes
14595 then :
14596 printf "%s\n" "#define HAVE_BIND 1" >>confdefs.h
14597
14598 fi
14599 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14600 if test "x$ac_cv_func_connect" = xyes
14601 then :
14602 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
14603
14604 fi
14605 ac_fn_c_check_func "$LINENO" "execv" "ac_cv_func_execv"
14606 if test "x$ac_cv_func_execv" = xyes
14607 then :
14608 printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h
14609
14610 fi
14611 ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
14612 if test "x$ac_cv_func_floor" = xyes
14613 then :
14614 printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
14615
14616 fi
14617 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
14618 if test "x$ac_cv_func_getauxval" = xyes
14619 then :
14620 printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
14621
14622 fi
14623 ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
14624 if test "x$ac_cv_func_getsockopt" = xyes
14625 then :
14626 printf "%s\n" "#define HAVE_GETSOCKOPT 1" >>confdefs.h
14627
14628 fi
14629 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14630 if test "x$ac_cv_func_gettimeofday" = xyes
14631 then :
14632 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
14633
14634 fi
14635 ac_fn_c_check_func "$LINENO" "listen" "ac_cv_func_listen"
14636 if test "x$ac_cv_func_listen" = xyes
14637 then :
14638 printf "%s\n" "#define HAVE_LISTEN 1" >>confdefs.h
14639
14640 fi
14641 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
14642 if test "x$ac_cv_func_memset" = xyes
14643 then :
14644 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
14645
14646 fi
14647 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
14648 if test "x$ac_cv_func_pow" = xyes
14649 then :
14650 printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
14651
14652 fi
14653 ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect"
14654 if test "x$ac_cv_func_pselect" = xyes
14655 then :
14656 printf "%s\n" "#define HAVE_PSELECT 1" >>confdefs.h
14657
14658 fi
14659 ac_fn_c_check_func "$LINENO" "recv" "ac_cv_func_recv"
14660 if test "x$ac_cv_func_recv" = xyes
14661 then :
14662 printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
14663
14664 fi
14665 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
14666 if test "x$ac_cv_func_sched_yield" = xyes
14667 then :
14668 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
14669
14670 fi
14671 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14672 if test "x$ac_cv_func_select" = xyes
14673 then :
14674 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
14675
14676 fi
14677 ac_fn_c_check_func "$LINENO" "send" "ac_cv_func_send"
14678 if test "x$ac_cv_func_send" = xyes
14679 then :
14680 printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
14681
14682 fi
14683 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
14684 if test "x$ac_cv_func_setsockopt" = xyes
14685 then :
14686 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
14687
14688 fi
14689 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14690 if test "x$ac_cv_func_socket" = xyes
14691 then :
14692 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
14693
14694 fi
14695 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
14696 if test "x$ac_cv_func_sqrt" = xyes
14697 then :
14698 printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
14699
14700 fi
14701
14702
14703 ## Checks for header files.
14704 # Autoupdate added the next two lines to ensure that your configure
14705 # script's behavior did not change. They are probably safe to remove.
14706
14707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
14708 printf %s "checking for egrep... " >&6; }
14709 if test ${ac_cv_path_EGREP+y}
14710 then :
14711 printf %s "(cached) " >&6
14712 else case e in #(
14713 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
14714 then ac_cv_path_EGREP="$GREP -E"
14715 else
14716 if test -z "$EGREP"; then
14717 ac_path_EGREP_found=false
14718 # Loop through the user's path and test for each of PROGNAME-LIST
14719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14720 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14721 do
14722 IFS=$as_save_IFS
14723 case $as_dir in #(((
14724 '') as_dir=./ ;;
14725 */) ;;
14726 *) as_dir=$as_dir/ ;;
14727 esac
14728 for ac_prog in egrep
14729 do
14730 for ac_exec_ext in '' $ac_executable_extensions; do
14731 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
14732 as_fn_executable_p "$ac_path_EGREP" || continue
14733 # Check for GNU ac_path_EGREP and select it if it is found.
14734 # Check for GNU $ac_path_EGREP
14735 case `"$ac_path_EGREP" --version 2>&1` in #(
14736 *GNU*)
14737 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
14738 #(
14739 *)
14740 ac_count=0
14741 printf %s 0123456789 >"conftest.in"
14742 while :
14743 do
14744 cat "conftest.in" "conftest.in" >"conftest.tmp"
14745 mv "conftest.tmp" "conftest.in"
14746 cp "conftest.in" "conftest.nl"
14747 printf "%s\n" 'EGREP' >> "conftest.nl"
14748 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
14749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14750 as_fn_arith $ac_count + 1 && ac_count=$as_val
14751 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
14752 # Best one so far, save it but keep looking for a better one
14753 ac_cv_path_EGREP="$ac_path_EGREP"
14754 ac_path_EGREP_max=$ac_count
14755 fi
14756 # 10*(2^10) chars as input seems more than enough
14757 test $ac_count -gt 10 && break
14758 done
14759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14760 esac
14761
14762 $ac_path_EGREP_found && break 3
14763 done
14764 done
14765 done
14766 IFS=$as_save_IFS
14767 if test -z "$ac_cv_path_EGREP"; then
14768 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14769 fi
14770 else
14771 ac_cv_path_EGREP=$EGREP
14772 fi
14773
14774 fi ;;
14775 esac
14776 fi
14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
14778 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
14779 EGREP="$ac_cv_path_EGREP"
14780
14781 EGREP_TRADITIONAL=$EGREP
14782 ac_cv_path_EGREP_TRADITIONAL=$EGREP
14783
14784
14785 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
14786 if test "x$ac_cv_header_fcntl_h" = xyes
14787 then :
14788 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
14789
14790 fi
14791
14792 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
14793 if test "x$ac_cv_header_limits_h" = xyes
14794 then :
14795 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
14796
14797 fi
14798
14799 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
14800 if test "x$ac_cv_header_sched_h" = xyes
14801 then :
14802 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
14803
14804 fi
14805
14806 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
14807 if test "x$ac_cv_header_semaphore_h" = xyes
14808 then :
14809 printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
14810
14811 fi
14812
14813 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
14814 if test "x$ac_cv_header_stdarg_h" = xyes
14815 then :
14816 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
14817
14818 fi
14819
14820 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
14821 if test "x$ac_cv_header_stddef_h" = xyes
14822 then :
14823 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
14824
14825 fi
14826
14827 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14828 if test "x$ac_cv_header_stdint_h" = xyes
14829 then :
14830 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
14831
14832 fi
14833
14834 ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
14835 if test "x$ac_cv_header_stdio_h" = xyes
14836 then :
14837 printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
14838
14839 fi
14840
14841 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14842 if test "x$ac_cv_header_stdlib_h" = xyes
14843 then :
14844 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
14845
14846 fi
14847
14848 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14849 if test "x$ac_cv_header_string_h" = xyes
14850 then :
14851 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
14852
14853 fi
14854
14855 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
14856 if test "x$ac_cv_header_sys_auxv_h" = xyes
14857 then :
14858 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
14859
14860 fi
14861
14862 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14863 if test "x$ac_cv_header_sys_ioctl_h" = xyes
14864 then :
14865 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
14866
14867 fi
14868
14869 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
14870 if test "x$ac_cv_header_sys_auxv_h" = xyes
14871 then :
14872 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
14873
14874 fi
14875
14876 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14877 if test "x$ac_cv_header_sys_mman_h" = xyes
14878 then :
14879 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
14880
14881 fi
14882
14883 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14884 if test "x$ac_cv_header_sys_types_h" = xyes
14885 then :
14886 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
14887
14888 fi
14889
14890 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
14891 if test "x$ac_cv_header_sys_socket_h" = xyes
14892 then :
14893 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
14894
14895 fi
14896
14897 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14898 if test "x$ac_cv_header_sys_un_h" = xyes
14899 then :
14900 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
14901
14902 fi
14903
14904 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
14905 if test "x$ac_cv_header_sys_wait_h" = xyes
14906 then :
14907 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14908
14909 fi
14910
14911 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
14912 if test "x$ac_cv_header_time_h" = xyes
14913 then :
14914 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
14915
14916 fi
14917
14918 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14919 if test "x$ac_cv_header_sys_time_h" = xyes
14920 then :
14921 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
14922
14923 fi
14924
14925 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14926 if test "x$ac_cv_header_unistd_h" = xyes
14927 then :
14928 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14929
14930 fi
14931
14932 ac_fn_c_check_header_compile "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default"
14933 if test "x$ac_cv_header_cpuid_h" = xyes
14934 then :
14935 printf "%s\n" "#define HAVE_CPUID_H 1" >>confdefs.h
14936
14937 fi
14938
14939 ac_fn_c_check_header_compile "$LINENO" "x86intrin.h" "ac_cv_header_x86intrin_h" "$ac_includes_default"
14940 if test "x$ac_cv_header_x86intrin_h" = xyes
14941 then :
14942 printf "%s\n" "#define HAVE_X86INTRIN_H 1" >>confdefs.h
14943
14944 fi
14945
14946 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
14947 if test "x$ac_cv_header_syslog_h" = xyes
14948 then :
14949 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
14950
14951 fi
14952
14953 ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default"
14954 if test "x$ac_cv_header_linux_random_h" = xyes
14955 then :
14956 printf "%s\n" "#define HAVE_LINUX_RANDOM_H 1" >>confdefs.h
14957
14958 fi
14959
14960
14961
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14964 #include <sys/socket.h>
14965 int
14966 main (void)
14967 {
14968 struct ucred cred; cred.pid=0;
14969 ;
14970 return 0;
14971 }
14972 _ACEOF
14973 if ac_fn_c_try_link "$LINENO"
14974 then :
14975
14976 printf "%s\n" "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
14977
14978 fi
14979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14980 conftest$ac_exeext conftest.$ac_ext
14981
14982
14983
14984 ## Determine if daemon interface to be included
14985
14986 if test "x$enable_daemon" = "xyes"; then
14987 daemon_type="yes"
14988 elif test "x$enable_daemon" = "xno"; then
14989 daemon_type="none"
14990 else
14991 case "$host_os" in
14992 linux*)
14993 daemon_type="yes"
14994 ;;
14995 *)
14996 daemon_type="none"
14997 ;;
14998 esac
14999 fi
15000
15001 ## Match host to havegedef macros
15002 case "$host" in
15003 x86_64-*)
15004
15005 printf "%s\n" "#define HAVE_ISA_X86 1" >>confdefs.h
15006
15007 ;;
15008
15009 i*86*-*)
15010
15011 printf "%s\n" "#define HAVE_ISA_X86 1" >>confdefs.h
15012
15013 ;;
15014
15015 ia64-*)
15016
15017 printf "%s\n" "#define HAVE_ISA_IA64 1" >>confdefs.h
15018
15019 ;;
15020
15021 powerpc-*|pcc-*|powerpc64-*|ppc64-*)
15022
15023 printf "%s\n" "#define HAVE_ISA_PPC 1" >>confdefs.h
15024
15025 ;;
15026
15027 s390*-*)
15028
15029 printf "%s\n" "#define HAVE_ISA_S390 1" >>confdefs.h
15030
15031 ;;
15032
15033 sparclite*-*)
15034
15035 printf "%s\n" "#define HAVE_ISA_SPARCLITE 1" >>confdefs.h
15036
15037 ;;
15038
15039 sparc*-*)
15040
15041 printf "%s\n" "#define HAVE_ISA_SPARC 1" >>confdefs.h
15042
15043 ;;
15044
15045 *)
15046 if test "x$enable_clock_gettime" = "xx"; then
15047 enable_clock_gettime="yes"
15048 elif test "x$enable_clock_gettime" = "xyes"; then
15049 enable_clock_gettime="yes"
15050 else
15051 as_fn_error $? "no timer source for host :\"$host\"." "$LINENO" 5
15052 fi
15053
15054 printf "%s\n" "#define HAVE_ISA_GENERIC \"$host\"" >>confdefs.h
15055
15056 ;;
15057
15058 esac
15059
15060 ## Check clock_gettime option
15061
15062 if test "x$enable_clock_gettime" = "xyes"; then
15063 saved_libs=$LIBS
15064 LIB_CLOCK_GETTIME=
15065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
15066 printf %s "checking for library containing clock_gettime... " >&6; }
15067 if test ${ac_cv_search_clock_gettime+y}
15068 then :
15069 printf %s "(cached) " >&6
15070 else case e in #(
15071 e) ac_func_search_save_LIBS=$LIBS
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074
15075 /* Override any GCC internal prototype to avoid an error.
15076 Use char because int might match the return type of a GCC
15077 builtin and then its argument prototype would still apply.
15078 The 'extern "C"' is for builds by C++ compilers;
15079 although this is not generally supported in C code supporting it here
15080 has little cost and some practical benefit (sr 110532). */
15081 #ifdef __cplusplus
15082 extern "C"
15083 #endif
15084 char clock_gettime (void);
15085 int
15086 main (void)
15087 {
15088 return clock_gettime ();
15089 ;
15090 return 0;
15091 }
15092 _ACEOF
15093 for ac_lib in '' rt posix4
15094 do
15095 if test -z "$ac_lib"; then
15096 ac_res="none required"
15097 else
15098 ac_res=-l$ac_lib
15099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15100 fi
15101 if ac_fn_c_try_link "$LINENO"
15102 then :
15103 ac_cv_search_clock_gettime=$ac_res
15104 fi
15105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15106 conftest$ac_exeext
15107 if test ${ac_cv_search_clock_gettime+y}
15108 then :
15109 break
15110 fi
15111 done
15112 if test ${ac_cv_search_clock_gettime+y}
15113 then :
15114
15115 else case e in #(
15116 e) ac_cv_search_clock_gettime=no ;;
15117 esac
15118 fi
15119 rm conftest.$ac_ext
15120 LIBS=$ac_func_search_save_LIBS ;;
15121 esac
15122 fi
15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15124 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
15125 ac_res=$ac_cv_search_clock_gettime
15126 if test "$ac_res" != no
15127 then :
15128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15129 test "$ac_cv_search_clock_gettime" = "none required" || LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
15130 else case e in #(
15131 e) as_fn_error $? "clock_gettime is required for host :\"$host\"." "$LINENO" 5 ;;
15132 esac
15133 fi
15134
15135 LIBS=$saved_libs
15136 HA_LDFLAGS="$HA_LDFLAGS $LIB_CLOCK_GETTIME"
15137
15138 printf "%s\n" "#define ENABLE_CLOCK_GETTIME 1" >>confdefs.h
15139
15140 fi
15141
15142
15143 ## Fixup install and test options
15144
15145 if test "$daemon_type" = "none"; then
15146 ENABLE_BIN_TRUE=
15147 ENABLE_BIN_FALSE='#'
15148 else
15149 ENABLE_BIN_TRUE='#'
15150 ENABLE_BIN_FALSE=
15151 fi
15152
15153 if test "$enable_enttest" = "yes"; then
15154 ENABLE_ENT_TEST_TRUE=
15155 ENABLE_ENT_TEST_FALSE='#'
15156 else
15157 ENABLE_ENT_TEST_TRUE='#'
15158 ENABLE_ENT_TEST_FALSE=
15159 fi
15160
15161 if test "$enable_nistest" = "yes"; then
15162 ENABLE_NIST_TEST_TRUE=
15163 ENABLE_NIST_TEST_FALSE='#'
15164 else
15165 ENABLE_NIST_TEST_TRUE='#'
15166 ENABLE_NIST_TEST_FALSE=
15167 fi
15168
15169
15170 ## Set hardware dependent define for the build
15171
15172
15173
15174 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile ent/Makefile nist/Makefile"
15175
15176 cat >confcache <<\_ACEOF
15177 # This file is a shell script that caches the results of configure
15178 # tests run on this system so they can be shared between configure
15179 # scripts and configure runs, see configure's option --config-cache.
15180 # It is not useful on other systems. If it contains results you don't
15181 # want to keep, you may remove or edit it.
15182 #
15183 # config.status only pays attention to the cache file if you give it
15184 # the --recheck option to rerun configure.
15185 #
15186 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
15187 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
15188 # following values.
15189
15190 _ACEOF
15191
15192 # The following way of writing the cache mishandles newlines in values,
15193 # but we know of no workaround that is simple, portable, and efficient.
15194 # So, we kill variables containing newlines.
15195 # Ultrix sh set writes to stderr and can't be redirected directly,
15196 # and sets the high bit in the cache file unless we assign to the vars.
15197 (
15198 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15199 eval ac_val=\$$ac_var
15200 case $ac_val in #(
15201 *${as_nl}*)
15202 case $ac_var in #(
15203 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15204 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15205 esac
15206 case $ac_var in #(
15207 _ | IFS | as_nl) ;; #(
15208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15209 *) { eval $ac_var=; unset $ac_var;} ;;
15210 esac ;;
15211 esac
15212 done
15213
15214 (set) 2>&1 |
15215 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15216 *${as_nl}ac_space=\ *)
15217 # 'set' does not quote correctly, so add quotes: double-quote
15218 # substitution turns \\\\ into \\, and sed turns \\ into \.
15219 sed -n \
15220 "s/'/'\\\\''/g;
15221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15222 ;; #(
15223 *)
15224 # 'set' quotes correctly as required by POSIX, so do not add quotes.
15225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15226 ;;
15227 esac |
15228 sort
15229 ) |
15230 sed '
15231 /^ac_cv_env_/b end
15232 t clear
15233 :clear
15234 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15235 t end
15236 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15237 :end' >>confcache
15238 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15239 if test -w "$cache_file"; then
15240 if test "x$cache_file" != "x/dev/null"; then
15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15242 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15243 if test ! -f "$cache_file" || test -h "$cache_file"; then
15244 cat confcache >"$cache_file"
15245 else
15246 case $cache_file in #(
15247 */* | ?:*)
15248 mv -f confcache "$cache_file"$$ &&
15249 mv -f "$cache_file"$$ "$cache_file" ;; #(
15250 *)
15251 mv -f confcache "$cache_file" ;;
15252 esac
15253 fi
15254 fi
15255 else
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15257 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15258 fi
15259 fi
15260 rm -f confcache
15261
15262 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15263 # Let make expand exec_prefix.
15264 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15265
15266 DEFS=-DHAVE_CONFIG_H
15267
15268 ac_libobjs=
15269 ac_ltlibobjs=
15270 U=
15271 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15272 # 1. Remove the extension, and $U if already installed.
15273 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15274 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15275 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15276 # will be set to the directory where LIBOBJS objects are built.
15277 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15278 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15279 done
15280 LIBOBJS=$ac_libobjs
15281
15282 LTLIBOBJS=$ac_ltlibobjs
15283
15284
15285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15286 printf %s "checking that generated files are newer than configure... " >&6; }
15287 if test -n "$am_sleep_pid"; then
15288 # Hide warnings about reused PIDs.
15289 wait $am_sleep_pid 2>/dev/null
15290 fi
15291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15292 printf "%s\n" "done" >&6; }
15293 case $enable_silent_rules in # (((
15294 yes) AM_DEFAULT_VERBOSITY=0;;
15295 no) AM_DEFAULT_VERBOSITY=1;;
15296 esac
15297 if test $am_cv_make_support_nested_variables = yes; then
15298 AM_V='$(V)'
15299 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15300 else
15301 AM_V=$AM_DEFAULT_VERBOSITY
15302 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15303 fi
15304
15305 if test -n "$EXEEXT"; then
15306 am__EXEEXT_TRUE=
15307 am__EXEEXT_FALSE='#'
15308 else
15309 am__EXEEXT_TRUE='#'
15310 am__EXEEXT_FALSE=
15311 fi
15312
15313 if test -z "${ENABLE_BIN_TRUE}" && test -z "${ENABLE_BIN_FALSE}"; then
15314 as_fn_error $? "conditional \"ENABLE_BIN\" was never defined.
15315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15316 fi
15317 if test -z "${ENABLE_ENT_TEST_TRUE}" && test -z "${ENABLE_ENT_TEST_FALSE}"; then
15318 as_fn_error $? "conditional \"ENABLE_ENT_TEST\" was never defined.
15319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15320 fi
15321 if test -z "${ENABLE_NIST_TEST_TRUE}" && test -z "${ENABLE_NIST_TEST_FALSE}"; then
15322 as_fn_error $? "conditional \"ENABLE_NIST_TEST\" was never defined.
15323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15324 fi
15325
15326 : "${CONFIG_STATUS=./config.status}"
15327 ac_write_fail=0
15328 ac_clean_files_save=$ac_clean_files
15329 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15331 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15332 as_write_fail=0
15333 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15334 #! $SHELL
15335 # Generated by $as_me.
15336 # Run this file to recreate the current configuration.
15337 # Compiler output produced by configure, useful for debugging
15338 # configure, is in config.log if it exists.
15339
15340 debug=false
15341 ac_cs_recheck=false
15342 ac_cs_silent=false
15343
15344 SHELL=\${CONFIG_SHELL-$SHELL}
15345 export SHELL
15346 _ASEOF
15347 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15348 ## -------------------- ##
15349 ## M4sh Initialization. ##
15350 ## -------------------- ##
15351
15352 # Be more Bourne compatible
15353 DUALCASE=1; export DUALCASE # for MKS sh
15354 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15355 then :
15356 emulate sh
15357 NULLCMD=:
15358 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15359 # is contrary to our usage. Disable this feature.
15360 alias -g '${1+"$@"}'='"$@"'
15361 setopt NO_GLOB_SUBST
15362 else case e in #(
15363 e) case `(set -o) 2>/dev/null` in #(
15364 *posix*) :
15365 set -o posix ;; #(
15366 *) :
15367 ;;
15368 esac ;;
15369 esac
15370 fi
15371
15372
15373
15374 # Reset variables that may have inherited troublesome values from
15375 # the environment.
15376
15377 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15378 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15379 # side effect of setting IFS to empty, thus disabling word splitting.)
15380 # Quoting is to prevent editors from complaining about space-tab.
15381 as_nl='
15382 '
15383 export as_nl
15384 IFS=" "" $as_nl"
15385
15386 PS1='$ '
15387 PS2='> '
15388 PS4='+ '
15389
15390 # Ensure predictable behavior from utilities with locale-dependent output.
15391 LC_ALL=C
15392 export LC_ALL
15393 LANGUAGE=C
15394 export LANGUAGE
15395
15396 # We cannot yet rely on "unset" to work, but we need these variables
15397 # to be unset--not just set to an empty or harmless value--now, to
15398 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15399 # also avoids known problems related to "unset" and subshell syntax
15400 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15401 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15402 do eval test \${$as_var+y} \
15403 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15404 done
15405
15406 # Ensure that fds 0, 1, and 2 are open.
15407 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15408 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15409 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15410
15411 # The user is always right.
15412 if ${PATH_SEPARATOR+false} :; then
15413 PATH_SEPARATOR=:
15414 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15415 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15416 PATH_SEPARATOR=';'
15417 }
15418 fi
15419
15420
15421 # Find who we are. Look in the path if we contain no directory separator.
15422 as_myself=
15423 case $0 in #((
15424 *[\\/]* ) as_myself=$0 ;;
15425 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15426 for as_dir in $PATH
15427 do
15428 IFS=$as_save_IFS
15429 case $as_dir in #(((
15430 '') as_dir=./ ;;
15431 */) ;;
15432 *) as_dir=$as_dir/ ;;
15433 esac
15434 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15435 done
15436 IFS=$as_save_IFS
15437
15438 ;;
15439 esac
15440 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15441 # in which case we are not to be found in the path.
15442 if test "x$as_myself" = x; then
15443 as_myself=$0
15444 fi
15445 if test ! -f "$as_myself"; then
15446 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15447 exit 1
15448 fi
15449
15450
15451
15452 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15453 # ----------------------------------------
15454 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15455 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15456 # script with STATUS, using 1 if that was 0.
15457 as_fn_error ()
15458 {
15459 as_status=$1; test $as_status -eq 0 && as_status=1
15460 if test "$4"; then
15461 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15463 fi
15464 printf "%s\n" "$as_me: error: $2" >&2
15465 as_fn_exit $as_status
15466 } # as_fn_error
15467
15468
15469 # as_fn_set_status STATUS
15470 # -----------------------
15471 # Set $? to STATUS, without forking.
15472 as_fn_set_status ()
15473 {
15474 return $1
15475 } # as_fn_set_status
15476
15477 # as_fn_exit STATUS
15478 # -----------------
15479 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15480 as_fn_exit ()
15481 {
15482 set +e
15483 as_fn_set_status $1
15484 exit $1
15485 } # as_fn_exit
15486
15487 # as_fn_unset VAR
15488 # ---------------
15489 # Portably unset VAR.
15490 as_fn_unset ()
15491 {
15492 { eval $1=; unset $1;}
15493 }
15494 as_unset=as_fn_unset
15495
15496 # as_fn_append VAR VALUE
15497 # ----------------------
15498 # Append the text in VALUE to the end of the definition contained in VAR. Take
15499 # advantage of any shell optimizations that allow amortized linear growth over
15500 # repeated appends, instead of the typical quadratic growth present in naive
15501 # implementations.
15502 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15503 then :
15504 eval 'as_fn_append ()
15505 {
15506 eval $1+=\$2
15507 }'
15508 else case e in #(
15509 e) as_fn_append ()
15510 {
15511 eval $1=\$$1\$2
15512 } ;;
15513 esac
15514 fi # as_fn_append
15515
15516 # as_fn_arith ARG...
15517 # ------------------
15518 # Perform arithmetic evaluation on the ARGs, and store the result in the
15519 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15520 # must be portable across $(()) and expr.
15521 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15522 then :
15523 eval 'as_fn_arith ()
15524 {
15525 as_val=$(( $* ))
15526 }'
15527 else case e in #(
15528 e) as_fn_arith ()
15529 {
15530 as_val=`expr "$@" || test $? -eq 1`
15531 } ;;
15532 esac
15533 fi # as_fn_arith
15534
15535
15536 if expr a : '\(a\)' >/dev/null 2>&1 &&
15537 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15538 as_expr=expr
15539 else
15540 as_expr=false
15541 fi
15542
15543 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15544 as_basename=basename
15545 else
15546 as_basename=false
15547 fi
15548
15549 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15550 as_dirname=dirname
15551 else
15552 as_dirname=false
15553 fi
15554
15555 as_me=`$as_basename -- "$0" ||
15556 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15557 X"$0" : 'X\(//\)$' \| \
15558 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15559 printf "%s\n" X/"$0" |
15560 sed '/^.*\/\([^/][^/]*\)\/*$/{
15561 s//\1/
15562 q
15563 }
15564 /^X\/\(\/\/\)$/{
15565 s//\1/
15566 q
15567 }
15568 /^X\/\(\/\).*/{
15569 s//\1/
15570 q
15571 }
15572 s/.*/./; q'`
15573
15574 # Avoid depending upon Character Ranges.
15575 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15576 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15577 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15578 as_cr_digits='0123456789'
15579 as_cr_alnum=$as_cr_Letters$as_cr_digits
15580
15581
15582 # Determine whether it's possible to make 'echo' print without a newline.
15583 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15584 # for compatibility with existing Makefiles.
15585 ECHO_C= ECHO_N= ECHO_T=
15586 case `echo -n x` in #(((((
15587 -n*)
15588 case `echo 'xy\c'` in
15589 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15590 xy) ECHO_C='\c';;
15591 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15592 ECHO_T=' ';;
15593 esac;;
15594 *)
15595 ECHO_N='-n';;
15596 esac
15597
15598 # For backward compatibility with old third-party macros, we provide
15599 # the shell variables $as_echo and $as_echo_n. New code should use
15600 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15601 as_echo='printf %s\n'
15602 as_echo_n='printf %s'
15603
15604 rm -f conf$$ conf$$.exe conf$$.file
15605 if test -d conf$$.dir; then
15606 rm -f conf$$.dir/conf$$.file
15607 else
15608 rm -f conf$$.dir
15609 mkdir conf$$.dir 2>/dev/null
15610 fi
15611 if (echo >conf$$.file) 2>/dev/null; then
15612 if ln -s conf$$.file conf$$ 2>/dev/null; then
15613 as_ln_s='ln -s'
15614 # ... but there are two gotchas:
15615 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15616 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15617 # In both cases, we have to default to 'cp -pR'.
15618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15619 as_ln_s='cp -pR'
15620 elif ln conf$$.file conf$$ 2>/dev/null; then
15621 as_ln_s=ln
15622 else
15623 as_ln_s='cp -pR'
15624 fi
15625 else
15626 as_ln_s='cp -pR'
15627 fi
15628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15629 rmdir conf$$.dir 2>/dev/null
15630
15631
15632 # as_fn_mkdir_p
15633 # -------------
15634 # Create "$as_dir" as a directory, including parents if necessary.
15635 as_fn_mkdir_p ()
15636 {
15637
15638 case $as_dir in #(
15639 -*) as_dir=./$as_dir;;
15640 esac
15641 test -d "$as_dir" || eval $as_mkdir_p || {
15642 as_dirs=
15643 while :; do
15644 case $as_dir in #(
15645 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15646 *) as_qdir=$as_dir;;
15647 esac
15648 as_dirs="'$as_qdir' $as_dirs"
15649 as_dir=`$as_dirname -- "$as_dir" ||
15650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15651 X"$as_dir" : 'X\(//\)[^/]' \| \
15652 X"$as_dir" : 'X\(//\)$' \| \
15653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15654 printf "%s\n" X"$as_dir" |
15655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15656 s//\1/
15657 q
15658 }
15659 /^X\(\/\/\)[^/].*/{
15660 s//\1/
15661 q
15662 }
15663 /^X\(\/\/\)$/{
15664 s//\1/
15665 q
15666 }
15667 /^X\(\/\).*/{
15668 s//\1/
15669 q
15670 }
15671 s/.*/./; q'`
15672 test -d "$as_dir" && break
15673 done
15674 test -z "$as_dirs" || eval "mkdir $as_dirs"
15675 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15676
15677
15678 } # as_fn_mkdir_p
15679 if mkdir -p . 2>/dev/null; then
15680 as_mkdir_p='mkdir -p "$as_dir"'
15681 else
15682 test -d ./-p && rmdir ./-p
15683 as_mkdir_p=false
15684 fi
15685
15686
15687 # as_fn_executable_p FILE
15688 # -----------------------
15689 # Test if FILE is an executable regular file.
15690 as_fn_executable_p ()
15691 {
15692 test -f "$1" && test -x "$1"
15693 } # as_fn_executable_p
15694 as_test_x='test -x'
15695 as_executable_p=as_fn_executable_p
15696
15697 # Sed expression to map a string onto a valid CPP name.
15698 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15699 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15700
15701 # Sed expression to map a string onto a valid variable name.
15702 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15703 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15704
15705
15706 exec 6>&1
15707 ## ----------------------------------- ##
15708 ## Main body of $CONFIG_STATUS script. ##
15709 ## ----------------------------------- ##
15710 _ASEOF
15711 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15712
15713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15714 # Save the log message, to keep $0 and so on meaningful, and to
15715 # report actual input values of CONFIG_FILES etc. instead of their
15716 # values after options handling.
15717 ac_log="
15718 This file was extended by haveged $as_me 1.9.26, which was
15719 generated by GNU Autoconf 2.72. Invocation command line was
15720
15721 CONFIG_FILES = $CONFIG_FILES
15722 CONFIG_HEADERS = $CONFIG_HEADERS
15723 CONFIG_LINKS = $CONFIG_LINKS
15724 CONFIG_COMMANDS = $CONFIG_COMMANDS
15725 $ $0 $@
15726
15727 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15728 "
15729
15730 _ACEOF
15731
15732 case $ac_config_files in *"
15733 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15734 esac
15735
15736 case $ac_config_headers in *"
15737 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15738 esac
15739
15740
15741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15742 # Files that config.status was made for.
15743 config_files="$ac_config_files"
15744 config_headers="$ac_config_headers"
15745 config_commands="$ac_config_commands"
15746
15747 _ACEOF
15748
15749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15750 ac_cs_usage="\
15751 '$as_me' instantiates files and other configuration actions
15752 from templates according to the current configuration. Unless the files
15753 and actions are specified as TAGs, all are instantiated by default.
15754
15755 Usage: $0 [OPTION]... [TAG]...
15756
15757 -h, --help print this help, then exit
15758 -V, --version print version number and configuration settings, then exit
15759 --config print configuration, then exit
15760 -q, --quiet, --silent
15761 do not print progress messages
15762 -d, --debug don't remove temporary files
15763 --recheck update $as_me by reconfiguring in the same conditions
15764 --file=FILE[:TEMPLATE]
15765 instantiate the configuration file FILE
15766 --header=FILE[:TEMPLATE]
15767 instantiate the configuration header FILE
15768
15769 Configuration files:
15770 $config_files
15771
15772 Configuration headers:
15773 $config_headers
15774
15775 Configuration commands:
15776 $config_commands
15777
15778 Report bugs to the package provider."
15779
15780 _ACEOF
15781 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15782 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15784 ac_cs_config='$ac_cs_config_escaped'
15785 ac_cs_version="\\
15786 haveged config.status 1.9.26
15787 configured by $0, generated by GNU Autoconf 2.72,
15788 with options \\"\$ac_cs_config\\"
15789
15790 Copyright (C) 2023 Free Software Foundation, Inc.
15791 This config.status script is free software; the Free Software Foundation
15792 gives unlimited permission to copy, distribute and modify it."
15793
15794 ac_pwd='$ac_pwd'
15795 srcdir='$srcdir'
15796 INSTALL='$INSTALL'
15797 MKDIR_P='$MKDIR_P'
15798 AWK='$AWK'
15799 test -n "\$AWK" || AWK=awk
15800 _ACEOF
15801
15802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15803 # The default lists apply if the user does not specify any file.
15804 ac_need_defaults=:
15805 while test $# != 0
15806 do
15807 case $1 in
15808 --*=?*)
15809 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15810 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15811 ac_shift=:
15812 ;;
15813 --*=)
15814 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15815 ac_optarg=
15816 ac_shift=:
15817 ;;
15818 *)
15819 ac_option=$1
15820 ac_optarg=$2
15821 ac_shift=shift
15822 ;;
15823 esac
15824
15825 case $ac_option in
15826 # Handling of the options.
15827 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15828 ac_cs_recheck=: ;;
15829 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15830 printf "%s\n" "$ac_cs_version"; exit ;;
15831 --config | --confi | --conf | --con | --co | --c )
15832 printf "%s\n" "$ac_cs_config"; exit ;;
15833 --debug | --debu | --deb | --de | --d | -d )
15834 debug=: ;;
15835 --file | --fil | --fi | --f )
15836 $ac_shift
15837 case $ac_optarg in
15838 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15839 '') as_fn_error $? "missing file argument" ;;
15840 esac
15841 as_fn_append CONFIG_FILES " '$ac_optarg'"
15842 ac_need_defaults=false;;
15843 --header | --heade | --head | --hea )
15844 $ac_shift
15845 case $ac_optarg in
15846 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15847 esac
15848 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15849 ac_need_defaults=false;;
15850 --he | --h)
15851 # Conflict between --help and --header
15852 as_fn_error $? "ambiguous option: '$1'
15853 Try '$0 --help' for more information.";;
15854 --help | --hel | -h )
15855 printf "%s\n" "$ac_cs_usage"; exit ;;
15856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15857 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15858 ac_cs_silent=: ;;
15859
15860 # This is an error.
15861 -*) as_fn_error $? "unrecognized option: '$1'
15862 Try '$0 --help' for more information." ;;
15863
15864 *) as_fn_append ac_config_targets " $1"
15865 ac_need_defaults=false ;;
15866
15867 esac
15868 shift
15869 done
15870
15871 ac_configure_extra_args=
15872
15873 if $ac_cs_silent; then
15874 exec 6>/dev/null
15875 ac_configure_extra_args="$ac_configure_extra_args --silent"
15876 fi
15877
15878 _ACEOF
15879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15880 if \$ac_cs_recheck; then
15881 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15882 shift
15883 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15884 CONFIG_SHELL='$SHELL'
15885 export CONFIG_SHELL
15886 exec "\$@"
15887 fi
15888
15889 _ACEOF
15890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15891 exec 5>>config.log
15892 {
15893 echo
15894 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15895 ## Running $as_me. ##
15896 _ASBOX
15897 printf "%s\n" "$ac_log"
15898 } >&5
15899
15900 _ACEOF
15901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15902 #
15903 # INIT-COMMANDS
15904 #
15905
15906
15907 # The HP-UX ksh and POSIX shell print the target directory to stdout
15908 # if CDPATH is set.
15909 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15910
15911 sed_quote_subst='$sed_quote_subst'
15912 double_quote_subst='$double_quote_subst'
15913 delay_variable_subst='$delay_variable_subst'
15914 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15915 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15916 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15917 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15918 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15919 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15920 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15921 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15922 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15923 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15924 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15925 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15926 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15927 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15928 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15929 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15930 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15931 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15932 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15933 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15934 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15935 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15936 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15937 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15938 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15939 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15940 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15941 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15942 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15943 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15944 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15945 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15946 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15947 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15948 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15949 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15950 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15951 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15952 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15953 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15954 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15955 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15956 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15957 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15958 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15959 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15960 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15961 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15962 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15963 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15964 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15965 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15966 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15967 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15968 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15969 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15970 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15971 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15972 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15973 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15974 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"`'
15975 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15976 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15977 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15978 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15979 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15980 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15981 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15982 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15983 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15984 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15985 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15986 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15987 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15988 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15989 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15990 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15991 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15992 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15993 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15994 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15995 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15996 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15997 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15998 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15999 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16000 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16001 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16002 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16003 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16004 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16005 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16006 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16007 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16008 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16009 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16010 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16011 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16012 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16013 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16014 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16015 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16016 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16017 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16018 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16019 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16020 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16021 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16022 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16023 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16024 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16025 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16026 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16027 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16028 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16029 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16030 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16031 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16032 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16033 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16034 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16035 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16036 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16037 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16038 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16039 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16040 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16041 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16042 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16043 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16044 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16045 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16046 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16047 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16048 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16049 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16050 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16051
16052 LTCC='$LTCC'
16053 LTCFLAGS='$LTCFLAGS'
16054 compiler='$compiler_DEFAULT'
16055
16056 # A function that is used when there is no print builtin or printf.
16057 func_fallback_echo ()
16058 {
16059 eval 'cat <<_LTECHO_EOF
16060 \$1
16061 _LTECHO_EOF'
16062 }
16063
16064 # Quote evaled strings.
16065 for var in SHELL \
16066 ECHO \
16067 PATH_SEPARATOR \
16068 SED \
16069 GREP \
16070 EGREP \
16071 FGREP \
16072 LD \
16073 NM \
16074 LN_S \
16075 lt_SP2NL \
16076 lt_NL2SP \
16077 reload_flag \
16078 FILECMD \
16079 OBJDUMP \
16080 deplibs_check_method \
16081 file_magic_cmd \
16082 file_magic_glob \
16083 want_nocaseglob \
16084 DLLTOOL \
16085 sharedlib_from_linklib_cmd \
16086 AR \
16087 archiver_list_spec \
16088 STRIP \
16089 RANLIB \
16090 CC \
16091 CFLAGS \
16092 compiler \
16093 lt_cv_sys_global_symbol_pipe \
16094 lt_cv_sys_global_symbol_to_cdecl \
16095 lt_cv_sys_global_symbol_to_import \
16096 lt_cv_sys_global_symbol_to_c_name_address \
16097 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16098 lt_cv_nm_interface \
16099 nm_file_list_spec \
16100 lt_cv_truncate_bin \
16101 lt_prog_compiler_no_builtin_flag \
16102 lt_prog_compiler_pic \
16103 lt_prog_compiler_wl \
16104 lt_prog_compiler_static \
16105 lt_cv_prog_compiler_c_o \
16106 need_locks \
16107 MANIFEST_TOOL \
16108 DSYMUTIL \
16109 NMEDIT \
16110 LIPO \
16111 OTOOL \
16112 OTOOL64 \
16113 shrext_cmds \
16114 export_dynamic_flag_spec \
16115 whole_archive_flag_spec \
16116 compiler_needs_object \
16117 with_gnu_ld \
16118 allow_undefined_flag \
16119 no_undefined_flag \
16120 hardcode_libdir_flag_spec \
16121 hardcode_libdir_separator \
16122 exclude_expsyms \
16123 include_expsyms \
16124 file_list_spec \
16125 variables_saved_for_relink \
16126 libname_spec \
16127 library_names_spec \
16128 soname_spec \
16129 install_override_mode \
16130 finish_eval \
16131 old_striplib \
16132 striplib; do
16133 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16134 *[\\\\\\\`\\"\\\$]*)
16135 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16136 ;;
16137 *)
16138 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16139 ;;
16140 esac
16141 done
16142
16143 # Double-quote double-evaled strings.
16144 for var in reload_cmds \
16145 old_postinstall_cmds \
16146 old_postuninstall_cmds \
16147 old_archive_cmds \
16148 extract_expsyms_cmds \
16149 old_archive_from_new_cmds \
16150 old_archive_from_expsyms_cmds \
16151 archive_cmds \
16152 archive_expsym_cmds \
16153 module_cmds \
16154 module_expsym_cmds \
16155 export_symbols_cmds \
16156 prelink_cmds \
16157 postlink_cmds \
16158 postinstall_cmds \
16159 postuninstall_cmds \
16160 finish_cmds \
16161 sys_lib_search_path_spec \
16162 configure_time_dlsearch_path \
16163 configure_time_lt_sys_library_path; do
16164 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16165 *[\\\\\\\`\\"\\\$]*)
16166 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16167 ;;
16168 *)
16169 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16170 ;;
16171 esac
16172 done
16173
16174 ac_aux_dir='$ac_aux_dir'
16175
16176 # See if we are running on zsh, and set the options that allow our
16177 # commands through without removal of \ escapes INIT.
16178 if test -n "\${ZSH_VERSION+set}"; then
16179 setopt NO_GLOB_SUBST
16180 fi
16181
16182
16183 PACKAGE='$PACKAGE'
16184 VERSION='$VERSION'
16185 RM='$RM'
16186 ofile='$ofile'
16187
16188
16189
16190
16191 _ACEOF
16192
16193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16194
16195 # Handling of arguments.
16196 for ac_config_target in $ac_config_targets
16197 do
16198 case $ac_config_target in
16199 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16200 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16201 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16202 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16203 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16204 "ent/Makefile") CONFIG_FILES="$CONFIG_FILES ent/Makefile" ;;
16205 "nist/Makefile") CONFIG_FILES="$CONFIG_FILES nist/Makefile" ;;
16206
16207 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
16208 esac
16209 done
16210
16211
16212 # If the user did not use the arguments to specify the items to instantiate,
16213 # then the envvar interface is used. Set only those that are not.
16214 # We use the long form for the default assignment because of an extremely
16215 # bizarre bug on SunOS 4.1.3.
16216 if $ac_need_defaults; then
16217 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16218 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16219 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16220 fi
16221
16222 # Have a temporary directory for convenience. Make it in the build tree
16223 # simply because there is no reason against having it here, and in addition,
16224 # creating and moving files from /tmp can sometimes cause problems.
16225 # Hook for its removal unless debugging.
16226 # Note that there is a small window in which the directory will not be cleaned:
16227 # after its creation but before its name has been assigned to '$tmp'.
16228 $debug ||
16229 {
16230 tmp= ac_tmp=
16231 trap 'exit_status=$?
16232 : "${ac_tmp:=$tmp}"
16233 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16234 ' 0
16235 trap 'as_fn_exit 1' 1 2 13 15
16236 }
16237 # Create a (secure) tmp directory for tmp files.
16238
16239 {
16240 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16241 test -d "$tmp"
16242 } ||
16243 {
16244 tmp=./conf$$-$RANDOM
16245 (umask 077 && mkdir "$tmp")
16246 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16247 ac_tmp=$tmp
16248
16249 # Set up the scripts for CONFIG_FILES section.
16250 # No need to generate them if there are no CONFIG_FILES.
16251 # This happens for instance with './config.status config.h'.
16252 if test -n "$CONFIG_FILES"; then
16253
16254
16255 ac_cr=`echo X | tr X '\015'`
16256 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16257 # But we know of no other shell where ac_cr would be empty at this
16258 # point, so we can use a bashism as a fallback.
16259 if test "x$ac_cr" = x; then
16260 eval ac_cr=\$\'\\r\'
16261 fi
16262 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16263 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16264 ac_cs_awk_cr='\\r'
16265 else
16266 ac_cs_awk_cr=$ac_cr
16267 fi
16268
16269 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16270 _ACEOF
16271
16272
16273 {
16274 echo "cat >conf$$subs.awk <<_ACEOF" &&
16275 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16276 echo "_ACEOF"
16277 } >conf$$subs.sh ||
16278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16279 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16280 ac_delim='%!_!# '
16281 for ac_last_try in false false false false false :; do
16282 . ./conf$$subs.sh ||
16283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16284
16285 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16286 if test $ac_delim_n = $ac_delim_num; then
16287 break
16288 elif $ac_last_try; then
16289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16290 else
16291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16292 fi
16293 done
16294 rm -f conf$$subs.sh
16295
16296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16297 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16298 _ACEOF
16299 sed -n '
16300 h
16301 s/^/S["/; s/!.*/"]=/
16302 p
16303 g
16304 s/^[^!]*!//
16305 :repl
16306 t repl
16307 s/'"$ac_delim"'$//
16308 t delim
16309 :nl
16310 h
16311 s/\(.\{148\}\)..*/\1/
16312 t more1
16313 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16314 p
16315 n
16316 b repl
16317 :more1
16318 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16319 p
16320 g
16321 s/.\{148\}//
16322 t nl
16323 :delim
16324 h
16325 s/\(.\{148\}\)..*/\1/
16326 t more2
16327 s/["\\]/\\&/g; s/^/"/; s/$/"/
16328 p
16329 b
16330 :more2
16331 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16332 p
16333 g
16334 s/.\{148\}//
16335 t delim
16336 ' <conf$$subs.awk | sed '
16337 /^[^""]/{
16338 N
16339 s/\n//
16340 }
16341 ' >>$CONFIG_STATUS || ac_write_fail=1
16342 rm -f conf$$subs.awk
16343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344 _ACAWK
16345 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16346 for (key in S) S_is_set[key] = 1
16347 FS = ""
16348
16349 }
16350 {
16351 line = $ 0
16352 nfields = split(line, field, "@")
16353 substed = 0
16354 len = length(field[1])
16355 for (i = 2; i < nfields; i++) {
16356 key = field[i]
16357 keylen = length(key)
16358 if (S_is_set[key]) {
16359 value = S[key]
16360 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16361 len += length(value) + length(field[++i])
16362 substed = 1
16363 } else
16364 len += 1 + keylen
16365 }
16366
16367 print line
16368 }
16369
16370 _ACAWK
16371 _ACEOF
16372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16373 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16374 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16375 else
16376 cat
16377 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16378 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16379 _ACEOF
16380
16381 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16382 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16383 # trailing colons and then remove the whole line if VPATH becomes empty
16384 # (actually we leave an empty line to preserve line numbers).
16385 if test "x$srcdir" = x.; then
16386 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16387 h
16388 s///
16389 s/^/:/
16390 s/[ ]*$/:/
16391 s/:\$(srcdir):/:/g
16392 s/:\${srcdir}:/:/g
16393 s/:@srcdir@:/:/g
16394 s/^:*//
16395 s/:*$//
16396 x
16397 s/\(=[ ]*\).*/\1/
16398 G
16399 s/\n//
16400 s/^[^=]*=[ ]*$//
16401 }'
16402 fi
16403
16404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16405 fi # test -n "$CONFIG_FILES"
16406
16407 # Set up the scripts for CONFIG_HEADERS section.
16408 # No need to generate them if there are no CONFIG_HEADERS.
16409 # This happens for instance with './config.status Makefile'.
16410 if test -n "$CONFIG_HEADERS"; then
16411 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16412 BEGIN {
16413 _ACEOF
16414
16415 # Transform confdefs.h into an awk script 'defines.awk', embedded as
16416 # here-document in config.status, that substitutes the proper values into
16417 # config.h.in to produce config.h.
16418
16419 # Create a delimiter string that does not exist in confdefs.h, to ease
16420 # handling of long lines.
16421 ac_delim='%!_!# '
16422 for ac_last_try in false false :; do
16423 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16424 if test -z "$ac_tt"; then
16425 break
16426 elif $ac_last_try; then
16427 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16428 else
16429 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16430 fi
16431 done
16432
16433 # For the awk script, D is an array of macro values keyed by name,
16434 # likewise P contains macro parameters if any. Preserve backslash
16435 # newline sequences.
16436
16437 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16438 sed -n '
16439 s/.\{148\}/&'"$ac_delim"'/g
16440 t rset
16441 :rset
16442 s/^[ ]*#[ ]*define[ ][ ]*/ /
16443 t def
16444 d
16445 :def
16446 s/\\$//
16447 t bsnl
16448 s/["\\]/\\&/g
16449 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16450 D["\1"]=" \3"/p
16451 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16452 d
16453 :bsnl
16454 s/["\\]/\\&/g
16455 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16456 D["\1"]=" \3\\\\\\n"\\/p
16457 t cont
16458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16459 t cont
16460 d
16461 :cont
16462 n
16463 s/.\{148\}/&'"$ac_delim"'/g
16464 t clear
16465 :clear
16466 s/\\$//
16467 t bsnlc
16468 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16469 d
16470 :bsnlc
16471 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16472 b cont
16473 ' <confdefs.h | sed '
16474 s/'"$ac_delim"'/"\\\
16475 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16476
16477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16478 for (key in D) D_is_set[key] = 1
16479 FS = ""
16480 }
16481 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16482 line = \$ 0
16483 split(line, arg, " ")
16484 if (arg[1] == "#") {
16485 defundef = arg[2]
16486 mac1 = arg[3]
16487 } else {
16488 defundef = substr(arg[1], 2)
16489 mac1 = arg[2]
16490 }
16491 split(mac1, mac2, "(") #)
16492 macro = mac2[1]
16493 prefix = substr(line, 1, index(line, defundef) - 1)
16494 if (D_is_set[macro]) {
16495 # Preserve the white space surrounding the "#".
16496 print prefix "define", macro P[macro] D[macro]
16497 next
16498 } else {
16499 # Replace #undef with comments. This is necessary, for example,
16500 # in the case of _POSIX_SOURCE, which is predefined and required
16501 # on some systems where configure will not decide to define it.
16502 if (defundef == "undef") {
16503 print "/*", prefix defundef, macro, "*/"
16504 next
16505 }
16506 }
16507 }
16508 { print }
16509 _ACAWK
16510 _ACEOF
16511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16512 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16513 fi # test -n "$CONFIG_HEADERS"
16514
16515
16516 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16517 shift
16518 for ac_tag
16519 do
16520 case $ac_tag in
16521 :[FHLC]) ac_mode=$ac_tag; continue;;
16522 esac
16523 case $ac_mode$ac_tag in
16524 :[FHL]*:*);;
16525 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16526 :[FH]-) ac_tag=-:-;;
16527 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16528 esac
16529 ac_save_IFS=$IFS
16530 IFS=:
16531 set x $ac_tag
16532 IFS=$ac_save_IFS
16533 shift
16534 ac_file=$1
16535 shift
16536
16537 case $ac_mode in
16538 :L) ac_source=$1;;
16539 :[FH])
16540 ac_file_inputs=
16541 for ac_f
16542 do
16543 case $ac_f in
16544 -) ac_f="$ac_tmp/stdin";;
16545 *) # Look for the file first in the build tree, then in the source tree
16546 # (if the path is not absolute). The absolute path cannot be DOS-style,
16547 # because $ac_f cannot contain ':'.
16548 test -f "$ac_f" ||
16549 case $ac_f in
16550 [\\/$]*) false;;
16551 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16552 esac ||
16553 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16554 esac
16555 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16556 as_fn_append ac_file_inputs " '$ac_f'"
16557 done
16558
16559 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16560 # use $as_me), people would be surprised to read:
16561 # /* config.h. Generated by config.status. */
16562 configure_input='Generated from '`
16563 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16564 `' by configure.'
16565 if test x"$ac_file" != x-; then
16566 configure_input="$ac_file. $configure_input"
16567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16568 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16569 fi
16570 # Neutralize special characters interpreted by sed in replacement strings.
16571 case $configure_input in #(
16572 *\&* | *\|* | *\\* )
16573 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16574 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16575 *) ac_sed_conf_input=$configure_input;;
16576 esac
16577
16578 case $ac_tag in
16579 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16581 esac
16582 ;;
16583 esac
16584
16585 ac_dir=`$as_dirname -- "$ac_file" ||
16586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16587 X"$ac_file" : 'X\(//\)[^/]' \| \
16588 X"$ac_file" : 'X\(//\)$' \| \
16589 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16590 printf "%s\n" X"$ac_file" |
16591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16592 s//\1/
16593 q
16594 }
16595 /^X\(\/\/\)[^/].*/{
16596 s//\1/
16597 q
16598 }
16599 /^X\(\/\/\)$/{
16600 s//\1/
16601 q
16602 }
16603 /^X\(\/\).*/{
16604 s//\1/
16605 q
16606 }
16607 s/.*/./; q'`
16608 as_dir="$ac_dir"; as_fn_mkdir_p
16609 ac_builddir=.
16610
16611 case "$ac_dir" in
16612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16613 *)
16614 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16615 # A ".." for each directory in $ac_dir_suffix.
16616 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16617 case $ac_top_builddir_sub in
16618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16620 esac ;;
16621 esac
16622 ac_abs_top_builddir=$ac_pwd
16623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16624 # for backward compatibility:
16625 ac_top_builddir=$ac_top_build_prefix
16626
16627 case $srcdir in
16628 .) # We are building in place.
16629 ac_srcdir=.
16630 ac_top_srcdir=$ac_top_builddir_sub
16631 ac_abs_top_srcdir=$ac_pwd ;;
16632 [\\/]* | ?:[\\/]* ) # Absolute name.
16633 ac_srcdir=$srcdir$ac_dir_suffix;
16634 ac_top_srcdir=$srcdir
16635 ac_abs_top_srcdir=$srcdir ;;
16636 *) # Relative name.
16637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16638 ac_top_srcdir=$ac_top_build_prefix$srcdir
16639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16640 esac
16641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16642
16643
16644 case $ac_mode in
16645 :F)
16646 #
16647 # CONFIG_FILE
16648 #
16649
16650 case $INSTALL in
16651 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16652 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16653 esac
16654 ac_MKDIR_P=$MKDIR_P
16655 case $MKDIR_P in
16656 [\\/$]* | ?:[\\/]* ) ;;
16657 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16658 esac
16659 _ACEOF
16660
16661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16662 # If the template does not know about datarootdir, expand it.
16663 # FIXME: This hack should be removed a few years after 2.60.
16664 ac_datarootdir_hack=; ac_datarootdir_seen=
16665 ac_sed_dataroot='
16666 /datarootdir/ {
16667 p
16668 q
16669 }
16670 /@datadir@/p
16671 /@docdir@/p
16672 /@infodir@/p
16673 /@localedir@/p
16674 /@mandir@/p'
16675 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16676 *datarootdir*) ac_datarootdir_seen=yes;;
16677 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16679 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16680 _ACEOF
16681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16682 ac_datarootdir_hack='
16683 s&@datadir@&$datadir&g
16684 s&@docdir@&$docdir&g
16685 s&@infodir@&$infodir&g
16686 s&@localedir@&$localedir&g
16687 s&@mandir@&$mandir&g
16688 s&\\\${datarootdir}&$datarootdir&g' ;;
16689 esac
16690 _ACEOF
16691
16692 # Neutralize VPATH when '$srcdir' = '.'.
16693 # Shell code in configure.ac might set extrasub.
16694 # FIXME: do we really want to maintain this feature?
16695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16696 ac_sed_extra="$ac_vpsub
16697 $extrasub
16698 _ACEOF
16699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16700 :t
16701 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16702 s|@configure_input@|$ac_sed_conf_input|;t t
16703 s&@top_builddir@&$ac_top_builddir_sub&;t t
16704 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16705 s&@srcdir@&$ac_srcdir&;t t
16706 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16707 s&@top_srcdir@&$ac_top_srcdir&;t t
16708 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16709 s&@builddir@&$ac_builddir&;t t
16710 s&@abs_builddir@&$ac_abs_builddir&;t t
16711 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16712 s&@INSTALL@&$ac_INSTALL&;t t
16713 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16714 $ac_datarootdir_hack
16715 "
16716 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16717 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16718
16719 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16720 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16721 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16722 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16724 which seems to be undefined. Please make sure it is defined" >&5
16725 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16726 which seems to be undefined. Please make sure it is defined" >&2;}
16727
16728 rm -f "$ac_tmp/stdin"
16729 case $ac_file in
16730 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16731 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16732 esac \
16733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16734 ;;
16735 :H)
16736 #
16737 # CONFIG_HEADER
16738 #
16739 if test x"$ac_file" != x-; then
16740 {
16741 printf "%s\n" "/* $configure_input */" >&1 \
16742 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16743 } >"$ac_tmp/config.h" \
16744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16745 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16747 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16748 else
16749 rm -f "$ac_file"
16750 mv "$ac_tmp/config.h" "$ac_file" \
16751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16752 fi
16753 else
16754 printf "%s\n" "/* $configure_input */" >&1 \
16755 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16756 || as_fn_error $? "could not create -" "$LINENO" 5
16757 fi
16758 # Compute "$ac_file"'s index in $config_headers.
16759 _am_arg="$ac_file"
16760 _am_stamp_count=1
16761 for _am_header in $config_headers :; do
16762 case $_am_header in
16763 $_am_arg | $_am_arg:* )
16764 break ;;
16765 * )
16766 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16767 esac
16768 done
16769 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16770 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16771 X"$_am_arg" : 'X\(//\)[^/]' \| \
16772 X"$_am_arg" : 'X\(//\)$' \| \
16773 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16774 printf "%s\n" X"$_am_arg" |
16775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16776 s//\1/
16777 q
16778 }
16779 /^X\(\/\/\)[^/].*/{
16780 s//\1/
16781 q
16782 }
16783 /^X\(\/\/\)$/{
16784 s//\1/
16785 q
16786 }
16787 /^X\(\/\).*/{
16788 s//\1/
16789 q
16790 }
16791 s/.*/./; q'`/stamp-h$_am_stamp_count
16792 ;;
16793
16794 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16795 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16796 ;;
16797 esac
16798
16799
16800 case $ac_file$ac_mode in
16801 "libtool":C)
16802
16803 # See if we are running on zsh, and set the options that allow our
16804 # commands through without removal of \ escapes.
16805 if test -n "${ZSH_VERSION+set}"; then
16806 setopt NO_GLOB_SUBST
16807 fi
16808
16809 cfgfile=${ofile}T
16810 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16811 $RM "$cfgfile"
16812
16813 cat <<_LT_EOF >> "$cfgfile"
16814 #! $SHELL
16815 # Generated automatically by $as_me ($PACKAGE) $VERSION
16816 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16817
16818 # Provide generalized library-building support services.
16819 # Written by Gordon Matzigkeit, 1996
16820
16821 # Copyright (C) 2024 Free Software Foundation, Inc.
16822 # This is free software; see the source for copying conditions. There is NO
16823 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16824
16825 # GNU Libtool is free software; you can redistribute it and/or modify
16826 # it under the terms of the GNU General Public License as published by
16827 # the Free Software Foundation; either version 2 of the License, or
16828 # (at your option) any later version.
16829 #
16830 # As a special exception to the GNU General Public License, if you
16831 # distribute this file as part of a program or library that is built
16832 # using GNU Libtool, you may include this file under the same
16833 # distribution terms that you use for the rest of that program.
16834 #
16835 # GNU Libtool is distributed in the hope that it will be useful, but
16836 # WITHOUT ANY WARRANTY; without even the implied warranty of
16837 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16838 # GNU General Public License for more details.
16839 #
16840 # You should have received a copy of the GNU General Public License
16841 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16842
16843
16844 # The names of the tagged configurations supported by this script.
16845 available_tags=''
16846
16847 # Configured defaults for sys_lib_dlsearch_path munging.
16848 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16849
16850 # ### BEGIN LIBTOOL CONFIG
16851
16852 # Which release of libtool.m4 was used?
16853 macro_version=$macro_version
16854 macro_revision=$macro_revision
16855
16856 # Whether or not to build shared libraries.
16857 build_libtool_libs=$enable_shared
16858
16859 # Whether or not to build static libraries.
16860 build_old_libs=$enable_static
16861
16862 # What type of objects to build.
16863 pic_mode=$pic_mode
16864
16865 # Whether or not to optimize for fast installation.
16866 fast_install=$enable_fast_install
16867
16868 # Shared archive member basename,for filename based shared library versioning on AIX.
16869 shared_archive_member_spec=$shared_archive_member_spec
16870
16871 # Shell to use when invoking shell scripts.
16872 SHELL=$lt_SHELL
16873
16874 # An echo program that protects backslashes.
16875 ECHO=$lt_ECHO
16876
16877 # The PATH separator for the build system.
16878 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16879
16880 # The host system.
16881 host_alias=$host_alias
16882 host=$host
16883 host_os=$host_os
16884
16885 # The build system.
16886 build_alias=$build_alias
16887 build=$build
16888 build_os=$build_os
16889
16890 # A sed program that does not truncate output.
16891 SED=$lt_SED
16892
16893 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16894 Xsed="\$SED -e 1s/^X//"
16895
16896 # A grep program that handles long lines.
16897 GREP=$lt_GREP
16898
16899 # An ERE matcher.
16900 EGREP=$lt_EGREP
16901
16902 # A literal string matcher.
16903 FGREP=$lt_FGREP
16904
16905 # A BSD- or MS-compatible name lister.
16906 NM=$lt_NM
16907
16908 # Whether we need soft or hard links.
16909 LN_S=$lt_LN_S
16910
16911 # What is the maximum length of a command?
16912 max_cmd_len=$max_cmd_len
16913
16914 # Object file suffix (normally "o").
16915 objext=$ac_objext
16916
16917 # Executable file suffix (normally "").
16918 exeext=$exeext
16919
16920 # whether the shell understands "unset".
16921 lt_unset=$lt_unset
16922
16923 # turn spaces into newlines.
16924 SP2NL=$lt_lt_SP2NL
16925
16926 # turn newlines into spaces.
16927 NL2SP=$lt_lt_NL2SP
16928
16929 # convert \$build file names to \$host format.
16930 to_host_file_cmd=$lt_cv_to_host_file_cmd
16931
16932 # convert \$build files to toolchain format.
16933 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16934
16935 # A file(cmd) program that detects file types.
16936 FILECMD=$lt_FILECMD
16937
16938 # An object symbol dumper.
16939 OBJDUMP=$lt_OBJDUMP
16940
16941 # Method to check whether dependent libraries are shared objects.
16942 deplibs_check_method=$lt_deplibs_check_method
16943
16944 # Command to use when deplibs_check_method = "file_magic".
16945 file_magic_cmd=$lt_file_magic_cmd
16946
16947 # How to find potential files when deplibs_check_method = "file_magic".
16948 file_magic_glob=$lt_file_magic_glob
16949
16950 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16951 want_nocaseglob=$lt_want_nocaseglob
16952
16953 # DLL creation program.
16954 DLLTOOL=$lt_DLLTOOL
16955
16956 # Command to associate shared and link libraries.
16957 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16958
16959 # The archiver.
16960 AR=$lt_AR
16961
16962 # Flags to create an archive (by configure).
16963 lt_ar_flags=$lt_ar_flags
16964
16965 # Flags to create an archive.
16966 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16967
16968 # How to feed a file listing to the archiver.
16969 archiver_list_spec=$lt_archiver_list_spec
16970
16971 # A symbol stripping program.
16972 STRIP=$lt_STRIP
16973
16974 # Commands used to install an old-style archive.
16975 RANLIB=$lt_RANLIB
16976 old_postinstall_cmds=$lt_old_postinstall_cmds
16977 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16978
16979 # Whether to use a lock for old archive extraction.
16980 lock_old_archive_extraction=$lock_old_archive_extraction
16981
16982 # A C compiler.
16983 LTCC=$lt_CC
16984
16985 # LTCC compiler flags.
16986 LTCFLAGS=$lt_CFLAGS
16987
16988 # Take the output of nm and produce a listing of raw symbols and C names.
16989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16990
16991 # Transform the output of nm in a proper C declaration.
16992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16993
16994 # Transform the output of nm into a list of symbols to manually relocate.
16995 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16996
16997 # Transform the output of nm in a C name address pair.
16998 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16999
17000 # Transform the output of nm in a C name address pair when lib prefix is needed.
17001 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17002
17003 # The name lister interface.
17004 nm_interface=$lt_lt_cv_nm_interface
17005
17006 # Specify filename containing input files for \$NM.
17007 nm_file_list_spec=$lt_nm_file_list_spec
17008
17009 # The root where to search for dependent libraries,and where our libraries should be installed.
17010 lt_sysroot=$lt_sysroot
17011
17012 # Command to truncate a binary pipe.
17013 lt_truncate_bin=$lt_lt_cv_truncate_bin
17014
17015 # The name of the directory that contains temporary libtool files.
17016 objdir=$objdir
17017
17018 # Used to examine libraries when file_magic_cmd begins with "file".
17019 MAGIC_CMD=$MAGIC_CMD
17020
17021 # Must we lock files when doing compilation?
17022 need_locks=$lt_need_locks
17023
17024 # Manifest tool.
17025 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17026
17027 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17028 DSYMUTIL=$lt_DSYMUTIL
17029
17030 # Tool to change global to local symbols on Mac OS X.
17031 NMEDIT=$lt_NMEDIT
17032
17033 # Tool to manipulate fat objects and archives on Mac OS X.
17034 LIPO=$lt_LIPO
17035
17036 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17037 OTOOL=$lt_OTOOL
17038
17039 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17040 OTOOL64=$lt_OTOOL64
17041
17042 # Old archive suffix (normally "a").
17043 libext=$libext
17044
17045 # Shared library suffix (normally ".so").
17046 shrext_cmds=$lt_shrext_cmds
17047
17048 # The commands to extract the exported symbol list from a shared archive.
17049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17050
17051 # Variables whose values should be saved in libtool wrapper scripts and
17052 # restored at link time.
17053 variables_saved_for_relink=$lt_variables_saved_for_relink
17054
17055 # Do we need the "lib" prefix for modules?
17056 need_lib_prefix=$need_lib_prefix
17057
17058 # Do we need a version for libraries?
17059 need_version=$need_version
17060
17061 # Library versioning type.
17062 version_type=$version_type
17063
17064 # Shared library runtime path variable.
17065 runpath_var=$runpath_var
17066
17067 # Shared library path variable.
17068 shlibpath_var=$shlibpath_var
17069
17070 # Is shlibpath searched before the hard-coded library search path?
17071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17072
17073 # Format of library name prefix.
17074 libname_spec=$lt_libname_spec
17075
17076 # List of archive names. First name is the real one, the rest are links.
17077 # The last name is the one that the linker finds with -lNAME
17078 library_names_spec=$lt_library_names_spec
17079
17080 # The coded name of the library, if different from the real name.
17081 soname_spec=$lt_soname_spec
17082
17083 # Permission mode override for installation of shared libraries.
17084 install_override_mode=$lt_install_override_mode
17085
17086 # Command to use after installation of a shared archive.
17087 postinstall_cmds=$lt_postinstall_cmds
17088
17089 # Command to use after uninstallation of a shared archive.
17090 postuninstall_cmds=$lt_postuninstall_cmds
17091
17092 # Commands used to finish a libtool library installation in a directory.
17093 finish_cmds=$lt_finish_cmds
17094
17095 # As "finish_cmds", except a single script fragment to be evaled but
17096 # not shown.
17097 finish_eval=$lt_finish_eval
17098
17099 # Whether we should hardcode library paths into libraries.
17100 hardcode_into_libs=$hardcode_into_libs
17101
17102 # Compile-time system search path for libraries.
17103 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17104
17105 # Detected run-time system search path for libraries.
17106 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17107
17108 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17109 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17110
17111 # Whether dlopen is supported.
17112 dlopen_support=$enable_dlopen
17113
17114 # Whether dlopen of programs is supported.
17115 dlopen_self=$enable_dlopen_self
17116
17117 # Whether dlopen of statically linked programs is supported.
17118 dlopen_self_static=$enable_dlopen_self_static
17119
17120 # Commands to strip libraries.
17121 old_striplib=$lt_old_striplib
17122 striplib=$lt_striplib
17123
17124
17125 # The linker used to build libraries.
17126 LD=$lt_LD
17127
17128 # How to create reloadable object files.
17129 reload_flag=$lt_reload_flag
17130 reload_cmds=$lt_reload_cmds
17131
17132 # Commands used to build an old-style archive.
17133 old_archive_cmds=$lt_old_archive_cmds
17134
17135 # A language specific compiler.
17136 CC=$lt_compiler
17137
17138 # Is the compiler the GNU compiler?
17139 with_gcc=$GCC
17140
17141 # Compiler flag to turn off builtin functions.
17142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17143
17144 # Additional compiler flags for building library objects.
17145 pic_flag=$lt_lt_prog_compiler_pic
17146
17147 # How to pass a linker flag through the compiler.
17148 wl=$lt_lt_prog_compiler_wl
17149
17150 # Compiler flag to prevent dynamic linking.
17151 link_static_flag=$lt_lt_prog_compiler_static
17152
17153 # Does compiler simultaneously support -c and -o options?
17154 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17155
17156 # Whether or not to add -lc for building shared libraries.
17157 build_libtool_need_lc=$archive_cmds_need_lc
17158
17159 # Whether or not to disallow shared libs when runtime libs are static.
17160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17161
17162 # Compiler flag to allow reflexive dlopens.
17163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17164
17165 # Compiler flag to generate shared objects directly from archives.
17166 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17167
17168 # Whether the compiler copes with passing no objects directly.
17169 compiler_needs_object=$lt_compiler_needs_object
17170
17171 # Create an old-style archive from a shared archive.
17172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17173
17174 # Create a temporary old-style archive to link instead of a shared archive.
17175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17176
17177 # Commands used to build a shared archive.
17178 archive_cmds=$lt_archive_cmds
17179 archive_expsym_cmds=$lt_archive_expsym_cmds
17180
17181 # Commands used to build a loadable module if different from building
17182 # a shared archive.
17183 module_cmds=$lt_module_cmds
17184 module_expsym_cmds=$lt_module_expsym_cmds
17185
17186 # Whether we are building with GNU ld or not.
17187 with_gnu_ld=$lt_with_gnu_ld
17188
17189 # Flag that allows shared libraries with undefined symbols to be built.
17190 allow_undefined_flag=$lt_allow_undefined_flag
17191
17192 # Flag that enforces no undefined symbols.
17193 no_undefined_flag=$lt_no_undefined_flag
17194
17195 # Flag to hardcode \$libdir into a binary during linking.
17196 # This must work even if \$libdir does not exist
17197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17198
17199 # Whether we need a single "-rpath" flag with a separated argument.
17200 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17201
17202 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17203 # DIR into the resulting binary.
17204 hardcode_direct=$hardcode_direct
17205
17206 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17207 # DIR into the resulting binary and the resulting library dependency is
17208 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17209 # library is relocated.
17210 hardcode_direct_absolute=$hardcode_direct_absolute
17211
17212 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17213 # into the resulting binary.
17214 hardcode_minus_L=$hardcode_minus_L
17215
17216 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17217 # into the resulting binary.
17218 hardcode_shlibpath_var=$hardcode_shlibpath_var
17219
17220 # Set to "yes" if building a shared library automatically hardcodes DIR
17221 # into the library and all subsequent libraries and executables linked
17222 # against it.
17223 hardcode_automatic=$hardcode_automatic
17224
17225 # Set to yes if linker adds runtime paths of dependent libraries
17226 # to runtime path list.
17227 inherit_rpath=$inherit_rpath
17228
17229 # Whether libtool must link a program against all its dependency libraries.
17230 link_all_deplibs=$link_all_deplibs
17231
17232 # Set to "yes" if exported symbols are required.
17233 always_export_symbols=$always_export_symbols
17234
17235 # The commands to list exported symbols.
17236 export_symbols_cmds=$lt_export_symbols_cmds
17237
17238 # Symbols that should not be listed in the preloaded symbols.
17239 exclude_expsyms=$lt_exclude_expsyms
17240
17241 # Symbols that must always be exported.
17242 include_expsyms=$lt_include_expsyms
17243
17244 # Commands necessary for linking programs (against libraries) with templates.
17245 prelink_cmds=$lt_prelink_cmds
17246
17247 # Commands necessary for finishing linking programs.
17248 postlink_cmds=$lt_postlink_cmds
17249
17250 # Specify filename containing input files.
17251 file_list_spec=$lt_file_list_spec
17252
17253 # How to hardcode a shared library path into an executable.
17254 hardcode_action=$hardcode_action
17255
17256 # ### END LIBTOOL CONFIG
17257
17258 _LT_EOF
17259
17260 cat <<'_LT_EOF' >> "$cfgfile"
17261
17262 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17263
17264 # func_munge_path_list VARIABLE PATH
17265 # -----------------------------------
17266 # VARIABLE is name of variable containing _space_ separated list of
17267 # directories to be munged by the contents of PATH, which is string
17268 # having a format:
17269 # "DIR[:DIR]:"
17270 # string "DIR[ DIR]" will be prepended to VARIABLE
17271 # ":DIR[:DIR]"
17272 # string "DIR[ DIR]" will be appended to VARIABLE
17273 # "DIRP[:DIRP]::[DIRA:]DIRA"
17274 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17275 # "DIRA[ DIRA]" will be appended to VARIABLE
17276 # "DIR[:DIR]"
17277 # VARIABLE will be replaced by "DIR[ DIR]"
17278 func_munge_path_list ()
17279 {
17280 case x$2 in
17281 x)
17282 ;;
17283 *:)
17284 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17285 ;;
17286 x:*)
17287 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17288 ;;
17289 *::*)
17290 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17291 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17292 ;;
17293 *)
17294 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17295 ;;
17296 esac
17297 }
17298
17299
17300 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17301 func_cc_basename ()
17302 {
17303 for cc_temp in $*""; do
17304 case $cc_temp in
17305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17307 \-*) ;;
17308 *) break;;
17309 esac
17310 done
17311 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17312 }
17313
17314
17315 # ### END FUNCTIONS SHARED WITH CONFIGURE
17316
17317 _LT_EOF
17318
17319 case $host_os in
17320 aix3*)
17321 cat <<\_LT_EOF >> "$cfgfile"
17322 # AIX sometimes has problems with the GCC collect2 program. For some
17323 # reason, if we set the COLLECT_NAMES environment variable, the problems
17324 # vanish in a puff of smoke.
17325 if test set != "${COLLECT_NAMES+set}"; then
17326 COLLECT_NAMES=
17327 export COLLECT_NAMES
17328 fi
17329 _LT_EOF
17330 ;;
17331 esac
17332
17333
17334
17335 ltmain=$ac_aux_dir/ltmain.sh
17336
17337
17338 # We use sed instead of cat because bash on DJGPP gets confused if
17339 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17340 # text mode, it properly converts lines to CR/LF. This bash problem
17341 # is reportedly fixed, but why not run on old versions too?
17342 $SED '$q' "$ltmain" >> "$cfgfile" \
17343 || (rm -f "$cfgfile"; exit 1)
17344
17345 mv -f "$cfgfile" "$ofile" ||
17346 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17347 chmod +x "$ofile"
17348
17349 ;;
17350
17351 esac
17352 done # for ac_tag
17353
17354
17355 as_fn_exit 0
17356 _ACEOF
17357 ac_clean_files=$ac_clean_files_save
17358
17359 test $ac_write_fail = 0 ||
17360 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17361
17362
17363 # configure is writing to config.log, and then calls config.status.
17364 # config.status does its own redirection, appending to config.log.
17365 # Unfortunately, on DOS this fails, as config.log is still kept open
17366 # by configure, so config.status won't be able to write to it; its
17367 # output is simply discarded. So we exec the FD to /dev/null,
17368 # effectively closing config.log, so it can be properly (re)opened and
17369 # appended to by config.status. When coming back to configure, we
17370 # need to make the FD available again.
17371 if test "$no_create" != yes; then
17372 ac_cs_success=:
17373 ac_config_status_args=
17374 test "$silent" = yes &&
17375 ac_config_status_args="$ac_config_status_args --quiet"
17376 exec 5>/dev/null
17377 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17378 exec 5>>config.log
17379 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17380 # would make configure fail if this is the last instruction.
17381 $ac_cs_success || as_fn_exit 1
17382 fi
17383 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17385 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17386 fi
17387
17388