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 libp11 0.4.18.
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 test \$(( 1 + 1 )) = 2 || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='libp11'
613 PACKAGE_TARNAME='libp11'
614 PACKAGE_VERSION='0.4.18'
615 PACKAGE_STRING='libp11 0.4.18'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 ac_unique_file="src/libp11.h"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 ac_subst_vars='am__EXEEXT_FALSE
653 am__EXEEXT_TRUE
654 LTLIBOBJS
655 LIBOBJS
656 ENABLE_STATIC_ENGINE_FALSE
657 ENABLE_STATIC_ENGINE_TRUE
658 ENABLE_API_DOC_FALSE
659 ENABLE_API_DOC_TRUE
660 CYGWIN_FALSE
661 CYGWIN_TRUE
662 WIN32_FALSE
663 WIN32_TRUE
664 SHARED_EXT
665 WIN_LIBPREFIX
666 LIBP11_LT_OLDEST
667 LIBP11_LT_AGE
668 LIBP11_LT_REVISION
669 LIBP11_LT_CURRENT
670 LIBP11_VERSION_FIX
671 LIBP11_VERSION_MINOR
672 LIBP11_VERSION_MAJOR
673 providersexecdir
674 enginesexecdir
675 apidocdir
676 pkgconfigdir
677 OPENSSL_LIBS
678 OPENSSL_CFLAGS
679 PTHREAD_CFLAGS
680 PTHREAD_LIBS
681 PTHREAD_CXX
682 PTHREAD_CC
683 ax_pthread_config
684 DOXYGEN
685 RC
686 LT_SYS_LIBRARY_PATH
687 OTOOL64
688 OTOOL
689 LIPO
690 NMEDIT
691 DSYMUTIL
692 MANIFEST_TOOL
693 RANLIB
694 ac_ct_AR
695 AR
696 FILECMD
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 EGREP
703 GREP
704 LIBTOOL
705 OBJDUMP
706 DLLTOOL
707 AS
708 SED
709 LN_S
710 CPP
711 HAVE_LD_VERSION_SCRIPT_FALSE
712 HAVE_LD_VERSION_SCRIPT_TRUE
713 LIBP11_OSSL_PROVIDER_FALSE
714 LIBP11_OSSL_PROVIDER_TRUE
715 PKG_CONFIG_LIBDIR
716 PKG_CONFIG_PATH
717 PKG_CONFIG
718 am__fastdepCC_FALSE
719 am__fastdepCC_TRUE
720 CCDEPMODE
721 am__nodep
722 AMDEPBACKSLASH
723 AMDEP_FALSE
724 AMDEP_TRUE
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 am__xargs_n
735 am__rm_f_notfound
736 AM_BACKSLASH
737 AM_DEFAULT_VERBOSITY
738 AM_DEFAULT_V
739 AM_V
740 CSCOPE
741 ETAGS
742 CTAGS
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 target_os
767 target_vendor
768 target_cpu
769 target
770 host_os
771 host_vendor
772 host_cpu
773 host
774 build_os
775 build_vendor
776 build_cpu
777 build
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 runstatedir
798 localstatedir
799 sharedstatedir
800 sysconfdir
801 datadir
802 datarootdir
803 libexecdir
804 sbindir
805 bindir
806 program_transform_name
807 prefix
808 exec_prefix
809 PACKAGE_URL
810 PACKAGE_BUGREPORT
811 PACKAGE_STRING
812 PACKAGE_VERSION
813 PACKAGE_TARNAME
814 PACKAGE_NAME
815 PATH_SEPARATOR
816 SHELL
817 am__quote'
818 ac_subst_files=''
819 ac_user_opts='
820 enable_option_checking
821 enable_silent_rules
822 enable_dependency_tracking
823 enable_ld_version_script
824 with_cygwin_native
825 enable_strict
826 enable_pedantic
827 enable_api_doc
828 with_apidocdir
829 with_enginesdir
830 enable_static_engine
831 with_modulesdir
832 with_pkcs11_module
833 enable_shared
834 enable_static
835 enable_pic
836 with_pic
837 enable_fast_install
838 enable_aix_soname
839 with_aix_soname
840 with_gnu_ld
841 with_sysroot
842 enable_libtool_lock
843 '
844 ac_precious_vars='build_alias
845 host_alias
846 target_alias
847 CC
848 CFLAGS
849 LDFLAGS
850 LIBS
851 CPPFLAGS
852 PKG_CONFIG
853 PKG_CONFIG_PATH
854 PKG_CONFIG_LIBDIR
855 CPP
856 LT_SYS_LIBRARY_PATH
857 DOXYGEN
858 OPENSSL_CFLAGS
859 OPENSSL_LIBS'
860
861
862 # Initialize some variables set by options.
863 ac_init_help=
864 ac_init_version=false
865 ac_unrecognized_opts=
866 ac_unrecognized_sep=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
869 cache_file=/dev/null
870 exec_prefix=NONE
871 no_create=
872 no_recursion=
873 prefix=NONE
874 program_prefix=NONE
875 program_suffix=NONE
876 program_transform_name=s,x,x,
877 silent=
878 site=
879 srcdir=
880 verbose=
881 x_includes=NONE
882 x_libraries=NONE
883
884 # Installation directory options.
885 # These are left unexpanded so users can "make install exec_prefix=/foo"
886 # and all the variables that are supposed to be based on exec_prefix
887 # by default will actually change.
888 # Use braces instead of parens because sh, perl, etc. also accept them.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir='${exec_prefix}/bin'
891 sbindir='${exec_prefix}/sbin'
892 libexecdir='${exec_prefix}/libexec'
893 datarootdir='${prefix}/share'
894 datadir='${datarootdir}'
895 sysconfdir='${prefix}/etc'
896 sharedstatedir='${prefix}/com'
897 localstatedir='${prefix}/var'
898 runstatedir='${localstatedir}/run'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
918 ac_prev=
919 continue
920 fi
921
922 case $ac_option in
923 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 *=) ac_optarg= ;;
925 *) ac_optarg=yes ;;
926 esac
927
928 case $ac_dashdash$ac_option in
929 --)
930 ac_dashdash=yes ;;
931
932 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 ac_prev=bindir ;;
934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935 bindir=$ac_optarg ;;
936
937 -build | --build | --buil | --bui | --bu)
938 ac_prev=build_alias ;;
939 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940 build_alias=$ac_optarg ;;
941
942 -cache-file | --cache-file | --cache-fil | --cache-fi \
943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944 ac_prev=cache_file ;;
945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947 cache_file=$ac_optarg ;;
948
949 --config-cache | -C)
950 cache_file=config.cache ;;
951
952 -datadir | --datadir | --datadi | --datad)
953 ac_prev=datadir ;;
954 -datadir=* | --datadir=* | --datadi=* | --datad=*)
955 datadir=$ac_optarg ;;
956
957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958 | --dataroo | --dataro | --datar)
959 ac_prev=datarootdir ;;
960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962 datarootdir=$ac_optarg ;;
963
964 -disable-* | --disable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: '$ac_useropt'"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=no ;;
979
980 -docdir | --docdir | --docdi | --doc | --do)
981 ac_prev=docdir ;;
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 docdir=$ac_optarg ;;
984
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 ac_prev=dvidir ;;
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 dvidir=$ac_optarg ;;
989
990 -enable-* | --enable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid feature name: '$ac_useropt'"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
1013 exec_prefix=$ac_optarg ;;
1014
1015 -gas | --gas | --ga | --g)
1016 # Obsolete; use --with-gas.
1017 with_gas=yes ;;
1018
1019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
1025
1026 -host | --host | --hos | --ho)
1027 ac_prev=host_alias ;;
1028 -host=* | --host=* | --hos=* | --ho=*)
1029 host_alias=$ac_optarg ;;
1030
1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 ac_prev=htmldir ;;
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 | --ht=*)
1035 htmldir=$ac_optarg ;;
1036
1037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
1042 includedir=$ac_optarg ;;
1043
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 ac_prev=infodir ;;
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047 infodir=$ac_optarg ;;
1048
1049 -libdir | --libdir | --libdi | --libd)
1050 ac_prev=libdir ;;
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052 libdir=$ac_optarg ;;
1053
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
1059 libexecdir=$ac_optarg ;;
1060
1061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1065
1066 -localstatedir | --localstatedir | --localstatedi | --localstated \
1067 | --localstate | --localstat | --localsta | --localst | --locals)
1068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071 localstatedir=$ac_optarg ;;
1072
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 ac_prev=mandir ;;
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076 mandir=$ac_optarg ;;
1077
1078 -nfp | --nfp | --nf)
1079 # Obsolete; use --without-fp.
1080 with_fp=no ;;
1081
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083 | --no-cr | --no-c | -n)
1084 no_create=yes ;;
1085
1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088 no_recursion=yes ;;
1089
1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097 oldincludedir=$ac_optarg ;;
1098
1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 ac_prev=prefix ;;
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102 prefix=$ac_optarg ;;
1103
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109 program_prefix=$ac_optarg ;;
1110
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116 program_suffix=$ac_optarg ;;
1117
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
1133 program_transform_name=$ac_optarg ;;
1134
1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 ac_prev=pdfdir ;;
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1139
1140 -psdir | --psdir | --psdi | --psd | --ps)
1141 ac_prev=psdir ;;
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143 psdir=$ac_optarg ;;
1144
1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1147 silent=yes ;;
1148
1149 -runstatedir | --runstatedir | --runstatedi | --runstated \
1150 | --runstate | --runstat | --runsta | --runst | --runs \
1151 | --run | --ru | --r)
1152 ac_prev=runstatedir ;;
1153 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1154 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1155 | --run=* | --ru=* | --r=*)
1156 runstatedir=$ac_optarg ;;
1157
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 ac_prev=sbindir ;;
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 | --sbi=* | --sb=*)
1162 sbindir=$ac_optarg ;;
1163
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1167 | --sha | --sh)
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 | --sha=* | --sh=*)
1173 sharedstatedir=$ac_optarg ;;
1174
1175 -site | --site | --sit)
1176 ac_prev=site ;;
1177 -site=* | --site=* | --sit=*)
1178 site=$ac_optarg ;;
1179
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 ac_prev=srcdir ;;
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1184
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1191
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1196
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 verbose=yes ;;
1199
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1202
1203 -with-* | --with-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: '$ac_useropt'"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=\$ac_optarg ;;
1218
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: '$ac_useropt'"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=no ;;
1234
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1238
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1245
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1252
1253 -*) as_fn_error $? "unrecognized option: '$ac_option'
1254 Try '$0 --help' for more information"
1255 ;;
1256
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 case $ac_envvar in #(
1261 '' | [0-9]* | *[!_$as_cr_alnum]* )
1262 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1263 esac
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1266
1267 *)
1268 # FIXME: should be removed in autoconf 3.0.
1269 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273 ;;
1274
1275 esac
1276 done
1277
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 as_fn_error $? "missing argument to $ac_option"
1281 fi
1282
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1285 no) ;;
1286 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288 esac
1289 fi
1290
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir runstatedir
1296 do
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1299 case $ac_val in
1300 */ )
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1303 esac
1304 # Be sure to have absolute directory names.
1305 case $ac_val in
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 esac
1309 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1310 done
1311
1312 # There might be people who depend on the old broken behavior: '$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 elif test "x$build_alias" != "x$host_alias"; then
1324 cross_compiling=yes
1325 fi
1326 fi
1327
1328 ac_tool_prefix=
1329 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331 test "$silent" = yes && exec 6>/dev/null
1332
1333
1334 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di=`ls -di .` &&
1336 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337 as_fn_error $? "working directory cannot be determined"
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 as_fn_error $? "pwd does not report name of working directory"
1340
1341
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344 ac_srcdir_defaulted=yes
1345 # Try the directory containing this script, then the parent directory.
1346 ac_confdir=`$as_dirname -- "$as_myself" ||
1347 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348 X"$as_myself" : 'X\(//\)[^/]' \| \
1349 X"$as_myself" : 'X\(//\)$' \| \
1350 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351 printf "%s\n" X"$as_myself" |
1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)[^/].*/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\).*/{
1365 s//\1/
1366 q
1367 }
1368 s/.*/./; q'`
1369 srcdir=$ac_confdir
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 srcdir=..
1372 fi
1373 else
1374 ac_srcdir_defaulted=no
1375 fi
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1379 fi
1380 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1381 ac_abs_confdir=`(
1382 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383 pwd)`
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386 srcdir=.
1387 fi
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1391 case $srcdir in
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 esac
1394 for ac_var in $ac_precious_vars; do
1395 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_env_${ac_var}_value=\$${ac_var}
1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399 done
1400
1401 #
1402 # Report the --help message.
1403 #
1404 if test "$ac_init_help" = "long"; then
1405 # Omit some internal or obsolete options to make the list less imposing.
1406 # This message is too long to be a string in the A/UX 3.1 sh.
1407 cat <<_ACEOF
1408 'configure' configures libp11 0.4.18 to adapt to many kinds of systems.
1409
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE. See below for descriptions of some of the useful variables.
1414
1415 Defaults for the options are specified in brackets.
1416
1417 Configuration:
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
1422 -q, --quiet, --silent do not print 'checking ...' messages
1423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for '--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or '..']
1427
1428 Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
1430 [$ac_default_prefix]
1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1432 [PREFIX]
1433
1434 By default, 'make install' will install all the files in
1435 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1436 an installation prefix other than '$ac_default_prefix' using '--prefix',
1437 for instance '--prefix=\$HOME'.
1438
1439 For better control, use the options below.
1440
1441 Fine tuning of the installation directories:
1442 --bindir=DIR user executables [EPREFIX/bin]
1443 --sbindir=DIR system admin executables [EPREFIX/sbin]
1444 --libexecdir=DIR program executables [EPREFIX/libexec]
1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1448 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1449 --libdir=DIR object code libraries [EPREFIX/lib]
1450 --includedir=DIR C header files [PREFIX/include]
1451 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454 --infodir=DIR info documentation [DATAROOTDIR/info]
1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456 --mandir=DIR man documentation [DATAROOTDIR/man]
1457 --docdir=DIR documentation root [DATAROOTDIR/doc/libp11]
1458 --htmldir=DIR html documentation [DOCDIR]
1459 --dvidir=DIR dvi documentation [DOCDIR]
1460 --pdfdir=DIR pdf documentation [DOCDIR]
1461 --psdir=DIR ps documentation [DOCDIR]
1462 _ACEOF
1463
1464 cat <<\_ACEOF
1465
1466 Program names:
1467 --program-prefix=PREFIX prepend PREFIX to installed program names
1468 --program-suffix=SUFFIX append SUFFIX to installed program names
1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1470
1471 System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 --target=TARGET configure for building compilers for TARGET [HOST]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of libp11 0.4.18:";;
1481 esac
1482 cat <<\_ACEOF
1483
1484 Optional Features:
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-silent-rules less verbose build output (undo: "make V=1")
1489 --disable-silent-rules verbose build output (undo: "make V=0")
1490 --enable-dependency-tracking
1491 do not reject slow dependency extractors
1492 --disable-dependency-tracking
1493 speeds up one-time build
1494 --enable-ld-version-script
1495 enable linker version script (default is enabled
1496 when possible)
1497 --enable-strict enable strict compile mode [disabled]
1498 --enable-pedantic enable pedantic compile mode [disabled]
1499 --enable-api-doc enable generation and installation of API documents
1500 [disabled]
1501 --enable-static-engine enable static engine (libpkcs11.a) build [disabled]
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-static[=PKGS] build static libraries [default=yes]
1504 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1505 both]
1506 --enable-fast-install[=PKGS]
1507 optimize for fast installation [default=yes]
1508 --enable-aix-soname=aix|svr4|both
1509 shared library versioning (aka "SONAME") variant to
1510 provide on AIX, [default=aix].
1511 --disable-libtool-lock avoid locking (might break parallel builds)
1512
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-cygwin-native compile native win32
1517 --with-apidocdir put API documents at this directory [HTMLDIR/api]
1518 --with-enginesdir OpenSSL engines directory
1519 --with-modulesdir OpenSSL3 providers directory
1520 --with-pkcs11-module default PKCS11 module
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1523 compiler's sysroot if not specified).
1524
1525 Some influential environment variables:
1526 CC C compiler command
1527 CFLAGS C compiler flags
1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1529 nonstandard directory <lib dir>
1530 LIBS libraries to pass to the linker, e.g. -l<library>
1531 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1532 you have headers in a nonstandard directory <include dir>
1533 PKG_CONFIG path to pkg-config utility
1534 PKG_CONFIG_PATH
1535 directories to add to pkg-config's search path
1536 PKG_CONFIG_LIBDIR
1537 path overriding pkg-config's built-in search path
1538 CPP C preprocessor
1539 LT_SYS_LIBRARY_PATH
1540 User-defined run-time library search path.
1541 DOXYGEN doxygen utility
1542 OPENSSL_CFLAGS
1543 C compiler flags for OPENSSL, overriding pkg-config
1544 OPENSSL_LIBS
1545 linker flags for OPENSSL, overriding pkg-config
1546
1547 Use these variables to override the choices made by 'configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1549
1550 Report bugs to the package provider.
1551 _ACEOF
1552 ac_status=$?
1553 fi
1554
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 continue
1561 ac_builddir=.
1562
1563 case "$ac_dir" in
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *)
1566 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 esac ;;
1573 esac
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1578
1579 case $srcdir in
1580 .) # We are building in place.
1581 ac_srcdir=.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1588 *) # Relative name.
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 esac
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for configure.gnu first; this name is used for a wrapper for
1597 # Metaconfig's "Configure" on case-insensitive file systems.
1598 if test -f "$ac_srcdir/configure.gnu"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601 elif test -f "$ac_srcdir/configure"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure" --help=recursive
1604 else
1605 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 fi || ac_status=$?
1607 cd "$ac_pwd" || { ac_status=$?; break; }
1608 done
1609 fi
1610
1611 test -n "$ac_init_help" && exit $ac_status
1612 if $ac_init_version; then
1613 cat <<\_ACEOF
1614 libp11 configure 0.4.18
1615 generated by GNU Autoconf 2.72
1616
1617 Copyright (C) 2023 Free Software Foundation, Inc.
1618 This configure script is free software; the Free Software Foundation
1619 gives unlimited permission to copy, distribute and modify it.
1620 _ACEOF
1621 exit
1622 fi
1623
1624 ## ------------------------ ##
1625 ## Autoconf initialization. ##
1626 ## ------------------------ ##
1627
1628 # ac_fn_c_try_compile LINENO
1629 # --------------------------
1630 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_compile ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext conftest.beam
1635 if { { ac_try="$ac_compile"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 printf "%s\n" "$ac_try_echo"; } >&5
1642 (eval "$ac_compile") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest.$ac_objext
1654 then :
1655 ac_retval=0
1656 else case e in #(
1657 e) printf "%s\n" "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1 ;;
1661 esac
1662 fi
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_compile
1667
1668 # ac_fn_c_try_link LINENO
1669 # -----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_link ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1675 if { { ac_try="$ac_link"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 printf "%s\n" "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest$ac_exeext && {
1694 test "$cross_compiling" = yes ||
1695 test -x conftest$ac_exeext
1696 }
1697 then :
1698 ac_retval=0
1699 else case e in #(
1700 e) printf "%s\n" "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1 ;;
1704 esac
1705 fi
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_link
1715
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1719 # executables *can* be run.
1720 ac_fn_c_try_run ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 printf "%s\n" "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1731 ac_status=$?
1732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 printf "%s\n" "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1741 ac_status=$?
1742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }
1744 then :
1745 ac_retval=0
1746 else case e in #(
1747 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1748 printf "%s\n" "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=$ac_status ;;
1752 esac
1753 fi
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_run
1759
1760 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761 # -------------------------------------------------------
1762 # Tests whether HEADER exists and can be compiled using the include files in
1763 # INCLUDES, setting the cache variable VAR accordingly.
1764 ac_fn_c_check_header_compile ()
1765 {
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 printf %s "checking for $2... " >&6; }
1769 if eval test \${$3+y}
1770 then :
1771 printf %s "(cached) " >&6
1772 else case e in #(
1773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"
1779 then :
1780 eval "$3=yes"
1781 else case e in #(
1782 e) eval "$3=no" ;;
1783 esac
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1786 esac
1787 fi
1788 eval ac_res=\$$3
1789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 printf "%s\n" "$ac_res" >&6; }
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793 } # ac_fn_c_check_header_compile
1794
1795 # ac_fn_c_try_cpp LINENO
1796 # ----------------------
1797 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_cpp ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { { ac_try="$ac_cpp conftest.$ac_ext"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 printf "%s\n" "$ac_try_echo"; } >&5
1808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1814 fi
1815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } > conftest.i && {
1817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 }
1820 then :
1821 ac_retval=0
1822 else case e in #(
1823 e) printf "%s\n" "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1 ;;
1827 esac
1828 fi
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832 } # ac_fn_c_try_cpp
1833
1834 # ac_fn_c_check_func LINENO FUNC VAR
1835 # ----------------------------------
1836 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1837 ac_fn_c_check_func ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 printf %s "checking for $2... " >&6; }
1842 if eval test \${$3+y}
1843 then :
1844 printf %s "(cached) " >&6
1845 else case e in #(
1846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850 #define $2 innocuous_$2
1851
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (void); below. */
1854
1855 #include <limits.h>
1856 #undef $2
1857
1858 /* Override any GCC internal prototype to avoid an error.
1859 Use char because int might match the return type of a GCC
1860 builtin and then its argument prototype would still apply. */
1861 #ifdef __cplusplus
1862 extern "C"
1863 #endif
1864 char $2 (void);
1865 /* The GNU C library defines this for functions which it implements
1866 to always fail with ENOSYS. Some functions are actually named
1867 something starting with __ and the normal name is an alias. */
1868 #if defined __stub_$2 || defined __stub___$2
1869 choke me
1870 #endif
1871
1872 int
1873 main (void)
1874 {
1875 return $2 ();
1876 ;
1877 return 0;
1878 }
1879 _ACEOF
1880 if ac_fn_c_try_link "$LINENO"
1881 then :
1882 eval "$3=yes"
1883 else case e in #(
1884 e) eval "$3=no" ;;
1885 esac
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1888 conftest$ac_exeext conftest.$ac_ext ;;
1889 esac
1890 fi
1891 eval ac_res=\$$3
1892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 printf "%s\n" "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896 } # ac_fn_c_check_func
1897 ac_configure_args_raw=
1898 for ac_arg
1899 do
1900 case $ac_arg in
1901 *\'*)
1902 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 esac
1904 as_fn_append ac_configure_args_raw " '$ac_arg'"
1905 done
1906
1907 case $ac_configure_args_raw in
1908 *$as_nl*)
1909 ac_safe_unquote= ;;
1910 *)
1911 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1912 ac_unsafe_a="$ac_unsafe_z#~"
1913 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1914 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1915 esac
1916
1917 cat >config.log <<_ACEOF
1918 This file contains any messages produced by compilers while
1919 running configure, to aid debugging if configure makes a mistake.
1920
1921 It was created by libp11 $as_me 0.4.18, which was
1922 generated by GNU Autoconf 2.72. Invocation command line was
1923
1924 $ $0$ac_configure_args_raw
1925
1926 _ACEOF
1927 exec 5>>config.log
1928 {
1929 cat <<_ASUNAME
1930 ## --------- ##
1931 ## Platform. ##
1932 ## --------- ##
1933
1934 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1935 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1936 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1937 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1938 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1939
1940 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1941 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1942
1943 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1944 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1945 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1946 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1947 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1948 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1949 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1950
1951 _ASUNAME
1952
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956 IFS=$as_save_IFS
1957 case $as_dir in #(((
1958 '') as_dir=./ ;;
1959 */) ;;
1960 *) as_dir=$as_dir/ ;;
1961 esac
1962 printf "%s\n" "PATH: $as_dir"
1963 done
1964 IFS=$as_save_IFS
1965
1966 } >&5
1967
1968 cat >&5 <<_ACEOF
1969
1970
1971 ## ----------- ##
1972 ## Core tests. ##
1973 ## ----------- ##
1974
1975 _ACEOF
1976
1977
1978 # Keep a trace of the command line.
1979 # Strip out --no-create and --no-recursion so they do not pile up.
1980 # Strip out --silent because we don't want to record it for future runs.
1981 # Also quote any args containing shell meta-characters.
1982 # Make two passes to allow for proper duplicate-argument suppression.
1983 ac_configure_args=
1984 ac_configure_args0=
1985 ac_configure_args1=
1986 ac_must_keep_next=false
1987 for ac_pass in 1 2
1988 do
1989 for ac_arg
1990 do
1991 case $ac_arg in
1992 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1994 | -silent | --silent | --silen | --sile | --sil)
1995 continue ;;
1996 *\'*)
1997 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1998 esac
1999 case $ac_pass in
2000 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2001 2)
2002 as_fn_append ac_configure_args1 " '$ac_arg'"
2003 if test $ac_must_keep_next = true; then
2004 ac_must_keep_next=false # Got value, back to normal.
2005 else
2006 case $ac_arg in
2007 *=* | --config-cache | -C | -disable-* | --disable-* \
2008 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2009 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2010 | -with-* | --with-* | -without-* | --without-* | --x)
2011 case "$ac_configure_args0 " in
2012 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2013 esac
2014 ;;
2015 -* ) ac_must_keep_next=true ;;
2016 esac
2017 fi
2018 as_fn_append ac_configure_args " '$ac_arg'"
2019 ;;
2020 esac
2021 done
2022 done
2023 { ac_configure_args0=; unset ac_configure_args0;}
2024 { ac_configure_args1=; unset ac_configure_args1;}
2025
2026 # When interrupted or exit'd, cleanup temporary files, and complete
2027 # config.log. We remove comments because anyway the quotes in there
2028 # would cause problems or look ugly.
2029 # WARNING: Use '\'' to represent an apostrophe within the trap.
2030 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2031 trap 'exit_status=$?
2032 # Sanitize IFS.
2033 IFS=" "" $as_nl"
2034 # Save into config.log some information that might help in debugging.
2035 {
2036 echo
2037
2038 printf "%s\n" "## ---------------- ##
2039 ## Cache variables. ##
2040 ## ---------------- ##"
2041 echo
2042 # The following way of writing the cache mishandles newlines in values,
2043 (
2044 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2045 eval ac_val=\$$ac_var
2046 case $ac_val in #(
2047 *${as_nl}*)
2048 case $ac_var in #(
2049 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2050 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2051 esac
2052 case $ac_var in #(
2053 _ | IFS | as_nl) ;; #(
2054 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2055 *) { eval $ac_var=; unset $ac_var;} ;;
2056 esac ;;
2057 esac
2058 done
2059 (set) 2>&1 |
2060 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2061 *${as_nl}ac_space=\ *)
2062 sed -n \
2063 "s/'\''/'\''\\\\'\'''\''/g;
2064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2065 ;; #(
2066 *)
2067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2068 ;;
2069 esac |
2070 sort
2071 )
2072 echo
2073
2074 printf "%s\n" "## ----------------- ##
2075 ## Output variables. ##
2076 ## ----------------- ##"
2077 echo
2078 for ac_var in $ac_subst_vars
2079 do
2080 eval ac_val=\$$ac_var
2081 case $ac_val in
2082 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 esac
2084 printf "%s\n" "$ac_var='\''$ac_val'\''"
2085 done | sort
2086 echo
2087
2088 if test -n "$ac_subst_files"; then
2089 printf "%s\n" "## ------------------- ##
2090 ## File substitutions. ##
2091 ## ------------------- ##"
2092 echo
2093 for ac_var in $ac_subst_files
2094 do
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 printf "%s\n" "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2102 fi
2103
2104 if test -s confdefs.h; then
2105 printf "%s\n" "## ----------- ##
2106 ## confdefs.h. ##
2107 ## ----------- ##"
2108 echo
2109 cat confdefs.h
2110 echo
2111 fi
2112 test "$ac_signal" != 0 &&
2113 printf "%s\n" "$as_me: caught signal $ac_signal"
2114 printf "%s\n" "$as_me: exit $exit_status"
2115 } >&5
2116 rm -f core *.core core.conftest.* &&
2117 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2118 exit $exit_status
2119 ' 0
2120 for ac_signal in 1 2 13 15; do
2121 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2122 done
2123 ac_signal=0
2124
2125 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2126 rm -f -r conftest* confdefs.h
2127
2128 printf "%s\n" "/* confdefs.h */" > confdefs.h
2129
2130 # Predefined preprocessor variables.
2131
2132 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2133
2134 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2135
2136 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2137
2138 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2139
2140 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2141
2142 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2143
2144
2145 # Let the site file select an alternate cache file if it wants to.
2146 # Prefer an explicitly selected file to automatically selected ones.
2147 if test -n "$CONFIG_SITE"; then
2148 ac_site_files="$CONFIG_SITE"
2149 elif test "x$prefix" != xNONE; then
2150 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2151 else
2152 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2153 fi
2154
2155 for ac_site_file in $ac_site_files
2156 do
2157 case $ac_site_file in #(
2158 */*) :
2159 ;; #(
2160 *) :
2161 ac_site_file=./$ac_site_file ;;
2162 esac
2163 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2165 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2166 sed 's/^/| /' "$ac_site_file" >&5
2167 . "$ac_site_file" \
2168 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2169 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2170 as_fn_error $? "failed to load site script $ac_site_file
2171 See 'config.log' for more details" "$LINENO" 5; }
2172 fi
2173 done
2174
2175 if test -r "$cache_file"; then
2176 # Some versions of bash will fail to source /dev/null (special files
2177 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2178 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2180 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2181 case $cache_file in
2182 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2183 *) . "./$cache_file";;
2184 esac
2185 fi
2186 else
2187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2188 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2189 >$cache_file
2190 fi
2191
2192 # Test code for whether the C compiler supports C89 (global declarations)
2193 ac_c_conftest_c89_globals='
2194 /* Does the compiler advertise C89 conformance?
2195 Do not test the value of __STDC__, because some compilers set it to 0
2196 while being otherwise adequately conformant. */
2197 #if !defined __STDC__
2198 # error "Compiler does not advertise C89 conformance"
2199 #endif
2200
2201 #include <stddef.h>
2202 #include <stdarg.h>
2203 struct stat;
2204 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2205 struct buf { int x; };
2206 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2207 static char *e (char **p, int i)
2208 {
2209 return p[i];
2210 }
2211 static char *f (char * (*g) (char **, int), char **p, ...)
2212 {
2213 char *s;
2214 va_list v;
2215 va_start (v,p);
2216 s = g (p, va_arg (v,int));
2217 va_end (v);
2218 return s;
2219 }
2220
2221 /* C89 style stringification. */
2222 #define noexpand_stringify(a) #a
2223 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2224
2225 /* C89 style token pasting. Exercises some of the corner cases that
2226 e.g. old MSVC gets wrong, but not very hard. */
2227 #define noexpand_concat(a,b) a##b
2228 #define expand_concat(a,b) noexpand_concat(a,b)
2229 extern int vA;
2230 extern int vbee;
2231 #define aye A
2232 #define bee B
2233 int *pvA = &expand_concat(v,aye);
2234 int *pvbee = &noexpand_concat(v,bee);
2235
2236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2237 function prototypes and stuff, but not \xHH hex character constants.
2238 These do not provoke an error unfortunately, instead are silently treated
2239 as an "x". The following induces an error, until -std is added to get
2240 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2241 array size at least. It is necessary to write \x00 == 0 to get something
2242 that is true only with -std. */
2243 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2244
2245 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2246 inside strings and character constants. */
2247 #define FOO(x) '\''x'\''
2248 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2249
2250 int test (int i, double x);
2251 struct s1 {int (*f) (int a);};
2252 struct s2 {int (*f) (double a);};
2253 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2254 int, int);'
2255
2256 # Test code for whether the C compiler supports C89 (body of main).
2257 ac_c_conftest_c89_main='
2258 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2259 '
2260
2261 # Test code for whether the C compiler supports C99 (global declarations)
2262 ac_c_conftest_c99_globals='
2263 /* Does the compiler advertise C99 conformance? */
2264 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2265 # error "Compiler does not advertise C99 conformance"
2266 #endif
2267
2268 // See if C++-style comments work.
2269
2270 #include <stdbool.h>
2271 extern int puts (const char *);
2272 extern int printf (const char *, ...);
2273 extern int dprintf (int, const char *, ...);
2274 extern void *malloc (size_t);
2275 extern void free (void *);
2276
2277 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2278 // dprintf is used instead of fprintf to avoid needing to declare
2279 // FILE and stderr.
2280 #define debug(...) dprintf (2, __VA_ARGS__)
2281 #define showlist(...) puts (#__VA_ARGS__)
2282 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2283 static void
2284 test_varargs_macros (void)
2285 {
2286 int x = 1234;
2287 int y = 5678;
2288 debug ("Flag");
2289 debug ("X = %d\n", x);
2290 showlist (The first, second, and third items.);
2291 report (x>y, "x is %d but y is %d", x, y);
2292 }
2293
2294 // Check long long types.
2295 #define BIG64 18446744073709551615ull
2296 #define BIG32 4294967295ul
2297 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2298 #if !BIG_OK
2299 #error "your preprocessor is broken"
2300 #endif
2301 #if BIG_OK
2302 #else
2303 #error "your preprocessor is broken"
2304 #endif
2305 static long long int bignum = -9223372036854775807LL;
2306 static unsigned long long int ubignum = BIG64;
2307
2308 struct incomplete_array
2309 {
2310 int datasize;
2311 double data[];
2312 };
2313
2314 struct named_init {
2315 int number;
2316 const wchar_t *name;
2317 double average;
2318 };
2319
2320 typedef const char *ccp;
2321
2322 static inline int
2323 test_restrict (ccp restrict text)
2324 {
2325 // Iterate through items via the restricted pointer.
2326 // Also check for declarations in for loops.
2327 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2328 continue;
2329 return 0;
2330 }
2331
2332 // Check varargs and va_copy.
2333 static bool
2334 test_varargs (const char *format, ...)
2335 {
2336 va_list args;
2337 va_start (args, format);
2338 va_list args_copy;
2339 va_copy (args_copy, args);
2340
2341 const char *str = "";
2342 int number = 0;
2343 float fnumber = 0;
2344
2345 while (*format)
2346 {
2347 switch (*format++)
2348 {
2349 case '\''s'\'': // string
2350 str = va_arg (args_copy, const char *);
2351 break;
2352 case '\''d'\'': // int
2353 number = va_arg (args_copy, int);
2354 break;
2355 case '\''f'\'': // float
2356 fnumber = va_arg (args_copy, double);
2357 break;
2358 default:
2359 break;
2360 }
2361 }
2362 va_end (args_copy);
2363 va_end (args);
2364
2365 return *str && number && fnumber;
2366 }
2367 '
2368
2369 # Test code for whether the C compiler supports C99 (body of main).
2370 ac_c_conftest_c99_main='
2371 // Check bool.
2372 _Bool success = false;
2373 success |= (argc != 0);
2374
2375 // Check restrict.
2376 if (test_restrict ("String literal") == 0)
2377 success = true;
2378 char *restrict newvar = "Another string";
2379
2380 // Check varargs.
2381 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2382 test_varargs_macros ();
2383
2384 // Check flexible array members.
2385 struct incomplete_array *ia =
2386 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2387 ia->datasize = 10;
2388 for (int i = 0; i < ia->datasize; ++i)
2389 ia->data[i] = i * 1.234;
2390 // Work around memory leak warnings.
2391 free (ia);
2392
2393 // Check named initializers.
2394 struct named_init ni = {
2395 .number = 34,
2396 .name = L"Test wide string",
2397 .average = 543.34343,
2398 };
2399
2400 ni.number = 58;
2401
2402 int dynamic_array[ni.number];
2403 dynamic_array[0] = argv[0][0];
2404 dynamic_array[ni.number - 1] = 543;
2405
2406 // work around unused variable warnings
2407 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2408 || dynamic_array[ni.number - 1] != 543);
2409 '
2410
2411 # Test code for whether the C compiler supports C11 (global declarations)
2412 ac_c_conftest_c11_globals='
2413 /* Does the compiler advertise C11 conformance? */
2414 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2415 # error "Compiler does not advertise C11 conformance"
2416 #endif
2417
2418 // Check _Alignas.
2419 char _Alignas (double) aligned_as_double;
2420 char _Alignas (0) no_special_alignment;
2421 extern char aligned_as_int;
2422 char _Alignas (0) _Alignas (int) aligned_as_int;
2423
2424 // Check _Alignof.
2425 enum
2426 {
2427 int_alignment = _Alignof (int),
2428 int_array_alignment = _Alignof (int[100]),
2429 char_alignment = _Alignof (char)
2430 };
2431 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2432
2433 // Check _Noreturn.
2434 int _Noreturn does_not_return (void) { for (;;) continue; }
2435
2436 // Check _Static_assert.
2437 struct test_static_assert
2438 {
2439 int x;
2440 _Static_assert (sizeof (int) <= sizeof (long int),
2441 "_Static_assert does not work in struct");
2442 long int y;
2443 };
2444
2445 // Check UTF-8 literals.
2446 #define u8 syntax error!
2447 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2448
2449 // Check duplicate typedefs.
2450 typedef long *long_ptr;
2451 typedef long int *long_ptr;
2452 typedef long_ptr long_ptr;
2453
2454 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2455 struct anonymous
2456 {
2457 union {
2458 struct { int i; int j; };
2459 struct { int k; long int l; } w;
2460 };
2461 int m;
2462 } v1;
2463 '
2464
2465 # Test code for whether the C compiler supports C11 (body of main).
2466 ac_c_conftest_c11_main='
2467 _Static_assert ((offsetof (struct anonymous, i)
2468 == offsetof (struct anonymous, w.k)),
2469 "Anonymous union alignment botch");
2470 v1.i = 2;
2471 v1.w.k = 5;
2472 ok |= v1.i != 5;
2473 '
2474
2475 # Test code for whether the C compiler supports C11 (complete).
2476 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2477 ${ac_c_conftest_c99_globals}
2478 ${ac_c_conftest_c11_globals}
2479
2480 int
2481 main (int argc, char **argv)
2482 {
2483 int ok = 0;
2484 ${ac_c_conftest_c89_main}
2485 ${ac_c_conftest_c99_main}
2486 ${ac_c_conftest_c11_main}
2487 return ok;
2488 }
2489 "
2490
2491 # Test code for whether the C compiler supports C99 (complete).
2492 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2493 ${ac_c_conftest_c99_globals}
2494
2495 int
2496 main (int argc, char **argv)
2497 {
2498 int ok = 0;
2499 ${ac_c_conftest_c89_main}
2500 ${ac_c_conftest_c99_main}
2501 return ok;
2502 }
2503 "
2504
2505 # Test code for whether the C compiler supports C89 (complete).
2506 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2507
2508 int
2509 main (int argc, char **argv)
2510 {
2511 int ok = 0;
2512 ${ac_c_conftest_c89_main}
2513 return ok;
2514 }
2515 "
2516
2517 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2518 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2519 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2520 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2521 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2522 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2523 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2524 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2525 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2526
2527 # Auxiliary files required by this configure script.
2528 ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub"
2529
2530 # Locations in which to look for auxiliary files.
2531 ac_aux_dir_candidates="${srcdir}/."
2532
2533 # Search for a directory containing all of the required auxiliary files,
2534 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2535 # If we don't find one directory that contains all the files we need,
2536 # we report the set of missing files from the *first* directory in
2537 # $ac_aux_dir_candidates and give up.
2538 ac_missing_aux_files=""
2539 ac_first_candidate=:
2540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 as_found=false
2543 for as_dir in $ac_aux_dir_candidates
2544 do
2545 IFS=$as_save_IFS
2546 case $as_dir in #(((
2547 '') as_dir=./ ;;
2548 */) ;;
2549 *) as_dir=$as_dir/ ;;
2550 esac
2551 as_found=:
2552
2553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2554 ac_aux_dir_found=yes
2555 ac_install_sh=
2556 for ac_aux in $ac_aux_files
2557 do
2558 # As a special case, if "install-sh" is required, that requirement
2559 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2560 # and $ac_install_sh is set appropriately for whichever one is found.
2561 if test x"$ac_aux" = x"install-sh"
2562 then
2563 if test -f "${as_dir}install-sh"; then
2564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2565 ac_install_sh="${as_dir}install-sh -c"
2566 elif test -f "${as_dir}install.sh"; then
2567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2568 ac_install_sh="${as_dir}install.sh -c"
2569 elif test -f "${as_dir}shtool"; then
2570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2571 ac_install_sh="${as_dir}shtool install -c"
2572 else
2573 ac_aux_dir_found=no
2574 if $ac_first_candidate; then
2575 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2576 else
2577 break
2578 fi
2579 fi
2580 else
2581 if test -f "${as_dir}${ac_aux}"; then
2582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2583 else
2584 ac_aux_dir_found=no
2585 if $ac_first_candidate; then
2586 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2587 else
2588 break
2589 fi
2590 fi
2591 fi
2592 done
2593 if test "$ac_aux_dir_found" = yes; then
2594 ac_aux_dir="$as_dir"
2595 break
2596 fi
2597 ac_first_candidate=false
2598
2599 as_found=false
2600 done
2601 IFS=$as_save_IFS
2602 if $as_found
2603 then :
2604
2605 else case e in #(
2606 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2607 esac
2608 fi
2609
2610
2611 # These three variables are undocumented and unsupported,
2612 # and are intended to be withdrawn in a future Autoconf release.
2613 # They can cause serious problems if a builder's source tree is in a directory
2614 # whose full name contains unusual characters.
2615 if test -f "${ac_aux_dir}config.guess"; then
2616 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2617 fi
2618 if test -f "${ac_aux_dir}config.sub"; then
2619 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2620 fi
2621 if test -f "$ac_aux_dir/configure"; then
2622 ac_configure="$SHELL ${ac_aux_dir}configure"
2623 fi
2624
2625 # Check that the precious variables saved in the cache have kept the same
2626 # value.
2627 ac_cache_corrupted=false
2628 for ac_var in $ac_precious_vars; do
2629 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2630 eval ac_new_set=\$ac_env_${ac_var}_set
2631 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2632 eval ac_new_val=\$ac_env_${ac_var}_value
2633 case $ac_old_set,$ac_new_set in
2634 set,)
2635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2636 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2637 ac_cache_corrupted=: ;;
2638 ,set)
2639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2640 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2641 ac_cache_corrupted=: ;;
2642 ,);;
2643 *)
2644 if test "x$ac_old_val" != "x$ac_new_val"; then
2645 # differences in whitespace do not lead to failure.
2646 ac_old_val_w=`echo x $ac_old_val`
2647 ac_new_val_w=`echo x $ac_new_val`
2648 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2650 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2651 ac_cache_corrupted=:
2652 else
2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2654 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2655 eval $ac_var=\$ac_old_val
2656 fi
2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2658 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2660 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2661 fi;;
2662 esac
2663 # Pass precious variables to config.status.
2664 if test "$ac_new_set" = set; then
2665 case $ac_new_val in
2666 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2667 *) ac_arg=$ac_var=$ac_new_val ;;
2668 esac
2669 case " $ac_configure_args " in
2670 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2671 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2672 esac
2673 fi
2674 done
2675 if $ac_cache_corrupted; then
2676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2677 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2679 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2680 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2681 and start over" "$LINENO" 5
2682 fi
2683 ## -------------------- ##
2684 ## Main body of script. ##
2685 ## -------------------- ##
2686
2687 ac_ext=c
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
2693
2694
2695 ac_config_headers="$ac_config_headers src/config.h"
2696
2697
2698
2699
2700
2701 # Make sure we can run config.sub.
2702 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2703 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2704
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2706 printf %s "checking build system type... " >&6; }
2707 if test ${ac_cv_build+y}
2708 then :
2709 printf %s "(cached) " >&6
2710 else case e in #(
2711 e) ac_build_alias=$build_alias
2712 test "x$ac_build_alias" = x &&
2713 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2714 test "x$ac_build_alias" = x &&
2715 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2716 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2717 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2718 ;;
2719 esac
2720 fi
2721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2722 printf "%s\n" "$ac_cv_build" >&6; }
2723 case $ac_cv_build in
2724 *-*-*) ;;
2725 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2726 esac
2727 build=$ac_cv_build
2728 ac_save_IFS=$IFS; IFS='-'
2729 set x $ac_cv_build
2730 shift
2731 build_cpu=$1
2732 build_vendor=$2
2733 shift; shift
2734 # Remember, the first character of IFS is used to create $*,
2735 # except with old shells:
2736 build_os=$*
2737 IFS=$ac_save_IFS
2738 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2739
2740
2741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2742 printf %s "checking host system type... " >&6; }
2743 if test ${ac_cv_host+y}
2744 then :
2745 printf %s "(cached) " >&6
2746 else case e in #(
2747 e) if test "x$host_alias" = x; then
2748 ac_cv_host=$ac_cv_build
2749 else
2750 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2751 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2752 fi
2753 ;;
2754 esac
2755 fi
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2757 printf "%s\n" "$ac_cv_host" >&6; }
2758 case $ac_cv_host in
2759 *-*-*) ;;
2760 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2761 esac
2762 host=$ac_cv_host
2763 ac_save_IFS=$IFS; IFS='-'
2764 set x $ac_cv_host
2765 shift
2766 host_cpu=$1
2767 host_vendor=$2
2768 shift; shift
2769 # Remember, the first character of IFS is used to create $*,
2770 # except with old shells:
2771 host_os=$*
2772 IFS=$ac_save_IFS
2773 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2774
2775
2776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2777 printf %s "checking target system type... " >&6; }
2778 if test ${ac_cv_target+y}
2779 then :
2780 printf %s "(cached) " >&6
2781 else case e in #(
2782 e) if test "x$target_alias" = x; then
2783 ac_cv_target=$ac_cv_host
2784 else
2785 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2786 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2787 fi
2788 ;;
2789 esac
2790 fi
2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2792 printf "%s\n" "$ac_cv_target" >&6; }
2793 case $ac_cv_target in
2794 *-*-*) ;;
2795 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2796 esac
2797 target=$ac_cv_target
2798 ac_save_IFS=$IFS; IFS='-'
2799 set x $ac_cv_target
2800 shift
2801 target_cpu=$1
2802 target_vendor=$2
2803 shift; shift
2804 # Remember, the first character of IFS is used to create $*,
2805 # except with old shells:
2806 target_os=$*
2807 IFS=$ac_save_IFS
2808 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2809
2810
2811 # The aliases save the names the user supplied, while $host etc.
2812 # will get canonicalized.
2813 test -n "$target_alias" &&
2814 test "$program_prefix$program_suffix$program_transform_name" = \
2815 NONENONEs,x,x, &&
2816 program_prefix=${target_alias}-
2817 am__api_version='1.18'
2818
2819
2820 # Find a good install program. We prefer a C program (faster),
2821 # so one script is as good as another. But avoid the broken or
2822 # incompatible versions:
2823 # SysV /etc/install, /usr/sbin/install
2824 # SunOS /usr/etc/install
2825 # IRIX /sbin/install
2826 # AIX /bin/install
2827 # AmigaOS /C/install, which installs bootblocks on floppy discs
2828 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2829 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2830 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2831 # OS/2's system install, which has a completely different semantic
2832 # ./install, which can be erroneously created by make from ./install.sh.
2833 # Reject install programs that cannot install multiple files.
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2835 printf %s "checking for a BSD-compatible install... " >&6; }
2836 if test -z "$INSTALL"; then
2837 if test ${ac_cv_path_install+y}
2838 then :
2839 printf %s "(cached) " >&6
2840 else case e in #(
2841 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 case $as_dir in #(((
2846 '') as_dir=./ ;;
2847 */) ;;
2848 *) as_dir=$as_dir/ ;;
2849 esac
2850 # Account for fact that we put trailing slashes in our PATH walk.
2851 case $as_dir in #((
2852 ./ | /[cC]/* | \
2853 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2854 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2855 /usr/ucb/* ) ;;
2856 *)
2857 # OSF1 and SCO ODT 3.0 have their own names for install.
2858 # Don't use installbsd from OSF since it installs stuff as root
2859 # by default.
2860 for ac_prog in ginstall scoinst install; do
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2863 if test $ac_prog = install &&
2864 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2865 # AIX install. It has an incompatible calling convention.
2866 :
2867 elif test $ac_prog = install &&
2868 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2869 # program-specific install script used by HP pwplus--don't use.
2870 :
2871 else
2872 rm -rf conftest.one conftest.two conftest.dir
2873 echo one > conftest.one
2874 echo two > conftest.two
2875 mkdir conftest.dir
2876 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2877 test -s conftest.one && test -s conftest.two &&
2878 test -s conftest.dir/conftest.one &&
2879 test -s conftest.dir/conftest.two
2880 then
2881 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2882 break 3
2883 fi
2884 fi
2885 fi
2886 done
2887 done
2888 ;;
2889 esac
2890
2891 done
2892 IFS=$as_save_IFS
2893
2894 rm -rf conftest.one conftest.two conftest.dir
2895 ;;
2896 esac
2897 fi
2898 if test ${ac_cv_path_install+y}; then
2899 INSTALL=$ac_cv_path_install
2900 else
2901 # As a last resort, use the slow shell script. Don't cache a
2902 # value for INSTALL within a source directory, because that will
2903 # break other packages using the cache if that directory is
2904 # removed, or if the value is a relative name.
2905 INSTALL=$ac_install_sh
2906 fi
2907 fi
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2909 printf "%s\n" "$INSTALL" >&6; }
2910
2911 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2912 # It thinks the first close brace ends the variable substitution.
2913 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2914
2915 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2916
2917 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2918
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2920 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2921 if test ${am_cv_sleep_fractional_seconds+y}
2922 then :
2923 printf %s "(cached) " >&6
2924 else case e in #(
2925 e) if sleep 0.001 2>/dev/null
2926 then :
2927 am_cv_sleep_fractional_seconds=yes
2928 else case e in #(
2929 e) am_cv_sleep_fractional_seconds=no ;;
2930 esac
2931 fi
2932 ;;
2933 esac
2934 fi
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2936 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2937
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2939 printf %s "checking filesystem timestamp resolution... " >&6; }
2940 if test ${am_cv_filesystem_timestamp_resolution+y}
2941 then :
2942 printf %s "(cached) " >&6
2943 else case e in #(
2944 e) # Default to the worst case.
2945 am_cv_filesystem_timestamp_resolution=2
2946
2947 # Only try to go finer than 1 sec if sleep can do it.
2948 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2949 # - 1 sec is not much of a win compared to 2 sec, and
2950 # - it takes 2 seconds to perform the test whether 1 sec works.
2951 #
2952 # Instead, just use the default 2s on platforms that have 1s resolution,
2953 # accept the extra 1s delay when using $sleep in the Automake tests, in
2954 # exchange for not incurring the 2s delay for running the test for all
2955 # packages.
2956 #
2957 am_try_resolutions=
2958 if test "$am_cv_sleep_fractional_seconds" = yes; then
2959 # Even a millisecond often causes a bunch of false positives,
2960 # so just try a hundredth of a second. The time saved between .001 and
2961 # .01 is not terribly consequential.
2962 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2963 fi
2964
2965 # In order to catch current-generation FAT out, we must *modify* files
2966 # that already exist; the *creation* timestamp is finer. Use names
2967 # that make ls -t sort them differently when they have equal
2968 # timestamps than when they have distinct timestamps, keeping
2969 # in mind that ls -t prints the *newest* file first.
2970 rm -f conftest.ts?
2971 : > conftest.ts1
2972 : > conftest.ts2
2973 : > conftest.ts3
2974
2975 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2976 # clobber the current shell's arguments. (Outer-level square brackets
2977 # are removed by m4; they're present so that m4 does not expand
2978 # <dollar><star>; be careful, easy to get confused.)
2979 if (
2980 set X `ls -t conftest.ts[12]` &&
2981 {
2982 test "$*" != "X conftest.ts1 conftest.ts2" ||
2983 test "$*" != "X conftest.ts2 conftest.ts1";
2984 }
2985 ); then :; else
2986 # If neither matched, then we have a broken ls. This can happen
2987 # if, for instance, CONFIG_SHELL is bash and it inherits a
2988 # broken ls alias from the environment. This has actually
2989 # happened. Such a system could not be considered "sane".
2990 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2991 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2992 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2993 as_fn_error $? "ls -t produces unexpected output.
2994 Make sure there is not a broken ls alias in your environment.
2995 See 'config.log' for more details" "$LINENO" 5; }
2996 fi
2997
2998 for am_try_res in $am_try_resolutions; do
2999 # Any one fine-grained sleep might happen to cross the boundary
3000 # between two values of a coarser actual resolution, but if we do
3001 # two fine-grained sleeps in a row, at least one of them will fall
3002 # entirely within a coarse interval.
3003 echo alpha > conftest.ts1
3004 sleep $am_try_res
3005 echo beta > conftest.ts2
3006 sleep $am_try_res
3007 echo gamma > conftest.ts3
3008
3009 # We assume that 'ls -t' will make use of high-resolution
3010 # timestamps if the operating system supports them at all.
3011 if (set X `ls -t conftest.ts?` &&
3012 test "$2" = conftest.ts3 &&
3013 test "$3" = conftest.ts2 &&
3014 test "$4" = conftest.ts1); then
3015 #
3016 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3017 # because we don't need to test make.
3018 make_ok=true
3019 if test $am_try_res != 1; then
3020 # But if we've succeeded so far with a subsecond resolution, we
3021 # have one more thing to check: make. It can happen that
3022 # everything else supports the subsecond mtimes, but make doesn't;
3023 # notably on macOS, which ships make 3.81 from 2006 (the last one
3024 # released under GPLv2). https://bugs.gnu.org/68808
3025 #
3026 # We test $MAKE if it is defined in the environment, else "make".
3027 # It might get overridden later, but our hope is that in practice
3028 # it does not matter: it is the system "make" which is (by far)
3029 # the most likely to be broken, whereas if the user overrides it,
3030 # probably they did so with a better, or at least not worse, make.
3031 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3032 #
3033 # Create a Makefile (real tab character here):
3034 rm -f conftest.mk
3035 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3036 echo ' touch conftest.ts2' >>conftest.mk
3037 #
3038 # Now, running
3039 # touch conftest.ts1; touch conftest.ts2; make
3040 # should touch ts1 because ts2 is newer. This could happen by luck,
3041 # but most often, it will fail if make's support is insufficient. So
3042 # test for several consecutive successes.
3043 #
3044 # (We reuse conftest.ts[12] because we still want to modify existing
3045 # files, not create new ones, per above.)
3046 n=0
3047 make=${MAKE-make}
3048 until test $n -eq 3; do
3049 echo one > conftest.ts1
3050 sleep $am_try_res
3051 echo two > conftest.ts2 # ts2 should now be newer than ts1
3052 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3053 make_ok=false
3054 break # out of $n loop
3055 fi
3056 n=`expr $n + 1`
3057 done
3058 fi
3059 #
3060 if $make_ok; then
3061 # Everything we know to check worked out, so call this resolution good.
3062 am_cv_filesystem_timestamp_resolution=$am_try_res
3063 break # out of $am_try_res loop
3064 fi
3065 # Otherwise, we'll go on to check the next resolution.
3066 fi
3067 done
3068 rm -f conftest.ts?
3069 # (end _am_filesystem_timestamp_resolution)
3070 ;;
3071 esac
3072 fi
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3074 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3075
3076 # This check should not be cached, as it may vary across builds of
3077 # different projects.
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3079 printf %s "checking whether build environment is sane... " >&6; }
3080 # Reject unsafe characters in $srcdir or the absolute working directory
3081 # name. Accept space and tab only in the latter.
3082 am_lf='
3083 '
3084 case `pwd` in
3085 *[\\\"\#\$\&\'\`$am_lf]*)
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 printf "%s\n" "no" >&6; }
3088 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3089 esac
3090 case $srcdir in
3091 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 printf "%s\n" "no" >&6; }
3094 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3095 esac
3096
3097 # Do 'set' in a subshell so we don't clobber the current shell's
3098 # arguments. Must try -L first in case configure is actually a
3099 # symlink; some systems play weird games with the mod time of symlinks
3100 # (eg FreeBSD returns the mod time of the symlink's containing
3101 # directory).
3102 am_build_env_is_sane=no
3103 am_has_slept=no
3104 rm -f conftest.file
3105 for am_try in 1 2; do
3106 echo "timestamp, slept: $am_has_slept" > conftest.file
3107 if (
3108 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3109 if test "$*" = "X"; then
3110 # -L didn't work.
3111 set X `ls -t "$srcdir/configure" conftest.file`
3112 fi
3113 test "$2" = conftest.file
3114 ); then
3115 am_build_env_is_sane=yes
3116 break
3117 fi
3118 # Just in case.
3119 sleep "$am_cv_filesystem_timestamp_resolution"
3120 am_has_slept=yes
3121 done
3122
3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3124 printf "%s\n" "$am_build_env_is_sane" >&6; }
3125 if test "$am_build_env_is_sane" = no; then
3126 as_fn_error $? "newly created file is older than distributed files!
3127 Check your system clock" "$LINENO" 5
3128 fi
3129
3130 # If we didn't sleep, we still need to ensure time stamps of config.status and
3131 # generated files are strictly newer.
3132 am_sleep_pid=
3133 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3134 then :
3135
3136 else case e in #(
3137 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3138 am_sleep_pid=$!
3139 ;;
3140 esac
3141 fi
3142
3143 rm -f conftest.file
3144
3145 test "$program_prefix" != NONE &&
3146 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3147 # Use a double $ so make ignores it.
3148 test "$program_suffix" != NONE &&
3149 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3150 # Double any \ or $.
3151 # By default was 's,x,x', remove it if useless.
3152 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3153 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3154
3155
3156 # Expand $ac_aux_dir to an absolute path.
3157 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3158
3159
3160 if test x"${MISSING+set}" != xset; then
3161 MISSING="\${SHELL} '$am_aux_dir/missing'"
3162 fi
3163 # Use eval to expand $SHELL
3164 if eval "$MISSING --is-lightweight"; then
3165 am_missing_run="$MISSING "
3166 else
3167 am_missing_run=
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3169 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3170 fi
3171
3172 if test x"${install_sh+set}" != xset; then
3173 case $am_aux_dir in
3174 *\ * | *\ *)
3175 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3176 *)
3177 install_sh="\${SHELL} $am_aux_dir/install-sh"
3178 esac
3179 fi
3180
3181 # Installed binaries are usually stripped using 'strip' when the user
3182 # run "make install-strip". However 'strip' might not be the right
3183 # tool to use in cross-compilation environments, therefore Automake
3184 # will honor the 'STRIP' environment variable to overrule this program.
3185 if test "$cross_compiling" != no; then
3186 if test -n "$ac_tool_prefix"; then
3187 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}strip; ac_word=$2
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 printf %s "checking for $ac_word... " >&6; }
3191 if test ${ac_cv_prog_STRIP+y}
3192 then :
3193 printf %s "(cached) " >&6
3194 else case e in #(
3195 e) if test -n "$STRIP"; then
3196 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201 IFS=$as_save_IFS
3202 case $as_dir in #(((
3203 '') as_dir=./ ;;
3204 */) ;;
3205 *) as_dir=$as_dir/ ;;
3206 esac
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213 done
3214 done
3215 IFS=$as_save_IFS
3216
3217 fi ;;
3218 esac
3219 fi
3220 STRIP=$ac_cv_prog_STRIP
3221 if test -n "$STRIP"; then
3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3223 printf "%s\n" "$STRIP" >&6; }
3224 else
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 printf "%s\n" "no" >&6; }
3227 fi
3228
3229
3230 fi
3231 if test -z "$ac_cv_prog_STRIP"; then
3232 ac_ct_STRIP=$STRIP
3233 # Extract the first word of "strip", so it can be a program name with args.
3234 set dummy strip; ac_word=$2
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 printf %s "checking for $ac_word... " >&6; }
3237 if test ${ac_cv_prog_ac_ct_STRIP+y}
3238 then :
3239 printf %s "(cached) " >&6
3240 else case e in #(
3241 e) if test -n "$ac_ct_STRIP"; then
3242 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247 IFS=$as_save_IFS
3248 case $as_dir in #(((
3249 '') as_dir=./ ;;
3250 */) ;;
3251 *) as_dir=$as_dir/ ;;
3252 esac
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_ac_ct_STRIP="strip"
3256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3257 break 2
3258 fi
3259 done
3260 done
3261 IFS=$as_save_IFS
3262
3263 fi ;;
3264 esac
3265 fi
3266 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3267 if test -n "$ac_ct_STRIP"; then
3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3269 printf "%s\n" "$ac_ct_STRIP" >&6; }
3270 else
3271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 printf "%s\n" "no" >&6; }
3273 fi
3274
3275 if test "x$ac_ct_STRIP" = x; then
3276 STRIP=":"
3277 else
3278 case $cross_compiling:$ac_tool_warned in
3279 yes:)
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3281 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3282 ac_tool_warned=yes ;;
3283 esac
3284 STRIP=$ac_ct_STRIP
3285 fi
3286 else
3287 STRIP="$ac_cv_prog_STRIP"
3288 fi
3289
3290 fi
3291 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3292
3293
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3295 printf %s "checking for a race-free mkdir -p... " >&6; }
3296 if test -z "$MKDIR_P"; then
3297 if test ${ac_cv_path_mkdir+y}
3298 then :
3299 printf %s "(cached) " >&6
3300 else case e in #(
3301 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3303 do
3304 IFS=$as_save_IFS
3305 case $as_dir in #(((
3306 '') as_dir=./ ;;
3307 */) ;;
3308 *) as_dir=$as_dir/ ;;
3309 esac
3310 for ac_prog in mkdir gmkdir; do
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3313 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3314 'mkdir ('*'coreutils) '* | \
3315 *'BusyBox '* | \
3316 'mkdir (fileutils) '4.1*)
3317 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3318 break 3;;
3319 esac
3320 done
3321 done
3322 done
3323 IFS=$as_save_IFS
3324 ;;
3325 esac
3326 fi
3327
3328 test -d ./--version && rmdir ./--version
3329 if test ${ac_cv_path_mkdir+y}; then
3330 MKDIR_P="$ac_cv_path_mkdir -p"
3331 else
3332 # As a last resort, use plain mkdir -p,
3333 # in the hope it doesn't have the bugs of ancient mkdir.
3334 MKDIR_P='mkdir -p'
3335 fi
3336 fi
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3338 printf "%s\n" "$MKDIR_P" >&6; }
3339
3340 for ac_prog in gawk mawk nawk awk
3341 do
3342 # Extract the first word of "$ac_prog", so it can be a program name with args.
3343 set dummy $ac_prog; ac_word=$2
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 printf %s "checking for $ac_word... " >&6; }
3346 if test ${ac_cv_prog_AWK+y}
3347 then :
3348 printf %s "(cached) " >&6
3349 else case e in #(
3350 e) if test -n "$AWK"; then
3351 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356 IFS=$as_save_IFS
3357 case $as_dir in #(((
3358 '') as_dir=./ ;;
3359 */) ;;
3360 *) as_dir=$as_dir/ ;;
3361 esac
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_AWK="$ac_prog"
3365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3366 break 2
3367 fi
3368 done
3369 done
3370 IFS=$as_save_IFS
3371
3372 fi ;;
3373 esac
3374 fi
3375 AWK=$ac_cv_prog_AWK
3376 if test -n "$AWK"; then
3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3378 printf "%s\n" "$AWK" >&6; }
3379 else
3380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 printf "%s\n" "no" >&6; }
3382 fi
3383
3384
3385 test -n "$AWK" && break
3386 done
3387
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3389 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3390 set x ${MAKE-make}
3391 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3392 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3393 then :
3394 printf %s "(cached) " >&6
3395 else case e in #(
3396 e) cat >conftest.make <<\_ACEOF
3397 SHELL = /bin/sh
3398 all:
3399 @echo '@@@%%%=$(MAKE)=@@@%%%'
3400 _ACEOF
3401 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3402 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3403 *@@@%%%=?*=@@@%%%*)
3404 eval ac_cv_prog_make_${ac_make}_set=yes;;
3405 *)
3406 eval ac_cv_prog_make_${ac_make}_set=no;;
3407 esac
3408 rm -f conftest.make ;;
3409 esac
3410 fi
3411 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413 printf "%s\n" "yes" >&6; }
3414 SET_MAKE=
3415 else
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 printf "%s\n" "no" >&6; }
3418 SET_MAKE="MAKE=${MAKE-make}"
3419 fi
3420
3421 rm -rf .tst 2>/dev/null
3422 mkdir .tst 2>/dev/null
3423 if test -d .tst; then
3424 am__leading_dot=.
3425 else
3426 am__leading_dot=_
3427 fi
3428 rmdir .tst 2>/dev/null
3429
3430 AM_DEFAULT_VERBOSITY=1
3431 # Check whether --enable-silent-rules was given.
3432 if test ${enable_silent_rules+y}
3433 then :
3434 enableval=$enable_silent_rules;
3435 fi
3436
3437 am_make=${MAKE-make}
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3439 printf %s "checking whether $am_make supports nested variables... " >&6; }
3440 if test ${am_cv_make_support_nested_variables+y}
3441 then :
3442 printf %s "(cached) " >&6
3443 else case e in #(
3444 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3445 BAR0=false
3446 BAR1=true
3447 V=1
3448 am__doit:
3449 @$(TRUE)
3450 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3451 am_cv_make_support_nested_variables=yes
3452 else
3453 am_cv_make_support_nested_variables=no
3454 fi ;;
3455 esac
3456 fi
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3458 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3459 AM_BACKSLASH='\'
3460
3461 am__rm_f_notfound=
3462 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3463 then :
3464
3465 else case e in #(
3466 e) am__rm_f_notfound='""' ;;
3467 esac
3468 fi
3469
3470
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3472 printf %s "checking xargs -n works... " >&6; }
3473 if test ${am_cv_xargs_n_works+y}
3474 then :
3475 printf %s "(cached) " >&6
3476 else case e in #(
3477 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3478 3"
3479 then :
3480 am_cv_xargs_n_works=yes
3481 else case e in #(
3482 e) am_cv_xargs_n_works=no ;;
3483 esac
3484 fi ;;
3485 esac
3486 fi
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3488 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3489 if test "$am_cv_xargs_n_works" = yes
3490 then :
3491 am__xargs_n='xargs -n'
3492 else case e in #(
3493 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3494 ;;
3495 esac
3496 fi
3497
3498 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3499 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3500 # is not polluted with repeated "-I."
3501 am__isrc=' -I$(srcdir)'
3502 # test to see if srcdir already configured
3503 if test -f $srcdir/config.status; then
3504 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3505 fi
3506 fi
3507
3508 # test whether we have cygpath
3509 if test -z "$CYGPATH_W"; then
3510 if (cygpath --version) >/dev/null 2>/dev/null; then
3511 CYGPATH_W='cygpath -w'
3512 else
3513 CYGPATH_W=echo
3514 fi
3515 fi
3516
3517
3518 # Define the identity of the package.
3519 PACKAGE='libp11'
3520 VERSION='0.4.18'
3521
3522
3523 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3524
3525
3526 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3527
3528 # Some tools Automake needs.
3529
3530 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3531
3532
3533 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3534
3535
3536 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3537
3538
3539 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3540
3541
3542 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3543
3544 # For better backward compatibility. To be removed once Automake 1.9.x
3545 # dies out for good. For more background, see:
3546 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3547 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3548 mkdir_p='$(MKDIR_P)'
3549
3550 # We need awk for the "check" target (and possibly the TAP driver). The
3551 # system "awk" is bad on some platforms.
3552 # Always define AMTAR for backward compatibility. Yes, it's still used
3553 # in the wild :-( We should find a proper way to deprecate it ...
3554 AMTAR='$${TAR-tar}'
3555
3556
3557 # We'll loop over all known methods to create a tar archive until one works.
3558 _am_tools='gnutar plaintar pax cpio none'
3559
3560 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3561 # There is notably a 21 bits limit for the UID and the GID. In fact,
3562 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3563 # and bug#13588).
3564 am_max_uid=2097151 # 2^21 - 1
3565 am_max_gid=$am_max_uid
3566 # The $UID and $GID variables are not portable, so we need to resort
3567 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3568 # below are definitely unexpected, so allow the users to see them
3569 # (that is, avoid stderr redirection).
3570 am_uid=`id -u || echo unknown`
3571 am_gid=`id -g || echo unknown`
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3573 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3574 if test x$am_uid = xunknown; then
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3576 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3577 elif test $am_uid -le $am_max_uid; then
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3579 printf "%s\n" "yes" >&6; }
3580 else
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 printf "%s\n" "no" >&6; }
3583 _am_tools=none
3584 fi
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3586 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3587 if test x$gm_gid = xunknown; then
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3589 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3590 elif test $am_gid -le $am_max_gid; then
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3592 printf "%s\n" "yes" >&6; }
3593 else
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 printf "%s\n" "no" >&6; }
3596 _am_tools=none
3597 fi
3598
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3600 printf %s "checking how to create a ustar tar archive... " >&6; }
3601
3602 # Go ahead even if we have the value already cached. We do so because we
3603 # need to set the values for the 'am__tar' and 'am__untar' variables.
3604 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3605
3606 for _am_tool in $_am_tools; do
3607 case $_am_tool in
3608 gnutar)
3609 for _am_tar in tar gnutar gtar; do
3610 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3611 ($_am_tar --version) >&5 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } && break
3615 done
3616 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3617 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3618 am__untar="$_am_tar -xf -"
3619 ;;
3620 plaintar)
3621 # Must skip GNU tar: if it does not support --format= it doesn't create
3622 # ustar tarball either.
3623 (tar --version) >/dev/null 2>&1 && continue
3624 am__tar='tar chf - "$$tardir"'
3625 am__tar_='tar chf - "$tardir"'
3626 am__untar='tar xf -'
3627 ;;
3628 pax)
3629 am__tar='pax -L -x ustar -w "$$tardir"'
3630 am__tar_='pax -L -x ustar -w "$tardir"'
3631 am__untar='pax -r'
3632 ;;
3633 cpio)
3634 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3635 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3636 am__untar='cpio -i -H ustar -d'
3637 ;;
3638 none)
3639 am__tar=false
3640 am__tar_=false
3641 am__untar=false
3642 ;;
3643 esac
3644
3645 # If the value was cached, stop now. We just wanted to have am__tar
3646 # and am__untar set.
3647 test -n "${am_cv_prog_tar_ustar}" && break
3648
3649 # tar/untar a dummy directory, and stop if the command works.
3650 rm -rf conftest.dir
3651 mkdir conftest.dir
3652 echo GrepMe > conftest.dir/file
3653 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3654 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }
3658 rm -rf conftest.dir
3659 if test -s conftest.tar; then
3660 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3661 ($am__untar <conftest.tar) >&5 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }
3665 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3666 (cat conftest.dir/file) >&5 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }
3670 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3671 fi
3672 done
3673 rm -rf conftest.dir
3674
3675 if test ${am_cv_prog_tar_ustar+y}
3676 then :
3677 printf %s "(cached) " >&6
3678 else case e in #(
3679 e) am_cv_prog_tar_ustar=$_am_tool ;;
3680 esac
3681 fi
3682
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3684 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3685
3686
3687
3688
3689
3690 # Variables for tags utilities; see am/tags.am
3691 if test -z "$CTAGS"; then
3692 CTAGS=ctags
3693 fi
3694
3695 if test -z "$ETAGS"; then
3696 ETAGS=etags
3697 fi
3698
3699 if test -z "$CSCOPE"; then
3700 CSCOPE=cscope
3701 fi
3702
3703
3704
3705
3706
3707
3708
3709
3710 LIBP11_VERSION_MAJOR="0"
3711 LIBP11_VERSION_MINOR="4"
3712 LIBP11_VERSION_FIX="18"
3713
3714
3715
3716 # silent build by default
3717
3718 AM_DEFAULT_VERBOSITY=0
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732 ac_ext=c
3733 ac_cpp='$CPP $CPPFLAGS'
3734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737 if test -n "$ac_tool_prefix"; then
3738 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3739 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 printf %s "checking for $ac_word... " >&6; }
3742 if test ${ac_cv_prog_CC+y}
3743 then :
3744 printf %s "(cached) " >&6
3745 else case e in #(
3746 e) if test -n "$CC"; then
3747 ac_cv_prog_CC="$CC" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752 IFS=$as_save_IFS
3753 case $as_dir in #(((
3754 '') as_dir=./ ;;
3755 */) ;;
3756 *) as_dir=$as_dir/ ;;
3757 esac
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3762 break 2
3763 fi
3764 done
3765 done
3766 IFS=$as_save_IFS
3767
3768 fi ;;
3769 esac
3770 fi
3771 CC=$ac_cv_prog_CC
3772 if test -n "$CC"; then
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3774 printf "%s\n" "$CC" >&6; }
3775 else
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 printf "%s\n" "no" >&6; }
3778 fi
3779
3780
3781 fi
3782 if test -z "$ac_cv_prog_CC"; then
3783 ac_ct_CC=$CC
3784 # Extract the first word of "gcc", so it can be a program name with args.
3785 set dummy gcc; ac_word=$2
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 printf %s "checking for $ac_word... " >&6; }
3788 if test ${ac_cv_prog_ac_ct_CC+y}
3789 then :
3790 printf %s "(cached) " >&6
3791 else case e in #(
3792 e) if test -n "$ac_ct_CC"; then
3793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798 IFS=$as_save_IFS
3799 case $as_dir in #(((
3800 '') as_dir=./ ;;
3801 */) ;;
3802 *) as_dir=$as_dir/ ;;
3803 esac
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_ac_ct_CC="gcc"
3807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3808 break 2
3809 fi
3810 done
3811 done
3812 IFS=$as_save_IFS
3813
3814 fi ;;
3815 esac
3816 fi
3817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3818 if test -n "$ac_ct_CC"; then
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3820 printf "%s\n" "$ac_ct_CC" >&6; }
3821 else
3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 printf "%s\n" "no" >&6; }
3824 fi
3825
3826 if test "x$ac_ct_CC" = x; then
3827 CC=""
3828 else
3829 case $cross_compiling:$ac_tool_warned in
3830 yes:)
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3832 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3833 ac_tool_warned=yes ;;
3834 esac
3835 CC=$ac_ct_CC
3836 fi
3837 else
3838 CC="$ac_cv_prog_CC"
3839 fi
3840
3841 if test -z "$CC"; then
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}cc; ac_word=$2
3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 printf %s "checking for $ac_word... " >&6; }
3847 if test ${ac_cv_prog_CC+y}
3848 then :
3849 printf %s "(cached) " >&6
3850 else case e in #(
3851 e) if test -n "$CC"; then
3852 ac_cv_prog_CC="$CC" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3856 do
3857 IFS=$as_save_IFS
3858 case $as_dir in #(((
3859 '') as_dir=./ ;;
3860 */) ;;
3861 *) as_dir=$as_dir/ ;;
3862 esac
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3865 ac_cv_prog_CC="${ac_tool_prefix}cc"
3866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3867 break 2
3868 fi
3869 done
3870 done
3871 IFS=$as_save_IFS
3872
3873 fi ;;
3874 esac
3875 fi
3876 CC=$ac_cv_prog_CC
3877 if test -n "$CC"; then
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3879 printf "%s\n" "$CC" >&6; }
3880 else
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882 printf "%s\n" "no" >&6; }
3883 fi
3884
3885
3886 fi
3887 fi
3888 if test -z "$CC"; then
3889 # Extract the first word of "cc", so it can be a program name with args.
3890 set dummy cc; ac_word=$2
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 printf %s "checking for $ac_word... " >&6; }
3893 if test ${ac_cv_prog_CC+y}
3894 then :
3895 printf %s "(cached) " >&6
3896 else case e in #(
3897 e) if test -n "$CC"; then
3898 ac_cv_prog_CC="$CC" # Let the user override the test.
3899 else
3900 ac_prog_rejected=no
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904 IFS=$as_save_IFS
3905 case $as_dir in #(((
3906 '') as_dir=./ ;;
3907 */) ;;
3908 *) as_dir=$as_dir/ ;;
3909 esac
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3912 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3913 ac_prog_rejected=yes
3914 continue
3915 fi
3916 ac_cv_prog_CC="cc"
3917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920 done
3921 done
3922 IFS=$as_save_IFS
3923
3924 if test $ac_prog_rejected = yes; then
3925 # We found a bogon in the path, so make sure we never use it.
3926 set dummy $ac_cv_prog_CC
3927 shift
3928 if test $# != 0; then
3929 # We chose a different compiler from the bogus one.
3930 # However, it has the same basename, so the bogon will be chosen
3931 # first if we set CC to just the basename; use the full file name.
3932 shift
3933 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3934 fi
3935 fi
3936 fi ;;
3937 esac
3938 fi
3939 CC=$ac_cv_prog_CC
3940 if test -n "$CC"; then
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3942 printf "%s\n" "$CC" >&6; }
3943 else
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 printf "%s\n" "no" >&6; }
3946 fi
3947
3948
3949 fi
3950 if test -z "$CC"; then
3951 if test -n "$ac_tool_prefix"; then
3952 for ac_prog in cl.exe
3953 do
3954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 printf %s "checking for $ac_word... " >&6; }
3958 if test ${ac_cv_prog_CC+y}
3959 then :
3960 printf %s "(cached) " >&6
3961 else case e in #(
3962 e) if test -n "$CC"; then
3963 ac_cv_prog_CC="$CC" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968 IFS=$as_save_IFS
3969 case $as_dir in #(((
3970 '') as_dir=./ ;;
3971 */) ;;
3972 *) as_dir=$as_dir/ ;;
3973 esac
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3978 break 2
3979 fi
3980 done
3981 done
3982 IFS=$as_save_IFS
3983
3984 fi ;;
3985 esac
3986 fi
3987 CC=$ac_cv_prog_CC
3988 if test -n "$CC"; then
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3990 printf "%s\n" "$CC" >&6; }
3991 else
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 printf "%s\n" "no" >&6; }
3994 fi
3995
3996
3997 test -n "$CC" && break
3998 done
3999 fi
4000 if test -z "$CC"; then
4001 ac_ct_CC=$CC
4002 for ac_prog in cl.exe
4003 do
4004 # Extract the first word of "$ac_prog", so it can be a program name with args.
4005 set dummy $ac_prog; ac_word=$2
4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 printf %s "checking for $ac_word... " >&6; }
4008 if test ${ac_cv_prog_ac_ct_CC+y}
4009 then :
4010 printf %s "(cached) " >&6
4011 else case e in #(
4012 e) if test -n "$ac_ct_CC"; then
4013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018 IFS=$as_save_IFS
4019 case $as_dir in #(((
4020 '') as_dir=./ ;;
4021 */) ;;
4022 *) as_dir=$as_dir/ ;;
4023 esac
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4026 ac_cv_prog_ac_ct_CC="$ac_prog"
4027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4028 break 2
4029 fi
4030 done
4031 done
4032 IFS=$as_save_IFS
4033
4034 fi ;;
4035 esac
4036 fi
4037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4038 if test -n "$ac_ct_CC"; then
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4040 printf "%s\n" "$ac_ct_CC" >&6; }
4041 else
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4043 printf "%s\n" "no" >&6; }
4044 fi
4045
4046
4047 test -n "$ac_ct_CC" && break
4048 done
4049
4050 if test "x$ac_ct_CC" = x; then
4051 CC=""
4052 else
4053 case $cross_compiling:$ac_tool_warned in
4054 yes:)
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4056 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4057 ac_tool_warned=yes ;;
4058 esac
4059 CC=$ac_ct_CC
4060 fi
4061 fi
4062
4063 fi
4064 if test -z "$CC"; then
4065 if test -n "$ac_tool_prefix"; then
4066 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4067 set dummy ${ac_tool_prefix}clang; ac_word=$2
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 printf %s "checking for $ac_word... " >&6; }
4070 if test ${ac_cv_prog_CC+y}
4071 then :
4072 printf %s "(cached) " >&6
4073 else case e in #(
4074 e) if test -n "$CC"; then
4075 ac_cv_prog_CC="$CC" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4079 do
4080 IFS=$as_save_IFS
4081 case $as_dir in #(((
4082 '') as_dir=./ ;;
4083 */) ;;
4084 *) as_dir=$as_dir/ ;;
4085 esac
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_CC="${ac_tool_prefix}clang"
4089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4090 break 2
4091 fi
4092 done
4093 done
4094 IFS=$as_save_IFS
4095
4096 fi ;;
4097 esac
4098 fi
4099 CC=$ac_cv_prog_CC
4100 if test -n "$CC"; then
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4102 printf "%s\n" "$CC" >&6; }
4103 else
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105 printf "%s\n" "no" >&6; }
4106 fi
4107
4108
4109 fi
4110 if test -z "$ac_cv_prog_CC"; then
4111 ac_ct_CC=$CC
4112 # Extract the first word of "clang", so it can be a program name with args.
4113 set dummy clang; ac_word=$2
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115 printf %s "checking for $ac_word... " >&6; }
4116 if test ${ac_cv_prog_ac_ct_CC+y}
4117 then :
4118 printf %s "(cached) " >&6
4119 else case e in #(
4120 e) if test -n "$ac_ct_CC"; then
4121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126 IFS=$as_save_IFS
4127 case $as_dir in #(((
4128 '') as_dir=./ ;;
4129 */) ;;
4130 *) as_dir=$as_dir/ ;;
4131 esac
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_ac_ct_CC="clang"
4135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4136 break 2
4137 fi
4138 done
4139 done
4140 IFS=$as_save_IFS
4141
4142 fi ;;
4143 esac
4144 fi
4145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4146 if test -n "$ac_ct_CC"; then
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4148 printf "%s\n" "$ac_ct_CC" >&6; }
4149 else
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 printf "%s\n" "no" >&6; }
4152 fi
4153
4154 if test "x$ac_ct_CC" = x; then
4155 CC=""
4156 else
4157 case $cross_compiling:$ac_tool_warned in
4158 yes:)
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161 ac_tool_warned=yes ;;
4162 esac
4163 CC=$ac_ct_CC
4164 fi
4165 else
4166 CC="$ac_cv_prog_CC"
4167 fi
4168
4169 fi
4170
4171
4172 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4173 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4174 as_fn_error $? "no acceptable C compiler found in \$PATH
4175 See 'config.log' for more details" "$LINENO" 5; }
4176
4177 # Provide some information about the compiler.
4178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4179 set X $ac_compile
4180 ac_compiler=$2
4181 for ac_option in --version -v -V -qversion -version; do
4182 { { ac_try="$ac_compiler $ac_option >&5"
4183 case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4186 esac
4187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4188 printf "%s\n" "$ac_try_echo"; } >&5
4189 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4190 ac_status=$?
4191 if test -s conftest.err; then
4192 sed '10a\
4193 ... rest of stderr output deleted ...
4194 10q' conftest.err >conftest.er1
4195 cat conftest.er1 >&5
4196 fi
4197 rm -f conftest.er1 conftest.err
4198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199 test $ac_status = 0; }
4200 done
4201
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204
4205 int
4206 main (void)
4207 {
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 ac_clean_files_save=$ac_clean_files
4214 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4215 # Try to create an executable without -o first, disregard a.out.
4216 # It will help us diagnose broken compilers, and finding out an intuition
4217 # of exeext.
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4219 printf %s "checking whether the C compiler works... " >&6; }
4220 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4221
4222 # The possible output files:
4223 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4224
4225 ac_rmfiles=
4226 for ac_file in $ac_files
4227 do
4228 case $ac_file in
4229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4230 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4231 esac
4232 done
4233 rm -f $ac_rmfiles
4234
4235 if { { ac_try="$ac_link_default"
4236 case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239 esac
4240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241 printf "%s\n" "$ac_try_echo"; } >&5
4242 (eval "$ac_link_default") 2>&5
4243 ac_status=$?
4244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }
4246 then :
4247 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4248 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4249 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4250 # so that the user can short-circuit this test for compilers unknown to
4251 # Autoconf.
4252 for ac_file in $ac_files ''
4253 do
4254 test -f "$ac_file" || continue
4255 case $ac_file in
4256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4257 ;;
4258 [ab].out )
4259 # We found the default executable, but exeext='' is most
4260 # certainly right.
4261 break;;
4262 *.* )
4263 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4264 then :; else
4265 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4266 fi
4267 # We set ac_cv_exeext here because the later test for it is not
4268 # safe: cross compilers may not add the suffix if given an '-o'
4269 # argument, so we may need to know it at that point already.
4270 # Even if this section looks crufty: it has the advantage of
4271 # actually working.
4272 break;;
4273 * )
4274 break;;
4275 esac
4276 done
4277 test "$ac_cv_exeext" = no && ac_cv_exeext=
4278
4279 else case e in #(
4280 e) ac_file='' ;;
4281 esac
4282 fi
4283 if test -z "$ac_file"
4284 then :
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 printf "%s\n" "no" >&6; }
4287 printf "%s\n" "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4291 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4292 as_fn_error 77 "C compiler cannot create executables
4293 See 'config.log' for more details" "$LINENO" 5; }
4294 else case e in #(
4295 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4296 printf "%s\n" "yes" >&6; } ;;
4297 esac
4298 fi
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4300 printf %s "checking for C compiler default output file name... " >&6; }
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4302 printf "%s\n" "$ac_file" >&6; }
4303 ac_exeext=$ac_cv_exeext
4304
4305 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4306 ac_clean_files=$ac_clean_files_save
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4308 printf %s "checking for suffix of executables... " >&6; }
4309 if { { ac_try="$ac_link"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 printf "%s\n" "$ac_try_echo"; } >&5
4316 (eval "$ac_link") 2>&5
4317 ac_status=$?
4318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }
4320 then :
4321 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4322 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4323 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4324 # 'rm'.
4325 for ac_file in conftest.exe conftest conftest.*; do
4326 test -f "$ac_file" || continue
4327 case $ac_file in
4328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4330 break;;
4331 * ) break;;
4332 esac
4333 done
4334 else case e in #(
4335 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4336 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4337 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4338 See 'config.log' for more details" "$LINENO" 5; } ;;
4339 esac
4340 fi
4341 rm -f conftest conftest$ac_cv_exeext
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4343 printf "%s\n" "$ac_cv_exeext" >&6; }
4344
4345 rm -f conftest.$ac_ext
4346 EXEEXT=$ac_cv_exeext
4347 ac_exeext=$EXEEXT
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 #include <stdio.h>
4351 int
4352 main (void)
4353 {
4354 FILE *f = fopen ("conftest.out", "w");
4355 if (!f)
4356 return 1;
4357 return ferror (f) || fclose (f) != 0;
4358
4359 ;
4360 return 0;
4361 }
4362 _ACEOF
4363 ac_clean_files="$ac_clean_files conftest.out"
4364 # Check that the compiler produces executables we can run. If not, either
4365 # the compiler is broken, or we cross compile.
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4367 printf %s "checking whether we are cross compiling... " >&6; }
4368 if test "$cross_compiling" != yes; then
4369 { { ac_try="$ac_link"
4370 case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373 esac
4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 printf "%s\n" "$ac_try_echo"; } >&5
4376 (eval "$ac_link") 2>&5
4377 ac_status=$?
4378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379 test $ac_status = 0; }
4380 if { ac_try='./conftest$ac_cv_exeext'
4381 { { case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384 esac
4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386 printf "%s\n" "$ac_try_echo"; } >&5
4387 (eval "$ac_try") 2>&5
4388 ac_status=$?
4389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }; }; then
4391 cross_compiling=no
4392 else
4393 if test "$cross_compiling" = maybe; then
4394 cross_compiling=yes
4395 else
4396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4397 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4398 as_fn_error 77 "cannot run C compiled programs.
4399 If you meant to cross compile, use '--host'.
4400 See 'config.log' for more details" "$LINENO" 5; }
4401 fi
4402 fi
4403 fi
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4405 printf "%s\n" "$cross_compiling" >&6; }
4406
4407 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4408 conftest.o conftest.obj conftest.out
4409 ac_clean_files=$ac_clean_files_save
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4411 printf %s "checking for suffix of object files... " >&6; }
4412 if test ${ac_cv_objext+y}
4413 then :
4414 printf %s "(cached) " >&6
4415 else case e in #(
4416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418
4419 int
4420 main (void)
4421 {
4422
4423 ;
4424 return 0;
4425 }
4426 _ACEOF
4427 rm -f conftest.o conftest.obj
4428 if { { ac_try="$ac_compile"
4429 case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432 esac
4433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434 printf "%s\n" "$ac_try_echo"; } >&5
4435 (eval "$ac_compile") 2>&5
4436 ac_status=$?
4437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4438 test $ac_status = 0; }
4439 then :
4440 for ac_file in conftest.o conftest.obj conftest.*; do
4441 test -f "$ac_file" || continue;
4442 case $ac_file in
4443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4445 break;;
4446 esac
4447 done
4448 else case e in #(
4449 e) printf "%s\n" "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4453 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4454 as_fn_error $? "cannot compute suffix of object files: cannot compile
4455 See 'config.log' for more details" "$LINENO" 5; } ;;
4456 esac
4457 fi
4458 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4459 esac
4460 fi
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4462 printf "%s\n" "$ac_cv_objext" >&6; }
4463 OBJEXT=$ac_cv_objext
4464 ac_objext=$OBJEXT
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4466 printf %s "checking whether the compiler supports GNU C... " >&6; }
4467 if test ${ac_cv_c_compiler_gnu+y}
4468 then :
4469 printf %s "(cached) " >&6
4470 else case e in #(
4471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473
4474 int
4475 main (void)
4476 {
4477 #ifndef __GNUC__
4478 choke me
4479 #endif
4480
4481 ;
4482 return 0;
4483 }
4484 _ACEOF
4485 if ac_fn_c_try_compile "$LINENO"
4486 then :
4487 ac_compiler_gnu=yes
4488 else case e in #(
4489 e) ac_compiler_gnu=no ;;
4490 esac
4491 fi
4492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4493 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4494 ;;
4495 esac
4496 fi
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4498 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500
4501 if test $ac_compiler_gnu = yes; then
4502 GCC=yes
4503 else
4504 GCC=
4505 fi
4506 ac_test_CFLAGS=${CFLAGS+y}
4507 ac_save_CFLAGS=$CFLAGS
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4509 printf %s "checking whether $CC accepts -g... " >&6; }
4510 if test ${ac_cv_prog_cc_g+y}
4511 then :
4512 printf %s "(cached) " >&6
4513 else case e in #(
4514 e) ac_save_c_werror_flag=$ac_c_werror_flag
4515 ac_c_werror_flag=yes
4516 ac_cv_prog_cc_g=no
4517 CFLAGS="-g"
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520
4521 int
4522 main (void)
4523 {
4524
4525 ;
4526 return 0;
4527 }
4528 _ACEOF
4529 if ac_fn_c_try_compile "$LINENO"
4530 then :
4531 ac_cv_prog_cc_g=yes
4532 else case e in #(
4533 e) CFLAGS=""
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536
4537 int
4538 main (void)
4539 {
4540
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"
4546 then :
4547
4548 else case e in #(
4549 e) ac_c_werror_flag=$ac_save_c_werror_flag
4550 CFLAGS="-g"
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553
4554 int
4555 main (void)
4556 {
4557
4558 ;
4559 return 0;
4560 }
4561 _ACEOF
4562 if ac_fn_c_try_compile "$LINENO"
4563 then :
4564 ac_cv_prog_cc_g=yes
4565 fi
4566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4567 esac
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4570 esac
4571 fi
4572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4573 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4574 esac
4575 fi
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4577 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4578 if test $ac_test_CFLAGS; then
4579 CFLAGS=$ac_save_CFLAGS
4580 elif test $ac_cv_prog_cc_g = yes; then
4581 if test "$GCC" = yes; then
4582 CFLAGS="-g -O2"
4583 else
4584 CFLAGS="-g"
4585 fi
4586 else
4587 if test "$GCC" = yes; then
4588 CFLAGS="-O2"
4589 else
4590 CFLAGS=
4591 fi
4592 fi
4593 ac_prog_cc_stdc=no
4594 if test x$ac_prog_cc_stdc = xno
4595 then :
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4597 printf %s "checking for $CC option to enable C11 features... " >&6; }
4598 if test ${ac_cv_prog_cc_c11+y}
4599 then :
4600 printf %s "(cached) " >&6
4601 else case e in #(
4602 e) ac_cv_prog_cc_c11=no
4603 ac_save_CC=$CC
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606 $ac_c_conftest_c11_program
4607 _ACEOF
4608 for ac_arg in '' -std=gnu11
4609 do
4610 CC="$ac_save_CC $ac_arg"
4611 if ac_fn_c_try_compile "$LINENO"
4612 then :
4613 ac_cv_prog_cc_c11=$ac_arg
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.beam
4616 test "x$ac_cv_prog_cc_c11" != "xno" && break
4617 done
4618 rm -f conftest.$ac_ext
4619 CC=$ac_save_CC ;;
4620 esac
4621 fi
4622
4623 if test "x$ac_cv_prog_cc_c11" = xno
4624 then :
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4626 printf "%s\n" "unsupported" >&6; }
4627 else case e in #(
4628 e) if test "x$ac_cv_prog_cc_c11" = x
4629 then :
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4631 printf "%s\n" "none needed" >&6; }
4632 else case e in #(
4633 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4634 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4635 CC="$CC $ac_cv_prog_cc_c11" ;;
4636 esac
4637 fi
4638 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4639 ac_prog_cc_stdc=c11 ;;
4640 esac
4641 fi
4642 fi
4643 if test x$ac_prog_cc_stdc = xno
4644 then :
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4646 printf %s "checking for $CC option to enable C99 features... " >&6; }
4647 if test ${ac_cv_prog_cc_c99+y}
4648 then :
4649 printf %s "(cached) " >&6
4650 else case e in #(
4651 e) ac_cv_prog_cc_c99=no
4652 ac_save_CC=$CC
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655 $ac_c_conftest_c99_program
4656 _ACEOF
4657 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4658 do
4659 CC="$ac_save_CC $ac_arg"
4660 if ac_fn_c_try_compile "$LINENO"
4661 then :
4662 ac_cv_prog_cc_c99=$ac_arg
4663 fi
4664 rm -f core conftest.err conftest.$ac_objext conftest.beam
4665 test "x$ac_cv_prog_cc_c99" != "xno" && break
4666 done
4667 rm -f conftest.$ac_ext
4668 CC=$ac_save_CC ;;
4669 esac
4670 fi
4671
4672 if test "x$ac_cv_prog_cc_c99" = xno
4673 then :
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4675 printf "%s\n" "unsupported" >&6; }
4676 else case e in #(
4677 e) if test "x$ac_cv_prog_cc_c99" = x
4678 then :
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4680 printf "%s\n" "none needed" >&6; }
4681 else case e in #(
4682 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4683 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4684 CC="$CC $ac_cv_prog_cc_c99" ;;
4685 esac
4686 fi
4687 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4688 ac_prog_cc_stdc=c99 ;;
4689 esac
4690 fi
4691 fi
4692 if test x$ac_prog_cc_stdc = xno
4693 then :
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4695 printf %s "checking for $CC option to enable C89 features... " >&6; }
4696 if test ${ac_cv_prog_cc_c89+y}
4697 then :
4698 printf %s "(cached) " >&6
4699 else case e in #(
4700 e) ac_cv_prog_cc_c89=no
4701 ac_save_CC=$CC
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704 $ac_c_conftest_c89_program
4705 _ACEOF
4706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4707 do
4708 CC="$ac_save_CC $ac_arg"
4709 if ac_fn_c_try_compile "$LINENO"
4710 then :
4711 ac_cv_prog_cc_c89=$ac_arg
4712 fi
4713 rm -f core conftest.err conftest.$ac_objext conftest.beam
4714 test "x$ac_cv_prog_cc_c89" != "xno" && break
4715 done
4716 rm -f conftest.$ac_ext
4717 CC=$ac_save_CC ;;
4718 esac
4719 fi
4720
4721 if test "x$ac_cv_prog_cc_c89" = xno
4722 then :
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4724 printf "%s\n" "unsupported" >&6; }
4725 else case e in #(
4726 e) if test "x$ac_cv_prog_cc_c89" = x
4727 then :
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4729 printf "%s\n" "none needed" >&6; }
4730 else case e in #(
4731 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4732 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4733 CC="$CC $ac_cv_prog_cc_c89" ;;
4734 esac
4735 fi
4736 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4737 ac_prog_cc_stdc=c89 ;;
4738 esac
4739 fi
4740 fi
4741
4742 ac_ext=c
4743 ac_cpp='$CPP $CPPFLAGS'
4744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4747
4748
4749 ac_ext=c
4750 ac_cpp='$CPP $CPPFLAGS'
4751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4755 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4756 if test ${am_cv_prog_cc_c_o+y}
4757 then :
4758 printf %s "(cached) " >&6
4759 else case e in #(
4760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762
4763 int
4764 main (void)
4765 {
4766
4767 ;
4768 return 0;
4769 }
4770 _ACEOF
4771 # Make sure it works both with $CC and with simple cc.
4772 # Following AC_PROG_CC_C_O, we do the test twice because some
4773 # compilers refuse to overwrite an existing .o file with -o,
4774 # though they will create one.
4775 am_cv_prog_cc_c_o=yes
4776 for am_i in 1 2; do
4777 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4778 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } \
4782 && test -f conftest2.$ac_objext; then
4783 : OK
4784 else
4785 am_cv_prog_cc_c_o=no
4786 break
4787 fi
4788 done
4789 # aligned with autoconf, so not including core; see bug#72225.
4790 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4791 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4792 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4793 unset am_i ;;
4794 esac
4795 fi
4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4797 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4798 if test "$am_cv_prog_cc_c_o" != yes; then
4799 # Losing compiler, so override with the script.
4800 # FIXME: It is wrong to rewrite CC.
4801 # But if we don't then we get into trouble of one sort or another.
4802 # A longer-term fix would be to have automake use am__CC in this case,
4803 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4804 CC="$am_aux_dir/compile $CC"
4805 fi
4806 ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812 DEPDIR="${am__leading_dot}deps"
4813
4814 ac_config_commands="$ac_config_commands depfiles"
4815
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4817 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4818 cat > confinc.mk << 'END'
4819 am__doit:
4820 @echo this is the am__doit target >confinc.out
4821 .PHONY: am__doit
4822 END
4823 am__include="#"
4824 am__quote=
4825 # BSD make does it like this.
4826 echo '.include "confinc.mk" # ignored' > confmf.BSD
4827 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4828 echo 'include confinc.mk # ignored' > confmf.GNU
4829 _am_result=no
4830 for s in GNU BSD; do
4831 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4832 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }
4836 case $?:`cat confinc.out 2>/dev/null` in #(
4837 '0:this is the am__doit target') :
4838 case $s in #(
4839 BSD) :
4840 am__include='.include' am__quote='"' ;; #(
4841 *) :
4842 am__include='include' am__quote='' ;;
4843 esac ;; #(
4844 *) :
4845 ;;
4846 esac
4847 if test "$am__include" != "#"; then
4848 _am_result="yes ($s style)"
4849 break
4850 fi
4851 done
4852 rm -f confinc.* confmf.*
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4854 printf "%s\n" "${_am_result}" >&6; }
4855
4856 # Check whether --enable-dependency-tracking was given.
4857 if test ${enable_dependency_tracking+y}
4858 then :
4859 enableval=$enable_dependency_tracking;
4860 fi
4861
4862 if test "x$enable_dependency_tracking" != xno; then
4863 am_depcomp="$ac_aux_dir/depcomp"
4864 AMDEPBACKSLASH='\'
4865 am__nodep='_no'
4866 fi
4867 if test "x$enable_dependency_tracking" != xno; then
4868 AMDEP_TRUE=
4869 AMDEP_FALSE='#'
4870 else
4871 AMDEP_TRUE='#'
4872 AMDEP_FALSE=
4873 fi
4874
4875
4876
4877 depcc="$CC" am_compiler_list=
4878
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4880 printf %s "checking dependency style of $depcc... " >&6; }
4881 if test ${am_cv_CC_dependencies_compiler_type+y}
4882 then :
4883 printf %s "(cached) " >&6
4884 else case e in #(
4885 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4886 # We make a subdir and do the tests there. Otherwise we can end up
4887 # making bogus files that we don't know about and never remove. For
4888 # instance it was reported that on HP-UX the gcc test will end up
4889 # making a dummy file named 'D' -- because '-MD' means "put the output
4890 # in D".
4891 rm -rf conftest.dir
4892 mkdir conftest.dir
4893 # Copy depcomp to subdir because otherwise we won't find it if we're
4894 # using a relative directory.
4895 cp "$am_depcomp" conftest.dir
4896 cd conftest.dir
4897 # We will build objects and dependencies in a subdirectory because
4898 # it helps to detect inapplicable dependency modes. For instance
4899 # both Tru64's cc and ICC support -MD to output dependencies as a
4900 # side effect of compilation, but ICC will put the dependencies in
4901 # the current directory while Tru64 will put them in the object
4902 # directory.
4903 mkdir sub
4904
4905 am_cv_CC_dependencies_compiler_type=none
4906 if test "$am_compiler_list" = ""; then
4907 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4908 fi
4909 am__universal=false
4910 case " $depcc " in #(
4911 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4912 esac
4913
4914 for depmode in $am_compiler_list; do
4915 # Setup a source with many dependencies, because some compilers
4916 # like to wrap large dependency lists on column 80 (with \), and
4917 # we should not choose a depcomp mode which is confused by this.
4918 #
4919 # We need to recreate these files for each test, as the compiler may
4920 # overwrite some of them when testing with obscure command lines.
4921 # This happens at least with the AIX C compiler.
4922 : > sub/conftest.c
4923 for i in 1 2 3 4 5 6; do
4924 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4925 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4926 # Solaris 10 /bin/sh.
4927 echo '/* dummy */' > sub/conftst$i.h
4928 done
4929 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4930
4931 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4932 # mode. It turns out that the SunPro C++ compiler does not properly
4933 # handle '-M -o', and we need to detect this. Also, some Intel
4934 # versions had trouble with output in subdirs.
4935 am__obj=sub/conftest.${OBJEXT-o}
4936 am__minus_obj="-o $am__obj"
4937 case $depmode in
4938 gcc)
4939 # This depmode causes a compiler race in universal mode.
4940 test "$am__universal" = false || continue
4941 ;;
4942 nosideeffect)
4943 # After this tag, mechanisms are not by side-effect, so they'll
4944 # only be used when explicitly requested.
4945 if test "x$enable_dependency_tracking" = xyes; then
4946 continue
4947 else
4948 break
4949 fi
4950 ;;
4951 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4952 # This compiler won't grok '-c -o', but also, the minuso test has
4953 # not run yet. These depmodes are late enough in the game, and
4954 # so weak that their functioning should not be impacted.
4955 am__obj=conftest.${OBJEXT-o}
4956 am__minus_obj=
4957 ;;
4958 none) break ;;
4959 esac
4960 if depmode=$depmode \
4961 source=sub/conftest.c object=$am__obj \
4962 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4963 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4964 >/dev/null 2>conftest.err &&
4965 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4966 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4967 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4968 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4969 # icc doesn't choke on unknown options, it will just issue warnings
4970 # or remarks (even with -Werror). So we grep stderr for any message
4971 # that says an option was ignored or not supported.
4972 # When given -MP, icc 7.0 and 7.1 complain thus:
4973 # icc: Command line warning: ignoring option '-M'; no argument required
4974 # The diagnosis changed in icc 8.0:
4975 # icc: Command line remark: option '-MP' not supported
4976 if (grep 'ignoring option' conftest.err ||
4977 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4978 am_cv_CC_dependencies_compiler_type=$depmode
4979 break
4980 fi
4981 fi
4982 done
4983
4984 cd ..
4985 rm -rf conftest.dir
4986 else
4987 am_cv_CC_dependencies_compiler_type=none
4988 fi
4989 ;;
4990 esac
4991 fi
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4993 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4994 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4995
4996 if
4997 test "x$enable_dependency_tracking" != xno \
4998 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4999 am__fastdepCC_TRUE=
5000 am__fastdepCC_FALSE='#'
5001 else
5002 am__fastdepCC_TRUE='#'
5003 am__fastdepCC_FALSE=
5004 fi
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5015 if test -n "$ac_tool_prefix"; then
5016 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5017 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 printf %s "checking for $ac_word... " >&6; }
5020 if test ${ac_cv_path_PKG_CONFIG+y}
5021 then :
5022 printf %s "(cached) " >&6
5023 else case e in #(
5024 e) case $PKG_CONFIG in
5025 [\\/]* | ?:[\\/]*)
5026 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5027 ;;
5028 *)
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032 IFS=$as_save_IFS
5033 case $as_dir in #(((
5034 '') as_dir=./ ;;
5035 */) ;;
5036 *) as_dir=$as_dir/ ;;
5037 esac
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5040 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044 done
5045 done
5046 IFS=$as_save_IFS
5047
5048 ;;
5049 esac ;;
5050 esac
5051 fi
5052 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5053 if test -n "$PKG_CONFIG"; then
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5055 printf "%s\n" "$PKG_CONFIG" >&6; }
5056 else
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 printf "%s\n" "no" >&6; }
5059 fi
5060
5061
5062 fi
5063 if test -z "$ac_cv_path_PKG_CONFIG"; then
5064 ac_pt_PKG_CONFIG=$PKG_CONFIG
5065 # Extract the first word of "pkg-config", so it can be a program name with args.
5066 set dummy pkg-config; ac_word=$2
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 printf %s "checking for $ac_word... " >&6; }
5069 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5070 then :
5071 printf %s "(cached) " >&6
5072 else case e in #(
5073 e) case $ac_pt_PKG_CONFIG in
5074 [\\/]* | ?:[\\/]*)
5075 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5076 ;;
5077 *)
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081 IFS=$as_save_IFS
5082 case $as_dir in #(((
5083 '') as_dir=./ ;;
5084 */) ;;
5085 *) as_dir=$as_dir/ ;;
5086 esac
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5089 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5091 break 2
5092 fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097 ;;
5098 esac ;;
5099 esac
5100 fi
5101 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5102 if test -n "$ac_pt_PKG_CONFIG"; then
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5104 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5105 else
5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 printf "%s\n" "no" >&6; }
5108 fi
5109
5110 if test "x$ac_pt_PKG_CONFIG" = x; then
5111 PKG_CONFIG=""
5112 else
5113 case $cross_compiling:$ac_tool_warned in
5114 yes:)
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5116 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5117 ac_tool_warned=yes ;;
5118 esac
5119 PKG_CONFIG=$ac_pt_PKG_CONFIG
5120 fi
5121 else
5122 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5123 fi
5124
5125 fi
5126 if test -n "$PKG_CONFIG"; then
5127 _pkg_min_version=0.9.0
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5129 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5130 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5132 printf "%s\n" "yes" >&6; }
5133 else
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 printf "%s\n" "no" >&6; }
5136 PKG_CONFIG=""
5137 fi
5138 fi
5139 if test -z "$PKG_CONFIG"; then
5140 as_fn_error $? "pkg-config not found" "$LINENO" 5
5141 fi
5142
5143 ac_header= ac_cache=
5144 for ac_item in $ac_header_c_list
5145 do
5146 if test $ac_cache; then
5147 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5148 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5149 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5150 fi
5151 ac_header= ac_cache=
5152 elif test $ac_header; then
5153 ac_cache=$ac_item
5154 else
5155 ac_header=$ac_item
5156 fi
5157 done
5158
5159
5160
5161
5162
5163
5164
5165
5166 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5167 then :
5168
5169 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5170
5171 fi
5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5173 printf %s "checking whether byte ordering is bigendian... " >&6; }
5174 if test ${ac_cv_c_bigendian+y}
5175 then :
5176 printf %s "(cached) " >&6
5177 else case e in #(
5178 e) ac_cv_c_bigendian=unknown
5179 # See if we're dealing with a universal compiler.
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5182 #ifndef __APPLE_CC__
5183 not a universal capable compiler
5184 #endif
5185 typedef int dummy;
5186
5187 _ACEOF
5188 if ac_fn_c_try_compile "$LINENO"
5189 then :
5190
5191 # Check for potential -arch flags. It is not universal unless
5192 # there are at least two -arch flags with different values.
5193 ac_arch=
5194 ac_prev=
5195 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5196 if test -n "$ac_prev"; then
5197 case $ac_word in
5198 i?86 | x86_64 | ppc | ppc64)
5199 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5200 ac_arch=$ac_word
5201 else
5202 ac_cv_c_bigendian=universal
5203 break
5204 fi
5205 ;;
5206 esac
5207 ac_prev=
5208 elif test "x$ac_word" = "x-arch"; then
5209 ac_prev=arch
5210 fi
5211 done
5212 fi
5213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5214 if test $ac_cv_c_bigendian = unknown; then
5215 # See if sys/param.h defines the BYTE_ORDER macro.
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5218 #include <sys/types.h>
5219 #include <sys/param.h>
5220
5221 int
5222 main (void)
5223 {
5224 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
5225 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
5226 && LITTLE_ENDIAN)
5227 bogus endian macros
5228 #endif
5229
5230 ;
5231 return 0;
5232 }
5233 _ACEOF
5234 if ac_fn_c_try_compile "$LINENO"
5235 then :
5236 # It does; now see whether it defined to BIG_ENDIAN or not.
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 #include <sys/types.h>
5240 #include <sys/param.h>
5241
5242 int
5243 main (void)
5244 {
5245 #if BYTE_ORDER != BIG_ENDIAN
5246 not big endian
5247 #endif
5248
5249 ;
5250 return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_c_try_compile "$LINENO"
5254 then :
5255 ac_cv_c_bigendian=yes
5256 else case e in #(
5257 e) ac_cv_c_bigendian=no ;;
5258 esac
5259 fi
5260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5263 fi
5264 if test $ac_cv_c_bigendian = unknown; then
5265 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268 #include <limits.h>
5269
5270 int
5271 main (void)
5272 {
5273 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5274 bogus endian macros
5275 #endif
5276
5277 ;
5278 return 0;
5279 }
5280 _ACEOF
5281 if ac_fn_c_try_compile "$LINENO"
5282 then :
5283 # It does; now see whether it defined to _BIG_ENDIAN or not.
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 #include <limits.h>
5287
5288 int
5289 main (void)
5290 {
5291 #ifndef _BIG_ENDIAN
5292 not big endian
5293 #endif
5294
5295 ;
5296 return 0;
5297 }
5298 _ACEOF
5299 if ac_fn_c_try_compile "$LINENO"
5300 then :
5301 ac_cv_c_bigendian=yes
5302 else case e in #(
5303 e) ac_cv_c_bigendian=no ;;
5304 esac
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5309 fi
5310 if test $ac_cv_c_bigendian = unknown; then
5311 # Compile a test program.
5312 if test "$cross_compiling" = yes
5313 then :
5314 # Try to guess by grepping values from an object file.
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317 unsigned short int ascii_mm[] =
5318 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5319 unsigned short int ascii_ii[] =
5320 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5321 int use_ascii (int i) {
5322 return ascii_mm[i] + ascii_ii[i];
5323 }
5324 unsigned short int ebcdic_ii[] =
5325 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5326 unsigned short int ebcdic_mm[] =
5327 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5328 int use_ebcdic (int i) {
5329 return ebcdic_mm[i] + ebcdic_ii[i];
5330 }
5331 int
5332 main (int argc, char **argv)
5333 {
5334 /* Intimidate the compiler so that it does not
5335 optimize the arrays away. */
5336 char *p = argv[0];
5337 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
5338 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
5339 return use_ascii (argc) == use_ebcdic (*p);
5340 }
5341 _ACEOF
5342 if ac_fn_c_try_link "$LINENO"
5343 then :
5344 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
5345 ac_cv_c_bigendian=yes
5346 fi
5347 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
5348 if test "$ac_cv_c_bigendian" = unknown; then
5349 ac_cv_c_bigendian=no
5350 else
5351 # finding both strings is unlikely to happen, but who knows?
5352 ac_cv_c_bigendian=unknown
5353 fi
5354 fi
5355 fi
5356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5357 conftest$ac_exeext conftest.$ac_ext
5358 else case e in #(
5359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 $ac_includes_default
5362 int
5363 main (void)
5364 {
5365
5366 /* Are we little or big endian? From Harbison&Steele. */
5367 union
5368 {
5369 long int l;
5370 char c[sizeof (long int)];
5371 } u;
5372 u.l = 1;
5373 return u.c[sizeof (long int) - 1] == 1;
5374
5375 ;
5376 return 0;
5377 }
5378 _ACEOF
5379 if ac_fn_c_try_run "$LINENO"
5380 then :
5381 ac_cv_c_bigendian=no
5382 else case e in #(
5383 e) ac_cv_c_bigendian=yes ;;
5384 esac
5385 fi
5386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5387 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5388 esac
5389 fi
5390
5391 fi ;;
5392 esac
5393 fi
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5395 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5396 case $ac_cv_c_bigendian in #(
5397 yes)
5398 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5399 ;; #(
5400 no)
5401 ;; #(
5402 universal)
5403
5404 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5405
5406 ;; #(
5407 *)
5408 as_fn_error $? "unknown endianness
5409 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5410 esac
5411
5412
5413 # we need to set our soversion based on openssl's soversion to avoid
5414 # issues with applications linking to new openssl, old libp11, and vice versa
5415 opensslversion="$( \
5416 ( $PKG_CONFIG --modversion --silence-errors libcrypto || \
5417 $PKG_CONFIG --modversion openssl ) | \
5418 sed 's/^\(0-9.*\).*/\1/' )"
5419 case "$opensslversion" in
5420 4.*) # Provider for OpenSSL 4.x
5421 LIBP11_LT_OLDEST="4"
5422 LIBP11_OSSL_PROVIDER="yes";;
5423 3.*) # Engines directory prefix for OpenSSL 3.x
5424 LIBP11_LT_OLDEST="3"
5425 LIBP11_OSSL_PROVIDER="yes"
5426 debian_ssl_prefix="engines-3";;
5427 1.1.*) # Engines directory prefix for OpenSSL 1.1.x
5428 LIBP11_LT_OLDEST="3"
5429 debian_ssl_prefix="engines-1.1";;
5430 1.0.*) # Engines directory prefix for OpenSSL 1.0.x
5431 LIBP11_LT_OLDEST="2"
5432 debian_ssl_prefix="openssl-$opensslversion/engines";;
5433 *) # Engines directory prefix for OpenSSL 0.9.x
5434 LIBP11_LT_OLDEST="2"
5435 debian_ssl_prefix="ssl/engines";;
5436 esac
5437
5438 case "$OSSL_PKG_VERSION" in
5439 3.*)
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: 3.*" >&5
5441 printf "%s\n" "$as_me: 3.*" >&6;}
5442 LIBP11_OSSL_PROVIDER="yes";;
5443 esac
5444
5445 if test x$LIBP11_OSSL_PROVIDER = xyes; then
5446 LIBP11_OSSL_PROVIDER_TRUE=
5447 LIBP11_OSSL_PROVIDER_FALSE='#'
5448 else
5449 LIBP11_OSSL_PROVIDER_TRUE='#'
5450 LIBP11_OSSL_PROVIDER_FALSE=
5451 fi
5452
5453
5454 # LT Version numbers, remember to change them just *before* a release.
5455 # (Code changed: REVISION++)
5456 # (Oldest interface removed: OLDEST++)
5457 # (Interfaces added: CURRENT++, REVISION=0)
5458 #
5459 # Note that at this moment we tie the oldest (soname) version to
5460 # the openssl version we link to. If the ABI is broken on a later
5461 # release, we should either stick to supporting a single openssl ABI
5462 # or bump the LT_OLDEST version sufficiently to avoid clashes.
5463 LIBP11_LT_REVISION="4"
5464 LIBP11_LT_CURRENT="10"
5465 LIBP11_LT_AGE="$((${LIBP11_LT_CURRENT}-${LIBP11_LT_OLDEST}))"
5466
5467
5468 # Check whether --enable-ld-version-script was given.
5469 if test ${enable_ld_version_script+y}
5470 then :
5471 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
5472 else case e in #(
5473 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
5474 printf %s "checking if LD -Wl,--version-script works... " >&6; }
5475 if test ${gl_cv_sys_ld_version_script+y}
5476 then :
5477 printf %s "(cached) " >&6
5478 else case e in #(
5479 e) gl_cv_sys_ld_version_script=no
5480 save_LDFLAGS=$LDFLAGS
5481 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
5482 echo foo >conftest.map
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485
5486 int
5487 main (void)
5488 {
5489
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 if ac_fn_c_try_link "$LINENO"
5495 then :
5496
5497 else case e in #(
5498 e) cat > conftest.map <<EOF
5499 VERS_1 {
5500 global: sym;
5501 };
5502
5503 VERS_2 {
5504 global: sym;
5505 } VERS_1;
5506 EOF
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5509
5510 int
5511 main (void)
5512 {
5513
5514 ;
5515 return 0;
5516 }
5517 _ACEOF
5518 if ac_fn_c_try_link "$LINENO"
5519 then :
5520 gl_cv_sys_ld_version_script=yes
5521 fi
5522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5523 conftest$ac_exeext conftest.$ac_ext ;;
5524 esac
5525 fi
5526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5527 conftest$ac_exeext conftest.$ac_ext
5528 rm -f conftest.map
5529 LDFLAGS=$save_LDFLAGS ;;
5530 esac
5531 fi
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5
5533 printf "%s\n" "$gl_cv_sys_ld_version_script" >&6; }
5534 have_ld_version_script=$gl_cv_sys_ld_version_script ;;
5535 esac
5536 fi
5537
5538 if test "$have_ld_version_script" = yes; then
5539 HAVE_LD_VERSION_SCRIPT_TRUE=
5540 HAVE_LD_VERSION_SCRIPT_FALSE='#'
5541 else
5542 HAVE_LD_VERSION_SCRIPT_TRUE='#'
5543 HAVE_LD_VERSION_SCRIPT_FALSE=
5544 fi
5545
5546
5547
5548
5549 # Check whether --with-cygwin-native was given.
5550 if test ${with_cygwin_native+y}
5551 then :
5552 withval=$with_cygwin_native;
5553 else case e in #(
5554 e) with_cygwin_native="no"
5555 ;;
5556 esac
5557 fi
5558
5559
5560 test -z "${WIN32}" && WIN32="no"
5561 test -z "${CYGWIN}" && CYGWIN="no"
5562 case "${host}" in
5563 *-mingw*|*-winnt*)
5564 WIN32="yes"
5565 CPPFLAGS="${CPPFLAGS} -D_WIN32_WINNT=0x0600 -DWIN32_LEAN_AND_MEAN"
5566 WIN_LIBPREFIX="lib"
5567 ;;
5568 *-cygwin*)
5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cygwin mode to use" >&5
5570 printf %s "checking cygwin mode to use... " >&6; }
5571 CYGWIN="yes"
5572 if test "${with_cygwin_native}" = "yes"; then
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using native win32" >&5
5574 printf "%s\n" "Using native win32" >&6; }
5575 CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
5576 CFLAGS="${CFLAGS} -mno-cygwin"
5577 WIN32="yes"
5578 else
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using cygwin" >&5
5580 printf "%s\n" "Using cygwin" >&6; }
5581 WIN_LIBPREFIX="cyg"
5582
5583 printf "%s\n" "#define USE_CYGWIN 1" >>confdefs.h
5584
5585 fi
5586 ;;
5587 esac
5588
5589 # Check whether --enable-strict was given.
5590 if test ${enable_strict+y}
5591 then :
5592 enableval=$enable_strict;
5593 else case e in #(
5594 e) enable_strict="no"
5595 ;;
5596 esac
5597 fi
5598
5599
5600 # Check whether --enable-pedantic was given.
5601 if test ${enable_pedantic+y}
5602 then :
5603 enableval=$enable_pedantic;
5604 else case e in #(
5605 e) enable_pedantic="no"
5606 ;;
5607 esac
5608 fi
5609
5610
5611 # Check whether --enable-api-doc was given.
5612 if test ${enable_api_doc+y}
5613 then :
5614 enableval=$enable_api_doc;
5615 else case e in #(
5616 e) enable_api_doc="no"
5617 ;;
5618 esac
5619 fi
5620
5621
5622
5623 # Check whether --with-apidocdir was given.
5624 if test ${with_apidocdir+y}
5625 then :
5626 withval=$with_apidocdir; apidocdir="${with_apidocdir}"
5627 else case e in #(
5628 e) apidocdir="\$(htmldir)/api"
5629 ;;
5630 esac
5631 fi
5632
5633
5634
5635 # Check whether --with-enginesdir was given.
5636 if test ${with_enginesdir+y}
5637 then :
5638 withval=$with_enginesdir; enginesexecdir="${withval}"
5639 else case e in #(
5640 e)
5641 enginesexecdir="`$PKG_CONFIG --variable=enginesdir --silence-errors libcrypto`"
5642 if test "${enginesexecdir}" = ""; then
5643 libcryptodir="`$PKG_CONFIG --variable=libdir --silence-errors libcrypto || \
5644 $PKG_CONFIG --variable=libdir openssl`"
5645 if test -d "$libcryptodir/$debian_ssl_prefix"; then
5646 # Debian-based OpenSSL package (for example Ubuntu)
5647 enginesexecdir="$libcryptodir/$debian_ssl_prefix"
5648 else # Default OpenSSL engines directory
5649 enginesexecdir="$libcryptodir/engines"
5650 fi
5651 if test "${prefix}" != "NONE" -o "${exec_prefix}" != "NONE"; then
5652 # Override the autodetected value with the default
5653 enginesexecdir="\$(libdir)"
5654 fi
5655 fi
5656
5657 ;;
5658 esac
5659 fi
5660
5661
5662 # Check whether --enable-static-engine was given.
5663 if test ${enable_static_engine+y}
5664 then :
5665 enableval=$enable_static_engine;
5666 else case e in #(
5667 e) enable_static_engine="no"
5668 ;;
5669 esac
5670 fi
5671
5672
5673
5674 # Check whether --with-modulesdir was given.
5675 if test ${with_modulesdir+y}
5676 then :
5677 withval=$with_modulesdir; providersexecdir="${withval}"
5678 else case e in #(
5679 e)
5680 providersexecdir="`$PKG_CONFIG --variable=modulesdir --silence-errors libcrypto`"
5681 if test "${providersexecdir}" = ""; then
5682 libcryptodir="`$PKG_CONFIG --variable=libdir --silence-errors libcrypto || \
5683 $PKG_CONFIG --variable=libdir openssl`"
5684 if test -d "$libcryptodir/$debian_ssl_prefix"; then
5685 # Debian-based OpenSSL package (for example Ubuntu)
5686 providersexecdir="$libcryptodir/$debian_ssl_prefix"
5687 else # Default OpenSSL providers directory
5688 providersexecdir="$libcryptodir/ossl-modules"
5689 fi
5690 if test "${prefix}" != "NONE" -o "${exec_prefix}" != "NONE"; then
5691 # Override the autodetected value with the default
5692 providersexecdir="\$(libdir)"
5693 fi
5694 fi
5695
5696 ;;
5697 esac
5698 fi
5699
5700
5701
5702 # Check whether --with-pkcs11-module was given.
5703 if test ${with_pkcs11_module+y}
5704 then :
5705 withval=$with_pkcs11_module; pkcs11_module="${withval}"
5706 else case e in #(
5707 e) pkcs11_module="`$PKG_CONFIG --variable=proxy_module --silence-errors p11-kit-1`" ;;
5708 esac
5709 fi
5710
5711
5712 ac_ext=c
5713 ac_cpp='$CPP $CPPFLAGS'
5714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5718 printf %s "checking how to run the C preprocessor... " >&6; }
5719 # On Suns, sometimes $CPP names a directory.
5720 if test -n "$CPP" && test -d "$CPP"; then
5721 CPP=
5722 fi
5723 if test -z "$CPP"; then
5724 if test ${ac_cv_prog_CPP+y}
5725 then :
5726 printf %s "(cached) " >&6
5727 else case e in #(
5728 e) # Double quotes because $CC needs to be expanded
5729 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5730 do
5731 ac_preproc_ok=false
5732 for ac_c_preproc_warn_flag in '' yes
5733 do
5734 # Use a header file that comes with gcc, so configuring glibc
5735 # with a fresh cross-compiler works.
5736 # On the NeXT, cc -E runs the code through the compiler's parser,
5737 # not just through cpp. "Syntax error" is here to catch this case.
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740 #include <limits.h>
5741 Syntax error
5742 _ACEOF
5743 if ac_fn_c_try_cpp "$LINENO"
5744 then :
5745
5746 else case e in #(
5747 e) # Broken: fails on valid input.
5748 continue ;;
5749 esac
5750 fi
5751 rm -f conftest.err conftest.i conftest.$ac_ext
5752
5753 # OK, works on sane cases. Now check whether nonexistent headers
5754 # can be detected and how.
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 #include <ac_nonexistent.h>
5758 _ACEOF
5759 if ac_fn_c_try_cpp "$LINENO"
5760 then :
5761 # Broken: success on invalid input.
5762 continue
5763 else case e in #(
5764 e) # Passes both tests.
5765 ac_preproc_ok=:
5766 break ;;
5767 esac
5768 fi
5769 rm -f conftest.err conftest.i conftest.$ac_ext
5770
5771 done
5772 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5773 rm -f conftest.i conftest.err conftest.$ac_ext
5774 if $ac_preproc_ok
5775 then :
5776 break
5777 fi
5778
5779 done
5780 ac_cv_prog_CPP=$CPP
5781 ;;
5782 esac
5783 fi
5784 CPP=$ac_cv_prog_CPP
5785 else
5786 ac_cv_prog_CPP=$CPP
5787 fi
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5789 printf "%s\n" "$CPP" >&6; }
5790 ac_preproc_ok=false
5791 for ac_c_preproc_warn_flag in '' yes
5792 do
5793 # Use a header file that comes with gcc, so configuring glibc
5794 # with a fresh cross-compiler works.
5795 # On the NeXT, cc -E runs the code through the compiler's parser,
5796 # not just through cpp. "Syntax error" is here to catch this case.
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799 #include <limits.h>
5800 Syntax error
5801 _ACEOF
5802 if ac_fn_c_try_cpp "$LINENO"
5803 then :
5804
5805 else case e in #(
5806 e) # Broken: fails on valid input.
5807 continue ;;
5808 esac
5809 fi
5810 rm -f conftest.err conftest.i conftest.$ac_ext
5811
5812 # OK, works on sane cases. Now check whether nonexistent headers
5813 # can be detected and how.
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 #include <ac_nonexistent.h>
5817 _ACEOF
5818 if ac_fn_c_try_cpp "$LINENO"
5819 then :
5820 # Broken: success on invalid input.
5821 continue
5822 else case e in #(
5823 e) # Passes both tests.
5824 ac_preproc_ok=:
5825 break ;;
5826 esac
5827 fi
5828 rm -f conftest.err conftest.i conftest.$ac_ext
5829
5830 done
5831 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5832 rm -f conftest.i conftest.err conftest.$ac_ext
5833 if $ac_preproc_ok
5834 then :
5835
5836 else case e in #(
5837 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5838 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5839 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5840 See 'config.log' for more details" "$LINENO" 5; } ;;
5841 esac
5842 fi
5843
5844 ac_ext=c
5845 ac_cpp='$CPP $CPPFLAGS'
5846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5849
5850
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5852 printf %s "checking whether ln -s works... " >&6; }
5853 LN_S=$as_ln_s
5854 if test "$LN_S" = "ln -s"; then
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5856 printf "%s\n" "yes" >&6; }
5857 else
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5859 printf "%s\n" "no, using $LN_S" >&6; }
5860 fi
5861
5862
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5864 printf %s "checking for a sed that does not truncate output... " >&6; }
5865 if test ${ac_cv_path_SED+y}
5866 then :
5867 printf %s "(cached) " >&6
5868 else case e in #(
5869 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5870 for ac_i in 1 2 3 4 5 6 7; do
5871 ac_script="$ac_script$as_nl$ac_script"
5872 done
5873 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5874 { ac_script=; unset ac_script;}
5875 if test -z "$SED"; then
5876 ac_path_SED_found=false
5877 # Loop through the user's path and test for each of PROGNAME-LIST
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881 IFS=$as_save_IFS
5882 case $as_dir in #(((
5883 '') as_dir=./ ;;
5884 */) ;;
5885 *) as_dir=$as_dir/ ;;
5886 esac
5887 for ac_prog in sed gsed
5888 do
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5891 as_fn_executable_p "$ac_path_SED" || continue
5892 # Check for GNU ac_path_SED and select it if it is found.
5893 # Check for GNU $ac_path_SED
5894 case `"$ac_path_SED" --version 2>&1` in #(
5895 *GNU*)
5896 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5897 #(
5898 *)
5899 ac_count=0
5900 printf %s 0123456789 >"conftest.in"
5901 while :
5902 do
5903 cat "conftest.in" "conftest.in" >"conftest.tmp"
5904 mv "conftest.tmp" "conftest.in"
5905 cp "conftest.in" "conftest.nl"
5906 printf "%s\n" '' >> "conftest.nl"
5907 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5908 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5909 as_fn_arith $ac_count + 1 && ac_count=$as_val
5910 if test $ac_count -gt ${ac_path_SED_max-0}; then
5911 # Best one so far, save it but keep looking for a better one
5912 ac_cv_path_SED="$ac_path_SED"
5913 ac_path_SED_max=$ac_count
5914 fi
5915 # 10*(2^10) chars as input seems more than enough
5916 test $ac_count -gt 10 && break
5917 done
5918 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5919 esac
5920
5921 $ac_path_SED_found && break 3
5922 done
5923 done
5924 done
5925 IFS=$as_save_IFS
5926 if test -z "$ac_cv_path_SED"; then
5927 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5928 fi
5929 else
5930 ac_cv_path_SED=$SED
5931 fi
5932 ;;
5933 esac
5934 fi
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5936 printf "%s\n" "$ac_cv_path_SED" >&6; }
5937 SED="$ac_cv_path_SED"
5938 rm -f conftest.sed
5939
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5941 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5942 set x ${MAKE-make}
5943 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5944 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5945 then :
5946 printf %s "(cached) " >&6
5947 else case e in #(
5948 e) cat >conftest.make <<\_ACEOF
5949 SHELL = /bin/sh
5950 all:
5951 @echo '@@@%%%=$(MAKE)=@@@%%%'
5952 _ACEOF
5953 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5954 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5955 *@@@%%%=?*=@@@%%%*)
5956 eval ac_cv_prog_make_${ac_make}_set=yes;;
5957 *)
5958 eval ac_cv_prog_make_${ac_make}_set=no;;
5959 esac
5960 rm -f conftest.make ;;
5961 esac
5962 fi
5963 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5965 printf "%s\n" "yes" >&6; }
5966 SET_MAKE=
5967 else
5968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 printf "%s\n" "no" >&6; }
5970 SET_MAKE="MAKE=${MAKE-make}"
5971 fi
5972
5973
5974 case `pwd` in
5975 *\ * | *\ *)
5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5977 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5978 esac
5979
5980
5981
5982 macro_version='2.5.4'
5983 macro_revision='2.5.4'
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998 ltmain=$ac_aux_dir/ltmain.sh
5999
6000 # Backslashify metacharacters that are still active within
6001 # double-quoted strings.
6002 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6003
6004 # Same as above, but do not quote variable references.
6005 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6006
6007 # Sed substitution to delay expansion of an escaped shell variable in a
6008 # double_quote_subst'ed string.
6009 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6010
6011 # Sed substitution to delay expansion of an escaped single quote.
6012 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6013
6014 # Sed substitution to avoid accidental globbing in evaled expressions
6015 no_glob_subst='s/\*/\\\*/g'
6016
6017 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6019 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6020
6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6022 printf %s "checking how to print strings... " >&6; }
6023 # Test print first, because it will be a builtin if present.
6024 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6025 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6026 ECHO='print -r --'
6027 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6028 ECHO='printf %s\n'
6029 else
6030 # Use this function as a fallback that always works.
6031 func_fallback_echo ()
6032 {
6033 eval 'cat <<_LTECHO_EOF
6034 $1
6035 _LTECHO_EOF'
6036 }
6037 ECHO='func_fallback_echo'
6038 fi
6039
6040 # func_echo_all arg...
6041 # Invoke $ECHO with all args, space-separated.
6042 func_echo_all ()
6043 {
6044 $ECHO ""
6045 }
6046
6047 case $ECHO in
6048 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6049 printf "%s\n" "printf" >&6; } ;;
6050 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6051 printf "%s\n" "print -r" >&6; } ;;
6052 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6053 printf "%s\n" "cat" >&6; } ;;
6054 esac
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6070 printf %s "checking for a sed that does not truncate output... " >&6; }
6071 if test ${ac_cv_path_SED+y}
6072 then :
6073 printf %s "(cached) " >&6
6074 else case e in #(
6075 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6076 for ac_i in 1 2 3 4 5 6 7; do
6077 ac_script="$ac_script$as_nl$ac_script"
6078 done
6079 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6080 { ac_script=; unset ac_script;}
6081 if test -z "$SED"; then
6082 ac_path_SED_found=false
6083 # Loop through the user's path and test for each of PROGNAME-LIST
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087 IFS=$as_save_IFS
6088 case $as_dir in #(((
6089 '') as_dir=./ ;;
6090 */) ;;
6091 *) as_dir=$as_dir/ ;;
6092 esac
6093 for ac_prog in sed gsed
6094 do
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6097 as_fn_executable_p "$ac_path_SED" || continue
6098 # Check for GNU ac_path_SED and select it if it is found.
6099 # Check for GNU $ac_path_SED
6100 case `"$ac_path_SED" --version 2>&1` in #(
6101 *GNU*)
6102 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6103 #(
6104 *)
6105 ac_count=0
6106 printf %s 0123456789 >"conftest.in"
6107 while :
6108 do
6109 cat "conftest.in" "conftest.in" >"conftest.tmp"
6110 mv "conftest.tmp" "conftest.in"
6111 cp "conftest.in" "conftest.nl"
6112 printf "%s\n" '' >> "conftest.nl"
6113 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6115 as_fn_arith $ac_count + 1 && ac_count=$as_val
6116 if test $ac_count -gt ${ac_path_SED_max-0}; then
6117 # Best one so far, save it but keep looking for a better one
6118 ac_cv_path_SED="$ac_path_SED"
6119 ac_path_SED_max=$ac_count
6120 fi
6121 # 10*(2^10) chars as input seems more than enough
6122 test $ac_count -gt 10 && break
6123 done
6124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6125 esac
6126
6127 $ac_path_SED_found && break 3
6128 done
6129 done
6130 done
6131 IFS=$as_save_IFS
6132 if test -z "$ac_cv_path_SED"; then
6133 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6134 fi
6135 else
6136 ac_cv_path_SED=$SED
6137 fi
6138 ;;
6139 esac
6140 fi
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6142 printf "%s\n" "$ac_cv_path_SED" >&6; }
6143 SED="$ac_cv_path_SED"
6144 rm -f conftest.sed
6145
6146 test -z "$SED" && SED=sed
6147 Xsed="$SED -e 1s/^X//"
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6160 printf %s "checking for grep that handles long lines and -e... " >&6; }
6161 if test ${ac_cv_path_GREP+y}
6162 then :
6163 printf %s "(cached) " >&6
6164 else case e in #(
6165 e) if test -z "$GREP"; then
6166 ac_path_GREP_found=false
6167 # Loop through the user's path and test for each of PROGNAME-LIST
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6170 do
6171 IFS=$as_save_IFS
6172 case $as_dir in #(((
6173 '') as_dir=./ ;;
6174 */) ;;
6175 *) as_dir=$as_dir/ ;;
6176 esac
6177 for ac_prog in grep ggrep
6178 do
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6181 as_fn_executable_p "$ac_path_GREP" || continue
6182 # Check for GNU ac_path_GREP and select it if it is found.
6183 # Check for GNU $ac_path_GREP
6184 case `"$ac_path_GREP" --version 2>&1` in #(
6185 *GNU*)
6186 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6187 #(
6188 *)
6189 ac_count=0
6190 printf %s 0123456789 >"conftest.in"
6191 while :
6192 do
6193 cat "conftest.in" "conftest.in" >"conftest.tmp"
6194 mv "conftest.tmp" "conftest.in"
6195 cp "conftest.in" "conftest.nl"
6196 printf "%s\n" 'GREP' >> "conftest.nl"
6197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6199 as_fn_arith $ac_count + 1 && ac_count=$as_val
6200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6201 # Best one so far, save it but keep looking for a better one
6202 ac_cv_path_GREP="$ac_path_GREP"
6203 ac_path_GREP_max=$ac_count
6204 fi
6205 # 10*(2^10) chars as input seems more than enough
6206 test $ac_count -gt 10 && break
6207 done
6208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6209 esac
6210
6211 $ac_path_GREP_found && break 3
6212 done
6213 done
6214 done
6215 IFS=$as_save_IFS
6216 if test -z "$ac_cv_path_GREP"; then
6217 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6218 fi
6219 else
6220 ac_cv_path_GREP=$GREP
6221 fi
6222 ;;
6223 esac
6224 fi
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6226 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6227 GREP="$ac_cv_path_GREP"
6228
6229
6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6231 printf %s "checking for egrep... " >&6; }
6232 if test ${ac_cv_path_EGREP+y}
6233 then :
6234 printf %s "(cached) " >&6
6235 else case e in #(
6236 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6237 then ac_cv_path_EGREP="$GREP -E"
6238 else
6239 if test -z "$EGREP"; then
6240 ac_path_EGREP_found=false
6241 # Loop through the user's path and test for each of PROGNAME-LIST
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6244 do
6245 IFS=$as_save_IFS
6246 case $as_dir in #(((
6247 '') as_dir=./ ;;
6248 */) ;;
6249 *) as_dir=$as_dir/ ;;
6250 esac
6251 for ac_prog in egrep
6252 do
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6255 as_fn_executable_p "$ac_path_EGREP" || continue
6256 # Check for GNU ac_path_EGREP and select it if it is found.
6257 # Check for GNU $ac_path_EGREP
6258 case `"$ac_path_EGREP" --version 2>&1` in #(
6259 *GNU*)
6260 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6261 #(
6262 *)
6263 ac_count=0
6264 printf %s 0123456789 >"conftest.in"
6265 while :
6266 do
6267 cat "conftest.in" "conftest.in" >"conftest.tmp"
6268 mv "conftest.tmp" "conftest.in"
6269 cp "conftest.in" "conftest.nl"
6270 printf "%s\n" 'EGREP' >> "conftest.nl"
6271 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6273 as_fn_arith $ac_count + 1 && ac_count=$as_val
6274 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6275 # Best one so far, save it but keep looking for a better one
6276 ac_cv_path_EGREP="$ac_path_EGREP"
6277 ac_path_EGREP_max=$ac_count
6278 fi
6279 # 10*(2^10) chars as input seems more than enough
6280 test $ac_count -gt 10 && break
6281 done
6282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6283 esac
6284
6285 $ac_path_EGREP_found && break 3
6286 done
6287 done
6288 done
6289 IFS=$as_save_IFS
6290 if test -z "$ac_cv_path_EGREP"; then
6291 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6292 fi
6293 else
6294 ac_cv_path_EGREP=$EGREP
6295 fi
6296
6297 fi ;;
6298 esac
6299 fi
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6301 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6302 EGREP="$ac_cv_path_EGREP"
6303
6304 EGREP_TRADITIONAL=$EGREP
6305 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6306
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6308 printf %s "checking for fgrep... " >&6; }
6309 if test ${ac_cv_path_FGREP+y}
6310 then :
6311 printf %s "(cached) " >&6
6312 else case e in #(
6313 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6314 then ac_cv_path_FGREP="$GREP -F"
6315 else
6316 if test -z "$FGREP"; then
6317 ac_path_FGREP_found=false
6318 # Loop through the user's path and test for each of PROGNAME-LIST
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6321 do
6322 IFS=$as_save_IFS
6323 case $as_dir in #(((
6324 '') as_dir=./ ;;
6325 */) ;;
6326 *) as_dir=$as_dir/ ;;
6327 esac
6328 for ac_prog in fgrep
6329 do
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6332 as_fn_executable_p "$ac_path_FGREP" || continue
6333 # Check for GNU ac_path_FGREP and select it if it is found.
6334 # Check for GNU $ac_path_FGREP
6335 case `"$ac_path_FGREP" --version 2>&1` in #(
6336 *GNU*)
6337 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6338 #(
6339 *)
6340 ac_count=0
6341 printf %s 0123456789 >"conftest.in"
6342 while :
6343 do
6344 cat "conftest.in" "conftest.in" >"conftest.tmp"
6345 mv "conftest.tmp" "conftest.in"
6346 cp "conftest.in" "conftest.nl"
6347 printf "%s\n" 'FGREP' >> "conftest.nl"
6348 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6350 as_fn_arith $ac_count + 1 && ac_count=$as_val
6351 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6352 # Best one so far, save it but keep looking for a better one
6353 ac_cv_path_FGREP="$ac_path_FGREP"
6354 ac_path_FGREP_max=$ac_count
6355 fi
6356 # 10*(2^10) chars as input seems more than enough
6357 test $ac_count -gt 10 && break
6358 done
6359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6360 esac
6361
6362 $ac_path_FGREP_found && break 3
6363 done
6364 done
6365 done
6366 IFS=$as_save_IFS
6367 if test -z "$ac_cv_path_FGREP"; then
6368 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6369 fi
6370 else
6371 ac_cv_path_FGREP=$FGREP
6372 fi
6373
6374 fi ;;
6375 esac
6376 fi
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6378 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6379 FGREP="$ac_cv_path_FGREP"
6380
6381
6382 test -z "$GREP" && GREP=grep
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402 # Check whether --with-gnu-ld was given.
6403 if test ${with_gnu_ld+y}
6404 then :
6405 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6406 else case e in #(
6407 e) with_gnu_ld=no ;;
6408 esac
6409 fi
6410
6411 ac_prog=ld
6412 if test yes = "$GCC"; then
6413 # Check if gcc -print-prog-name=ld gives a path.
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6415 printf %s "checking for ld used by $CC... " >&6; }
6416 case $host in
6417 *-*-mingw* | *-*-windows*)
6418 # gcc leaves a trailing carriage return, which upsets mingw
6419 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6420 *)
6421 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6422 esac
6423 case $ac_prog in
6424 # Accept absolute paths.
6425 [\\/]* | ?:[\\/]*)
6426 re_direlt='/[^/][^/]*/\.\./'
6427 # Canonicalize the pathname of ld
6428 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6429 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6430 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6431 done
6432 test -z "$LD" && LD=$ac_prog
6433 ;;
6434 "")
6435 # If it fails, then pretend we aren't using GCC.
6436 ac_prog=ld
6437 ;;
6438 *)
6439 # If it is relative, then search for the first ld in PATH.
6440 with_gnu_ld=unknown
6441 ;;
6442 esac
6443 elif test yes = "$with_gnu_ld"; then
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6445 printf %s "checking for GNU ld... " >&6; }
6446 else
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6448 printf %s "checking for non-GNU ld... " >&6; }
6449 fi
6450 if test ${lt_cv_path_LD+y}
6451 then :
6452 printf %s "(cached) " >&6
6453 else case e in #(
6454 e) if test -z "$LD"; then
6455 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6456 for ac_dir in $PATH; do
6457 IFS=$lt_save_ifs
6458 test -z "$ac_dir" && ac_dir=.
6459 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6460 lt_cv_path_LD=$ac_dir/$ac_prog
6461 # Check to see if the program is GNU ld. I'd rather use --version,
6462 # but apparently some variants of GNU ld only accept -v.
6463 # Break only if it was the GNU/non-GNU ld that we prefer.
6464 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6465 *GNU* | *'with BFD'*)
6466 test no != "$with_gnu_ld" && break
6467 ;;
6468 *)
6469 test yes != "$with_gnu_ld" && break
6470 ;;
6471 esac
6472 fi
6473 done
6474 IFS=$lt_save_ifs
6475 else
6476 lt_cv_path_LD=$LD # Let the user override the test with a path.
6477 fi ;;
6478 esac
6479 fi
6480
6481 LD=$lt_cv_path_LD
6482 if test -n "$LD"; then
6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6484 printf "%s\n" "$LD" >&6; }
6485 else
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 printf "%s\n" "no" >&6; }
6488 fi
6489 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6491 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6492 if test ${lt_cv_prog_gnu_ld+y}
6493 then :
6494 printf %s "(cached) " >&6
6495 else case e in #(
6496 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6497 case `$LD -v 2>&1 </dev/null` in
6498 *GNU* | *'with BFD'*)
6499 lt_cv_prog_gnu_ld=yes
6500 ;;
6501 *)
6502 lt_cv_prog_gnu_ld=no
6503 ;;
6504 esac ;;
6505 esac
6506 fi
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6508 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6509 with_gnu_ld=$lt_cv_prog_gnu_ld
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6520 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6521 if test ${lt_cv_path_NM+y}
6522 then :
6523 printf %s "(cached) " >&6
6524 else case e in #(
6525 e) if test -n "$NM"; then
6526 # Let the user override the test.
6527 lt_cv_path_NM=$NM
6528 else
6529 lt_nm_to_check=${ac_tool_prefix}nm
6530 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6531 lt_nm_to_check="$lt_nm_to_check nm"
6532 fi
6533 for lt_tmp_nm in $lt_nm_to_check; do
6534 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6535 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6536 IFS=$lt_save_ifs
6537 test -z "$ac_dir" && ac_dir=.
6538 tmp_nm=$ac_dir/$lt_tmp_nm
6539 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6540 # Check to see if the nm accepts a BSD-compat flag.
6541 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6542 # nm: unknown option "B" ignored
6543 # Tru64's nm complains that /dev/null is an invalid object file
6544 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6545 case $build_os in
6546 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6547 *) lt_bad_file=/dev/null ;;
6548 esac
6549 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6550 *$lt_bad_file* | *'Invalid file or object type'*)
6551 lt_cv_path_NM="$tmp_nm -B"
6552 break 2
6553 ;;
6554 *)
6555 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6556 */dev/null*)
6557 lt_cv_path_NM="$tmp_nm -p"
6558 break 2
6559 ;;
6560 *)
6561 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6562 continue # so that we can try to find one that supports BSD flags
6563 ;;
6564 esac
6565 ;;
6566 esac
6567 fi
6568 done
6569 IFS=$lt_save_ifs
6570 done
6571 : ${lt_cv_path_NM=no}
6572 fi ;;
6573 esac
6574 fi
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6576 printf "%s\n" "$lt_cv_path_NM" >&6; }
6577 if test no != "$lt_cv_path_NM"; then
6578 NM=$lt_cv_path_NM
6579 else
6580 # Didn't find any BSD compatible name lister, look for dumpbin.
6581 if test -n "$DUMPBIN"; then :
6582 # Let the user override the test.
6583 else
6584 if test -n "$ac_tool_prefix"; then
6585 for ac_prog in dumpbin "link -dump"
6586 do
6587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 printf %s "checking for $ac_word... " >&6; }
6591 if test ${ac_cv_prog_DUMPBIN+y}
6592 then :
6593 printf %s "(cached) " >&6
6594 else case e in #(
6595 e) if test -n "$DUMPBIN"; then
6596 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601 IFS=$as_save_IFS
6602 case $as_dir in #(((
6603 '') as_dir=./ ;;
6604 */) ;;
6605 *) as_dir=$as_dir/ ;;
6606 esac
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6609 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6611 break 2
6612 fi
6613 done
6614 done
6615 IFS=$as_save_IFS
6616
6617 fi ;;
6618 esac
6619 fi
6620 DUMPBIN=$ac_cv_prog_DUMPBIN
6621 if test -n "$DUMPBIN"; then
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6623 printf "%s\n" "$DUMPBIN" >&6; }
6624 else
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 printf "%s\n" "no" >&6; }
6627 fi
6628
6629
6630 test -n "$DUMPBIN" && break
6631 done
6632 fi
6633 if test -z "$DUMPBIN"; then
6634 ac_ct_DUMPBIN=$DUMPBIN
6635 for ac_prog in dumpbin "link -dump"
6636 do
6637 # Extract the first word of "$ac_prog", so it can be a program name with args.
6638 set dummy $ac_prog; ac_word=$2
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 printf %s "checking for $ac_word... " >&6; }
6641 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6642 then :
6643 printf %s "(cached) " >&6
6644 else case e in #(
6645 e) if test -n "$ac_ct_DUMPBIN"; then
6646 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651 IFS=$as_save_IFS
6652 case $as_dir in #(((
6653 '') as_dir=./ ;;
6654 */) ;;
6655 *) as_dir=$as_dir/ ;;
6656 esac
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6659 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663 done
6664 done
6665 IFS=$as_save_IFS
6666
6667 fi ;;
6668 esac
6669 fi
6670 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6671 if test -n "$ac_ct_DUMPBIN"; then
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6673 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6674 else
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 printf "%s\n" "no" >&6; }
6677 fi
6678
6679
6680 test -n "$ac_ct_DUMPBIN" && break
6681 done
6682
6683 if test "x$ac_ct_DUMPBIN" = x; then
6684 DUMPBIN=":"
6685 else
6686 case $cross_compiling:$ac_tool_warned in
6687 yes:)
6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690 ac_tool_warned=yes ;;
6691 esac
6692 DUMPBIN=$ac_ct_DUMPBIN
6693 fi
6694 fi
6695
6696 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6697 *COFF*)
6698 DUMPBIN="$DUMPBIN -symbols -headers"
6699 ;;
6700 *)
6701 DUMPBIN=:
6702 ;;
6703 esac
6704 fi
6705
6706 if test : != "$DUMPBIN"; then
6707 NM=$DUMPBIN
6708 fi
6709 fi
6710 test -z "$NM" && NM=nm
6711
6712
6713
6714
6715
6716
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6718 printf %s "checking the name lister ($NM) interface... " >&6; }
6719 if test ${lt_cv_nm_interface+y}
6720 then :
6721 printf %s "(cached) " >&6
6722 else case e in #(
6723 e) lt_cv_nm_interface="BSD nm"
6724 echo "int some_variable = 0;" > conftest.$ac_ext
6725 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6726 (eval "$ac_compile" 2>conftest.err)
6727 cat conftest.err >&5
6728 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6729 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6730 cat conftest.err >&5
6731 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6732 cat conftest.out >&5
6733 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6734 lt_cv_nm_interface="MS dumpbin"
6735 fi
6736 rm -f conftest* ;;
6737 esac
6738 fi
6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6740 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6741
6742 # find the maximum length of command line arguments
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6744 printf %s "checking the maximum length of command line arguments... " >&6; }
6745 if test ${lt_cv_sys_max_cmd_len+y}
6746 then :
6747 printf %s "(cached) " >&6
6748 else case e in #(
6749 e) i=0
6750 teststring=ABCD
6751
6752 case $build_os in
6753 msdosdjgpp*)
6754 # On DJGPP, this test can blow up pretty badly due to problems in libc
6755 # (any single argument exceeding 2000 bytes causes a buffer overrun
6756 # during glob expansion). Even if it were fixed, the result of this
6757 # check would be larger than it should be.
6758 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6759 ;;
6760
6761 gnu* | ironclad*)
6762 # Under GNU Hurd and Ironclad, this test is not required because there
6763 # is no limit to the length of command line arguments.
6764 # Libtool will interpret -1 as no limit whatsoever
6765 lt_cv_sys_max_cmd_len=-1;
6766 ;;
6767
6768 cygwin* | mingw* | windows* | cegcc*)
6769 # On Win9x/ME, this test blows up -- it succeeds, but takes
6770 # about 5 minutes as the teststring grows exponentially.
6771 # Worse, since 9x/ME are not pre-emptively multitasking,
6772 # you end up with a "frozen" computer, even though with patience
6773 # the test eventually succeeds (with a max line length of 256k).
6774 # Instead, let's just punt: use the minimum linelength reported by
6775 # all of the supported platforms: 8192 (on NT/2K/XP).
6776 lt_cv_sys_max_cmd_len=8192;
6777 ;;
6778
6779 mint*)
6780 # On MiNT this can take a long time and run out of memory.
6781 lt_cv_sys_max_cmd_len=8192;
6782 ;;
6783
6784 amigaos*)
6785 # On AmigaOS with pdksh, this test takes hours, literally.
6786 # So we just punt and use a minimum line length of 8192.
6787 lt_cv_sys_max_cmd_len=8192;
6788 ;;
6789
6790 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6791 # This has been around since 386BSD, at least. Likely further.
6792 if test -x /sbin/sysctl; then
6793 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6794 elif test -x /usr/sbin/sysctl; then
6795 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6796 else
6797 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6798 fi
6799 # And add a safety zone
6800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6802 ;;
6803
6804 interix*)
6805 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6806 lt_cv_sys_max_cmd_len=196608
6807 ;;
6808
6809 os2*)
6810 # The test takes a long time on OS/2.
6811 lt_cv_sys_max_cmd_len=8192
6812 ;;
6813
6814 osf*)
6815 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6816 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6817 # nice to cause kernel panics so lets avoid the loop below.
6818 # First set a reasonable default.
6819 lt_cv_sys_max_cmd_len=16384
6820 #
6821 if test -x /sbin/sysconfig; then
6822 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6823 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6824 esac
6825 fi
6826 ;;
6827 sco3.2v5*)
6828 lt_cv_sys_max_cmd_len=102400
6829 ;;
6830 sysv5* | sco5v6* | sysv4.2uw2*)
6831 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6832 if test -n "$kargmax"; then
6833 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6834 else
6835 lt_cv_sys_max_cmd_len=32768
6836 fi
6837 ;;
6838 *)
6839 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6840 if test -n "$lt_cv_sys_max_cmd_len" && \
6841 test undefined != "$lt_cv_sys_max_cmd_len"; then
6842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6844 else
6845 # Make teststring a little bigger before we do anything with it.
6846 # a 1K string should be a reasonable start.
6847 for i in 1 2 3 4 5 6 7 8; do
6848 teststring=$teststring$teststring
6849 done
6850 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6851 # If test is not a shell built-in, we'll probably end up computing a
6852 # maximum length that is only half of the actual maximum length, but
6853 # we can't tell.
6854 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6855 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6856 test 17 != "$i" # 1/2 MB should be enough
6857 do
6858 i=`expr $i + 1`
6859 teststring=$teststring$teststring
6860 done
6861 # Only check the string length outside the loop.
6862 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6863 teststring=
6864 # Add a significant safety factor because C++ compilers can tack on
6865 # massive amounts of additional arguments before passing them to the
6866 # linker. It appears as though 1/2 is a usable value.
6867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6868 fi
6869 ;;
6870 esac
6871 ;;
6872 esac
6873 fi
6874
6875 if test -n "$lt_cv_sys_max_cmd_len"; then
6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6877 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6878 else
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6880 printf "%s\n" "none" >&6; }
6881 fi
6882 max_cmd_len=$lt_cv_sys_max_cmd_len
6883
6884
6885
6886
6887
6888
6889 : ${CP="cp -f"}
6890 : ${MV="mv -f"}
6891 : ${RM="rm -f"}
6892
6893 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6894 lt_unset=unset
6895 else
6896 lt_unset=false
6897 fi
6898
6899
6900
6901
6902
6903 # test EBCDIC or ASCII
6904 case `echo X|tr X '\101'` in
6905 A) # ASCII based system
6906 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6907 lt_SP2NL='tr \040 \012'
6908 lt_NL2SP='tr \015\012 \040\040'
6909 ;;
6910 *) # EBCDIC based system
6911 lt_SP2NL='tr \100 \n'
6912 lt_NL2SP='tr \r\n \100\100'
6913 ;;
6914 esac
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6925 printf %s "checking how to convert $build file names to $host format... " >&6; }
6926 if test ${lt_cv_to_host_file_cmd+y}
6927 then :
6928 printf %s "(cached) " >&6
6929 else case e in #(
6930 e) case $host in
6931 *-*-mingw* )
6932 case $build in
6933 *-*-mingw* | *-*-windows* ) # actually msys
6934 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6935 ;;
6936 *-*-cygwin* )
6937 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6938 ;;
6939 * ) # otherwise, assume *nix
6940 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6941 ;;
6942 esac
6943 ;;
6944 *-*-cygwin* )
6945 case $build in
6946 *-*-mingw* | *-*-windows* ) # actually msys
6947 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6948 ;;
6949 *-*-cygwin* )
6950 lt_cv_to_host_file_cmd=func_convert_file_noop
6951 ;;
6952 * ) # otherwise, assume *nix
6953 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6954 ;;
6955 esac
6956 ;;
6957 * ) # unhandled hosts (and "normal" native builds)
6958 lt_cv_to_host_file_cmd=func_convert_file_noop
6959 ;;
6960 esac
6961 ;;
6962 esac
6963 fi
6964
6965 to_host_file_cmd=$lt_cv_to_host_file_cmd
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6967 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6968
6969
6970
6971
6972
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6974 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6975 if test ${lt_cv_to_tool_file_cmd+y}
6976 then :
6977 printf %s "(cached) " >&6
6978 else case e in #(
6979 e) #assume ordinary cross tools, or native build.
6980 lt_cv_to_tool_file_cmd=func_convert_file_noop
6981 case $host in
6982 *-*-mingw* | *-*-windows* )
6983 case $build in
6984 *-*-mingw* | *-*-windows* ) # actually msys
6985 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6986 ;;
6987 esac
6988 ;;
6989 esac
6990 ;;
6991 esac
6992 fi
6993
6994 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6996 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6997
6998
6999
7000
7001
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7003 printf %s "checking for $LD option to reload object files... " >&6; }
7004 if test ${lt_cv_ld_reload_flag+y}
7005 then :
7006 printf %s "(cached) " >&6
7007 else case e in #(
7008 e) lt_cv_ld_reload_flag='-r' ;;
7009 esac
7010 fi
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7012 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7013 reload_flag=$lt_cv_ld_reload_flag
7014 case $reload_flag in
7015 "" | " "*) ;;
7016 *) reload_flag=" $reload_flag" ;;
7017 esac
7018 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7019 case $host_os in
7020 cygwin* | mingw* | windows* | pw32* | cegcc*)
7021 if test yes != "$GCC"; then
7022 reload_cmds=false
7023 fi
7024 ;;
7025 darwin*)
7026 if test yes = "$GCC"; then
7027 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7028 else
7029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7030 fi
7031 ;;
7032 esac
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042 # Extract the first word of "file", so it can be a program name with args.
7043 set dummy file; ac_word=$2
7044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 printf %s "checking for $ac_word... " >&6; }
7046 if test ${ac_cv_prog_FILECMD+y}
7047 then :
7048 printf %s "(cached) " >&6
7049 else case e in #(
7050 e) if test -n "$FILECMD"; then
7051 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7052 else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056 IFS=$as_save_IFS
7057 case $as_dir in #(((
7058 '') as_dir=./ ;;
7059 */) ;;
7060 *) as_dir=$as_dir/ ;;
7061 esac
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7064 ac_cv_prog_FILECMD="file"
7065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068 done
7069 done
7070 IFS=$as_save_IFS
7071
7072 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7073 fi ;;
7074 esac
7075 fi
7076 FILECMD=$ac_cv_prog_FILECMD
7077 if test -n "$FILECMD"; then
7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7079 printf "%s\n" "$FILECMD" >&6; }
7080 else
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082 printf "%s\n" "no" >&6; }
7083 fi
7084
7085
7086
7087
7088
7089
7090
7091
7092 if test -n "$ac_tool_prefix"; then
7093 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 printf %s "checking for $ac_word... " >&6; }
7097 if test ${ac_cv_prog_OBJDUMP+y}
7098 then :
7099 printf %s "(cached) " >&6
7100 else case e in #(
7101 e) if test -n "$OBJDUMP"; then
7102 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107 IFS=$as_save_IFS
7108 case $as_dir in #(((
7109 '') as_dir=./ ;;
7110 */) ;;
7111 *) as_dir=$as_dir/ ;;
7112 esac
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119 done
7120 done
7121 IFS=$as_save_IFS
7122
7123 fi ;;
7124 esac
7125 fi
7126 OBJDUMP=$ac_cv_prog_OBJDUMP
7127 if test -n "$OBJDUMP"; then
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7129 printf "%s\n" "$OBJDUMP" >&6; }
7130 else
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 printf "%s\n" "no" >&6; }
7133 fi
7134
7135
7136 fi
7137 if test -z "$ac_cv_prog_OBJDUMP"; then
7138 ac_ct_OBJDUMP=$OBJDUMP
7139 # Extract the first word of "objdump", so it can be a program name with args.
7140 set dummy objdump; ac_word=$2
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 printf %s "checking for $ac_word... " >&6; }
7143 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7144 then :
7145 printf %s "(cached) " >&6
7146 else case e in #(
7147 e) if test -n "$ac_ct_OBJDUMP"; then
7148 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153 IFS=$as_save_IFS
7154 case $as_dir in #(((
7155 '') as_dir=./ ;;
7156 */) ;;
7157 *) as_dir=$as_dir/ ;;
7158 esac
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7163 break 2
7164 fi
7165 done
7166 done
7167 IFS=$as_save_IFS
7168
7169 fi ;;
7170 esac
7171 fi
7172 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7173 if test -n "$ac_ct_OBJDUMP"; then
7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7175 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7176 else
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 printf "%s\n" "no" >&6; }
7179 fi
7180
7181 if test "x$ac_ct_OBJDUMP" = x; then
7182 OBJDUMP="false"
7183 else
7184 case $cross_compiling:$ac_tool_warned in
7185 yes:)
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7187 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7188 ac_tool_warned=yes ;;
7189 esac
7190 OBJDUMP=$ac_ct_OBJDUMP
7191 fi
7192 else
7193 OBJDUMP="$ac_cv_prog_OBJDUMP"
7194 fi
7195
7196 test -z "$OBJDUMP" && OBJDUMP=objdump
7197
7198
7199
7200
7201
7202
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7204 printf %s "checking how to recognize dependent libraries... " >&6; }
7205 if test ${lt_cv_deplibs_check_method+y}
7206 then :
7207 printf %s "(cached) " >&6
7208 else case e in #(
7209 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7210 lt_cv_file_magic_test_file=
7211 lt_cv_deplibs_check_method='unknown'
7212 # Need to set the preceding variable on all platforms that support
7213 # interlibrary dependencies.
7214 # 'none' -- dependencies not supported.
7215 # 'unknown' -- same as none, but documents that we really don't know.
7216 # 'pass_all' -- all dependencies passed with no checks.
7217 # 'file_magic [[regex]]' -- check by looking for files in library path
7218 # that responds to the $file_magic_cmd with a given extended regex.
7219 # If you have 'file' or equivalent on your system and you're not sure
7220 # whether 'pass_all' will *always* work, you probably want this one.
7221
7222 case $host_os in
7223 aix[4-9]*)
7224 lt_cv_deplibs_check_method=pass_all
7225 ;;
7226
7227 beos*)
7228 lt_cv_deplibs_check_method=pass_all
7229 ;;
7230
7231 bsdi[45]*)
7232 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7233 lt_cv_file_magic_cmd='$FILECMD -L'
7234 lt_cv_file_magic_test_file=/shlib/libc.so
7235 ;;
7236
7237 cygwin*)
7238 # func_win32_libid is a shell function defined in ltmain.sh
7239 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7240 lt_cv_file_magic_cmd='func_win32_libid'
7241 ;;
7242
7243 mingw* | windows* | pw32*)
7244 # Base MSYS/MinGW do not provide the 'file' command needed by
7245 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7246 # unless we find 'file', for example because we are cross-compiling.
7247 if ( file / ) >/dev/null 2>&1; then
7248 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7249 lt_cv_file_magic_cmd='func_win32_libid'
7250 else
7251 # Keep this pattern in sync with the one in func_win32_libid.
7252 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7253 lt_cv_file_magic_cmd='$OBJDUMP -f'
7254 fi
7255 ;;
7256
7257 cegcc*)
7258 # use the weaker test based on 'objdump'. See mingw*.
7259 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7260 lt_cv_file_magic_cmd='$OBJDUMP -f'
7261 ;;
7262
7263 darwin* | rhapsody*)
7264 lt_cv_deplibs_check_method=pass_all
7265 ;;
7266
7267 freebsd* | dragonfly* | midnightbsd*)
7268 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7269 case $host_cpu in
7270 i*86 )
7271 # Not sure whether the presence of OpenBSD here was a mistake.
7272 # Let's accept both of them until this is cleared up.
7273 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7274 lt_cv_file_magic_cmd=$FILECMD
7275 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7276 ;;
7277 esac
7278 else
7279 lt_cv_deplibs_check_method=pass_all
7280 fi
7281 ;;
7282
7283 haiku*)
7284 lt_cv_deplibs_check_method=pass_all
7285 ;;
7286
7287 hpux10.20* | hpux11*)
7288 lt_cv_file_magic_cmd=$FILECMD
7289 case $host_cpu in
7290 ia64*)
7291 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7292 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7293 ;;
7294 hppa*64*)
7295 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]'
7296 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7297 ;;
7298 *)
7299 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7300 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7301 ;;
7302 esac
7303 ;;
7304
7305 interix[3-9]*)
7306 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7308 ;;
7309
7310 irix5* | irix6* | nonstopux*)
7311 case $LD in
7312 *-32|*"-32 ") libmagic=32-bit;;
7313 *-n32|*"-n32 ") libmagic=N32;;
7314 *-64|*"-64 ") libmagic=64-bit;;
7315 *) libmagic=never-match;;
7316 esac
7317 lt_cv_deplibs_check_method=pass_all
7318 ;;
7319
7320 # This must be glibc/ELF.
7321 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7322 lt_cv_deplibs_check_method=pass_all
7323 ;;
7324
7325 *-mlibc)
7326 lt_cv_deplibs_check_method=pass_all
7327 ;;
7328
7329 netbsd* | netbsdelf*-gnu)
7330 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7332 else
7333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7334 fi
7335 ;;
7336
7337 newos6*)
7338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7339 lt_cv_file_magic_cmd=$FILECMD
7340 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7341 ;;
7342
7343 *nto* | *qnx*)
7344 lt_cv_deplibs_check_method=pass_all
7345 ;;
7346
7347 openbsd*)
7348 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7350 else
7351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7352 fi
7353 ;;
7354
7355 osf3* | osf4* | osf5*)
7356 lt_cv_deplibs_check_method=pass_all
7357 ;;
7358
7359 rdos*)
7360 lt_cv_deplibs_check_method=pass_all
7361 ;;
7362
7363 serenity*)
7364 lt_cv_deplibs_check_method=pass_all
7365 ;;
7366
7367 solaris*)
7368 lt_cv_deplibs_check_method=pass_all
7369 ;;
7370
7371 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7372 lt_cv_deplibs_check_method=pass_all
7373 ;;
7374
7375 sysv4 | sysv4.3*)
7376 case $host_vendor in
7377 motorola)
7378 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]'
7379 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7380 ;;
7381 ncr)
7382 lt_cv_deplibs_check_method=pass_all
7383 ;;
7384 sequent)
7385 lt_cv_file_magic_cmd='/bin/file'
7386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7387 ;;
7388 sni)
7389 lt_cv_file_magic_cmd='/bin/file'
7390 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7391 lt_cv_file_magic_test_file=/lib/libc.so
7392 ;;
7393 siemens)
7394 lt_cv_deplibs_check_method=pass_all
7395 ;;
7396 pc)
7397 lt_cv_deplibs_check_method=pass_all
7398 ;;
7399 esac
7400 ;;
7401
7402 tpf*)
7403 lt_cv_deplibs_check_method=pass_all
7404 ;;
7405 os2*)
7406 lt_cv_deplibs_check_method=pass_all
7407 ;;
7408 esac
7409 ;;
7410 esac
7411 fi
7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7413 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7414
7415 file_magic_glob=
7416 want_nocaseglob=no
7417 if test "$build" = "$host"; then
7418 case $host_os in
7419 mingw* | windows* | pw32*)
7420 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7421 want_nocaseglob=yes
7422 else
7423 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7424 fi
7425 ;;
7426 esac
7427 fi
7428
7429 file_magic_cmd=$lt_cv_file_magic_cmd
7430 deplibs_check_method=$lt_cv_deplibs_check_method
7431 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454 if test -n "$ac_tool_prefix"; then
7455 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7456 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 printf %s "checking for $ac_word... " >&6; }
7459 if test ${ac_cv_prog_DLLTOOL+y}
7460 then :
7461 printf %s "(cached) " >&6
7462 else case e in #(
7463 e) if test -n "$DLLTOOL"; then
7464 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469 IFS=$as_save_IFS
7470 case $as_dir in #(((
7471 '') as_dir=./ ;;
7472 */) ;;
7473 *) as_dir=$as_dir/ ;;
7474 esac
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7479 break 2
7480 fi
7481 done
7482 done
7483 IFS=$as_save_IFS
7484
7485 fi ;;
7486 esac
7487 fi
7488 DLLTOOL=$ac_cv_prog_DLLTOOL
7489 if test -n "$DLLTOOL"; then
7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7491 printf "%s\n" "$DLLTOOL" >&6; }
7492 else
7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 printf "%s\n" "no" >&6; }
7495 fi
7496
7497
7498 fi
7499 if test -z "$ac_cv_prog_DLLTOOL"; then
7500 ac_ct_DLLTOOL=$DLLTOOL
7501 # Extract the first word of "dlltool", so it can be a program name with args.
7502 set dummy dlltool; ac_word=$2
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 printf %s "checking for $ac_word... " >&6; }
7505 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7506 then :
7507 printf %s "(cached) " >&6
7508 else case e in #(
7509 e) if test -n "$ac_ct_DLLTOOL"; then
7510 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7511 else
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7514 do
7515 IFS=$as_save_IFS
7516 case $as_dir in #(((
7517 '') as_dir=./ ;;
7518 */) ;;
7519 *) as_dir=$as_dir/ ;;
7520 esac
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7523 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527 done
7528 done
7529 IFS=$as_save_IFS
7530
7531 fi ;;
7532 esac
7533 fi
7534 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7535 if test -n "$ac_ct_DLLTOOL"; then
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7537 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7538 else
7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 printf "%s\n" "no" >&6; }
7541 fi
7542
7543 if test "x$ac_ct_DLLTOOL" = x; then
7544 DLLTOOL="false"
7545 else
7546 case $cross_compiling:$ac_tool_warned in
7547 yes:)
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7549 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7550 ac_tool_warned=yes ;;
7551 esac
7552 DLLTOOL=$ac_ct_DLLTOOL
7553 fi
7554 else
7555 DLLTOOL="$ac_cv_prog_DLLTOOL"
7556 fi
7557
7558 test -z "$DLLTOOL" && DLLTOOL=dlltool
7559
7560
7561
7562
7563
7564
7565
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7567 printf %s "checking how to associate runtime and link libraries... " >&6; }
7568 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7569 then :
7570 printf %s "(cached) " >&6
7571 else case e in #(
7572 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7573
7574 case $host_os in
7575 cygwin* | mingw* | windows* | pw32* | cegcc*)
7576 # two different shell functions defined in ltmain.sh;
7577 # decide which one to use based on capabilities of $DLLTOOL
7578 case `$DLLTOOL --help 2>&1` in
7579 *--identify-strict*)
7580 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7581 ;;
7582 *)
7583 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7584 ;;
7585 esac
7586 ;;
7587 *)
7588 # fallback: assume linklib IS sharedlib
7589 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7590 ;;
7591 esac
7592 ;;
7593 esac
7594 fi
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7596 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7597 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7598 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7599
7600
7601
7602
7603
7604
7605
7606 if test -n "$ac_tool_prefix"; then
7607 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7608 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 printf %s "checking for $ac_word... " >&6; }
7611 if test ${ac_cv_prog_RANLIB+y}
7612 then :
7613 printf %s "(cached) " >&6
7614 else case e in #(
7615 e) if test -n "$RANLIB"; then
7616 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621 IFS=$as_save_IFS
7622 case $as_dir in #(((
7623 '') as_dir=./ ;;
7624 */) ;;
7625 *) as_dir=$as_dir/ ;;
7626 esac
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7631 break 2
7632 fi
7633 done
7634 done
7635 IFS=$as_save_IFS
7636
7637 fi ;;
7638 esac
7639 fi
7640 RANLIB=$ac_cv_prog_RANLIB
7641 if test -n "$RANLIB"; then
7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7643 printf "%s\n" "$RANLIB" >&6; }
7644 else
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 printf "%s\n" "no" >&6; }
7647 fi
7648
7649
7650 fi
7651 if test -z "$ac_cv_prog_RANLIB"; then
7652 ac_ct_RANLIB=$RANLIB
7653 # Extract the first word of "ranlib", so it can be a program name with args.
7654 set dummy ranlib; ac_word=$2
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 printf %s "checking for $ac_word... " >&6; }
7657 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7658 then :
7659 printf %s "(cached) " >&6
7660 else case e in #(
7661 e) if test -n "$ac_ct_RANLIB"; then
7662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667 IFS=$as_save_IFS
7668 case $as_dir in #(((
7669 '') as_dir=./ ;;
7670 */) ;;
7671 *) as_dir=$as_dir/ ;;
7672 esac
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7675 ac_cv_prog_ac_ct_RANLIB="ranlib"
7676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7677 break 2
7678 fi
7679 done
7680 done
7681 IFS=$as_save_IFS
7682
7683 fi ;;
7684 esac
7685 fi
7686 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7687 if test -n "$ac_ct_RANLIB"; then
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7689 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7690 else
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 printf "%s\n" "no" >&6; }
7693 fi
7694
7695 if test "x$ac_ct_RANLIB" = x; then
7696 RANLIB=":"
7697 else
7698 case $cross_compiling:$ac_tool_warned in
7699 yes:)
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702 ac_tool_warned=yes ;;
7703 esac
7704 RANLIB=$ac_ct_RANLIB
7705 fi
7706 else
7707 RANLIB="$ac_cv_prog_RANLIB"
7708 fi
7709
7710 if test -n "$ac_tool_prefix"; then
7711 for ac_prog in ar
7712 do
7713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7714 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 printf %s "checking for $ac_word... " >&6; }
7717 if test ${ac_cv_prog_AR+y}
7718 then :
7719 printf %s "(cached) " >&6
7720 else case e in #(
7721 e) if test -n "$AR"; then
7722 ac_cv_prog_AR="$AR" # Let the user override the test.
7723 else
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727 IFS=$as_save_IFS
7728 case $as_dir in #(((
7729 '') as_dir=./ ;;
7730 */) ;;
7731 *) as_dir=$as_dir/ ;;
7732 esac
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7735 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
7739 done
7740 done
7741 IFS=$as_save_IFS
7742
7743 fi ;;
7744 esac
7745 fi
7746 AR=$ac_cv_prog_AR
7747 if test -n "$AR"; then
7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7749 printf "%s\n" "$AR" >&6; }
7750 else
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 printf "%s\n" "no" >&6; }
7753 fi
7754
7755
7756 test -n "$AR" && break
7757 done
7758 fi
7759 if test -z "$AR"; then
7760 ac_ct_AR=$AR
7761 for ac_prog in ar
7762 do
7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 printf %s "checking for $ac_word... " >&6; }
7767 if test ${ac_cv_prog_ac_ct_AR+y}
7768 then :
7769 printf %s "(cached) " >&6
7770 else case e in #(
7771 e) if test -n "$ac_ct_AR"; then
7772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777 IFS=$as_save_IFS
7778 case $as_dir in #(((
7779 '') as_dir=./ ;;
7780 */) ;;
7781 *) as_dir=$as_dir/ ;;
7782 esac
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7785 ac_cv_prog_ac_ct_AR="$ac_prog"
7786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7787 break 2
7788 fi
7789 done
7790 done
7791 IFS=$as_save_IFS
7792
7793 fi ;;
7794 esac
7795 fi
7796 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7797 if test -n "$ac_ct_AR"; then
7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7799 printf "%s\n" "$ac_ct_AR" >&6; }
7800 else
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 printf "%s\n" "no" >&6; }
7803 fi
7804
7805
7806 test -n "$ac_ct_AR" && break
7807 done
7808
7809 if test "x$ac_ct_AR" = x; then
7810 AR="false"
7811 else
7812 case $cross_compiling:$ac_tool_warned in
7813 yes:)
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7815 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7816 ac_tool_warned=yes ;;
7817 esac
7818 AR=$ac_ct_AR
7819 fi
7820 fi
7821
7822 : ${AR=ar}
7823
7824
7825
7826
7827
7828
7829 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7830 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7831 # higher priority because that's what people were doing historically (setting
7832 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7833 # variable obsoleted/removed.
7834
7835 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7836 lt_ar_flags=$AR_FLAGS
7837
7838
7839
7840
7841
7842
7843 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7844 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7845
7846
7847
7848
7849
7850
7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7852 printf %s "checking for archiver @FILE support... " >&6; }
7853 if test ${lt_cv_ar_at_file+y}
7854 then :
7855 printf %s "(cached) " >&6
7856 else case e in #(
7857 e) lt_cv_ar_at_file=no
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7860
7861 int
7862 main (void)
7863 {
7864
7865 ;
7866 return 0;
7867 }
7868 _ACEOF
7869 if ac_fn_c_try_compile "$LINENO"
7870 then :
7871 echo conftest.$ac_objext > conftest.lst
7872 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7874 (eval $lt_ar_try) 2>&5
7875 ac_status=$?
7876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877 test $ac_status = 0; }
7878 if test 0 -eq "$ac_status"; then
7879 # Ensure the archiver fails upon bogus file names.
7880 rm -f conftest.$ac_objext libconftest.a
7881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7882 (eval $lt_ar_try) 2>&5
7883 ac_status=$?
7884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7885 test $ac_status = 0; }
7886 if test 0 -ne "$ac_status"; then
7887 lt_cv_ar_at_file=@
7888 fi
7889 fi
7890 rm -f conftest.* libconftest.a
7891
7892 fi
7893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7894 ;;
7895 esac
7896 fi
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7898 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7899
7900 if test no = "$lt_cv_ar_at_file"; then
7901 archiver_list_spec=
7902 else
7903 archiver_list_spec=$lt_cv_ar_at_file
7904 fi
7905
7906
7907
7908
7909
7910
7911
7912 if test -n "$ac_tool_prefix"; then
7913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7914 set dummy ${ac_tool_prefix}strip; ac_word=$2
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916 printf %s "checking for $ac_word... " >&6; }
7917 if test ${ac_cv_prog_STRIP+y}
7918 then :
7919 printf %s "(cached) " >&6
7920 else case e in #(
7921 e) if test -n "$STRIP"; then
7922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 case $as_dir in #(((
7929 '') as_dir=./ ;;
7930 */) ;;
7931 *) as_dir=$as_dir/ ;;
7932 esac
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7935 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7937 break 2
7938 fi
7939 done
7940 done
7941 IFS=$as_save_IFS
7942
7943 fi ;;
7944 esac
7945 fi
7946 STRIP=$ac_cv_prog_STRIP
7947 if test -n "$STRIP"; then
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7949 printf "%s\n" "$STRIP" >&6; }
7950 else
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 printf "%s\n" "no" >&6; }
7953 fi
7954
7955
7956 fi
7957 if test -z "$ac_cv_prog_STRIP"; then
7958 ac_ct_STRIP=$STRIP
7959 # Extract the first word of "strip", so it can be a program name with args.
7960 set dummy strip; ac_word=$2
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 printf %s "checking for $ac_word... " >&6; }
7963 if test ${ac_cv_prog_ac_ct_STRIP+y}
7964 then :
7965 printf %s "(cached) " >&6
7966 else case e in #(
7967 e) if test -n "$ac_ct_STRIP"; then
7968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7969 else
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7972 do
7973 IFS=$as_save_IFS
7974 case $as_dir in #(((
7975 '') as_dir=./ ;;
7976 */) ;;
7977 *) as_dir=$as_dir/ ;;
7978 esac
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7981 ac_cv_prog_ac_ct_STRIP="strip"
7982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7983 break 2
7984 fi
7985 done
7986 done
7987 IFS=$as_save_IFS
7988
7989 fi ;;
7990 esac
7991 fi
7992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7993 if test -n "$ac_ct_STRIP"; then
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7995 printf "%s\n" "$ac_ct_STRIP" >&6; }
7996 else
7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998 printf "%s\n" "no" >&6; }
7999 fi
8000
8001 if test "x$ac_ct_STRIP" = x; then
8002 STRIP=":"
8003 else
8004 case $cross_compiling:$ac_tool_warned in
8005 yes:)
8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8007 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8008 ac_tool_warned=yes ;;
8009 esac
8010 STRIP=$ac_ct_STRIP
8011 fi
8012 else
8013 STRIP="$ac_cv_prog_STRIP"
8014 fi
8015
8016 test -z "$STRIP" && STRIP=:
8017
8018
8019
8020
8021
8022
8023
8024 test -z "$RANLIB" && RANLIB=:
8025
8026
8027
8028
8029
8030
8031 # Determine commands to create old-style static archives.
8032 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8033 old_postinstall_cmds='chmod 644 $oldlib'
8034 old_postuninstall_cmds=
8035
8036 if test -n "$RANLIB"; then
8037 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8038 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8039 fi
8040
8041 case $host_os in
8042 darwin*)
8043 lock_old_archive_extraction=yes ;;
8044 *)
8045 lock_old_archive_extraction=no ;;
8046 esac
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086 # If no C compiler was specified, use CC.
8087 LTCC=${LTCC-"$CC"}
8088
8089 # If no C compiler flags were specified, use CFLAGS.
8090 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8091
8092 # Allow CC to be a program name with arguments.
8093 compiler=$CC
8094
8095
8096 # Check for command to grab the raw symbol name followed by C symbol from nm.
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8098 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8099 if test ${lt_cv_sys_global_symbol_pipe+y}
8100 then :
8101 printf %s "(cached) " >&6
8102 else case e in #(
8103 e)
8104 # These are sane defaults that work on at least a few old systems.
8105 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8106
8107 # Character class describing NM global symbol codes.
8108 symcode='[BCDEGRST]'
8109
8110 # Regexp to match symbols that can be accessed directly from C.
8111 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8112
8113 # Define system-specific variables.
8114 case $host_os in
8115 aix*)
8116 symcode='[BCDT]'
8117 ;;
8118 cygwin* | mingw* | windows* | pw32* | cegcc*)
8119 symcode='[ABCDGISTW]'
8120 ;;
8121 hpux*)
8122 if test ia64 = "$host_cpu"; then
8123 symcode='[ABCDEGRST]'
8124 fi
8125 ;;
8126 irix* | nonstopux*)
8127 symcode='[BCDEGRST]'
8128 ;;
8129 osf*)
8130 symcode='[BCDEGQRST]'
8131 ;;
8132 solaris*)
8133 symcode='[BCDRT]'
8134 ;;
8135 sco3.2v5*)
8136 symcode='[DT]'
8137 ;;
8138 sysv4.2uw2*)
8139 symcode='[DT]'
8140 ;;
8141 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8142 symcode='[ABDT]'
8143 ;;
8144 sysv4)
8145 symcode='[DFNSTU]'
8146 ;;
8147 esac
8148
8149 # If we're using GNU nm, then use its standard symbol codes.
8150 case `$NM -V 2>&1` in
8151 *GNU* | *'with BFD'*)
8152 symcode='[ABCDGIRSTW]' ;;
8153 esac
8154
8155 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8156 # Gets list of data symbols to import.
8157 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8158 # Adjust the below global symbol transforms to fixup imported variables.
8159 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8160 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8161 lt_c_name_lib_hook="\
8162 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8163 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8164 else
8165 # Disable hooks by default.
8166 lt_cv_sys_global_symbol_to_import=
8167 lt_cdecl_hook=
8168 lt_c_name_hook=
8169 lt_c_name_lib_hook=
8170 fi
8171
8172 # Transform an extracted symbol line into a proper C declaration.
8173 # Some systems (esp. on ia64) link data and code symbols differently,
8174 # so use this general approach.
8175 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8176 $lt_cdecl_hook\
8177 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8178 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8179
8180 # Transform an extracted symbol line into symbol name and symbol address
8181 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8182 $lt_c_name_hook\
8183 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8184 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8185
8186 # Transform an extracted symbol line into symbol name with lib prefix and
8187 # symbol address.
8188 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8189 $lt_c_name_lib_hook\
8190 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8191 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8192 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8193
8194 # Handle CRLF in mingw tool chain
8195 opt_cr=
8196 case $build_os in
8197 mingw* | windows*)
8198 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8199 ;;
8200 esac
8201
8202 # Try without a prefix underscore, then with it.
8203 for ac_symprfx in "" "_"; do
8204
8205 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8206 symxfrm="\\1 $ac_symprfx\\2 \\2"
8207
8208 # Write the raw and C identifiers.
8209 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8210 # Fake it for dumpbin and say T for any non-static function,
8211 # D for any global variable and I for any imported variable.
8212 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8213 # which start with @ or ?.
8214 lt_cv_sys_global_symbol_pipe="$AWK '"\
8215 " {last_section=section; section=\$ 3};"\
8216 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8217 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8218 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8219 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8220 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8221 " \$ 0!~/External *\|/{next};"\
8222 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8223 " {if(hide[section]) next};"\
8224 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8225 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8226 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8227 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8228 " ' prfx=^$ac_symprfx"
8229 else
8230 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8231 fi
8232 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8233
8234 # Check to see that the pipe works correctly.
8235 pipe_works=no
8236
8237 rm -f conftest*
8238 cat > conftest.$ac_ext <<_LT_EOF
8239 #ifdef __cplusplus
8240 extern "C" {
8241 #endif
8242 char nm_test_var;
8243 void nm_test_func(void);
8244 void nm_test_func(void){}
8245 #ifdef __cplusplus
8246 }
8247 #endif
8248 int main(void){nm_test_var='a';nm_test_func();return(0);}
8249 _LT_EOF
8250
8251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8252 (eval $ac_compile) 2>&5
8253 ac_status=$?
8254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8255 test $ac_status = 0; }; then
8256 # Now try to grab the symbols.
8257 nlist=conftest.nm
8258 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8259 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8260 # Try sorting and uniquifying the output.
8261 if sort "$nlist" | uniq > "$nlist"T; then
8262 mv -f "$nlist"T "$nlist"
8263 else
8264 rm -f "$nlist"T
8265 fi
8266
8267 # Make sure that we snagged all the symbols we need.
8268 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8269 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8270 cat <<_LT_EOF > conftest.$ac_ext
8271 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8272 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8273 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8274 relocations are performed -- see ld's documentation on pseudo-relocs. */
8275 # define LT_DLSYM_CONST
8276 #elif defined __osf__
8277 /* This system does not cope well with relocations in const data. */
8278 # define LT_DLSYM_CONST
8279 #else
8280 # define LT_DLSYM_CONST const
8281 #endif
8282
8283 #ifdef __cplusplus
8284 extern "C" {
8285 #endif
8286
8287 _LT_EOF
8288 # Now generate the symbol file.
8289 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8290
8291 cat <<_LT_EOF >> conftest.$ac_ext
8292
8293 /* The mapping between symbol names and symbols. */
8294 LT_DLSYM_CONST struct {
8295 const char *name;
8296 void *address;
8297 }
8298 lt__PROGRAM__LTX_preloaded_symbols[] =
8299 {
8300 { "@PROGRAM@", (void *) 0 },
8301 _LT_EOF
8302 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8303 cat <<\_LT_EOF >> conftest.$ac_ext
8304 {0, (void *) 0}
8305 };
8306
8307 /* This works around a problem in FreeBSD linker */
8308 #ifdef FREEBSD_WORKAROUND
8309 static const void *lt_preloaded_setup() {
8310 return lt__PROGRAM__LTX_preloaded_symbols;
8311 }
8312 #endif
8313
8314 #ifdef __cplusplus
8315 }
8316 #endif
8317 _LT_EOF
8318 # Now try linking the two files.
8319 mv conftest.$ac_objext conftstm.$ac_objext
8320 lt_globsym_save_LIBS=$LIBS
8321 lt_globsym_save_CFLAGS=$CFLAGS
8322 LIBS=conftstm.$ac_objext
8323 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8325 (eval $ac_link) 2>&5
8326 ac_status=$?
8327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8328 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8329 pipe_works=yes
8330 fi
8331 LIBS=$lt_globsym_save_LIBS
8332 CFLAGS=$lt_globsym_save_CFLAGS
8333 else
8334 echo "cannot find nm_test_func in $nlist" >&5
8335 fi
8336 else
8337 echo "cannot find nm_test_var in $nlist" >&5
8338 fi
8339 else
8340 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8341 fi
8342 else
8343 echo "$progname: failed program was:" >&5
8344 cat conftest.$ac_ext >&5
8345 fi
8346 rm -rf conftest* conftst*
8347
8348 # Do not use the global_symbol_pipe unless it works.
8349 if test yes = "$pipe_works"; then
8350 break
8351 else
8352 lt_cv_sys_global_symbol_pipe=
8353 fi
8354 done
8355 ;;
8356 esac
8357 fi
8358
8359 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8360 lt_cv_sys_global_symbol_to_cdecl=
8361 fi
8362 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8364 printf "%s\n" "failed" >&6; }
8365 else
8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8367 printf "%s\n" "ok" >&6; }
8368 fi
8369
8370 # Response file support.
8371 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8372 nm_file_list_spec='@'
8373 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8374 nm_file_list_spec='@'
8375 fi
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8414 printf %s "checking for sysroot... " >&6; }
8415
8416 # Check whether --with-sysroot was given.
8417 if test ${with_sysroot+y}
8418 then :
8419 withval=$with_sysroot;
8420 else case e in #(
8421 e) with_sysroot=no ;;
8422 esac
8423 fi
8424
8425
8426 lt_sysroot=
8427 case $with_sysroot in #(
8428 yes)
8429 if test yes = "$GCC"; then
8430 # Trim trailing / since we'll always append absolute paths and we want
8431 # to avoid //, if only for less confusing output for the user.
8432 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8433 fi
8434 ;; #(
8435 /*)
8436 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8437 ;; #(
8438 no|'')
8439 ;; #(
8440 *)
8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8442 printf "%s\n" "$with_sysroot" >&6; }
8443 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8444 ;;
8445 esac
8446
8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8448 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8449
8450
8451
8452
8453
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8455 printf %s "checking for a working dd... " >&6; }
8456 if test ${ac_cv_path_lt_DD+y}
8457 then :
8458 printf %s "(cached) " >&6
8459 else case e in #(
8460 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8461 cat conftest.i conftest.i >conftest2.i
8462 : ${lt_DD:=$DD}
8463 if test -z "$lt_DD"; then
8464 ac_path_lt_DD_found=false
8465 # Loop through the user's path and test for each of PROGNAME-LIST
8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 for as_dir in $PATH
8468 do
8469 IFS=$as_save_IFS
8470 case $as_dir in #(((
8471 '') as_dir=./ ;;
8472 */) ;;
8473 *) as_dir=$as_dir/ ;;
8474 esac
8475 for ac_prog in dd
8476 do
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8479 as_fn_executable_p "$ac_path_lt_DD" || continue
8480 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8481 cmp -s conftest.i conftest.out \
8482 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8483 fi
8484 $ac_path_lt_DD_found && break 3
8485 done
8486 done
8487 done
8488 IFS=$as_save_IFS
8489 if test -z "$ac_cv_path_lt_DD"; then
8490 :
8491 fi
8492 else
8493 ac_cv_path_lt_DD=$lt_DD
8494 fi
8495
8496 rm -f conftest.i conftest2.i conftest.out ;;
8497 esac
8498 fi
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8500 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8501
8502
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8504 printf %s "checking how to truncate binary pipes... " >&6; }
8505 if test ${lt_cv_truncate_bin+y}
8506 then :
8507 printf %s "(cached) " >&6
8508 else case e in #(
8509 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8510 cat conftest.i conftest.i >conftest2.i
8511 lt_cv_truncate_bin=
8512 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8513 cmp -s conftest.i conftest.out \
8514 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8515 fi
8516 rm -f conftest.i conftest2.i conftest.out
8517 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8518 esac
8519 fi
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8521 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8522
8523
8524
8525
8526
8527
8528
8529 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8530 func_cc_basename ()
8531 {
8532 for cc_temp in $*""; do
8533 case $cc_temp in
8534 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8535 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8536 \-*) ;;
8537 *) break;;
8538 esac
8539 done
8540 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8541 }
8542
8543 # Check whether --enable-libtool-lock was given.
8544 if test ${enable_libtool_lock+y}
8545 then :
8546 enableval=$enable_libtool_lock;
8547 fi
8548
8549 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8550
8551 # Some flags need to be propagated to the compiler or linker for good
8552 # libtool support.
8553 case $host in
8554 ia64-*-hpux*)
8555 # Find out what ABI is being produced by ac_compile, and set mode
8556 # options accordingly.
8557 echo 'int i;' > conftest.$ac_ext
8558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8559 (eval $ac_compile) 2>&5
8560 ac_status=$?
8561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8562 test $ac_status = 0; }; then
8563 case `$FILECMD conftest.$ac_objext` in
8564 *ELF-32*)
8565 HPUX_IA64_MODE=32
8566 ;;
8567 *ELF-64*)
8568 HPUX_IA64_MODE=64
8569 ;;
8570 esac
8571 fi
8572 rm -rf conftest*
8573 ;;
8574 *-*-irix6*)
8575 # Find out what ABI is being produced by ac_compile, and set linker
8576 # options accordingly.
8577 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8579 (eval $ac_compile) 2>&5
8580 ac_status=$?
8581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8582 test $ac_status = 0; }; then
8583 if test yes = "$lt_cv_prog_gnu_ld"; then
8584 case `$FILECMD conftest.$ac_objext` in
8585 *32-bit*)
8586 LD="${LD-ld} -melf32bsmip"
8587 ;;
8588 *N32*)
8589 LD="${LD-ld} -melf32bmipn32"
8590 ;;
8591 *64-bit*)
8592 LD="${LD-ld} -melf64bmip"
8593 ;;
8594 esac
8595 else
8596 case `$FILECMD conftest.$ac_objext` in
8597 *32-bit*)
8598 LD="${LD-ld} -32"
8599 ;;
8600 *N32*)
8601 LD="${LD-ld} -n32"
8602 ;;
8603 *64-bit*)
8604 LD="${LD-ld} -64"
8605 ;;
8606 esac
8607 fi
8608 fi
8609 rm -rf conftest*
8610 ;;
8611
8612 mips64*-*linux*)
8613 # Find out what ABI is being produced by ac_compile, and set linker
8614 # options accordingly.
8615 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8617 (eval $ac_compile) 2>&5
8618 ac_status=$?
8619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8620 test $ac_status = 0; }; then
8621 emul=elf
8622 case `$FILECMD conftest.$ac_objext` in
8623 *32-bit*)
8624 emul="${emul}32"
8625 ;;
8626 *64-bit*)
8627 emul="${emul}64"
8628 ;;
8629 esac
8630 case `$FILECMD conftest.$ac_objext` in
8631 *MSB*)
8632 emul="${emul}btsmip"
8633 ;;
8634 *LSB*)
8635 emul="${emul}ltsmip"
8636 ;;
8637 esac
8638 case `$FILECMD conftest.$ac_objext` in
8639 *N32*)
8640 emul="${emul}n32"
8641 ;;
8642 esac
8643 LD="${LD-ld} -m $emul"
8644 fi
8645 rm -rf conftest*
8646 ;;
8647
8648 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8649 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8650 # Find out what ABI is being produced by ac_compile, and set linker
8651 # options accordingly. Note that the listed cases only cover the
8652 # situations where additional linker options are needed (such as when
8653 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8654 # vice versa); the common cases where no linker options are needed do
8655 # not appear in the list.
8656 echo 'int i;' > conftest.$ac_ext
8657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8658 (eval $ac_compile) 2>&5
8659 ac_status=$?
8660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8661 test $ac_status = 0; }; then
8662 case `$FILECMD conftest.o` in
8663 *32-bit*)
8664 case $host in
8665 x86_64-*kfreebsd*-gnu)
8666 LD="${LD-ld} -m elf_i386_fbsd"
8667 ;;
8668 x86_64-*linux*|x86_64-gnu*)
8669 case `$FILECMD conftest.o` in
8670 *x86-64*)
8671 LD="${LD-ld} -m elf32_x86_64"
8672 ;;
8673 *)
8674 LD="${LD-ld} -m elf_i386"
8675 ;;
8676 esac
8677 ;;
8678 powerpc64le-*linux*)
8679 LD="${LD-ld} -m elf32lppclinux"
8680 ;;
8681 powerpc64-*linux*)
8682 LD="${LD-ld} -m elf32ppclinux"
8683 ;;
8684 s390x-*linux*)
8685 LD="${LD-ld} -m elf_s390"
8686 ;;
8687 sparc64-*linux*)
8688 LD="${LD-ld} -m elf32_sparc"
8689 ;;
8690 esac
8691 ;;
8692 *64-bit*)
8693 case $host in
8694 x86_64-*kfreebsd*-gnu)
8695 LD="${LD-ld} -m elf_x86_64_fbsd"
8696 ;;
8697 x86_64-*linux*|x86_64-gnu*)
8698 LD="${LD-ld} -m elf_x86_64"
8699 ;;
8700 powerpcle-*linux*)
8701 LD="${LD-ld} -m elf64lppc"
8702 ;;
8703 powerpc-*linux*)
8704 LD="${LD-ld} -m elf64ppc"
8705 ;;
8706 s390*-*linux*|s390*-*tpf*)
8707 LD="${LD-ld} -m elf64_s390"
8708 ;;
8709 sparc*-*linux*)
8710 LD="${LD-ld} -m elf64_sparc"
8711 ;;
8712 esac
8713 ;;
8714 esac
8715 fi
8716 rm -rf conftest*
8717 ;;
8718
8719 *-*-sco3.2v5*)
8720 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8721 SAVE_CFLAGS=$CFLAGS
8722 CFLAGS="$CFLAGS -belf"
8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8724 printf %s "checking whether the C compiler needs -belf... " >&6; }
8725 if test ${lt_cv_cc_needs_belf+y}
8726 then :
8727 printf %s "(cached) " >&6
8728 else case e in #(
8729 e) ac_ext=c
8730 ac_cpp='$CPP $CPPFLAGS'
8731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8734
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737
8738 int
8739 main (void)
8740 {
8741
8742 ;
8743 return 0;
8744 }
8745 _ACEOF
8746 if ac_fn_c_try_link "$LINENO"
8747 then :
8748 lt_cv_cc_needs_belf=yes
8749 else case e in #(
8750 e) lt_cv_cc_needs_belf=no ;;
8751 esac
8752 fi
8753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8754 conftest$ac_exeext conftest.$ac_ext
8755 ac_ext=c
8756 ac_cpp='$CPP $CPPFLAGS'
8757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8760 ;;
8761 esac
8762 fi
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8764 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8765 if test yes != "$lt_cv_cc_needs_belf"; then
8766 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8767 CFLAGS=$SAVE_CFLAGS
8768 fi
8769 ;;
8770 *-*solaris*)
8771 # Find out what ABI is being produced by ac_compile, and set linker
8772 # options accordingly.
8773 echo 'int i;' > conftest.$ac_ext
8774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8775 (eval $ac_compile) 2>&5
8776 ac_status=$?
8777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8778 test $ac_status = 0; }; then
8779 case `$FILECMD conftest.o` in
8780 *64-bit*)
8781 case $lt_cv_prog_gnu_ld in
8782 yes*)
8783 case $host in
8784 i?86-*-solaris*|x86_64-*-solaris*)
8785 LD="${LD-ld} -m elf_x86_64"
8786 ;;
8787 sparc*-*-solaris*)
8788 LD="${LD-ld} -m elf64_sparc"
8789 ;;
8790 esac
8791 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8792 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8793 LD=${LD-ld}_sol2
8794 fi
8795 ;;
8796 *)
8797 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8798 LD="${LD-ld} -64"
8799 fi
8800 ;;
8801 esac
8802 ;;
8803 esac
8804 fi
8805 rm -rf conftest*
8806 ;;
8807 esac
8808
8809 need_locks=$enable_libtool_lock
8810
8811 if test -n "$ac_tool_prefix"; then
8812 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8813 set dummy ${ac_tool_prefix}mt; ac_word=$2
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8815 printf %s "checking for $ac_word... " >&6; }
8816 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8817 then :
8818 printf %s "(cached) " >&6
8819 else case e in #(
8820 e) if test -n "$MANIFEST_TOOL"; then
8821 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8822 else
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8825 do
8826 IFS=$as_save_IFS
8827 case $as_dir in #(((
8828 '') as_dir=./ ;;
8829 */) ;;
8830 *) as_dir=$as_dir/ ;;
8831 esac
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8834 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8836 break 2
8837 fi
8838 done
8839 done
8840 IFS=$as_save_IFS
8841
8842 fi ;;
8843 esac
8844 fi
8845 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8846 if test -n "$MANIFEST_TOOL"; then
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8848 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8849 else
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 printf "%s\n" "no" >&6; }
8852 fi
8853
8854
8855 fi
8856 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8857 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8858 # Extract the first word of "mt", so it can be a program name with args.
8859 set dummy mt; ac_word=$2
8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 printf %s "checking for $ac_word... " >&6; }
8862 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8863 then :
8864 printf %s "(cached) " >&6
8865 else case e in #(
8866 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8867 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872 IFS=$as_save_IFS
8873 case $as_dir in #(((
8874 '') as_dir=./ ;;
8875 */) ;;
8876 *) as_dir=$as_dir/ ;;
8877 esac
8878 for ac_exec_ext in '' $ac_executable_extensions; do
8879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8880 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8882 break 2
8883 fi
8884 done
8885 done
8886 IFS=$as_save_IFS
8887
8888 fi ;;
8889 esac
8890 fi
8891 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8892 if test -n "$ac_ct_MANIFEST_TOOL"; then
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8894 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8895 else
8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 printf "%s\n" "no" >&6; }
8898 fi
8899
8900 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8901 MANIFEST_TOOL=":"
8902 else
8903 case $cross_compiling:$ac_tool_warned in
8904 yes:)
8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8906 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8907 ac_tool_warned=yes ;;
8908 esac
8909 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8910 fi
8911 else
8912 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8913 fi
8914
8915 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8917 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8918 if test ${lt_cv_path_manifest_tool+y}
8919 then :
8920 printf %s "(cached) " >&6
8921 else case e in #(
8922 e) lt_cv_path_manifest_tool=no
8923 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8924 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8925 cat conftest.err >&5
8926 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8927 lt_cv_path_manifest_tool=yes
8928 fi
8929 rm -f conftest* ;;
8930 esac
8931 fi
8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8933 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8934 if test yes != "$lt_cv_path_manifest_tool"; then
8935 MANIFEST_TOOL=:
8936 fi
8937
8938
8939
8940
8941
8942
8943 case $host_os in
8944 rhapsody* | darwin*)
8945 if test -n "$ac_tool_prefix"; then
8946 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8947 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949 printf %s "checking for $ac_word... " >&6; }
8950 if test ${ac_cv_prog_DSYMUTIL+y}
8951 then :
8952 printf %s "(cached) " >&6
8953 else case e in #(
8954 e) if test -n "$DSYMUTIL"; then
8955 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8956 else
8957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958 for as_dir in $PATH
8959 do
8960 IFS=$as_save_IFS
8961 case $as_dir in #(((
8962 '') as_dir=./ ;;
8963 */) ;;
8964 *) as_dir=$as_dir/ ;;
8965 esac
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8968 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8970 break 2
8971 fi
8972 done
8973 done
8974 IFS=$as_save_IFS
8975
8976 fi ;;
8977 esac
8978 fi
8979 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8980 if test -n "$DSYMUTIL"; then
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8982 printf "%s\n" "$DSYMUTIL" >&6; }
8983 else
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 printf "%s\n" "no" >&6; }
8986 fi
8987
8988
8989 fi
8990 if test -z "$ac_cv_prog_DSYMUTIL"; then
8991 ac_ct_DSYMUTIL=$DSYMUTIL
8992 # Extract the first word of "dsymutil", so it can be a program name with args.
8993 set dummy dsymutil; ac_word=$2
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 printf %s "checking for $ac_word... " >&6; }
8996 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8997 then :
8998 printf %s "(cached) " >&6
8999 else case e in #(
9000 e) if test -n "$ac_ct_DSYMUTIL"; then
9001 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9002 else
9003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 for as_dir in $PATH
9005 do
9006 IFS=$as_save_IFS
9007 case $as_dir in #(((
9008 '') as_dir=./ ;;
9009 */) ;;
9010 *) as_dir=$as_dir/ ;;
9011 esac
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9014 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9016 break 2
9017 fi
9018 done
9019 done
9020 IFS=$as_save_IFS
9021
9022 fi ;;
9023 esac
9024 fi
9025 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9026 if test -n "$ac_ct_DSYMUTIL"; then
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9028 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9029 else
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 printf "%s\n" "no" >&6; }
9032 fi
9033
9034 if test "x$ac_ct_DSYMUTIL" = x; then
9035 DSYMUTIL=":"
9036 else
9037 case $cross_compiling:$ac_tool_warned in
9038 yes:)
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9040 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9041 ac_tool_warned=yes ;;
9042 esac
9043 DSYMUTIL=$ac_ct_DSYMUTIL
9044 fi
9045 else
9046 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9047 fi
9048
9049 if test -n "$ac_tool_prefix"; then
9050 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9051 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9053 printf %s "checking for $ac_word... " >&6; }
9054 if test ${ac_cv_prog_NMEDIT+y}
9055 then :
9056 printf %s "(cached) " >&6
9057 else case e in #(
9058 e) if test -n "$NMEDIT"; then
9059 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9060 else
9061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062 for as_dir in $PATH
9063 do
9064 IFS=$as_save_IFS
9065 case $as_dir in #(((
9066 '') as_dir=./ ;;
9067 */) ;;
9068 *) as_dir=$as_dir/ ;;
9069 esac
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9072 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9074 break 2
9075 fi
9076 done
9077 done
9078 IFS=$as_save_IFS
9079
9080 fi ;;
9081 esac
9082 fi
9083 NMEDIT=$ac_cv_prog_NMEDIT
9084 if test -n "$NMEDIT"; then
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9086 printf "%s\n" "$NMEDIT" >&6; }
9087 else
9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 printf "%s\n" "no" >&6; }
9090 fi
9091
9092
9093 fi
9094 if test -z "$ac_cv_prog_NMEDIT"; then
9095 ac_ct_NMEDIT=$NMEDIT
9096 # Extract the first word of "nmedit", so it can be a program name with args.
9097 set dummy nmedit; ac_word=$2
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 printf %s "checking for $ac_word... " >&6; }
9100 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9101 then :
9102 printf %s "(cached) " >&6
9103 else case e in #(
9104 e) if test -n "$ac_ct_NMEDIT"; then
9105 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9106 else
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9109 do
9110 IFS=$as_save_IFS
9111 case $as_dir in #(((
9112 '') as_dir=./ ;;
9113 */) ;;
9114 *) as_dir=$as_dir/ ;;
9115 esac
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9118 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9120 break 2
9121 fi
9122 done
9123 done
9124 IFS=$as_save_IFS
9125
9126 fi ;;
9127 esac
9128 fi
9129 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9130 if test -n "$ac_ct_NMEDIT"; then
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9132 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9133 else
9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135 printf "%s\n" "no" >&6; }
9136 fi
9137
9138 if test "x$ac_ct_NMEDIT" = x; then
9139 NMEDIT=":"
9140 else
9141 case $cross_compiling:$ac_tool_warned in
9142 yes:)
9143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9144 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9145 ac_tool_warned=yes ;;
9146 esac
9147 NMEDIT=$ac_ct_NMEDIT
9148 fi
9149 else
9150 NMEDIT="$ac_cv_prog_NMEDIT"
9151 fi
9152
9153 if test -n "$ac_tool_prefix"; then
9154 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9155 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 printf %s "checking for $ac_word... " >&6; }
9158 if test ${ac_cv_prog_LIPO+y}
9159 then :
9160 printf %s "(cached) " >&6
9161 else case e in #(
9162 e) if test -n "$LIPO"; then
9163 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9164 else
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9167 do
9168 IFS=$as_save_IFS
9169 case $as_dir in #(((
9170 '') as_dir=./ ;;
9171 */) ;;
9172 *) as_dir=$as_dir/ ;;
9173 esac
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9176 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9178 break 2
9179 fi
9180 done
9181 done
9182 IFS=$as_save_IFS
9183
9184 fi ;;
9185 esac
9186 fi
9187 LIPO=$ac_cv_prog_LIPO
9188 if test -n "$LIPO"; then
9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9190 printf "%s\n" "$LIPO" >&6; }
9191 else
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 printf "%s\n" "no" >&6; }
9194 fi
9195
9196
9197 fi
9198 if test -z "$ac_cv_prog_LIPO"; then
9199 ac_ct_LIPO=$LIPO
9200 # Extract the first word of "lipo", so it can be a program name with args.
9201 set dummy lipo; ac_word=$2
9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 printf %s "checking for $ac_word... " >&6; }
9204 if test ${ac_cv_prog_ac_ct_LIPO+y}
9205 then :
9206 printf %s "(cached) " >&6
9207 else case e in #(
9208 e) if test -n "$ac_ct_LIPO"; then
9209 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9210 else
9211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212 for as_dir in $PATH
9213 do
9214 IFS=$as_save_IFS
9215 case $as_dir in #(((
9216 '') as_dir=./ ;;
9217 */) ;;
9218 *) as_dir=$as_dir/ ;;
9219 esac
9220 for ac_exec_ext in '' $ac_executable_extensions; do
9221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9222 ac_cv_prog_ac_ct_LIPO="lipo"
9223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9224 break 2
9225 fi
9226 done
9227 done
9228 IFS=$as_save_IFS
9229
9230 fi ;;
9231 esac
9232 fi
9233 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9234 if test -n "$ac_ct_LIPO"; then
9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9236 printf "%s\n" "$ac_ct_LIPO" >&6; }
9237 else
9238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 printf "%s\n" "no" >&6; }
9240 fi
9241
9242 if test "x$ac_ct_LIPO" = x; then
9243 LIPO=":"
9244 else
9245 case $cross_compiling:$ac_tool_warned in
9246 yes:)
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9248 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9249 ac_tool_warned=yes ;;
9250 esac
9251 LIPO=$ac_ct_LIPO
9252 fi
9253 else
9254 LIPO="$ac_cv_prog_LIPO"
9255 fi
9256
9257 if test -n "$ac_tool_prefix"; then
9258 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9259 set dummy ${ac_tool_prefix}otool; ac_word=$2
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261 printf %s "checking for $ac_word... " >&6; }
9262 if test ${ac_cv_prog_OTOOL+y}
9263 then :
9264 printf %s "(cached) " >&6
9265 else case e in #(
9266 e) if test -n "$OTOOL"; then
9267 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9268 else
9269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270 for as_dir in $PATH
9271 do
9272 IFS=$as_save_IFS
9273 case $as_dir in #(((
9274 '') as_dir=./ ;;
9275 */) ;;
9276 *) as_dir=$as_dir/ ;;
9277 esac
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9280 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9282 break 2
9283 fi
9284 done
9285 done
9286 IFS=$as_save_IFS
9287
9288 fi ;;
9289 esac
9290 fi
9291 OTOOL=$ac_cv_prog_OTOOL
9292 if test -n "$OTOOL"; then
9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9294 printf "%s\n" "$OTOOL" >&6; }
9295 else
9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9297 printf "%s\n" "no" >&6; }
9298 fi
9299
9300
9301 fi
9302 if test -z "$ac_cv_prog_OTOOL"; then
9303 ac_ct_OTOOL=$OTOOL
9304 # Extract the first word of "otool", so it can be a program name with args.
9305 set dummy otool; ac_word=$2
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9307 printf %s "checking for $ac_word... " >&6; }
9308 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9309 then :
9310 printf %s "(cached) " >&6
9311 else case e in #(
9312 e) if test -n "$ac_ct_OTOOL"; then
9313 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9314 else
9315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316 for as_dir in $PATH
9317 do
9318 IFS=$as_save_IFS
9319 case $as_dir in #(((
9320 '') as_dir=./ ;;
9321 */) ;;
9322 *) as_dir=$as_dir/ ;;
9323 esac
9324 for ac_exec_ext in '' $ac_executable_extensions; do
9325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9326 ac_cv_prog_ac_ct_OTOOL="otool"
9327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9328 break 2
9329 fi
9330 done
9331 done
9332 IFS=$as_save_IFS
9333
9334 fi ;;
9335 esac
9336 fi
9337 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9338 if test -n "$ac_ct_OTOOL"; then
9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9340 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9341 else
9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343 printf "%s\n" "no" >&6; }
9344 fi
9345
9346 if test "x$ac_ct_OTOOL" = x; then
9347 OTOOL=":"
9348 else
9349 case $cross_compiling:$ac_tool_warned in
9350 yes:)
9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9352 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9353 ac_tool_warned=yes ;;
9354 esac
9355 OTOOL=$ac_ct_OTOOL
9356 fi
9357 else
9358 OTOOL="$ac_cv_prog_OTOOL"
9359 fi
9360
9361 if test -n "$ac_tool_prefix"; then
9362 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9363 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9365 printf %s "checking for $ac_word... " >&6; }
9366 if test ${ac_cv_prog_OTOOL64+y}
9367 then :
9368 printf %s "(cached) " >&6
9369 else case e in #(
9370 e) if test -n "$OTOOL64"; then
9371 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9372 else
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374 for as_dir in $PATH
9375 do
9376 IFS=$as_save_IFS
9377 case $as_dir in #(((
9378 '') as_dir=./ ;;
9379 */) ;;
9380 *) as_dir=$as_dir/ ;;
9381 esac
9382 for ac_exec_ext in '' $ac_executable_extensions; do
9383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9384 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9386 break 2
9387 fi
9388 done
9389 done
9390 IFS=$as_save_IFS
9391
9392 fi ;;
9393 esac
9394 fi
9395 OTOOL64=$ac_cv_prog_OTOOL64
9396 if test -n "$OTOOL64"; then
9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9398 printf "%s\n" "$OTOOL64" >&6; }
9399 else
9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 printf "%s\n" "no" >&6; }
9402 fi
9403
9404
9405 fi
9406 if test -z "$ac_cv_prog_OTOOL64"; then
9407 ac_ct_OTOOL64=$OTOOL64
9408 # Extract the first word of "otool64", so it can be a program name with args.
9409 set dummy otool64; ac_word=$2
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9411 printf %s "checking for $ac_word... " >&6; }
9412 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9413 then :
9414 printf %s "(cached) " >&6
9415 else case e in #(
9416 e) if test -n "$ac_ct_OTOOL64"; then
9417 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9418 else
9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9420 for as_dir in $PATH
9421 do
9422 IFS=$as_save_IFS
9423 case $as_dir in #(((
9424 '') as_dir=./ ;;
9425 */) ;;
9426 *) as_dir=$as_dir/ ;;
9427 esac
9428 for ac_exec_ext in '' $ac_executable_extensions; do
9429 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9430 ac_cv_prog_ac_ct_OTOOL64="otool64"
9431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9432 break 2
9433 fi
9434 done
9435 done
9436 IFS=$as_save_IFS
9437
9438 fi ;;
9439 esac
9440 fi
9441 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9442 if test -n "$ac_ct_OTOOL64"; then
9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9444 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9445 else
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 printf "%s\n" "no" >&6; }
9448 fi
9449
9450 if test "x$ac_ct_OTOOL64" = x; then
9451 OTOOL64=":"
9452 else
9453 case $cross_compiling:$ac_tool_warned in
9454 yes:)
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9456 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9457 ac_tool_warned=yes ;;
9458 esac
9459 OTOOL64=$ac_ct_OTOOL64
9460 fi
9461 else
9462 OTOOL64="$ac_cv_prog_OTOOL64"
9463 fi
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9492 printf %s "checking for -single_module linker flag... " >&6; }
9493 if test ${lt_cv_apple_cc_single_mod+y}
9494 then :
9495 printf %s "(cached) " >&6
9496 else case e in #(
9497 e) lt_cv_apple_cc_single_mod=no
9498 if test -z "$LT_MULTI_MODULE"; then
9499 # By default we will add the -single_module flag. You can override
9500 # by either setting the environment variable LT_MULTI_MODULE
9501 # non-empty at configure time, or by adding -multi_module to the
9502 # link flags.
9503 rm -rf libconftest.dylib*
9504 echo "int foo(void){return 1;}" > conftest.c
9505 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9506 -dynamiclib -Wl,-single_module conftest.c" >&5
9507 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9508 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9509 _lt_result=$?
9510 # If there is a non-empty error log, and "single_module"
9511 # appears in it, assume the flag caused a linker warning
9512 if test -s conftest.err && $GREP single_module conftest.err; then
9513 cat conftest.err >&5
9514 # Otherwise, if the output was created with a 0 exit code from
9515 # the compiler, it worked.
9516 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9517 lt_cv_apple_cc_single_mod=yes
9518 else
9519 cat conftest.err >&5
9520 fi
9521 rm -rf libconftest.dylib*
9522 rm -f conftest.*
9523 fi ;;
9524 esac
9525 fi
9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9527 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9528
9529 # Feature test to disable chained fixups since it is not
9530 # compatible with '-undefined dynamic_lookup'
9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9532 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9533 if test ${lt_cv_support_no_fixup_chains+y}
9534 then :
9535 printf %s "(cached) " >&6
9536 else case e in #(
9537 e) save_LDFLAGS=$LDFLAGS
9538 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541
9542 int
9543 main (void)
9544 {
9545
9546 ;
9547 return 0;
9548 }
9549 _ACEOF
9550 if ac_fn_c_try_link "$LINENO"
9551 then :
9552 lt_cv_support_no_fixup_chains=yes
9553 else case e in #(
9554 e) lt_cv_support_no_fixup_chains=no
9555 ;;
9556 esac
9557 fi
9558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9559 conftest$ac_exeext conftest.$ac_ext
9560 LDFLAGS=$save_LDFLAGS
9561
9562 ;;
9563 esac
9564 fi
9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9566 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9567
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9569 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9570 if test ${lt_cv_ld_exported_symbols_list+y}
9571 then :
9572 printf %s "(cached) " >&6
9573 else case e in #(
9574 e) lt_cv_ld_exported_symbols_list=no
9575 save_LDFLAGS=$LDFLAGS
9576 echo "_main" > conftest.sym
9577 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9580
9581 int
9582 main (void)
9583 {
9584
9585 ;
9586 return 0;
9587 }
9588 _ACEOF
9589 if ac_fn_c_try_link "$LINENO"
9590 then :
9591 lt_cv_ld_exported_symbols_list=yes
9592 else case e in #(
9593 e) lt_cv_ld_exported_symbols_list=no ;;
9594 esac
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9597 conftest$ac_exeext conftest.$ac_ext
9598 LDFLAGS=$save_LDFLAGS
9599 ;;
9600 esac
9601 fi
9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9603 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9604
9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9606 printf %s "checking for -force_load linker flag... " >&6; }
9607 if test ${lt_cv_ld_force_load+y}
9608 then :
9609 printf %s "(cached) " >&6
9610 else case e in #(
9611 e) lt_cv_ld_force_load=no
9612 cat > conftest.c << _LT_EOF
9613 int forced_loaded() { return 2;}
9614 _LT_EOF
9615 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9616 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9617 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9618 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9619 echo "$RANLIB libconftest.a" >&5
9620 $RANLIB libconftest.a 2>&5
9621 cat > conftest.c << _LT_EOF
9622 int main(void) { return 0;}
9623 _LT_EOF
9624 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9625 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9626 _lt_result=$?
9627 if test -s conftest.err && $GREP force_load conftest.err; then
9628 cat conftest.err >&5
9629 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9630 lt_cv_ld_force_load=yes
9631 else
9632 cat conftest.err >&5
9633 fi
9634 rm -f conftest.err libconftest.a conftest conftest.c
9635 rm -rf conftest.dSYM
9636 ;;
9637 esac
9638 fi
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9640 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9641 case $host_os in
9642 rhapsody* | darwin1.[012])
9643 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9644 darwin1.*)
9645 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9646 darwin*)
9647 case $MACOSX_DEPLOYMENT_TARGET,$host in
9648 10.[012],*|,*powerpc*-darwin[5-8]*)
9649 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9650 *)
9651 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9652 if test yes = "$lt_cv_support_no_fixup_chains"; then
9653 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9654 fi
9655 ;;
9656 esac
9657 ;;
9658 esac
9659 if test yes = "$lt_cv_apple_cc_single_mod"; then
9660 _lt_dar_single_mod='$single_module'
9661 fi
9662 _lt_dar_needs_single_mod=no
9663 case $host_os in
9664 rhapsody* | darwin1.*)
9665 _lt_dar_needs_single_mod=yes ;;
9666 darwin*)
9667 # When targeting Mac OS X 10.4 (darwin 8) or later,
9668 # -single_module is the default and -multi_module is unsupported.
9669 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9670 # target any OS version that needs -single_module.
9671 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9672 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9673 _lt_dar_needs_single_mod=yes ;;
9674 esac
9675 ;;
9676 esac
9677 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9678 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9679 else
9680 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9681 fi
9682 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9683 _lt_dsymutil='~$DSYMUTIL $lib || :'
9684 else
9685 _lt_dsymutil=
9686 fi
9687 ;;
9688 esac
9689
9690 # func_munge_path_list VARIABLE PATH
9691 # -----------------------------------
9692 # VARIABLE is name of variable containing _space_ separated list of
9693 # directories to be munged by the contents of PATH, which is string
9694 # having a format:
9695 # "DIR[:DIR]:"
9696 # string "DIR[ DIR]" will be prepended to VARIABLE
9697 # ":DIR[:DIR]"
9698 # string "DIR[ DIR]" will be appended to VARIABLE
9699 # "DIRP[:DIRP]::[DIRA:]DIRA"
9700 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9701 # "DIRA[ DIRA]" will be appended to VARIABLE
9702 # "DIR[:DIR]"
9703 # VARIABLE will be replaced by "DIR[ DIR]"
9704 func_munge_path_list ()
9705 {
9706 case x$2 in
9707 x)
9708 ;;
9709 *:)
9710 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9711 ;;
9712 x:*)
9713 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9714 ;;
9715 *::*)
9716 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9717 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9718 ;;
9719 *)
9720 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9721 ;;
9722 esac
9723 }
9724
9725 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9726 "
9727 if test "x$ac_cv_header_dlfcn_h" = xyes
9728 then :
9729 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9730
9731 fi
9732
9733
9734
9735
9736
9737 # Set options
9738 enable_win32_dll=yes
9739
9740 case $host in
9741 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9742 if test -n "$ac_tool_prefix"; then
9743 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9744 set dummy ${ac_tool_prefix}as; ac_word=$2
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746 printf %s "checking for $ac_word... " >&6; }
9747 if test ${ac_cv_prog_AS+y}
9748 then :
9749 printf %s "(cached) " >&6
9750 else case e in #(
9751 e) if test -n "$AS"; then
9752 ac_cv_prog_AS="$AS" # Let the user override the test.
9753 else
9754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9755 for as_dir in $PATH
9756 do
9757 IFS=$as_save_IFS
9758 case $as_dir in #(((
9759 '') as_dir=./ ;;
9760 */) ;;
9761 *) as_dir=$as_dir/ ;;
9762 esac
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9765 ac_cv_prog_AS="${ac_tool_prefix}as"
9766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9767 break 2
9768 fi
9769 done
9770 done
9771 IFS=$as_save_IFS
9772
9773 fi ;;
9774 esac
9775 fi
9776 AS=$ac_cv_prog_AS
9777 if test -n "$AS"; then
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9779 printf "%s\n" "$AS" >&6; }
9780 else
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 printf "%s\n" "no" >&6; }
9783 fi
9784
9785
9786 fi
9787 if test -z "$ac_cv_prog_AS"; then
9788 ac_ct_AS=$AS
9789 # Extract the first word of "as", so it can be a program name with args.
9790 set dummy as; ac_word=$2
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9792 printf %s "checking for $ac_word... " >&6; }
9793 if test ${ac_cv_prog_ac_ct_AS+y}
9794 then :
9795 printf %s "(cached) " >&6
9796 else case e in #(
9797 e) if test -n "$ac_ct_AS"; then
9798 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9799 else
9800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801 for as_dir in $PATH
9802 do
9803 IFS=$as_save_IFS
9804 case $as_dir in #(((
9805 '') as_dir=./ ;;
9806 */) ;;
9807 *) as_dir=$as_dir/ ;;
9808 esac
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9811 ac_cv_prog_ac_ct_AS="as"
9812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9813 break 2
9814 fi
9815 done
9816 done
9817 IFS=$as_save_IFS
9818
9819 fi ;;
9820 esac
9821 fi
9822 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9823 if test -n "$ac_ct_AS"; then
9824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9825 printf "%s\n" "$ac_ct_AS" >&6; }
9826 else
9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 printf "%s\n" "no" >&6; }
9829 fi
9830
9831 if test "x$ac_ct_AS" = x; then
9832 AS="false"
9833 else
9834 case $cross_compiling:$ac_tool_warned in
9835 yes:)
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9837 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9838 ac_tool_warned=yes ;;
9839 esac
9840 AS=$ac_ct_AS
9841 fi
9842 else
9843 AS="$ac_cv_prog_AS"
9844 fi
9845
9846 if test -n "$ac_tool_prefix"; then
9847 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9848 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9850 printf %s "checking for $ac_word... " >&6; }
9851 if test ${ac_cv_prog_DLLTOOL+y}
9852 then :
9853 printf %s "(cached) " >&6
9854 else case e in #(
9855 e) if test -n "$DLLTOOL"; then
9856 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9857 else
9858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859 for as_dir in $PATH
9860 do
9861 IFS=$as_save_IFS
9862 case $as_dir in #(((
9863 '') as_dir=./ ;;
9864 */) ;;
9865 *) as_dir=$as_dir/ ;;
9866 esac
9867 for ac_exec_ext in '' $ac_executable_extensions; do
9868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9869 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9871 break 2
9872 fi
9873 done
9874 done
9875 IFS=$as_save_IFS
9876
9877 fi ;;
9878 esac
9879 fi
9880 DLLTOOL=$ac_cv_prog_DLLTOOL
9881 if test -n "$DLLTOOL"; then
9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9883 printf "%s\n" "$DLLTOOL" >&6; }
9884 else
9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 printf "%s\n" "no" >&6; }
9887 fi
9888
9889
9890 fi
9891 if test -z "$ac_cv_prog_DLLTOOL"; then
9892 ac_ct_DLLTOOL=$DLLTOOL
9893 # Extract the first word of "dlltool", so it can be a program name with args.
9894 set dummy dlltool; ac_word=$2
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896 printf %s "checking for $ac_word... " >&6; }
9897 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9898 then :
9899 printf %s "(cached) " >&6
9900 else case e in #(
9901 e) if test -n "$ac_ct_DLLTOOL"; then
9902 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9903 else
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in $PATH
9906 do
9907 IFS=$as_save_IFS
9908 case $as_dir in #(((
9909 '') as_dir=./ ;;
9910 */) ;;
9911 *) as_dir=$as_dir/ ;;
9912 esac
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9915 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9917 break 2
9918 fi
9919 done
9920 done
9921 IFS=$as_save_IFS
9922
9923 fi ;;
9924 esac
9925 fi
9926 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9927 if test -n "$ac_ct_DLLTOOL"; then
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9929 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9930 else
9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 printf "%s\n" "no" >&6; }
9933 fi
9934
9935 if test "x$ac_ct_DLLTOOL" = x; then
9936 DLLTOOL="false"
9937 else
9938 case $cross_compiling:$ac_tool_warned in
9939 yes:)
9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9941 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9942 ac_tool_warned=yes ;;
9943 esac
9944 DLLTOOL=$ac_ct_DLLTOOL
9945 fi
9946 else
9947 DLLTOOL="$ac_cv_prog_DLLTOOL"
9948 fi
9949
9950 if test -n "$ac_tool_prefix"; then
9951 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9952 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 printf %s "checking for $ac_word... " >&6; }
9955 if test ${ac_cv_prog_OBJDUMP+y}
9956 then :
9957 printf %s "(cached) " >&6
9958 else case e in #(
9959 e) if test -n "$OBJDUMP"; then
9960 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9961 else
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9964 do
9965 IFS=$as_save_IFS
9966 case $as_dir in #(((
9967 '') as_dir=./ ;;
9968 */) ;;
9969 *) as_dir=$as_dir/ ;;
9970 esac
9971 for ac_exec_ext in '' $ac_executable_extensions; do
9972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9973 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9975 break 2
9976 fi
9977 done
9978 done
9979 IFS=$as_save_IFS
9980
9981 fi ;;
9982 esac
9983 fi
9984 OBJDUMP=$ac_cv_prog_OBJDUMP
9985 if test -n "$OBJDUMP"; then
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9987 printf "%s\n" "$OBJDUMP" >&6; }
9988 else
9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990 printf "%s\n" "no" >&6; }
9991 fi
9992
9993
9994 fi
9995 if test -z "$ac_cv_prog_OBJDUMP"; then
9996 ac_ct_OBJDUMP=$OBJDUMP
9997 # Extract the first word of "objdump", so it can be a program name with args.
9998 set dummy objdump; ac_word=$2
9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 printf %s "checking for $ac_word... " >&6; }
10001 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10002 then :
10003 printf %s "(cached) " >&6
10004 else case e in #(
10005 e) if test -n "$ac_ct_OBJDUMP"; then
10006 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10007 else
10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009 for as_dir in $PATH
10010 do
10011 IFS=$as_save_IFS
10012 case $as_dir in #(((
10013 '') as_dir=./ ;;
10014 */) ;;
10015 *) as_dir=$as_dir/ ;;
10016 esac
10017 for ac_exec_ext in '' $ac_executable_extensions; do
10018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10019 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10021 break 2
10022 fi
10023 done
10024 done
10025 IFS=$as_save_IFS
10026
10027 fi ;;
10028 esac
10029 fi
10030 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10031 if test -n "$ac_ct_OBJDUMP"; then
10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10033 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10034 else
10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036 printf "%s\n" "no" >&6; }
10037 fi
10038
10039 if test "x$ac_ct_OBJDUMP" = x; then
10040 OBJDUMP="false"
10041 else
10042 case $cross_compiling:$ac_tool_warned in
10043 yes:)
10044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10045 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10046 ac_tool_warned=yes ;;
10047 esac
10048 OBJDUMP=$ac_ct_OBJDUMP
10049 fi
10050 else
10051 OBJDUMP="$ac_cv_prog_OBJDUMP"
10052 fi
10053
10054 ;;
10055 esac
10056
10057 test -z "$AS" && AS=as
10058
10059
10060
10061
10062
10063 test -z "$DLLTOOL" && DLLTOOL=dlltool
10064
10065
10066
10067
10068
10069 test -z "$OBJDUMP" && OBJDUMP=objdump
10070
10071
10072
10073
10074
10075
10076
10077 enable_dlopen=no
10078
10079
10080
10081 # Check whether --enable-shared was given.
10082 if test ${enable_shared+y}
10083 then :
10084 enableval=$enable_shared; p=${PACKAGE-default}
10085 case $enableval in
10086 yes) enable_shared=yes ;;
10087 no) enable_shared=no ;;
10088 *)
10089 enable_shared=no
10090 # Look at the argument we got. We use all the common list separators.
10091 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10092 for pkg in $enableval; do
10093 IFS=$lt_save_ifs
10094 if test "X$pkg" = "X$p"; then
10095 enable_shared=yes
10096 fi
10097 done
10098 IFS=$lt_save_ifs
10099 ;;
10100 esac
10101 else case e in #(
10102 e) enable_shared=yes ;;
10103 esac
10104 fi
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114 # Check whether --enable-static was given.
10115 if test ${enable_static+y}
10116 then :
10117 enableval=$enable_static; p=${PACKAGE-default}
10118 case $enableval in
10119 yes) enable_static=yes ;;
10120 no) enable_static=no ;;
10121 *)
10122 enable_static=no
10123 # Look at the argument we got. We use all the common list separators.
10124 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10125 for pkg in $enableval; do
10126 IFS=$lt_save_ifs
10127 if test "X$pkg" = "X$p"; then
10128 enable_static=yes
10129 fi
10130 done
10131 IFS=$lt_save_ifs
10132 ;;
10133 esac
10134 else case e in #(
10135 e) enable_static=yes ;;
10136 esac
10137 fi
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147 # Check whether --enable-pic was given.
10148 if test ${enable_pic+y}
10149 then :
10150 enableval=$enable_pic; lt_p=${PACKAGE-default}
10151 case $enableval in
10152 yes|no) pic_mode=$enableval ;;
10153 *)
10154 pic_mode=default
10155 # Look at the argument we got. We use all the common list separators.
10156 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10157 for lt_pkg in $enableval; do
10158 IFS=$lt_save_ifs
10159 if test "X$lt_pkg" = "X$lt_p"; then
10160 pic_mode=yes
10161 fi
10162 done
10163 IFS=$lt_save_ifs
10164 ;;
10165 esac
10166 else case e in #(
10167 e) # Check whether --with-pic was given.
10168 if test ${with_pic+y}
10169 then :
10170 withval=$with_pic; lt_p=${PACKAGE-default}
10171 case $withval in
10172 yes|no) pic_mode=$withval ;;
10173 *)
10174 pic_mode=default
10175 # Look at the argument we got. We use all the common list separators.
10176 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10177 for lt_pkg in $withval; do
10178 IFS=$lt_save_ifs
10179 if test "X$lt_pkg" = "X$lt_p"; then
10180 pic_mode=yes
10181 fi
10182 done
10183 IFS=$lt_save_ifs
10184 ;;
10185 esac
10186 else case e in #(
10187 e) pic_mode=default ;;
10188 esac
10189 fi
10190
10191 ;;
10192 esac
10193 fi
10194
10195
10196
10197
10198
10199
10200
10201
10202 # Check whether --enable-fast-install was given.
10203 if test ${enable_fast_install+y}
10204 then :
10205 enableval=$enable_fast_install; p=${PACKAGE-default}
10206 case $enableval in
10207 yes) enable_fast_install=yes ;;
10208 no) enable_fast_install=no ;;
10209 *)
10210 enable_fast_install=no
10211 # Look at the argument we got. We use all the common list separators.
10212 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10213 for pkg in $enableval; do
10214 IFS=$lt_save_ifs
10215 if test "X$pkg" = "X$p"; then
10216 enable_fast_install=yes
10217 fi
10218 done
10219 IFS=$lt_save_ifs
10220 ;;
10221 esac
10222 else case e in #(
10223 e) enable_fast_install=yes ;;
10224 esac
10225 fi
10226
10227
10228
10229
10230
10231
10232
10233
10234 shared_archive_member_spec=
10235 case $host,$enable_shared in
10236 power*-*-aix[5-9]*,yes)
10237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10238 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10239 # Check whether --enable-aix-soname was given.
10240 if test ${enable_aix_soname+y}
10241 then :
10242 enableval=$enable_aix_soname; case $enableval in
10243 aix|svr4|both)
10244 ;;
10245 *)
10246 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10247 ;;
10248 esac
10249 lt_cv_with_aix_soname=$enable_aix_soname
10250 else case e in #(
10251 e) # Check whether --with-aix-soname was given.
10252 if test ${with_aix_soname+y}
10253 then :
10254 withval=$with_aix_soname; case $withval in
10255 aix|svr4|both)
10256 ;;
10257 *)
10258 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10259 ;;
10260 esac
10261 lt_cv_with_aix_soname=$with_aix_soname
10262 else case e in #(
10263 e) if test ${lt_cv_with_aix_soname+y}
10264 then :
10265 printf %s "(cached) " >&6
10266 else case e in #(
10267 e) lt_cv_with_aix_soname=aix ;;
10268 esac
10269 fi
10270 ;;
10271 esac
10272 fi
10273
10274 enable_aix_soname=$lt_cv_with_aix_soname ;;
10275 esac
10276 fi
10277
10278 with_aix_soname=$enable_aix_soname
10279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10280 printf "%s\n" "$with_aix_soname" >&6; }
10281 if test aix != "$with_aix_soname"; then
10282 # For the AIX way of multilib, we name the shared archive member
10283 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10284 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10285 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10286 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10287 if test 64 = "${OBJECT_MODE-32}"; then
10288 shared_archive_member_spec=shr_64
10289 else
10290 shared_archive_member_spec=shr
10291 fi
10292 fi
10293 ;;
10294 *)
10295 with_aix_soname=aix
10296 ;;
10297 esac
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308 # This can be used to rebuild libtool when needed
10309 LIBTOOL_DEPS=$ltmain
10310
10311 # Always use our own libtool.
10312 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343 test -z "$LN_S" && LN_S="ln -s"
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358 if test -n "${ZSH_VERSION+set}"; then
10359 setopt NO_GLOB_SUBST
10360 fi
10361
10362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10363 printf %s "checking for objdir... " >&6; }
10364 if test ${lt_cv_objdir+y}
10365 then :
10366 printf %s "(cached) " >&6
10367 else case e in #(
10368 e) rm -f .libs 2>/dev/null
10369 mkdir .libs 2>/dev/null
10370 if test -d .libs; then
10371 lt_cv_objdir=.libs
10372 else
10373 # MS-DOS does not allow filenames that begin with a dot.
10374 lt_cv_objdir=_libs
10375 fi
10376 rmdir .libs 2>/dev/null ;;
10377 esac
10378 fi
10379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10380 printf "%s\n" "$lt_cv_objdir" >&6; }
10381 objdir=$lt_cv_objdir
10382
10383
10384
10385
10386
10387 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10388
10389
10390
10391
10392 case $host_os in
10393 aix3*)
10394 # AIX sometimes has problems with the GCC collect2 program. For some
10395 # reason, if we set the COLLECT_NAMES environment variable, the problems
10396 # vanish in a puff of smoke.
10397 if test set != "${COLLECT_NAMES+set}"; then
10398 COLLECT_NAMES=
10399 export COLLECT_NAMES
10400 fi
10401 ;;
10402 esac
10403
10404 # Global variables:
10405 ofile=libtool
10406 can_build_shared=yes
10407
10408 # All known linkers require a '.a' archive for static linking (except MSVC and
10409 # ICC, which need '.lib').
10410 libext=a
10411
10412 with_gnu_ld=$lt_cv_prog_gnu_ld
10413
10414 old_CC=$CC
10415 old_CFLAGS=$CFLAGS
10416
10417 # Set sane defaults for various variables
10418 test -z "$CC" && CC=cc
10419 test -z "$LTCC" && LTCC=$CC
10420 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10421 test -z "$LD" && LD=ld
10422 test -z "$ac_objext" && ac_objext=o
10423
10424 func_cc_basename $compiler
10425 cc_basename=$func_cc_basename_result
10426
10427
10428 # Only perform the check for file, if the check method requires it
10429 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10430 case $deplibs_check_method in
10431 file_magic*)
10432 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10434 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10435 if test ${lt_cv_path_MAGIC_CMD+y}
10436 then :
10437 printf %s "(cached) " >&6
10438 else case e in #(
10439 e) case $MAGIC_CMD in
10440 [\\/*] | ?:[\\/]*)
10441 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10442 ;;
10443 *)
10444 lt_save_MAGIC_CMD=$MAGIC_CMD
10445 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10447 for ac_dir in $ac_dummy; do
10448 IFS=$lt_save_ifs
10449 test -z "$ac_dir" && ac_dir=.
10450 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10451 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10452 if test -n "$file_magic_test_file"; then
10453 case $deplibs_check_method in
10454 "file_magic "*)
10455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10456 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10458 $EGREP "$file_magic_regex" > /dev/null; then
10459 :
10460 else
10461 cat <<_LT_EOF 1>&2
10462
10463 *** Warning: the command libtool uses to detect shared libraries,
10464 *** $file_magic_cmd, produces output that libtool cannot recognize.
10465 *** The result is that libtool may fail to recognize shared libraries
10466 *** as such. This will affect the creation of libtool libraries that
10467 *** depend on shared libraries, but programs linked with such libtool
10468 *** libraries will work regardless of this problem. Nevertheless, you
10469 *** may want to report the problem to your system manager and/or to
10470 *** [email protected]
10471
10472 _LT_EOF
10473 fi ;;
10474 esac
10475 fi
10476 break
10477 fi
10478 done
10479 IFS=$lt_save_ifs
10480 MAGIC_CMD=$lt_save_MAGIC_CMD
10481 ;;
10482 esac ;;
10483 esac
10484 fi
10485
10486 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10487 if test -n "$MAGIC_CMD"; then
10488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10489 printf "%s\n" "$MAGIC_CMD" >&6; }
10490 else
10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492 printf "%s\n" "no" >&6; }
10493 fi
10494
10495
10496
10497
10498
10499 if test -z "$lt_cv_path_MAGIC_CMD"; then
10500 if test -n "$ac_tool_prefix"; then
10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10502 printf %s "checking for file... " >&6; }
10503 if test ${lt_cv_path_MAGIC_CMD+y}
10504 then :
10505 printf %s "(cached) " >&6
10506 else case e in #(
10507 e) case $MAGIC_CMD in
10508 [\\/*] | ?:[\\/]*)
10509 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10510 ;;
10511 *)
10512 lt_save_MAGIC_CMD=$MAGIC_CMD
10513 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10514 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10515 for ac_dir in $ac_dummy; do
10516 IFS=$lt_save_ifs
10517 test -z "$ac_dir" && ac_dir=.
10518 if test -f "$ac_dir/file"; then
10519 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10520 if test -n "$file_magic_test_file"; then
10521 case $deplibs_check_method in
10522 "file_magic "*)
10523 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10524 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10526 $EGREP "$file_magic_regex" > /dev/null; then
10527 :
10528 else
10529 cat <<_LT_EOF 1>&2
10530
10531 *** Warning: the command libtool uses to detect shared libraries,
10532 *** $file_magic_cmd, produces output that libtool cannot recognize.
10533 *** The result is that libtool may fail to recognize shared libraries
10534 *** as such. This will affect the creation of libtool libraries that
10535 *** depend on shared libraries, but programs linked with such libtool
10536 *** libraries will work regardless of this problem. Nevertheless, you
10537 *** may want to report the problem to your system manager and/or to
10538 *** [email protected]
10539
10540 _LT_EOF
10541 fi ;;
10542 esac
10543 fi
10544 break
10545 fi
10546 done
10547 IFS=$lt_save_ifs
10548 MAGIC_CMD=$lt_save_MAGIC_CMD
10549 ;;
10550 esac ;;
10551 esac
10552 fi
10553
10554 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10555 if test -n "$MAGIC_CMD"; then
10556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10557 printf "%s\n" "$MAGIC_CMD" >&6; }
10558 else
10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560 printf "%s\n" "no" >&6; }
10561 fi
10562
10563
10564 else
10565 MAGIC_CMD=:
10566 fi
10567 fi
10568
10569 fi
10570 ;;
10571 esac
10572
10573 # Use C for the default configuration in the libtool script
10574
10575 lt_save_CC=$CC
10576 ac_ext=c
10577 ac_cpp='$CPP $CPPFLAGS'
10578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10581
10582
10583 # Source file extension for C test sources.
10584 ac_ext=c
10585
10586 # Object file extension for compiled C test sources.
10587 objext=o
10588 objext=$objext
10589
10590 # Code to be used in simple compile tests
10591 lt_simple_compile_test_code="int some_variable = 0;"
10592
10593 # Code to be used in simple link tests
10594 lt_simple_link_test_code='int main(void){return(0);}'
10595
10596
10597
10598
10599
10600
10601
10602 # If no C compiler was specified, use CC.
10603 LTCC=${LTCC-"$CC"}
10604
10605 # If no C compiler flags were specified, use CFLAGS.
10606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10607
10608 # Allow CC to be a program name with arguments.
10609 compiler=$CC
10610
10611 # Save the default compiler, since it gets overwritten when the other
10612 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10613 compiler_DEFAULT=$CC
10614
10615 # save warnings/boilerplate of simple test code
10616 ac_outfile=conftest.$ac_objext
10617 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10618 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10619 _lt_compiler_boilerplate=`cat conftest.err`
10620 $RM conftest*
10621
10622 ac_outfile=conftest.$ac_objext
10623 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10624 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10625 _lt_linker_boilerplate=`cat conftest.err`
10626 $RM -r conftest*
10627
10628
10629 ## CAVEAT EMPTOR:
10630 ## There is no encapsulation within the following macros, do not change
10631 ## the running order or otherwise move them around unless you know exactly
10632 ## what you are doing...
10633 if test -n "$compiler"; then
10634
10635 lt_prog_compiler_no_builtin_flag=
10636
10637 if test yes = "$GCC"; then
10638 case $cc_basename in
10639 nvcc*)
10640 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10641 *)
10642 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10643 esac
10644
10645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10646 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10647 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10648 then :
10649 printf %s "(cached) " >&6
10650 else case e in #(
10651 e) lt_cv_prog_compiler_rtti_exceptions=no
10652 ac_outfile=conftest.$ac_objext
10653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10654 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10655 # Insert the option either (1) after the last *FLAGS variable, or
10656 # (2) before a word containing "conftest.", or (3) at the end.
10657 # Note that $ac_compile itself does not contain backslashes and begins
10658 # with a dollar sign (not a hyphen), so the echo should work correctly.
10659 # The option is referenced via a variable to avoid confusing sed.
10660 lt_compile=`echo "$ac_compile" | $SED \
10661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10663 -e 's:$: $lt_compiler_flag:'`
10664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10665 (eval "$lt_compile" 2>conftest.err)
10666 ac_status=$?
10667 cat conftest.err >&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 if (exit $ac_status) && test -s "$ac_outfile"; then
10670 # The compiler can only warn and ignore the option if not recognized
10671 # So say no if there are warnings other than the usual output.
10672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10675 lt_cv_prog_compiler_rtti_exceptions=yes
10676 fi
10677 fi
10678 $RM conftest*
10679 ;;
10680 esac
10681 fi
10682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10683 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10684
10685 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10686 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10687 else
10688 :
10689 fi
10690
10691 fi
10692
10693
10694
10695
10696
10697
10698 lt_prog_compiler_wl=
10699 lt_prog_compiler_pic=
10700 lt_prog_compiler_static=
10701
10702
10703 if test yes = "$GCC"; then
10704 lt_prog_compiler_wl='-Wl,'
10705 lt_prog_compiler_static='-static'
10706
10707 case $host_os in
10708 aix*)
10709 # All AIX code is PIC.
10710 if test ia64 = "$host_cpu"; then
10711 # AIX 5 now supports IA64 processor
10712 lt_prog_compiler_static='-Bstatic'
10713 fi
10714 lt_prog_compiler_pic='-fPIC'
10715 ;;
10716
10717 amigaos*)
10718 case $host_cpu in
10719 powerpc)
10720 # see comment about AmigaOS4 .so support
10721 lt_prog_compiler_pic='-fPIC'
10722 ;;
10723 m68k)
10724 # FIXME: we need at least 68020 code to build shared libraries, but
10725 # adding the '-m68020' flag to GCC prevents building anything better,
10726 # like '-m68040'.
10727 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10728 ;;
10729 esac
10730 ;;
10731
10732 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10733 # PIC is the default for these OSes.
10734 ;;
10735
10736 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10737 # This hack is so that the source file can tell whether it is being
10738 # built for inclusion in a dll (and should export symbols for example).
10739 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10740 # (--disable-auto-import) libraries
10741 lt_prog_compiler_pic='-DDLL_EXPORT'
10742 case $host_os in
10743 os2*)
10744 lt_prog_compiler_static='$wl-static'
10745 ;;
10746 esac
10747 ;;
10748
10749 darwin* | rhapsody*)
10750 # PIC is the default on this platform
10751 # Common symbols not allowed in MH_DYLIB files
10752 lt_prog_compiler_pic='-fno-common'
10753 ;;
10754
10755 haiku*)
10756 # PIC is the default for Haiku.
10757 # The "-static" flag exists, but is broken.
10758 lt_prog_compiler_static=
10759 ;;
10760
10761 hpux*)
10762 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10763 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10764 # sets the default TLS model and affects inlining.
10765 case $host_cpu in
10766 hppa*64*)
10767 # +Z the default
10768 ;;
10769 *)
10770 lt_prog_compiler_pic='-fPIC'
10771 ;;
10772 esac
10773 ;;
10774
10775 interix[3-9]*)
10776 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10777 # Instead, we relocate shared libraries at runtime.
10778 ;;
10779
10780 msdosdjgpp*)
10781 # Just because we use GCC doesn't mean we suddenly get shared libraries
10782 # on systems that don't support them.
10783 lt_prog_compiler_can_build_shared=no
10784 enable_shared=no
10785 ;;
10786
10787 *nto* | *qnx*)
10788 # QNX uses GNU C++, but need to define -shared option too, otherwise
10789 # it will coredump.
10790 lt_prog_compiler_pic='-fPIC -shared'
10791 ;;
10792
10793 sysv4*MP*)
10794 if test -d /usr/nec; then
10795 lt_prog_compiler_pic=-Kconform_pic
10796 fi
10797 ;;
10798
10799 *)
10800 lt_prog_compiler_pic='-fPIC'
10801 ;;
10802 esac
10803
10804 case $cc_basename in
10805 nvcc*) # Cuda Compiler Driver 2.2
10806 lt_prog_compiler_wl='-Xlinker '
10807 if test -n "$lt_prog_compiler_pic"; then
10808 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10809 fi
10810 ;;
10811 esac
10812 else
10813 # PORTME Check for flag to pass linker flags through the system compiler.
10814 case $host_os in
10815 aix*)
10816 lt_prog_compiler_wl='-Wl,'
10817 if test ia64 = "$host_cpu"; then
10818 # AIX 5 now supports IA64 processor
10819 lt_prog_compiler_static='-Bstatic'
10820 else
10821 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10822 fi
10823 ;;
10824
10825 darwin* | rhapsody*)
10826 # PIC is the default on this platform
10827 # Common symbols not allowed in MH_DYLIB files
10828 lt_prog_compiler_pic='-fno-common'
10829 case $cc_basename in
10830 nagfor*)
10831 # NAG Fortran compiler
10832 lt_prog_compiler_wl='-Wl,-Wl,,'
10833 lt_prog_compiler_pic='-PIC'
10834 lt_prog_compiler_static='-Bstatic'
10835 ;;
10836 esac
10837 ;;
10838
10839 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10840 # This hack is so that the source file can tell whether it is being
10841 # built for inclusion in a dll (and should export symbols for example).
10842 lt_prog_compiler_pic='-DDLL_EXPORT'
10843 case $host_os in
10844 os2*)
10845 lt_prog_compiler_static='$wl-static'
10846 ;;
10847 esac
10848 ;;
10849
10850 hpux9* | hpux10* | hpux11*)
10851 lt_prog_compiler_wl='-Wl,'
10852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10853 # not for PA HP-UX.
10854 case $host_cpu in
10855 hppa*64*|ia64*)
10856 # +Z the default
10857 ;;
10858 *)
10859 lt_prog_compiler_pic='+Z'
10860 ;;
10861 esac
10862 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10863 lt_prog_compiler_static='$wl-a ${wl}archive'
10864 ;;
10865
10866 irix5* | irix6* | nonstopux*)
10867 lt_prog_compiler_wl='-Wl,'
10868 # PIC (with -KPIC) is the default.
10869 lt_prog_compiler_static='-non_shared'
10870 ;;
10871
10872 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10873 case $cc_basename in
10874 # old Intel for x86_64, which still supported -KPIC.
10875 ecc*)
10876 lt_prog_compiler_wl='-Wl,'
10877 lt_prog_compiler_pic='-KPIC'
10878 lt_prog_compiler_static='-static'
10879 ;;
10880 *flang* | ftn | f18* | f95*)
10881 # Flang compiler.
10882 lt_prog_compiler_wl='-Wl,'
10883 lt_prog_compiler_pic='-fPIC'
10884 lt_prog_compiler_static='-static'
10885 ;;
10886 # icc used to be incompatible with GCC.
10887 # ICC 10 doesn't accept -KPIC any more.
10888 icc* | ifort*)
10889 lt_prog_compiler_wl='-Wl,'
10890 lt_prog_compiler_pic='-fPIC'
10891 lt_prog_compiler_static='-static'
10892 ;;
10893 # Lahey Fortran 8.1.
10894 lf95*)
10895 lt_prog_compiler_wl='-Wl,'
10896 lt_prog_compiler_pic='--shared'
10897 lt_prog_compiler_static='--static'
10898 ;;
10899 nagfor*)
10900 # NAG Fortran compiler
10901 lt_prog_compiler_wl='-Wl,-Wl,,'
10902 lt_prog_compiler_pic='-PIC'
10903 lt_prog_compiler_static='-Bstatic'
10904 ;;
10905 tcc*)
10906 # Fabrice Bellard et al's Tiny C Compiler
10907 lt_prog_compiler_wl='-Wl,'
10908 lt_prog_compiler_pic='-fPIC'
10909 lt_prog_compiler_static='-static'
10910 ;;
10911 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10912 # Portland Group compilers (*not* the Pentium gcc compiler,
10913 # which looks to be a dead project)
10914 lt_prog_compiler_wl='-Wl,'
10915 lt_prog_compiler_pic='-fpic'
10916 lt_prog_compiler_static='-Bstatic'
10917 ;;
10918 ccc*)
10919 lt_prog_compiler_wl='-Wl,'
10920 # All Alpha code is PIC.
10921 lt_prog_compiler_static='-non_shared'
10922 ;;
10923 xl* | bgxl* | bgf* | mpixl*)
10924 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10925 lt_prog_compiler_wl='-Wl,'
10926 lt_prog_compiler_pic='-qpic'
10927 lt_prog_compiler_static='-qstaticlink'
10928 ;;
10929 *)
10930 case `$CC -V 2>&1 | $SED 5q` in
10931 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10932 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10933 lt_prog_compiler_pic='-KPIC'
10934 lt_prog_compiler_static='-Bstatic'
10935 lt_prog_compiler_wl=''
10936 ;;
10937 *Sun\ F* | *Sun*Fortran*)
10938 lt_prog_compiler_pic='-KPIC'
10939 lt_prog_compiler_static='-Bstatic'
10940 lt_prog_compiler_wl='-Qoption ld '
10941 ;;
10942 *Sun\ C*)
10943 # Sun C 5.9
10944 lt_prog_compiler_pic='-KPIC'
10945 lt_prog_compiler_static='-Bstatic'
10946 lt_prog_compiler_wl='-Wl,'
10947 ;;
10948 *Intel*\ [CF]*Compiler*)
10949 lt_prog_compiler_wl='-Wl,'
10950 lt_prog_compiler_pic='-fPIC'
10951 lt_prog_compiler_static='-static'
10952 ;;
10953 *Portland\ Group*)
10954 lt_prog_compiler_wl='-Wl,'
10955 lt_prog_compiler_pic='-fpic'
10956 lt_prog_compiler_static='-Bstatic'
10957 ;;
10958 esac
10959 ;;
10960 esac
10961 ;;
10962
10963 newsos6)
10964 lt_prog_compiler_pic='-KPIC'
10965 lt_prog_compiler_static='-Bstatic'
10966 ;;
10967
10968 *-mlibc)
10969 lt_prog_compiler_wl='-Wl,'
10970 lt_prog_compiler_pic='-fPIC'
10971 lt_prog_compiler_static='-static'
10972 ;;
10973
10974 *nto* | *qnx*)
10975 # QNX uses GNU C++, but need to define -shared option too, otherwise
10976 # it will coredump.
10977 lt_prog_compiler_pic='-fPIC -shared'
10978 ;;
10979
10980 osf3* | osf4* | osf5*)
10981 lt_prog_compiler_wl='-Wl,'
10982 # All OSF/1 code is PIC.
10983 lt_prog_compiler_static='-non_shared'
10984 ;;
10985
10986 rdos*)
10987 lt_prog_compiler_static='-non_shared'
10988 ;;
10989
10990 serenity*)
10991 ;;
10992
10993 solaris*)
10994 lt_prog_compiler_pic='-KPIC'
10995 lt_prog_compiler_static='-Bstatic'
10996 case $cc_basename in
10997 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10998 lt_prog_compiler_wl='-Qoption ld ';;
10999 *)
11000 lt_prog_compiler_wl='-Wl,';;
11001 esac
11002 ;;
11003
11004 sunos4*)
11005 lt_prog_compiler_wl='-Qoption ld '
11006 lt_prog_compiler_pic='-PIC'
11007 lt_prog_compiler_static='-Bstatic'
11008 ;;
11009
11010 sysv4 | sysv4.2uw2* | sysv4.3*)
11011 lt_prog_compiler_wl='-Wl,'
11012 lt_prog_compiler_pic='-KPIC'
11013 lt_prog_compiler_static='-Bstatic'
11014 ;;
11015
11016 sysv4*MP*)
11017 if test -d /usr/nec; then
11018 lt_prog_compiler_pic='-Kconform_pic'
11019 lt_prog_compiler_static='-Bstatic'
11020 fi
11021 ;;
11022
11023 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11024 lt_prog_compiler_wl='-Wl,'
11025 lt_prog_compiler_pic='-KPIC'
11026 lt_prog_compiler_static='-Bstatic'
11027 ;;
11028
11029 unicos*)
11030 lt_prog_compiler_wl='-Wl,'
11031 lt_prog_compiler_can_build_shared=no
11032 ;;
11033
11034 uts4*)
11035 lt_prog_compiler_pic='-pic'
11036 lt_prog_compiler_static='-Bstatic'
11037 ;;
11038
11039 *)
11040 lt_prog_compiler_can_build_shared=no
11041 ;;
11042 esac
11043 fi
11044
11045 case $host_os in
11046 # For platforms that do not support PIC, -DPIC is meaningless:
11047 *djgpp*)
11048 lt_prog_compiler_pic=
11049 ;;
11050 *)
11051 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11052 ;;
11053 esac
11054
11055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11056 printf %s "checking for $compiler option to produce PIC... " >&6; }
11057 if test ${lt_cv_prog_compiler_pic+y}
11058 then :
11059 printf %s "(cached) " >&6
11060 else case e in #(
11061 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11062 esac
11063 fi
11064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11065 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11066 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11067
11068 #
11069 # Check to make sure the PIC flag actually works.
11070 #
11071 if test -n "$lt_prog_compiler_pic"; then
11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11073 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11074 if test ${lt_cv_prog_compiler_pic_works+y}
11075 then :
11076 printf %s "(cached) " >&6
11077 else case e in #(
11078 e) lt_cv_prog_compiler_pic_works=no
11079 ac_outfile=conftest.$ac_objext
11080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11081 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11082 # Insert the option either (1) after the last *FLAGS variable, or
11083 # (2) before a word containing "conftest.", or (3) at the end.
11084 # Note that $ac_compile itself does not contain backslashes and begins
11085 # with a dollar sign (not a hyphen), so the echo should work correctly.
11086 # The option is referenced via a variable to avoid confusing sed.
11087 lt_compile=`echo "$ac_compile" | $SED \
11088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11090 -e 's:$: $lt_compiler_flag:'`
11091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11092 (eval "$lt_compile" 2>conftest.err)
11093 ac_status=$?
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 if (exit $ac_status) && test -s "$ac_outfile"; then
11097 # The compiler can only warn and ignore the option if not recognized
11098 # So say no if there are warnings other than the usual output.
11099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11101 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11102 lt_cv_prog_compiler_pic_works=yes
11103 fi
11104 fi
11105 $RM conftest*
11106 ;;
11107 esac
11108 fi
11109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11110 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11111
11112 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11113 case $lt_prog_compiler_pic in
11114 "" | " "*) ;;
11115 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11116 esac
11117 else
11118 lt_prog_compiler_pic=
11119 lt_prog_compiler_can_build_shared=no
11120 fi
11121
11122 fi
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134 #
11135 # Check to make sure the static flag actually works.
11136 #
11137 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11139 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11140 if test ${lt_cv_prog_compiler_static_works+y}
11141 then :
11142 printf %s "(cached) " >&6
11143 else case e in #(
11144 e) lt_cv_prog_compiler_static_works=no
11145 save_LDFLAGS=$LDFLAGS
11146 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11147 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11148 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11149 # The linker can only warn and ignore the option if not recognized
11150 # So say no if there are warnings
11151 if test -s conftest.err; then
11152 # Append any errors to the config.log.
11153 cat conftest.err 1>&5
11154 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11156 if diff conftest.exp conftest.er2 >/dev/null; then
11157 lt_cv_prog_compiler_static_works=yes
11158 fi
11159 else
11160 lt_cv_prog_compiler_static_works=yes
11161 fi
11162 fi
11163 $RM -r conftest*
11164 LDFLAGS=$save_LDFLAGS
11165 ;;
11166 esac
11167 fi
11168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11169 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11170
11171 if test yes = "$lt_cv_prog_compiler_static_works"; then
11172 :
11173 else
11174 lt_prog_compiler_static=
11175 fi
11176
11177
11178
11179
11180
11181
11182
11183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11184 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11185 if test ${lt_cv_prog_compiler_c_o+y}
11186 then :
11187 printf %s "(cached) " >&6
11188 else case e in #(
11189 e) lt_cv_prog_compiler_c_o=no
11190 $RM -r conftest 2>/dev/null
11191 mkdir conftest
11192 cd conftest
11193 mkdir out
11194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11195
11196 lt_compiler_flag="-o out/conftest2.$ac_objext"
11197 # Insert the option either (1) after the last *FLAGS variable, or
11198 # (2) before a word containing "conftest.", or (3) at the end.
11199 # Note that $ac_compile itself does not contain backslashes and begins
11200 # with a dollar sign (not a hyphen), so the echo should work correctly.
11201 lt_compile=`echo "$ac_compile" | $SED \
11202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11204 -e 's:$: $lt_compiler_flag:'`
11205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11206 (eval "$lt_compile" 2>out/conftest.err)
11207 ac_status=$?
11208 cat out/conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11211 then
11212 # The compiler can only warn and ignore the option if not recognized
11213 # So say no if there are warnings
11214 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11215 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11216 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11217 lt_cv_prog_compiler_c_o=yes
11218 fi
11219 fi
11220 chmod u+w . 2>&5
11221 $RM conftest*
11222 # SGI C++ compiler will create directory out/ii_files/ for
11223 # template instantiation
11224 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11225 $RM out/* && rmdir out
11226 cd ..
11227 $RM -r conftest
11228 $RM conftest*
11229 ;;
11230 esac
11231 fi
11232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11233 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11234
11235
11236
11237
11238
11239
11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11241 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11242 if test ${lt_cv_prog_compiler_c_o+y}
11243 then :
11244 printf %s "(cached) " >&6
11245 else case e in #(
11246 e) lt_cv_prog_compiler_c_o=no
11247 $RM -r conftest 2>/dev/null
11248 mkdir conftest
11249 cd conftest
11250 mkdir out
11251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11252
11253 lt_compiler_flag="-o out/conftest2.$ac_objext"
11254 # Insert the option either (1) after the last *FLAGS variable, or
11255 # (2) before a word containing "conftest.", or (3) at the end.
11256 # Note that $ac_compile itself does not contain backslashes and begins
11257 # with a dollar sign (not a hyphen), so the echo should work correctly.
11258 lt_compile=`echo "$ac_compile" | $SED \
11259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11261 -e 's:$: $lt_compiler_flag:'`
11262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11263 (eval "$lt_compile" 2>out/conftest.err)
11264 ac_status=$?
11265 cat out/conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11268 then
11269 # The compiler can only warn and ignore the option if not recognized
11270 # So say no if there are warnings
11271 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11272 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11273 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11274 lt_cv_prog_compiler_c_o=yes
11275 fi
11276 fi
11277 chmod u+w . 2>&5
11278 $RM conftest*
11279 # SGI C++ compiler will create directory out/ii_files/ for
11280 # template instantiation
11281 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11282 $RM out/* && rmdir out
11283 cd ..
11284 $RM -r conftest
11285 $RM conftest*
11286 ;;
11287 esac
11288 fi
11289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11290 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11291
11292
11293
11294
11295 hard_links=nottested
11296 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11297 # do not overwrite the value of need_locks provided by the user
11298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11299 printf %s "checking if we can lock with hard links... " >&6; }
11300 hard_links=yes
11301 $RM conftest*
11302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11303 touch conftest.a
11304 ln conftest.a conftest.b 2>&5 || hard_links=no
11305 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11307 printf "%s\n" "$hard_links" >&6; }
11308 if test no = "$hard_links"; then
11309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11310 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11311 need_locks=warn
11312 fi
11313 else
11314 need_locks=no
11315 fi
11316
11317
11318
11319
11320
11321
11322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11323 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11324
11325 runpath_var=
11326 allow_undefined_flag=
11327 always_export_symbols=no
11328 archive_cmds=
11329 archive_expsym_cmds=
11330 compiler_needs_object=no
11331 enable_shared_with_static_runtimes=no
11332 export_dynamic_flag_spec=
11333 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11334 hardcode_automatic=no
11335 hardcode_direct=no
11336 hardcode_direct_absolute=no
11337 hardcode_libdir_flag_spec=
11338 hardcode_libdir_separator=
11339 hardcode_minus_L=no
11340 hardcode_shlibpath_var=unsupported
11341 inherit_rpath=no
11342 link_all_deplibs=unknown
11343 module_cmds=
11344 module_expsym_cmds=
11345 old_archive_from_new_cmds=
11346 old_archive_from_expsyms_cmds=
11347 thread_safe_flag_spec=
11348 whole_archive_flag_spec=
11349 # include_expsyms should be a list of space-separated symbols to be *always*
11350 # included in the symbol list
11351 include_expsyms=
11352 # exclude_expsyms can be an extended regexp of symbols to exclude
11353 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11354 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11355 # as well as any symbol that contains 'd'.
11356 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11357 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11358 # platforms (ab)use it in PIC code, but their linkers get confused if
11359 # the symbol is explicitly referenced. Since portable code cannot
11360 # rely on this symbol name, it's probably fine to never include it in
11361 # preloaded symbol tables.
11362 # Exclude shared library initialization/finalization symbols.
11363 extract_expsyms_cmds=
11364
11365 case $host_os in
11366 cygwin* | mingw* | windows* | pw32* | cegcc*)
11367 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11368 # When not using gcc, we currently assume that we are using
11369 # Microsoft Visual C++ or Intel C++ Compiler.
11370 if test yes != "$GCC"; then
11371 with_gnu_ld=no
11372 fi
11373 ;;
11374 interix*)
11375 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11376 with_gnu_ld=yes
11377 ;;
11378 esac
11379
11380 ld_shlibs=yes
11381
11382 # On some targets, GNU ld is compatible enough with the native linker
11383 # that we're better off using the native interface for both.
11384 lt_use_gnu_ld_interface=no
11385 if test yes = "$with_gnu_ld"; then
11386 case $host_os in
11387 aix*)
11388 # The AIX port of GNU ld has always aspired to compatibility
11389 # with the native linker. However, as the warning in the GNU ld
11390 # block says, versions before 2.19.5* couldn't really create working
11391 # shared libraries, regardless of the interface used.
11392 case `$LD -v 2>&1` in
11393 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11394 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11395 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11396 *)
11397 lt_use_gnu_ld_interface=yes
11398 ;;
11399 esac
11400 ;;
11401 *)
11402 lt_use_gnu_ld_interface=yes
11403 ;;
11404 esac
11405 fi
11406
11407 if test yes = "$lt_use_gnu_ld_interface"; then
11408 # If archive_cmds runs LD, not CC, wlarc should be empty
11409 wlarc='$wl'
11410
11411 # Set some defaults for GNU ld with shared library support. These
11412 # are reset later if shared libraries are not supported. Putting them
11413 # here allows them to be overridden if necessary.
11414 runpath_var=LD_RUN_PATH
11415 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11416 export_dynamic_flag_spec='$wl--export-dynamic'
11417 # ancient GNU ld didn't support --whole-archive et. al.
11418 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11419 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11420 else
11421 whole_archive_flag_spec=
11422 fi
11423 supports_anon_versioning=no
11424 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11425 *GNU\ gold*) supports_anon_versioning=yes ;;
11426 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11427 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11428 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11429 *\ 2.11.*) ;; # other 2.11 versions
11430 *) supports_anon_versioning=yes ;;
11431 esac
11432
11433 # See if GNU ld supports shared libraries.
11434 case $host_os in
11435 aix[3-9]*)
11436 # On AIX/PPC, the GNU linker is very broken
11437 if test ia64 != "$host_cpu"; then
11438 ld_shlibs=no
11439 cat <<_LT_EOF 1>&2
11440
11441 *** Warning: the GNU linker, at least up to release 2.19, is reported
11442 *** to be unable to reliably create shared libraries on AIX.
11443 *** Therefore, libtool is disabling shared libraries support. If you
11444 *** really care for shared libraries, you may want to install binutils
11445 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11446 *** You will then need to restart the configuration process.
11447
11448 _LT_EOF
11449 fi
11450 ;;
11451
11452 amigaos*)
11453 case $host_cpu in
11454 powerpc)
11455 # see comment about AmigaOS4 .so support
11456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11457 archive_expsym_cmds=''
11458 ;;
11459 m68k)
11460 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)'
11461 hardcode_libdir_flag_spec='-L$libdir'
11462 hardcode_minus_L=yes
11463 ;;
11464 esac
11465 ;;
11466
11467 beos*)
11468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11469 allow_undefined_flag=unsupported
11470 # Joseph Beckenbach <[email protected]> says some releases of gcc
11471 # support --undefined. This deserves some investigation. FIXME
11472 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11473 else
11474 ld_shlibs=no
11475 fi
11476 ;;
11477
11478 cygwin* | mingw* | windows* | pw32* | cegcc*)
11479 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11480 # as there is no search path for DLLs.
11481 hardcode_libdir_flag_spec='-L$libdir'
11482 export_dynamic_flag_spec='$wl--export-all-symbols'
11483 allow_undefined_flag=unsupported
11484 always_export_symbols=no
11485 enable_shared_with_static_runtimes=yes
11486 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'
11487 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11488 file_list_spec='@'
11489
11490 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11492 # If the export-symbols file already is a .def file, use it as
11493 # is; otherwise, prepend EXPORTS...
11494 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11495 cp $export_symbols $output_objdir/$soname.def;
11496 else
11497 echo EXPORTS > $output_objdir/$soname.def;
11498 cat $export_symbols >> $output_objdir/$soname.def;
11499 fi~
11500 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11501 else
11502 ld_shlibs=no
11503 fi
11504 ;;
11505
11506 haiku*)
11507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11508 link_all_deplibs=no
11509 ;;
11510
11511 os2*)
11512 hardcode_libdir_flag_spec='-L$libdir'
11513 hardcode_minus_L=yes
11514 allow_undefined_flag=unsupported
11515 shrext_cmds=.dll
11516 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11517 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11518 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11519 $ECHO EXPORTS >> $output_objdir/$libname.def~
11520 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11521 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11522 emximp -o $lib $output_objdir/$libname.def'
11523 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11524 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11525 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11526 $ECHO EXPORTS >> $output_objdir/$libname.def~
11527 prefix_cmds="$SED"~
11528 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11529 prefix_cmds="$prefix_cmds -e 1d";
11530 fi~
11531 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11532 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11533 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11534 emximp -o $lib $output_objdir/$libname.def'
11535 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11536 enable_shared_with_static_runtimes=yes
11537 file_list_spec='@'
11538 ;;
11539
11540 interix[3-9]*)
11541 hardcode_direct=no
11542 hardcode_shlibpath_var=no
11543 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11544 export_dynamic_flag_spec='$wl-E'
11545 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11546 # Instead, shared libraries are loaded at an image base (0x10000000 by
11547 # default) and relocated if they conflict, which is a slow very memory
11548 # consuming and fragmenting process. To avoid this, we pick a random,
11549 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11550 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11551 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11552 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'
11553 ;;
11554
11555 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11556 tmp_diet=no
11557 if test linux-dietlibc = "$host_os"; then
11558 case $cc_basename in
11559 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11560 esac
11561 fi
11562 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11563 && test no = "$tmp_diet"
11564 then
11565 tmp_addflag=' $pic_flag'
11566 tmp_sharedflag='-shared'
11567 case $cc_basename,$host_cpu in
11568 pgcc*) # Portland Group C compiler
11569 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'
11570 tmp_addflag=' $pic_flag'
11571 ;;
11572 pgf77* | pgf90* | pgf95* | pgfortran*)
11573 # Portland Group f77 and f90 compilers
11574 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'
11575 tmp_addflag=' $pic_flag -Mnomain' ;;
11576 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11577 tmp_addflag=' -i_dynamic' ;;
11578 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11579 tmp_addflag=' -i_dynamic -nofor_main' ;;
11580 ifc* | ifort*) # Intel Fortran compiler
11581 tmp_addflag=' -nofor_main' ;;
11582 lf95*) # Lahey Fortran 8.1
11583 whole_archive_flag_spec=
11584 tmp_sharedflag='--shared' ;;
11585 nagfor*) # NAGFOR 5.3
11586 tmp_sharedflag='-Wl,-shared' ;;
11587 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11588 tmp_sharedflag='-qmkshrobj'
11589 tmp_addflag= ;;
11590 nvcc*) # Cuda Compiler Driver 2.2
11591 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'
11592 compiler_needs_object=yes
11593 ;;
11594 esac
11595 case `$CC -V 2>&1 | $SED 5q` in
11596 *Sun\ C*) # Sun C 5.9
11597 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'
11598 compiler_needs_object=yes
11599 tmp_sharedflag='-G' ;;
11600 *Sun\ F*) # Sun Fortran 8.3
11601 tmp_sharedflag='-G' ;;
11602 esac
11603 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11604
11605 if test yes = "$supports_anon_versioning"; then
11606 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11607 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11608 echo "local: *; };" >> $output_objdir/$libname.ver~
11609 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11610 fi
11611
11612 case $cc_basename in
11613 tcc*)
11614 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11615 export_dynamic_flag_spec='-rdynamic'
11616 ;;
11617 xlf* | bgf* | bgxlf* | mpixlf*)
11618 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11619 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11620 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11621 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11622 if test yes = "$supports_anon_versioning"; then
11623 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11624 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11625 echo "local: *; };" >> $output_objdir/$libname.ver~
11626 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11627 fi
11628 ;;
11629 esac
11630 else
11631 ld_shlibs=no
11632 fi
11633 ;;
11634
11635 *-mlibc)
11636 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11637 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11638 ;;
11639
11640 netbsd* | netbsdelf*-gnu)
11641 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11642 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11643 wlarc=
11644 else
11645 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11646 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11647 fi
11648 ;;
11649
11650 solaris*)
11651 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11652 ld_shlibs=no
11653 cat <<_LT_EOF 1>&2
11654
11655 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11656 *** create shared libraries on Solaris systems. Therefore, libtool
11657 *** is disabling shared libraries support. We urge you to upgrade GNU
11658 *** binutils to release 2.9.1 or newer. Another option is to modify
11659 *** your PATH or compiler configuration so that the native linker is
11660 *** used, and then restart.
11661
11662 _LT_EOF
11663 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11664 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11665 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11666 else
11667 ld_shlibs=no
11668 fi
11669 ;;
11670
11671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11672 case `$LD -v 2>&1` in
11673 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11674 ld_shlibs=no
11675 cat <<_LT_EOF 1>&2
11676
11677 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11678 *** reliably create shared libraries on SCO systems. Therefore, libtool
11679 *** is disabling shared libraries support. We urge you to upgrade GNU
11680 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11681 *** your PATH or compiler configuration so that the native linker is
11682 *** used, and then restart.
11683
11684 _LT_EOF
11685 ;;
11686 *)
11687 # For security reasons, it is highly recommended that you always
11688 # use absolute paths for naming shared libraries, and exclude the
11689 # DT_RUNPATH tag from executables and libraries. But doing so
11690 # requires that you compile everything twice, which is a pain.
11691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11692 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11695 else
11696 ld_shlibs=no
11697 fi
11698 ;;
11699 esac
11700 ;;
11701
11702 sunos4*)
11703 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11704 wlarc=
11705 hardcode_direct=yes
11706 hardcode_shlibpath_var=no
11707 ;;
11708
11709 *)
11710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11711 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11712 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11713 else
11714 ld_shlibs=no
11715 fi
11716 ;;
11717 esac
11718
11719 if test no = "$ld_shlibs"; then
11720 runpath_var=
11721 hardcode_libdir_flag_spec=
11722 export_dynamic_flag_spec=
11723 whole_archive_flag_spec=
11724 fi
11725 else
11726 # PORTME fill in a description of your system's linker (not GNU ld)
11727 case $host_os in
11728 aix3*)
11729 allow_undefined_flag=unsupported
11730 always_export_symbols=yes
11731 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'
11732 # Note: this linker hardcodes the directories in LIBPATH if there
11733 # are no directories specified by -L.
11734 hardcode_minus_L=yes
11735 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11736 # Neither direct hardcoding nor static linking is supported with a
11737 # broken collect2.
11738 hardcode_direct=unsupported
11739 fi
11740 ;;
11741
11742 aix[4-9]*)
11743 if test ia64 = "$host_cpu"; then
11744 # On IA64, the linker does run time linking by default, so we don't
11745 # have to do anything special.
11746 aix_use_runtimelinking=no
11747 exp_sym_flag='-Bexport'
11748 no_entry_flag=
11749 else
11750 # If we're using GNU nm, then we don't want the "-C" option.
11751 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11752 # Without the "-l" option, or with the "-B" option, AIX nm treats
11753 # weak defined symbols like other global defined symbols, whereas
11754 # GNU nm marks them as "W".
11755 # While the 'weak' keyword is ignored in the Export File, we need
11756 # it in the Import File for the 'aix-soname' feature, so we have
11757 # to replace the "-B" option with "-P" for AIX nm.
11758 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11759 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'
11760 else
11761 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'
11762 fi
11763 aix_use_runtimelinking=no
11764
11765 # Test if we are trying to use run time linking or normal
11766 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11767 # have runtime linking enabled, and use it for executables.
11768 # For shared libraries, we enable/disable runtime linking
11769 # depending on the kind of the shared library created -
11770 # when "with_aix_soname,aix_use_runtimelinking" is:
11771 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11772 # "aix,yes" lib.so shared, rtl:yes, for executables
11773 # lib.a static archive
11774 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11775 # lib.a(lib.so.V) shared, rtl:no, for executables
11776 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11777 # lib.a(lib.so.V) shared, rtl:no
11778 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11779 # lib.a static archive
11780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11781 for ld_flag in $LDFLAGS; do
11782 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11783 aix_use_runtimelinking=yes
11784 break
11785 fi
11786 done
11787 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11788 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11789 # so we don't have lib.a shared libs to link our executables.
11790 # We have to force runtime linking in this case.
11791 aix_use_runtimelinking=yes
11792 LDFLAGS="$LDFLAGS -Wl,-brtl"
11793 fi
11794 ;;
11795 esac
11796
11797 exp_sym_flag='-bexport'
11798 no_entry_flag='-bnoentry'
11799 fi
11800
11801 # When large executables or shared objects are built, AIX ld can
11802 # have problems creating the table of contents. If linking a library
11803 # or program results in "error TOC overflow" add -mminimal-toc to
11804 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11805 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11806
11807 archive_cmds=''
11808 hardcode_direct=yes
11809 hardcode_direct_absolute=yes
11810 hardcode_libdir_separator=':'
11811 link_all_deplibs=yes
11812 file_list_spec='$wl-f,'
11813 case $with_aix_soname,$aix_use_runtimelinking in
11814 aix,*) ;; # traditional, no import file
11815 svr4,* | *,yes) # use import file
11816 # The Import File defines what to hardcode.
11817 hardcode_direct=no
11818 hardcode_direct_absolute=no
11819 ;;
11820 esac
11821
11822 if test yes = "$GCC"; then
11823 case $host_os in aix4.[012]|aix4.[012].*)
11824 # We only want to do this on AIX 4.2 and lower, the check
11825 # below for broken collect2 doesn't work under 4.3+
11826 collect2name=`$CC -print-prog-name=collect2`
11827 if test -f "$collect2name" &&
11828 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11829 then
11830 # We have reworked collect2
11831 :
11832 else
11833 # We have old collect2
11834 hardcode_direct=unsupported
11835 # It fails to find uninstalled libraries when the uninstalled
11836 # path is not listed in the libpath. Setting hardcode_minus_L
11837 # to unsupported forces relinking
11838 hardcode_minus_L=yes
11839 hardcode_libdir_flag_spec='-L$libdir'
11840 hardcode_libdir_separator=
11841 fi
11842 ;;
11843 esac
11844 shared_flag='-shared'
11845 if test yes = "$aix_use_runtimelinking"; then
11846 shared_flag="$shared_flag "'$wl-G'
11847 fi
11848 # Need to ensure runtime linking is disabled for the traditional
11849 # shared library, or the linker may eventually find shared libraries
11850 # /with/ Import File - we do not want to mix them.
11851 shared_flag_aix='-shared'
11852 shared_flag_svr4='-shared $wl-G'
11853 else
11854 # not using gcc
11855 if test ia64 = "$host_cpu"; then
11856 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11857 # chokes on -Wl,-G. The following line is correct:
11858 shared_flag='-G'
11859 else
11860 if test yes = "$aix_use_runtimelinking"; then
11861 shared_flag='$wl-G'
11862 else
11863 shared_flag='$wl-bM:SRE'
11864 fi
11865 shared_flag_aix='$wl-bM:SRE'
11866 shared_flag_svr4='$wl-G'
11867 fi
11868 fi
11869
11870 export_dynamic_flag_spec='$wl-bexpall'
11871 # It seems that -bexpall does not export symbols beginning with
11872 # underscore (_), so it is better to generate a list of symbols to export.
11873 always_export_symbols=yes
11874 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11875 # Warning - without using the other runtime loading flags (-brtl),
11876 # -berok will link without error, but may produce a broken library.
11877 allow_undefined_flag='-berok'
11878 # Determine the default libpath from the value encoded in an
11879 # empty executable.
11880 if test set = "${lt_cv_aix_libpath+set}"; then
11881 aix_libpath=$lt_cv_aix_libpath
11882 else
11883 if test ${lt_cv_aix_libpath_+y}
11884 then :
11885 printf %s "(cached) " >&6
11886 else case e in #(
11887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11889
11890 int
11891 main (void)
11892 {
11893
11894 ;
11895 return 0;
11896 }
11897 _ACEOF
11898 if ac_fn_c_try_link "$LINENO"
11899 then :
11900
11901 lt_aix_libpath_sed='
11902 /Import File Strings/,/^$/ {
11903 /^0/ {
11904 s/^0 *\([^ ]*\) *$/\1/
11905 p
11906 }
11907 }'
11908 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11909 # Check for a 64-bit object if we didn't find anything.
11910 if test -z "$lt_cv_aix_libpath_"; then
11911 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11912 fi
11913 fi
11914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11915 conftest$ac_exeext conftest.$ac_ext
11916 if test -z "$lt_cv_aix_libpath_"; then
11917 lt_cv_aix_libpath_=/usr/lib:/lib
11918 fi
11919 ;;
11920 esac
11921 fi
11922
11923 aix_libpath=$lt_cv_aix_libpath_
11924 fi
11925
11926 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11927 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
11928 else
11929 if test ia64 = "$host_cpu"; then
11930 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11931 allow_undefined_flag="-z nodefs"
11932 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"
11933 else
11934 # Determine the default libpath from the value encoded in an
11935 # empty executable.
11936 if test set = "${lt_cv_aix_libpath+set}"; then
11937 aix_libpath=$lt_cv_aix_libpath
11938 else
11939 if test ${lt_cv_aix_libpath_+y}
11940 then :
11941 printf %s "(cached) " >&6
11942 else case e in #(
11943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11945
11946 int
11947 main (void)
11948 {
11949
11950 ;
11951 return 0;
11952 }
11953 _ACEOF
11954 if ac_fn_c_try_link "$LINENO"
11955 then :
11956
11957 lt_aix_libpath_sed='
11958 /Import File Strings/,/^$/ {
11959 /^0/ {
11960 s/^0 *\([^ ]*\) *$/\1/
11961 p
11962 }
11963 }'
11964 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11965 # Check for a 64-bit object if we didn't find anything.
11966 if test -z "$lt_cv_aix_libpath_"; then
11967 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11968 fi
11969 fi
11970 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11971 conftest$ac_exeext conftest.$ac_ext
11972 if test -z "$lt_cv_aix_libpath_"; then
11973 lt_cv_aix_libpath_=/usr/lib:/lib
11974 fi
11975 ;;
11976 esac
11977 fi
11978
11979 aix_libpath=$lt_cv_aix_libpath_
11980 fi
11981
11982 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11983 # Warning - without using the other run time loading flags,
11984 # -berok will link without error, but may produce a broken library.
11985 no_undefined_flag=' $wl-bernotok'
11986 allow_undefined_flag=' $wl-berok'
11987 if test yes = "$with_gnu_ld"; then
11988 # We only use this code for GNU lds that support --whole-archive.
11989 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11990 else
11991 # Exported symbols can be pulled into shared objects from archives
11992 whole_archive_flag_spec='$convenience'
11993 fi
11994 archive_cmds_need_lc=yes
11995 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11996 # -brtl affects multiple linker settings, -berok does not and is overridden later
11997 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11998 if test svr4 != "$with_aix_soname"; then
11999 # This is similar to how AIX traditionally builds its shared libraries.
12000 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'
12001 fi
12002 if test aix != "$with_aix_soname"; then
12003 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'
12004 else
12005 # used by -dlpreopen to get the symbols
12006 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12007 fi
12008 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12009 fi
12010 fi
12011 ;;
12012
12013 amigaos*)
12014 case $host_cpu in
12015 powerpc)
12016 # see comment about AmigaOS4 .so support
12017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12018 archive_expsym_cmds=''
12019 ;;
12020 m68k)
12021 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)'
12022 hardcode_libdir_flag_spec='-L$libdir'
12023 hardcode_minus_L=yes
12024 ;;
12025 esac
12026 ;;
12027
12028 bsdi[45]*)
12029 export_dynamic_flag_spec=-rdynamic
12030 ;;
12031
12032 cygwin* | mingw* | windows* | pw32* | cegcc*)
12033 # When not using gcc, we currently assume that we are using
12034 # Microsoft Visual C++ or Intel C++ Compiler.
12035 # hardcode_libdir_flag_spec is actually meaningless, as there is
12036 # no search path for DLLs.
12037 case $cc_basename in
12038 cl* | icl*)
12039 # Native MSVC or ICC
12040 hardcode_libdir_flag_spec=' '
12041 allow_undefined_flag=unsupported
12042 always_export_symbols=yes
12043 file_list_spec='@'
12044 # Tell ltmain to make .lib files, not .a files.
12045 libext=lib
12046 # Tell ltmain to make .dll files, not .so files.
12047 shrext_cmds=.dll
12048 # FIXME: Setting linknames here is a bad hack.
12049 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12050 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12051 cp "$export_symbols" "$output_objdir/$soname.def";
12052 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12053 else
12054 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12055 fi~
12056 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12057 linknames='
12058 # The linker will not automatically build a static lib if we build a DLL.
12059 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12060 enable_shared_with_static_runtimes=yes
12061 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12062 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12063 # Don't use ranlib
12064 old_postinstall_cmds='chmod 644 $oldlib'
12065 postlink_cmds='lt_outputfile="@OUTPUT@"~
12066 lt_tool_outputfile="@TOOL_OUTPUT@"~
12067 case $lt_outputfile in
12068 *.exe|*.EXE) ;;
12069 *)
12070 lt_outputfile=$lt_outputfile.exe
12071 lt_tool_outputfile=$lt_tool_outputfile.exe
12072 ;;
12073 esac~
12074 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12075 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12076 $RM "$lt_outputfile.manifest";
12077 fi'
12078 ;;
12079 *)
12080 # Assume MSVC and ICC wrapper
12081 hardcode_libdir_flag_spec=' '
12082 allow_undefined_flag=unsupported
12083 # Tell ltmain to make .lib files, not .a files.
12084 libext=lib
12085 # Tell ltmain to make .dll files, not .so files.
12086 shrext_cmds=.dll
12087 # FIXME: Setting linknames here is a bad hack.
12088 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12089 # The linker will automatically build a .lib file if we build a DLL.
12090 old_archive_from_new_cmds='true'
12091 # FIXME: Should let the user specify the lib program.
12092 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12093 enable_shared_with_static_runtimes=yes
12094 ;;
12095 esac
12096 ;;
12097
12098 darwin* | rhapsody*)
12099
12100
12101 archive_cmds_need_lc=no
12102 hardcode_direct=no
12103 hardcode_automatic=yes
12104 hardcode_shlibpath_var=unsupported
12105 if test yes = "$lt_cv_ld_force_load"; then
12106 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\"`'
12107
12108 else
12109 whole_archive_flag_spec=''
12110 fi
12111 link_all_deplibs=yes
12112 allow_undefined_flag=$_lt_dar_allow_undefined
12113 case $cc_basename in
12114 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12115 *) _lt_dar_can_shared=$GCC ;;
12116 esac
12117 if test yes = "$_lt_dar_can_shared"; then
12118 output_verbose_link_cmd=func_echo_all
12119 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12120 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12121 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"
12122 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"
12123
12124 else
12125 ld_shlibs=no
12126 fi
12127
12128 ;;
12129
12130 dgux*)
12131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12132 hardcode_libdir_flag_spec='-L$libdir'
12133 hardcode_shlibpath_var=no
12134 ;;
12135
12136 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12137 # support. Future versions do this automatically, but an explicit c++rt0.o
12138 # does not break anything, and helps significantly (at the cost of a little
12139 # extra space).
12140 freebsd2.2*)
12141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12142 hardcode_libdir_flag_spec='-R$libdir'
12143 hardcode_direct=yes
12144 hardcode_shlibpath_var=no
12145 ;;
12146
12147 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12148 freebsd2.*)
12149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12150 hardcode_direct=yes
12151 hardcode_minus_L=yes
12152 hardcode_shlibpath_var=no
12153 ;;
12154
12155 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12156 freebsd* | dragonfly* | midnightbsd*)
12157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12158 hardcode_libdir_flag_spec='-R$libdir'
12159 hardcode_direct=yes
12160 hardcode_shlibpath_var=no
12161 ;;
12162
12163 hpux9*)
12164 if test yes = "$GCC"; then
12165 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'
12166 else
12167 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'
12168 fi
12169 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12170 hardcode_libdir_separator=:
12171 hardcode_direct=yes
12172
12173 # hardcode_minus_L: Not really in the search PATH,
12174 # but as the default location of the library.
12175 hardcode_minus_L=yes
12176 export_dynamic_flag_spec='$wl-E'
12177 ;;
12178
12179 hpux10*)
12180 if test yes,no = "$GCC,$with_gnu_ld"; then
12181 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12182 else
12183 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12184 fi
12185 if test no = "$with_gnu_ld"; then
12186 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12187 hardcode_libdir_separator=:
12188 hardcode_direct=yes
12189 hardcode_direct_absolute=yes
12190 export_dynamic_flag_spec='$wl-E'
12191 # hardcode_minus_L: Not really in the search PATH,
12192 # but as the default location of the library.
12193 hardcode_minus_L=yes
12194 fi
12195 ;;
12196
12197 hpux11*)
12198 if test yes,no = "$GCC,$with_gnu_ld"; then
12199 case $host_cpu in
12200 hppa*64*)
12201 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12202 ;;
12203 ia64*)
12204 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12205 ;;
12206 *)
12207 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12208 ;;
12209 esac
12210 else
12211 case $host_cpu in
12212 hppa*64*)
12213 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12214 ;;
12215 ia64*)
12216 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12217 ;;
12218 *)
12219
12220 # Older versions of the 11.00 compiler do not understand -b yet
12221 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12223 printf %s "checking if $CC understands -b... " >&6; }
12224 if test ${lt_cv_prog_compiler__b+y}
12225 then :
12226 printf %s "(cached) " >&6
12227 else case e in #(
12228 e) lt_cv_prog_compiler__b=no
12229 save_LDFLAGS=$LDFLAGS
12230 LDFLAGS="$LDFLAGS -b"
12231 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12232 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12233 # The linker can only warn and ignore the option if not recognized
12234 # So say no if there are warnings
12235 if test -s conftest.err; then
12236 # Append any errors to the config.log.
12237 cat conftest.err 1>&5
12238 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12240 if diff conftest.exp conftest.er2 >/dev/null; then
12241 lt_cv_prog_compiler__b=yes
12242 fi
12243 else
12244 lt_cv_prog_compiler__b=yes
12245 fi
12246 fi
12247 $RM -r conftest*
12248 LDFLAGS=$save_LDFLAGS
12249 ;;
12250 esac
12251 fi
12252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12253 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12254
12255 if test yes = "$lt_cv_prog_compiler__b"; then
12256 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12257 else
12258 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12259 fi
12260
12261 ;;
12262 esac
12263 fi
12264 if test no = "$with_gnu_ld"; then
12265 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12266 hardcode_libdir_separator=:
12267
12268 case $host_cpu in
12269 hppa*64*|ia64*)
12270 hardcode_direct=no
12271 hardcode_shlibpath_var=no
12272 ;;
12273 *)
12274 hardcode_direct=yes
12275 hardcode_direct_absolute=yes
12276 export_dynamic_flag_spec='$wl-E'
12277
12278 # hardcode_minus_L: Not really in the search PATH,
12279 # but as the default location of the library.
12280 hardcode_minus_L=yes
12281 ;;
12282 esac
12283 fi
12284 ;;
12285
12286 irix5* | irix6* | nonstopux*)
12287 if test yes = "$GCC"; then
12288 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'
12289 # Try to use the -exported_symbol ld option, if it does not
12290 # work, assume that -exports_file does not work either and
12291 # implicitly export all symbols.
12292 # This should be the same for all languages, so no per-tag cache variable.
12293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12294 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12295 if test ${lt_cv_irix_exported_symbol+y}
12296 then :
12297 printf %s "(cached) " >&6
12298 else case e in #(
12299 e) save_LDFLAGS=$LDFLAGS
12300 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h. */
12303 int foo (void) { return 0; }
12304 _ACEOF
12305 if ac_fn_c_try_link "$LINENO"
12306 then :
12307 lt_cv_irix_exported_symbol=yes
12308 else case e in #(
12309 e) lt_cv_irix_exported_symbol=no ;;
12310 esac
12311 fi
12312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12313 conftest$ac_exeext conftest.$ac_ext
12314 LDFLAGS=$save_LDFLAGS ;;
12315 esac
12316 fi
12317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12318 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12319 if test yes = "$lt_cv_irix_exported_symbol"; then
12320 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'
12321 fi
12322 else
12323 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'
12324 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'
12325 fi
12326 archive_cmds_need_lc='no'
12327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12328 hardcode_libdir_separator=:
12329 inherit_rpath=yes
12330 link_all_deplibs=yes
12331 ;;
12332
12333 linux*)
12334 case $cc_basename in
12335 tcc*)
12336 # Fabrice Bellard et al's Tiny C Compiler
12337 ld_shlibs=yes
12338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12339 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12340 ;;
12341 esac
12342 ;;
12343
12344 *-mlibc)
12345 ;;
12346
12347 netbsd* | netbsdelf*-gnu)
12348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12350 else
12351 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12352 fi
12353 hardcode_libdir_flag_spec='-R$libdir'
12354 hardcode_direct=yes
12355 hardcode_shlibpath_var=no
12356 ;;
12357
12358 newsos6)
12359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12360 hardcode_direct=yes
12361 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12362 hardcode_libdir_separator=:
12363 hardcode_shlibpath_var=no
12364 ;;
12365
12366 *nto* | *qnx*)
12367 ;;
12368
12369 openbsd*)
12370 if test -f /usr/libexec/ld.so; then
12371 hardcode_direct=yes
12372 hardcode_shlibpath_var=no
12373 hardcode_direct_absolute=yes
12374 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12376 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12377 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12378 export_dynamic_flag_spec='$wl-E'
12379 else
12380 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12381 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12382 fi
12383 else
12384 ld_shlibs=no
12385 fi
12386 ;;
12387
12388 os2*)
12389 hardcode_libdir_flag_spec='-L$libdir'
12390 hardcode_minus_L=yes
12391 allow_undefined_flag=unsupported
12392 shrext_cmds=.dll
12393 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12394 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12395 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12396 $ECHO EXPORTS >> $output_objdir/$libname.def~
12397 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12398 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12399 emximp -o $lib $output_objdir/$libname.def'
12400 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12401 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12402 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12403 $ECHO EXPORTS >> $output_objdir/$libname.def~
12404 prefix_cmds="$SED"~
12405 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12406 prefix_cmds="$prefix_cmds -e 1d";
12407 fi~
12408 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12409 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12410 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12411 emximp -o $lib $output_objdir/$libname.def'
12412 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12413 enable_shared_with_static_runtimes=yes
12414 file_list_spec='@'
12415 ;;
12416
12417 osf3*)
12418 if test yes = "$GCC"; then
12419 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12420 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'
12421 else
12422 allow_undefined_flag=' -expect_unresolved \*'
12423 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'
12424 fi
12425 archive_cmds_need_lc='no'
12426 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12427 hardcode_libdir_separator=:
12428 ;;
12429
12430 osf4* | osf5*) # as osf3* with the addition of -msym flag
12431 if test yes = "$GCC"; then
12432 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12433 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'
12434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12435 else
12436 allow_undefined_flag=' -expect_unresolved \*'
12437 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'
12438 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~
12439 $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'
12440
12441 # Both c and cxx compiler support -rpath directly
12442 hardcode_libdir_flag_spec='-rpath $libdir'
12443 fi
12444 archive_cmds_need_lc='no'
12445 hardcode_libdir_separator=:
12446 ;;
12447
12448 serenity*)
12449 ;;
12450
12451 solaris*)
12452 no_undefined_flag=' -z defs'
12453 if test yes = "$GCC"; then
12454 wlarc='$wl'
12455 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12456 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12457 $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'
12458 else
12459 case `$CC -V 2>&1` in
12460 *"Compilers 5.0"*)
12461 wlarc=''
12462 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12463 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12464 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12465 ;;
12466 *)
12467 wlarc='$wl'
12468 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12470 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12471 ;;
12472 esac
12473 fi
12474 hardcode_libdir_flag_spec='-R$libdir'
12475 hardcode_shlibpath_var=no
12476 case $host_os in
12477 solaris2.[0-5] | solaris2.[0-5].*) ;;
12478 *)
12479 # The compiler driver will combine and reorder linker options,
12480 # but understands '-z linker_flag'. GCC discards it without '$wl',
12481 # but is careful enough not to reorder.
12482 # Supported since Solaris 2.6 (maybe 2.5.1?)
12483 if test yes = "$GCC"; then
12484 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12485 else
12486 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12487 fi
12488 ;;
12489 esac
12490 link_all_deplibs=yes
12491 ;;
12492
12493 sunos4*)
12494 if test sequent = "$host_vendor"; then
12495 # Use $CC to link under sequent, because it throws in some extra .o
12496 # files that make .init and .fini sections work.
12497 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12498 else
12499 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12500 fi
12501 hardcode_libdir_flag_spec='-L$libdir'
12502 hardcode_direct=yes
12503 hardcode_minus_L=yes
12504 hardcode_shlibpath_var=no
12505 ;;
12506
12507 sysv4)
12508 case $host_vendor in
12509 sni)
12510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12511 hardcode_direct=yes # is this really true???
12512 ;;
12513 siemens)
12514 ## LD is ld it makes a PLAMLIB
12515 ## CC just makes a GrossModule.
12516 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12517 reload_cmds='$CC -r -o $output$reload_objs'
12518 hardcode_direct=no
12519 ;;
12520 motorola)
12521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12522 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12523 ;;
12524 esac
12525 runpath_var='LD_RUN_PATH'
12526 hardcode_shlibpath_var=no
12527 ;;
12528
12529 sysv4.3*)
12530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12531 hardcode_shlibpath_var=no
12532 export_dynamic_flag_spec='-Bexport'
12533 ;;
12534
12535 sysv4*MP*)
12536 if test -d /usr/nec; then
12537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12538 hardcode_shlibpath_var=no
12539 runpath_var=LD_RUN_PATH
12540 hardcode_runpath_var=yes
12541 ld_shlibs=yes
12542 fi
12543 ;;
12544
12545 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12546 no_undefined_flag='$wl-z,text'
12547 archive_cmds_need_lc=no
12548 hardcode_shlibpath_var=no
12549 runpath_var='LD_RUN_PATH'
12550
12551 if test yes = "$GCC"; then
12552 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12553 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12554 else
12555 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12556 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12557 fi
12558 ;;
12559
12560 sysv5* | sco3.2v5* | sco5v6*)
12561 # Note: We CANNOT use -z defs as we might desire, because we do not
12562 # link with -lc, and that would cause any symbols used from libc to
12563 # always be unresolved, which means just about no library would
12564 # ever link correctly. If we're not using GNU ld we use -z text
12565 # though, which does catch some bad symbols but isn't as heavy-handed
12566 # as -z defs.
12567 no_undefined_flag='$wl-z,text'
12568 allow_undefined_flag='$wl-z,nodefs'
12569 archive_cmds_need_lc=no
12570 hardcode_shlibpath_var=no
12571 hardcode_libdir_flag_spec='$wl-R,$libdir'
12572 hardcode_libdir_separator=':'
12573 link_all_deplibs=yes
12574 export_dynamic_flag_spec='$wl-Bexport'
12575 runpath_var='LD_RUN_PATH'
12576
12577 if test yes = "$GCC"; then
12578 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12579 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12580 else
12581 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12582 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12583 fi
12584 ;;
12585
12586 uts4*)
12587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12588 hardcode_libdir_flag_spec='-L$libdir'
12589 hardcode_shlibpath_var=no
12590 ;;
12591
12592 *)
12593 ld_shlibs=no
12594 ;;
12595 esac
12596
12597 if test sni = "$host_vendor"; then
12598 case $host in
12599 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12600 export_dynamic_flag_spec='$wl-Blargedynsym'
12601 ;;
12602 esac
12603 fi
12604 fi
12605
12606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12607 printf "%s\n" "$ld_shlibs" >&6; }
12608 test no = "$ld_shlibs" && can_build_shared=no
12609
12610 with_gnu_ld=$with_gnu_ld
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626 #
12627 # Do we need to explicitly link libc?
12628 #
12629 case "x$archive_cmds_need_lc" in
12630 x|xyes)
12631 # Assume -lc should be added
12632 archive_cmds_need_lc=yes
12633
12634 if test yes,yes = "$GCC,$enable_shared"; then
12635 case $archive_cmds in
12636 *'~'*)
12637 # FIXME: we may have to deal with multi-command sequences.
12638 ;;
12639 '$CC '*)
12640 # Test whether the compiler implicitly links with -lc since on some
12641 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12642 # to ld, don't add -lc before -lgcc.
12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12644 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12645 if test ${lt_cv_archive_cmds_need_lc+y}
12646 then :
12647 printf %s "(cached) " >&6
12648 else case e in #(
12649 e) $RM conftest*
12650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12651
12652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12653 (eval $ac_compile) 2>&5
12654 ac_status=$?
12655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12656 test $ac_status = 0; } 2>conftest.err; then
12657 soname=conftest
12658 lib=conftest
12659 libobjs=conftest.$ac_objext
12660 deplibs=
12661 wl=$lt_prog_compiler_wl
12662 pic_flag=$lt_prog_compiler_pic
12663 compiler_flags=-v
12664 linker_flags=-v
12665 verstring=
12666 output_objdir=.
12667 libname=conftest
12668 lt_save_allow_undefined_flag=$allow_undefined_flag
12669 allow_undefined_flag=
12670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12671 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12672 ac_status=$?
12673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12674 test $ac_status = 0; }
12675 then
12676 lt_cv_archive_cmds_need_lc=no
12677 else
12678 lt_cv_archive_cmds_need_lc=yes
12679 fi
12680 allow_undefined_flag=$lt_save_allow_undefined_flag
12681 else
12682 cat conftest.err 1>&5
12683 fi
12684 $RM conftest*
12685 ;;
12686 esac
12687 fi
12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12689 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12690 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12691 ;;
12692 esac
12693 fi
12694 ;;
12695 esac
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12849 printf %s "checking dynamic linker characteristics... " >&6; }
12850
12851 if test yes = "$GCC"; then
12852 case $host_os in
12853 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12854 *) lt_awk_arg='/^libraries:/' ;;
12855 esac
12856 case $host_os in
12857 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12858 *) lt_sed_strip_eq='s|=/|/|g' ;;
12859 esac
12860 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12861 case $lt_search_path_spec in
12862 *\;*)
12863 # if the path contains ";" then we assume it to be the separator
12864 # otherwise default to the standard path separator (i.e. ":") - it is
12865 # assumed that no part of a normal pathname contains ";" but that should
12866 # okay in the real world where ";" in dirpaths is itself problematic.
12867 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12868 ;;
12869 *)
12870 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12871 ;;
12872 esac
12873 # Ok, now we have the path, separated by spaces, we can step through it
12874 # and add multilib dir if necessary...
12875 lt_tmp_lt_search_path_spec=
12876 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12877 # ...but if some path component already ends with the multilib dir we assume
12878 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12879 case "$lt_multi_os_dir; $lt_search_path_spec " in
12880 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12881 lt_multi_os_dir=
12882 ;;
12883 esac
12884 for lt_sys_path in $lt_search_path_spec; do
12885 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12886 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12887 elif test -n "$lt_multi_os_dir"; then
12888 test -d "$lt_sys_path" && \
12889 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12890 fi
12891 done
12892 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12893 BEGIN {RS = " "; FS = "/|\n";} {
12894 lt_foo = "";
12895 lt_count = 0;
12896 for (lt_i = NF; lt_i > 0; lt_i--) {
12897 if ($lt_i != "" && $lt_i != ".") {
12898 if ($lt_i == "..") {
12899 lt_count++;
12900 } else {
12901 if (lt_count == 0) {
12902 lt_foo = "/" $lt_i lt_foo;
12903 } else {
12904 lt_count--;
12905 }
12906 }
12907 }
12908 }
12909 if (lt_foo != "") { lt_freq[lt_foo]++; }
12910 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12911 }'`
12912 # AWK program above erroneously prepends '/' to C:/dos/paths
12913 # for these hosts.
12914 case $host_os in
12915 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12916 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12917 esac
12918 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12919 else
12920 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12921 fi
12922 library_names_spec=
12923 libname_spec='lib$name'
12924 soname_spec=
12925 shrext_cmds=.so
12926 postinstall_cmds=
12927 postuninstall_cmds=
12928 finish_cmds=
12929 finish_eval=
12930 shlibpath_var=
12931 shlibpath_overrides_runpath=unknown
12932 version_type=none
12933 dynamic_linker="$host_os ld.so"
12934 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12935 need_lib_prefix=unknown
12936 hardcode_into_libs=no
12937
12938 # when you set need_version to no, make sure it does not cause -set_version
12939 # flags to be left without arguments
12940 need_version=unknown
12941
12942
12943
12944 case $host_os in
12945 aix3*)
12946 version_type=linux # correct to gnu/linux during the next big refactor
12947 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12948 shlibpath_var=LIBPATH
12949
12950 # AIX 3 has no versioning support, so we append a major version to the name.
12951 soname_spec='$libname$release$shared_ext$major'
12952 ;;
12953
12954 aix[4-9]*)
12955 version_type=linux # correct to gnu/linux during the next big refactor
12956 need_lib_prefix=no
12957 need_version=no
12958 hardcode_into_libs=yes
12959 if test ia64 = "$host_cpu"; then
12960 # AIX 5 supports IA64
12961 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12962 shlibpath_var=LD_LIBRARY_PATH
12963 else
12964 # With GCC up to 2.95.x, collect2 would create an import file
12965 # for dependence libraries. The import file would start with
12966 # the line '#! .'. This would cause the generated library to
12967 # depend on '.', always an invalid library. This was fixed in
12968 # development snapshots of GCC prior to 3.0.
12969 case $host_os in
12970 aix4 | aix4.[01] | aix4.[01].*)
12971 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12972 echo ' yes '
12973 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12974 :
12975 else
12976 can_build_shared=no
12977 fi
12978 ;;
12979 esac
12980 # Using Import Files as archive members, it is possible to support
12981 # filename-based versioning of shared library archives on AIX. While
12982 # this would work for both with and without runtime linking, it will
12983 # prevent static linking of such archives. So we do filename-based
12984 # shared library versioning with .so extension only, which is used
12985 # when both runtime linking and shared linking is enabled.
12986 # Unfortunately, runtime linking may impact performance, so we do
12987 # not want this to be the default eventually. Also, we use the
12988 # versioned .so libs for executables only if there is the -brtl
12989 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12990 # To allow for filename-based versioning support, we need to create
12991 # libNAME.so.V as an archive file, containing:
12992 # *) an Import File, referring to the versioned filename of the
12993 # archive as well as the shared archive member, telling the
12994 # bitwidth (32 or 64) of that shared object, and providing the
12995 # list of exported symbols of that shared object, eventually
12996 # decorated with the 'weak' keyword
12997 # *) the shared object with the F_LOADONLY flag set, to really avoid
12998 # it being seen by the linker.
12999 # At run time we better use the real file rather than another symlink,
13000 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13001
13002 case $with_aix_soname,$aix_use_runtimelinking in
13003 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13004 # soname into executable. Probably we can add versioning support to
13005 # collect2, so additional links can be useful in future.
13006 aix,yes) # traditional libtool
13007 dynamic_linker='AIX unversionable lib.so'
13008 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13009 # instead of lib<name>.a to let people know that these are not
13010 # typical AIX shared libraries.
13011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13012 ;;
13013 aix,no) # traditional AIX only
13014 dynamic_linker='AIX lib.a(lib.so.V)'
13015 # We preserve .a as extension for shared libraries through AIX4.2
13016 # and later when we are not doing run time linking.
13017 library_names_spec='$libname$release.a $libname.a'
13018 soname_spec='$libname$release$shared_ext$major'
13019 ;;
13020 svr4,*) # full svr4 only
13021 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13022 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13023 # We do not specify a path in Import Files, so LIBPATH fires.
13024 shlibpath_overrides_runpath=yes
13025 ;;
13026 *,yes) # both, prefer svr4
13027 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13028 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13029 # unpreferred sharedlib libNAME.a needs extra handling
13030 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"'
13031 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"'
13032 # We do not specify a path in Import Files, so LIBPATH fires.
13033 shlibpath_overrides_runpath=yes
13034 ;;
13035 *,no) # both, prefer aix
13036 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13037 library_names_spec='$libname$release.a $libname.a'
13038 soname_spec='$libname$release$shared_ext$major'
13039 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13040 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)'
13041 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"'
13042 ;;
13043 esac
13044 shlibpath_var=LIBPATH
13045 fi
13046 ;;
13047
13048 amigaos*)
13049 case $host_cpu in
13050 powerpc)
13051 # Since July 2007 AmigaOS4 officially supports .so libraries.
13052 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13054 ;;
13055 m68k)
13056 library_names_spec='$libname.ixlibrary $libname.a'
13057 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13058 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'
13059 ;;
13060 esac
13061 ;;
13062
13063 beos*)
13064 library_names_spec='$libname$shared_ext'
13065 dynamic_linker="$host_os ld.so"
13066 shlibpath_var=LIBRARY_PATH
13067 ;;
13068
13069 bsdi[45]*)
13070 version_type=linux # correct to gnu/linux during the next big refactor
13071 need_version=no
13072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13073 soname_spec='$libname$release$shared_ext$major'
13074 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13075 shlibpath_var=LD_LIBRARY_PATH
13076 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13077 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13078 # the default ld.so.conf also contains /usr/contrib/lib and
13079 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13080 # libtool to hard-code these into programs
13081 ;;
13082
13083 cygwin* | mingw* | windows* | pw32* | cegcc*)
13084 version_type=windows
13085 shrext_cmds=.dll
13086 need_version=no
13087 need_lib_prefix=no
13088
13089 case $GCC,$cc_basename in
13090 yes,*)
13091 # gcc
13092 library_names_spec='$libname.dll.a'
13093 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13094 # If user builds GCC with multilib enabled,
13095 # it should just install on $(libdir)
13096 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13097 if test xyes = x"$multilib"; then
13098 postinstall_cmds='base_file=`basename \$file`~
13099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13100 dldir=$destdir/`dirname \$dlpath`~
13101 $install_prog $dir/$dlname $destdir/$dlname~
13102 chmod a+x $destdir/$dlname~
13103 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13104 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13105 fi'
13106 else
13107 postinstall_cmds='base_file=`basename \$file`~
13108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13109 dldir=$destdir/`dirname \$dlpath`~
13110 test -d \$dldir || mkdir -p \$dldir~
13111 $install_prog $dir/$dlname \$dldir/$dlname~
13112 chmod a+x \$dldir/$dlname~
13113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13115 fi'
13116 fi
13117 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13118 dlpath=$dir/\$dldll~
13119 $RM \$dlpath'
13120 shlibpath_overrides_runpath=yes
13121
13122 case $host_os in
13123 cygwin*)
13124 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13125 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13126
13127 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13128 ;;
13129 mingw* | windows* | cegcc*)
13130 # MinGW DLLs use traditional 'lib' prefix
13131 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13132 ;;
13133 pw32*)
13134 # pw32 DLLs use 'pw' prefix rather than 'lib'
13135 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13136 ;;
13137 esac
13138 dynamic_linker='Win32 ld.exe'
13139 ;;
13140
13141 *,cl* | *,icl*)
13142 # Native MSVC or ICC
13143 libname_spec='$name'
13144 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13145 library_names_spec='$libname.dll.lib'
13146
13147 case $build_os in
13148 mingw* | windows*)
13149 sys_lib_search_path_spec=
13150 lt_save_ifs=$IFS
13151 IFS=';'
13152 for lt_path in $LIB
13153 do
13154 IFS=$lt_save_ifs
13155 # Let DOS variable expansion print the short 8.3 style file name.
13156 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13157 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13158 done
13159 IFS=$lt_save_ifs
13160 # Convert to MSYS style.
13161 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13162 ;;
13163 cygwin*)
13164 # Convert to unix form, then to dos form, then back to unix form
13165 # but this time dos style (no spaces!) so that the unix form looks
13166 # like /cygdrive/c/PROGRA~1:/cygdr...
13167 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13168 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13169 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13170 ;;
13171 *)
13172 sys_lib_search_path_spec=$LIB
13173 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13174 # It is most probably a Windows format PATH.
13175 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13176 else
13177 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13178 fi
13179 # FIXME: find the short name or the path components, as spaces are
13180 # common. (e.g. "Program Files" -> "PROGRA~1")
13181 ;;
13182 esac
13183
13184 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13185 postinstall_cmds='base_file=`basename \$file`~
13186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13187 dldir=$destdir/`dirname \$dlpath`~
13188 test -d \$dldir || mkdir -p \$dldir~
13189 $install_prog $dir/$dlname \$dldir/$dlname'
13190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13191 dlpath=$dir/\$dldll~
13192 $RM \$dlpath'
13193 shlibpath_overrides_runpath=yes
13194 dynamic_linker='Win32 link.exe'
13195 ;;
13196
13197 *)
13198 # Assume MSVC and ICC wrapper
13199 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13200 dynamic_linker='Win32 ld.exe'
13201 ;;
13202 esac
13203 # FIXME: first we should search . and the directory the executable is in
13204 shlibpath_var=PATH
13205 ;;
13206
13207 darwin* | rhapsody*)
13208 dynamic_linker="$host_os dyld"
13209 version_type=darwin
13210 need_lib_prefix=no
13211 need_version=no
13212 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13213 soname_spec='$libname$release$major$shared_ext'
13214 shlibpath_overrides_runpath=yes
13215 shlibpath_var=DYLD_LIBRARY_PATH
13216 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13217
13218 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13220 ;;
13221
13222 dgux*)
13223 version_type=linux # correct to gnu/linux during the next big refactor
13224 need_lib_prefix=no
13225 need_version=no
13226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13227 soname_spec='$libname$release$shared_ext$major'
13228 shlibpath_var=LD_LIBRARY_PATH
13229 ;;
13230
13231 freebsd* | dragonfly* | midnightbsd*)
13232 # DragonFly does not have aout. When/if they implement a new
13233 # versioning mechanism, adjust this.
13234 if test -x /usr/bin/objformat; then
13235 objformat=`/usr/bin/objformat`
13236 else
13237 case $host_os in
13238 freebsd[23].*) objformat=aout ;;
13239 *) objformat=elf ;;
13240 esac
13241 fi
13242 version_type=freebsd-$objformat
13243 case $version_type in
13244 freebsd-elf*)
13245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13246 soname_spec='$libname$release$shared_ext$major'
13247 need_version=no
13248 need_lib_prefix=no
13249 ;;
13250 freebsd-*)
13251 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13252 need_version=yes
13253 ;;
13254 esac
13255 case $host_cpu in
13256 powerpc64)
13257 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13258 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13261 int test_pointer_size[sizeof (void *) - 5];
13262
13263 _ACEOF
13264 if ac_fn_c_try_compile "$LINENO"
13265 then :
13266 shlibpath_var=LD_LIBRARY_PATH
13267 else case e in #(
13268 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13269 esac
13270 fi
13271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13272 ;;
13273 *)
13274 shlibpath_var=LD_LIBRARY_PATH
13275 ;;
13276 esac
13277 case $host_os in
13278 freebsd2.*)
13279 shlibpath_overrides_runpath=yes
13280 ;;
13281 freebsd3.[01]* | freebsdelf3.[01]*)
13282 shlibpath_overrides_runpath=yes
13283 hardcode_into_libs=yes
13284 ;;
13285 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13286 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13287 shlibpath_overrides_runpath=no
13288 hardcode_into_libs=yes
13289 ;;
13290 *) # from 4.6 on, and DragonFly
13291 shlibpath_overrides_runpath=yes
13292 hardcode_into_libs=yes
13293 ;;
13294 esac
13295 ;;
13296
13297 haiku*)
13298 version_type=linux # correct to gnu/linux during the next big refactor
13299 need_lib_prefix=no
13300 need_version=no
13301 dynamic_linker="$host_os runtime_loader"
13302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13303 soname_spec='$libname$release$shared_ext$major'
13304 shlibpath_var=LIBRARY_PATH
13305 shlibpath_overrides_runpath=no
13306 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13307 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13308 hardcode_into_libs=no
13309 ;;
13310
13311 hpux9* | hpux10* | hpux11*)
13312 # Give a soname corresponding to the major version so that dld.sl refuses to
13313 # link against other versions.
13314 version_type=sunos
13315 need_lib_prefix=no
13316 need_version=no
13317 case $host_cpu in
13318 ia64*)
13319 shrext_cmds='.so'
13320 hardcode_into_libs=yes
13321 dynamic_linker="$host_os dld.so"
13322 shlibpath_var=LD_LIBRARY_PATH
13323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13325 soname_spec='$libname$release$shared_ext$major'
13326 if test 32 = "$HPUX_IA64_MODE"; then
13327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13328 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13329 else
13330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13331 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13332 fi
13333 ;;
13334 hppa*64*)
13335 shrext_cmds='.sl'
13336 hardcode_into_libs=yes
13337 dynamic_linker="$host_os dld.sl"
13338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13341 soname_spec='$libname$release$shared_ext$major'
13342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13344 ;;
13345 *)
13346 shrext_cmds='.sl'
13347 dynamic_linker="$host_os dld.sl"
13348 shlibpath_var=SHLIB_PATH
13349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13351 soname_spec='$libname$release$shared_ext$major'
13352 ;;
13353 esac
13354 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13355 postinstall_cmds='chmod 555 $lib'
13356 # or fails outright, so override atomically:
13357 install_override_mode=555
13358 ;;
13359
13360 interix[3-9]*)
13361 version_type=linux # correct to gnu/linux during the next big refactor
13362 need_lib_prefix=no
13363 need_version=no
13364 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13365 soname_spec='$libname$release$shared_ext$major'
13366 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13367 shlibpath_var=LD_LIBRARY_PATH
13368 shlibpath_overrides_runpath=no
13369 hardcode_into_libs=yes
13370 ;;
13371
13372 irix5* | irix6* | nonstopux*)
13373 case $host_os in
13374 nonstopux*) version_type=nonstopux ;;
13375 *)
13376 if test yes = "$lt_cv_prog_gnu_ld"; then
13377 version_type=linux # correct to gnu/linux during the next big refactor
13378 else
13379 version_type=irix
13380 fi ;;
13381 esac
13382 need_lib_prefix=no
13383 need_version=no
13384 soname_spec='$libname$release$shared_ext$major'
13385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13386 case $host_os in
13387 irix5* | nonstopux*)
13388 libsuff= shlibsuff=
13389 ;;
13390 *)
13391 case $LD in # libtool.m4 will add one of these switches to LD
13392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13393 libsuff= shlibsuff= libmagic=32-bit;;
13394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13395 libsuff=32 shlibsuff=N32 libmagic=N32;;
13396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13398 *) libsuff= shlibsuff= libmagic=never-match;;
13399 esac
13400 ;;
13401 esac
13402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13403 shlibpath_overrides_runpath=no
13404 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13405 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13406 hardcode_into_libs=yes
13407 ;;
13408
13409 # No shared lib support for Linux oldld, aout, or coff.
13410 linux*oldld* | linux*aout* | linux*coff*)
13411 dynamic_linker=no
13412 ;;
13413
13414 linux*android*)
13415 version_type=none # Android doesn't support versioned libraries.
13416 need_lib_prefix=no
13417 need_version=no
13418 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13419 soname_spec='$libname$release$shared_ext'
13420 finish_cmds=
13421 shlibpath_var=LD_LIBRARY_PATH
13422 shlibpath_overrides_runpath=yes
13423
13424 # This implies no fast_install, which is unacceptable.
13425 # Some rework will be needed to allow for fast_install
13426 # before this can be enabled.
13427 hardcode_into_libs=yes
13428
13429 dynamic_linker='Android linker'
13430 # -rpath works at least for libraries that are not overridden by
13431 # libraries installed in system locations.
13432 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13433 ;;
13434
13435 # This must be glibc/ELF.
13436 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13437 version_type=linux # correct to gnu/linux during the next big refactor
13438 need_lib_prefix=no
13439 need_version=no
13440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13441 soname_spec='$libname$release$shared_ext$major'
13442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 shlibpath_overrides_runpath=no
13445
13446 # Some binutils ld are patched to set DT_RUNPATH
13447 if test ${lt_cv_shlibpath_overrides_runpath+y}
13448 then :
13449 printf %s "(cached) " >&6
13450 else case e in #(
13451 e) lt_cv_shlibpath_overrides_runpath=no
13452 save_LDFLAGS=$LDFLAGS
13453 save_libdir=$libdir
13454 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13455 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13458
13459 int
13460 main (void)
13461 {
13462
13463 ;
13464 return 0;
13465 }
13466 _ACEOF
13467 if ac_fn_c_try_link "$LINENO"
13468 then :
13469 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13470 then :
13471 lt_cv_shlibpath_overrides_runpath=yes
13472 fi
13473 fi
13474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13475 conftest$ac_exeext conftest.$ac_ext
13476 LDFLAGS=$save_LDFLAGS
13477 libdir=$save_libdir
13478 ;;
13479 esac
13480 fi
13481
13482 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13483
13484 # This implies no fast_install, which is unacceptable.
13485 # Some rework will be needed to allow for fast_install
13486 # before this can be enabled.
13487 hardcode_into_libs=yes
13488
13489 # Add ABI-specific directories to the system library path.
13490 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13491
13492 # Ideally, we could use ldconfig to report *all* directories which are
13493 # searched for libraries, however this is still not possible. Aside from not
13494 # being certain /sbin/ldconfig is available, command
13495 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13496 # even though it is searched at run-time. Try to do the best guess by
13497 # appending ld.so.conf contents (and includes) to the search path.
13498 if test -f /etc/ld.so.conf; then
13499 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' ' '`
13500 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13501 fi
13502
13503 # We used to test for /lib/ld.so.1 and disable shared libraries on
13504 # powerpc, because MkLinux only supported shared libraries with the
13505 # GNU dynamic linker. Since this was broken with cross compilers,
13506 # most powerpc-linux boxes support dynamic linking these days and
13507 # people can always --disable-shared, the test was removed, and we
13508 # assume the GNU/Linux dynamic linker is in use.
13509 dynamic_linker='GNU/Linux ld.so'
13510 ;;
13511
13512 netbsdelf*-gnu)
13513 version_type=linux
13514 need_lib_prefix=no
13515 need_version=no
13516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13517 soname_spec='$libname$release$shared_ext$major'
13518 shlibpath_var=LD_LIBRARY_PATH
13519 shlibpath_overrides_runpath=no
13520 hardcode_into_libs=yes
13521 dynamic_linker='NetBSD ld.elf_so'
13522 ;;
13523
13524 netbsd*)
13525 version_type=sunos
13526 need_lib_prefix=no
13527 need_version=no
13528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13529 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13531 dynamic_linker='NetBSD (a.out) ld.so'
13532 else
13533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13534 soname_spec='$libname$release$shared_ext$major'
13535 dynamic_linker='NetBSD ld.elf_so'
13536 fi
13537 shlibpath_var=LD_LIBRARY_PATH
13538 shlibpath_overrides_runpath=yes
13539 hardcode_into_libs=yes
13540 ;;
13541
13542 *-mlibc)
13543 version_type=linux # correct to gnu/linux during the next big refactor
13544 need_lib_prefix=no
13545 need_version=no
13546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13547 soname_spec='$libname$release$shared_ext$major'
13548 dynamic_linker='mlibc ld.so'
13549 shlibpath_var=LD_LIBRARY_PATH
13550 shlibpath_overrides_runpath=no
13551 hardcode_into_libs=yes
13552 ;;
13553
13554 newsos6)
13555 version_type=linux # correct to gnu/linux during the next big refactor
13556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13557 shlibpath_var=LD_LIBRARY_PATH
13558 shlibpath_overrides_runpath=yes
13559 ;;
13560
13561 *nto* | *qnx*)
13562 version_type=qnx
13563 need_lib_prefix=no
13564 need_version=no
13565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13566 soname_spec='$libname$release$shared_ext$major'
13567 shlibpath_var=LD_LIBRARY_PATH
13568 shlibpath_overrides_runpath=no
13569 hardcode_into_libs=yes
13570 dynamic_linker='ldqnx.so'
13571 ;;
13572
13573 openbsd*)
13574 version_type=sunos
13575 sys_lib_dlsearch_path_spec=/usr/lib
13576 need_lib_prefix=no
13577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13578 need_version=no
13579 else
13580 need_version=yes
13581 fi
13582 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13584 shlibpath_var=LD_LIBRARY_PATH
13585 shlibpath_overrides_runpath=yes
13586 ;;
13587
13588 os2*)
13589 libname_spec='$name'
13590 version_type=windows
13591 shrext_cmds=.dll
13592 need_version=no
13593 need_lib_prefix=no
13594 # OS/2 can only load a DLL with a base name of 8 characters or less.
13595 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13596 v=$($ECHO $release$versuffix | tr -d .-);
13597 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13598 $ECHO $n$v`$shared_ext'
13599 library_names_spec='${libname}_dll.$libext'
13600 dynamic_linker='OS/2 ld.exe'
13601 shlibpath_var=BEGINLIBPATH
13602 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13604 postinstall_cmds='base_file=`basename \$file`~
13605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13606 dldir=$destdir/`dirname \$dlpath`~
13607 test -d \$dldir || mkdir -p \$dldir~
13608 $install_prog $dir/$dlname \$dldir/$dlname~
13609 chmod a+x \$dldir/$dlname~
13610 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13611 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13612 fi'
13613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13614 dlpath=$dir/\$dldll~
13615 $RM \$dlpath'
13616 ;;
13617
13618 osf3* | osf4* | osf5*)
13619 version_type=osf
13620 need_lib_prefix=no
13621 need_version=no
13622 soname_spec='$libname$release$shared_ext$major'
13623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13624 shlibpath_var=LD_LIBRARY_PATH
13625 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13627 ;;
13628
13629 rdos*)
13630 dynamic_linker=no
13631 ;;
13632
13633 serenity*)
13634 version_type=linux # correct to gnu/linux during the next big refactor
13635 need_lib_prefix=no
13636 need_version=no
13637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13638 soname_spec='$libname$release$shared_ext$major'
13639 shlibpath_var=LD_LIBRARY_PATH
13640 shlibpath_overrides_runpath=no
13641 dynamic_linker='SerenityOS LibELF'
13642 ;;
13643
13644 solaris*)
13645 version_type=linux # correct to gnu/linux during the next big refactor
13646 need_lib_prefix=no
13647 need_version=no
13648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13649 soname_spec='$libname$release$shared_ext$major'
13650 shlibpath_var=LD_LIBRARY_PATH
13651 shlibpath_overrides_runpath=yes
13652 hardcode_into_libs=yes
13653 # ldd complains unless libraries are executable
13654 postinstall_cmds='chmod +x $lib'
13655 ;;
13656
13657 sunos4*)
13658 version_type=sunos
13659 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13660 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13661 shlibpath_var=LD_LIBRARY_PATH
13662 shlibpath_overrides_runpath=yes
13663 if test yes = "$with_gnu_ld"; then
13664 need_lib_prefix=no
13665 fi
13666 need_version=yes
13667 ;;
13668
13669 sysv4 | sysv4.3*)
13670 version_type=linux # correct to gnu/linux during the next big refactor
13671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13672 soname_spec='$libname$release$shared_ext$major'
13673 shlibpath_var=LD_LIBRARY_PATH
13674 case $host_vendor in
13675 sni)
13676 shlibpath_overrides_runpath=no
13677 need_lib_prefix=no
13678 runpath_var=LD_RUN_PATH
13679 ;;
13680 siemens)
13681 need_lib_prefix=no
13682 ;;
13683 motorola)
13684 need_lib_prefix=no
13685 need_version=no
13686 shlibpath_overrides_runpath=no
13687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13688 ;;
13689 esac
13690 ;;
13691
13692 sysv4*MP*)
13693 if test -d /usr/nec; then
13694 version_type=linux # correct to gnu/linux during the next big refactor
13695 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13696 soname_spec='$libname$shared_ext.$major'
13697 shlibpath_var=LD_LIBRARY_PATH
13698 fi
13699 ;;
13700
13701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13702 version_type=sco
13703 need_lib_prefix=no
13704 need_version=no
13705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13706 soname_spec='$libname$release$shared_ext$major'
13707 shlibpath_var=LD_LIBRARY_PATH
13708 shlibpath_overrides_runpath=yes
13709 hardcode_into_libs=yes
13710 if test yes = "$with_gnu_ld"; then
13711 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13712 else
13713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13714 case $host_os in
13715 sco3.2v5*)
13716 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13717 ;;
13718 esac
13719 fi
13720 sys_lib_dlsearch_path_spec='/usr/lib'
13721 ;;
13722
13723 tpf*)
13724 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13725 version_type=linux # correct to gnu/linux during the next big refactor
13726 need_lib_prefix=no
13727 need_version=no
13728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13729 shlibpath_var=LD_LIBRARY_PATH
13730 shlibpath_overrides_runpath=no
13731 hardcode_into_libs=yes
13732 ;;
13733
13734 uts4*)
13735 version_type=linux # correct to gnu/linux during the next big refactor
13736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13737 soname_spec='$libname$release$shared_ext$major'
13738 shlibpath_var=LD_LIBRARY_PATH
13739 ;;
13740
13741 emscripten*)
13742 version_type=none
13743 need_lib_prefix=no
13744 need_version=no
13745 library_names_spec='$libname$release$shared_ext'
13746 soname_spec='$libname$release$shared_ext'
13747 finish_cmds=
13748 dynamic_linker="Emscripten linker"
13749 lt_prog_compiler_wl=
13750 lt_prog_compiler_pic=
13751 lt_prog_compiler_static=
13752
13753
13754 if test yes = "$GCC"; then
13755 lt_prog_compiler_wl='-Wl,'
13756 lt_prog_compiler_static='-static'
13757
13758 case $host_os in
13759 aix*)
13760 # All AIX code is PIC.
13761 if test ia64 = "$host_cpu"; then
13762 # AIX 5 now supports IA64 processor
13763 lt_prog_compiler_static='-Bstatic'
13764 fi
13765 lt_prog_compiler_pic='-fPIC'
13766 ;;
13767
13768 amigaos*)
13769 case $host_cpu in
13770 powerpc)
13771 # see comment about AmigaOS4 .so support
13772 lt_prog_compiler_pic='-fPIC'
13773 ;;
13774 m68k)
13775 # FIXME: we need at least 68020 code to build shared libraries, but
13776 # adding the '-m68020' flag to GCC prevents building anything better,
13777 # like '-m68040'.
13778 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13779 ;;
13780 esac
13781 ;;
13782
13783 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13784 # PIC is the default for these OSes.
13785 ;;
13786
13787 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13788 # This hack is so that the source file can tell whether it is being
13789 # built for inclusion in a dll (and should export symbols for example).
13790 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13791 # (--disable-auto-import) libraries
13792 lt_prog_compiler_pic='-DDLL_EXPORT'
13793 case $host_os in
13794 os2*)
13795 lt_prog_compiler_static='$wl-static'
13796 ;;
13797 esac
13798 ;;
13799
13800 darwin* | rhapsody*)
13801 # PIC is the default on this platform
13802 # Common symbols not allowed in MH_DYLIB files
13803 lt_prog_compiler_pic='-fno-common'
13804 ;;
13805
13806 haiku*)
13807 # PIC is the default for Haiku.
13808 # The "-static" flag exists, but is broken.
13809 lt_prog_compiler_static=
13810 ;;
13811
13812 hpux*)
13813 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13814 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13815 # sets the default TLS model and affects inlining.
13816 case $host_cpu in
13817 hppa*64*)
13818 # +Z the default
13819 ;;
13820 *)
13821 lt_prog_compiler_pic='-fPIC'
13822 ;;
13823 esac
13824 ;;
13825
13826 interix[3-9]*)
13827 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13828 # Instead, we relocate shared libraries at runtime.
13829 ;;
13830
13831 msdosdjgpp*)
13832 # Just because we use GCC doesn't mean we suddenly get shared libraries
13833 # on systems that don't support them.
13834 lt_prog_compiler_can_build_shared=no
13835 enable_shared=no
13836 ;;
13837
13838 *nto* | *qnx*)
13839 # QNX uses GNU C++, but need to define -shared option too, otherwise
13840 # it will coredump.
13841 lt_prog_compiler_pic='-fPIC -shared'
13842 ;;
13843
13844 sysv4*MP*)
13845 if test -d /usr/nec; then
13846 lt_prog_compiler_pic=-Kconform_pic
13847 fi
13848 ;;
13849
13850 *)
13851 lt_prog_compiler_pic='-fPIC'
13852 ;;
13853 esac
13854
13855 case $cc_basename in
13856 nvcc*) # Cuda Compiler Driver 2.2
13857 lt_prog_compiler_wl='-Xlinker '
13858 if test -n "$lt_prog_compiler_pic"; then
13859 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13860 fi
13861 ;;
13862 esac
13863 else
13864 # PORTME Check for flag to pass linker flags through the system compiler.
13865 case $host_os in
13866 aix*)
13867 lt_prog_compiler_wl='-Wl,'
13868 if test ia64 = "$host_cpu"; then
13869 # AIX 5 now supports IA64 processor
13870 lt_prog_compiler_static='-Bstatic'
13871 else
13872 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13873 fi
13874 ;;
13875
13876 darwin* | rhapsody*)
13877 # PIC is the default on this platform
13878 # Common symbols not allowed in MH_DYLIB files
13879 lt_prog_compiler_pic='-fno-common'
13880 case $cc_basename in
13881 nagfor*)
13882 # NAG Fortran compiler
13883 lt_prog_compiler_wl='-Wl,-Wl,,'
13884 lt_prog_compiler_pic='-PIC'
13885 lt_prog_compiler_static='-Bstatic'
13886 ;;
13887 esac
13888 ;;
13889
13890 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13891 # This hack is so that the source file can tell whether it is being
13892 # built for inclusion in a dll (and should export symbols for example).
13893 lt_prog_compiler_pic='-DDLL_EXPORT'
13894 case $host_os in
13895 os2*)
13896 lt_prog_compiler_static='$wl-static'
13897 ;;
13898 esac
13899 ;;
13900
13901 hpux9* | hpux10* | hpux11*)
13902 lt_prog_compiler_wl='-Wl,'
13903 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13904 # not for PA HP-UX.
13905 case $host_cpu in
13906 hppa*64*|ia64*)
13907 # +Z the default
13908 ;;
13909 *)
13910 lt_prog_compiler_pic='+Z'
13911 ;;
13912 esac
13913 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13914 lt_prog_compiler_static='$wl-a ${wl}archive'
13915 ;;
13916
13917 irix5* | irix6* | nonstopux*)
13918 lt_prog_compiler_wl='-Wl,'
13919 # PIC (with -KPIC) is the default.
13920 lt_prog_compiler_static='-non_shared'
13921 ;;
13922
13923 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13924 case $cc_basename in
13925 # old Intel for x86_64, which still supported -KPIC.
13926 ecc*)
13927 lt_prog_compiler_wl='-Wl,'
13928 lt_prog_compiler_pic='-KPIC'
13929 lt_prog_compiler_static='-static'
13930 ;;
13931 *flang* | ftn | f18* | f95*)
13932 # Flang compiler.
13933 lt_prog_compiler_wl='-Wl,'
13934 lt_prog_compiler_pic='-fPIC'
13935 lt_prog_compiler_static='-static'
13936 ;;
13937 # icc used to be incompatible with GCC.
13938 # ICC 10 doesn't accept -KPIC any more.
13939 icc* | ifort*)
13940 lt_prog_compiler_wl='-Wl,'
13941 lt_prog_compiler_pic='-fPIC'
13942 lt_prog_compiler_static='-static'
13943 ;;
13944 # Lahey Fortran 8.1.
13945 lf95*)
13946 lt_prog_compiler_wl='-Wl,'
13947 lt_prog_compiler_pic='--shared'
13948 lt_prog_compiler_static='--static'
13949 ;;
13950 nagfor*)
13951 # NAG Fortran compiler
13952 lt_prog_compiler_wl='-Wl,-Wl,,'
13953 lt_prog_compiler_pic='-PIC'
13954 lt_prog_compiler_static='-Bstatic'
13955 ;;
13956 tcc*)
13957 # Fabrice Bellard et al's Tiny C Compiler
13958 lt_prog_compiler_wl='-Wl,'
13959 lt_prog_compiler_pic='-fPIC'
13960 lt_prog_compiler_static='-static'
13961 ;;
13962 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13963 # Portland Group compilers (*not* the Pentium gcc compiler,
13964 # which looks to be a dead project)
13965 lt_prog_compiler_wl='-Wl,'
13966 lt_prog_compiler_pic='-fpic'
13967 lt_prog_compiler_static='-Bstatic'
13968 ;;
13969 ccc*)
13970 lt_prog_compiler_wl='-Wl,'
13971 # All Alpha code is PIC.
13972 lt_prog_compiler_static='-non_shared'
13973 ;;
13974 xl* | bgxl* | bgf* | mpixl*)
13975 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13976 lt_prog_compiler_wl='-Wl,'
13977 lt_prog_compiler_pic='-qpic'
13978 lt_prog_compiler_static='-qstaticlink'
13979 ;;
13980 *)
13981 case `$CC -V 2>&1 | $SED 5q` in
13982 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13983 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13984 lt_prog_compiler_pic='-KPIC'
13985 lt_prog_compiler_static='-Bstatic'
13986 lt_prog_compiler_wl=''
13987 ;;
13988 *Sun\ F* | *Sun*Fortran*)
13989 lt_prog_compiler_pic='-KPIC'
13990 lt_prog_compiler_static='-Bstatic'
13991 lt_prog_compiler_wl='-Qoption ld '
13992 ;;
13993 *Sun\ C*)
13994 # Sun C 5.9
13995 lt_prog_compiler_pic='-KPIC'
13996 lt_prog_compiler_static='-Bstatic'
13997 lt_prog_compiler_wl='-Wl,'
13998 ;;
13999 *Intel*\ [CF]*Compiler*)
14000 lt_prog_compiler_wl='-Wl,'
14001 lt_prog_compiler_pic='-fPIC'
14002 lt_prog_compiler_static='-static'
14003 ;;
14004 *Portland\ Group*)
14005 lt_prog_compiler_wl='-Wl,'
14006 lt_prog_compiler_pic='-fpic'
14007 lt_prog_compiler_static='-Bstatic'
14008 ;;
14009 esac
14010 ;;
14011 esac
14012 ;;
14013
14014 newsos6)
14015 lt_prog_compiler_pic='-KPIC'
14016 lt_prog_compiler_static='-Bstatic'
14017 ;;
14018
14019 *-mlibc)
14020 lt_prog_compiler_wl='-Wl,'
14021 lt_prog_compiler_pic='-fPIC'
14022 lt_prog_compiler_static='-static'
14023 ;;
14024
14025 *nto* | *qnx*)
14026 # QNX uses GNU C++, but need to define -shared option too, otherwise
14027 # it will coredump.
14028 lt_prog_compiler_pic='-fPIC -shared'
14029 ;;
14030
14031 osf3* | osf4* | osf5*)
14032 lt_prog_compiler_wl='-Wl,'
14033 # All OSF/1 code is PIC.
14034 lt_prog_compiler_static='-non_shared'
14035 ;;
14036
14037 rdos*)
14038 lt_prog_compiler_static='-non_shared'
14039 ;;
14040
14041 serenity*)
14042 ;;
14043
14044 solaris*)
14045 lt_prog_compiler_pic='-KPIC'
14046 lt_prog_compiler_static='-Bstatic'
14047 case $cc_basename in
14048 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14049 lt_prog_compiler_wl='-Qoption ld ';;
14050 *)
14051 lt_prog_compiler_wl='-Wl,';;
14052 esac
14053 ;;
14054
14055 sunos4*)
14056 lt_prog_compiler_wl='-Qoption ld '
14057 lt_prog_compiler_pic='-PIC'
14058 lt_prog_compiler_static='-Bstatic'
14059 ;;
14060
14061 sysv4 | sysv4.2uw2* | sysv4.3*)
14062 lt_prog_compiler_wl='-Wl,'
14063 lt_prog_compiler_pic='-KPIC'
14064 lt_prog_compiler_static='-Bstatic'
14065 ;;
14066
14067 sysv4*MP*)
14068 if test -d /usr/nec; then
14069 lt_prog_compiler_pic='-Kconform_pic'
14070 lt_prog_compiler_static='-Bstatic'
14071 fi
14072 ;;
14073
14074 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14075 lt_prog_compiler_wl='-Wl,'
14076 lt_prog_compiler_pic='-KPIC'
14077 lt_prog_compiler_static='-Bstatic'
14078 ;;
14079
14080 unicos*)
14081 lt_prog_compiler_wl='-Wl,'
14082 lt_prog_compiler_can_build_shared=no
14083 ;;
14084
14085 uts4*)
14086 lt_prog_compiler_pic='-pic'
14087 lt_prog_compiler_static='-Bstatic'
14088 ;;
14089
14090 *)
14091 lt_prog_compiler_can_build_shared=no
14092 ;;
14093 esac
14094 fi
14095
14096 case $host_os in
14097 # For platforms that do not support PIC, -DPIC is meaningless:
14098 *djgpp*)
14099 lt_prog_compiler_pic=
14100 ;;
14101 *)
14102 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14103 ;;
14104 esac
14105
14106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14107 printf %s "checking for $compiler option to produce PIC... " >&6; }
14108 if test ${lt_cv_prog_compiler_pic+y}
14109 then :
14110 printf %s "(cached) " >&6
14111 else case e in #(
14112 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14113 esac
14114 fi
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14116 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14117 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14118
14119 #
14120 # Check to make sure the PIC flag actually works.
14121 #
14122 if test -n "$lt_prog_compiler_pic"; then
14123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14124 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14125 if test ${lt_cv_prog_compiler_pic_works+y}
14126 then :
14127 printf %s "(cached) " >&6
14128 else case e in #(
14129 e) lt_cv_prog_compiler_pic_works=no
14130 ac_outfile=conftest.$ac_objext
14131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14132 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14133 # Insert the option either (1) after the last *FLAGS variable, or
14134 # (2) before a word containing "conftest.", or (3) at the end.
14135 # Note that $ac_compile itself does not contain backslashes and begins
14136 # with a dollar sign (not a hyphen), so the echo should work correctly.
14137 # The option is referenced via a variable to avoid confusing sed.
14138 lt_compile=`echo "$ac_compile" | $SED \
14139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14141 -e 's:$: $lt_compiler_flag:'`
14142 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14143 (eval "$lt_compile" 2>conftest.err)
14144 ac_status=$?
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 if (exit $ac_status) && test -s "$ac_outfile"; then
14148 # The compiler can only warn and ignore the option if not recognized
14149 # So say no if there are warnings other than the usual output.
14150 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14152 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14153 lt_cv_prog_compiler_pic_works=yes
14154 fi
14155 fi
14156 $RM conftest*
14157 ;;
14158 esac
14159 fi
14160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14161 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14162
14163 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14164 case $lt_prog_compiler_pic in
14165 "" | " "*) ;;
14166 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14167 esac
14168 else
14169 lt_prog_compiler_pic=
14170 lt_prog_compiler_can_build_shared=no
14171 fi
14172
14173 fi
14174
14175
14176
14177
14178
14179 #
14180 # Check to make sure the static flag actually works.
14181 #
14182 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14184 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14185 if test ${lt_cv_prog_compiler_static_works+y}
14186 then :
14187 printf %s "(cached) " >&6
14188 else case e in #(
14189 e) lt_cv_prog_compiler_static_works=no
14190 save_LDFLAGS=$LDFLAGS
14191 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14192 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14194 # The linker can only warn and ignore the option if not recognized
14195 # So say no if there are warnings
14196 if test -s conftest.err; then
14197 # Append any errors to the config.log.
14198 cat conftest.err 1>&5
14199 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14201 if diff conftest.exp conftest.er2 >/dev/null; then
14202 lt_cv_prog_compiler_static_works=yes
14203 fi
14204 else
14205 lt_cv_prog_compiler_static_works=yes
14206 fi
14207 fi
14208 $RM -r conftest*
14209 LDFLAGS=$save_LDFLAGS
14210 ;;
14211 esac
14212 fi
14213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14214 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14215
14216 if test yes = "$lt_cv_prog_compiler_static_works"; then
14217 :
14218 else
14219 lt_prog_compiler_static=
14220 fi
14221
14222
14223
14224 ='-fPIC'
14225 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14226 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'
14227 archive_cmds_need_lc=no
14228 no_undefined_flag=
14229 ;;
14230
14231 *)
14232 dynamic_linker=no
14233 ;;
14234 esac
14235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14236 printf "%s\n" "$dynamic_linker" >&6; }
14237 test no = "$dynamic_linker" && can_build_shared=no
14238
14239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14240 if test yes = "$GCC"; then
14241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14242 fi
14243
14244 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14245 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14246 fi
14247
14248 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14249 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14250 fi
14251
14252 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14253 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14254
14255 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14256 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14257
14258 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14259 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14358 printf %s "checking how to hardcode library paths into programs... " >&6; }
14359 hardcode_action=
14360 if test -n "$hardcode_libdir_flag_spec" ||
14361 test -n "$runpath_var" ||
14362 test yes = "$hardcode_automatic"; then
14363
14364 # We can hardcode non-existent directories.
14365 if test no != "$hardcode_direct" &&
14366 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14367 # have to relink, otherwise we might link with an installed library
14368 # when we should be linking with a yet-to-be-installed one
14369 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14370 test no != "$hardcode_minus_L"; then
14371 # Linking always hardcodes the temporary library directory.
14372 hardcode_action=relink
14373 else
14374 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14375 hardcode_action=immediate
14376 fi
14377 else
14378 # We cannot hardcode anything, or else we can only hardcode existing
14379 # directories.
14380 hardcode_action=unsupported
14381 fi
14382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14383 printf "%s\n" "$hardcode_action" >&6; }
14384
14385 if test relink = "$hardcode_action" ||
14386 test yes = "$inherit_rpath"; then
14387 # Fast installation is not supported
14388 enable_fast_install=no
14389 elif test yes = "$shlibpath_overrides_runpath" ||
14390 test no = "$enable_shared"; then
14391 # Fast installation is not necessary
14392 enable_fast_install=needless
14393 fi
14394
14395
14396
14397
14398
14399
14400 if test yes != "$enable_dlopen"; then
14401 enable_dlopen=unknown
14402 enable_dlopen_self=unknown
14403 enable_dlopen_self_static=unknown
14404 else
14405 lt_cv_dlopen=no
14406 lt_cv_dlopen_libs=
14407
14408 case $host_os in
14409 beos*)
14410 lt_cv_dlopen=load_add_on
14411 lt_cv_dlopen_libs=
14412 lt_cv_dlopen_self=yes
14413 ;;
14414
14415 mingw* | windows* | pw32* | cegcc*)
14416 lt_cv_dlopen=LoadLibrary
14417 lt_cv_dlopen_libs=
14418 ;;
14419
14420 cygwin*)
14421 lt_cv_dlopen=dlopen
14422 lt_cv_dlopen_libs=
14423 ;;
14424
14425 darwin*)
14426 # if libdl is installed we need to link against it
14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14428 printf %s "checking for dlopen in -ldl... " >&6; }
14429 if test ${ac_cv_lib_dl_dlopen+y}
14430 then :
14431 printf %s "(cached) " >&6
14432 else case e in #(
14433 e) ac_check_lib_save_LIBS=$LIBS
14434 LIBS="-ldl $LIBS"
14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436 /* end confdefs.h. */
14437
14438 /* Override any GCC internal prototype to avoid an error.
14439 Use char because int might match the return type of a GCC
14440 builtin and then its argument prototype would still apply.
14441 The 'extern "C"' is for builds by C++ compilers;
14442 although this is not generally supported in C code supporting it here
14443 has little cost and some practical benefit (sr 110532). */
14444 #ifdef __cplusplus
14445 extern "C"
14446 #endif
14447 char dlopen (void);
14448 int
14449 main (void)
14450 {
14451 return dlopen ();
14452 ;
14453 return 0;
14454 }
14455 _ACEOF
14456 if ac_fn_c_try_link "$LINENO"
14457 then :
14458 ac_cv_lib_dl_dlopen=yes
14459 else case e in #(
14460 e) ac_cv_lib_dl_dlopen=no ;;
14461 esac
14462 fi
14463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14464 conftest$ac_exeext conftest.$ac_ext
14465 LIBS=$ac_check_lib_save_LIBS ;;
14466 esac
14467 fi
14468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14469 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14470 if test "x$ac_cv_lib_dl_dlopen" = xyes
14471 then :
14472 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14473 else case e in #(
14474 e)
14475 lt_cv_dlopen=dyld
14476 lt_cv_dlopen_libs=
14477 lt_cv_dlopen_self=yes
14478 ;;
14479 esac
14480 fi
14481
14482 ;;
14483
14484 tpf*)
14485 # Don't try to run any link tests for TPF. We know it's impossible
14486 # because TPF is a cross-compiler, and we know how we open DSOs.
14487 lt_cv_dlopen=dlopen
14488 lt_cv_dlopen_libs=
14489 lt_cv_dlopen_self=no
14490 ;;
14491
14492 *)
14493 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14494 if test "x$ac_cv_func_shl_load" = xyes
14495 then :
14496 lt_cv_dlopen=shl_load
14497 else case e in #(
14498 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14499 printf %s "checking for shl_load in -ldld... " >&6; }
14500 if test ${ac_cv_lib_dld_shl_load+y}
14501 then :
14502 printf %s "(cached) " >&6
14503 else case e in #(
14504 e) ac_check_lib_save_LIBS=$LIBS
14505 LIBS="-ldld $LIBS"
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14508
14509 /* Override any GCC internal prototype to avoid an error.
14510 Use char because int might match the return type of a GCC
14511 builtin and then its argument prototype would still apply.
14512 The 'extern "C"' is for builds by C++ compilers;
14513 although this is not generally supported in C code supporting it here
14514 has little cost and some practical benefit (sr 110532). */
14515 #ifdef __cplusplus
14516 extern "C"
14517 #endif
14518 char shl_load (void);
14519 int
14520 main (void)
14521 {
14522 return shl_load ();
14523 ;
14524 return 0;
14525 }
14526 _ACEOF
14527 if ac_fn_c_try_link "$LINENO"
14528 then :
14529 ac_cv_lib_dld_shl_load=yes
14530 else case e in #(
14531 e) ac_cv_lib_dld_shl_load=no ;;
14532 esac
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14535 conftest$ac_exeext conftest.$ac_ext
14536 LIBS=$ac_check_lib_save_LIBS ;;
14537 esac
14538 fi
14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14540 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14541 if test "x$ac_cv_lib_dld_shl_load" = xyes
14542 then :
14543 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14544 else case e in #(
14545 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14546 if test "x$ac_cv_func_dlopen" = xyes
14547 then :
14548 lt_cv_dlopen=dlopen
14549 else case e in #(
14550 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14551 printf %s "checking for dlopen in -ldl... " >&6; }
14552 if test ${ac_cv_lib_dl_dlopen+y}
14553 then :
14554 printf %s "(cached) " >&6
14555 else case e in #(
14556 e) ac_check_lib_save_LIBS=$LIBS
14557 LIBS="-ldl $LIBS"
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14560
14561 /* Override any GCC internal prototype to avoid an error.
14562 Use char because int might match the return type of a GCC
14563 builtin and then its argument prototype would still apply.
14564 The 'extern "C"' is for builds by C++ compilers;
14565 although this is not generally supported in C code supporting it here
14566 has little cost and some practical benefit (sr 110532). */
14567 #ifdef __cplusplus
14568 extern "C"
14569 #endif
14570 char dlopen (void);
14571 int
14572 main (void)
14573 {
14574 return dlopen ();
14575 ;
14576 return 0;
14577 }
14578 _ACEOF
14579 if ac_fn_c_try_link "$LINENO"
14580 then :
14581 ac_cv_lib_dl_dlopen=yes
14582 else case e in #(
14583 e) ac_cv_lib_dl_dlopen=no ;;
14584 esac
14585 fi
14586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14587 conftest$ac_exeext conftest.$ac_ext
14588 LIBS=$ac_check_lib_save_LIBS ;;
14589 esac
14590 fi
14591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14592 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14593 if test "x$ac_cv_lib_dl_dlopen" = xyes
14594 then :
14595 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14596 else case e in #(
14597 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14598 printf %s "checking for dlopen in -lsvld... " >&6; }
14599 if test ${ac_cv_lib_svld_dlopen+y}
14600 then :
14601 printf %s "(cached) " >&6
14602 else case e in #(
14603 e) ac_check_lib_save_LIBS=$LIBS
14604 LIBS="-lsvld $LIBS"
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14607
14608 /* Override any GCC internal prototype to avoid an error.
14609 Use char because int might match the return type of a GCC
14610 builtin and then its argument prototype would still apply.
14611 The 'extern "C"' is for builds by C++ compilers;
14612 although this is not generally supported in C code supporting it here
14613 has little cost and some practical benefit (sr 110532). */
14614 #ifdef __cplusplus
14615 extern "C"
14616 #endif
14617 char dlopen (void);
14618 int
14619 main (void)
14620 {
14621 return dlopen ();
14622 ;
14623 return 0;
14624 }
14625 _ACEOF
14626 if ac_fn_c_try_link "$LINENO"
14627 then :
14628 ac_cv_lib_svld_dlopen=yes
14629 else case e in #(
14630 e) ac_cv_lib_svld_dlopen=no ;;
14631 esac
14632 fi
14633 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14634 conftest$ac_exeext conftest.$ac_ext
14635 LIBS=$ac_check_lib_save_LIBS ;;
14636 esac
14637 fi
14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14639 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14640 if test "x$ac_cv_lib_svld_dlopen" = xyes
14641 then :
14642 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14643 else case e in #(
14644 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14645 printf %s "checking for dld_link in -ldld... " >&6; }
14646 if test ${ac_cv_lib_dld_dld_link+y}
14647 then :
14648 printf %s "(cached) " >&6
14649 else case e in #(
14650 e) ac_check_lib_save_LIBS=$LIBS
14651 LIBS="-ldld $LIBS"
14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h. */
14654
14655 /* Override any GCC internal prototype to avoid an error.
14656 Use char because int might match the return type of a GCC
14657 builtin and then its argument prototype would still apply.
14658 The 'extern "C"' is for builds by C++ compilers;
14659 although this is not generally supported in C code supporting it here
14660 has little cost and some practical benefit (sr 110532). */
14661 #ifdef __cplusplus
14662 extern "C"
14663 #endif
14664 char dld_link (void);
14665 int
14666 main (void)
14667 {
14668 return dld_link ();
14669 ;
14670 return 0;
14671 }
14672 _ACEOF
14673 if ac_fn_c_try_link "$LINENO"
14674 then :
14675 ac_cv_lib_dld_dld_link=yes
14676 else case e in #(
14677 e) ac_cv_lib_dld_dld_link=no ;;
14678 esac
14679 fi
14680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14681 conftest$ac_exeext conftest.$ac_ext
14682 LIBS=$ac_check_lib_save_LIBS ;;
14683 esac
14684 fi
14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14686 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14687 if test "x$ac_cv_lib_dld_dld_link" = xyes
14688 then :
14689 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14690 fi
14691
14692 ;;
14693 esac
14694 fi
14695
14696 ;;
14697 esac
14698 fi
14699
14700 ;;
14701 esac
14702 fi
14703
14704 ;;
14705 esac
14706 fi
14707
14708 ;;
14709 esac
14710 fi
14711
14712 ;;
14713 esac
14714
14715 if test no = "$lt_cv_dlopen"; then
14716 enable_dlopen=no
14717 else
14718 enable_dlopen=yes
14719 fi
14720
14721 case $lt_cv_dlopen in
14722 dlopen)
14723 save_CPPFLAGS=$CPPFLAGS
14724 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14725
14726 save_LDFLAGS=$LDFLAGS
14727 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14728
14729 save_LIBS=$LIBS
14730 LIBS="$lt_cv_dlopen_libs $LIBS"
14731
14732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14733 printf %s "checking whether a program can dlopen itself... " >&6; }
14734 if test ${lt_cv_dlopen_self+y}
14735 then :
14736 printf %s "(cached) " >&6
14737 else case e in #(
14738 e) if test yes = "$cross_compiling"; then :
14739 lt_cv_dlopen_self=cross
14740 else
14741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14742 lt_status=$lt_dlunknown
14743 cat > conftest.$ac_ext <<_LT_EOF
14744 #line $LINENO "configure"
14745 #include "confdefs.h"
14746
14747 #if HAVE_DLFCN_H
14748 #include <dlfcn.h>
14749 #endif
14750
14751 #include <stdio.h>
14752
14753 #ifdef RTLD_GLOBAL
14754 # define LT_DLGLOBAL RTLD_GLOBAL
14755 #else
14756 # ifdef DL_GLOBAL
14757 # define LT_DLGLOBAL DL_GLOBAL
14758 # else
14759 # define LT_DLGLOBAL 0
14760 # endif
14761 #endif
14762
14763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14764 find out it does not work in some platform. */
14765 #ifndef LT_DLLAZY_OR_NOW
14766 # ifdef RTLD_LAZY
14767 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14768 # else
14769 # ifdef DL_LAZY
14770 # define LT_DLLAZY_OR_NOW DL_LAZY
14771 # else
14772 # ifdef RTLD_NOW
14773 # define LT_DLLAZY_OR_NOW RTLD_NOW
14774 # else
14775 # ifdef DL_NOW
14776 # define LT_DLLAZY_OR_NOW DL_NOW
14777 # else
14778 # define LT_DLLAZY_OR_NOW 0
14779 # endif
14780 # endif
14781 # endif
14782 # endif
14783 #endif
14784
14785 /* When -fvisibility=hidden is used, assume the code has been annotated
14786 correspondingly for the symbols needed. */
14787 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14788 int fnord (void) __attribute__((visibility("default")));
14789 #endif
14790
14791 int fnord (void) { return 42; }
14792 int main (void)
14793 {
14794 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14795 int status = $lt_dlunknown;
14796
14797 if (self)
14798 {
14799 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14800 else
14801 {
14802 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14803 else puts (dlerror ());
14804 }
14805 /* dlclose (self); */
14806 }
14807 else
14808 puts (dlerror ());
14809
14810 return status;
14811 }
14812 _LT_EOF
14813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14814 (eval $ac_link) 2>&5
14815 ac_status=$?
14816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14817 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14818 (./conftest; exit; ) >&5 2>/dev/null
14819 lt_status=$?
14820 case x$lt_status in
14821 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14822 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14823 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14824 esac
14825 else :
14826 # compilation failed
14827 lt_cv_dlopen_self=no
14828 fi
14829 fi
14830 rm -fr conftest*
14831
14832 ;;
14833 esac
14834 fi
14835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14836 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14837
14838 if test yes = "$lt_cv_dlopen_self"; then
14839 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14841 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14842 if test ${lt_cv_dlopen_self_static+y}
14843 then :
14844 printf %s "(cached) " >&6
14845 else case e in #(
14846 e) if test yes = "$cross_compiling"; then :
14847 lt_cv_dlopen_self_static=cross
14848 else
14849 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14850 lt_status=$lt_dlunknown
14851 cat > conftest.$ac_ext <<_LT_EOF
14852 #line $LINENO "configure"
14853 #include "confdefs.h"
14854
14855 #if HAVE_DLFCN_H
14856 #include <dlfcn.h>
14857 #endif
14858
14859 #include <stdio.h>
14860
14861 #ifdef RTLD_GLOBAL
14862 # define LT_DLGLOBAL RTLD_GLOBAL
14863 #else
14864 # ifdef DL_GLOBAL
14865 # define LT_DLGLOBAL DL_GLOBAL
14866 # else
14867 # define LT_DLGLOBAL 0
14868 # endif
14869 #endif
14870
14871 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14872 find out it does not work in some platform. */
14873 #ifndef LT_DLLAZY_OR_NOW
14874 # ifdef RTLD_LAZY
14875 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14876 # else
14877 # ifdef DL_LAZY
14878 # define LT_DLLAZY_OR_NOW DL_LAZY
14879 # else
14880 # ifdef RTLD_NOW
14881 # define LT_DLLAZY_OR_NOW RTLD_NOW
14882 # else
14883 # ifdef DL_NOW
14884 # define LT_DLLAZY_OR_NOW DL_NOW
14885 # else
14886 # define LT_DLLAZY_OR_NOW 0
14887 # endif
14888 # endif
14889 # endif
14890 # endif
14891 #endif
14892
14893 /* When -fvisibility=hidden is used, assume the code has been annotated
14894 correspondingly for the symbols needed. */
14895 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14896 int fnord (void) __attribute__((visibility("default")));
14897 #endif
14898
14899 int fnord (void) { return 42; }
14900 int main (void)
14901 {
14902 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14903 int status = $lt_dlunknown;
14904
14905 if (self)
14906 {
14907 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14908 else
14909 {
14910 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14911 else puts (dlerror ());
14912 }
14913 /* dlclose (self); */
14914 }
14915 else
14916 puts (dlerror ());
14917
14918 return status;
14919 }
14920 _LT_EOF
14921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14922 (eval $ac_link) 2>&5
14923 ac_status=$?
14924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14925 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14926 (./conftest; exit; ) >&5 2>/dev/null
14927 lt_status=$?
14928 case x$lt_status in
14929 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14930 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14931 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14932 esac
14933 else :
14934 # compilation failed
14935 lt_cv_dlopen_self_static=no
14936 fi
14937 fi
14938 rm -fr conftest*
14939
14940 ;;
14941 esac
14942 fi
14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14944 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14945 fi
14946
14947 CPPFLAGS=$save_CPPFLAGS
14948 LDFLAGS=$save_LDFLAGS
14949 LIBS=$save_LIBS
14950 ;;
14951 esac
14952
14953 case $lt_cv_dlopen_self in
14954 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14955 *) enable_dlopen_self=unknown ;;
14956 esac
14957
14958 case $lt_cv_dlopen_self_static in
14959 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14960 *) enable_dlopen_self_static=unknown ;;
14961 esac
14962 fi
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980 striplib=
14981 old_striplib=
14982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14983 printf %s "checking whether stripping libraries is possible... " >&6; }
14984 if test -z "$STRIP"; then
14985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14986 printf "%s\n" "no" >&6; }
14987 else
14988 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14989 old_striplib="$STRIP --strip-debug"
14990 striplib="$STRIP --strip-unneeded"
14991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14992 printf "%s\n" "yes" >&6; }
14993 else
14994 case $host_os in
14995 darwin*)
14996 # FIXME - insert some real tests, host_os isn't really good enough
14997 striplib="$STRIP -x"
14998 old_striplib="$STRIP -S"
14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15000 printf "%s\n" "yes" >&6; }
15001 ;;
15002 freebsd*)
15003 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15004 old_striplib="$STRIP --strip-debug"
15005 striplib="$STRIP --strip-unneeded"
15006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15007 printf "%s\n" "yes" >&6; }
15008 else
15009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15010 printf "%s\n" "no" >&6; }
15011 fi
15012 ;;
15013 *)
15014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15015 printf "%s\n" "no" >&6; }
15016 ;;
15017 esac
15018 fi
15019 fi
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032 # Report what library types will actually be built
15033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15034 printf %s "checking if libtool supports shared libraries... " >&6; }
15035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15036 printf "%s\n" "$can_build_shared" >&6; }
15037
15038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15039 printf %s "checking whether to build shared libraries... " >&6; }
15040 test no = "$can_build_shared" && enable_shared=no
15041
15042 # On AIX, shared libraries and static libraries use the same namespace, and
15043 # are all built from PIC.
15044 case $host_os in
15045 aix3*)
15046 test yes = "$enable_shared" && enable_static=no
15047 if test -n "$RANLIB"; then
15048 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15049 postinstall_cmds='$RANLIB $lib'
15050 fi
15051 ;;
15052
15053 aix[4-9]*)
15054 if test ia64 != "$host_cpu"; then
15055 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15056 yes,aix,yes) ;; # shared object as lib.so file only
15057 yes,svr4,*) ;; # shared object as lib.so archive member only
15058 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15059 esac
15060 fi
15061 ;;
15062 esac
15063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15064 printf "%s\n" "$enable_shared" >&6; }
15065
15066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15067 printf %s "checking whether to build static libraries... " >&6; }
15068 # Make sure either enable_shared or enable_static is yes.
15069 test yes = "$enable_shared" || enable_static=yes
15070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15071 printf "%s\n" "$enable_static" >&6; }
15072
15073
15074
15075
15076 fi
15077 ac_ext=c
15078 ac_cpp='$CPP $CPPFLAGS'
15079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15082
15083 CC=$lt_save_CC
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099 ac_config_commands="$ac_config_commands libtool"
15100
15101
15102
15103
15104 # Only expand once:
15105
15106
15107 if test -n "$ac_tool_prefix"; then
15108 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15109 set dummy ${ac_tool_prefix}windres; ac_word=$2
15110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15111 printf %s "checking for $ac_word... " >&6; }
15112 if test ${ac_cv_prog_RC+y}
15113 then :
15114 printf %s "(cached) " >&6
15115 else case e in #(
15116 e) if test -n "$RC"; then
15117 ac_cv_prog_RC="$RC" # Let the user override the test.
15118 else
15119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15120 for as_dir in $PATH
15121 do
15122 IFS=$as_save_IFS
15123 case $as_dir in #(((
15124 '') as_dir=./ ;;
15125 */) ;;
15126 *) as_dir=$as_dir/ ;;
15127 esac
15128 for ac_exec_ext in '' $ac_executable_extensions; do
15129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15130 ac_cv_prog_RC="${ac_tool_prefix}windres"
15131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15132 break 2
15133 fi
15134 done
15135 done
15136 IFS=$as_save_IFS
15137
15138 fi ;;
15139 esac
15140 fi
15141 RC=$ac_cv_prog_RC
15142 if test -n "$RC"; then
15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
15144 printf "%s\n" "$RC" >&6; }
15145 else
15146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15147 printf "%s\n" "no" >&6; }
15148 fi
15149
15150
15151 fi
15152 if test -z "$ac_cv_prog_RC"; then
15153 ac_ct_RC=$RC
15154 # Extract the first word of "windres", so it can be a program name with args.
15155 set dummy windres; ac_word=$2
15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15157 printf %s "checking for $ac_word... " >&6; }
15158 if test ${ac_cv_prog_ac_ct_RC+y}
15159 then :
15160 printf %s "(cached) " >&6
15161 else case e in #(
15162 e) if test -n "$ac_ct_RC"; then
15163 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
15164 else
15165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15166 for as_dir in $PATH
15167 do
15168 IFS=$as_save_IFS
15169 case $as_dir in #(((
15170 '') as_dir=./ ;;
15171 */) ;;
15172 *) as_dir=$as_dir/ ;;
15173 esac
15174 for ac_exec_ext in '' $ac_executable_extensions; do
15175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15176 ac_cv_prog_ac_ct_RC="windres"
15177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15178 break 2
15179 fi
15180 done
15181 done
15182 IFS=$as_save_IFS
15183
15184 fi ;;
15185 esac
15186 fi
15187 ac_ct_RC=$ac_cv_prog_ac_ct_RC
15188 if test -n "$ac_ct_RC"; then
15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
15190 printf "%s\n" "$ac_ct_RC" >&6; }
15191 else
15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193 printf "%s\n" "no" >&6; }
15194 fi
15195
15196 if test "x$ac_ct_RC" = x; then
15197 RC=""
15198 else
15199 case $cross_compiling:$ac_tool_warned in
15200 yes:)
15201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15202 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15203 ac_tool_warned=yes ;;
15204 esac
15205 RC=$ac_ct_RC
15206 fi
15207 else
15208 RC="$ac_cv_prog_RC"
15209 fi
15210
15211
15212
15213
15214 # Source file extension for RC test sources.
15215 ac_ext=rc
15216
15217 # Object file extension for compiled RC test sources.
15218 objext=o
15219 objext_RC=$objext
15220
15221 # Code to be used in simple compile tests
15222 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
15223
15224 # Code to be used in simple link tests
15225 lt_simple_link_test_code=$lt_simple_compile_test_code
15226
15227 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15228
15229
15230
15231
15232
15233
15234 # If no C compiler was specified, use CC.
15235 LTCC=${LTCC-"$CC"}
15236
15237 # If no C compiler flags were specified, use CFLAGS.
15238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15239
15240 # Allow CC to be a program name with arguments.
15241 compiler=$CC
15242
15243
15244 # save warnings/boilerplate of simple test code
15245 ac_outfile=conftest.$ac_objext
15246 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15247 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15248 _lt_compiler_boilerplate=`cat conftest.err`
15249 $RM conftest*
15250
15251 ac_outfile=conftest.$ac_objext
15252 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15253 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15254 _lt_linker_boilerplate=`cat conftest.err`
15255 $RM -r conftest*
15256
15257
15258 # Allow CC to be a program name with arguments.
15259 lt_save_CC=$CC
15260 lt_save_CFLAGS=$CFLAGS
15261 lt_save_GCC=$GCC
15262 GCC=
15263 CC=${RC-"windres"}
15264 CFLAGS=
15265 compiler=$CC
15266 compiler_RC=$CC
15267 func_cc_basename $compiler
15268 cc_basename=$func_cc_basename_result
15269
15270 lt_cv_prog_compiler_c_o_RC=yes
15271
15272 if test -n "$compiler"; then
15273 :
15274
15275
15276
15277 fi
15278
15279 GCC=$lt_save_GCC
15280 ac_ext=c
15281 ac_cpp='$CPP $CPPFLAGS'
15282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15285
15286 CC=$lt_save_CC
15287 CFLAGS=$lt_save_CFLAGS
15288
15289
15290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15291 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15292 if test ${ac_cv_header_sys_wait_h+y}
15293 then :
15294 printf %s "(cached) " >&6
15295 else case e in #(
15296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297 /* end confdefs.h. */
15298 #include <sys/types.h>
15299 #include <sys/wait.h>
15300 #ifndef WEXITSTATUS
15301 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15302 #endif
15303 #ifndef WIFEXITED
15304 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15305 #endif
15306
15307 int
15308 main (void)
15309 {
15310 int s;
15311 wait (&s);
15312 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15313 ;
15314 return 0;
15315 }
15316 _ACEOF
15317 if ac_fn_c_try_compile "$LINENO"
15318 then :
15319 ac_cv_header_sys_wait_h=yes
15320 else case e in #(
15321 e) ac_cv_header_sys_wait_h=no ;;
15322 esac
15323 fi
15324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15325 esac
15326 fi
15327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15328 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
15329 if test $ac_cv_header_sys_wait_h = yes; then
15330
15331 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15332
15333 fi
15334
15335 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
15336 if test "x$ac_cv_header_errno_h" = xyes
15337 then :
15338 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
15339
15340 fi
15341 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15342 if test "x$ac_cv_header_fcntl_h" = xyes
15343 then :
15344 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
15345
15346 fi
15347 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
15348 if test "x$ac_cv_header_malloc_h" = xyes
15349 then :
15350 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
15351
15352 fi
15353 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15354 if test "x$ac_cv_header_stdlib_h" = xyes
15355 then :
15356 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15357
15358 fi
15359 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15360 if test "x$ac_cv_header_inttypes_h" = xyes
15361 then :
15362 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
15363
15364 fi
15365 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
15366 if test "x$ac_cv_header_string_h" = xyes
15367 then :
15368 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
15369
15370 fi
15371 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
15372 if test "x$ac_cv_header_strings_h" = xyes
15373 then :
15374 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
15375
15376 fi
15377 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15378 if test "x$ac_cv_header_sys_time_h" = xyes
15379 then :
15380 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
15381
15382 fi
15383 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15384 if test "x$ac_cv_header_unistd_h" = xyes
15385 then :
15386 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
15387
15388 fi
15389 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
15390 if test "x$ac_cv_header_locale_h" = xyes
15391 then :
15392 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
15393
15394 fi
15395 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15396 if test "x$ac_cv_header_getopt_h" = xyes
15397 then :
15398 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
15399
15400 fi
15401 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
15402 if test "x$ac_cv_header_dlfcn_h" = xyes
15403 then :
15404 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15405
15406 fi
15407 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
15408 if test "x$ac_cv_header_utmp_h" = xyes
15409 then :
15410 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
15411
15412 fi
15413
15414
15415
15416 for ac_prog in doxygen
15417 do
15418 # Extract the first word of "$ac_prog", so it can be a program name with args.
15419 set dummy $ac_prog; ac_word=$2
15420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15421 printf %s "checking for $ac_word... " >&6; }
15422 if test ${ac_cv_prog_DOXYGEN+y}
15423 then :
15424 printf %s "(cached) " >&6
15425 else case e in #(
15426 e) if test -n "$DOXYGEN"; then
15427 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
15428 else
15429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15430 for as_dir in $PATH
15431 do
15432 IFS=$as_save_IFS
15433 case $as_dir in #(((
15434 '') as_dir=./ ;;
15435 */) ;;
15436 *) as_dir=$as_dir/ ;;
15437 esac
15438 for ac_exec_ext in '' $ac_executable_extensions; do
15439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15440 ac_cv_prog_DOXYGEN="$ac_prog"
15441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15442 break 2
15443 fi
15444 done
15445 done
15446 IFS=$as_save_IFS
15447
15448 fi ;;
15449 esac
15450 fi
15451 DOXYGEN=$ac_cv_prog_DOXYGEN
15452 if test -n "$DOXYGEN"; then
15453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
15454 printf "%s\n" "$DOXYGEN" >&6; }
15455 else
15456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15457 printf "%s\n" "no" >&6; }
15458 fi
15459
15460
15461 test -n "$DOXYGEN" && break
15462 done
15463
15464 test "${enable_api_doc}" = "yes" -a -z "${DOXYGEN}" && as_fn_error $? "doxygen is required for API doc" "$LINENO" 5
15465
15466 if test "${WIN32}" != "yes"; then
15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15468 printf %s "checking for library containing dlopen... " >&6; }
15469 if test ${ac_cv_search_dlopen+y}
15470 then :
15471 printf %s "(cached) " >&6
15472 else case e in #(
15473 e) ac_func_search_save_LIBS=$LIBS
15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15476
15477 /* Override any GCC internal prototype to avoid an error.
15478 Use char because int might match the return type of a GCC
15479 builtin and then its argument prototype would still apply.
15480 The 'extern "C"' is for builds by C++ compilers;
15481 although this is not generally supported in C code supporting it here
15482 has little cost and some practical benefit (sr 110532). */
15483 #ifdef __cplusplus
15484 extern "C"
15485 #endif
15486 char dlopen (void);
15487 int
15488 main (void)
15489 {
15490 return dlopen ();
15491 ;
15492 return 0;
15493 }
15494 _ACEOF
15495 for ac_lib in '' dl
15496 do
15497 if test -z "$ac_lib"; then
15498 ac_res="none required"
15499 else
15500 ac_res=-l$ac_lib
15501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15502 fi
15503 if ac_fn_c_try_link "$LINENO"
15504 then :
15505 ac_cv_search_dlopen=$ac_res
15506 fi
15507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15508 conftest$ac_exeext
15509 if test ${ac_cv_search_dlopen+y}
15510 then :
15511 break
15512 fi
15513 done
15514 if test ${ac_cv_search_dlopen+y}
15515 then :
15516
15517 else case e in #(
15518 e) ac_cv_search_dlopen=no ;;
15519 esac
15520 fi
15521 rm conftest.$ac_ext
15522 LIBS=$ac_func_search_save_LIBS ;;
15523 esac
15524 fi
15525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15526 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
15527 ac_res=$ac_cv_search_dlopen
15528 if test "$ac_res" != no
15529 then :
15530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15531
15532 else case e in #(
15533 e) as_fn_error $? "dlopen required" "$LINENO" 5
15534 ;;
15535 esac
15536 fi
15537
15538
15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
15540 printf %s "checking for egrep -e... " >&6; }
15541 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
15542 then :
15543 printf %s "(cached) " >&6
15544 else case e in #(
15545 e) if test -z "$EGREP_TRADITIONAL"; then
15546 ac_path_EGREP_TRADITIONAL_found=false
15547 # Loop through the user's path and test for each of PROGNAME-LIST
15548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15550 do
15551 IFS=$as_save_IFS
15552 case $as_dir in #(((
15553 '') as_dir=./ ;;
15554 */) ;;
15555 *) as_dir=$as_dir/ ;;
15556 esac
15557 for ac_prog in grep ggrep
15558 do
15559 for ac_exec_ext in '' $ac_executable_extensions; do
15560 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
15561 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
15562 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
15563 # Check for GNU $ac_path_EGREP_TRADITIONAL
15564 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
15565 *GNU*)
15566 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
15567 #(
15568 *)
15569 ac_count=0
15570 printf %s 0123456789 >"conftest.in"
15571 while :
15572 do
15573 cat "conftest.in" "conftest.in" >"conftest.tmp"
15574 mv "conftest.tmp" "conftest.in"
15575 cp "conftest.in" "conftest.nl"
15576 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
15577 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15579 as_fn_arith $ac_count + 1 && ac_count=$as_val
15580 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
15581 # Best one so far, save it but keep looking for a better one
15582 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
15583 ac_path_EGREP_TRADITIONAL_max=$ac_count
15584 fi
15585 # 10*(2^10) chars as input seems more than enough
15586 test $ac_count -gt 10 && break
15587 done
15588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15589 esac
15590
15591 $ac_path_EGREP_TRADITIONAL_found && break 3
15592 done
15593 done
15594 done
15595 IFS=$as_save_IFS
15596 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
15597 :
15598 fi
15599 else
15600 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
15601 fi
15602
15603 if test "$ac_cv_path_EGREP_TRADITIONAL"
15604 then :
15605 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
15606 else case e in #(
15607 e) if test -z "$EGREP_TRADITIONAL"; then
15608 ac_path_EGREP_TRADITIONAL_found=false
15609 # Loop through the user's path and test for each of PROGNAME-LIST
15610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15612 do
15613 IFS=$as_save_IFS
15614 case $as_dir in #(((
15615 '') as_dir=./ ;;
15616 */) ;;
15617 *) as_dir=$as_dir/ ;;
15618 esac
15619 for ac_prog in egrep
15620 do
15621 for ac_exec_ext in '' $ac_executable_extensions; do
15622 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
15623 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
15624 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
15625 # Check for GNU $ac_path_EGREP_TRADITIONAL
15626 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
15627 *GNU*)
15628 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
15629 #(
15630 *)
15631 ac_count=0
15632 printf %s 0123456789 >"conftest.in"
15633 while :
15634 do
15635 cat "conftest.in" "conftest.in" >"conftest.tmp"
15636 mv "conftest.tmp" "conftest.in"
15637 cp "conftest.in" "conftest.nl"
15638 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
15639 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15641 as_fn_arith $ac_count + 1 && ac_count=$as_val
15642 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
15643 # Best one so far, save it but keep looking for a better one
15644 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
15645 ac_path_EGREP_TRADITIONAL_max=$ac_count
15646 fi
15647 # 10*(2^10) chars as input seems more than enough
15648 test $ac_count -gt 10 && break
15649 done
15650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15651 esac
15652
15653 $ac_path_EGREP_TRADITIONAL_found && break 3
15654 done
15655 done
15656 done
15657 IFS=$as_save_IFS
15658 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
15659 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15660 fi
15661 else
15662 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
15663 fi
15664 ;;
15665 esac
15666 fi ;;
15667 esac
15668 fi
15669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
15670 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
15671 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
15672
15673
15674
15675
15676
15677 ac_ext=c
15678 ac_cpp='$CPP $CPPFLAGS'
15679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15682
15683 ax_pthread_ok=no
15684
15685 # We used to check for pthread.h first, but this fails if pthread.h
15686 # requires special compiler flags (e.g. on Tru64 or Sequent).
15687 # It gets checked for in the link test anyway.
15688
15689 # First of all, check if the user has set any of the PTHREAD_LIBS,
15690 # etcetera environment variables, and if threads linking works using
15691 # them:
15692 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15693 ax_pthread_save_CC="$CC"
15694 ax_pthread_save_CFLAGS="$CFLAGS"
15695 ax_pthread_save_LIBS="$LIBS"
15696 if test "x$PTHREAD_CC" != "x"
15697 then :
15698 CC="$PTHREAD_CC"
15699 fi
15700 if test "x$PTHREAD_CXX" != "x"
15701 then :
15702 CXX="$PTHREAD_CXX"
15703 fi
15704 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15705 LIBS="$PTHREAD_LIBS $LIBS"
15706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15707 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15710
15711 /* Override any GCC internal prototype to avoid an error.
15712 Use char because int might match the return type of a GCC
15713 builtin and then its argument prototype would still apply.
15714 The 'extern "C"' is for builds by C++ compilers;
15715 although this is not generally supported in C code supporting it here
15716 has little cost and some practical benefit (sr 110532). */
15717 #ifdef __cplusplus
15718 extern "C"
15719 #endif
15720 char pthread_join (void);
15721 int
15722 main (void)
15723 {
15724 return pthread_join ();
15725 ;
15726 return 0;
15727 }
15728 _ACEOF
15729 if ac_fn_c_try_link "$LINENO"
15730 then :
15731 ax_pthread_ok=yes
15732 fi
15733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15734 conftest$ac_exeext conftest.$ac_ext
15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15736 printf "%s\n" "$ax_pthread_ok" >&6; }
15737 if test "x$ax_pthread_ok" = "xno"; then
15738 PTHREAD_LIBS=""
15739 PTHREAD_CFLAGS=""
15740 fi
15741 CC="$ax_pthread_save_CC"
15742 CFLAGS="$ax_pthread_save_CFLAGS"
15743 LIBS="$ax_pthread_save_LIBS"
15744 fi
15745
15746 # We must check for the threads library under a number of different
15747 # names; the ordering is very important because some systems
15748 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15749 # libraries is broken (non-POSIX).
15750
15751 # Create a list of thread flags to try. Items with a "," contain both
15752 # C compiler flags (before ",") and linker flags (after ","). Other items
15753 # starting with a "-" are C compiler flags, and remaining items are
15754 # library names, except for "none" which indicates that we try without
15755 # any flags at all, and "pthread-config" which is a program returning
15756 # the flags for the Pth emulation library.
15757
15758 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15759
15760 # The ordering *is* (sometimes) important. Some notes on the
15761 # individual items follow:
15762
15763 # pthreads: AIX (must check this before -lpthread)
15764 # none: in case threads are in libc; should be tried before -Kthread and
15765 # other compiler flags to prevent continual compiler warnings
15766 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15767 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15768 # (Note: HP C rejects this with "bad form for `-t' option")
15769 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15770 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15771 # doesn't hurt to check since this sometimes defines pthreads and
15772 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
15773 # is present but should not be used directly; and before -mthreads,
15774 # because the compiler interprets this as "-mt" + "-hreads")
15775 # -mthreads: Mingw32/gcc, Lynx/gcc
15776 # pthread: Linux, etcetera
15777 # --thread-safe: KAI C++
15778 # pthread-config: use pthread-config program (for GNU Pth library)
15779
15780 case $target_os in
15781
15782 freebsd*)
15783
15784 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15785 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15786
15787 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15788 ;;
15789
15790 hpux*)
15791
15792 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15793 # multi-threading and also sets -lpthread."
15794
15795 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15796 ;;
15797
15798 openedition*)
15799
15800 # IBM z/OS requires a feature-test macro to be defined in order to
15801 # enable POSIX threads at all, so give the user a hint if this is
15802 # not set. (We don't define these ourselves, as they can affect
15803 # other portions of the system API in unpredictable ways.)
15804
15805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806 /* end confdefs.h. */
15807
15808 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15809 AX_PTHREAD_ZOS_MISSING
15810 # endif
15811
15812 _ACEOF
15813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15814 $EGREP_TRADITIONAL "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
15815 then :
15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15817 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15818 fi
15819 rm -rf conftest*
15820
15821 ;;
15822
15823 solaris*)
15824
15825 # On Solaris (at least, for some versions), libc contains stubbed
15826 # (non-functional) versions of the pthreads routines, so link-based
15827 # tests will erroneously succeed. (N.B.: The stubs are missing
15828 # pthread_cleanup_push, or rather a function called by this macro,
15829 # so we could check for that, but who knows whether they'll stub
15830 # that too in a future libc.) So we'll check first for the
15831 # standard Solaris way of linking pthreads (-mt -lpthread).
15832
15833 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
15834 ;;
15835 esac
15836
15837 # Are we compiling with Clang?
15838
15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15840 printf %s "checking whether $CC is Clang... " >&6; }
15841 if test ${ax_cv_PTHREAD_CLANG+y}
15842 then :
15843 printf %s "(cached) " >&6
15844 else case e in #(
15845 e) ax_cv_PTHREAD_CLANG=no
15846 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15847 if test "x$GCC" = "xyes"; then
15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15850 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15851 # if defined(__clang__) && defined(__llvm__)
15852 AX_PTHREAD_CC_IS_CLANG
15853 # endif
15854
15855 _ACEOF
15856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15857 $EGREP_TRADITIONAL "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
15858 then :
15859 ax_cv_PTHREAD_CLANG=yes
15860 fi
15861 rm -rf conftest*
15862
15863 fi
15864 ;;
15865 esac
15866 fi
15867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15868 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
15869 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15870
15871
15872 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15873
15874 # Note that for GCC and Clang -pthread generally implies -lpthread,
15875 # except when -nostdlib is passed.
15876 # This is problematic using libtool to build C++ shared libraries with pthread:
15877 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
15878 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
15879 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
15880 # To solve this, first try -pthread together with -lpthread for GCC
15881
15882 if test "x$GCC" = "xyes"
15883 then :
15884 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
15885 fi
15886
15887 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
15888
15889 if test "x$ax_pthread_clang" = "xyes"
15890 then :
15891 ax_pthread_flags="-pthread,-lpthread -pthread"
15892 fi
15893
15894
15895 # The presence of a feature test macro requesting re-entrant function
15896 # definitions is, on some systems, a strong hint that pthreads support is
15897 # correctly enabled
15898
15899 case $target_os in
15900 darwin* | hpux* | linux* | osf* | solaris*)
15901 ax_pthread_check_macro="_REENTRANT"
15902 ;;
15903
15904 aix*)
15905 ax_pthread_check_macro="_THREAD_SAFE"
15906 ;;
15907
15908 *)
15909 ax_pthread_check_macro="--"
15910 ;;
15911 esac
15912 if test "x$ax_pthread_check_macro" = "x--"
15913 then :
15914 ax_pthread_check_cond=0
15915 else case e in #(
15916 e) ax_pthread_check_cond="!defined($ax_pthread_check_macro)" ;;
15917 esac
15918 fi
15919
15920
15921 if test "x$ax_pthread_ok" = "xno"; then
15922 for ax_pthread_try_flag in $ax_pthread_flags; do
15923
15924 case $ax_pthread_try_flag in
15925 none)
15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15927 printf %s "checking whether pthreads work without any flags... " >&6; }
15928 ;;
15929
15930 *,*)
15931 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
15932 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
15933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
15934 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
15935 ;;
15936
15937 -*)
15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
15939 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
15940 PTHREAD_CFLAGS="$ax_pthread_try_flag"
15941 ;;
15942
15943 pthread-config)
15944 # Extract the first word of "pthread-config", so it can be a program name with args.
15945 set dummy pthread-config; ac_word=$2
15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15947 printf %s "checking for $ac_word... " >&6; }
15948 if test ${ac_cv_prog_ax_pthread_config+y}
15949 then :
15950 printf %s "(cached) " >&6
15951 else case e in #(
15952 e) if test -n "$ax_pthread_config"; then
15953 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15954 else
15955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15956 for as_dir in $PATH
15957 do
15958 IFS=$as_save_IFS
15959 case $as_dir in #(((
15960 '') as_dir=./ ;;
15961 */) ;;
15962 *) as_dir=$as_dir/ ;;
15963 esac
15964 for ac_exec_ext in '' $ac_executable_extensions; do
15965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15966 ac_cv_prog_ax_pthread_config="yes"
15967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15968 break 2
15969 fi
15970 done
15971 done
15972 IFS=$as_save_IFS
15973
15974 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15975 fi ;;
15976 esac
15977 fi
15978 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15979 if test -n "$ax_pthread_config"; then
15980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15981 printf "%s\n" "$ax_pthread_config" >&6; }
15982 else
15983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15984 printf "%s\n" "no" >&6; }
15985 fi
15986
15987
15988 if test "x$ax_pthread_config" = "xno"
15989 then :
15990 continue
15991 fi
15992 PTHREAD_CFLAGS="`pthread-config --cflags`"
15993 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15994 ;;
15995
15996 *)
15997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
15998 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
15999 PTHREAD_LIBS="-l$ax_pthread_try_flag"
16000 ;;
16001 esac
16002
16003 ax_pthread_save_CFLAGS="$CFLAGS"
16004 ax_pthread_save_LIBS="$LIBS"
16005 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16006 LIBS="$PTHREAD_LIBS $LIBS"
16007
16008 # Check for various functions. We must include pthread.h,
16009 # since some functions may be macros. (On the Sequent, we
16010 # need a special flag -Kthread to make this header compile.)
16011 # We check for pthread_join because it is in -lpthread on IRIX
16012 # while pthread_create is in libc. We check for pthread_attr_init
16013 # due to DEC craziness with -lpthreads. We check for
16014 # pthread_cleanup_push because it is one of the few pthread
16015 # functions on Solaris that doesn't have a non-functional libc stub.
16016 # We try pthread_create on general principles.
16017
16018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019 /* end confdefs.h. */
16020 #include <pthread.h>
16021 # if $ax_pthread_check_cond
16022 # error "$ax_pthread_check_macro must be defined"
16023 # endif
16024 static void *some_global = NULL;
16025 static void routine(void *a)
16026 {
16027 /* To avoid any unused-parameter or
16028 unused-but-set-parameter warning. */
16029 some_global = a;
16030 }
16031 static void *start_routine(void *a) { return a; }
16032 int
16033 main (void)
16034 {
16035 pthread_t th; pthread_attr_t attr;
16036 pthread_create(&th, 0, start_routine, 0);
16037 pthread_join(th, 0);
16038 pthread_attr_init(&attr);
16039 pthread_cleanup_push(routine, 0);
16040 pthread_cleanup_pop(0) /* ; */
16041 ;
16042 return 0;
16043 }
16044 _ACEOF
16045 if ac_fn_c_try_link "$LINENO"
16046 then :
16047 ax_pthread_ok=yes
16048 fi
16049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16050 conftest$ac_exeext conftest.$ac_ext
16051
16052 CFLAGS="$ax_pthread_save_CFLAGS"
16053 LIBS="$ax_pthread_save_LIBS"
16054
16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16056 printf "%s\n" "$ax_pthread_ok" >&6; }
16057 if test "x$ax_pthread_ok" = "xyes"
16058 then :
16059 break
16060 fi
16061
16062 PTHREAD_LIBS=""
16063 PTHREAD_CFLAGS=""
16064 done
16065 fi
16066
16067
16068 # Clang needs special handling, because older versions handle the -pthread
16069 # option in a rather... idiosyncratic way
16070
16071 if test "x$ax_pthread_clang" = "xyes"; then
16072
16073 # Clang takes -pthread; it has never supported any other flag
16074
16075 # (Note 1: This will need to be revisited if a system that Clang
16076 # supports has POSIX threads in a separate library. This tends not
16077 # to be the way of modern systems, but it's conceivable.)
16078
16079 # (Note 2: On some systems, notably Darwin, -pthread is not needed
16080 # to get POSIX threads support; the API is always present and
16081 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
16082 # -pthread does define _REENTRANT, and while the Darwin headers
16083 # ignore this macro, third-party headers might not.)
16084
16085 # However, older versions of Clang make a point of warning the user
16086 # that, in an invocation where only linking and no compilation is
16087 # taking place, the -pthread option has no effect ("argument unused
16088 # during compilation"). They expect -pthread to be passed in only
16089 # when source code is being compiled.
16090 #
16091 # Problem is, this is at odds with the way Automake and most other
16092 # C build frameworks function, which is that the same flags used in
16093 # compilation (CFLAGS) are also used in linking. Many systems
16094 # supported by AX_PTHREAD require exactly this for POSIX threads
16095 # support, and in fact it is often not straightforward to specify a
16096 # flag that is used only in the compilation phase and not in
16097 # linking. Such a scenario is extremely rare in practice.
16098 #
16099 # Even though use of the -pthread flag in linking would only print
16100 # a warning, this can be a nuisance for well-run software projects
16101 # that build with -Werror. So if the active version of Clang has
16102 # this misfeature, we search for an option to squash it.
16103
16104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
16105 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
16106 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
16107 then :
16108 printf %s "(cached) " >&6
16109 else case e in #(
16110 e) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
16111 # Create an alternate version of $ac_link that compiles and
16112 # links in two steps (.c -> .o, .o -> exe) instead of one
16113 # (.c -> exe), because the warning occurs only in the second
16114 # step
16115 ax_pthread_save_ac_link="$ac_link"
16116 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
16117 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
16118 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
16119 ax_pthread_save_CFLAGS="$CFLAGS"
16120 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
16121 if test "x$ax_pthread_try" = "xunknown"
16122 then :
16123 break
16124 fi
16125 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
16126 ac_link="$ax_pthread_save_ac_link"
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129 int main(void){return 0;}
16130 _ACEOF
16131 if ac_fn_c_try_link "$LINENO"
16132 then :
16133 ac_link="$ax_pthread_2step_ac_link"
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h. */
16136 int main(void){return 0;}
16137 _ACEOF
16138 if ac_fn_c_try_link "$LINENO"
16139 then :
16140 break
16141 fi
16142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16143 conftest$ac_exeext conftest.$ac_ext
16144
16145 fi
16146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16147 conftest$ac_exeext conftest.$ac_ext
16148 done
16149 ac_link="$ax_pthread_save_ac_link"
16150 CFLAGS="$ax_pthread_save_CFLAGS"
16151 if test "x$ax_pthread_try" = "x"
16152 then :
16153 ax_pthread_try=no
16154 fi
16155 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
16156 ;;
16157 esac
16158 fi
16159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
16160 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
16161
16162 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
16163 no | unknown) ;;
16164 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
16165 esac
16166
16167 fi # $ax_pthread_clang = yes
16168
16169
16170
16171 # Various other checks:
16172 if test "x$ax_pthread_ok" = "xyes"; then
16173 ax_pthread_save_CFLAGS="$CFLAGS"
16174 ax_pthread_save_LIBS="$LIBS"
16175 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16176 LIBS="$PTHREAD_LIBS $LIBS"
16177
16178 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16180 printf %s "checking for joinable pthread attribute... " >&6; }
16181 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
16182 then :
16183 printf %s "(cached) " >&6
16184 else case e in #(
16185 e) ax_cv_PTHREAD_JOINABLE_ATTR=unknown
16186 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16189 #include <pthread.h>
16190 int
16191 main (void)
16192 {
16193 int attr = $ax_pthread_attr; return attr /* ; */
16194 ;
16195 return 0;
16196 }
16197 _ACEOF
16198 if ac_fn_c_try_link "$LINENO"
16199 then :
16200 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
16201 fi
16202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16203 conftest$ac_exeext conftest.$ac_ext
16204 done
16205 ;;
16206 esac
16207 fi
16208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
16209 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
16210 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
16211 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
16212 test "x$ax_pthread_joinable_attr_defined" != "xyes"
16213 then :
16214
16215 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
16216
16217 ax_pthread_joinable_attr_defined=yes
16218
16219 fi
16220
16221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16222 printf %s "checking whether more special flags are required for pthreads... " >&6; }
16223 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
16224 then :
16225 printf %s "(cached) " >&6
16226 else case e in #(
16227 e) ax_cv_PTHREAD_SPECIAL_FLAGS=no
16228 case $target_os in
16229 solaris*)
16230 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
16231 ;;
16232 esac
16233 ;;
16234 esac
16235 fi
16236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16237 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16238 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16239 test "x$ax_pthread_special_flags_added" != "xyes"
16240 then :
16241 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16242 ax_pthread_special_flags_added=yes
16243 fi
16244
16245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16246 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16247 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
16248 then :
16249 printf %s "(cached) " >&6
16250 else case e in #(
16251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 #include <pthread.h>
16254 int
16255 main (void)
16256 {
16257 int i = PTHREAD_PRIO_INHERIT;
16258 return i;
16259 ;
16260 return 0;
16261 }
16262 _ACEOF
16263 if ac_fn_c_try_link "$LINENO"
16264 then :
16265 ax_cv_PTHREAD_PRIO_INHERIT=yes
16266 else case e in #(
16267 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;;
16268 esac
16269 fi
16270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16271 conftest$ac_exeext conftest.$ac_ext
16272 ;;
16273 esac
16274 fi
16275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16276 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16277 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16278 test "x$ax_pthread_prio_inherit_defined" != "xyes"
16279 then :
16280
16281 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16282
16283 ax_pthread_prio_inherit_defined=yes
16284
16285 fi
16286
16287 CFLAGS="$ax_pthread_save_CFLAGS"
16288 LIBS="$ax_pthread_save_LIBS"
16289
16290 # More AIX lossage: compile with *_r variant
16291 if test "x$GCC" != "xyes"; then
16292 case $target_os in
16293 aix*)
16294 case "x/$CC" in #(
16295 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16296 #handle absolute path differently from PATH based program lookup
16297 case "x$CC" in #(
16298 x/*) :
16299
16300 if as_fn_executable_p ${CC}_r
16301 then :
16302 PTHREAD_CC="${CC}_r"
16303 fi
16304 if test "x${CXX}" != "x"
16305 then :
16306 if as_fn_executable_p ${CXX}_r
16307 then :
16308 PTHREAD_CXX="${CXX}_r"
16309 fi
16310 fi
16311 ;; #(
16312 *) :
16313
16314 for ac_prog in ${CC}_r
16315 do
16316 # Extract the first word of "$ac_prog", so it can be a program name with args.
16317 set dummy $ac_prog; ac_word=$2
16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16319 printf %s "checking for $ac_word... " >&6; }
16320 if test ${ac_cv_prog_PTHREAD_CC+y}
16321 then :
16322 printf %s "(cached) " >&6
16323 else case e in #(
16324 e) if test -n "$PTHREAD_CC"; then
16325 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16326 else
16327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16328 for as_dir in $PATH
16329 do
16330 IFS=$as_save_IFS
16331 case $as_dir in #(((
16332 '') as_dir=./ ;;
16333 */) ;;
16334 *) as_dir=$as_dir/ ;;
16335 esac
16336 for ac_exec_ext in '' $ac_executable_extensions; do
16337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16338 ac_cv_prog_PTHREAD_CC="$ac_prog"
16339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16340 break 2
16341 fi
16342 done
16343 done
16344 IFS=$as_save_IFS
16345
16346 fi ;;
16347 esac
16348 fi
16349 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16350 if test -n "$PTHREAD_CC"; then
16351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16352 printf "%s\n" "$PTHREAD_CC" >&6; }
16353 else
16354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16355 printf "%s\n" "no" >&6; }
16356 fi
16357
16358
16359 test -n "$PTHREAD_CC" && break
16360 done
16361 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16362
16363 if test "x${CXX}" != "x"
16364 then :
16365 for ac_prog in ${CXX}_r
16366 do
16367 # Extract the first word of "$ac_prog", so it can be a program name with args.
16368 set dummy $ac_prog; ac_word=$2
16369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16370 printf %s "checking for $ac_word... " >&6; }
16371 if test ${ac_cv_prog_PTHREAD_CXX+y}
16372 then :
16373 printf %s "(cached) " >&6
16374 else case e in #(
16375 e) if test -n "$PTHREAD_CXX"; then
16376 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
16377 else
16378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16379 for as_dir in $PATH
16380 do
16381 IFS=$as_save_IFS
16382 case $as_dir in #(((
16383 '') as_dir=./ ;;
16384 */) ;;
16385 *) as_dir=$as_dir/ ;;
16386 esac
16387 for ac_exec_ext in '' $ac_executable_extensions; do
16388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16389 ac_cv_prog_PTHREAD_CXX="$ac_prog"
16390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16391 break 2
16392 fi
16393 done
16394 done
16395 IFS=$as_save_IFS
16396
16397 fi ;;
16398 esac
16399 fi
16400 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
16401 if test -n "$PTHREAD_CXX"; then
16402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
16403 printf "%s\n" "$PTHREAD_CXX" >&6; }
16404 else
16405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16406 printf "%s\n" "no" >&6; }
16407 fi
16408
16409
16410 test -n "$PTHREAD_CXX" && break
16411 done
16412 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
16413
16414 fi
16415
16416 ;;
16417 esac
16418 ;; #(
16419 *) :
16420 ;;
16421 esac
16422 ;;
16423 esac
16424 fi
16425 fi
16426
16427 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16428 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
16429
16430
16431
16432
16433
16434
16435 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16436 if test "x$ax_pthread_ok" = "xyes"; then
16437
16438 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
16439
16440 :
16441 else
16442 ax_pthread_ok=no
16443
16444 fi
16445 ac_ext=c
16446 ac_cpp='$CPP $CPPFLAGS'
16447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16450
16451
16452 LIBS="$PTHREAD_LIBS $LIBS"
16453 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16454 CC="$PTHREAD_CC"
16455 fi
16456
16457
16458 pkg_failed=no
16459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto >= 1.0.2" >&5
16460 printf %s "checking for libcrypto >= 1.0.2... " >&6; }
16461
16462 if test -n "$OPENSSL_CFLAGS"; then
16463 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16464 elif test -n "$PKG_CONFIG"; then
16465 if test -n "$PKG_CONFIG" && \
16466 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.2\""; } >&5
16467 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.2") 2>&5
16468 ac_status=$?
16469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16470 test $ac_status = 0; }; then
16471 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.0.2" 2>/dev/null`
16472 test "x$?" != "x0" && pkg_failed=yes
16473 else
16474 pkg_failed=yes
16475 fi
16476 else
16477 pkg_failed=untried
16478 fi
16479 if test -n "$OPENSSL_LIBS"; then
16480 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16481 elif test -n "$PKG_CONFIG"; then
16482 if test -n "$PKG_CONFIG" && \
16483 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.2\""; } >&5
16484 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.2") 2>&5
16485 ac_status=$?
16486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16487 test $ac_status = 0; }; then
16488 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.0.2" 2>/dev/null`
16489 test "x$?" != "x0" && pkg_failed=yes
16490 else
16491 pkg_failed=yes
16492 fi
16493 else
16494 pkg_failed=untried
16495 fi
16496
16497
16498
16499 if test $pkg_failed = yes; then
16500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16501 printf "%s\n" "no" >&6; }
16502
16503 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16504 _pkg_short_errors_supported=yes
16505 else
16506 _pkg_short_errors_supported=no
16507 fi
16508 if test $_pkg_short_errors_supported = yes; then
16509 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.0.2" 2>&1`
16510 else
16511 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.0.2" 2>&1`
16512 fi
16513 # Put the nasty error message in config.log where it belongs
16514 echo "$OPENSSL_PKG_ERRORS" >&5
16515
16516 as_fn_error $? "libcrypto >= 1.0.2 is required" "$LINENO" 5
16517
16518 elif test $pkg_failed = untried; then
16519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16520 printf "%s\n" "no" >&6; }
16521 as_fn_error $? "libcrypto >= 1.0.2 is required" "$LINENO" 5
16522
16523 else
16524 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16525 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16527 printf "%s\n" "yes" >&6; }
16528
16529 fi
16530
16531 ac_fn_c_check_func "$LINENO" "X509_get0_notAfter" "ac_cv_func_X509_get0_notAfter"
16532 if test "x$ac_cv_func_X509_get0_notAfter" = xyes
16533 then :
16534 printf "%s\n" "#define HAVE_X509_GET0_NOTAFTER 1" >>confdefs.h
16535
16536 fi
16537 ac_fn_c_check_func "$LINENO" "X509_get0_notBefore" "ac_cv_func_X509_get0_notBefore"
16538 if test "x$ac_cv_func_X509_get0_notBefore" = xyes
16539 then :
16540 printf "%s\n" "#define HAVE_X509_GET0_NOTBEFORE 1" >>confdefs.h
16541
16542 fi
16543
16544
16545 if test -n "${pkcs11_module}"; then
16546
16547 printf "%s\n" "#define DEFAULT_PKCS11_MODULE \"${pkcs11_module}\"" >>confdefs.h
16548
16549 fi
16550
16551 pkgconfigdir="\$(libdir)/pkgconfig"
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565 SHARED_EXT=$(eval echo "${shrext_cmds}")
16566
16567
16568 if test "${WIN32}" = "yes"; then
16569 WIN32_TRUE=
16570 WIN32_FALSE='#'
16571 else
16572 WIN32_TRUE='#'
16573 WIN32_FALSE=
16574 fi
16575
16576 if test "${CYGWIN}" = "yes"; then
16577 CYGWIN_TRUE=
16578 CYGWIN_FALSE='#'
16579 else
16580 CYGWIN_TRUE='#'
16581 CYGWIN_FALSE=
16582 fi
16583
16584 if test "${enable_api_doc}" = "yes"; then
16585 ENABLE_API_DOC_TRUE=
16586 ENABLE_API_DOC_FALSE='#'
16587 else
16588 ENABLE_API_DOC_TRUE='#'
16589 ENABLE_API_DOC_FALSE=
16590 fi
16591
16592 if test "${enable_static_engine}" = "yes"; then
16593 ENABLE_STATIC_ENGINE_TRUE=
16594 ENABLE_STATIC_ENGINE_FALSE='#'
16595 else
16596 ENABLE_STATIC_ENGINE_TRUE='#'
16597 ENABLE_STATIC_ENGINE_FALSE=
16598 fi
16599
16600
16601 if test "${enable_pedantic}" = "yes"; then
16602 enable_strict="yes";
16603 CFLAGS="${CFLAGS} -pedantic"
16604 fi
16605 if test "${enable_strict}" = "yes"; then
16606 CFLAGS="${CFLAGS} -Wall -Wextra"
16607 fi
16608
16609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool needs -no-undefined flag to build shared libraries" >&5
16610 printf %s "checking if libtool needs -no-undefined flag to build shared libraries... " >&6; }
16611 case "$host_os" in
16612 cygwin*|msys*|mingw*)
16613 ## Add in the -no-undefined flag to LDFLAGS for libtool.
16614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16615 printf "%s\n" "yes" >&6; }
16616 LDFLAGS="$LDFLAGS -no-undefined"
16617 ;;
16618 *)
16619 ## Don't add in anything.
16620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16621 printf "%s\n" "no" >&6; }
16622 ;;
16623 esac
16624
16625 ac_config_files="$ac_config_files Makefile src/Makefile src/libp11.pc src/libp11.rc src/pkcs11.rc src/pkcs11prov.rc doc/Makefile doc/doxygen.conf examples/Makefile tests/Makefile .github/workflows/ci.yml"
16626
16627 cat >confcache <<\_ACEOF
16628 # This file is a shell script that caches the results of configure
16629 # tests run on this system so they can be shared between configure
16630 # scripts and configure runs, see configure's option --config-cache.
16631 # It is not useful on other systems. If it contains results you don't
16632 # want to keep, you may remove or edit it.
16633 #
16634 # config.status only pays attention to the cache file if you give it
16635 # the --recheck option to rerun configure.
16636 #
16637 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
16638 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
16639 # following values.
16640
16641 _ACEOF
16642
16643 # The following way of writing the cache mishandles newlines in values,
16644 # but we know of no workaround that is simple, portable, and efficient.
16645 # So, we kill variables containing newlines.
16646 # Ultrix sh set writes to stderr and can't be redirected directly,
16647 # and sets the high bit in the cache file unless we assign to the vars.
16648 (
16649 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16650 eval ac_val=\$$ac_var
16651 case $ac_val in #(
16652 *${as_nl}*)
16653 case $ac_var in #(
16654 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16655 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16656 esac
16657 case $ac_var in #(
16658 _ | IFS | as_nl) ;; #(
16659 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16660 *) { eval $ac_var=; unset $ac_var;} ;;
16661 esac ;;
16662 esac
16663 done
16664
16665 (set) 2>&1 |
16666 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16667 *${as_nl}ac_space=\ *)
16668 # 'set' does not quote correctly, so add quotes: double-quote
16669 # substitution turns \\\\ into \\, and sed turns \\ into \.
16670 sed -n \
16671 "s/'/'\\\\''/g;
16672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16673 ;; #(
16674 *)
16675 # 'set' quotes correctly as required by POSIX, so do not add quotes.
16676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16677 ;;
16678 esac |
16679 sort
16680 ) |
16681 sed '
16682 /^ac_cv_env_/b end
16683 t clear
16684 :clear
16685 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16686 t end
16687 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16688 :end' >>confcache
16689 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16690 if test -w "$cache_file"; then
16691 if test "x$cache_file" != "x/dev/null"; then
16692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16693 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16694 if test ! -f "$cache_file" || test -h "$cache_file"; then
16695 cat confcache >"$cache_file"
16696 else
16697 case $cache_file in #(
16698 */* | ?:*)
16699 mv -f confcache "$cache_file"$$ &&
16700 mv -f "$cache_file"$$ "$cache_file" ;; #(
16701 *)
16702 mv -f confcache "$cache_file" ;;
16703 esac
16704 fi
16705 fi
16706 else
16707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16708 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16709 fi
16710 fi
16711 rm -f confcache
16712
16713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16714 # Let make expand exec_prefix.
16715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16716
16717 DEFS=-DHAVE_CONFIG_H
16718
16719 ac_libobjs=
16720 ac_ltlibobjs=
16721 U=
16722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16723 # 1. Remove the extension, and $U if already installed.
16724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16725 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16727 # will be set to the directory where LIBOBJS objects are built.
16728 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16729 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16730 done
16731 LIBOBJS=$ac_libobjs
16732
16733 LTLIBOBJS=$ac_ltlibobjs
16734
16735
16736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16737 printf %s "checking that generated files are newer than configure... " >&6; }
16738 if test -n "$am_sleep_pid"; then
16739 # Hide warnings about reused PIDs.
16740 wait $am_sleep_pid 2>/dev/null
16741 fi
16742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16743 printf "%s\n" "done" >&6; }
16744 case $enable_silent_rules in # (((
16745 yes) AM_DEFAULT_VERBOSITY=0;;
16746 no) AM_DEFAULT_VERBOSITY=1;;
16747 esac
16748 if test $am_cv_make_support_nested_variables = yes; then
16749 AM_V='$(V)'
16750 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16751 else
16752 AM_V=$AM_DEFAULT_VERBOSITY
16753 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16754 fi
16755
16756 if test -n "$EXEEXT"; then
16757 am__EXEEXT_TRUE=
16758 am__EXEEXT_FALSE='#'
16759 else
16760 am__EXEEXT_TRUE='#'
16761 am__EXEEXT_FALSE=
16762 fi
16763
16764 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16765 as_fn_error $? "conditional \"AMDEP\" was never defined.
16766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16767 fi
16768 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16769 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16771 fi
16772
16773 if test -z "${LIBP11_OSSL_PROVIDER_TRUE}" && test -z "${LIBP11_OSSL_PROVIDER_FALSE}"; then
16774 as_fn_error $? "conditional \"LIBP11_OSSL_PROVIDER\" was never defined.
16775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16776 fi
16777 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
16778 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
16779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16780 fi
16781 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
16782 as_fn_error $? "conditional \"WIN32\" was never defined.
16783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16784 fi
16785 if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
16786 as_fn_error $? "conditional \"CYGWIN\" was never defined.
16787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16788 fi
16789 if test -z "${ENABLE_API_DOC_TRUE}" && test -z "${ENABLE_API_DOC_FALSE}"; then
16790 as_fn_error $? "conditional \"ENABLE_API_DOC\" was never defined.
16791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16792 fi
16793 if test -z "${ENABLE_STATIC_ENGINE_TRUE}" && test -z "${ENABLE_STATIC_ENGINE_FALSE}"; then
16794 as_fn_error $? "conditional \"ENABLE_STATIC_ENGINE\" was never defined.
16795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16796 fi
16797
16798 : "${CONFIG_STATUS=./config.status}"
16799 ac_write_fail=0
16800 ac_clean_files_save=$ac_clean_files
16801 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16803 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16804 as_write_fail=0
16805 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16806 #! $SHELL
16807 # Generated by $as_me.
16808 # Run this file to recreate the current configuration.
16809 # Compiler output produced by configure, useful for debugging
16810 # configure, is in config.log if it exists.
16811
16812 debug=false
16813 ac_cs_recheck=false
16814 ac_cs_silent=false
16815
16816 SHELL=\${CONFIG_SHELL-$SHELL}
16817 export SHELL
16818 _ASEOF
16819 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16820 ## -------------------- ##
16821 ## M4sh Initialization. ##
16822 ## -------------------- ##
16823
16824 # Be more Bourne compatible
16825 DUALCASE=1; export DUALCASE # for MKS sh
16826 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16827 then :
16828 emulate sh
16829 NULLCMD=:
16830 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16831 # is contrary to our usage. Disable this feature.
16832 alias -g '${1+"$@"}'='"$@"'
16833 setopt NO_GLOB_SUBST
16834 else case e in #(
16835 e) case `(set -o) 2>/dev/null` in #(
16836 *posix*) :
16837 set -o posix ;; #(
16838 *) :
16839 ;;
16840 esac ;;
16841 esac
16842 fi
16843
16844
16845
16846 # Reset variables that may have inherited troublesome values from
16847 # the environment.
16848
16849 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16850 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16851 # side effect of setting IFS to empty, thus disabling word splitting.)
16852 # Quoting is to prevent editors from complaining about space-tab.
16853 as_nl='
16854 '
16855 export as_nl
16856 IFS=" "" $as_nl"
16857
16858 PS1='$ '
16859 PS2='> '
16860 PS4='+ '
16861
16862 # Ensure predictable behavior from utilities with locale-dependent output.
16863 LC_ALL=C
16864 export LC_ALL
16865 LANGUAGE=C
16866 export LANGUAGE
16867
16868 # We cannot yet rely on "unset" to work, but we need these variables
16869 # to be unset--not just set to an empty or harmless value--now, to
16870 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16871 # also avoids known problems related to "unset" and subshell syntax
16872 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16873 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16874 do eval test \${$as_var+y} \
16875 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16876 done
16877
16878 # Ensure that fds 0, 1, and 2 are open.
16879 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16880 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16881 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16882
16883 # The user is always right.
16884 if ${PATH_SEPARATOR+false} :; then
16885 PATH_SEPARATOR=:
16886 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16887 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16888 PATH_SEPARATOR=';'
16889 }
16890 fi
16891
16892
16893 # Find who we are. Look in the path if we contain no directory separator.
16894 as_myself=
16895 case $0 in #((
16896 *[\\/]* ) as_myself=$0 ;;
16897 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16898 for as_dir in $PATH
16899 do
16900 IFS=$as_save_IFS
16901 case $as_dir in #(((
16902 '') as_dir=./ ;;
16903 */) ;;
16904 *) as_dir=$as_dir/ ;;
16905 esac
16906 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16907 done
16908 IFS=$as_save_IFS
16909
16910 ;;
16911 esac
16912 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16913 # in which case we are not to be found in the path.
16914 if test "x$as_myself" = x; then
16915 as_myself=$0
16916 fi
16917 if test ! -f "$as_myself"; then
16918 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16919 exit 1
16920 fi
16921
16922
16923
16924 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16925 # ----------------------------------------
16926 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16927 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16928 # script with STATUS, using 1 if that was 0.
16929 as_fn_error ()
16930 {
16931 as_status=$1; test $as_status -eq 0 && as_status=1
16932 if test "$4"; then
16933 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16935 fi
16936 printf "%s\n" "$as_me: error: $2" >&2
16937 as_fn_exit $as_status
16938 } # as_fn_error
16939
16940
16941 # as_fn_set_status STATUS
16942 # -----------------------
16943 # Set $? to STATUS, without forking.
16944 as_fn_set_status ()
16945 {
16946 return $1
16947 } # as_fn_set_status
16948
16949 # as_fn_exit STATUS
16950 # -----------------
16951 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16952 as_fn_exit ()
16953 {
16954 set +e
16955 as_fn_set_status $1
16956 exit $1
16957 } # as_fn_exit
16958
16959 # as_fn_unset VAR
16960 # ---------------
16961 # Portably unset VAR.
16962 as_fn_unset ()
16963 {
16964 { eval $1=; unset $1;}
16965 }
16966 as_unset=as_fn_unset
16967
16968 # as_fn_append VAR VALUE
16969 # ----------------------
16970 # Append the text in VALUE to the end of the definition contained in VAR. Take
16971 # advantage of any shell optimizations that allow amortized linear growth over
16972 # repeated appends, instead of the typical quadratic growth present in naive
16973 # implementations.
16974 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16975 then :
16976 eval 'as_fn_append ()
16977 {
16978 eval $1+=\$2
16979 }'
16980 else case e in #(
16981 e) as_fn_append ()
16982 {
16983 eval $1=\$$1\$2
16984 } ;;
16985 esac
16986 fi # as_fn_append
16987
16988 # as_fn_arith ARG...
16989 # ------------------
16990 # Perform arithmetic evaluation on the ARGs, and store the result in the
16991 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16992 # must be portable across $(()) and expr.
16993 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16994 then :
16995 eval 'as_fn_arith ()
16996 {
16997 as_val=$(( $* ))
16998 }'
16999 else case e in #(
17000 e) as_fn_arith ()
17001 {
17002 as_val=`expr "$@" || test $? -eq 1`
17003 } ;;
17004 esac
17005 fi # as_fn_arith
17006
17007
17008 if expr a : '\(a\)' >/dev/null 2>&1 &&
17009 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17010 as_expr=expr
17011 else
17012 as_expr=false
17013 fi
17014
17015 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17016 as_basename=basename
17017 else
17018 as_basename=false
17019 fi
17020
17021 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17022 as_dirname=dirname
17023 else
17024 as_dirname=false
17025 fi
17026
17027 as_me=`$as_basename -- "$0" ||
17028 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17029 X"$0" : 'X\(//\)$' \| \
17030 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17031 printf "%s\n" X/"$0" |
17032 sed '/^.*\/\([^/][^/]*\)\/*$/{
17033 s//\1/
17034 q
17035 }
17036 /^X\/\(\/\/\)$/{
17037 s//\1/
17038 q
17039 }
17040 /^X\/\(\/\).*/{
17041 s//\1/
17042 q
17043 }
17044 s/.*/./; q'`
17045
17046 # Avoid depending upon Character Ranges.
17047 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17048 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17049 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17050 as_cr_digits='0123456789'
17051 as_cr_alnum=$as_cr_Letters$as_cr_digits
17052
17053
17054 # Determine whether it's possible to make 'echo' print without a newline.
17055 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17056 # for compatibility with existing Makefiles.
17057 ECHO_C= ECHO_N= ECHO_T=
17058 case `echo -n x` in #(((((
17059 -n*)
17060 case `echo 'xy\c'` in
17061 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17062 xy) ECHO_C='\c';;
17063 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17064 ECHO_T=' ';;
17065 esac;;
17066 *)
17067 ECHO_N='-n';;
17068 esac
17069
17070 # For backward compatibility with old third-party macros, we provide
17071 # the shell variables $as_echo and $as_echo_n. New code should use
17072 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17073 as_echo='printf %s\n'
17074 as_echo_n='printf %s'
17075
17076 rm -f conf$$ conf$$.exe conf$$.file
17077 if test -d conf$$.dir; then
17078 rm -f conf$$.dir/conf$$.file
17079 else
17080 rm -f conf$$.dir
17081 mkdir conf$$.dir 2>/dev/null
17082 fi
17083 if (echo >conf$$.file) 2>/dev/null; then
17084 if ln -s conf$$.file conf$$ 2>/dev/null; then
17085 as_ln_s='ln -s'
17086 # ... but there are two gotchas:
17087 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17088 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17089 # In both cases, we have to default to 'cp -pR'.
17090 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17091 as_ln_s='cp -pR'
17092 elif ln conf$$.file conf$$ 2>/dev/null; then
17093 as_ln_s=ln
17094 else
17095 as_ln_s='cp -pR'
17096 fi
17097 else
17098 as_ln_s='cp -pR'
17099 fi
17100 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17101 rmdir conf$$.dir 2>/dev/null
17102
17103
17104 # as_fn_mkdir_p
17105 # -------------
17106 # Create "$as_dir" as a directory, including parents if necessary.
17107 as_fn_mkdir_p ()
17108 {
17109
17110 case $as_dir in #(
17111 -*) as_dir=./$as_dir;;
17112 esac
17113 test -d "$as_dir" || eval $as_mkdir_p || {
17114 as_dirs=
17115 while :; do
17116 case $as_dir in #(
17117 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17118 *) as_qdir=$as_dir;;
17119 esac
17120 as_dirs="'$as_qdir' $as_dirs"
17121 as_dir=`$as_dirname -- "$as_dir" ||
17122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17123 X"$as_dir" : 'X\(//\)[^/]' \| \
17124 X"$as_dir" : 'X\(//\)$' \| \
17125 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17126 printf "%s\n" X"$as_dir" |
17127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17128 s//\1/
17129 q
17130 }
17131 /^X\(\/\/\)[^/].*/{
17132 s//\1/
17133 q
17134 }
17135 /^X\(\/\/\)$/{
17136 s//\1/
17137 q
17138 }
17139 /^X\(\/\).*/{
17140 s//\1/
17141 q
17142 }
17143 s/.*/./; q'`
17144 test -d "$as_dir" && break
17145 done
17146 test -z "$as_dirs" || eval "mkdir $as_dirs"
17147 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17148
17149
17150 } # as_fn_mkdir_p
17151 if mkdir -p . 2>/dev/null; then
17152 as_mkdir_p='mkdir -p "$as_dir"'
17153 else
17154 test -d ./-p && rmdir ./-p
17155 as_mkdir_p=false
17156 fi
17157
17158
17159 # as_fn_executable_p FILE
17160 # -----------------------
17161 # Test if FILE is an executable regular file.
17162 as_fn_executable_p ()
17163 {
17164 test -f "$1" && test -x "$1"
17165 } # as_fn_executable_p
17166 as_test_x='test -x'
17167 as_executable_p=as_fn_executable_p
17168
17169 # Sed expression to map a string onto a valid CPP name.
17170 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17171 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17172
17173 # Sed expression to map a string onto a valid variable name.
17174 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17175 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17176
17177
17178 exec 6>&1
17179 ## ----------------------------------- ##
17180 ## Main body of $CONFIG_STATUS script. ##
17181 ## ----------------------------------- ##
17182 _ASEOF
17183 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17184
17185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17186 # Save the log message, to keep $0 and so on meaningful, and to
17187 # report actual input values of CONFIG_FILES etc. instead of their
17188 # values after options handling.
17189 ac_log="
17190 This file was extended by libp11 $as_me 0.4.18, which was
17191 generated by GNU Autoconf 2.72. Invocation command line was
17192
17193 CONFIG_FILES = $CONFIG_FILES
17194 CONFIG_HEADERS = $CONFIG_HEADERS
17195 CONFIG_LINKS = $CONFIG_LINKS
17196 CONFIG_COMMANDS = $CONFIG_COMMANDS
17197 $ $0 $@
17198
17199 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17200 "
17201
17202 _ACEOF
17203
17204 case $ac_config_files in *"
17205 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17206 esac
17207
17208 case $ac_config_headers in *"
17209 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17210 esac
17211
17212
17213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17214 # Files that config.status was made for.
17215 config_files="$ac_config_files"
17216 config_headers="$ac_config_headers"
17217 config_commands="$ac_config_commands"
17218
17219 _ACEOF
17220
17221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17222 ac_cs_usage="\
17223 '$as_me' instantiates files and other configuration actions
17224 from templates according to the current configuration. Unless the files
17225 and actions are specified as TAGs, all are instantiated by default.
17226
17227 Usage: $0 [OPTION]... [TAG]...
17228
17229 -h, --help print this help, then exit
17230 -V, --version print version number and configuration settings, then exit
17231 --config print configuration, then exit
17232 -q, --quiet, --silent
17233 do not print progress messages
17234 -d, --debug don't remove temporary files
17235 --recheck update $as_me by reconfiguring in the same conditions
17236 --file=FILE[:TEMPLATE]
17237 instantiate the configuration file FILE
17238 --header=FILE[:TEMPLATE]
17239 instantiate the configuration header FILE
17240
17241 Configuration files:
17242 $config_files
17243
17244 Configuration headers:
17245 $config_headers
17246
17247 Configuration commands:
17248 $config_commands
17249
17250 Report bugs to the package provider."
17251
17252 _ACEOF
17253 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17254 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17256 ac_cs_config='$ac_cs_config_escaped'
17257 ac_cs_version="\\
17258 libp11 config.status 0.4.18
17259 configured by $0, generated by GNU Autoconf 2.72,
17260 with options \\"\$ac_cs_config\\"
17261
17262 Copyright (C) 2023 Free Software Foundation, Inc.
17263 This config.status script is free software; the Free Software Foundation
17264 gives unlimited permission to copy, distribute and modify it."
17265
17266 ac_pwd='$ac_pwd'
17267 srcdir='$srcdir'
17268 INSTALL='$INSTALL'
17269 MKDIR_P='$MKDIR_P'
17270 AWK='$AWK'
17271 test -n "\$AWK" || AWK=awk
17272 _ACEOF
17273
17274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17275 # The default lists apply if the user does not specify any file.
17276 ac_need_defaults=:
17277 while test $# != 0
17278 do
17279 case $1 in
17280 --*=?*)
17281 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17282 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17283 ac_shift=:
17284 ;;
17285 --*=)
17286 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17287 ac_optarg=
17288 ac_shift=:
17289 ;;
17290 *)
17291 ac_option=$1
17292 ac_optarg=$2
17293 ac_shift=shift
17294 ;;
17295 esac
17296
17297 case $ac_option in
17298 # Handling of the options.
17299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17300 ac_cs_recheck=: ;;
17301 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17302 printf "%s\n" "$ac_cs_version"; exit ;;
17303 --config | --confi | --conf | --con | --co | --c )
17304 printf "%s\n" "$ac_cs_config"; exit ;;
17305 --debug | --debu | --deb | --de | --d | -d )
17306 debug=: ;;
17307 --file | --fil | --fi | --f )
17308 $ac_shift
17309 case $ac_optarg in
17310 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17311 '') as_fn_error $? "missing file argument" ;;
17312 esac
17313 as_fn_append CONFIG_FILES " '$ac_optarg'"
17314 ac_need_defaults=false;;
17315 --header | --heade | --head | --hea )
17316 $ac_shift
17317 case $ac_optarg in
17318 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17319 esac
17320 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17321 ac_need_defaults=false;;
17322 --he | --h)
17323 # Conflict between --help and --header
17324 as_fn_error $? "ambiguous option: '$1'
17325 Try '$0 --help' for more information.";;
17326 --help | --hel | -h )
17327 printf "%s\n" "$ac_cs_usage"; exit ;;
17328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17329 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17330 ac_cs_silent=: ;;
17331
17332 # This is an error.
17333 -*) as_fn_error $? "unrecognized option: '$1'
17334 Try '$0 --help' for more information." ;;
17335
17336 *) as_fn_append ac_config_targets " $1"
17337 ac_need_defaults=false ;;
17338
17339 esac
17340 shift
17341 done
17342
17343 ac_configure_extra_args=
17344
17345 if $ac_cs_silent; then
17346 exec 6>/dev/null
17347 ac_configure_extra_args="$ac_configure_extra_args --silent"
17348 fi
17349
17350 _ACEOF
17351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17352 if \$ac_cs_recheck; then
17353 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17354 shift
17355 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17356 CONFIG_SHELL='$SHELL'
17357 export CONFIG_SHELL
17358 exec "\$@"
17359 fi
17360
17361 _ACEOF
17362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17363 exec 5>>config.log
17364 {
17365 echo
17366 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17367 ## Running $as_me. ##
17368 _ASBOX
17369 printf "%s\n" "$ac_log"
17370 } >&5
17371
17372 _ACEOF
17373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17374 #
17375 # INIT-COMMANDS
17376 #
17377 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17378
17379
17380 # The HP-UX ksh and POSIX shell print the target directory to stdout
17381 # if CDPATH is set.
17382 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17383
17384 sed_quote_subst='$sed_quote_subst'
17385 double_quote_subst='$double_quote_subst'
17386 delay_variable_subst='$delay_variable_subst'
17387 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17388 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17389 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17390 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17391 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17392 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17393 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17394 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17395 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17396 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17397 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17398 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17399 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17400 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17401 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17402 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17403 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17404 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17405 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17406 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17407 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17408 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17409 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17410 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17411 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17412 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17413 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17414 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17415 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17416 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17417 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17418 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17419 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17420 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17421 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17422 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17423 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17424 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17425 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17426 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17427 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17428 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17429 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17430 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17431 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17432 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17433 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17434 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17435 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17436 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17437 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17438 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17439 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17440 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17441 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17442 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17443 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17444 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17445 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17446 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17447 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17448 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"`'
17449 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17450 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17451 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17452 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17453 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17454 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17455 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17456 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17457 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17458 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17459 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17460 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17461 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17462 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17463 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17464 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17465 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17466 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17467 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17468 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17469 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17470 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17471 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17472 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17473 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17474 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17475 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17476 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17477 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17478 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17479 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17480 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17481 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17482 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17483 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17484 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17485 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17486 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17487 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17488 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17489 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17490 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17491 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17492 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17493 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17494 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17495 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17496 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17497 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17498 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17499 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17500 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17501 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17502 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17503 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17504 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17505 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17506 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17507 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17508 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17509 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17510 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17511 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17512 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17513 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17514 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17515 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17516 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17517 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17518 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17519 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17520 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17521 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17522 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17523 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17524 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17525 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17526 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17527 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17528 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17529 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17530 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17531 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17532 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17533 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17534 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17535 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17536 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17537 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17538 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17539 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17540 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17541 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17542 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17543 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17544 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17545 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17546 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17547 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17548 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17549 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17550 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17551 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17552 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17553 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17554 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17555 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17556 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17557 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17558 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17559 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
17560 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
17561 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17562 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17563 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17564 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17565 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
17566 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
17567
17568 LTCC='$LTCC'
17569 LTCFLAGS='$LTCFLAGS'
17570 compiler='$compiler_DEFAULT'
17571
17572 # A function that is used when there is no print builtin or printf.
17573 func_fallback_echo ()
17574 {
17575 eval 'cat <<_LTECHO_EOF
17576 \$1
17577 _LTECHO_EOF'
17578 }
17579
17580 # Quote evaled strings.
17581 for var in AS \
17582 DLLTOOL \
17583 OBJDUMP \
17584 SHELL \
17585 ECHO \
17586 PATH_SEPARATOR \
17587 SED \
17588 GREP \
17589 EGREP \
17590 FGREP \
17591 LD \
17592 NM \
17593 LN_S \
17594 lt_SP2NL \
17595 lt_NL2SP \
17596 reload_flag \
17597 FILECMD \
17598 deplibs_check_method \
17599 file_magic_cmd \
17600 file_magic_glob \
17601 want_nocaseglob \
17602 sharedlib_from_linklib_cmd \
17603 AR \
17604 archiver_list_spec \
17605 STRIP \
17606 RANLIB \
17607 CC \
17608 CFLAGS \
17609 compiler \
17610 lt_cv_sys_global_symbol_pipe \
17611 lt_cv_sys_global_symbol_to_cdecl \
17612 lt_cv_sys_global_symbol_to_import \
17613 lt_cv_sys_global_symbol_to_c_name_address \
17614 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17615 lt_cv_nm_interface \
17616 nm_file_list_spec \
17617 lt_cv_truncate_bin \
17618 lt_prog_compiler_no_builtin_flag \
17619 lt_prog_compiler_pic \
17620 lt_prog_compiler_wl \
17621 lt_prog_compiler_static \
17622 lt_cv_prog_compiler_c_o \
17623 need_locks \
17624 MANIFEST_TOOL \
17625 DSYMUTIL \
17626 NMEDIT \
17627 LIPO \
17628 OTOOL \
17629 OTOOL64 \
17630 shrext_cmds \
17631 export_dynamic_flag_spec \
17632 whole_archive_flag_spec \
17633 compiler_needs_object \
17634 with_gnu_ld \
17635 allow_undefined_flag \
17636 no_undefined_flag \
17637 hardcode_libdir_flag_spec \
17638 hardcode_libdir_separator \
17639 exclude_expsyms \
17640 include_expsyms \
17641 file_list_spec \
17642 variables_saved_for_relink \
17643 libname_spec \
17644 library_names_spec \
17645 soname_spec \
17646 install_override_mode \
17647 finish_eval \
17648 old_striplib \
17649 striplib \
17650 LD_RC \
17651 reload_flag_RC \
17652 compiler_RC \
17653 lt_prog_compiler_no_builtin_flag_RC \
17654 lt_prog_compiler_pic_RC \
17655 lt_prog_compiler_wl_RC \
17656 lt_prog_compiler_static_RC \
17657 lt_cv_prog_compiler_c_o_RC \
17658 export_dynamic_flag_spec_RC \
17659 whole_archive_flag_spec_RC \
17660 compiler_needs_object_RC \
17661 with_gnu_ld_RC \
17662 allow_undefined_flag_RC \
17663 no_undefined_flag_RC \
17664 hardcode_libdir_flag_spec_RC \
17665 hardcode_libdir_separator_RC \
17666 exclude_expsyms_RC \
17667 include_expsyms_RC \
17668 file_list_spec_RC; do
17669 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17670 *[\\\\\\\`\\"\\\$]*)
17671 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17672 ;;
17673 *)
17674 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17675 ;;
17676 esac
17677 done
17678
17679 # Double-quote double-evaled strings.
17680 for var in reload_cmds \
17681 old_postinstall_cmds \
17682 old_postuninstall_cmds \
17683 old_archive_cmds \
17684 extract_expsyms_cmds \
17685 old_archive_from_new_cmds \
17686 old_archive_from_expsyms_cmds \
17687 archive_cmds \
17688 archive_expsym_cmds \
17689 module_cmds \
17690 module_expsym_cmds \
17691 export_symbols_cmds \
17692 prelink_cmds \
17693 postlink_cmds \
17694 postinstall_cmds \
17695 postuninstall_cmds \
17696 finish_cmds \
17697 sys_lib_search_path_spec \
17698 configure_time_dlsearch_path \
17699 configure_time_lt_sys_library_path \
17700 reload_cmds_RC \
17701 old_archive_cmds_RC \
17702 old_archive_from_new_cmds_RC \
17703 old_archive_from_expsyms_cmds_RC \
17704 archive_cmds_RC \
17705 archive_expsym_cmds_RC \
17706 module_cmds_RC \
17707 module_expsym_cmds_RC \
17708 export_symbols_cmds_RC \
17709 prelink_cmds_RC \
17710 postlink_cmds_RC; do
17711 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17712 *[\\\\\\\`\\"\\\$]*)
17713 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17714 ;;
17715 *)
17716 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17717 ;;
17718 esac
17719 done
17720
17721 ac_aux_dir='$ac_aux_dir'
17722
17723 # See if we are running on zsh, and set the options that allow our
17724 # commands through without removal of \ escapes INIT.
17725 if test -n "\${ZSH_VERSION+set}"; then
17726 setopt NO_GLOB_SUBST
17727 fi
17728
17729
17730 PACKAGE='$PACKAGE'
17731 VERSION='$VERSION'
17732 RM='$RM'
17733 ofile='$ofile'
17734
17735
17736
17737
17738
17739
17740 _ACEOF
17741
17742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17743
17744 # Handling of arguments.
17745 for ac_config_target in $ac_config_targets
17746 do
17747 case $ac_config_target in
17748 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17749 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17750 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17751 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17752 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17753 "src/libp11.pc") CONFIG_FILES="$CONFIG_FILES src/libp11.pc" ;;
17754 "src/libp11.rc") CONFIG_FILES="$CONFIG_FILES src/libp11.rc" ;;
17755 "src/pkcs11.rc") CONFIG_FILES="$CONFIG_FILES src/pkcs11.rc" ;;
17756 "src/pkcs11prov.rc") CONFIG_FILES="$CONFIG_FILES src/pkcs11prov.rc" ;;
17757 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17758 "doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen.conf" ;;
17759 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17760 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17761 ".github/workflows/ci.yml") CONFIG_FILES="$CONFIG_FILES .github/workflows/ci.yml" ;;
17762
17763 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
17764 esac
17765 done
17766
17767
17768 # If the user did not use the arguments to specify the items to instantiate,
17769 # then the envvar interface is used. Set only those that are not.
17770 # We use the long form for the default assignment because of an extremely
17771 # bizarre bug on SunOS 4.1.3.
17772 if $ac_need_defaults; then
17773 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17774 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17775 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17776 fi
17777
17778 # Have a temporary directory for convenience. Make it in the build tree
17779 # simply because there is no reason against having it here, and in addition,
17780 # creating and moving files from /tmp can sometimes cause problems.
17781 # Hook for its removal unless debugging.
17782 # Note that there is a small window in which the directory will not be cleaned:
17783 # after its creation but before its name has been assigned to '$tmp'.
17784 $debug ||
17785 {
17786 tmp= ac_tmp=
17787 trap 'exit_status=$?
17788 : "${ac_tmp:=$tmp}"
17789 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17790 ' 0
17791 trap 'as_fn_exit 1' 1 2 13 15
17792 }
17793 # Create a (secure) tmp directory for tmp files.
17794
17795 {
17796 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17797 test -d "$tmp"
17798 } ||
17799 {
17800 tmp=./conf$$-$RANDOM
17801 (umask 077 && mkdir "$tmp")
17802 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17803 ac_tmp=$tmp
17804
17805 # Set up the scripts for CONFIG_FILES section.
17806 # No need to generate them if there are no CONFIG_FILES.
17807 # This happens for instance with './config.status config.h'.
17808 if test -n "$CONFIG_FILES"; then
17809
17810
17811 ac_cr=`echo X | tr X '\015'`
17812 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17813 # But we know of no other shell where ac_cr would be empty at this
17814 # point, so we can use a bashism as a fallback.
17815 if test "x$ac_cr" = x; then
17816 eval ac_cr=\$\'\\r\'
17817 fi
17818 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17819 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17820 ac_cs_awk_cr='\\r'
17821 else
17822 ac_cs_awk_cr=$ac_cr
17823 fi
17824
17825 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17826 _ACEOF
17827
17828
17829 {
17830 echo "cat >conf$$subs.awk <<_ACEOF" &&
17831 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17832 echo "_ACEOF"
17833 } >conf$$subs.sh ||
17834 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17835 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17836 ac_delim='%!_!# '
17837 for ac_last_try in false false false false false :; do
17838 . ./conf$$subs.sh ||
17839 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17840
17841 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17842 if test $ac_delim_n = $ac_delim_num; then
17843 break
17844 elif $ac_last_try; then
17845 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17846 else
17847 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17848 fi
17849 done
17850 rm -f conf$$subs.sh
17851
17852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17853 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17854 _ACEOF
17855 sed -n '
17856 h
17857 s/^/S["/; s/!.*/"]=/
17858 p
17859 g
17860 s/^[^!]*!//
17861 :repl
17862 t repl
17863 s/'"$ac_delim"'$//
17864 t delim
17865 :nl
17866 h
17867 s/\(.\{148\}\)..*/\1/
17868 t more1
17869 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17870 p
17871 n
17872 b repl
17873 :more1
17874 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17875 p
17876 g
17877 s/.\{148\}//
17878 t nl
17879 :delim
17880 h
17881 s/\(.\{148\}\)..*/\1/
17882 t more2
17883 s/["\\]/\\&/g; s/^/"/; s/$/"/
17884 p
17885 b
17886 :more2
17887 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17888 p
17889 g
17890 s/.\{148\}//
17891 t delim
17892 ' <conf$$subs.awk | sed '
17893 /^[^""]/{
17894 N
17895 s/\n//
17896 }
17897 ' >>$CONFIG_STATUS || ac_write_fail=1
17898 rm -f conf$$subs.awk
17899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17900 _ACAWK
17901 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17902 for (key in S) S_is_set[key] = 1
17903 FS = ""
17904
17905 }
17906 {
17907 line = $ 0
17908 nfields = split(line, field, "@")
17909 substed = 0
17910 len = length(field[1])
17911 for (i = 2; i < nfields; i++) {
17912 key = field[i]
17913 keylen = length(key)
17914 if (S_is_set[key]) {
17915 value = S[key]
17916 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17917 len += length(value) + length(field[++i])
17918 substed = 1
17919 } else
17920 len += 1 + keylen
17921 }
17922
17923 print line
17924 }
17925
17926 _ACAWK
17927 _ACEOF
17928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17929 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17930 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17931 else
17932 cat
17933 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17934 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17935 _ACEOF
17936
17937 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17938 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17939 # trailing colons and then remove the whole line if VPATH becomes empty
17940 # (actually we leave an empty line to preserve line numbers).
17941 if test "x$srcdir" = x.; then
17942 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17943 h
17944 s///
17945 s/^/:/
17946 s/[ ]*$/:/
17947 s/:\$(srcdir):/:/g
17948 s/:\${srcdir}:/:/g
17949 s/:@srcdir@:/:/g
17950 s/^:*//
17951 s/:*$//
17952 x
17953 s/\(=[ ]*\).*/\1/
17954 G
17955 s/\n//
17956 s/^[^=]*=[ ]*$//
17957 }'
17958 fi
17959
17960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17961 fi # test -n "$CONFIG_FILES"
17962
17963 # Set up the scripts for CONFIG_HEADERS section.
17964 # No need to generate them if there are no CONFIG_HEADERS.
17965 # This happens for instance with './config.status Makefile'.
17966 if test -n "$CONFIG_HEADERS"; then
17967 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17968 BEGIN {
17969 _ACEOF
17970
17971 # Transform confdefs.h into an awk script 'defines.awk', embedded as
17972 # here-document in config.status, that substitutes the proper values into
17973 # config.h.in to produce config.h.
17974
17975 # Create a delimiter string that does not exist in confdefs.h, to ease
17976 # handling of long lines.
17977 ac_delim='%!_!# '
17978 for ac_last_try in false false :; do
17979 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17980 if test -z "$ac_tt"; then
17981 break
17982 elif $ac_last_try; then
17983 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17984 else
17985 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17986 fi
17987 done
17988
17989 # For the awk script, D is an array of macro values keyed by name,
17990 # likewise P contains macro parameters if any. Preserve backslash
17991 # newline sequences.
17992
17993 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17994 sed -n '
17995 s/.\{148\}/&'"$ac_delim"'/g
17996 t rset
17997 :rset
17998 s/^[ ]*#[ ]*define[ ][ ]*/ /
17999 t def
18000 d
18001 :def
18002 s/\\$//
18003 t bsnl
18004 s/["\\]/\\&/g
18005 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18006 D["\1"]=" \3"/p
18007 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18008 d
18009 :bsnl
18010 s/["\\]/\\&/g
18011 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18012 D["\1"]=" \3\\\\\\n"\\/p
18013 t cont
18014 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18015 t cont
18016 d
18017 :cont
18018 n
18019 s/.\{148\}/&'"$ac_delim"'/g
18020 t clear
18021 :clear
18022 s/\\$//
18023 t bsnlc
18024 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18025 d
18026 :bsnlc
18027 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18028 b cont
18029 ' <confdefs.h | sed '
18030 s/'"$ac_delim"'/"\\\
18031 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18032
18033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18034 for (key in D) D_is_set[key] = 1
18035 FS = ""
18036 }
18037 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18038 line = \$ 0
18039 split(line, arg, " ")
18040 if (arg[1] == "#") {
18041 defundef = arg[2]
18042 mac1 = arg[3]
18043 } else {
18044 defundef = substr(arg[1], 2)
18045 mac1 = arg[2]
18046 }
18047 split(mac1, mac2, "(") #)
18048 macro = mac2[1]
18049 prefix = substr(line, 1, index(line, defundef) - 1)
18050 if (D_is_set[macro]) {
18051 # Preserve the white space surrounding the "#".
18052 print prefix "define", macro P[macro] D[macro]
18053 next
18054 } else {
18055 # Replace #undef with comments. This is necessary, for example,
18056 # in the case of _POSIX_SOURCE, which is predefined and required
18057 # on some systems where configure will not decide to define it.
18058 if (defundef == "undef") {
18059 print "/*", prefix defundef, macro, "*/"
18060 next
18061 }
18062 }
18063 }
18064 { print }
18065 _ACAWK
18066 _ACEOF
18067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18068 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18069 fi # test -n "$CONFIG_HEADERS"
18070
18071
18072 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18073 shift
18074 for ac_tag
18075 do
18076 case $ac_tag in
18077 :[FHLC]) ac_mode=$ac_tag; continue;;
18078 esac
18079 case $ac_mode$ac_tag in
18080 :[FHL]*:*);;
18081 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18082 :[FH]-) ac_tag=-:-;;
18083 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18084 esac
18085 ac_save_IFS=$IFS
18086 IFS=:
18087 set x $ac_tag
18088 IFS=$ac_save_IFS
18089 shift
18090 ac_file=$1
18091 shift
18092
18093 case $ac_mode in
18094 :L) ac_source=$1;;
18095 :[FH])
18096 ac_file_inputs=
18097 for ac_f
18098 do
18099 case $ac_f in
18100 -) ac_f="$ac_tmp/stdin";;
18101 *) # Look for the file first in the build tree, then in the source tree
18102 # (if the path is not absolute). The absolute path cannot be DOS-style,
18103 # because $ac_f cannot contain ':'.
18104 test -f "$ac_f" ||
18105 case $ac_f in
18106 [\\/$]*) false;;
18107 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18108 esac ||
18109 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18110 esac
18111 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18112 as_fn_append ac_file_inputs " '$ac_f'"
18113 done
18114
18115 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18116 # use $as_me), people would be surprised to read:
18117 # /* config.h. Generated by config.status. */
18118 configure_input='Generated from '`
18119 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18120 `' by configure.'
18121 if test x"$ac_file" != x-; then
18122 configure_input="$ac_file. $configure_input"
18123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18124 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18125 fi
18126 # Neutralize special characters interpreted by sed in replacement strings.
18127 case $configure_input in #(
18128 *\&* | *\|* | *\\* )
18129 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18130 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18131 *) ac_sed_conf_input=$configure_input;;
18132 esac
18133
18134 case $ac_tag in
18135 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18137 esac
18138 ;;
18139 esac
18140
18141 ac_dir=`$as_dirname -- "$ac_file" ||
18142 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18143 X"$ac_file" : 'X\(//\)[^/]' \| \
18144 X"$ac_file" : 'X\(//\)$' \| \
18145 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18146 printf "%s\n" X"$ac_file" |
18147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18148 s//\1/
18149 q
18150 }
18151 /^X\(\/\/\)[^/].*/{
18152 s//\1/
18153 q
18154 }
18155 /^X\(\/\/\)$/{
18156 s//\1/
18157 q
18158 }
18159 /^X\(\/\).*/{
18160 s//\1/
18161 q
18162 }
18163 s/.*/./; q'`
18164 as_dir="$ac_dir"; as_fn_mkdir_p
18165 ac_builddir=.
18166
18167 case "$ac_dir" in
18168 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18169 *)
18170 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18171 # A ".." for each directory in $ac_dir_suffix.
18172 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18173 case $ac_top_builddir_sub in
18174 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18175 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18176 esac ;;
18177 esac
18178 ac_abs_top_builddir=$ac_pwd
18179 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18180 # for backward compatibility:
18181 ac_top_builddir=$ac_top_build_prefix
18182
18183 case $srcdir in
18184 .) # We are building in place.
18185 ac_srcdir=.
18186 ac_top_srcdir=$ac_top_builddir_sub
18187 ac_abs_top_srcdir=$ac_pwd ;;
18188 [\\/]* | ?:[\\/]* ) # Absolute name.
18189 ac_srcdir=$srcdir$ac_dir_suffix;
18190 ac_top_srcdir=$srcdir
18191 ac_abs_top_srcdir=$srcdir ;;
18192 *) # Relative name.
18193 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18194 ac_top_srcdir=$ac_top_build_prefix$srcdir
18195 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18196 esac
18197 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18198
18199
18200 case $ac_mode in
18201 :F)
18202 #
18203 # CONFIG_FILE
18204 #
18205
18206 case $INSTALL in
18207 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18208 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18209 esac
18210 ac_MKDIR_P=$MKDIR_P
18211 case $MKDIR_P in
18212 [\\/$]* | ?:[\\/]* ) ;;
18213 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18214 esac
18215 _ACEOF
18216
18217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18218 # If the template does not know about datarootdir, expand it.
18219 # FIXME: This hack should be removed a few years after 2.60.
18220 ac_datarootdir_hack=; ac_datarootdir_seen=
18221 ac_sed_dataroot='
18222 /datarootdir/ {
18223 p
18224 q
18225 }
18226 /@datadir@/p
18227 /@docdir@/p
18228 /@infodir@/p
18229 /@localedir@/p
18230 /@mandir@/p'
18231 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18232 *datarootdir*) ac_datarootdir_seen=yes;;
18233 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18235 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18236 _ACEOF
18237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18238 ac_datarootdir_hack='
18239 s&@datadir@&$datadir&g
18240 s&@docdir@&$docdir&g
18241 s&@infodir@&$infodir&g
18242 s&@localedir@&$localedir&g
18243 s&@mandir@&$mandir&g
18244 s&\\\${datarootdir}&$datarootdir&g' ;;
18245 esac
18246 _ACEOF
18247
18248 # Neutralize VPATH when '$srcdir' = '.'.
18249 # Shell code in configure.ac might set extrasub.
18250 # FIXME: do we really want to maintain this feature?
18251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18252 ac_sed_extra="$ac_vpsub
18253 $extrasub
18254 _ACEOF
18255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18256 :t
18257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18258 s|@configure_input@|$ac_sed_conf_input|;t t
18259 s&@top_builddir@&$ac_top_builddir_sub&;t t
18260 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18261 s&@srcdir@&$ac_srcdir&;t t
18262 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18263 s&@top_srcdir@&$ac_top_srcdir&;t t
18264 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18265 s&@builddir@&$ac_builddir&;t t
18266 s&@abs_builddir@&$ac_abs_builddir&;t t
18267 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18268 s&@INSTALL@&$ac_INSTALL&;t t
18269 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18270 $ac_datarootdir_hack
18271 "
18272 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18273 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18274
18275 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18276 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18277 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18278 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18280 which seems to be undefined. Please make sure it is defined" >&5
18281 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18282 which seems to be undefined. Please make sure it is defined" >&2;}
18283
18284 rm -f "$ac_tmp/stdin"
18285 case $ac_file in
18286 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18287 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18288 esac \
18289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18290 ;;
18291 :H)
18292 #
18293 # CONFIG_HEADER
18294 #
18295 if test x"$ac_file" != x-; then
18296 {
18297 printf "%s\n" "/* $configure_input */" >&1 \
18298 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18299 } >"$ac_tmp/config.h" \
18300 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18301 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18303 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18304 else
18305 rm -f "$ac_file"
18306 mv "$ac_tmp/config.h" "$ac_file" \
18307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18308 fi
18309 else
18310 printf "%s\n" "/* $configure_input */" >&1 \
18311 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18312 || as_fn_error $? "could not create -" "$LINENO" 5
18313 fi
18314 # Compute "$ac_file"'s index in $config_headers.
18315 _am_arg="$ac_file"
18316 _am_stamp_count=1
18317 for _am_header in $config_headers :; do
18318 case $_am_header in
18319 $_am_arg | $_am_arg:* )
18320 break ;;
18321 * )
18322 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18323 esac
18324 done
18325 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18326 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18327 X"$_am_arg" : 'X\(//\)[^/]' \| \
18328 X"$_am_arg" : 'X\(//\)$' \| \
18329 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18330 printf "%s\n" X"$_am_arg" |
18331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18332 s//\1/
18333 q
18334 }
18335 /^X\(\/\/\)[^/].*/{
18336 s//\1/
18337 q
18338 }
18339 /^X\(\/\/\)$/{
18340 s//\1/
18341 q
18342 }
18343 /^X\(\/\).*/{
18344 s//\1/
18345 q
18346 }
18347 s/.*/./; q'`/stamp-h$_am_stamp_count
18348 ;;
18349
18350 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18351 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18352 ;;
18353 esac
18354
18355
18356 case $ac_file$ac_mode in
18357 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18358 # Older Autoconf quotes --file arguments for eval, but not when files
18359 # are listed without --file. Let's play safe and only enable the eval
18360 # if we detect the quoting.
18361 # TODO: see whether this extra hack can be removed once we start
18362 # requiring Autoconf 2.70 or later.
18363 case $CONFIG_FILES in #(
18364 *\'*) :
18365 eval set x "$CONFIG_FILES" ;; #(
18366 *) :
18367 set x $CONFIG_FILES ;; #(
18368 *) :
18369 ;;
18370 esac
18371 shift
18372 # Used to flag and report bootstrapping failures.
18373 am_rc=0
18374 for am_mf
18375 do
18376 # Strip MF so we end up with the name of the file.
18377 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18378 # Check whether this is an Automake generated Makefile which includes
18379 # dependency-tracking related rules and includes.
18380 # Grep'ing the whole file directly is not great: AIX grep has a line
18381 # limit of 2048, but all sed's we know have understand at least 4000.
18382 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18383 || continue
18384 am_dirpart=`$as_dirname -- "$am_mf" ||
18385 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18386 X"$am_mf" : 'X\(//\)[^/]' \| \
18387 X"$am_mf" : 'X\(//\)$' \| \
18388 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18389 printf "%s\n" X"$am_mf" |
18390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18391 s//\1/
18392 q
18393 }
18394 /^X\(\/\/\)[^/].*/{
18395 s//\1/
18396 q
18397 }
18398 /^X\(\/\/\)$/{
18399 s//\1/
18400 q
18401 }
18402 /^X\(\/\).*/{
18403 s//\1/
18404 q
18405 }
18406 s/.*/./; q'`
18407 am_filepart=`$as_basename -- "$am_mf" ||
18408 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18409 X"$am_mf" : 'X\(//\)$' \| \
18410 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18411 printf "%s\n" X/"$am_mf" |
18412 sed '/^.*\/\([^/][^/]*\)\/*$/{
18413 s//\1/
18414 q
18415 }
18416 /^X\/\(\/\/\)$/{
18417 s//\1/
18418 q
18419 }
18420 /^X\/\(\/\).*/{
18421 s//\1/
18422 q
18423 }
18424 s/.*/./; q'`
18425 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18426 && sed -e '/# am--include-marker/d' "$am_filepart" \
18427 | $MAKE -f - am--depfiles" >&5
18428 (cd "$am_dirpart" \
18429 && sed -e '/# am--include-marker/d' "$am_filepart" \
18430 | $MAKE -f - am--depfiles) >&5 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } || am_rc=$?
18434 done
18435 if test $am_rc -ne 0; then
18436 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18437 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18438 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18439 for automatic dependency tracking. If GNU make was not used, consider
18440 re-running the configure script with MAKE=\"gmake\" (or whatever is
18441 necessary). You can also try re-running configure with the
18442 '--disable-dependency-tracking' option to at least be able to build
18443 the package (albeit without support for automatic dependency tracking).
18444 See 'config.log' for more details" "$LINENO" 5; }
18445 fi
18446 { am_dirpart=; unset am_dirpart;}
18447 { am_filepart=; unset am_filepart;}
18448 { am_mf=; unset am_mf;}
18449 { am_rc=; unset am_rc;}
18450 rm -f conftest-deps.mk
18451 }
18452 ;;
18453 "libtool":C)
18454
18455 # See if we are running on zsh, and set the options that allow our
18456 # commands through without removal of \ escapes.
18457 if test -n "${ZSH_VERSION+set}"; then
18458 setopt NO_GLOB_SUBST
18459 fi
18460
18461 cfgfile=${ofile}T
18462 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18463 $RM "$cfgfile"
18464
18465 cat <<_LT_EOF >> "$cfgfile"
18466 #! $SHELL
18467 # Generated automatically by $as_me ($PACKAGE) $VERSION
18468 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18469
18470 # Provide generalized library-building support services.
18471 # Written by Gordon Matzigkeit, 1996
18472
18473 # Copyright (C) 2024 Free Software Foundation, Inc.
18474 # This is free software; see the source for copying conditions. There is NO
18475 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18476
18477 # GNU Libtool is free software; you can redistribute it and/or modify
18478 # it under the terms of the GNU General Public License as published by
18479 # the Free Software Foundation; either version 2 of the License, or
18480 # (at your option) any later version.
18481 #
18482 # As a special exception to the GNU General Public License, if you
18483 # distribute this file as part of a program or library that is built
18484 # using GNU Libtool, you may include this file under the same
18485 # distribution terms that you use for the rest of that program.
18486 #
18487 # GNU Libtool is distributed in the hope that it will be useful, but
18488 # WITHOUT ANY WARRANTY; without even the implied warranty of
18489 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18490 # GNU General Public License for more details.
18491 #
18492 # You should have received a copy of the GNU General Public License
18493 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18494
18495
18496 # The names of the tagged configurations supported by this script.
18497 available_tags='RC '
18498
18499 # Configured defaults for sys_lib_dlsearch_path munging.
18500 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18501
18502 # ### BEGIN LIBTOOL CONFIG
18503
18504 # Which release of libtool.m4 was used?
18505 macro_version=$macro_version
18506 macro_revision=$macro_revision
18507
18508 # Assembler program.
18509 AS=$lt_AS
18510
18511 # DLL creation program.
18512 DLLTOOL=$lt_DLLTOOL
18513
18514 # Object dumper program.
18515 OBJDUMP=$lt_OBJDUMP
18516
18517 # Whether or not to build shared libraries.
18518 build_libtool_libs=$enable_shared
18519
18520 # Whether or not to build static libraries.
18521 build_old_libs=$enable_static
18522
18523 # What type of objects to build.
18524 pic_mode=$pic_mode
18525
18526 # Whether or not to optimize for fast installation.
18527 fast_install=$enable_fast_install
18528
18529 # Shared archive member basename,for filename based shared library versioning on AIX.
18530 shared_archive_member_spec=$shared_archive_member_spec
18531
18532 # Shell to use when invoking shell scripts.
18533 SHELL=$lt_SHELL
18534
18535 # An echo program that protects backslashes.
18536 ECHO=$lt_ECHO
18537
18538 # The PATH separator for the build system.
18539 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18540
18541 # The host system.
18542 host_alias=$host_alias
18543 host=$host
18544 host_os=$host_os
18545
18546 # The build system.
18547 build_alias=$build_alias
18548 build=$build
18549 build_os=$build_os
18550
18551 # A sed program that does not truncate output.
18552 SED=$lt_SED
18553
18554 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18555 Xsed="\$SED -e 1s/^X//"
18556
18557 # A grep program that handles long lines.
18558 GREP=$lt_GREP
18559
18560 # An ERE matcher.
18561 EGREP=$lt_EGREP
18562
18563 # A literal string matcher.
18564 FGREP=$lt_FGREP
18565
18566 # A BSD- or MS-compatible name lister.
18567 NM=$lt_NM
18568
18569 # Whether we need soft or hard links.
18570 LN_S=$lt_LN_S
18571
18572 # What is the maximum length of a command?
18573 max_cmd_len=$max_cmd_len
18574
18575 # Object file suffix (normally "o").
18576 objext=$ac_objext
18577
18578 # Executable file suffix (normally "").
18579 exeext=$exeext
18580
18581 # whether the shell understands "unset".
18582 lt_unset=$lt_unset
18583
18584 # turn spaces into newlines.
18585 SP2NL=$lt_lt_SP2NL
18586
18587 # turn newlines into spaces.
18588 NL2SP=$lt_lt_NL2SP
18589
18590 # convert \$build file names to \$host format.
18591 to_host_file_cmd=$lt_cv_to_host_file_cmd
18592
18593 # convert \$build files to toolchain format.
18594 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18595
18596 # A file(cmd) program that detects file types.
18597 FILECMD=$lt_FILECMD
18598
18599 # Method to check whether dependent libraries are shared objects.
18600 deplibs_check_method=$lt_deplibs_check_method
18601
18602 # Command to use when deplibs_check_method = "file_magic".
18603 file_magic_cmd=$lt_file_magic_cmd
18604
18605 # How to find potential files when deplibs_check_method = "file_magic".
18606 file_magic_glob=$lt_file_magic_glob
18607
18608 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18609 want_nocaseglob=$lt_want_nocaseglob
18610
18611 # Command to associate shared and link libraries.
18612 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18613
18614 # The archiver.
18615 AR=$lt_AR
18616
18617 # Flags to create an archive (by configure).
18618 lt_ar_flags=$lt_ar_flags
18619
18620 # Flags to create an archive.
18621 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18622
18623 # How to feed a file listing to the archiver.
18624 archiver_list_spec=$lt_archiver_list_spec
18625
18626 # A symbol stripping program.
18627 STRIP=$lt_STRIP
18628
18629 # Commands used to install an old-style archive.
18630 RANLIB=$lt_RANLIB
18631 old_postinstall_cmds=$lt_old_postinstall_cmds
18632 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18633
18634 # Whether to use a lock for old archive extraction.
18635 lock_old_archive_extraction=$lock_old_archive_extraction
18636
18637 # A C compiler.
18638 LTCC=$lt_CC
18639
18640 # LTCC compiler flags.
18641 LTCFLAGS=$lt_CFLAGS
18642
18643 # Take the output of nm and produce a listing of raw symbols and C names.
18644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18645
18646 # Transform the output of nm in a proper C declaration.
18647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18648
18649 # Transform the output of nm into a list of symbols to manually relocate.
18650 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18651
18652 # Transform the output of nm in a C name address pair.
18653 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18654
18655 # Transform the output of nm in a C name address pair when lib prefix is needed.
18656 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18657
18658 # The name lister interface.
18659 nm_interface=$lt_lt_cv_nm_interface
18660
18661 # Specify filename containing input files for \$NM.
18662 nm_file_list_spec=$lt_nm_file_list_spec
18663
18664 # The root where to search for dependent libraries,and where our libraries should be installed.
18665 lt_sysroot=$lt_sysroot
18666
18667 # Command to truncate a binary pipe.
18668 lt_truncate_bin=$lt_lt_cv_truncate_bin
18669
18670 # The name of the directory that contains temporary libtool files.
18671 objdir=$objdir
18672
18673 # Used to examine libraries when file_magic_cmd begins with "file".
18674 MAGIC_CMD=$MAGIC_CMD
18675
18676 # Must we lock files when doing compilation?
18677 need_locks=$lt_need_locks
18678
18679 # Manifest tool.
18680 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18681
18682 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18683 DSYMUTIL=$lt_DSYMUTIL
18684
18685 # Tool to change global to local symbols on Mac OS X.
18686 NMEDIT=$lt_NMEDIT
18687
18688 # Tool to manipulate fat objects and archives on Mac OS X.
18689 LIPO=$lt_LIPO
18690
18691 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18692 OTOOL=$lt_OTOOL
18693
18694 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18695 OTOOL64=$lt_OTOOL64
18696
18697 # Old archive suffix (normally "a").
18698 libext=$libext
18699
18700 # Shared library suffix (normally ".so").
18701 shrext_cmds=$lt_shrext_cmds
18702
18703 # The commands to extract the exported symbol list from a shared archive.
18704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18705
18706 # Variables whose values should be saved in libtool wrapper scripts and
18707 # restored at link time.
18708 variables_saved_for_relink=$lt_variables_saved_for_relink
18709
18710 # Do we need the "lib" prefix for modules?
18711 need_lib_prefix=$need_lib_prefix
18712
18713 # Do we need a version for libraries?
18714 need_version=$need_version
18715
18716 # Library versioning type.
18717 version_type=$version_type
18718
18719 # Shared library runtime path variable.
18720 runpath_var=$runpath_var
18721
18722 # Shared library path variable.
18723 shlibpath_var=$shlibpath_var
18724
18725 # Is shlibpath searched before the hard-coded library search path?
18726 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18727
18728 # Format of library name prefix.
18729 libname_spec=$lt_libname_spec
18730
18731 # List of archive names. First name is the real one, the rest are links.
18732 # The last name is the one that the linker finds with -lNAME
18733 library_names_spec=$lt_library_names_spec
18734
18735 # The coded name of the library, if different from the real name.
18736 soname_spec=$lt_soname_spec
18737
18738 # Permission mode override for installation of shared libraries.
18739 install_override_mode=$lt_install_override_mode
18740
18741 # Command to use after installation of a shared archive.
18742 postinstall_cmds=$lt_postinstall_cmds
18743
18744 # Command to use after uninstallation of a shared archive.
18745 postuninstall_cmds=$lt_postuninstall_cmds
18746
18747 # Commands used to finish a libtool library installation in a directory.
18748 finish_cmds=$lt_finish_cmds
18749
18750 # As "finish_cmds", except a single script fragment to be evaled but
18751 # not shown.
18752 finish_eval=$lt_finish_eval
18753
18754 # Whether we should hardcode library paths into libraries.
18755 hardcode_into_libs=$hardcode_into_libs
18756
18757 # Compile-time system search path for libraries.
18758 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18759
18760 # Detected run-time system search path for libraries.
18761 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18762
18763 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18764 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18765
18766 # Whether dlopen is supported.
18767 dlopen_support=$enable_dlopen
18768
18769 # Whether dlopen of programs is supported.
18770 dlopen_self=$enable_dlopen_self
18771
18772 # Whether dlopen of statically linked programs is supported.
18773 dlopen_self_static=$enable_dlopen_self_static
18774
18775 # Commands to strip libraries.
18776 old_striplib=$lt_old_striplib
18777 striplib=$lt_striplib
18778
18779
18780 # The linker used to build libraries.
18781 LD=$lt_LD
18782
18783 # How to create reloadable object files.
18784 reload_flag=$lt_reload_flag
18785 reload_cmds=$lt_reload_cmds
18786
18787 # Commands used to build an old-style archive.
18788 old_archive_cmds=$lt_old_archive_cmds
18789
18790 # A language specific compiler.
18791 CC=$lt_compiler
18792
18793 # Is the compiler the GNU compiler?
18794 with_gcc=$GCC
18795
18796 # Compiler flag to turn off builtin functions.
18797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18798
18799 # Additional compiler flags for building library objects.
18800 pic_flag=$lt_lt_prog_compiler_pic
18801
18802 # How to pass a linker flag through the compiler.
18803 wl=$lt_lt_prog_compiler_wl
18804
18805 # Compiler flag to prevent dynamic linking.
18806 link_static_flag=$lt_lt_prog_compiler_static
18807
18808 # Does compiler simultaneously support -c and -o options?
18809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18810
18811 # Whether or not to add -lc for building shared libraries.
18812 build_libtool_need_lc=$archive_cmds_need_lc
18813
18814 # Whether or not to disallow shared libs when runtime libs are static.
18815 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18816
18817 # Compiler flag to allow reflexive dlopens.
18818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18819
18820 # Compiler flag to generate shared objects directly from archives.
18821 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18822
18823 # Whether the compiler copes with passing no objects directly.
18824 compiler_needs_object=$lt_compiler_needs_object
18825
18826 # Create an old-style archive from a shared archive.
18827 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18828
18829 # Create a temporary old-style archive to link instead of a shared archive.
18830 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18831
18832 # Commands used to build a shared archive.
18833 archive_cmds=$lt_archive_cmds
18834 archive_expsym_cmds=$lt_archive_expsym_cmds
18835
18836 # Commands used to build a loadable module if different from building
18837 # a shared archive.
18838 module_cmds=$lt_module_cmds
18839 module_expsym_cmds=$lt_module_expsym_cmds
18840
18841 # Whether we are building with GNU ld or not.
18842 with_gnu_ld=$lt_with_gnu_ld
18843
18844 # Flag that allows shared libraries with undefined symbols to be built.
18845 allow_undefined_flag=$lt_allow_undefined_flag
18846
18847 # Flag that enforces no undefined symbols.
18848 no_undefined_flag=$lt_no_undefined_flag
18849
18850 # Flag to hardcode \$libdir into a binary during linking.
18851 # This must work even if \$libdir does not exist
18852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18853
18854 # Whether we need a single "-rpath" flag with a separated argument.
18855 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18856
18857 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18858 # DIR into the resulting binary.
18859 hardcode_direct=$hardcode_direct
18860
18861 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18862 # DIR into the resulting binary and the resulting library dependency is
18863 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
18864 # library is relocated.
18865 hardcode_direct_absolute=$hardcode_direct_absolute
18866
18867 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18868 # into the resulting binary.
18869 hardcode_minus_L=$hardcode_minus_L
18870
18871 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18872 # into the resulting binary.
18873 hardcode_shlibpath_var=$hardcode_shlibpath_var
18874
18875 # Set to "yes" if building a shared library automatically hardcodes DIR
18876 # into the library and all subsequent libraries and executables linked
18877 # against it.
18878 hardcode_automatic=$hardcode_automatic
18879
18880 # Set to yes if linker adds runtime paths of dependent libraries
18881 # to runtime path list.
18882 inherit_rpath=$inherit_rpath
18883
18884 # Whether libtool must link a program against all its dependency libraries.
18885 link_all_deplibs=$link_all_deplibs
18886
18887 # Set to "yes" if exported symbols are required.
18888 always_export_symbols=$always_export_symbols
18889
18890 # The commands to list exported symbols.
18891 export_symbols_cmds=$lt_export_symbols_cmds
18892
18893 # Symbols that should not be listed in the preloaded symbols.
18894 exclude_expsyms=$lt_exclude_expsyms
18895
18896 # Symbols that must always be exported.
18897 include_expsyms=$lt_include_expsyms
18898
18899 # Commands necessary for linking programs (against libraries) with templates.
18900 prelink_cmds=$lt_prelink_cmds
18901
18902 # Commands necessary for finishing linking programs.
18903 postlink_cmds=$lt_postlink_cmds
18904
18905 # Specify filename containing input files.
18906 file_list_spec=$lt_file_list_spec
18907
18908 # How to hardcode a shared library path into an executable.
18909 hardcode_action=$hardcode_action
18910
18911 # ### END LIBTOOL CONFIG
18912
18913 _LT_EOF
18914
18915 cat <<'_LT_EOF' >> "$cfgfile"
18916
18917 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18918
18919 # func_munge_path_list VARIABLE PATH
18920 # -----------------------------------
18921 # VARIABLE is name of variable containing _space_ separated list of
18922 # directories to be munged by the contents of PATH, which is string
18923 # having a format:
18924 # "DIR[:DIR]:"
18925 # string "DIR[ DIR]" will be prepended to VARIABLE
18926 # ":DIR[:DIR]"
18927 # string "DIR[ DIR]" will be appended to VARIABLE
18928 # "DIRP[:DIRP]::[DIRA:]DIRA"
18929 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18930 # "DIRA[ DIRA]" will be appended to VARIABLE
18931 # "DIR[:DIR]"
18932 # VARIABLE will be replaced by "DIR[ DIR]"
18933 func_munge_path_list ()
18934 {
18935 case x$2 in
18936 x)
18937 ;;
18938 *:)
18939 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18940 ;;
18941 x:*)
18942 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18943 ;;
18944 *::*)
18945 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18946 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18947 ;;
18948 *)
18949 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18950 ;;
18951 esac
18952 }
18953
18954
18955 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18956 func_cc_basename ()
18957 {
18958 for cc_temp in $*""; do
18959 case $cc_temp in
18960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18962 \-*) ;;
18963 *) break;;
18964 esac
18965 done
18966 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18967 }
18968
18969
18970 # ### END FUNCTIONS SHARED WITH CONFIGURE
18971
18972 _LT_EOF
18973
18974 case $host_os in
18975 aix3*)
18976 cat <<\_LT_EOF >> "$cfgfile"
18977 # AIX sometimes has problems with the GCC collect2 program. For some
18978 # reason, if we set the COLLECT_NAMES environment variable, the problems
18979 # vanish in a puff of smoke.
18980 if test set != "${COLLECT_NAMES+set}"; then
18981 COLLECT_NAMES=
18982 export COLLECT_NAMES
18983 fi
18984 _LT_EOF
18985 ;;
18986 esac
18987
18988
18989
18990 ltmain=$ac_aux_dir/ltmain.sh
18991
18992
18993 # We use sed instead of cat because bash on DJGPP gets confused if
18994 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18995 # text mode, it properly converts lines to CR/LF. This bash problem
18996 # is reportedly fixed, but why not run on old versions too?
18997 $SED '$q' "$ltmain" >> "$cfgfile" \
18998 || (rm -f "$cfgfile"; exit 1)
18999
19000 mv -f "$cfgfile" "$ofile" ||
19001 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19002 chmod +x "$ofile"
19003
19004
19005 cat <<_LT_EOF >> "$ofile"
19006
19007 # ### BEGIN LIBTOOL TAG CONFIG: RC
19008
19009 # The linker used to build libraries.
19010 LD=$lt_LD_RC
19011
19012 # How to create reloadable object files.
19013 reload_flag=$lt_reload_flag_RC
19014 reload_cmds=$lt_reload_cmds_RC
19015
19016 # Commands used to build an old-style archive.
19017 old_archive_cmds=$lt_old_archive_cmds_RC
19018
19019 # A language specific compiler.
19020 CC=$lt_compiler_RC
19021
19022 # Is the compiler the GNU compiler?
19023 with_gcc=$GCC_RC
19024
19025 # Compiler flag to turn off builtin functions.
19026 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19027
19028 # Additional compiler flags for building library objects.
19029 pic_flag=$lt_lt_prog_compiler_pic_RC
19030
19031 # How to pass a linker flag through the compiler.
19032 wl=$lt_lt_prog_compiler_wl_RC
19033
19034 # Compiler flag to prevent dynamic linking.
19035 link_static_flag=$lt_lt_prog_compiler_static_RC
19036
19037 # Does compiler simultaneously support -c and -o options?
19038 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19039
19040 # Whether or not to add -lc for building shared libraries.
19041 build_libtool_need_lc=$archive_cmds_need_lc_RC
19042
19043 # Whether or not to disallow shared libs when runtime libs are static.
19044 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19045
19046 # Compiler flag to allow reflexive dlopens.
19047 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19048
19049 # Compiler flag to generate shared objects directly from archives.
19050 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19051
19052 # Whether the compiler copes with passing no objects directly.
19053 compiler_needs_object=$lt_compiler_needs_object_RC
19054
19055 # Create an old-style archive from a shared archive.
19056 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19057
19058 # Create a temporary old-style archive to link instead of a shared archive.
19059 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19060
19061 # Commands used to build a shared archive.
19062 archive_cmds=$lt_archive_cmds_RC
19063 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19064
19065 # Commands used to build a loadable module if different from building
19066 # a shared archive.
19067 module_cmds=$lt_module_cmds_RC
19068 module_expsym_cmds=$lt_module_expsym_cmds_RC
19069
19070 # Whether we are building with GNU ld or not.
19071 with_gnu_ld=$lt_with_gnu_ld_RC
19072
19073 # Flag that allows shared libraries with undefined symbols to be built.
19074 allow_undefined_flag=$lt_allow_undefined_flag_RC
19075
19076 # Flag that enforces no undefined symbols.
19077 no_undefined_flag=$lt_no_undefined_flag_RC
19078
19079 # Flag to hardcode \$libdir into a binary during linking.
19080 # This must work even if \$libdir does not exist
19081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19082
19083 # Whether we need a single "-rpath" flag with a separated argument.
19084 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19085
19086 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19087 # DIR into the resulting binary.
19088 hardcode_direct=$hardcode_direct_RC
19089
19090 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19091 # DIR into the resulting binary and the resulting library dependency is
19092 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19093 # library is relocated.
19094 hardcode_direct_absolute=$hardcode_direct_absolute_RC
19095
19096 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19097 # into the resulting binary.
19098 hardcode_minus_L=$hardcode_minus_L_RC
19099
19100 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19101 # into the resulting binary.
19102 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19103
19104 # Set to "yes" if building a shared library automatically hardcodes DIR
19105 # into the library and all subsequent libraries and executables linked
19106 # against it.
19107 hardcode_automatic=$hardcode_automatic_RC
19108
19109 # Set to yes if linker adds runtime paths of dependent libraries
19110 # to runtime path list.
19111 inherit_rpath=$inherit_rpath_RC
19112
19113 # Whether libtool must link a program against all its dependency libraries.
19114 link_all_deplibs=$link_all_deplibs_RC
19115
19116 # Set to "yes" if exported symbols are required.
19117 always_export_symbols=$always_export_symbols_RC
19118
19119 # The commands to list exported symbols.
19120 export_symbols_cmds=$lt_export_symbols_cmds_RC
19121
19122 # Symbols that should not be listed in the preloaded symbols.
19123 exclude_expsyms=$lt_exclude_expsyms_RC
19124
19125 # Symbols that must always be exported.
19126 include_expsyms=$lt_include_expsyms_RC
19127
19128 # Commands necessary for linking programs (against libraries) with templates.
19129 prelink_cmds=$lt_prelink_cmds_RC
19130
19131 # Commands necessary for finishing linking programs.
19132 postlink_cmds=$lt_postlink_cmds_RC
19133
19134 # Specify filename containing input files.
19135 file_list_spec=$lt_file_list_spec_RC
19136
19137 # How to hardcode a shared library path into an executable.
19138 hardcode_action=$hardcode_action_RC
19139
19140 # ### END LIBTOOL TAG CONFIG: RC
19141 _LT_EOF
19142
19143 ;;
19144
19145 esac
19146 done # for ac_tag
19147
19148
19149 as_fn_exit 0
19150 _ACEOF
19151 ac_clean_files=$ac_clean_files_save
19152
19153 test $ac_write_fail = 0 ||
19154 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19155
19156
19157 # configure is writing to config.log, and then calls config.status.
19158 # config.status does its own redirection, appending to config.log.
19159 # Unfortunately, on DOS this fails, as config.log is still kept open
19160 # by configure, so config.status won't be able to write to it; its
19161 # output is simply discarded. So we exec the FD to /dev/null,
19162 # effectively closing config.log, so it can be properly (re)opened and
19163 # appended to by config.status. When coming back to configure, we
19164 # need to make the FD available again.
19165 if test "$no_create" != yes; then
19166 ac_cs_success=:
19167 ac_config_status_args=
19168 test "$silent" = yes &&
19169 ac_config_status_args="$ac_config_status_args --quiet"
19170 exec 5>/dev/null
19171 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19172 exec 5>>config.log
19173 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19174 # would make configure fail if this is the last instruction.
19175 $ac_cs_success || as_fn_exit 1
19176 fi
19177 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19179 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19180 fi
19181
19182
19183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating src/libp11.map" >&5
19184 printf "%s\n" "$as_me: creating src/libp11.map" >&6;}
19185 # We do it *after* the src directory is created
19186 rm -f src/libp11.map
19187 echo "LIBP11_${LIBP11_LT_OLDEST}" >src/libp11.map
19188 echo "{" >>src/libp11.map
19189 echo "global:" >>src/libp11.map
19190 tr '\n' ';' <$srcdir/src/libp11.exports >>src/libp11.map
19191 echo "" >>src/libp11.map
19192 echo "local:" >>src/libp11.map
19193 echo '*;' >>src/libp11.map
19194 echo "};" >>src/libp11.map
19195 chmod ugo-w src/libp11.map
19196
19197 cat <<EOF
19198
19199 libp11 has been configured with the following options:
19200
19201 Version: ${PACKAGE_VERSION}
19202 libp11 directory: $(eval eval eval echo "${libdir}")
19203 Engine directory: ${enginesexecdir}
19204 Provider directory: ${providersexecdir}
19205 Default PKCS11 module: ${pkcs11_module}
19206 API doc support: ${enable_api_doc}
19207 Static PKCS#11 engine ${enable_static_engine}
19208
19209 Host: ${host}
19210 Compiler: ${CC}
19211 Preprocessor flags: ${CPPFLAGS}
19212 Compiler flags: ${CFLAGS}
19213 Linker flags: ${LDFLAGS}
19214 Libraries: ${LIBS}
19215
19216 OPENSSL_CFLAGS: ${OPENSSL_CFLAGS}
19217 OPENSSL_LIBS: ${OPENSSL_LIBS}
19218
19219 EOF
19220
19221 # vim: set noexpandtab:
19222