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 pam_mount 2.22.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='pam_mount'
613 PACKAGE_TARNAME='pam_mount'
614 PACKAGE_VERSION='2.22'
615 PACKAGE_STRING='pam_mount 2.22'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_subst_vars='am__EXEEXT_FALSE
652 am__EXEEXT_TRUE
653 LTLIBOBJS
654 LIBOBJS
655 PACKAGE_RELDATE
656 PAM_MODDIR
657 HAVE_LIBCRYPTSETUP_FALSE
658 HAVE_LIBCRYPTSETUP_TRUE
659 libcryptsetup_LIBS
660 libcryptsetup_CFLAGS
661 HAVE_LIBCRYPTO_FALSE
662 HAVE_LIBCRYPTO_TRUE
663 libcrypto_LIBS
664 libcrypto_CFLAGS
665 libpcre2_LIBS
666 libpcre2_CFLAGS
667 libxml_LIBS
668 libxml_CFLAGS
669 libmount_LIBS
670 libmount_CFLAGS
671 libHX_LIBS
672 libHX_CFLAGS
673 PKG_CONFIG_LIBDIR
674 PKG_CONFIG_PATH
675 PKG_CONFIG
676 HAVE_VND_FALSE
677 HAVE_VND_TRUE
678 HAVE_MDIO_FALSE
679 HAVE_MDIO_TRUE
680 HAVE_CGD_FALSE
681 HAVE_CGD_TRUE
682 regular_CFLAGS
683 regular_CPPFLAGS
684 GCC_FVISIBILITY_HIDDEN
685 WITH_DTD_FALSE
686 WITH_DTD_TRUE
687 SELINUX_FALSE
688 SELINUX_TRUE
689 KEEP_LA_FALSE
690 KEEP_LA_TRUE
691 rundir
692 slibdir
693 LT_SYS_LIBRARY_PATH
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 MANIFEST_TOOL
700 RANLIB
701 DLLTOOL
702 OBJDUMP
703 FILECMD
704 LN_S
705 NM
706 ac_ct_DUMPBIN
707 DUMPBIN
708 LD
709 FGREP
710 EGREP
711 GREP
712 SED
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 LIBTOOL
722 ac_ct_AR
723 AR
724 am__fastdepCC_FALSE
725 am__fastdepCC_TRUE
726 CCDEPMODE
727 am__nodep
728 AMDEPBACKSLASH
729 AMDEP_FALSE
730 AMDEP_TRUE
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 am__xargs_n
741 am__rm_f_notfound
742 AM_BACKSLASH
743 AM_DEFAULT_VERBOSITY
744 AM_DEFAULT_V
745 AM_V
746 CSCOPE
747 ETAGS
748 CTAGS
749 am__untar
750 am__tar
751 AMTAR
752 am__leading_dot
753 SET_MAKE
754 AWK
755 mkdir_p
756 MKDIR_P
757 INSTALL_STRIP_PROGRAM
758 STRIP
759 install_sh
760 MAKEINFO
761 AUTOHEADER
762 AUTOMAKE
763 AUTOCONF
764 ACLOCAL
765 VERSION
766 PACKAGE
767 CYGPATH_W
768 am__isrc
769 INSTALL_DATA
770 INSTALL_SCRIPT
771 INSTALL_PROGRAM
772 target_alias
773 host_alias
774 build_alias
775 LIBS
776 ECHO_T
777 ECHO_N
778 ECHO_C
779 DEFS
780 mandir
781 localedir
782 libdir
783 psdir
784 pdfdir
785 dvidir
786 htmldir
787 infodir
788 docdir
789 oldincludedir
790 includedir
791 runstatedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL
811 am__quote'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_silent_rules
816 enable_dependency_tracking
817 enable_static
818 enable_shared
819 enable_pic
820 with_pic
821 enable_fast_install
822 enable_aix_soname
823 with_aix_soname
824 with_gnu_ld
825 with_sysroot
826 enable_libtool_lock
827 with_slibdir
828 with_rundir
829 with_dtd
830 with_selinux
831 enable_la
832 with_crypto
833 with_cryptsetup
834 '
835 ac_precious_vars='build_alias
836 host_alias
837 target_alias
838 CC
839 CFLAGS
840 LDFLAGS
841 LIBS
842 CPPFLAGS
843 LT_SYS_LIBRARY_PATH
844 PKG_CONFIG
845 PKG_CONFIG_PATH
846 PKG_CONFIG_LIBDIR
847 libHX_CFLAGS
848 libHX_LIBS
849 libmount_CFLAGS
850 libmount_LIBS
851 libxml_CFLAGS
852 libxml_LIBS
853 libpcre2_CFLAGS
854 libpcre2_LIBS
855 libcrypto_CFLAGS
856 libcrypto_LIBS
857 libcryptsetup_CFLAGS
858 libcryptsetup_LIBS'
859
860
861 # Initialize some variables set by options.
862 ac_init_help=
863 ac_init_version=false
864 ac_unrecognized_opts=
865 ac_unrecognized_sep=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
882
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 runstatedir='${localstatedir}/run'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir='${datarootdir}/info'
902 htmldir='${docdir}'
903 dvidir='${docdir}'
904 pdfdir='${docdir}'
905 psdir='${docdir}'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
909
910 ac_prev=
911 ac_dashdash=
912 for ac_option
913 do
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\$ac_option
917 ac_prev=
918 continue
919 fi
920
921 case $ac_option in
922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 *=) ac_optarg= ;;
924 *) ac_optarg=yes ;;
925 esac
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: '$ac_useropt'"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: '$ac_useropt'"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -runstatedir | --runstatedir | --runstatedi | --runstated \
1149 | --runstate | --runstat | --runsta | --runst | --runs \
1150 | --run | --ru | --r)
1151 ac_prev=runstatedir ;;
1152 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1153 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1154 | --run=* | --ru=* | --r=*)
1155 runstatedir=$ac_optarg ;;
1156
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158 ac_prev=sbindir ;;
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160 | --sbi=* | --sb=*)
1161 sbindir=$ac_optarg ;;
1162
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1166 | --sha | --sh)
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171 | --sha=* | --sh=*)
1172 sharedstatedir=$ac_optarg ;;
1173
1174 -site | --site | --sit)
1175 ac_prev=site ;;
1176 -site=* | --site=* | --sit=*)
1177 site=$ac_optarg ;;
1178
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180 ac_prev=srcdir ;;
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1183
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1190
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1195
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 verbose=yes ;;
1198
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1201
1202 -with-* | --with-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: '$ac_useropt'"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211 "with_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=\$ac_optarg ;;
1217
1218 -without-* | --without-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error $? "invalid package name: '$ac_useropt'"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1226 *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=no ;;
1233
1234 --x)
1235 # Obsolete; use --with-x.
1236 with_x=yes ;;
1237
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1244
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1251
1252 -*) as_fn_error $? "unrecognized option: '$ac_option'
1253 Try '$0 --help' for more information"
1254 ;;
1255
1256 *=*)
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 case $ac_envvar in #(
1260 '' | [0-9]* | *[!_$as_cr_alnum]* )
1261 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1262 esac
1263 eval $ac_envvar=\$ac_optarg
1264 export $ac_envvar ;;
1265
1266 *)
1267 # FIXME: should be removed in autoconf 3.0.
1268 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272 ;;
1273
1274 esac
1275 done
1276
1277 if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 as_fn_error $? "missing argument to $ac_option"
1280 fi
1281
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1284 no) ;;
1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1286 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287 esac
1288 fi
1289
1290 # Check all directory arguments for consistency.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir runstatedir
1295 do
1296 eval ac_val=\$$ac_var
1297 # Remove trailing slashes.
1298 case $ac_val in
1299 */ )
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1302 esac
1303 # Be sure to have absolute directory names.
1304 case $ac_val in
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 esac
1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1309 done
1310
1311 # There might be people who depend on the old broken behavior: '$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325 fi
1326
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330 test "$silent" = yes && exec 6>/dev/null
1331
1332
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 as_fn_error $? "working directory cannot be determined"
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 as_fn_error $? "pwd does not report name of working directory"
1339
1340
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 printf "%s\n" X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\).*/{
1364 s//\1/
1365 q
1366 }
1367 s/.*/./; q'`
1368 srcdir=$ac_confdir
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 srcdir=..
1371 fi
1372 else
1373 ac_srcdir_defaulted=no
1374 fi
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1378 fi
1379 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1380 ac_abs_confdir=`(
1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1382 pwd)`
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 srcdir=.
1386 fi
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1390 case $srcdir in
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 esac
1393 for ac_var in $ac_precious_vars; do
1394 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_${ac_var}_value=\$${ac_var}
1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 done
1399
1400 #
1401 # Report the --help message.
1402 #
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1406 cat <<_ACEOF
1407 'configure' configures pam_mount 2.22 to adapt to many kinds of systems.
1408
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1413
1414 Defaults for the options are specified in brackets.
1415
1416 Configuration:
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print 'checking ...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for '--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or '..']
1426
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1431 [PREFIX]
1432
1433 By default, 'make install' will install all the files in
1434 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than '$ac_default_prefix' using '--prefix',
1436 for instance '--prefix=\$HOME'.
1437
1438 For better control, use the options below.
1439
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root [DATAROOTDIR/doc/pam_mount]
1457 --htmldir=DIR html documentation [DOCDIR]
1458 --dvidir=DIR dvi documentation [DOCDIR]
1459 --pdfdir=DIR pdf documentation [DOCDIR]
1460 --psdir=DIR ps documentation [DOCDIR]
1461 _ACEOF
1462
1463 cat <<\_ACEOF
1464
1465 Program names:
1466 --program-prefix=PREFIX prepend PREFIX to installed program names
1467 --program-suffix=SUFFIX append SUFFIX to installed program names
1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1469
1470 System types:
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of pam_mount 2.22:";;
1479 esac
1480 cat <<\_ACEOF
1481
1482 Optional Features:
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --enable-silent-rules less verbose build output (undo: "make V=1")
1487 --disable-silent-rules verbose build output (undo: "make V=0")
1488 --enable-dependency-tracking
1489 do not reject slow dependency extractors
1490 --disable-dependency-tracking
1491 speeds up one-time build
1492 --enable-static[=PKGS] build static libraries [default=no]
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1495 both]
1496 --enable-fast-install[=PKGS]
1497 optimize for fast installation [default=yes]
1498 --enable-aix-soname=aix|svr4|both
1499 shared library versioning (aka "SONAME") variant to
1500 provide on AIX, [default=aix].
1501 --disable-libtool-lock avoid locking (might break parallel builds)
1502 --enable-la Install .la file (used for distcheck)
1503
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1509 compiler's sysroot if not specified).
1510 --with-slibdir=PATH Path to the super lib directory [[/lib]]
1511 --with-rundir=PATH Path to the run directory [[/run]]
1512 --with-dtd Install XML DTD file
1513 --with-selinux Install selinux files
1514 --without-crypto Disable use of OpenSSL cryptography
1515 --without-cryptsetup Disable use of libcryptsetup
1516
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 LT_SYS_LIBRARY_PATH
1526 User-defined run-time library search path.
1527 PKG_CONFIG path to pkg-config utility
1528 PKG_CONFIG_PATH
1529 directories to add to pkg-config's search path
1530 PKG_CONFIG_LIBDIR
1531 path overriding pkg-config's built-in search path
1532 libHX_CFLAGS
1533 C compiler flags for libHX, overriding pkg-config
1534 libHX_LIBS linker flags for libHX, overriding pkg-config
1535 libmount_CFLAGS
1536 C compiler flags for libmount, overriding pkg-config
1537 libmount_LIBS
1538 linker flags for libmount, overriding pkg-config
1539 libxml_CFLAGS
1540 C compiler flags for libxml, overriding pkg-config
1541 libxml_LIBS linker flags for libxml, overriding pkg-config
1542 libpcre2_CFLAGS
1543 C compiler flags for libpcre2, overriding pkg-config
1544 libpcre2_LIBS
1545 linker flags for libpcre2, overriding pkg-config
1546 libcrypto_CFLAGS
1547 C compiler flags for libcrypto, overriding pkg-config
1548 libcrypto_LIBS
1549 linker flags for libcrypto, overriding pkg-config
1550 libcryptsetup_CFLAGS
1551 C compiler flags for libcryptsetup, overriding pkg-config
1552 libcryptsetup_LIBS
1553 linker flags for libcryptsetup, overriding pkg-config
1554
1555 Use these variables to override the choices made by 'configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1557
1558 Report bugs to the package provider.
1559 _ACEOF
1560 ac_status=$?
1561 fi
1562
1563 if test "$ac_init_help" = "recursive"; then
1564 # If there are subdirs, report their specific --help.
1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566 test -d "$ac_dir" ||
1567 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1568 continue
1569 ac_builddir=.
1570
1571 case "$ac_dir" in
1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *)
1574 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1575 # A ".." for each directory in $ac_dir_suffix.
1576 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577 case $ac_top_builddir_sub in
1578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580 esac ;;
1581 esac
1582 ac_abs_top_builddir=$ac_pwd
1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584 # for backward compatibility:
1585 ac_top_builddir=$ac_top_build_prefix
1586
1587 case $srcdir in
1588 .) # We are building in place.
1589 ac_srcdir=.
1590 ac_top_srcdir=$ac_top_builddir_sub
1591 ac_abs_top_srcdir=$ac_pwd ;;
1592 [\\/]* | ?:[\\/]* ) # Absolute name.
1593 ac_srcdir=$srcdir$ac_dir_suffix;
1594 ac_top_srcdir=$srcdir
1595 ac_abs_top_srcdir=$srcdir ;;
1596 *) # Relative name.
1597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598 ac_top_srcdir=$ac_top_build_prefix$srcdir
1599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600 esac
1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602
1603 cd "$ac_dir" || { ac_status=$?; continue; }
1604 # Check for configure.gnu first; this name is used for a wrapper for
1605 # Metaconfig's "Configure" on case-insensitive file systems.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1612 else
1613 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614 fi || ac_status=$?
1615 cd "$ac_pwd" || { ac_status=$?; break; }
1616 done
1617 fi
1618
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1621 cat <<\_ACEOF
1622 pam_mount configure 2.22
1623 generated by GNU Autoconf 2.72
1624
1625 Copyright (C) 2023 Free Software Foundation, Inc.
1626 This configure script is free software; the Free Software Foundation
1627 gives unlimited permission to copy, distribute and modify it.
1628 _ACEOF
1629 exit
1630 fi
1631
1632 ## ------------------------ ##
1633 ## Autoconf initialization. ##
1634 ## ------------------------ ##
1635
1636 # ac_fn_c_try_compile LINENO
1637 # --------------------------
1638 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_compile ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext conftest.beam
1643 if { { ac_try="$ac_compile"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 printf "%s\n" "$ac_try_echo"; } >&5
1650 (eval "$ac_compile") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext
1662 then :
1663 ac_retval=0
1664 else case e in #(
1665 e) printf "%s\n" "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1 ;;
1669 esac
1670 fi
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_compile
1675
1676 # ac_fn_c_try_link LINENO
1677 # -----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_link ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1683 if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 printf "%s\n" "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest$ac_exeext && {
1702 test "$cross_compiling" = yes ||
1703 test -x conftest$ac_exeext
1704 }
1705 then :
1706 ac_retval=0
1707 else case e in #(
1708 e) printf "%s\n" "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1 ;;
1712 esac
1713 fi
1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716 # interfere with the next link command; also delete a directory that is
1717 # left behind by Apple's compiler. We do this before executing the actions.
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_link
1723
1724 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1725 # -------------------------------------------------------
1726 # Tests whether HEADER exists and can be compiled using the include files in
1727 # INCLUDES, setting the cache variable VAR accordingly.
1728 ac_fn_c_check_header_compile ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 printf %s "checking for $2... " >&6; }
1733 if eval test \${$3+y}
1734 then :
1735 printf %s "(cached) " >&6
1736 else case e in #(
1737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 $4
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_compile "$LINENO"
1743 then :
1744 eval "$3=yes"
1745 else case e in #(
1746 e) eval "$3=no" ;;
1747 esac
1748 fi
1749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1750 esac
1751 fi
1752 eval ac_res=\$$3
1753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 printf "%s\n" "$ac_res" >&6; }
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757 } # ac_fn_c_check_header_compile
1758
1759 # ac_fn_c_check_func LINENO FUNC VAR
1760 # ----------------------------------
1761 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1762 ac_fn_c_check_func ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 printf %s "checking for $2... " >&6; }
1767 if eval test \${$3+y}
1768 then :
1769 printf %s "(cached) " >&6
1770 else case e in #(
1771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1773 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1775 #define $2 innocuous_$2
1776
1777 /* System header to define __stub macros and hopefully few prototypes,
1778 which can conflict with char $2 (void); below. */
1779
1780 #include <limits.h>
1781 #undef $2
1782
1783 /* Override any GCC internal prototype to avoid an error.
1784 Use char because int might match the return type of a GCC
1785 builtin and then its argument prototype would still apply. */
1786 #ifdef __cplusplus
1787 extern "C"
1788 #endif
1789 char $2 (void);
1790 /* The GNU C library defines this for functions which it implements
1791 to always fail with ENOSYS. Some functions are actually named
1792 something starting with __ and the normal name is an alias. */
1793 #if defined __stub_$2 || defined __stub___$2
1794 choke me
1795 #endif
1796
1797 int
1798 main (void)
1799 {
1800 return $2 ();
1801 ;
1802 return 0;
1803 }
1804 _ACEOF
1805 if ac_fn_c_try_link "$LINENO"
1806 then :
1807 eval "$3=yes"
1808 else case e in #(
1809 e) eval "$3=no" ;;
1810 esac
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1813 conftest$ac_exeext conftest.$ac_ext ;;
1814 esac
1815 fi
1816 eval ac_res=\$$3
1817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 printf "%s\n" "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821 } # ac_fn_c_check_func
1822
1823 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1824 # ----------------------------------------------------
1825 # Tries to find if the field MEMBER exists in type AGGR, after including
1826 # INCLUDES, setting cache variable VAR accordingly.
1827 ac_fn_c_check_member ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1831 printf %s "checking for $2.$3... " >&6; }
1832 if eval test \${$4+y}
1833 then :
1834 printf %s "(cached) " >&6
1835 else case e in #(
1836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 $5
1839 int
1840 main (void)
1841 {
1842 static $2 ac_aggr;
1843 if (ac_aggr.$3)
1844 return 0;
1845 ;
1846 return 0;
1847 }
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"
1850 then :
1851 eval "$4=yes"
1852 else case e in #(
1853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 $5
1856 int
1857 main (void)
1858 {
1859 static $2 ac_aggr;
1860 if (sizeof ac_aggr.$3)
1861 return 0;
1862 ;
1863 return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"
1867 then :
1868 eval "$4=yes"
1869 else case e in #(
1870 e) eval "$4=no" ;;
1871 esac
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1874 esac
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1877 esac
1878 fi
1879 eval ac_res=\$$4
1880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 printf "%s\n" "$ac_res" >&6; }
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884 } # ac_fn_c_check_member
1885 ac_configure_args_raw=
1886 for ac_arg
1887 do
1888 case $ac_arg in
1889 *\'*)
1890 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1891 esac
1892 as_fn_append ac_configure_args_raw " '$ac_arg'"
1893 done
1894
1895 case $ac_configure_args_raw in
1896 *$as_nl*)
1897 ac_safe_unquote= ;;
1898 *)
1899 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1900 ac_unsafe_a="$ac_unsafe_z#~"
1901 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1902 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1903 esac
1904
1905 cat >config.log <<_ACEOF
1906 This file contains any messages produced by compilers while
1907 running configure, to aid debugging if configure makes a mistake.
1908
1909 It was created by pam_mount $as_me 2.22, which was
1910 generated by GNU Autoconf 2.72. Invocation command line was
1911
1912 $ $0$ac_configure_args_raw
1913
1914 _ACEOF
1915 exec 5>>config.log
1916 {
1917 cat <<_ASUNAME
1918 ## --------- ##
1919 ## Platform. ##
1920 ## --------- ##
1921
1922 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1923 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1924 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1925 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1926 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1927
1928 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1929 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1930
1931 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1932 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1933 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1934 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1935 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1936 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1937 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1938
1939 _ASUNAME
1940
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 for as_dir in $PATH
1943 do
1944 IFS=$as_save_IFS
1945 case $as_dir in #(((
1946 '') as_dir=./ ;;
1947 */) ;;
1948 *) as_dir=$as_dir/ ;;
1949 esac
1950 printf "%s\n" "PATH: $as_dir"
1951 done
1952 IFS=$as_save_IFS
1953
1954 } >&5
1955
1956 cat >&5 <<_ACEOF
1957
1958
1959 ## ----------- ##
1960 ## Core tests. ##
1961 ## ----------- ##
1962
1963 _ACEOF
1964
1965
1966 # Keep a trace of the command line.
1967 # Strip out --no-create and --no-recursion so they do not pile up.
1968 # Strip out --silent because we don't want to record it for future runs.
1969 # Also quote any args containing shell meta-characters.
1970 # Make two passes to allow for proper duplicate-argument suppression.
1971 ac_configure_args=
1972 ac_configure_args0=
1973 ac_configure_args1=
1974 ac_must_keep_next=false
1975 for ac_pass in 1 2
1976 do
1977 for ac_arg
1978 do
1979 case $ac_arg in
1980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1982 | -silent | --silent | --silen | --sile | --sil)
1983 continue ;;
1984 *\'*)
1985 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1986 esac
1987 case $ac_pass in
1988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989 2)
1990 as_fn_append ac_configure_args1 " '$ac_arg'"
1991 if test $ac_must_keep_next = true; then
1992 ac_must_keep_next=false # Got value, back to normal.
1993 else
1994 case $ac_arg in
1995 *=* | --config-cache | -C | -disable-* | --disable-* \
1996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1998 | -with-* | --with-* | -without-* | --without-* | --x)
1999 case "$ac_configure_args0 " in
2000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2001 esac
2002 ;;
2003 -* ) ac_must_keep_next=true ;;
2004 esac
2005 fi
2006 as_fn_append ac_configure_args " '$ac_arg'"
2007 ;;
2008 esac
2009 done
2010 done
2011 { ac_configure_args0=; unset ac_configure_args0;}
2012 { ac_configure_args1=; unset ac_configure_args1;}
2013
2014 # When interrupted or exit'd, cleanup temporary files, and complete
2015 # config.log. We remove comments because anyway the quotes in there
2016 # would cause problems or look ugly.
2017 # WARNING: Use '\'' to represent an apostrophe within the trap.
2018 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2019 trap 'exit_status=$?
2020 # Sanitize IFS.
2021 IFS=" "" $as_nl"
2022 # Save into config.log some information that might help in debugging.
2023 {
2024 echo
2025
2026 printf "%s\n" "## ---------------- ##
2027 ## Cache variables. ##
2028 ## ---------------- ##"
2029 echo
2030 # The following way of writing the cache mishandles newlines in values,
2031 (
2032 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2033 eval ac_val=\$$ac_var
2034 case $ac_val in #(
2035 *${as_nl}*)
2036 case $ac_var in #(
2037 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2038 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2039 esac
2040 case $ac_var in #(
2041 _ | IFS | as_nl) ;; #(
2042 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2043 *) { eval $ac_var=; unset $ac_var;} ;;
2044 esac ;;
2045 esac
2046 done
2047 (set) 2>&1 |
2048 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2049 *${as_nl}ac_space=\ *)
2050 sed -n \
2051 "s/'\''/'\''\\\\'\'''\''/g;
2052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2053 ;; #(
2054 *)
2055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2056 ;;
2057 esac |
2058 sort
2059 )
2060 echo
2061
2062 printf "%s\n" "## ----------------- ##
2063 ## Output variables. ##
2064 ## ----------------- ##"
2065 echo
2066 for ac_var in $ac_subst_vars
2067 do
2068 eval ac_val=\$$ac_var
2069 case $ac_val in
2070 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071 esac
2072 printf "%s\n" "$ac_var='\''$ac_val'\''"
2073 done | sort
2074 echo
2075
2076 if test -n "$ac_subst_files"; then
2077 printf "%s\n" "## ------------------- ##
2078 ## File substitutions. ##
2079 ## ------------------- ##"
2080 echo
2081 for ac_var in $ac_subst_files
2082 do
2083 eval ac_val=\$$ac_var
2084 case $ac_val in
2085 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2086 esac
2087 printf "%s\n" "$ac_var='\''$ac_val'\''"
2088 done | sort
2089 echo
2090 fi
2091
2092 if test -s confdefs.h; then
2093 printf "%s\n" "## ----------- ##
2094 ## confdefs.h. ##
2095 ## ----------- ##"
2096 echo
2097 cat confdefs.h
2098 echo
2099 fi
2100 test "$ac_signal" != 0 &&
2101 printf "%s\n" "$as_me: caught signal $ac_signal"
2102 printf "%s\n" "$as_me: exit $exit_status"
2103 } >&5
2104 rm -f core *.core core.conftest.* &&
2105 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2106 exit $exit_status
2107 ' 0
2108 for ac_signal in 1 2 13 15; do
2109 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2110 done
2111 ac_signal=0
2112
2113 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2114 rm -f -r conftest* confdefs.h
2115
2116 printf "%s\n" "/* confdefs.h */" > confdefs.h
2117
2118 # Predefined preprocessor variables.
2119
2120 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2121
2122 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2123
2124 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2125
2126 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2127
2128 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2129
2130 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2131
2132
2133 # Let the site file select an alternate cache file if it wants to.
2134 # Prefer an explicitly selected file to automatically selected ones.
2135 if test -n "$CONFIG_SITE"; then
2136 ac_site_files="$CONFIG_SITE"
2137 elif test "x$prefix" != xNONE; then
2138 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2139 else
2140 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2141 fi
2142
2143 for ac_site_file in $ac_site_files
2144 do
2145 case $ac_site_file in #(
2146 */*) :
2147 ;; #(
2148 *) :
2149 ac_site_file=./$ac_site_file ;;
2150 esac
2151 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2153 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2154 sed 's/^/| /' "$ac_site_file" >&5
2155 . "$ac_site_file" \
2156 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2157 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2158 as_fn_error $? "failed to load site script $ac_site_file
2159 See 'config.log' for more details" "$LINENO" 5; }
2160 fi
2161 done
2162
2163 if test -r "$cache_file"; then
2164 # Some versions of bash will fail to source /dev/null (special files
2165 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2166 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2168 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2169 case $cache_file in
2170 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2171 *) . "./$cache_file";;
2172 esac
2173 fi
2174 else
2175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2176 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2177 >$cache_file
2178 fi
2179
2180 # Test code for whether the C compiler supports C89 (global declarations)
2181 ac_c_conftest_c89_globals='
2182 /* Does the compiler advertise C89 conformance?
2183 Do not test the value of __STDC__, because some compilers set it to 0
2184 while being otherwise adequately conformant. */
2185 #if !defined __STDC__
2186 # error "Compiler does not advertise C89 conformance"
2187 #endif
2188
2189 #include <stddef.h>
2190 #include <stdarg.h>
2191 struct stat;
2192 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2193 struct buf { int x; };
2194 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2195 static char *e (char **p, int i)
2196 {
2197 return p[i];
2198 }
2199 static char *f (char * (*g) (char **, int), char **p, ...)
2200 {
2201 char *s;
2202 va_list v;
2203 va_start (v,p);
2204 s = g (p, va_arg (v,int));
2205 va_end (v);
2206 return s;
2207 }
2208
2209 /* C89 style stringification. */
2210 #define noexpand_stringify(a) #a
2211 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2212
2213 /* C89 style token pasting. Exercises some of the corner cases that
2214 e.g. old MSVC gets wrong, but not very hard. */
2215 #define noexpand_concat(a,b) a##b
2216 #define expand_concat(a,b) noexpand_concat(a,b)
2217 extern int vA;
2218 extern int vbee;
2219 #define aye A
2220 #define bee B
2221 int *pvA = &expand_concat(v,aye);
2222 int *pvbee = &noexpand_concat(v,bee);
2223
2224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2225 function prototypes and stuff, but not \xHH hex character constants.
2226 These do not provoke an error unfortunately, instead are silently treated
2227 as an "x". The following induces an error, until -std is added to get
2228 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2229 array size at least. It is necessary to write \x00 == 0 to get something
2230 that is true only with -std. */
2231 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2232
2233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2234 inside strings and character constants. */
2235 #define FOO(x) '\''x'\''
2236 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2237
2238 int test (int i, double x);
2239 struct s1 {int (*f) (int a);};
2240 struct s2 {int (*f) (double a);};
2241 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2242 int, int);'
2243
2244 # Test code for whether the C compiler supports C89 (body of main).
2245 ac_c_conftest_c89_main='
2246 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2247 '
2248
2249 # Test code for whether the C compiler supports C99 (global declarations)
2250 ac_c_conftest_c99_globals='
2251 /* Does the compiler advertise C99 conformance? */
2252 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2253 # error "Compiler does not advertise C99 conformance"
2254 #endif
2255
2256 // See if C++-style comments work.
2257
2258 #include <stdbool.h>
2259 extern int puts (const char *);
2260 extern int printf (const char *, ...);
2261 extern int dprintf (int, const char *, ...);
2262 extern void *malloc (size_t);
2263 extern void free (void *);
2264
2265 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2266 // dprintf is used instead of fprintf to avoid needing to declare
2267 // FILE and stderr.
2268 #define debug(...) dprintf (2, __VA_ARGS__)
2269 #define showlist(...) puts (#__VA_ARGS__)
2270 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2271 static void
2272 test_varargs_macros (void)
2273 {
2274 int x = 1234;
2275 int y = 5678;
2276 debug ("Flag");
2277 debug ("X = %d\n", x);
2278 showlist (The first, second, and third items.);
2279 report (x>y, "x is %d but y is %d", x, y);
2280 }
2281
2282 // Check long long types.
2283 #define BIG64 18446744073709551615ull
2284 #define BIG32 4294967295ul
2285 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2286 #if !BIG_OK
2287 #error "your preprocessor is broken"
2288 #endif
2289 #if BIG_OK
2290 #else
2291 #error "your preprocessor is broken"
2292 #endif
2293 static long long int bignum = -9223372036854775807LL;
2294 static unsigned long long int ubignum = BIG64;
2295
2296 struct incomplete_array
2297 {
2298 int datasize;
2299 double data[];
2300 };
2301
2302 struct named_init {
2303 int number;
2304 const wchar_t *name;
2305 double average;
2306 };
2307
2308 typedef const char *ccp;
2309
2310 static inline int
2311 test_restrict (ccp restrict text)
2312 {
2313 // Iterate through items via the restricted pointer.
2314 // Also check for declarations in for loops.
2315 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2316 continue;
2317 return 0;
2318 }
2319
2320 // Check varargs and va_copy.
2321 static bool
2322 test_varargs (const char *format, ...)
2323 {
2324 va_list args;
2325 va_start (args, format);
2326 va_list args_copy;
2327 va_copy (args_copy, args);
2328
2329 const char *str = "";
2330 int number = 0;
2331 float fnumber = 0;
2332
2333 while (*format)
2334 {
2335 switch (*format++)
2336 {
2337 case '\''s'\'': // string
2338 str = va_arg (args_copy, const char *);
2339 break;
2340 case '\''d'\'': // int
2341 number = va_arg (args_copy, int);
2342 break;
2343 case '\''f'\'': // float
2344 fnumber = va_arg (args_copy, double);
2345 break;
2346 default:
2347 break;
2348 }
2349 }
2350 va_end (args_copy);
2351 va_end (args);
2352
2353 return *str && number && fnumber;
2354 }
2355 '
2356
2357 # Test code for whether the C compiler supports C99 (body of main).
2358 ac_c_conftest_c99_main='
2359 // Check bool.
2360 _Bool success = false;
2361 success |= (argc != 0);
2362
2363 // Check restrict.
2364 if (test_restrict ("String literal") == 0)
2365 success = true;
2366 char *restrict newvar = "Another string";
2367
2368 // Check varargs.
2369 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2370 test_varargs_macros ();
2371
2372 // Check flexible array members.
2373 struct incomplete_array *ia =
2374 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2375 ia->datasize = 10;
2376 for (int i = 0; i < ia->datasize; ++i)
2377 ia->data[i] = i * 1.234;
2378 // Work around memory leak warnings.
2379 free (ia);
2380
2381 // Check named initializers.
2382 struct named_init ni = {
2383 .number = 34,
2384 .name = L"Test wide string",
2385 .average = 543.34343,
2386 };
2387
2388 ni.number = 58;
2389
2390 int dynamic_array[ni.number];
2391 dynamic_array[0] = argv[0][0];
2392 dynamic_array[ni.number - 1] = 543;
2393
2394 // work around unused variable warnings
2395 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2396 || dynamic_array[ni.number - 1] != 543);
2397 '
2398
2399 # Test code for whether the C compiler supports C11 (global declarations)
2400 ac_c_conftest_c11_globals='
2401 /* Does the compiler advertise C11 conformance? */
2402 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2403 # error "Compiler does not advertise C11 conformance"
2404 #endif
2405
2406 // Check _Alignas.
2407 char _Alignas (double) aligned_as_double;
2408 char _Alignas (0) no_special_alignment;
2409 extern char aligned_as_int;
2410 char _Alignas (0) _Alignas (int) aligned_as_int;
2411
2412 // Check _Alignof.
2413 enum
2414 {
2415 int_alignment = _Alignof (int),
2416 int_array_alignment = _Alignof (int[100]),
2417 char_alignment = _Alignof (char)
2418 };
2419 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2420
2421 // Check _Noreturn.
2422 int _Noreturn does_not_return (void) { for (;;) continue; }
2423
2424 // Check _Static_assert.
2425 struct test_static_assert
2426 {
2427 int x;
2428 _Static_assert (sizeof (int) <= sizeof (long int),
2429 "_Static_assert does not work in struct");
2430 long int y;
2431 };
2432
2433 // Check UTF-8 literals.
2434 #define u8 syntax error!
2435 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2436
2437 // Check duplicate typedefs.
2438 typedef long *long_ptr;
2439 typedef long int *long_ptr;
2440 typedef long_ptr long_ptr;
2441
2442 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2443 struct anonymous
2444 {
2445 union {
2446 struct { int i; int j; };
2447 struct { int k; long int l; } w;
2448 };
2449 int m;
2450 } v1;
2451 '
2452
2453 # Test code for whether the C compiler supports C11 (body of main).
2454 ac_c_conftest_c11_main='
2455 _Static_assert ((offsetof (struct anonymous, i)
2456 == offsetof (struct anonymous, w.k)),
2457 "Anonymous union alignment botch");
2458 v1.i = 2;
2459 v1.w.k = 5;
2460 ok |= v1.i != 5;
2461 '
2462
2463 # Test code for whether the C compiler supports C11 (complete).
2464 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2465 ${ac_c_conftest_c99_globals}
2466 ${ac_c_conftest_c11_globals}
2467
2468 int
2469 main (int argc, char **argv)
2470 {
2471 int ok = 0;
2472 ${ac_c_conftest_c89_main}
2473 ${ac_c_conftest_c99_main}
2474 ${ac_c_conftest_c11_main}
2475 return ok;
2476 }
2477 "
2478
2479 # Test code for whether the C compiler supports C99 (complete).
2480 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2481 ${ac_c_conftest_c99_globals}
2482
2483 int
2484 main (int argc, char **argv)
2485 {
2486 int ok = 0;
2487 ${ac_c_conftest_c89_main}
2488 ${ac_c_conftest_c99_main}
2489 return ok;
2490 }
2491 "
2492
2493 # Test code for whether the C compiler supports C89 (complete).
2494 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2495
2496 int
2497 main (int argc, char **argv)
2498 {
2499 int ok = 0;
2500 ${ac_c_conftest_c89_main}
2501 return ok;
2502 }
2503 "
2504
2505 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2506 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2507 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2508 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2509 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2510 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2511 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2512 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2513 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2514
2515 # Auxiliary files required by this configure script.
2516 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2517
2518 # Locations in which to look for auxiliary files.
2519 ac_aux_dir_candidates="${srcdir}/build-aux"
2520
2521 # Search for a directory containing all of the required auxiliary files,
2522 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2523 # If we don't find one directory that contains all the files we need,
2524 # we report the set of missing files from the *first* directory in
2525 # $ac_aux_dir_candidates and give up.
2526 ac_missing_aux_files=""
2527 ac_first_candidate=:
2528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 as_found=false
2531 for as_dir in $ac_aux_dir_candidates
2532 do
2533 IFS=$as_save_IFS
2534 case $as_dir in #(((
2535 '') as_dir=./ ;;
2536 */) ;;
2537 *) as_dir=$as_dir/ ;;
2538 esac
2539 as_found=:
2540
2541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2542 ac_aux_dir_found=yes
2543 ac_install_sh=
2544 for ac_aux in $ac_aux_files
2545 do
2546 # As a special case, if "install-sh" is required, that requirement
2547 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2548 # and $ac_install_sh is set appropriately for whichever one is found.
2549 if test x"$ac_aux" = x"install-sh"
2550 then
2551 if test -f "${as_dir}install-sh"; then
2552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2553 ac_install_sh="${as_dir}install-sh -c"
2554 elif test -f "${as_dir}install.sh"; then
2555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2556 ac_install_sh="${as_dir}install.sh -c"
2557 elif test -f "${as_dir}shtool"; then
2558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2559 ac_install_sh="${as_dir}shtool install -c"
2560 else
2561 ac_aux_dir_found=no
2562 if $ac_first_candidate; then
2563 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2564 else
2565 break
2566 fi
2567 fi
2568 else
2569 if test -f "${as_dir}${ac_aux}"; then
2570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2571 else
2572 ac_aux_dir_found=no
2573 if $ac_first_candidate; then
2574 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2575 else
2576 break
2577 fi
2578 fi
2579 fi
2580 done
2581 if test "$ac_aux_dir_found" = yes; then
2582 ac_aux_dir="$as_dir"
2583 break
2584 fi
2585 ac_first_candidate=false
2586
2587 as_found=false
2588 done
2589 IFS=$as_save_IFS
2590 if $as_found
2591 then :
2592
2593 else case e in #(
2594 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2595 esac
2596 fi
2597
2598
2599 # These three variables are undocumented and unsupported,
2600 # and are intended to be withdrawn in a future Autoconf release.
2601 # They can cause serious problems if a builder's source tree is in a directory
2602 # whose full name contains unusual characters.
2603 if test -f "${ac_aux_dir}config.guess"; then
2604 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2605 fi
2606 if test -f "${ac_aux_dir}config.sub"; then
2607 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2608 fi
2609 if test -f "$ac_aux_dir/configure"; then
2610 ac_configure="$SHELL ${ac_aux_dir}configure"
2611 fi
2612
2613 # Check that the precious variables saved in the cache have kept the same
2614 # value.
2615 ac_cache_corrupted=false
2616 for ac_var in $ac_precious_vars; do
2617 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2618 eval ac_new_set=\$ac_env_${ac_var}_set
2619 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2620 eval ac_new_val=\$ac_env_${ac_var}_value
2621 case $ac_old_set,$ac_new_set in
2622 set,)
2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2624 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2625 ac_cache_corrupted=: ;;
2626 ,set)
2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2628 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2629 ac_cache_corrupted=: ;;
2630 ,);;
2631 *)
2632 if test "x$ac_old_val" != "x$ac_new_val"; then
2633 # differences in whitespace do not lead to failure.
2634 ac_old_val_w=`echo x $ac_old_val`
2635 ac_new_val_w=`echo x $ac_new_val`
2636 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2638 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2639 ac_cache_corrupted=:
2640 else
2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2642 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2643 eval $ac_var=\$ac_old_val
2644 fi
2645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2646 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2648 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2649 fi;;
2650 esac
2651 # Pass precious variables to config.status.
2652 if test "$ac_new_set" = set; then
2653 case $ac_new_val in
2654 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2655 *) ac_arg=$ac_var=$ac_new_val ;;
2656 esac
2657 case " $ac_configure_args " in
2658 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2659 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2660 esac
2661 fi
2662 done
2663 if $ac_cache_corrupted; then
2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2665 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2667 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2668 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2669 and start over" "$LINENO" 5
2670 fi
2671 ## -------------------- ##
2672 ## Main body of script. ##
2673 ## -------------------- ##
2674
2675 ac_ext=c
2676 ac_cpp='$CPP $CPPFLAGS'
2677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680
2681
2682 PACKAGE_RELDATE="2025-10-30"
2683
2684
2685 ac_config_headers="$ac_config_headers config.h"
2686
2687
2688
2689
2690 # Find a good install program. We prefer a C program (faster),
2691 # so one script is as good as another. But avoid the broken or
2692 # incompatible versions:
2693 # SysV /etc/install, /usr/sbin/install
2694 # SunOS /usr/etc/install
2695 # IRIX /sbin/install
2696 # AIX /bin/install
2697 # AmigaOS /C/install, which installs bootblocks on floppy discs
2698 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2699 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2700 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2701 # OS/2's system install, which has a completely different semantic
2702 # ./install, which can be erroneously created by make from ./install.sh.
2703 # Reject install programs that cannot install multiple files.
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2705 printf %s "checking for a BSD-compatible install... " >&6; }
2706 if test -z "$INSTALL"; then
2707 if test ${ac_cv_path_install+y}
2708 then :
2709 printf %s "(cached) " >&6
2710 else case e in #(
2711 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714 IFS=$as_save_IFS
2715 case $as_dir in #(((
2716 '') as_dir=./ ;;
2717 */) ;;
2718 *) as_dir=$as_dir/ ;;
2719 esac
2720 # Account for fact that we put trailing slashes in our PATH walk.
2721 case $as_dir in #((
2722 ./ | /[cC]/* | \
2723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2724 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2725 /usr/ucb/* ) ;;
2726 *)
2727 # OSF1 and SCO ODT 3.0 have their own names for install.
2728 # Don't use installbsd from OSF since it installs stuff as root
2729 # by default.
2730 for ac_prog in ginstall scoinst install; do
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2733 if test $ac_prog = install &&
2734 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2735 # AIX install. It has an incompatible calling convention.
2736 :
2737 elif test $ac_prog = install &&
2738 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2739 # program-specific install script used by HP pwplus--don't use.
2740 :
2741 else
2742 rm -rf conftest.one conftest.two conftest.dir
2743 echo one > conftest.one
2744 echo two > conftest.two
2745 mkdir conftest.dir
2746 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2747 test -s conftest.one && test -s conftest.two &&
2748 test -s conftest.dir/conftest.one &&
2749 test -s conftest.dir/conftest.two
2750 then
2751 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2752 break 3
2753 fi
2754 fi
2755 fi
2756 done
2757 done
2758 ;;
2759 esac
2760
2761 done
2762 IFS=$as_save_IFS
2763
2764 rm -rf conftest.one conftest.two conftest.dir
2765 ;;
2766 esac
2767 fi
2768 if test ${ac_cv_path_install+y}; then
2769 INSTALL=$ac_cv_path_install
2770 else
2771 # As a last resort, use the slow shell script. Don't cache a
2772 # value for INSTALL within a source directory, because that will
2773 # break other packages using the cache if that directory is
2774 # removed, or if the value is a relative name.
2775 INSTALL=$ac_install_sh
2776 fi
2777 fi
2778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2779 printf "%s\n" "$INSTALL" >&6; }
2780
2781 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2782 # It thinks the first close brace ends the variable substitution.
2783 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2784
2785 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2786
2787 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2788
2789 am__api_version='1.18'
2790
2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2792 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2793 if test ${am_cv_sleep_fractional_seconds+y}
2794 then :
2795 printf %s "(cached) " >&6
2796 else case e in #(
2797 e) if sleep 0.001 2>/dev/null
2798 then :
2799 am_cv_sleep_fractional_seconds=yes
2800 else case e in #(
2801 e) am_cv_sleep_fractional_seconds=no ;;
2802 esac
2803 fi
2804 ;;
2805 esac
2806 fi
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2808 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2809
2810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2811 printf %s "checking filesystem timestamp resolution... " >&6; }
2812 if test ${am_cv_filesystem_timestamp_resolution+y}
2813 then :
2814 printf %s "(cached) " >&6
2815 else case e in #(
2816 e) # Default to the worst case.
2817 am_cv_filesystem_timestamp_resolution=2
2818
2819 # Only try to go finer than 1 sec if sleep can do it.
2820 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2821 # - 1 sec is not much of a win compared to 2 sec, and
2822 # - it takes 2 seconds to perform the test whether 1 sec works.
2823 #
2824 # Instead, just use the default 2s on platforms that have 1s resolution,
2825 # accept the extra 1s delay when using $sleep in the Automake tests, in
2826 # exchange for not incurring the 2s delay for running the test for all
2827 # packages.
2828 #
2829 am_try_resolutions=
2830 if test "$am_cv_sleep_fractional_seconds" = yes; then
2831 # Even a millisecond often causes a bunch of false positives,
2832 # so just try a hundredth of a second. The time saved between .001 and
2833 # .01 is not terribly consequential.
2834 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2835 fi
2836
2837 # In order to catch current-generation FAT out, we must *modify* files
2838 # that already exist; the *creation* timestamp is finer. Use names
2839 # that make ls -t sort them differently when they have equal
2840 # timestamps than when they have distinct timestamps, keeping
2841 # in mind that ls -t prints the *newest* file first.
2842 rm -f conftest.ts?
2843 : > conftest.ts1
2844 : > conftest.ts2
2845 : > conftest.ts3
2846
2847 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2848 # clobber the current shell's arguments. (Outer-level square brackets
2849 # are removed by m4; they're present so that m4 does not expand
2850 # <dollar><star>; be careful, easy to get confused.)
2851 if (
2852 set X `ls -t conftest.ts[12]` &&
2853 {
2854 test "$*" != "X conftest.ts1 conftest.ts2" ||
2855 test "$*" != "X conftest.ts2 conftest.ts1";
2856 }
2857 ); then :; else
2858 # If neither matched, then we have a broken ls. This can happen
2859 # if, for instance, CONFIG_SHELL is bash and it inherits a
2860 # broken ls alias from the environment. This has actually
2861 # happened. Such a system could not be considered "sane".
2862 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2863 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2864 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2865 as_fn_error $? "ls -t produces unexpected output.
2866 Make sure there is not a broken ls alias in your environment.
2867 See 'config.log' for more details" "$LINENO" 5; }
2868 fi
2869
2870 for am_try_res in $am_try_resolutions; do
2871 # Any one fine-grained sleep might happen to cross the boundary
2872 # between two values of a coarser actual resolution, but if we do
2873 # two fine-grained sleeps in a row, at least one of them will fall
2874 # entirely within a coarse interval.
2875 echo alpha > conftest.ts1
2876 sleep $am_try_res
2877 echo beta > conftest.ts2
2878 sleep $am_try_res
2879 echo gamma > conftest.ts3
2880
2881 # We assume that 'ls -t' will make use of high-resolution
2882 # timestamps if the operating system supports them at all.
2883 if (set X `ls -t conftest.ts?` &&
2884 test "$2" = conftest.ts3 &&
2885 test "$3" = conftest.ts2 &&
2886 test "$4" = conftest.ts1); then
2887 #
2888 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2889 # because we don't need to test make.
2890 make_ok=true
2891 if test $am_try_res != 1; then
2892 # But if we've succeeded so far with a subsecond resolution, we
2893 # have one more thing to check: make. It can happen that
2894 # everything else supports the subsecond mtimes, but make doesn't;
2895 # notably on macOS, which ships make 3.81 from 2006 (the last one
2896 # released under GPLv2). https://bugs.gnu.org/68808
2897 #
2898 # We test $MAKE if it is defined in the environment, else "make".
2899 # It might get overridden later, but our hope is that in practice
2900 # it does not matter: it is the system "make" which is (by far)
2901 # the most likely to be broken, whereas if the user overrides it,
2902 # probably they did so with a better, or at least not worse, make.
2903 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2904 #
2905 # Create a Makefile (real tab character here):
2906 rm -f conftest.mk
2907 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2908 echo ' touch conftest.ts2' >>conftest.mk
2909 #
2910 # Now, running
2911 # touch conftest.ts1; touch conftest.ts2; make
2912 # should touch ts1 because ts2 is newer. This could happen by luck,
2913 # but most often, it will fail if make's support is insufficient. So
2914 # test for several consecutive successes.
2915 #
2916 # (We reuse conftest.ts[12] because we still want to modify existing
2917 # files, not create new ones, per above.)
2918 n=0
2919 make=${MAKE-make}
2920 until test $n -eq 3; do
2921 echo one > conftest.ts1
2922 sleep $am_try_res
2923 echo two > conftest.ts2 # ts2 should now be newer than ts1
2924 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2925 make_ok=false
2926 break # out of $n loop
2927 fi
2928 n=`expr $n + 1`
2929 done
2930 fi
2931 #
2932 if $make_ok; then
2933 # Everything we know to check worked out, so call this resolution good.
2934 am_cv_filesystem_timestamp_resolution=$am_try_res
2935 break # out of $am_try_res loop
2936 fi
2937 # Otherwise, we'll go on to check the next resolution.
2938 fi
2939 done
2940 rm -f conftest.ts?
2941 # (end _am_filesystem_timestamp_resolution)
2942 ;;
2943 esac
2944 fi
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2946 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2947
2948 # This check should not be cached, as it may vary across builds of
2949 # different projects.
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2951 printf %s "checking whether build environment is sane... " >&6; }
2952 # Reject unsafe characters in $srcdir or the absolute working directory
2953 # name. Accept space and tab only in the latter.
2954 am_lf='
2955 '
2956 case `pwd` in
2957 *[\\\"\#\$\&\'\`$am_lf]*)
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 printf "%s\n" "no" >&6; }
2960 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2961 esac
2962 case $srcdir in
2963 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 printf "%s\n" "no" >&6; }
2966 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2967 esac
2968
2969 # Do 'set' in a subshell so we don't clobber the current shell's
2970 # arguments. Must try -L first in case configure is actually a
2971 # symlink; some systems play weird games with the mod time of symlinks
2972 # (eg FreeBSD returns the mod time of the symlink's containing
2973 # directory).
2974 am_build_env_is_sane=no
2975 am_has_slept=no
2976 rm -f conftest.file
2977 for am_try in 1 2; do
2978 echo "timestamp, slept: $am_has_slept" > conftest.file
2979 if (
2980 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2981 if test "$*" = "X"; then
2982 # -L didn't work.
2983 set X `ls -t "$srcdir/configure" conftest.file`
2984 fi
2985 test "$2" = conftest.file
2986 ); then
2987 am_build_env_is_sane=yes
2988 break
2989 fi
2990 # Just in case.
2991 sleep "$am_cv_filesystem_timestamp_resolution"
2992 am_has_slept=yes
2993 done
2994
2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2996 printf "%s\n" "$am_build_env_is_sane" >&6; }
2997 if test "$am_build_env_is_sane" = no; then
2998 as_fn_error $? "newly created file is older than distributed files!
2999 Check your system clock" "$LINENO" 5
3000 fi
3001
3002 # If we didn't sleep, we still need to ensure time stamps of config.status and
3003 # generated files are strictly newer.
3004 am_sleep_pid=
3005 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3006 then :
3007
3008 else case e in #(
3009 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3010 am_sleep_pid=$!
3011 ;;
3012 esac
3013 fi
3014
3015 rm -f conftest.file
3016
3017 test "$program_prefix" != NONE &&
3018 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3019 # Use a double $ so make ignores it.
3020 test "$program_suffix" != NONE &&
3021 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3022 # Double any \ or $.
3023 # By default was 's,x,x', remove it if useless.
3024 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3025 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3026
3027
3028 # Expand $ac_aux_dir to an absolute path.
3029 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3030
3031
3032 if test x"${MISSING+set}" != xset; then
3033 MISSING="\${SHELL} '$am_aux_dir/missing'"
3034 fi
3035 # Use eval to expand $SHELL
3036 if eval "$MISSING --is-lightweight"; then
3037 am_missing_run="$MISSING "
3038 else
3039 am_missing_run=
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3041 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3042 fi
3043
3044 if test x"${install_sh+set}" != xset; then
3045 case $am_aux_dir in
3046 *\ * | *\ *)
3047 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3048 *)
3049 install_sh="\${SHELL} $am_aux_dir/install-sh"
3050 esac
3051 fi
3052
3053 # Installed binaries are usually stripped using 'strip' when the user
3054 # run "make install-strip". However 'strip' might not be the right
3055 # tool to use in cross-compilation environments, therefore Automake
3056 # will honor the 'STRIP' environment variable to overrule this program.
3057 if test "$cross_compiling" != no; then
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}strip; ac_word=$2
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 printf %s "checking for $ac_word... " >&6; }
3063 if test ${ac_cv_prog_STRIP+y}
3064 then :
3065 printf %s "(cached) " >&6
3066 else case e in #(
3067 e) if test -n "$STRIP"; then
3068 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 case $as_dir in #(((
3075 '') as_dir=./ ;;
3076 */) ;;
3077 *) as_dir=$as_dir/ ;;
3078 esac
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 fi ;;
3090 esac
3091 fi
3092 STRIP=$ac_cv_prog_STRIP
3093 if test -n "$STRIP"; then
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3095 printf "%s\n" "$STRIP" >&6; }
3096 else
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 printf "%s\n" "no" >&6; }
3099 fi
3100
3101
3102 fi
3103 if test -z "$ac_cv_prog_STRIP"; then
3104 ac_ct_STRIP=$STRIP
3105 # Extract the first word of "strip", so it can be a program name with args.
3106 set dummy strip; ac_word=$2
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 printf %s "checking for $ac_word... " >&6; }
3109 if test ${ac_cv_prog_ac_ct_STRIP+y}
3110 then :
3111 printf %s "(cached) " >&6
3112 else case e in #(
3113 e) if test -n "$ac_ct_STRIP"; then
3114 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119 IFS=$as_save_IFS
3120 case $as_dir in #(((
3121 '') as_dir=./ ;;
3122 */) ;;
3123 *) as_dir=$as_dir/ ;;
3124 esac
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_STRIP="strip"
3128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131 done
3132 done
3133 IFS=$as_save_IFS
3134
3135 fi ;;
3136 esac
3137 fi
3138 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3139 if test -n "$ac_ct_STRIP"; then
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3141 printf "%s\n" "$ac_ct_STRIP" >&6; }
3142 else
3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 printf "%s\n" "no" >&6; }
3145 fi
3146
3147 if test "x$ac_ct_STRIP" = x; then
3148 STRIP=":"
3149 else
3150 case $cross_compiling:$ac_tool_warned in
3151 yes:)
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3155 esac
3156 STRIP=$ac_ct_STRIP
3157 fi
3158 else
3159 STRIP="$ac_cv_prog_STRIP"
3160 fi
3161
3162 fi
3163 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3164
3165
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3167 printf %s "checking for a race-free mkdir -p... " >&6; }
3168 if test -z "$MKDIR_P"; then
3169 if test ${ac_cv_path_mkdir+y}
3170 then :
3171 printf %s "(cached) " >&6
3172 else case e in #(
3173 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3175 do
3176 IFS=$as_save_IFS
3177 case $as_dir in #(((
3178 '') as_dir=./ ;;
3179 */) ;;
3180 *) as_dir=$as_dir/ ;;
3181 esac
3182 for ac_prog in mkdir gmkdir; do
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3185 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3186 'mkdir ('*'coreutils) '* | \
3187 *'BusyBox '* | \
3188 'mkdir (fileutils) '4.1*)
3189 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3190 break 3;;
3191 esac
3192 done
3193 done
3194 done
3195 IFS=$as_save_IFS
3196 ;;
3197 esac
3198 fi
3199
3200 test -d ./--version && rmdir ./--version
3201 if test ${ac_cv_path_mkdir+y}; then
3202 MKDIR_P="$ac_cv_path_mkdir -p"
3203 else
3204 # As a last resort, use plain mkdir -p,
3205 # in the hope it doesn't have the bugs of ancient mkdir.
3206 MKDIR_P='mkdir -p'
3207 fi
3208 fi
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3210 printf "%s\n" "$MKDIR_P" >&6; }
3211
3212 for ac_prog in gawk mawk nawk awk
3213 do
3214 # Extract the first word of "$ac_prog", so it can be a program name with args.
3215 set dummy $ac_prog; ac_word=$2
3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 printf %s "checking for $ac_word... " >&6; }
3218 if test ${ac_cv_prog_AWK+y}
3219 then :
3220 printf %s "(cached) " >&6
3221 else case e in #(
3222 e) if test -n "$AWK"; then
3223 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 case $as_dir in #(((
3230 '') as_dir=./ ;;
3231 */) ;;
3232 *) as_dir=$as_dir/ ;;
3233 esac
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3236 ac_cv_prog_AWK="$ac_prog"
3237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 fi ;;
3245 esac
3246 fi
3247 AWK=$ac_cv_prog_AWK
3248 if test -n "$AWK"; then
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3250 printf "%s\n" "$AWK" >&6; }
3251 else
3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 printf "%s\n" "no" >&6; }
3254 fi
3255
3256
3257 test -n "$AWK" && break
3258 done
3259
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3261 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3262 set x ${MAKE-make}
3263 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3264 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3265 then :
3266 printf %s "(cached) " >&6
3267 else case e in #(
3268 e) cat >conftest.make <<\_ACEOF
3269 SHELL = /bin/sh
3270 all:
3271 @echo '@@@%%%=$(MAKE)=@@@%%%'
3272 _ACEOF
3273 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3274 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3275 *@@@%%%=?*=@@@%%%*)
3276 eval ac_cv_prog_make_${ac_make}_set=yes;;
3277 *)
3278 eval ac_cv_prog_make_${ac_make}_set=no;;
3279 esac
3280 rm -f conftest.make ;;
3281 esac
3282 fi
3283 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3285 printf "%s\n" "yes" >&6; }
3286 SET_MAKE=
3287 else
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 printf "%s\n" "no" >&6; }
3290 SET_MAKE="MAKE=${MAKE-make}"
3291 fi
3292
3293 rm -rf .tst 2>/dev/null
3294 mkdir .tst 2>/dev/null
3295 if test -d .tst; then
3296 am__leading_dot=.
3297 else
3298 am__leading_dot=_
3299 fi
3300 rmdir .tst 2>/dev/null
3301
3302 AM_DEFAULT_VERBOSITY=1
3303 # Check whether --enable-silent-rules was given.
3304 if test ${enable_silent_rules+y}
3305 then :
3306 enableval=$enable_silent_rules;
3307 fi
3308
3309 am_make=${MAKE-make}
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3311 printf %s "checking whether $am_make supports nested variables... " >&6; }
3312 if test ${am_cv_make_support_nested_variables+y}
3313 then :
3314 printf %s "(cached) " >&6
3315 else case e in #(
3316 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3317 BAR0=false
3318 BAR1=true
3319 V=1
3320 am__doit:
3321 @$(TRUE)
3322 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3323 am_cv_make_support_nested_variables=yes
3324 else
3325 am_cv_make_support_nested_variables=no
3326 fi ;;
3327 esac
3328 fi
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3330 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3331 AM_BACKSLASH='\'
3332
3333 am__rm_f_notfound=
3334 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3335 then :
3336
3337 else case e in #(
3338 e) am__rm_f_notfound='""' ;;
3339 esac
3340 fi
3341
3342
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3344 printf %s "checking xargs -n works... " >&6; }
3345 if test ${am_cv_xargs_n_works+y}
3346 then :
3347 printf %s "(cached) " >&6
3348 else case e in #(
3349 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3350 3"
3351 then :
3352 am_cv_xargs_n_works=yes
3353 else case e in #(
3354 e) am_cv_xargs_n_works=no ;;
3355 esac
3356 fi ;;
3357 esac
3358 fi
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3360 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3361 if test "$am_cv_xargs_n_works" = yes
3362 then :
3363 am__xargs_n='xargs -n'
3364 else case e in #(
3365 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3366 ;;
3367 esac
3368 fi
3369
3370 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3371 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3372 # is not polluted with repeated "-I."
3373 am__isrc=' -I$(srcdir)'
3374 # test to see if srcdir already configured
3375 if test -f $srcdir/config.status; then
3376 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3377 fi
3378 fi
3379
3380 # test whether we have cygpath
3381 if test -z "$CYGPATH_W"; then
3382 if (cygpath --version) >/dev/null 2>/dev/null; then
3383 CYGPATH_W='cygpath -w'
3384 else
3385 CYGPATH_W=echo
3386 fi
3387 fi
3388
3389
3390 # Define the identity of the package.
3391 PACKAGE='pam_mount'
3392 VERSION='2.22'
3393
3394
3395 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3396
3397
3398 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3399
3400 # Some tools Automake needs.
3401
3402 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3403
3404
3405 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3406
3407
3408 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3409
3410
3411 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3412
3413
3414 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3415
3416 # For better backward compatibility. To be removed once Automake 1.9.x
3417 # dies out for good. For more background, see:
3418 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3419 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3420 mkdir_p='$(MKDIR_P)'
3421
3422 # We need awk for the "check" target (and possibly the TAP driver). The
3423 # system "awk" is bad on some platforms.
3424 # Always define AMTAR for backward compatibility. Yes, it's still used
3425 # in the wild :-( We should find a proper way to deprecate it ...
3426 AMTAR='$${TAR-tar}'
3427
3428
3429 # We'll loop over all known methods to create a tar archive until one works.
3430 _am_tools='gnutar pax cpio none'
3431
3432
3433
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3435 printf %s "checking how to create a pax tar archive... " >&6; }
3436
3437 # Go ahead even if we have the value already cached. We do so because we
3438 # need to set the values for the 'am__tar' and 'am__untar' variables.
3439 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3440
3441 for _am_tool in $_am_tools; do
3442 case $_am_tool in
3443 gnutar)
3444 for _am_tar in tar gnutar gtar; do
3445 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3446 ($_am_tar --version) >&5 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } && break
3450 done
3451 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3452 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3453 am__untar="$_am_tar -xf -"
3454 ;;
3455 plaintar)
3456 # Must skip GNU tar: if it does not support --format= it doesn't create
3457 # ustar tarball either.
3458 (tar --version) >/dev/null 2>&1 && continue
3459 am__tar='tar chf - "$$tardir"'
3460 am__tar_='tar chf - "$tardir"'
3461 am__untar='tar xf -'
3462 ;;
3463 pax)
3464 am__tar='pax -L -x pax -w "$$tardir"'
3465 am__tar_='pax -L -x pax -w "$tardir"'
3466 am__untar='pax -r'
3467 ;;
3468 cpio)
3469 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3470 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3471 am__untar='cpio -i -H pax -d'
3472 ;;
3473 none)
3474 am__tar=false
3475 am__tar_=false
3476 am__untar=false
3477 ;;
3478 esac
3479
3480 # If the value was cached, stop now. We just wanted to have am__tar
3481 # and am__untar set.
3482 test -n "${am_cv_prog_tar_pax}" && break
3483
3484 # tar/untar a dummy directory, and stop if the command works.
3485 rm -rf conftest.dir
3486 mkdir conftest.dir
3487 echo GrepMe > conftest.dir/file
3488 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3489 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }
3493 rm -rf conftest.dir
3494 if test -s conftest.tar; then
3495 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3496 ($am__untar <conftest.tar) >&5 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }
3500 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3501 (cat conftest.dir/file) >&5 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }
3505 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3506 fi
3507 done
3508 rm -rf conftest.dir
3509
3510 if test ${am_cv_prog_tar_pax+y}
3511 then :
3512 printf %s "(cached) " >&6
3513 else case e in #(
3514 e) am_cv_prog_tar_pax=$_am_tool ;;
3515 esac
3516 fi
3517
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3519 printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
3520
3521
3522
3523
3524
3525 # Variables for tags utilities; see am/tags.am
3526 if test -z "$CTAGS"; then
3527 CTAGS=ctags
3528 fi
3529
3530 if test -z "$ETAGS"; then
3531 ETAGS=etags
3532 fi
3533
3534 if test -z "$CSCOPE"; then
3535 CSCOPE=cscope
3536 fi
3537
3538
3539
3540 AM_DEFAULT_VERBOSITY=0
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556 ac_ext=c
3557 ac_cpp='$CPP $CPPFLAGS'
3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561 if test -n "$ac_tool_prefix"; then
3562 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3563 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 printf %s "checking for $ac_word... " >&6; }
3566 if test ${ac_cv_prog_CC+y}
3567 then :
3568 printf %s "(cached) " >&6
3569 else case e in #(
3570 e) if test -n "$CC"; then
3571 ac_cv_prog_CC="$CC" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576 IFS=$as_save_IFS
3577 case $as_dir in #(((
3578 '') as_dir=./ ;;
3579 */) ;;
3580 *) as_dir=$as_dir/ ;;
3581 esac
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3584 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3586 break 2
3587 fi
3588 done
3589 done
3590 IFS=$as_save_IFS
3591
3592 fi ;;
3593 esac
3594 fi
3595 CC=$ac_cv_prog_CC
3596 if test -n "$CC"; then
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598 printf "%s\n" "$CC" >&6; }
3599 else
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 printf "%s\n" "no" >&6; }
3602 fi
3603
3604
3605 fi
3606 if test -z "$ac_cv_prog_CC"; then
3607 ac_ct_CC=$CC
3608 # Extract the first word of "gcc", so it can be a program name with args.
3609 set dummy gcc; ac_word=$2
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 printf %s "checking for $ac_word... " >&6; }
3612 if test ${ac_cv_prog_ac_ct_CC+y}
3613 then :
3614 printf %s "(cached) " >&6
3615 else case e in #(
3616 e) if test -n "$ac_ct_CC"; then
3617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3618 else
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH
3621 do
3622 IFS=$as_save_IFS
3623 case $as_dir in #(((
3624 '') as_dir=./ ;;
3625 */) ;;
3626 *) as_dir=$as_dir/ ;;
3627 esac
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3630 ac_cv_prog_ac_ct_CC="gcc"
3631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3632 break 2
3633 fi
3634 done
3635 done
3636 IFS=$as_save_IFS
3637
3638 fi ;;
3639 esac
3640 fi
3641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3642 if test -n "$ac_ct_CC"; then
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3644 printf "%s\n" "$ac_ct_CC" >&6; }
3645 else
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 printf "%s\n" "no" >&6; }
3648 fi
3649
3650 if test "x$ac_ct_CC" = x; then
3651 CC=""
3652 else
3653 case $cross_compiling:$ac_tool_warned in
3654 yes:)
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned=yes ;;
3658 esac
3659 CC=$ac_ct_CC
3660 fi
3661 else
3662 CC="$ac_cv_prog_CC"
3663 fi
3664
3665 if test -z "$CC"; then
3666 if test -n "$ac_tool_prefix"; then
3667 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3668 set dummy ${ac_tool_prefix}cc; ac_word=$2
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 printf %s "checking for $ac_word... " >&6; }
3671 if test ${ac_cv_prog_CC+y}
3672 then :
3673 printf %s "(cached) " >&6
3674 else case e in #(
3675 e) if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681 IFS=$as_save_IFS
3682 case $as_dir in #(((
3683 '') as_dir=./ ;;
3684 */) ;;
3685 *) as_dir=$as_dir/ ;;
3686 esac
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3689 ac_cv_prog_CC="${ac_tool_prefix}cc"
3690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3691 break 2
3692 fi
3693 done
3694 done
3695 IFS=$as_save_IFS
3696
3697 fi ;;
3698 esac
3699 fi
3700 CC=$ac_cv_prog_CC
3701 if test -n "$CC"; then
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3703 printf "%s\n" "$CC" >&6; }
3704 else
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 printf "%s\n" "no" >&6; }
3707 fi
3708
3709
3710 fi
3711 fi
3712 if test -z "$CC"; then
3713 # Extract the first word of "cc", so it can be a program name with args.
3714 set dummy cc; ac_word=$2
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 printf %s "checking for $ac_word... " >&6; }
3717 if test ${ac_cv_prog_CC+y}
3718 then :
3719 printf %s "(cached) " >&6
3720 else case e in #(
3721 e) if test -n "$CC"; then
3722 ac_cv_prog_CC="$CC" # Let the user override the test.
3723 else
3724 ac_prog_rejected=no
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3727 do
3728 IFS=$as_save_IFS
3729 case $as_dir in #(((
3730 '') as_dir=./ ;;
3731 */) ;;
3732 *) as_dir=$as_dir/ ;;
3733 esac
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3736 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3737 ac_prog_rejected=yes
3738 continue
3739 fi
3740 ac_cv_prog_CC="cc"
3741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3742 break 2
3743 fi
3744 done
3745 done
3746 IFS=$as_save_IFS
3747
3748 if test $ac_prog_rejected = yes; then
3749 # We found a bogon in the path, so make sure we never use it.
3750 set dummy $ac_cv_prog_CC
3751 shift
3752 if test $# != 0; then
3753 # We chose a different compiler from the bogus one.
3754 # However, it has the same basename, so the bogon will be chosen
3755 # first if we set CC to just the basename; use the full file name.
3756 shift
3757 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3758 fi
3759 fi
3760 fi ;;
3761 esac
3762 fi
3763 CC=$ac_cv_prog_CC
3764 if test -n "$CC"; then
3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3766 printf "%s\n" "$CC" >&6; }
3767 else
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 printf "%s\n" "no" >&6; }
3770 fi
3771
3772
3773 fi
3774 if test -z "$CC"; then
3775 if test -n "$ac_tool_prefix"; then
3776 for ac_prog in cl.exe
3777 do
3778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 printf %s "checking for $ac_word... " >&6; }
3782 if test ${ac_cv_prog_CC+y}
3783 then :
3784 printf %s "(cached) " >&6
3785 else case e in #(
3786 e) if test -n "$CC"; then
3787 ac_cv_prog_CC="$CC" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792 IFS=$as_save_IFS
3793 case $as_dir in #(((
3794 '') as_dir=./ ;;
3795 */) ;;
3796 *) as_dir=$as_dir/ ;;
3797 esac
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3802 break 2
3803 fi
3804 done
3805 done
3806 IFS=$as_save_IFS
3807
3808 fi ;;
3809 esac
3810 fi
3811 CC=$ac_cv_prog_CC
3812 if test -n "$CC"; then
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3814 printf "%s\n" "$CC" >&6; }
3815 else
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 printf "%s\n" "no" >&6; }
3818 fi
3819
3820
3821 test -n "$CC" && break
3822 done
3823 fi
3824 if test -z "$CC"; then
3825 ac_ct_CC=$CC
3826 for ac_prog in cl.exe
3827 do
3828 # Extract the first word of "$ac_prog", so it can be a program name with args.
3829 set dummy $ac_prog; ac_word=$2
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 printf %s "checking for $ac_word... " >&6; }
3832 if test ${ac_cv_prog_ac_ct_CC+y}
3833 then :
3834 printf %s "(cached) " >&6
3835 else case e in #(
3836 e) if test -n "$ac_ct_CC"; then
3837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842 IFS=$as_save_IFS
3843 case $as_dir in #(((
3844 '') as_dir=./ ;;
3845 */) ;;
3846 *) as_dir=$as_dir/ ;;
3847 esac
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3850 ac_cv_prog_ac_ct_CC="$ac_prog"
3851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854 done
3855 done
3856 IFS=$as_save_IFS
3857
3858 fi ;;
3859 esac
3860 fi
3861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3862 if test -n "$ac_ct_CC"; then
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3864 printf "%s\n" "$ac_ct_CC" >&6; }
3865 else
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 printf "%s\n" "no" >&6; }
3868 fi
3869
3870
3871 test -n "$ac_ct_CC" && break
3872 done
3873
3874 if test "x$ac_ct_CC" = x; then
3875 CC=""
3876 else
3877 case $cross_compiling:$ac_tool_warned in
3878 yes:)
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3880 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3881 ac_tool_warned=yes ;;
3882 esac
3883 CC=$ac_ct_CC
3884 fi
3885 fi
3886
3887 fi
3888 if test -z "$CC"; then
3889 if test -n "$ac_tool_prefix"; then
3890 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3891 set dummy ${ac_tool_prefix}clang; ac_word=$2
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 printf %s "checking for $ac_word... " >&6; }
3894 if test ${ac_cv_prog_CC+y}
3895 then :
3896 printf %s "(cached) " >&6
3897 else case e in #(
3898 e) if test -n "$CC"; then
3899 ac_cv_prog_CC="$CC" # Let the user override the test.
3900 else
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 ac_cv_prog_CC="${ac_tool_prefix}clang"
3913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916 done
3917 done
3918 IFS=$as_save_IFS
3919
3920 fi ;;
3921 esac
3922 fi
3923 CC=$ac_cv_prog_CC
3924 if test -n "$CC"; then
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3926 printf "%s\n" "$CC" >&6; }
3927 else
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 printf "%s\n" "no" >&6; }
3930 fi
3931
3932
3933 fi
3934 if test -z "$ac_cv_prog_CC"; then
3935 ac_ct_CC=$CC
3936 # Extract the first word of "clang", so it can be a program name with args.
3937 set dummy clang; ac_word=$2
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 printf %s "checking for $ac_word... " >&6; }
3940 if test ${ac_cv_prog_ac_ct_CC+y}
3941 then :
3942 printf %s "(cached) " >&6
3943 else case e in #(
3944 e) if test -n "$ac_ct_CC"; then
3945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950 IFS=$as_save_IFS
3951 case $as_dir in #(((
3952 '') as_dir=./ ;;
3953 */) ;;
3954 *) as_dir=$as_dir/ ;;
3955 esac
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3958 ac_cv_prog_ac_ct_CC="clang"
3959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3960 break 2
3961 fi
3962 done
3963 done
3964 IFS=$as_save_IFS
3965
3966 fi ;;
3967 esac
3968 fi
3969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3970 if test -n "$ac_ct_CC"; then
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3972 printf "%s\n" "$ac_ct_CC" >&6; }
3973 else
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 printf "%s\n" "no" >&6; }
3976 fi
3977
3978 if test "x$ac_ct_CC" = x; then
3979 CC=""
3980 else
3981 case $cross_compiling:$ac_tool_warned in
3982 yes:)
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3984 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3985 ac_tool_warned=yes ;;
3986 esac
3987 CC=$ac_ct_CC
3988 fi
3989 else
3990 CC="$ac_cv_prog_CC"
3991 fi
3992
3993 fi
3994
3995
3996 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3997 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3998 as_fn_error $? "no acceptable C compiler found in \$PATH
3999 See 'config.log' for more details" "$LINENO" 5; }
4000
4001 # Provide some information about the compiler.
4002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4003 set X $ac_compile
4004 ac_compiler=$2
4005 for ac_option in --version -v -V -qversion -version; do
4006 { { ac_try="$ac_compiler $ac_option >&5"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 printf "%s\n" "$ac_try_echo"; } >&5
4013 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4014 ac_status=$?
4015 if test -s conftest.err; then
4016 sed '10a\
4017 ... rest of stderr output deleted ...
4018 10q' conftest.err >conftest.er1
4019 cat conftest.er1 >&5
4020 fi
4021 rm -f conftest.er1 conftest.err
4022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4023 test $ac_status = 0; }
4024 done
4025
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028
4029 int
4030 main (void)
4031 {
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 ac_clean_files_save=$ac_clean_files
4038 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4039 # Try to create an executable without -o first, disregard a.out.
4040 # It will help us diagnose broken compilers, and finding out an intuition
4041 # of exeext.
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4043 printf %s "checking whether the C compiler works... " >&6; }
4044 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4045
4046 # The possible output files:
4047 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4048
4049 ac_rmfiles=
4050 for ac_file in $ac_files
4051 do
4052 case $ac_file in
4053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4054 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4055 esac
4056 done
4057 rm -f $ac_rmfiles
4058
4059 if { { ac_try="$ac_link_default"
4060 case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063 esac
4064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065 printf "%s\n" "$ac_try_echo"; } >&5
4066 (eval "$ac_link_default") 2>&5
4067 ac_status=$?
4068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4069 test $ac_status = 0; }
4070 then :
4071 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4072 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4073 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4074 # so that the user can short-circuit this test for compilers unknown to
4075 # Autoconf.
4076 for ac_file in $ac_files ''
4077 do
4078 test -f "$ac_file" || continue
4079 case $ac_file in
4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4081 ;;
4082 [ab].out )
4083 # We found the default executable, but exeext='' is most
4084 # certainly right.
4085 break;;
4086 *.* )
4087 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4088 then :; else
4089 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4090 fi
4091 # We set ac_cv_exeext here because the later test for it is not
4092 # safe: cross compilers may not add the suffix if given an '-o'
4093 # argument, so we may need to know it at that point already.
4094 # Even if this section looks crufty: it has the advantage of
4095 # actually working.
4096 break;;
4097 * )
4098 break;;
4099 esac
4100 done
4101 test "$ac_cv_exeext" = no && ac_cv_exeext=
4102
4103 else case e in #(
4104 e) ac_file='' ;;
4105 esac
4106 fi
4107 if test -z "$ac_file"
4108 then :
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 printf "%s\n" "no" >&6; }
4111 printf "%s\n" "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4113
4114 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4115 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4116 as_fn_error 77 "C compiler cannot create executables
4117 See 'config.log' for more details" "$LINENO" 5; }
4118 else case e in #(
4119 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120 printf "%s\n" "yes" >&6; } ;;
4121 esac
4122 fi
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4124 printf %s "checking for C compiler default output file name... " >&6; }
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4126 printf "%s\n" "$ac_file" >&6; }
4127 ac_exeext=$ac_cv_exeext
4128
4129 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4130 ac_clean_files=$ac_clean_files_save
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4132 printf %s "checking for suffix of executables... " >&6; }
4133 if { { ac_try="$ac_link"
4134 case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137 esac
4138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4139 printf "%s\n" "$ac_try_echo"; } >&5
4140 (eval "$ac_link") 2>&5
4141 ac_status=$?
4142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4143 test $ac_status = 0; }
4144 then :
4145 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4146 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4147 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4148 # 'rm'.
4149 for ac_file in conftest.exe conftest conftest.*; do
4150 test -f "$ac_file" || continue
4151 case $ac_file in
4152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4153 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4154 break;;
4155 * ) break;;
4156 esac
4157 done
4158 else case e in #(
4159 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4160 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4161 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4162 See 'config.log' for more details" "$LINENO" 5; } ;;
4163 esac
4164 fi
4165 rm -f conftest conftest$ac_cv_exeext
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4167 printf "%s\n" "$ac_cv_exeext" >&6; }
4168
4169 rm -f conftest.$ac_ext
4170 EXEEXT=$ac_cv_exeext
4171 ac_exeext=$EXEEXT
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <stdio.h>
4175 int
4176 main (void)
4177 {
4178 FILE *f = fopen ("conftest.out", "w");
4179 if (!f)
4180 return 1;
4181 return ferror (f) || fclose (f) != 0;
4182
4183 ;
4184 return 0;
4185 }
4186 _ACEOF
4187 ac_clean_files="$ac_clean_files conftest.out"
4188 # Check that the compiler produces executables we can run. If not, either
4189 # the compiler is broken, or we cross compile.
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4191 printf %s "checking whether we are cross compiling... " >&6; }
4192 if test "$cross_compiling" != yes; then
4193 { { ac_try="$ac_link"
4194 case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197 esac
4198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199 printf "%s\n" "$ac_try_echo"; } >&5
4200 (eval "$ac_link") 2>&5
4201 ac_status=$?
4202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4203 test $ac_status = 0; }
4204 if { ac_try='./conftest$ac_cv_exeext'
4205 { { case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208 esac
4209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4210 printf "%s\n" "$ac_try_echo"; } >&5
4211 (eval "$ac_try") 2>&5
4212 ac_status=$?
4213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214 test $ac_status = 0; }; }; then
4215 cross_compiling=no
4216 else
4217 if test "$cross_compiling" = maybe; then
4218 cross_compiling=yes
4219 else
4220 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4221 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4222 as_fn_error 77 "cannot run C compiled programs.
4223 If you meant to cross compile, use '--host'.
4224 See 'config.log' for more details" "$LINENO" 5; }
4225 fi
4226 fi
4227 fi
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4229 printf "%s\n" "$cross_compiling" >&6; }
4230
4231 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4232 conftest.o conftest.obj conftest.out
4233 ac_clean_files=$ac_clean_files_save
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4235 printf %s "checking for suffix of object files... " >&6; }
4236 if test ${ac_cv_objext+y}
4237 then :
4238 printf %s "(cached) " >&6
4239 else case e in #(
4240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242
4243 int
4244 main (void)
4245 {
4246
4247 ;
4248 return 0;
4249 }
4250 _ACEOF
4251 rm -f conftest.o conftest.obj
4252 if { { ac_try="$ac_compile"
4253 case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256 esac
4257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4258 printf "%s\n" "$ac_try_echo"; } >&5
4259 (eval "$ac_compile") 2>&5
4260 ac_status=$?
4261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4262 test $ac_status = 0; }
4263 then :
4264 for ac_file in conftest.o conftest.obj conftest.*; do
4265 test -f "$ac_file" || continue;
4266 case $ac_file in
4267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4269 break;;
4270 esac
4271 done
4272 else case e in #(
4273 e) printf "%s\n" "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4275
4276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4277 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4278 as_fn_error $? "cannot compute suffix of object files: cannot compile
4279 See 'config.log' for more details" "$LINENO" 5; } ;;
4280 esac
4281 fi
4282 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4283 esac
4284 fi
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4286 printf "%s\n" "$ac_cv_objext" >&6; }
4287 OBJEXT=$ac_cv_objext
4288 ac_objext=$OBJEXT
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4290 printf %s "checking whether the compiler supports GNU C... " >&6; }
4291 if test ${ac_cv_c_compiler_gnu+y}
4292 then :
4293 printf %s "(cached) " >&6
4294 else case e in #(
4295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297
4298 int
4299 main (void)
4300 {
4301 #ifndef __GNUC__
4302 choke me
4303 #endif
4304
4305 ;
4306 return 0;
4307 }
4308 _ACEOF
4309 if ac_fn_c_try_compile "$LINENO"
4310 then :
4311 ac_compiler_gnu=yes
4312 else case e in #(
4313 e) ac_compiler_gnu=no ;;
4314 esac
4315 fi
4316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4317 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4318 ;;
4319 esac
4320 fi
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4322 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325 if test $ac_compiler_gnu = yes; then
4326 GCC=yes
4327 else
4328 GCC=
4329 fi
4330 ac_test_CFLAGS=${CFLAGS+y}
4331 ac_save_CFLAGS=$CFLAGS
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4333 printf %s "checking whether $CC accepts -g... " >&6; }
4334 if test ${ac_cv_prog_cc_g+y}
4335 then :
4336 printf %s "(cached) " >&6
4337 else case e in #(
4338 e) ac_save_c_werror_flag=$ac_c_werror_flag
4339 ac_c_werror_flag=yes
4340 ac_cv_prog_cc_g=no
4341 CFLAGS="-g"
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344
4345 int
4346 main (void)
4347 {
4348
4349 ;
4350 return 0;
4351 }
4352 _ACEOF
4353 if ac_fn_c_try_compile "$LINENO"
4354 then :
4355 ac_cv_prog_cc_g=yes
4356 else case e in #(
4357 e) CFLAGS=""
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360
4361 int
4362 main (void)
4363 {
4364
4365 ;
4366 return 0;
4367 }
4368 _ACEOF
4369 if ac_fn_c_try_compile "$LINENO"
4370 then :
4371
4372 else case e in #(
4373 e) ac_c_werror_flag=$ac_save_c_werror_flag
4374 CFLAGS="-g"
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377
4378 int
4379 main (void)
4380 {
4381
4382 ;
4383 return 0;
4384 }
4385 _ACEOF
4386 if ac_fn_c_try_compile "$LINENO"
4387 then :
4388 ac_cv_prog_cc_g=yes
4389 fi
4390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4391 esac
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4394 esac
4395 fi
4396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4397 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4398 esac
4399 fi
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4401 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4402 if test $ac_test_CFLAGS; then
4403 CFLAGS=$ac_save_CFLAGS
4404 elif test $ac_cv_prog_cc_g = yes; then
4405 if test "$GCC" = yes; then
4406 CFLAGS="-g -O2"
4407 else
4408 CFLAGS="-g"
4409 fi
4410 else
4411 if test "$GCC" = yes; then
4412 CFLAGS="-O2"
4413 else
4414 CFLAGS=
4415 fi
4416 fi
4417 ac_prog_cc_stdc=no
4418 if test x$ac_prog_cc_stdc = xno
4419 then :
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4421 printf %s "checking for $CC option to enable C11 features... " >&6; }
4422 if test ${ac_cv_prog_cc_c11+y}
4423 then :
4424 printf %s "(cached) " >&6
4425 else case e in #(
4426 e) ac_cv_prog_cc_c11=no
4427 ac_save_CC=$CC
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430 $ac_c_conftest_c11_program
4431 _ACEOF
4432 for ac_arg in '' -std=gnu11
4433 do
4434 CC="$ac_save_CC $ac_arg"
4435 if ac_fn_c_try_compile "$LINENO"
4436 then :
4437 ac_cv_prog_cc_c11=$ac_arg
4438 fi
4439 rm -f core conftest.err conftest.$ac_objext conftest.beam
4440 test "x$ac_cv_prog_cc_c11" != "xno" && break
4441 done
4442 rm -f conftest.$ac_ext
4443 CC=$ac_save_CC ;;
4444 esac
4445 fi
4446
4447 if test "x$ac_cv_prog_cc_c11" = xno
4448 then :
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4450 printf "%s\n" "unsupported" >&6; }
4451 else case e in #(
4452 e) if test "x$ac_cv_prog_cc_c11" = x
4453 then :
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4455 printf "%s\n" "none needed" >&6; }
4456 else case e in #(
4457 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4458 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4459 CC="$CC $ac_cv_prog_cc_c11" ;;
4460 esac
4461 fi
4462 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4463 ac_prog_cc_stdc=c11 ;;
4464 esac
4465 fi
4466 fi
4467 if test x$ac_prog_cc_stdc = xno
4468 then :
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4470 printf %s "checking for $CC option to enable C99 features... " >&6; }
4471 if test ${ac_cv_prog_cc_c99+y}
4472 then :
4473 printf %s "(cached) " >&6
4474 else case e in #(
4475 e) ac_cv_prog_cc_c99=no
4476 ac_save_CC=$CC
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 $ac_c_conftest_c99_program
4480 _ACEOF
4481 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4482 do
4483 CC="$ac_save_CC $ac_arg"
4484 if ac_fn_c_try_compile "$LINENO"
4485 then :
4486 ac_cv_prog_cc_c99=$ac_arg
4487 fi
4488 rm -f core conftest.err conftest.$ac_objext conftest.beam
4489 test "x$ac_cv_prog_cc_c99" != "xno" && break
4490 done
4491 rm -f conftest.$ac_ext
4492 CC=$ac_save_CC ;;
4493 esac
4494 fi
4495
4496 if test "x$ac_cv_prog_cc_c99" = xno
4497 then :
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4499 printf "%s\n" "unsupported" >&6; }
4500 else case e in #(
4501 e) if test "x$ac_cv_prog_cc_c99" = x
4502 then :
4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4504 printf "%s\n" "none needed" >&6; }
4505 else case e in #(
4506 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4507 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4508 CC="$CC $ac_cv_prog_cc_c99" ;;
4509 esac
4510 fi
4511 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4512 ac_prog_cc_stdc=c99 ;;
4513 esac
4514 fi
4515 fi
4516 if test x$ac_prog_cc_stdc = xno
4517 then :
4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4519 printf %s "checking for $CC option to enable C89 features... " >&6; }
4520 if test ${ac_cv_prog_cc_c89+y}
4521 then :
4522 printf %s "(cached) " >&6
4523 else case e in #(
4524 e) ac_cv_prog_cc_c89=no
4525 ac_save_CC=$CC
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528 $ac_c_conftest_c89_program
4529 _ACEOF
4530 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4531 do
4532 CC="$ac_save_CC $ac_arg"
4533 if ac_fn_c_try_compile "$LINENO"
4534 then :
4535 ac_cv_prog_cc_c89=$ac_arg
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.beam
4538 test "x$ac_cv_prog_cc_c89" != "xno" && break
4539 done
4540 rm -f conftest.$ac_ext
4541 CC=$ac_save_CC ;;
4542 esac
4543 fi
4544
4545 if test "x$ac_cv_prog_cc_c89" = xno
4546 then :
4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4548 printf "%s\n" "unsupported" >&6; }
4549 else case e in #(
4550 e) if test "x$ac_cv_prog_cc_c89" = x
4551 then :
4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4553 printf "%s\n" "none needed" >&6; }
4554 else case e in #(
4555 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4556 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4557 CC="$CC $ac_cv_prog_cc_c89" ;;
4558 esac
4559 fi
4560 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4561 ac_prog_cc_stdc=c89 ;;
4562 esac
4563 fi
4564 fi
4565
4566 ac_ext=c
4567 ac_cpp='$CPP $CPPFLAGS'
4568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4571
4572
4573 ac_ext=c
4574 ac_cpp='$CPP $CPPFLAGS'
4575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4579 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4580 if test ${am_cv_prog_cc_c_o+y}
4581 then :
4582 printf %s "(cached) " >&6
4583 else case e in #(
4584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586
4587 int
4588 main (void)
4589 {
4590
4591 ;
4592 return 0;
4593 }
4594 _ACEOF
4595 # Make sure it works both with $CC and with simple cc.
4596 # Following AC_PROG_CC_C_O, we do the test twice because some
4597 # compilers refuse to overwrite an existing .o file with -o,
4598 # though they will create one.
4599 am_cv_prog_cc_c_o=yes
4600 for am_i in 1 2; do
4601 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4602 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } \
4606 && test -f conftest2.$ac_objext; then
4607 : OK
4608 else
4609 am_cv_prog_cc_c_o=no
4610 break
4611 fi
4612 done
4613 # aligned with autoconf, so not including core; see bug#72225.
4614 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4615 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4616 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4617 unset am_i ;;
4618 esac
4619 fi
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4621 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4622 if test "$am_cv_prog_cc_c_o" != yes; then
4623 # Losing compiler, so override with the script.
4624 # FIXME: It is wrong to rewrite CC.
4625 # But if we don't then we get into trouble of one sort or another.
4626 # A longer-term fix would be to have automake use am__CC in this case,
4627 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4628 CC="$am_aux_dir/compile $CC"
4629 fi
4630 ac_ext=c
4631 ac_cpp='$CPP $CPPFLAGS'
4632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635
4636 DEPDIR="${am__leading_dot}deps"
4637
4638 ac_config_commands="$ac_config_commands depfiles"
4639
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4641 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4642 cat > confinc.mk << 'END'
4643 am__doit:
4644 @echo this is the am__doit target >confinc.out
4645 .PHONY: am__doit
4646 END
4647 am__include="#"
4648 am__quote=
4649 # BSD make does it like this.
4650 echo '.include "confinc.mk" # ignored' > confmf.BSD
4651 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4652 echo 'include confinc.mk # ignored' > confmf.GNU
4653 _am_result=no
4654 for s in GNU BSD; do
4655 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4656 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }
4660 case $?:`cat confinc.out 2>/dev/null` in #(
4661 '0:this is the am__doit target') :
4662 case $s in #(
4663 BSD) :
4664 am__include='.include' am__quote='"' ;; #(
4665 *) :
4666 am__include='include' am__quote='' ;;
4667 esac ;; #(
4668 *) :
4669 ;;
4670 esac
4671 if test "$am__include" != "#"; then
4672 _am_result="yes ($s style)"
4673 break
4674 fi
4675 done
4676 rm -f confinc.* confmf.*
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4678 printf "%s\n" "${_am_result}" >&6; }
4679
4680 # Check whether --enable-dependency-tracking was given.
4681 if test ${enable_dependency_tracking+y}
4682 then :
4683 enableval=$enable_dependency_tracking;
4684 fi
4685
4686 if test "x$enable_dependency_tracking" != xno; then
4687 am_depcomp="$ac_aux_dir/depcomp"
4688 AMDEPBACKSLASH='\'
4689 am__nodep='_no'
4690 fi
4691 if test "x$enable_dependency_tracking" != xno; then
4692 AMDEP_TRUE=
4693 AMDEP_FALSE='#'
4694 else
4695 AMDEP_TRUE='#'
4696 AMDEP_FALSE=
4697 fi
4698
4699
4700
4701 depcc="$CC" am_compiler_list=
4702
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4704 printf %s "checking dependency style of $depcc... " >&6; }
4705 if test ${am_cv_CC_dependencies_compiler_type+y}
4706 then :
4707 printf %s "(cached) " >&6
4708 else case e in #(
4709 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4710 # We make a subdir and do the tests there. Otherwise we can end up
4711 # making bogus files that we don't know about and never remove. For
4712 # instance it was reported that on HP-UX the gcc test will end up
4713 # making a dummy file named 'D' -- because '-MD' means "put the output
4714 # in D".
4715 rm -rf conftest.dir
4716 mkdir conftest.dir
4717 # Copy depcomp to subdir because otherwise we won't find it if we're
4718 # using a relative directory.
4719 cp "$am_depcomp" conftest.dir
4720 cd conftest.dir
4721 # We will build objects and dependencies in a subdirectory because
4722 # it helps to detect inapplicable dependency modes. For instance
4723 # both Tru64's cc and ICC support -MD to output dependencies as a
4724 # side effect of compilation, but ICC will put the dependencies in
4725 # the current directory while Tru64 will put them in the object
4726 # directory.
4727 mkdir sub
4728
4729 am_cv_CC_dependencies_compiler_type=none
4730 if test "$am_compiler_list" = ""; then
4731 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4732 fi
4733 am__universal=false
4734 case " $depcc " in #(
4735 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4736 esac
4737
4738 for depmode in $am_compiler_list; do
4739 # Setup a source with many dependencies, because some compilers
4740 # like to wrap large dependency lists on column 80 (with \), and
4741 # we should not choose a depcomp mode which is confused by this.
4742 #
4743 # We need to recreate these files for each test, as the compiler may
4744 # overwrite some of them when testing with obscure command lines.
4745 # This happens at least with the AIX C compiler.
4746 : > sub/conftest.c
4747 for i in 1 2 3 4 5 6; do
4748 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4749 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4750 # Solaris 10 /bin/sh.
4751 echo '/* dummy */' > sub/conftst$i.h
4752 done
4753 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4754
4755 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4756 # mode. It turns out that the SunPro C++ compiler does not properly
4757 # handle '-M -o', and we need to detect this. Also, some Intel
4758 # versions had trouble with output in subdirs.
4759 am__obj=sub/conftest.${OBJEXT-o}
4760 am__minus_obj="-o $am__obj"
4761 case $depmode in
4762 gcc)
4763 # This depmode causes a compiler race in universal mode.
4764 test "$am__universal" = false || continue
4765 ;;
4766 nosideeffect)
4767 # After this tag, mechanisms are not by side-effect, so they'll
4768 # only be used when explicitly requested.
4769 if test "x$enable_dependency_tracking" = xyes; then
4770 continue
4771 else
4772 break
4773 fi
4774 ;;
4775 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4776 # This compiler won't grok '-c -o', but also, the minuso test has
4777 # not run yet. These depmodes are late enough in the game, and
4778 # so weak that their functioning should not be impacted.
4779 am__obj=conftest.${OBJEXT-o}
4780 am__minus_obj=
4781 ;;
4782 none) break ;;
4783 esac
4784 if depmode=$depmode \
4785 source=sub/conftest.c object=$am__obj \
4786 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4787 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4788 >/dev/null 2>conftest.err &&
4789 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4790 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4791 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4792 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4793 # icc doesn't choke on unknown options, it will just issue warnings
4794 # or remarks (even with -Werror). So we grep stderr for any message
4795 # that says an option was ignored or not supported.
4796 # When given -MP, icc 7.0 and 7.1 complain thus:
4797 # icc: Command line warning: ignoring option '-M'; no argument required
4798 # The diagnosis changed in icc 8.0:
4799 # icc: Command line remark: option '-MP' not supported
4800 if (grep 'ignoring option' conftest.err ||
4801 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4802 am_cv_CC_dependencies_compiler_type=$depmode
4803 break
4804 fi
4805 fi
4806 done
4807
4808 cd ..
4809 rm -rf conftest.dir
4810 else
4811 am_cv_CC_dependencies_compiler_type=none
4812 fi
4813 ;;
4814 esac
4815 fi
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4817 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4818 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4819
4820 if
4821 test "x$enable_dependency_tracking" != xno \
4822 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4823 am__fastdepCC_TRUE=
4824 am__fastdepCC_FALSE='#'
4825 else
4826 am__fastdepCC_TRUE='#'
4827 am__fastdepCC_FALSE=
4828 fi
4829
4830
4831
4832
4833
4834 if test -n "$ac_tool_prefix"; then
4835 for ac_prog in ar lib "link -lib"
4836 do
4837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 printf %s "checking for $ac_word... " >&6; }
4841 if test ${ac_cv_prog_AR+y}
4842 then :
4843 printf %s "(cached) " >&6
4844 else case e in #(
4845 e) if test -n "$AR"; then
4846 ac_cv_prog_AR="$AR" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4850 do
4851 IFS=$as_save_IFS
4852 case $as_dir in #(((
4853 '') as_dir=./ ;;
4854 */) ;;
4855 *) as_dir=$as_dir/ ;;
4856 esac
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4861 break 2
4862 fi
4863 done
4864 done
4865 IFS=$as_save_IFS
4866
4867 fi ;;
4868 esac
4869 fi
4870 AR=$ac_cv_prog_AR
4871 if test -n "$AR"; then
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4873 printf "%s\n" "$AR" >&6; }
4874 else
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 printf "%s\n" "no" >&6; }
4877 fi
4878
4879
4880 test -n "$AR" && break
4881 done
4882 fi
4883 if test -z "$AR"; then
4884 ac_ct_AR=$AR
4885 for ac_prog in ar lib "link -lib"
4886 do
4887 # Extract the first word of "$ac_prog", so it can be a program name with args.
4888 set dummy $ac_prog; ac_word=$2
4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890 printf %s "checking for $ac_word... " >&6; }
4891 if test ${ac_cv_prog_ac_ct_AR+y}
4892 then :
4893 printf %s "(cached) " >&6
4894 else case e in #(
4895 e) if test -n "$ac_ct_AR"; then
4896 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901 IFS=$as_save_IFS
4902 case $as_dir in #(((
4903 '') as_dir=./ ;;
4904 */) ;;
4905 *) as_dir=$as_dir/ ;;
4906 esac
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_ac_ct_AR="$ac_prog"
4910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4911 break 2
4912 fi
4913 done
4914 done
4915 IFS=$as_save_IFS
4916
4917 fi ;;
4918 esac
4919 fi
4920 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4921 if test -n "$ac_ct_AR"; then
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4923 printf "%s\n" "$ac_ct_AR" >&6; }
4924 else
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 printf "%s\n" "no" >&6; }
4927 fi
4928
4929
4930 test -n "$ac_ct_AR" && break
4931 done
4932
4933 if test "x$ac_ct_AR" = x; then
4934 AR="false"
4935 else
4936 case $cross_compiling:$ac_tool_warned in
4937 yes:)
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4939 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4940 ac_tool_warned=yes ;;
4941 esac
4942 AR=$ac_ct_AR
4943 fi
4944 fi
4945
4946 : ${AR=ar}
4947 : ${ARFLAGS=cr}
4948
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4950 printf %s "checking the archiver ($AR) interface... " >&6; }
4951 if test ${am_cv_ar_interface+y}
4952 then :
4953 printf %s "(cached) " >&6
4954 else case e in #(
4955 e) ac_ext=c
4956 ac_cpp='$CPP $CPPFLAGS'
4957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4960
4961 am_cv_ar_interface=ar
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 int some_variable = 0;
4965 _ACEOF
4966 if ac_fn_c_try_compile "$LINENO"
4967 then :
4968 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
4969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4970 (eval $am_ar_try) 2>&5
4971 ac_status=$?
4972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4973 test $ac_status = 0; }
4974 if test "$ac_status" -eq 0; then
4975 am_cv_ar_interface=ar
4976 else
4977 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4979 (eval $am_ar_try) 2>&5
4980 ac_status=$?
4981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4982 test $ac_status = 0; }
4983 if test "$ac_status" -eq 0; then
4984 am_cv_ar_interface=lib
4985 else
4986 am_cv_ar_interface=unknown
4987 fi
4988 fi
4989 rm -f conftest.lib libconftest.a
4990
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4993 ac_ext=c
4994 ac_cpp='$CPP $CPPFLAGS'
4995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4998 ;;
4999 esac
5000 fi
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5002 printf "%s\n" "$am_cv_ar_interface" >&6; }
5003
5004 case $am_cv_ar_interface in
5005 ar)
5006 ;;
5007 lib)
5008 # Microsoft lib, so override with the ar-lib wrapper script.
5009 # FIXME: It is wrong to rewrite AR.
5010 # But if we don't then we get into trouble of one sort or another.
5011 # A longer-term fix would be to have automake use am__AR in this case,
5012 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5013 # similar.
5014 AR="$am_aux_dir/ar-lib $AR"
5015 ;;
5016 unknown)
5017 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5018 ;;
5019 esac
5020
5021 # Check whether --enable-static was given.
5022 if test ${enable_static+y}
5023 then :
5024 enableval=$enable_static; p=${PACKAGE-default}
5025 case $enableval in
5026 yes) enable_static=yes ;;
5027 no) enable_static=no ;;
5028 *)
5029 enable_static=no
5030 # Look at the argument we got. We use all the common list separators.
5031 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5032 for pkg in $enableval; do
5033 IFS=$lt_save_ifs
5034 if test "X$pkg" = "X$p"; then
5035 enable_static=yes
5036 fi
5037 done
5038 IFS=$lt_save_ifs
5039 ;;
5040 esac
5041 else case e in #(
5042 e) enable_static=no ;;
5043 esac
5044 fi
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054 case `pwd` in
5055 *\ * | *\ *)
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5057 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5058 esac
5059
5060
5061
5062 macro_version='2.5.4'
5063 macro_revision='2.5.4'
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078 ltmain=$ac_aux_dir/ltmain.sh
5079
5080
5081
5082 # Make sure we can run config.sub.
5083 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5084 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5085
5086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5087 printf %s "checking build system type... " >&6; }
5088 if test ${ac_cv_build+y}
5089 then :
5090 printf %s "(cached) " >&6
5091 else case e in #(
5092 e) ac_build_alias=$build_alias
5093 test "x$ac_build_alias" = x &&
5094 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5095 test "x$ac_build_alias" = x &&
5096 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5097 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5098 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5099 ;;
5100 esac
5101 fi
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5103 printf "%s\n" "$ac_cv_build" >&6; }
5104 case $ac_cv_build in
5105 *-*-*) ;;
5106 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5107 esac
5108 build=$ac_cv_build
5109 ac_save_IFS=$IFS; IFS='-'
5110 set x $ac_cv_build
5111 shift
5112 build_cpu=$1
5113 build_vendor=$2
5114 shift; shift
5115 # Remember, the first character of IFS is used to create $*,
5116 # except with old shells:
5117 build_os=$*
5118 IFS=$ac_save_IFS
5119 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5120
5121
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5123 printf %s "checking host system type... " >&6; }
5124 if test ${ac_cv_host+y}
5125 then :
5126 printf %s "(cached) " >&6
5127 else case e in #(
5128 e) if test "x$host_alias" = x; then
5129 ac_cv_host=$ac_cv_build
5130 else
5131 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5132 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5133 fi
5134 ;;
5135 esac
5136 fi
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5138 printf "%s\n" "$ac_cv_host" >&6; }
5139 case $ac_cv_host in
5140 *-*-*) ;;
5141 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5142 esac
5143 host=$ac_cv_host
5144 ac_save_IFS=$IFS; IFS='-'
5145 set x $ac_cv_host
5146 shift
5147 host_cpu=$1
5148 host_vendor=$2
5149 shift; shift
5150 # Remember, the first character of IFS is used to create $*,
5151 # except with old shells:
5152 host_os=$*
5153 IFS=$ac_save_IFS
5154 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5155
5156
5157 # Backslashify metacharacters that are still active within
5158 # double-quoted strings.
5159 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5160
5161 # Same as above, but do not quote variable references.
5162 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5163
5164 # Sed substitution to delay expansion of an escaped shell variable in a
5165 # double_quote_subst'ed string.
5166 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5167
5168 # Sed substitution to delay expansion of an escaped single quote.
5169 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5170
5171 # Sed substitution to avoid accidental globbing in evaled expressions
5172 no_glob_subst='s/\*/\\\*/g'
5173
5174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5175 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5176 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5177
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5179 printf %s "checking how to print strings... " >&6; }
5180 # Test print first, because it will be a builtin if present.
5181 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5182 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5183 ECHO='print -r --'
5184 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5185 ECHO='printf %s\n'
5186 else
5187 # Use this function as a fallback that always works.
5188 func_fallback_echo ()
5189 {
5190 eval 'cat <<_LTECHO_EOF
5191 $1
5192 _LTECHO_EOF'
5193 }
5194 ECHO='func_fallback_echo'
5195 fi
5196
5197 # func_echo_all arg...
5198 # Invoke $ECHO with all args, space-separated.
5199 func_echo_all ()
5200 {
5201 $ECHO ""
5202 }
5203
5204 case $ECHO in
5205 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5206 printf "%s\n" "printf" >&6; } ;;
5207 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5208 printf "%s\n" "print -r" >&6; } ;;
5209 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5210 printf "%s\n" "cat" >&6; } ;;
5211 esac
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5227 printf %s "checking for a sed that does not truncate output... " >&6; }
5228 if test ${ac_cv_path_SED+y}
5229 then :
5230 printf %s "(cached) " >&6
5231 else case e in #(
5232 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5233 for ac_i in 1 2 3 4 5 6 7; do
5234 ac_script="$ac_script$as_nl$ac_script"
5235 done
5236 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5237 { ac_script=; unset ac_script;}
5238 if test -z "$SED"; then
5239 ac_path_SED_found=false
5240 # Loop through the user's path and test for each of PROGNAME-LIST
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5243 do
5244 IFS=$as_save_IFS
5245 case $as_dir in #(((
5246 '') as_dir=./ ;;
5247 */) ;;
5248 *) as_dir=$as_dir/ ;;
5249 esac
5250 for ac_prog in sed gsed
5251 do
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5254 as_fn_executable_p "$ac_path_SED" || continue
5255 # Check for GNU ac_path_SED and select it if it is found.
5256 # Check for GNU $ac_path_SED
5257 case `"$ac_path_SED" --version 2>&1` in #(
5258 *GNU*)
5259 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5260 #(
5261 *)
5262 ac_count=0
5263 printf %s 0123456789 >"conftest.in"
5264 while :
5265 do
5266 cat "conftest.in" "conftest.in" >"conftest.tmp"
5267 mv "conftest.tmp" "conftest.in"
5268 cp "conftest.in" "conftest.nl"
5269 printf "%s\n" '' >> "conftest.nl"
5270 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5272 as_fn_arith $ac_count + 1 && ac_count=$as_val
5273 if test $ac_count -gt ${ac_path_SED_max-0}; then
5274 # Best one so far, save it but keep looking for a better one
5275 ac_cv_path_SED="$ac_path_SED"
5276 ac_path_SED_max=$ac_count
5277 fi
5278 # 10*(2^10) chars as input seems more than enough
5279 test $ac_count -gt 10 && break
5280 done
5281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5282 esac
5283
5284 $ac_path_SED_found && break 3
5285 done
5286 done
5287 done
5288 IFS=$as_save_IFS
5289 if test -z "$ac_cv_path_SED"; then
5290 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5291 fi
5292 else
5293 ac_cv_path_SED=$SED
5294 fi
5295 ;;
5296 esac
5297 fi
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5299 printf "%s\n" "$ac_cv_path_SED" >&6; }
5300 SED="$ac_cv_path_SED"
5301 rm -f conftest.sed
5302
5303 test -z "$SED" && SED=sed
5304 Xsed="$SED -e 1s/^X//"
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5317 printf %s "checking for grep that handles long lines and -e... " >&6; }
5318 if test ${ac_cv_path_GREP+y}
5319 then :
5320 printf %s "(cached) " >&6
5321 else case e in #(
5322 e) if test -z "$GREP"; then
5323 ac_path_GREP_found=false
5324 # Loop through the user's path and test for each of PROGNAME-LIST
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5327 do
5328 IFS=$as_save_IFS
5329 case $as_dir in #(((
5330 '') as_dir=./ ;;
5331 */) ;;
5332 *) as_dir=$as_dir/ ;;
5333 esac
5334 for ac_prog in grep ggrep
5335 do
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5338 as_fn_executable_p "$ac_path_GREP" || continue
5339 # Check for GNU ac_path_GREP and select it if it is found.
5340 # Check for GNU $ac_path_GREP
5341 case `"$ac_path_GREP" --version 2>&1` in #(
5342 *GNU*)
5343 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5344 #(
5345 *)
5346 ac_count=0
5347 printf %s 0123456789 >"conftest.in"
5348 while :
5349 do
5350 cat "conftest.in" "conftest.in" >"conftest.tmp"
5351 mv "conftest.tmp" "conftest.in"
5352 cp "conftest.in" "conftest.nl"
5353 printf "%s\n" 'GREP' >> "conftest.nl"
5354 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5355 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5356 as_fn_arith $ac_count + 1 && ac_count=$as_val
5357 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5358 # Best one so far, save it but keep looking for a better one
5359 ac_cv_path_GREP="$ac_path_GREP"
5360 ac_path_GREP_max=$ac_count
5361 fi
5362 # 10*(2^10) chars as input seems more than enough
5363 test $ac_count -gt 10 && break
5364 done
5365 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5366 esac
5367
5368 $ac_path_GREP_found && break 3
5369 done
5370 done
5371 done
5372 IFS=$as_save_IFS
5373 if test -z "$ac_cv_path_GREP"; then
5374 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5375 fi
5376 else
5377 ac_cv_path_GREP=$GREP
5378 fi
5379 ;;
5380 esac
5381 fi
5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5383 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5384 GREP="$ac_cv_path_GREP"
5385
5386
5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5388 printf %s "checking for egrep... " >&6; }
5389 if test ${ac_cv_path_EGREP+y}
5390 then :
5391 printf %s "(cached) " >&6
5392 else case e in #(
5393 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5394 then ac_cv_path_EGREP="$GREP -E"
5395 else
5396 if test -z "$EGREP"; then
5397 ac_path_EGREP_found=false
5398 # Loop through the user's path and test for each of PROGNAME-LIST
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5401 do
5402 IFS=$as_save_IFS
5403 case $as_dir in #(((
5404 '') as_dir=./ ;;
5405 */) ;;
5406 *) as_dir=$as_dir/ ;;
5407 esac
5408 for ac_prog in egrep
5409 do
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5412 as_fn_executable_p "$ac_path_EGREP" || continue
5413 # Check for GNU ac_path_EGREP and select it if it is found.
5414 # Check for GNU $ac_path_EGREP
5415 case `"$ac_path_EGREP" --version 2>&1` in #(
5416 *GNU*)
5417 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5418 #(
5419 *)
5420 ac_count=0
5421 printf %s 0123456789 >"conftest.in"
5422 while :
5423 do
5424 cat "conftest.in" "conftest.in" >"conftest.tmp"
5425 mv "conftest.tmp" "conftest.in"
5426 cp "conftest.in" "conftest.nl"
5427 printf "%s\n" 'EGREP' >> "conftest.nl"
5428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5430 as_fn_arith $ac_count + 1 && ac_count=$as_val
5431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5432 # Best one so far, save it but keep looking for a better one
5433 ac_cv_path_EGREP="$ac_path_EGREP"
5434 ac_path_EGREP_max=$ac_count
5435 fi
5436 # 10*(2^10) chars as input seems more than enough
5437 test $ac_count -gt 10 && break
5438 done
5439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5440 esac
5441
5442 $ac_path_EGREP_found && break 3
5443 done
5444 done
5445 done
5446 IFS=$as_save_IFS
5447 if test -z "$ac_cv_path_EGREP"; then
5448 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5449 fi
5450 else
5451 ac_cv_path_EGREP=$EGREP
5452 fi
5453
5454 fi ;;
5455 esac
5456 fi
5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5458 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5459 EGREP="$ac_cv_path_EGREP"
5460
5461 EGREP_TRADITIONAL=$EGREP
5462 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5463
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5465 printf %s "checking for fgrep... " >&6; }
5466 if test ${ac_cv_path_FGREP+y}
5467 then :
5468 printf %s "(cached) " >&6
5469 else case e in #(
5470 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5471 then ac_cv_path_FGREP="$GREP -F"
5472 else
5473 if test -z "$FGREP"; then
5474 ac_path_FGREP_found=false
5475 # Loop through the user's path and test for each of PROGNAME-LIST
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5478 do
5479 IFS=$as_save_IFS
5480 case $as_dir in #(((
5481 '') as_dir=./ ;;
5482 */) ;;
5483 *) as_dir=$as_dir/ ;;
5484 esac
5485 for ac_prog in fgrep
5486 do
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5489 as_fn_executable_p "$ac_path_FGREP" || continue
5490 # Check for GNU ac_path_FGREP and select it if it is found.
5491 # Check for GNU $ac_path_FGREP
5492 case `"$ac_path_FGREP" --version 2>&1` in #(
5493 *GNU*)
5494 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5495 #(
5496 *)
5497 ac_count=0
5498 printf %s 0123456789 >"conftest.in"
5499 while :
5500 do
5501 cat "conftest.in" "conftest.in" >"conftest.tmp"
5502 mv "conftest.tmp" "conftest.in"
5503 cp "conftest.in" "conftest.nl"
5504 printf "%s\n" 'FGREP' >> "conftest.nl"
5505 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5507 as_fn_arith $ac_count + 1 && ac_count=$as_val
5508 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5509 # Best one so far, save it but keep looking for a better one
5510 ac_cv_path_FGREP="$ac_path_FGREP"
5511 ac_path_FGREP_max=$ac_count
5512 fi
5513 # 10*(2^10) chars as input seems more than enough
5514 test $ac_count -gt 10 && break
5515 done
5516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5517 esac
5518
5519 $ac_path_FGREP_found && break 3
5520 done
5521 done
5522 done
5523 IFS=$as_save_IFS
5524 if test -z "$ac_cv_path_FGREP"; then
5525 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5526 fi
5527 else
5528 ac_cv_path_FGREP=$FGREP
5529 fi
5530
5531 fi ;;
5532 esac
5533 fi
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5535 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5536 FGREP="$ac_cv_path_FGREP"
5537
5538
5539 test -z "$GREP" && GREP=grep
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559 # Check whether --with-gnu-ld was given.
5560 if test ${with_gnu_ld+y}
5561 then :
5562 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5563 else case e in #(
5564 e) with_gnu_ld=no ;;
5565 esac
5566 fi
5567
5568 ac_prog=ld
5569 if test yes = "$GCC"; then
5570 # Check if gcc -print-prog-name=ld gives a path.
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5572 printf %s "checking for ld used by $CC... " >&6; }
5573 case $host in
5574 *-*-mingw* | *-*-windows*)
5575 # gcc leaves a trailing carriage return, which upsets mingw
5576 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5577 *)
5578 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5579 esac
5580 case $ac_prog in
5581 # Accept absolute paths.
5582 [\\/]* | ?:[\\/]*)
5583 re_direlt='/[^/][^/]*/\.\./'
5584 # Canonicalize the pathname of ld
5585 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5586 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5587 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5588 done
5589 test -z "$LD" && LD=$ac_prog
5590 ;;
5591 "")
5592 # If it fails, then pretend we aren't using GCC.
5593 ac_prog=ld
5594 ;;
5595 *)
5596 # If it is relative, then search for the first ld in PATH.
5597 with_gnu_ld=unknown
5598 ;;
5599 esac
5600 elif test yes = "$with_gnu_ld"; then
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5602 printf %s "checking for GNU ld... " >&6; }
5603 else
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5605 printf %s "checking for non-GNU ld... " >&6; }
5606 fi
5607 if test ${lt_cv_path_LD+y}
5608 then :
5609 printf %s "(cached) " >&6
5610 else case e in #(
5611 e) if test -z "$LD"; then
5612 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5613 for ac_dir in $PATH; do
5614 IFS=$lt_save_ifs
5615 test -z "$ac_dir" && ac_dir=.
5616 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5617 lt_cv_path_LD=$ac_dir/$ac_prog
5618 # Check to see if the program is GNU ld. I'd rather use --version,
5619 # but apparently some variants of GNU ld only accept -v.
5620 # Break only if it was the GNU/non-GNU ld that we prefer.
5621 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5622 *GNU* | *'with BFD'*)
5623 test no != "$with_gnu_ld" && break
5624 ;;
5625 *)
5626 test yes != "$with_gnu_ld" && break
5627 ;;
5628 esac
5629 fi
5630 done
5631 IFS=$lt_save_ifs
5632 else
5633 lt_cv_path_LD=$LD # Let the user override the test with a path.
5634 fi ;;
5635 esac
5636 fi
5637
5638 LD=$lt_cv_path_LD
5639 if test -n "$LD"; then
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5641 printf "%s\n" "$LD" >&6; }
5642 else
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 printf "%s\n" "no" >&6; }
5645 fi
5646 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5648 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5649 if test ${lt_cv_prog_gnu_ld+y}
5650 then :
5651 printf %s "(cached) " >&6
5652 else case e in #(
5653 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5654 case `$LD -v 2>&1 </dev/null` in
5655 *GNU* | *'with BFD'*)
5656 lt_cv_prog_gnu_ld=yes
5657 ;;
5658 *)
5659 lt_cv_prog_gnu_ld=no
5660 ;;
5661 esac ;;
5662 esac
5663 fi
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5665 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5666 with_gnu_ld=$lt_cv_prog_gnu_ld
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5677 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5678 if test ${lt_cv_path_NM+y}
5679 then :
5680 printf %s "(cached) " >&6
5681 else case e in #(
5682 e) if test -n "$NM"; then
5683 # Let the user override the test.
5684 lt_cv_path_NM=$NM
5685 else
5686 lt_nm_to_check=${ac_tool_prefix}nm
5687 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5688 lt_nm_to_check="$lt_nm_to_check nm"
5689 fi
5690 for lt_tmp_nm in $lt_nm_to_check; do
5691 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5692 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5693 IFS=$lt_save_ifs
5694 test -z "$ac_dir" && ac_dir=.
5695 tmp_nm=$ac_dir/$lt_tmp_nm
5696 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5697 # Check to see if the nm accepts a BSD-compat flag.
5698 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5699 # nm: unknown option "B" ignored
5700 # Tru64's nm complains that /dev/null is an invalid object file
5701 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5702 case $build_os in
5703 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5704 *) lt_bad_file=/dev/null ;;
5705 esac
5706 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5707 *$lt_bad_file* | *'Invalid file or object type'*)
5708 lt_cv_path_NM="$tmp_nm -B"
5709 break 2
5710 ;;
5711 *)
5712 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5713 */dev/null*)
5714 lt_cv_path_NM="$tmp_nm -p"
5715 break 2
5716 ;;
5717 *)
5718 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5719 continue # so that we can try to find one that supports BSD flags
5720 ;;
5721 esac
5722 ;;
5723 esac
5724 fi
5725 done
5726 IFS=$lt_save_ifs
5727 done
5728 : ${lt_cv_path_NM=no}
5729 fi ;;
5730 esac
5731 fi
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5733 printf "%s\n" "$lt_cv_path_NM" >&6; }
5734 if test no != "$lt_cv_path_NM"; then
5735 NM=$lt_cv_path_NM
5736 else
5737 # Didn't find any BSD compatible name lister, look for dumpbin.
5738 if test -n "$DUMPBIN"; then :
5739 # Let the user override the test.
5740 else
5741 if test -n "$ac_tool_prefix"; then
5742 for ac_prog in dumpbin "link -dump"
5743 do
5744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747 printf %s "checking for $ac_word... " >&6; }
5748 if test ${ac_cv_prog_DUMPBIN+y}
5749 then :
5750 printf %s "(cached) " >&6
5751 else case e in #(
5752 e) if test -n "$DUMPBIN"; then
5753 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758 IFS=$as_save_IFS
5759 case $as_dir in #(((
5760 '') as_dir=./ ;;
5761 */) ;;
5762 *) as_dir=$as_dir/ ;;
5763 esac
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5766 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5768 break 2
5769 fi
5770 done
5771 done
5772 IFS=$as_save_IFS
5773
5774 fi ;;
5775 esac
5776 fi
5777 DUMPBIN=$ac_cv_prog_DUMPBIN
5778 if test -n "$DUMPBIN"; then
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5780 printf "%s\n" "$DUMPBIN" >&6; }
5781 else
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 printf "%s\n" "no" >&6; }
5784 fi
5785
5786
5787 test -n "$DUMPBIN" && break
5788 done
5789 fi
5790 if test -z "$DUMPBIN"; then
5791 ac_ct_DUMPBIN=$DUMPBIN
5792 for ac_prog in dumpbin "link -dump"
5793 do
5794 # Extract the first word of "$ac_prog", so it can be a program name with args.
5795 set dummy $ac_prog; ac_word=$2
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 printf %s "checking for $ac_word... " >&6; }
5798 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5799 then :
5800 printf %s "(cached) " >&6
5801 else case e in #(
5802 e) if test -n "$ac_ct_DUMPBIN"; then
5803 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808 IFS=$as_save_IFS
5809 case $as_dir in #(((
5810 '') as_dir=./ ;;
5811 */) ;;
5812 *) as_dir=$as_dir/ ;;
5813 esac
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820 done
5821 done
5822 IFS=$as_save_IFS
5823
5824 fi ;;
5825 esac
5826 fi
5827 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5828 if test -n "$ac_ct_DUMPBIN"; then
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5830 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5831 else
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 printf "%s\n" "no" >&6; }
5834 fi
5835
5836
5837 test -n "$ac_ct_DUMPBIN" && break
5838 done
5839
5840 if test "x$ac_ct_DUMPBIN" = x; then
5841 DUMPBIN=":"
5842 else
5843 case $cross_compiling:$ac_tool_warned in
5844 yes:)
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5846 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5847 ac_tool_warned=yes ;;
5848 esac
5849 DUMPBIN=$ac_ct_DUMPBIN
5850 fi
5851 fi
5852
5853 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5854 *COFF*)
5855 DUMPBIN="$DUMPBIN -symbols -headers"
5856 ;;
5857 *)
5858 DUMPBIN=:
5859 ;;
5860 esac
5861 fi
5862
5863 if test : != "$DUMPBIN"; then
5864 NM=$DUMPBIN
5865 fi
5866 fi
5867 test -z "$NM" && NM=nm
5868
5869
5870
5871
5872
5873
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5875 printf %s "checking the name lister ($NM) interface... " >&6; }
5876 if test ${lt_cv_nm_interface+y}
5877 then :
5878 printf %s "(cached) " >&6
5879 else case e in #(
5880 e) lt_cv_nm_interface="BSD nm"
5881 echo "int some_variable = 0;" > conftest.$ac_ext
5882 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5883 (eval "$ac_compile" 2>conftest.err)
5884 cat conftest.err >&5
5885 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5886 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5887 cat conftest.err >&5
5888 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5889 cat conftest.out >&5
5890 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5891 lt_cv_nm_interface="MS dumpbin"
5892 fi
5893 rm -f conftest* ;;
5894 esac
5895 fi
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5897 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5898
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5900 printf %s "checking whether ln -s works... " >&6; }
5901 LN_S=$as_ln_s
5902 if test "$LN_S" = "ln -s"; then
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5904 printf "%s\n" "yes" >&6; }
5905 else
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5907 printf "%s\n" "no, using $LN_S" >&6; }
5908 fi
5909
5910 # find the maximum length of command line arguments
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5912 printf %s "checking the maximum length of command line arguments... " >&6; }
5913 if test ${lt_cv_sys_max_cmd_len+y}
5914 then :
5915 printf %s "(cached) " >&6
5916 else case e in #(
5917 e) i=0
5918 teststring=ABCD
5919
5920 case $build_os in
5921 msdosdjgpp*)
5922 # On DJGPP, this test can blow up pretty badly due to problems in libc
5923 # (any single argument exceeding 2000 bytes causes a buffer overrun
5924 # during glob expansion). Even if it were fixed, the result of this
5925 # check would be larger than it should be.
5926 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5927 ;;
5928
5929 gnu* | ironclad*)
5930 # Under GNU Hurd and Ironclad, this test is not required because there
5931 # is no limit to the length of command line arguments.
5932 # Libtool will interpret -1 as no limit whatsoever
5933 lt_cv_sys_max_cmd_len=-1;
5934 ;;
5935
5936 cygwin* | mingw* | windows* | cegcc*)
5937 # On Win9x/ME, this test blows up -- it succeeds, but takes
5938 # about 5 minutes as the teststring grows exponentially.
5939 # Worse, since 9x/ME are not pre-emptively multitasking,
5940 # you end up with a "frozen" computer, even though with patience
5941 # the test eventually succeeds (with a max line length of 256k).
5942 # Instead, let's just punt: use the minimum linelength reported by
5943 # all of the supported platforms: 8192 (on NT/2K/XP).
5944 lt_cv_sys_max_cmd_len=8192;
5945 ;;
5946
5947 mint*)
5948 # On MiNT this can take a long time and run out of memory.
5949 lt_cv_sys_max_cmd_len=8192;
5950 ;;
5951
5952 amigaos*)
5953 # On AmigaOS with pdksh, this test takes hours, literally.
5954 # So we just punt and use a minimum line length of 8192.
5955 lt_cv_sys_max_cmd_len=8192;
5956 ;;
5957
5958 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5959 # This has been around since 386BSD, at least. Likely further.
5960 if test -x /sbin/sysctl; then
5961 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5962 elif test -x /usr/sbin/sysctl; then
5963 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5964 else
5965 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5966 fi
5967 # And add a safety zone
5968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5970 ;;
5971
5972 interix*)
5973 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5974 lt_cv_sys_max_cmd_len=196608
5975 ;;
5976
5977 os2*)
5978 # The test takes a long time on OS/2.
5979 lt_cv_sys_max_cmd_len=8192
5980 ;;
5981
5982 osf*)
5983 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5984 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5985 # nice to cause kernel panics so lets avoid the loop below.
5986 # First set a reasonable default.
5987 lt_cv_sys_max_cmd_len=16384
5988 #
5989 if test -x /sbin/sysconfig; then
5990 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5991 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5992 esac
5993 fi
5994 ;;
5995 sco3.2v5*)
5996 lt_cv_sys_max_cmd_len=102400
5997 ;;
5998 sysv5* | sco5v6* | sysv4.2uw2*)
5999 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6000 if test -n "$kargmax"; then
6001 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6002 else
6003 lt_cv_sys_max_cmd_len=32768
6004 fi
6005 ;;
6006 *)
6007 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6008 if test -n "$lt_cv_sys_max_cmd_len" && \
6009 test undefined != "$lt_cv_sys_max_cmd_len"; then
6010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6012 else
6013 # Make teststring a little bigger before we do anything with it.
6014 # a 1K string should be a reasonable start.
6015 for i in 1 2 3 4 5 6 7 8; do
6016 teststring=$teststring$teststring
6017 done
6018 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6019 # If test is not a shell built-in, we'll probably end up computing a
6020 # maximum length that is only half of the actual maximum length, but
6021 # we can't tell.
6022 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6023 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6024 test 17 != "$i" # 1/2 MB should be enough
6025 do
6026 i=`expr $i + 1`
6027 teststring=$teststring$teststring
6028 done
6029 # Only check the string length outside the loop.
6030 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6031 teststring=
6032 # Add a significant safety factor because C++ compilers can tack on
6033 # massive amounts of additional arguments before passing them to the
6034 # linker. It appears as though 1/2 is a usable value.
6035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6036 fi
6037 ;;
6038 esac
6039 ;;
6040 esac
6041 fi
6042
6043 if test -n "$lt_cv_sys_max_cmd_len"; then
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6045 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6046 else
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6048 printf "%s\n" "none" >&6; }
6049 fi
6050 max_cmd_len=$lt_cv_sys_max_cmd_len
6051
6052
6053
6054
6055
6056
6057 : ${CP="cp -f"}
6058 : ${MV="mv -f"}
6059 : ${RM="rm -f"}
6060
6061 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6062 lt_unset=unset
6063 else
6064 lt_unset=false
6065 fi
6066
6067
6068
6069
6070
6071 # test EBCDIC or ASCII
6072 case `echo X|tr X '\101'` in
6073 A) # ASCII based system
6074 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6075 lt_SP2NL='tr \040 \012'
6076 lt_NL2SP='tr \015\012 \040\040'
6077 ;;
6078 *) # EBCDIC based system
6079 lt_SP2NL='tr \100 \n'
6080 lt_NL2SP='tr \r\n \100\100'
6081 ;;
6082 esac
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6093 printf %s "checking how to convert $build file names to $host format... " >&6; }
6094 if test ${lt_cv_to_host_file_cmd+y}
6095 then :
6096 printf %s "(cached) " >&6
6097 else case e in #(
6098 e) case $host in
6099 *-*-mingw* )
6100 case $build in
6101 *-*-mingw* | *-*-windows* ) # actually msys
6102 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6103 ;;
6104 *-*-cygwin* )
6105 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6106 ;;
6107 * ) # otherwise, assume *nix
6108 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6109 ;;
6110 esac
6111 ;;
6112 *-*-cygwin* )
6113 case $build in
6114 *-*-mingw* | *-*-windows* ) # actually msys
6115 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6116 ;;
6117 *-*-cygwin* )
6118 lt_cv_to_host_file_cmd=func_convert_file_noop
6119 ;;
6120 * ) # otherwise, assume *nix
6121 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6122 ;;
6123 esac
6124 ;;
6125 * ) # unhandled hosts (and "normal" native builds)
6126 lt_cv_to_host_file_cmd=func_convert_file_noop
6127 ;;
6128 esac
6129 ;;
6130 esac
6131 fi
6132
6133 to_host_file_cmd=$lt_cv_to_host_file_cmd
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6135 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6136
6137
6138
6139
6140
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6142 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6143 if test ${lt_cv_to_tool_file_cmd+y}
6144 then :
6145 printf %s "(cached) " >&6
6146 else case e in #(
6147 e) #assume ordinary cross tools, or native build.
6148 lt_cv_to_tool_file_cmd=func_convert_file_noop
6149 case $host in
6150 *-*-mingw* | *-*-windows* )
6151 case $build in
6152 *-*-mingw* | *-*-windows* ) # actually msys
6153 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6154 ;;
6155 esac
6156 ;;
6157 esac
6158 ;;
6159 esac
6160 fi
6161
6162 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6164 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6165
6166
6167
6168
6169
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6171 printf %s "checking for $LD option to reload object files... " >&6; }
6172 if test ${lt_cv_ld_reload_flag+y}
6173 then :
6174 printf %s "(cached) " >&6
6175 else case e in #(
6176 e) lt_cv_ld_reload_flag='-r' ;;
6177 esac
6178 fi
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6180 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6181 reload_flag=$lt_cv_ld_reload_flag
6182 case $reload_flag in
6183 "" | " "*) ;;
6184 *) reload_flag=" $reload_flag" ;;
6185 esac
6186 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187 case $host_os in
6188 cygwin* | mingw* | windows* | pw32* | cegcc*)
6189 if test yes != "$GCC"; then
6190 reload_cmds=false
6191 fi
6192 ;;
6193 darwin*)
6194 if test yes = "$GCC"; then
6195 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6196 else
6197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6198 fi
6199 ;;
6200 esac
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210 # Extract the first word of "file", so it can be a program name with args.
6211 set dummy file; ac_word=$2
6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 printf %s "checking for $ac_word... " >&6; }
6214 if test ${ac_cv_prog_FILECMD+y}
6215 then :
6216 printf %s "(cached) " >&6
6217 else case e in #(
6218 e) if test -n "$FILECMD"; then
6219 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6223 do
6224 IFS=$as_save_IFS
6225 case $as_dir in #(((
6226 '') as_dir=./ ;;
6227 */) ;;
6228 *) as_dir=$as_dir/ ;;
6229 esac
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6232 ac_cv_prog_FILECMD="file"
6233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6234 break 2
6235 fi
6236 done
6237 done
6238 IFS=$as_save_IFS
6239
6240 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6241 fi ;;
6242 esac
6243 fi
6244 FILECMD=$ac_cv_prog_FILECMD
6245 if test -n "$FILECMD"; then
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6247 printf "%s\n" "$FILECMD" >&6; }
6248 else
6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 printf "%s\n" "no" >&6; }
6251 fi
6252
6253
6254
6255
6256
6257
6258
6259
6260 if test -n "$ac_tool_prefix"; then
6261 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6262 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 printf %s "checking for $ac_word... " >&6; }
6265 if test ${ac_cv_prog_OBJDUMP+y}
6266 then :
6267 printf %s "(cached) " >&6
6268 else case e in #(
6269 e) if test -n "$OBJDUMP"; then
6270 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275 IFS=$as_save_IFS
6276 case $as_dir in #(((
6277 '') as_dir=./ ;;
6278 */) ;;
6279 *) as_dir=$as_dir/ ;;
6280 esac
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6283 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6285 break 2
6286 fi
6287 done
6288 done
6289 IFS=$as_save_IFS
6290
6291 fi ;;
6292 esac
6293 fi
6294 OBJDUMP=$ac_cv_prog_OBJDUMP
6295 if test -n "$OBJDUMP"; then
6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6297 printf "%s\n" "$OBJDUMP" >&6; }
6298 else
6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 printf "%s\n" "no" >&6; }
6301 fi
6302
6303
6304 fi
6305 if test -z "$ac_cv_prog_OBJDUMP"; then
6306 ac_ct_OBJDUMP=$OBJDUMP
6307 # Extract the first word of "objdump", so it can be a program name with args.
6308 set dummy objdump; ac_word=$2
6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 printf %s "checking for $ac_word... " >&6; }
6311 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6312 then :
6313 printf %s "(cached) " >&6
6314 else case e in #(
6315 e) if test -n "$ac_ct_OBJDUMP"; then
6316 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321 IFS=$as_save_IFS
6322 case $as_dir in #(((
6323 '') as_dir=./ ;;
6324 */) ;;
6325 *) as_dir=$as_dir/ ;;
6326 esac
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333 done
6334 done
6335 IFS=$as_save_IFS
6336
6337 fi ;;
6338 esac
6339 fi
6340 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6341 if test -n "$ac_ct_OBJDUMP"; then
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6343 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6344 else
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 printf "%s\n" "no" >&6; }
6347 fi
6348
6349 if test "x$ac_ct_OBJDUMP" = x; then
6350 OBJDUMP="false"
6351 else
6352 case $cross_compiling:$ac_tool_warned in
6353 yes:)
6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6355 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6356 ac_tool_warned=yes ;;
6357 esac
6358 OBJDUMP=$ac_ct_OBJDUMP
6359 fi
6360 else
6361 OBJDUMP="$ac_cv_prog_OBJDUMP"
6362 fi
6363
6364 test -z "$OBJDUMP" && OBJDUMP=objdump
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6375 printf %s "checking how to recognize dependent libraries... " >&6; }
6376 if test ${lt_cv_deplibs_check_method+y}
6377 then :
6378 printf %s "(cached) " >&6
6379 else case e in #(
6380 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6381 lt_cv_file_magic_test_file=
6382 lt_cv_deplibs_check_method='unknown'
6383 # Need to set the preceding variable on all platforms that support
6384 # interlibrary dependencies.
6385 # 'none' -- dependencies not supported.
6386 # 'unknown' -- same as none, but documents that we really don't know.
6387 # 'pass_all' -- all dependencies passed with no checks.
6388 # 'file_magic [[regex]]' -- check by looking for files in library path
6389 # that responds to the $file_magic_cmd with a given extended regex.
6390 # If you have 'file' or equivalent on your system and you're not sure
6391 # whether 'pass_all' will *always* work, you probably want this one.
6392
6393 case $host_os in
6394 aix[4-9]*)
6395 lt_cv_deplibs_check_method=pass_all
6396 ;;
6397
6398 beos*)
6399 lt_cv_deplibs_check_method=pass_all
6400 ;;
6401
6402 bsdi[45]*)
6403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6404 lt_cv_file_magic_cmd='$FILECMD -L'
6405 lt_cv_file_magic_test_file=/shlib/libc.so
6406 ;;
6407
6408 cygwin*)
6409 # func_win32_libid is a shell function defined in ltmain.sh
6410 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6411 lt_cv_file_magic_cmd='func_win32_libid'
6412 ;;
6413
6414 mingw* | windows* | pw32*)
6415 # Base MSYS/MinGW do not provide the 'file' command needed by
6416 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6417 # unless we find 'file', for example because we are cross-compiling.
6418 if ( file / ) >/dev/null 2>&1; then
6419 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6420 lt_cv_file_magic_cmd='func_win32_libid'
6421 else
6422 # Keep this pattern in sync with the one in func_win32_libid.
6423 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6424 lt_cv_file_magic_cmd='$OBJDUMP -f'
6425 fi
6426 ;;
6427
6428 cegcc*)
6429 # use the weaker test based on 'objdump'. See mingw*.
6430 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6431 lt_cv_file_magic_cmd='$OBJDUMP -f'
6432 ;;
6433
6434 darwin* | rhapsody*)
6435 lt_cv_deplibs_check_method=pass_all
6436 ;;
6437
6438 freebsd* | dragonfly* | midnightbsd*)
6439 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6440 case $host_cpu in
6441 i*86 )
6442 # Not sure whether the presence of OpenBSD here was a mistake.
6443 # Let's accept both of them until this is cleared up.
6444 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6445 lt_cv_file_magic_cmd=$FILECMD
6446 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6447 ;;
6448 esac
6449 else
6450 lt_cv_deplibs_check_method=pass_all
6451 fi
6452 ;;
6453
6454 haiku*)
6455 lt_cv_deplibs_check_method=pass_all
6456 ;;
6457
6458 hpux10.20* | hpux11*)
6459 lt_cv_file_magic_cmd=$FILECMD
6460 case $host_cpu in
6461 ia64*)
6462 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6463 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6464 ;;
6465 hppa*64*)
6466 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]'
6467 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6468 ;;
6469 *)
6470 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6471 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6472 ;;
6473 esac
6474 ;;
6475
6476 interix[3-9]*)
6477 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6479 ;;
6480
6481 irix5* | irix6* | nonstopux*)
6482 case $LD in
6483 *-32|*"-32 ") libmagic=32-bit;;
6484 *-n32|*"-n32 ") libmagic=N32;;
6485 *-64|*"-64 ") libmagic=64-bit;;
6486 *) libmagic=never-match;;
6487 esac
6488 lt_cv_deplibs_check_method=pass_all
6489 ;;
6490
6491 # This must be glibc/ELF.
6492 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495
6496 *-mlibc)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499
6500 netbsd* | netbsdelf*-gnu)
6501 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6503 else
6504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6505 fi
6506 ;;
6507
6508 newos6*)
6509 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6510 lt_cv_file_magic_cmd=$FILECMD
6511 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6512 ;;
6513
6514 *nto* | *qnx*)
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517
6518 openbsd*)
6519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6521 else
6522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6523 fi
6524 ;;
6525
6526 osf3* | osf4* | osf5*)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529
6530 rdos*)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
6533
6534 serenity*)
6535 lt_cv_deplibs_check_method=pass_all
6536 ;;
6537
6538 solaris*)
6539 lt_cv_deplibs_check_method=pass_all
6540 ;;
6541
6542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6543 lt_cv_deplibs_check_method=pass_all
6544 ;;
6545
6546 sysv4 | sysv4.3*)
6547 case $host_vendor in
6548 motorola)
6549 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]'
6550 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6551 ;;
6552 ncr)
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
6555 sequent)
6556 lt_cv_file_magic_cmd='/bin/file'
6557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6558 ;;
6559 sni)
6560 lt_cv_file_magic_cmd='/bin/file'
6561 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6562 lt_cv_file_magic_test_file=/lib/libc.so
6563 ;;
6564 siemens)
6565 lt_cv_deplibs_check_method=pass_all
6566 ;;
6567 pc)
6568 lt_cv_deplibs_check_method=pass_all
6569 ;;
6570 esac
6571 ;;
6572
6573 tpf*)
6574 lt_cv_deplibs_check_method=pass_all
6575 ;;
6576 os2*)
6577 lt_cv_deplibs_check_method=pass_all
6578 ;;
6579 esac
6580 ;;
6581 esac
6582 fi
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6584 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6585
6586 file_magic_glob=
6587 want_nocaseglob=no
6588 if test "$build" = "$host"; then
6589 case $host_os in
6590 mingw* | windows* | pw32*)
6591 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6592 want_nocaseglob=yes
6593 else
6594 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6595 fi
6596 ;;
6597 esac
6598 fi
6599
6600 file_magic_cmd=$lt_cv_file_magic_cmd
6601 deplibs_check_method=$lt_cv_deplibs_check_method
6602 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625 if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6627 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 printf %s "checking for $ac_word... " >&6; }
6630 if test ${ac_cv_prog_DLLTOOL+y}
6631 then :
6632 printf %s "(cached) " >&6
6633 else case e in #(
6634 e) if test -n "$DLLTOOL"; then
6635 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640 IFS=$as_save_IFS
6641 case $as_dir in #(((
6642 '') as_dir=./ ;;
6643 */) ;;
6644 *) as_dir=$as_dir/ ;;
6645 esac
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6648 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656 fi ;;
6657 esac
6658 fi
6659 DLLTOOL=$ac_cv_prog_DLLTOOL
6660 if test -n "$DLLTOOL"; then
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6662 printf "%s\n" "$DLLTOOL" >&6; }
6663 else
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 printf "%s\n" "no" >&6; }
6666 fi
6667
6668
6669 fi
6670 if test -z "$ac_cv_prog_DLLTOOL"; then
6671 ac_ct_DLLTOOL=$DLLTOOL
6672 # Extract the first word of "dlltool", so it can be a program name with args.
6673 set dummy dlltool; ac_word=$2
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 printf %s "checking for $ac_word... " >&6; }
6676 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6677 then :
6678 printf %s "(cached) " >&6
6679 else case e in #(
6680 e) if test -n "$ac_ct_DLLTOOL"; then
6681 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 case $as_dir in #(((
6688 '') as_dir=./ ;;
6689 */) ;;
6690 *) as_dir=$as_dir/ ;;
6691 esac
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6694 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6696 break 2
6697 fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702 fi ;;
6703 esac
6704 fi
6705 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6706 if test -n "$ac_ct_DLLTOOL"; then
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6708 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6709 else
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 printf "%s\n" "no" >&6; }
6712 fi
6713
6714 if test "x$ac_ct_DLLTOOL" = x; then
6715 DLLTOOL="false"
6716 else
6717 case $cross_compiling:$ac_tool_warned in
6718 yes:)
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6722 esac
6723 DLLTOOL=$ac_ct_DLLTOOL
6724 fi
6725 else
6726 DLLTOOL="$ac_cv_prog_DLLTOOL"
6727 fi
6728
6729 test -z "$DLLTOOL" && DLLTOOL=dlltool
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6741 printf %s "checking how to associate runtime and link libraries... " >&6; }
6742 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6743 then :
6744 printf %s "(cached) " >&6
6745 else case e in #(
6746 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6747
6748 case $host_os in
6749 cygwin* | mingw* | windows* | pw32* | cegcc*)
6750 # two different shell functions defined in ltmain.sh;
6751 # decide which one to use based on capabilities of $DLLTOOL
6752 case `$DLLTOOL --help 2>&1` in
6753 *--identify-strict*)
6754 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6755 ;;
6756 *)
6757 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6758 ;;
6759 esac
6760 ;;
6761 *)
6762 # fallback: assume linklib IS sharedlib
6763 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6764 ;;
6765 esac
6766 ;;
6767 esac
6768 fi
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6770 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6771 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6772 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6773
6774
6775
6776
6777
6778
6779
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 printf %s "checking for $ac_word... " >&6; }
6785 if test ${ac_cv_prog_RANLIB+y}
6786 then :
6787 printf %s "(cached) " >&6
6788 else case e in #(
6789 e) if test -n "$RANLIB"; then
6790 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795 IFS=$as_save_IFS
6796 case $as_dir in #(((
6797 '') as_dir=./ ;;
6798 */) ;;
6799 *) as_dir=$as_dir/ ;;
6800 esac
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6805 break 2
6806 fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811 fi ;;
6812 esac
6813 fi
6814 RANLIB=$ac_cv_prog_RANLIB
6815 if test -n "$RANLIB"; then
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6817 printf "%s\n" "$RANLIB" >&6; }
6818 else
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 printf "%s\n" "no" >&6; }
6821 fi
6822
6823
6824 fi
6825 if test -z "$ac_cv_prog_RANLIB"; then
6826 ac_ct_RANLIB=$RANLIB
6827 # Extract the first word of "ranlib", so it can be a program name with args.
6828 set dummy ranlib; ac_word=$2
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 printf %s "checking for $ac_word... " >&6; }
6831 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6832 then :
6833 printf %s "(cached) " >&6
6834 else case e in #(
6835 e) if test -n "$ac_ct_RANLIB"; then
6836 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841 IFS=$as_save_IFS
6842 case $as_dir in #(((
6843 '') as_dir=./ ;;
6844 */) ;;
6845 *) as_dir=$as_dir/ ;;
6846 esac
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6849 ac_cv_prog_ac_ct_RANLIB="ranlib"
6850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857 fi ;;
6858 esac
6859 fi
6860 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6861 if test -n "$ac_ct_RANLIB"; then
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6863 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6864 else
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 printf "%s\n" "no" >&6; }
6867 fi
6868
6869 if test "x$ac_ct_RANLIB" = x; then
6870 RANLIB=":"
6871 else
6872 case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6877 esac
6878 RANLIB=$ac_ct_RANLIB
6879 fi
6880 else
6881 RANLIB="$ac_cv_prog_RANLIB"
6882 fi
6883
6884 if test -n "$ac_tool_prefix"; then
6885 for ac_prog in ar
6886 do
6887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 printf %s "checking for $ac_word... " >&6; }
6891 if test ${ac_cv_prog_AR+y}
6892 then :
6893 printf %s "(cached) " >&6
6894 else case e in #(
6895 e) if test -n "$AR"; then
6896 ac_cv_prog_AR="$AR" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901 IFS=$as_save_IFS
6902 case $as_dir in #(((
6903 '') as_dir=./ ;;
6904 */) ;;
6905 *) as_dir=$as_dir/ ;;
6906 esac
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi ;;
6918 esac
6919 fi
6920 AR=$ac_cv_prog_AR
6921 if test -n "$AR"; then
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6923 printf "%s\n" "$AR" >&6; }
6924 else
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 printf "%s\n" "no" >&6; }
6927 fi
6928
6929
6930 test -n "$AR" && break
6931 done
6932 fi
6933 if test -z "$AR"; then
6934 ac_ct_AR=$AR
6935 for ac_prog in ar
6936 do
6937 # Extract the first word of "$ac_prog", so it can be a program name with args.
6938 set dummy $ac_prog; ac_word=$2
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 printf %s "checking for $ac_word... " >&6; }
6941 if test ${ac_cv_prog_ac_ct_AR+y}
6942 then :
6943 printf %s "(cached) " >&6
6944 else case e in #(
6945 e) if test -n "$ac_ct_AR"; then
6946 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951 IFS=$as_save_IFS
6952 case $as_dir in #(((
6953 '') as_dir=./ ;;
6954 */) ;;
6955 *) as_dir=$as_dir/ ;;
6956 esac
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_ac_ct_AR="$ac_prog"
6960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6966
6967 fi ;;
6968 esac
6969 fi
6970 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6971 if test -n "$ac_ct_AR"; then
6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6973 printf "%s\n" "$ac_ct_AR" >&6; }
6974 else
6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 printf "%s\n" "no" >&6; }
6977 fi
6978
6979
6980 test -n "$ac_ct_AR" && break
6981 done
6982
6983 if test "x$ac_ct_AR" = x; then
6984 AR="false"
6985 else
6986 case $cross_compiling:$ac_tool_warned in
6987 yes:)
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990 ac_tool_warned=yes ;;
6991 esac
6992 AR=$ac_ct_AR
6993 fi
6994 fi
6995
6996 : ${AR=ar}
6997
6998
6999
7000
7001
7002
7003 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7004 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7005 # higher priority because that's what people were doing historically (setting
7006 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7007 # variable obsoleted/removed.
7008
7009 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7010 lt_ar_flags=$AR_FLAGS
7011
7012
7013
7014
7015
7016
7017 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7018 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7019
7020
7021
7022
7023
7024
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7026 printf %s "checking for archiver @FILE support... " >&6; }
7027 if test ${lt_cv_ar_at_file+y}
7028 then :
7029 printf %s "(cached) " >&6
7030 else case e in #(
7031 e) lt_cv_ar_at_file=no
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034
7035 int
7036 main (void)
7037 {
7038
7039 ;
7040 return 0;
7041 }
7042 _ACEOF
7043 if ac_fn_c_try_compile "$LINENO"
7044 then :
7045 echo conftest.$ac_objext > conftest.lst
7046 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7048 (eval $lt_ar_try) 2>&5
7049 ac_status=$?
7050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051 test $ac_status = 0; }
7052 if test 0 -eq "$ac_status"; then
7053 # Ensure the archiver fails upon bogus file names.
7054 rm -f conftest.$ac_objext libconftest.a
7055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7056 (eval $lt_ar_try) 2>&5
7057 ac_status=$?
7058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7059 test $ac_status = 0; }
7060 if test 0 -ne "$ac_status"; then
7061 lt_cv_ar_at_file=@
7062 fi
7063 fi
7064 rm -f conftest.* libconftest.a
7065
7066 fi
7067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7068 ;;
7069 esac
7070 fi
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7072 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7073
7074 if test no = "$lt_cv_ar_at_file"; then
7075 archiver_list_spec=
7076 else
7077 archiver_list_spec=$lt_cv_ar_at_file
7078 fi
7079
7080
7081
7082
7083
7084
7085
7086 if test -n "$ac_tool_prefix"; then
7087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7088 set dummy ${ac_tool_prefix}strip; ac_word=$2
7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 printf %s "checking for $ac_word... " >&6; }
7091 if test ${ac_cv_prog_STRIP+y}
7092 then :
7093 printf %s "(cached) " >&6
7094 else case e in #(
7095 e) if test -n "$STRIP"; then
7096 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101 IFS=$as_save_IFS
7102 case $as_dir in #(((
7103 '') as_dir=./ ;;
7104 */) ;;
7105 *) as_dir=$as_dir/ ;;
7106 esac
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7111 break 2
7112 fi
7113 done
7114 done
7115 IFS=$as_save_IFS
7116
7117 fi ;;
7118 esac
7119 fi
7120 STRIP=$ac_cv_prog_STRIP
7121 if test -n "$STRIP"; then
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7123 printf "%s\n" "$STRIP" >&6; }
7124 else
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 printf "%s\n" "no" >&6; }
7127 fi
7128
7129
7130 fi
7131 if test -z "$ac_cv_prog_STRIP"; then
7132 ac_ct_STRIP=$STRIP
7133 # Extract the first word of "strip", so it can be a program name with args.
7134 set dummy strip; ac_word=$2
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 printf %s "checking for $ac_word... " >&6; }
7137 if test ${ac_cv_prog_ac_ct_STRIP+y}
7138 then :
7139 printf %s "(cached) " >&6
7140 else case e in #(
7141 e) if test -n "$ac_ct_STRIP"; then
7142 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 case $as_dir in #(((
7149 '') as_dir=./ ;;
7150 */) ;;
7151 *) as_dir=$as_dir/ ;;
7152 esac
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7155 ac_cv_prog_ac_ct_STRIP="strip"
7156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159 done
7160 done
7161 IFS=$as_save_IFS
7162
7163 fi ;;
7164 esac
7165 fi
7166 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7167 if test -n "$ac_ct_STRIP"; then
7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7169 printf "%s\n" "$ac_ct_STRIP" >&6; }
7170 else
7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 printf "%s\n" "no" >&6; }
7173 fi
7174
7175 if test "x$ac_ct_STRIP" = x; then
7176 STRIP=":"
7177 else
7178 case $cross_compiling:$ac_tool_warned in
7179 yes:)
7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7181 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182 ac_tool_warned=yes ;;
7183 esac
7184 STRIP=$ac_ct_STRIP
7185 fi
7186 else
7187 STRIP="$ac_cv_prog_STRIP"
7188 fi
7189
7190 test -z "$STRIP" && STRIP=:
7191
7192
7193
7194
7195
7196
7197
7198 test -z "$RANLIB" && RANLIB=:
7199
7200
7201
7202
7203
7204
7205 # Determine commands to create old-style static archives.
7206 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7207 old_postinstall_cmds='chmod 644 $oldlib'
7208 old_postuninstall_cmds=
7209
7210 if test -n "$RANLIB"; then
7211 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7212 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7213 fi
7214
7215 case $host_os in
7216 darwin*)
7217 lock_old_archive_extraction=yes ;;
7218 *)
7219 lock_old_archive_extraction=no ;;
7220 esac
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260 # If no C compiler was specified, use CC.
7261 LTCC=${LTCC-"$CC"}
7262
7263 # If no C compiler flags were specified, use CFLAGS.
7264 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7265
7266 # Allow CC to be a program name with arguments.
7267 compiler=$CC
7268
7269
7270 # Check for command to grab the raw symbol name followed by C symbol from nm.
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7272 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7273 if test ${lt_cv_sys_global_symbol_pipe+y}
7274 then :
7275 printf %s "(cached) " >&6
7276 else case e in #(
7277 e)
7278 # These are sane defaults that work on at least a few old systems.
7279 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7280
7281 # Character class describing NM global symbol codes.
7282 symcode='[BCDEGRST]'
7283
7284 # Regexp to match symbols that can be accessed directly from C.
7285 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7286
7287 # Define system-specific variables.
7288 case $host_os in
7289 aix*)
7290 symcode='[BCDT]'
7291 ;;
7292 cygwin* | mingw* | windows* | pw32* | cegcc*)
7293 symcode='[ABCDGISTW]'
7294 ;;
7295 hpux*)
7296 if test ia64 = "$host_cpu"; then
7297 symcode='[ABCDEGRST]'
7298 fi
7299 ;;
7300 irix* | nonstopux*)
7301 symcode='[BCDEGRST]'
7302 ;;
7303 osf*)
7304 symcode='[BCDEGQRST]'
7305 ;;
7306 solaris*)
7307 symcode='[BCDRT]'
7308 ;;
7309 sco3.2v5*)
7310 symcode='[DT]'
7311 ;;
7312 sysv4.2uw2*)
7313 symcode='[DT]'
7314 ;;
7315 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7316 symcode='[ABDT]'
7317 ;;
7318 sysv4)
7319 symcode='[DFNSTU]'
7320 ;;
7321 esac
7322
7323 # If we're using GNU nm, then use its standard symbol codes.
7324 case `$NM -V 2>&1` in
7325 *GNU* | *'with BFD'*)
7326 symcode='[ABCDGIRSTW]' ;;
7327 esac
7328
7329 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7330 # Gets list of data symbols to import.
7331 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7332 # Adjust the below global symbol transforms to fixup imported variables.
7333 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7334 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7335 lt_c_name_lib_hook="\
7336 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7337 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7338 else
7339 # Disable hooks by default.
7340 lt_cv_sys_global_symbol_to_import=
7341 lt_cdecl_hook=
7342 lt_c_name_hook=
7343 lt_c_name_lib_hook=
7344 fi
7345
7346 # Transform an extracted symbol line into a proper C declaration.
7347 # Some systems (esp. on ia64) link data and code symbols differently,
7348 # so use this general approach.
7349 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7350 $lt_cdecl_hook\
7351 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7352 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7353
7354 # Transform an extracted symbol line into symbol name and symbol address
7355 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7356 $lt_c_name_hook\
7357 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7358 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7359
7360 # Transform an extracted symbol line into symbol name with lib prefix and
7361 # symbol address.
7362 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7363 $lt_c_name_lib_hook\
7364 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7365 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7366 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7367
7368 # Handle CRLF in mingw tool chain
7369 opt_cr=
7370 case $build_os in
7371 mingw* | windows*)
7372 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7373 ;;
7374 esac
7375
7376 # Try without a prefix underscore, then with it.
7377 for ac_symprfx in "" "_"; do
7378
7379 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7380 symxfrm="\\1 $ac_symprfx\\2 \\2"
7381
7382 # Write the raw and C identifiers.
7383 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7384 # Fake it for dumpbin and say T for any non-static function,
7385 # D for any global variable and I for any imported variable.
7386 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7387 # which start with @ or ?.
7388 lt_cv_sys_global_symbol_pipe="$AWK '"\
7389 " {last_section=section; section=\$ 3};"\
7390 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7391 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7392 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7393 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7394 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7395 " \$ 0!~/External *\|/{next};"\
7396 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7397 " {if(hide[section]) next};"\
7398 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7399 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7400 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7401 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7402 " ' prfx=^$ac_symprfx"
7403 else
7404 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7405 fi
7406 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7407
7408 # Check to see that the pipe works correctly.
7409 pipe_works=no
7410
7411 rm -f conftest*
7412 cat > conftest.$ac_ext <<_LT_EOF
7413 #ifdef __cplusplus
7414 extern "C" {
7415 #endif
7416 char nm_test_var;
7417 void nm_test_func(void);
7418 void nm_test_func(void){}
7419 #ifdef __cplusplus
7420 }
7421 #endif
7422 int main(void){nm_test_var='a';nm_test_func();return(0);}
7423 _LT_EOF
7424
7425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7426 (eval $ac_compile) 2>&5
7427 ac_status=$?
7428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7429 test $ac_status = 0; }; then
7430 # Now try to grab the symbols.
7431 nlist=conftest.nm
7432 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7433 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7434 # Try sorting and uniquifying the output.
7435 if sort "$nlist" | uniq > "$nlist"T; then
7436 mv -f "$nlist"T "$nlist"
7437 else
7438 rm -f "$nlist"T
7439 fi
7440
7441 # Make sure that we snagged all the symbols we need.
7442 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7443 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7444 cat <<_LT_EOF > conftest.$ac_ext
7445 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7446 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7447 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7448 relocations are performed -- see ld's documentation on pseudo-relocs. */
7449 # define LT_DLSYM_CONST
7450 #elif defined __osf__
7451 /* This system does not cope well with relocations in const data. */
7452 # define LT_DLSYM_CONST
7453 #else
7454 # define LT_DLSYM_CONST const
7455 #endif
7456
7457 #ifdef __cplusplus
7458 extern "C" {
7459 #endif
7460
7461 _LT_EOF
7462 # Now generate the symbol file.
7463 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7464
7465 cat <<_LT_EOF >> conftest.$ac_ext
7466
7467 /* The mapping between symbol names and symbols. */
7468 LT_DLSYM_CONST struct {
7469 const char *name;
7470 void *address;
7471 }
7472 lt__PROGRAM__LTX_preloaded_symbols[] =
7473 {
7474 { "@PROGRAM@", (void *) 0 },
7475 _LT_EOF
7476 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7477 cat <<\_LT_EOF >> conftest.$ac_ext
7478 {0, (void *) 0}
7479 };
7480
7481 /* This works around a problem in FreeBSD linker */
7482 #ifdef FREEBSD_WORKAROUND
7483 static const void *lt_preloaded_setup() {
7484 return lt__PROGRAM__LTX_preloaded_symbols;
7485 }
7486 #endif
7487
7488 #ifdef __cplusplus
7489 }
7490 #endif
7491 _LT_EOF
7492 # Now try linking the two files.
7493 mv conftest.$ac_objext conftstm.$ac_objext
7494 lt_globsym_save_LIBS=$LIBS
7495 lt_globsym_save_CFLAGS=$CFLAGS
7496 LIBS=conftstm.$ac_objext
7497 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7499 (eval $ac_link) 2>&5
7500 ac_status=$?
7501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7502 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7503 pipe_works=yes
7504 fi
7505 LIBS=$lt_globsym_save_LIBS
7506 CFLAGS=$lt_globsym_save_CFLAGS
7507 else
7508 echo "cannot find nm_test_func in $nlist" >&5
7509 fi
7510 else
7511 echo "cannot find nm_test_var in $nlist" >&5
7512 fi
7513 else
7514 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7515 fi
7516 else
7517 echo "$progname: failed program was:" >&5
7518 cat conftest.$ac_ext >&5
7519 fi
7520 rm -rf conftest* conftst*
7521
7522 # Do not use the global_symbol_pipe unless it works.
7523 if test yes = "$pipe_works"; then
7524 break
7525 else
7526 lt_cv_sys_global_symbol_pipe=
7527 fi
7528 done
7529 ;;
7530 esac
7531 fi
7532
7533 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7534 lt_cv_sys_global_symbol_to_cdecl=
7535 fi
7536 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7538 printf "%s\n" "failed" >&6; }
7539 else
7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7541 printf "%s\n" "ok" >&6; }
7542 fi
7543
7544 # Response file support.
7545 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7546 nm_file_list_spec='@'
7547 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7548 nm_file_list_spec='@'
7549 fi
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7588 printf %s "checking for sysroot... " >&6; }
7589
7590 # Check whether --with-sysroot was given.
7591 if test ${with_sysroot+y}
7592 then :
7593 withval=$with_sysroot;
7594 else case e in #(
7595 e) with_sysroot=no ;;
7596 esac
7597 fi
7598
7599
7600 lt_sysroot=
7601 case $with_sysroot in #(
7602 yes)
7603 if test yes = "$GCC"; then
7604 # Trim trailing / since we'll always append absolute paths and we want
7605 # to avoid //, if only for less confusing output for the user.
7606 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7607 fi
7608 ;; #(
7609 /*)
7610 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7611 ;; #(
7612 no|'')
7613 ;; #(
7614 *)
7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7616 printf "%s\n" "$with_sysroot" >&6; }
7617 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7618 ;;
7619 esac
7620
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7622 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7623
7624
7625
7626
7627
7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7629 printf %s "checking for a working dd... " >&6; }
7630 if test ${ac_cv_path_lt_DD+y}
7631 then :
7632 printf %s "(cached) " >&6
7633 else case e in #(
7634 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7635 cat conftest.i conftest.i >conftest2.i
7636 : ${lt_DD:=$DD}
7637 if test -z "$lt_DD"; then
7638 ac_path_lt_DD_found=false
7639 # Loop through the user's path and test for each of PROGNAME-LIST
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643 IFS=$as_save_IFS
7644 case $as_dir in #(((
7645 '') as_dir=./ ;;
7646 */) ;;
7647 *) as_dir=$as_dir/ ;;
7648 esac
7649 for ac_prog in dd
7650 do
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7653 as_fn_executable_p "$ac_path_lt_DD" || continue
7654 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7655 cmp -s conftest.i conftest.out \
7656 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7657 fi
7658 $ac_path_lt_DD_found && break 3
7659 done
7660 done
7661 done
7662 IFS=$as_save_IFS
7663 if test -z "$ac_cv_path_lt_DD"; then
7664 :
7665 fi
7666 else
7667 ac_cv_path_lt_DD=$lt_DD
7668 fi
7669
7670 rm -f conftest.i conftest2.i conftest.out ;;
7671 esac
7672 fi
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7674 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7675
7676
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7678 printf %s "checking how to truncate binary pipes... " >&6; }
7679 if test ${lt_cv_truncate_bin+y}
7680 then :
7681 printf %s "(cached) " >&6
7682 else case e in #(
7683 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7684 cat conftest.i conftest.i >conftest2.i
7685 lt_cv_truncate_bin=
7686 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7687 cmp -s conftest.i conftest.out \
7688 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7689 fi
7690 rm -f conftest.i conftest2.i conftest.out
7691 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7692 esac
7693 fi
7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7695 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7696
7697
7698
7699
7700
7701
7702
7703 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7704 func_cc_basename ()
7705 {
7706 for cc_temp in $*""; do
7707 case $cc_temp in
7708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7710 \-*) ;;
7711 *) break;;
7712 esac
7713 done
7714 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7715 }
7716
7717 # Check whether --enable-libtool-lock was given.
7718 if test ${enable_libtool_lock+y}
7719 then :
7720 enableval=$enable_libtool_lock;
7721 fi
7722
7723 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7724
7725 # Some flags need to be propagated to the compiler or linker for good
7726 # libtool support.
7727 case $host in
7728 ia64-*-hpux*)
7729 # Find out what ABI is being produced by ac_compile, and set mode
7730 # options accordingly.
7731 echo 'int i;' > conftest.$ac_ext
7732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7733 (eval $ac_compile) 2>&5
7734 ac_status=$?
7735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7736 test $ac_status = 0; }; then
7737 case `$FILECMD conftest.$ac_objext` in
7738 *ELF-32*)
7739 HPUX_IA64_MODE=32
7740 ;;
7741 *ELF-64*)
7742 HPUX_IA64_MODE=64
7743 ;;
7744 esac
7745 fi
7746 rm -rf conftest*
7747 ;;
7748 *-*-irix6*)
7749 # Find out what ABI is being produced by ac_compile, and set linker
7750 # options accordingly.
7751 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7753 (eval $ac_compile) 2>&5
7754 ac_status=$?
7755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7756 test $ac_status = 0; }; then
7757 if test yes = "$lt_cv_prog_gnu_ld"; then
7758 case `$FILECMD conftest.$ac_objext` in
7759 *32-bit*)
7760 LD="${LD-ld} -melf32bsmip"
7761 ;;
7762 *N32*)
7763 LD="${LD-ld} -melf32bmipn32"
7764 ;;
7765 *64-bit*)
7766 LD="${LD-ld} -melf64bmip"
7767 ;;
7768 esac
7769 else
7770 case `$FILECMD conftest.$ac_objext` in
7771 *32-bit*)
7772 LD="${LD-ld} -32"
7773 ;;
7774 *N32*)
7775 LD="${LD-ld} -n32"
7776 ;;
7777 *64-bit*)
7778 LD="${LD-ld} -64"
7779 ;;
7780 esac
7781 fi
7782 fi
7783 rm -rf conftest*
7784 ;;
7785
7786 mips64*-*linux*)
7787 # Find out what ABI is being produced by ac_compile, and set linker
7788 # options accordingly.
7789 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7791 (eval $ac_compile) 2>&5
7792 ac_status=$?
7793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794 test $ac_status = 0; }; then
7795 emul=elf
7796 case `$FILECMD conftest.$ac_objext` in
7797 *32-bit*)
7798 emul="${emul}32"
7799 ;;
7800 *64-bit*)
7801 emul="${emul}64"
7802 ;;
7803 esac
7804 case `$FILECMD conftest.$ac_objext` in
7805 *MSB*)
7806 emul="${emul}btsmip"
7807 ;;
7808 *LSB*)
7809 emul="${emul}ltsmip"
7810 ;;
7811 esac
7812 case `$FILECMD conftest.$ac_objext` in
7813 *N32*)
7814 emul="${emul}n32"
7815 ;;
7816 esac
7817 LD="${LD-ld} -m $emul"
7818 fi
7819 rm -rf conftest*
7820 ;;
7821
7822 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7823 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7824 # Find out what ABI is being produced by ac_compile, and set linker
7825 # options accordingly. Note that the listed cases only cover the
7826 # situations where additional linker options are needed (such as when
7827 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7828 # vice versa); the common cases where no linker options are needed do
7829 # not appear in the list.
7830 echo 'int i;' > conftest.$ac_ext
7831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7832 (eval $ac_compile) 2>&5
7833 ac_status=$?
7834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835 test $ac_status = 0; }; then
7836 case `$FILECMD conftest.o` in
7837 *32-bit*)
7838 case $host in
7839 x86_64-*kfreebsd*-gnu)
7840 LD="${LD-ld} -m elf_i386_fbsd"
7841 ;;
7842 x86_64-*linux*|x86_64-gnu*)
7843 case `$FILECMD conftest.o` in
7844 *x86-64*)
7845 LD="${LD-ld} -m elf32_x86_64"
7846 ;;
7847 *)
7848 LD="${LD-ld} -m elf_i386"
7849 ;;
7850 esac
7851 ;;
7852 powerpc64le-*linux*)
7853 LD="${LD-ld} -m elf32lppclinux"
7854 ;;
7855 powerpc64-*linux*)
7856 LD="${LD-ld} -m elf32ppclinux"
7857 ;;
7858 s390x-*linux*)
7859 LD="${LD-ld} -m elf_s390"
7860 ;;
7861 sparc64-*linux*)
7862 LD="${LD-ld} -m elf32_sparc"
7863 ;;
7864 esac
7865 ;;
7866 *64-bit*)
7867 case $host in
7868 x86_64-*kfreebsd*-gnu)
7869 LD="${LD-ld} -m elf_x86_64_fbsd"
7870 ;;
7871 x86_64-*linux*|x86_64-gnu*)
7872 LD="${LD-ld} -m elf_x86_64"
7873 ;;
7874 powerpcle-*linux*)
7875 LD="${LD-ld} -m elf64lppc"
7876 ;;
7877 powerpc-*linux*)
7878 LD="${LD-ld} -m elf64ppc"
7879 ;;
7880 s390*-*linux*|s390*-*tpf*)
7881 LD="${LD-ld} -m elf64_s390"
7882 ;;
7883 sparc*-*linux*)
7884 LD="${LD-ld} -m elf64_sparc"
7885 ;;
7886 esac
7887 ;;
7888 esac
7889 fi
7890 rm -rf conftest*
7891 ;;
7892
7893 *-*-sco3.2v5*)
7894 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7895 SAVE_CFLAGS=$CFLAGS
7896 CFLAGS="$CFLAGS -belf"
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7898 printf %s "checking whether the C compiler needs -belf... " >&6; }
7899 if test ${lt_cv_cc_needs_belf+y}
7900 then :
7901 printf %s "(cached) " >&6
7902 else case e in #(
7903 e) ac_ext=c
7904 ac_cpp='$CPP $CPPFLAGS'
7905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7908
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7911
7912 int
7913 main (void)
7914 {
7915
7916 ;
7917 return 0;
7918 }
7919 _ACEOF
7920 if ac_fn_c_try_link "$LINENO"
7921 then :
7922 lt_cv_cc_needs_belf=yes
7923 else case e in #(
7924 e) lt_cv_cc_needs_belf=no ;;
7925 esac
7926 fi
7927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7928 conftest$ac_exeext conftest.$ac_ext
7929 ac_ext=c
7930 ac_cpp='$CPP $CPPFLAGS'
7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934 ;;
7935 esac
7936 fi
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7938 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7939 if test yes != "$lt_cv_cc_needs_belf"; then
7940 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7941 CFLAGS=$SAVE_CFLAGS
7942 fi
7943 ;;
7944 *-*solaris*)
7945 # Find out what ABI is being produced by ac_compile, and set linker
7946 # options accordingly.
7947 echo 'int i;' > conftest.$ac_ext
7948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7949 (eval $ac_compile) 2>&5
7950 ac_status=$?
7951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7952 test $ac_status = 0; }; then
7953 case `$FILECMD conftest.o` in
7954 *64-bit*)
7955 case $lt_cv_prog_gnu_ld in
7956 yes*)
7957 case $host in
7958 i?86-*-solaris*|x86_64-*-solaris*)
7959 LD="${LD-ld} -m elf_x86_64"
7960 ;;
7961 sparc*-*-solaris*)
7962 LD="${LD-ld} -m elf64_sparc"
7963 ;;
7964 esac
7965 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7966 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7967 LD=${LD-ld}_sol2
7968 fi
7969 ;;
7970 *)
7971 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7972 LD="${LD-ld} -64"
7973 fi
7974 ;;
7975 esac
7976 ;;
7977 esac
7978 fi
7979 rm -rf conftest*
7980 ;;
7981 esac
7982
7983 need_locks=$enable_libtool_lock
7984
7985 if test -n "$ac_tool_prefix"; then
7986 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7987 set dummy ${ac_tool_prefix}mt; ac_word=$2
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989 printf %s "checking for $ac_word... " >&6; }
7990 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7991 then :
7992 printf %s "(cached) " >&6
7993 else case e in #(
7994 e) if test -n "$MANIFEST_TOOL"; then
7995 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000 IFS=$as_save_IFS
8001 case $as_dir in #(((
8002 '') as_dir=./ ;;
8003 */) ;;
8004 *) as_dir=$as_dir/ ;;
8005 esac
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8008 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8010 break 2
8011 fi
8012 done
8013 done
8014 IFS=$as_save_IFS
8015
8016 fi ;;
8017 esac
8018 fi
8019 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8020 if test -n "$MANIFEST_TOOL"; then
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8022 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8023 else
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 printf "%s\n" "no" >&6; }
8026 fi
8027
8028
8029 fi
8030 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8031 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8032 # Extract the first word of "mt", so it can be a program name with args.
8033 set dummy mt; ac_word=$2
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 printf %s "checking for $ac_word... " >&6; }
8036 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8037 then :
8038 printf %s "(cached) " >&6
8039 else case e in #(
8040 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8041 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046 IFS=$as_save_IFS
8047 case $as_dir in #(((
8048 '') as_dir=./ ;;
8049 */) ;;
8050 *) as_dir=$as_dir/ ;;
8051 esac
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8054 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058 done
8059 done
8060 IFS=$as_save_IFS
8061
8062 fi ;;
8063 esac
8064 fi
8065 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8066 if test -n "$ac_ct_MANIFEST_TOOL"; then
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8068 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8069 else
8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 printf "%s\n" "no" >&6; }
8072 fi
8073
8074 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8075 MANIFEST_TOOL=":"
8076 else
8077 case $cross_compiling:$ac_tool_warned in
8078 yes:)
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8080 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8081 ac_tool_warned=yes ;;
8082 esac
8083 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8084 fi
8085 else
8086 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8087 fi
8088
8089 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8091 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8092 if test ${lt_cv_path_manifest_tool+y}
8093 then :
8094 printf %s "(cached) " >&6
8095 else case e in #(
8096 e) lt_cv_path_manifest_tool=no
8097 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8098 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8099 cat conftest.err >&5
8100 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8101 lt_cv_path_manifest_tool=yes
8102 fi
8103 rm -f conftest* ;;
8104 esac
8105 fi
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8107 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8108 if test yes != "$lt_cv_path_manifest_tool"; then
8109 MANIFEST_TOOL=:
8110 fi
8111
8112
8113
8114
8115
8116
8117 case $host_os in
8118 rhapsody* | darwin*)
8119 if test -n "$ac_tool_prefix"; then
8120 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8121 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 printf %s "checking for $ac_word... " >&6; }
8124 if test ${ac_cv_prog_DSYMUTIL+y}
8125 then :
8126 printf %s "(cached) " >&6
8127 else case e in #(
8128 e) if test -n "$DSYMUTIL"; then
8129 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134 IFS=$as_save_IFS
8135 case $as_dir in #(((
8136 '') as_dir=./ ;;
8137 */) ;;
8138 *) as_dir=$as_dir/ ;;
8139 esac
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8144 break 2
8145 fi
8146 done
8147 done
8148 IFS=$as_save_IFS
8149
8150 fi ;;
8151 esac
8152 fi
8153 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8154 if test -n "$DSYMUTIL"; then
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8156 printf "%s\n" "$DSYMUTIL" >&6; }
8157 else
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 printf "%s\n" "no" >&6; }
8160 fi
8161
8162
8163 fi
8164 if test -z "$ac_cv_prog_DSYMUTIL"; then
8165 ac_ct_DSYMUTIL=$DSYMUTIL
8166 # Extract the first word of "dsymutil", so it can be a program name with args.
8167 set dummy dsymutil; ac_word=$2
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 printf %s "checking for $ac_word... " >&6; }
8170 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8171 then :
8172 printf %s "(cached) " >&6
8173 else case e in #(
8174 e) if test -n "$ac_ct_DSYMUTIL"; then
8175 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8176 else
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8179 do
8180 IFS=$as_save_IFS
8181 case $as_dir in #(((
8182 '') as_dir=./ ;;
8183 */) ;;
8184 *) as_dir=$as_dir/ ;;
8185 esac
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8190 break 2
8191 fi
8192 done
8193 done
8194 IFS=$as_save_IFS
8195
8196 fi ;;
8197 esac
8198 fi
8199 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8200 if test -n "$ac_ct_DSYMUTIL"; then
8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8202 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8203 else
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 printf "%s\n" "no" >&6; }
8206 fi
8207
8208 if test "x$ac_ct_DSYMUTIL" = x; then
8209 DSYMUTIL=":"
8210 else
8211 case $cross_compiling:$ac_tool_warned in
8212 yes:)
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8214 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8215 ac_tool_warned=yes ;;
8216 esac
8217 DSYMUTIL=$ac_ct_DSYMUTIL
8218 fi
8219 else
8220 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8221 fi
8222
8223 if test -n "$ac_tool_prefix"; then
8224 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8225 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 printf %s "checking for $ac_word... " >&6; }
8228 if test ${ac_cv_prog_NMEDIT+y}
8229 then :
8230 printf %s "(cached) " >&6
8231 else case e in #(
8232 e) if test -n "$NMEDIT"; then
8233 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8234 else
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238 IFS=$as_save_IFS
8239 case $as_dir in #(((
8240 '') as_dir=./ ;;
8241 */) ;;
8242 *) as_dir=$as_dir/ ;;
8243 esac
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8246 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8248 break 2
8249 fi
8250 done
8251 done
8252 IFS=$as_save_IFS
8253
8254 fi ;;
8255 esac
8256 fi
8257 NMEDIT=$ac_cv_prog_NMEDIT
8258 if test -n "$NMEDIT"; then
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8260 printf "%s\n" "$NMEDIT" >&6; }
8261 else
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 printf "%s\n" "no" >&6; }
8264 fi
8265
8266
8267 fi
8268 if test -z "$ac_cv_prog_NMEDIT"; then
8269 ac_ct_NMEDIT=$NMEDIT
8270 # Extract the first word of "nmedit", so it can be a program name with args.
8271 set dummy nmedit; ac_word=$2
8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 printf %s "checking for $ac_word... " >&6; }
8274 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8275 then :
8276 printf %s "(cached) " >&6
8277 else case e in #(
8278 e) if test -n "$ac_ct_NMEDIT"; then
8279 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284 IFS=$as_save_IFS
8285 case $as_dir in #(((
8286 '') as_dir=./ ;;
8287 */) ;;
8288 *) as_dir=$as_dir/ ;;
8289 esac
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8292 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8294 break 2
8295 fi
8296 done
8297 done
8298 IFS=$as_save_IFS
8299
8300 fi ;;
8301 esac
8302 fi
8303 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8304 if test -n "$ac_ct_NMEDIT"; then
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8306 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8307 else
8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 printf "%s\n" "no" >&6; }
8310 fi
8311
8312 if test "x$ac_ct_NMEDIT" = x; then
8313 NMEDIT=":"
8314 else
8315 case $cross_compiling:$ac_tool_warned in
8316 yes:)
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8318 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8319 ac_tool_warned=yes ;;
8320 esac
8321 NMEDIT=$ac_ct_NMEDIT
8322 fi
8323 else
8324 NMEDIT="$ac_cv_prog_NMEDIT"
8325 fi
8326
8327 if test -n "$ac_tool_prefix"; then
8328 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8329 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 printf %s "checking for $ac_word... " >&6; }
8332 if test ${ac_cv_prog_LIPO+y}
8333 then :
8334 printf %s "(cached) " >&6
8335 else case e in #(
8336 e) if test -n "$LIPO"; then
8337 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8338 else
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8341 do
8342 IFS=$as_save_IFS
8343 case $as_dir in #(((
8344 '') as_dir=./ ;;
8345 */) ;;
8346 *) as_dir=$as_dir/ ;;
8347 esac
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8350 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8352 break 2
8353 fi
8354 done
8355 done
8356 IFS=$as_save_IFS
8357
8358 fi ;;
8359 esac
8360 fi
8361 LIPO=$ac_cv_prog_LIPO
8362 if test -n "$LIPO"; then
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8364 printf "%s\n" "$LIPO" >&6; }
8365 else
8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 printf "%s\n" "no" >&6; }
8368 fi
8369
8370
8371 fi
8372 if test -z "$ac_cv_prog_LIPO"; then
8373 ac_ct_LIPO=$LIPO
8374 # Extract the first word of "lipo", so it can be a program name with args.
8375 set dummy lipo; ac_word=$2
8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 printf %s "checking for $ac_word... " >&6; }
8378 if test ${ac_cv_prog_ac_ct_LIPO+y}
8379 then :
8380 printf %s "(cached) " >&6
8381 else case e in #(
8382 e) if test -n "$ac_ct_LIPO"; then
8383 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8384 else
8385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 for as_dir in $PATH
8387 do
8388 IFS=$as_save_IFS
8389 case $as_dir in #(((
8390 '') as_dir=./ ;;
8391 */) ;;
8392 *) as_dir=$as_dir/ ;;
8393 esac
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8396 ac_cv_prog_ac_ct_LIPO="lipo"
8397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8398 break 2
8399 fi
8400 done
8401 done
8402 IFS=$as_save_IFS
8403
8404 fi ;;
8405 esac
8406 fi
8407 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8408 if test -n "$ac_ct_LIPO"; then
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8410 printf "%s\n" "$ac_ct_LIPO" >&6; }
8411 else
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 printf "%s\n" "no" >&6; }
8414 fi
8415
8416 if test "x$ac_ct_LIPO" = x; then
8417 LIPO=":"
8418 else
8419 case $cross_compiling:$ac_tool_warned in
8420 yes:)
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8422 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8423 ac_tool_warned=yes ;;
8424 esac
8425 LIPO=$ac_ct_LIPO
8426 fi
8427 else
8428 LIPO="$ac_cv_prog_LIPO"
8429 fi
8430
8431 if test -n "$ac_tool_prefix"; then
8432 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8433 set dummy ${ac_tool_prefix}otool; ac_word=$2
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435 printf %s "checking for $ac_word... " >&6; }
8436 if test ${ac_cv_prog_OTOOL+y}
8437 then :
8438 printf %s "(cached) " >&6
8439 else case e in #(
8440 e) if test -n "$OTOOL"; then
8441 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8442 else
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8445 do
8446 IFS=$as_save_IFS
8447 case $as_dir in #(((
8448 '') as_dir=./ ;;
8449 */) ;;
8450 *) as_dir=$as_dir/ ;;
8451 esac
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8454 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8456 break 2
8457 fi
8458 done
8459 done
8460 IFS=$as_save_IFS
8461
8462 fi ;;
8463 esac
8464 fi
8465 OTOOL=$ac_cv_prog_OTOOL
8466 if test -n "$OTOOL"; then
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8468 printf "%s\n" "$OTOOL" >&6; }
8469 else
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 printf "%s\n" "no" >&6; }
8472 fi
8473
8474
8475 fi
8476 if test -z "$ac_cv_prog_OTOOL"; then
8477 ac_ct_OTOOL=$OTOOL
8478 # Extract the first word of "otool", so it can be a program name with args.
8479 set dummy otool; ac_word=$2
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 printf %s "checking for $ac_word... " >&6; }
8482 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8483 then :
8484 printf %s "(cached) " >&6
8485 else case e in #(
8486 e) if test -n "$ac_ct_OTOOL"; then
8487 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492 IFS=$as_save_IFS
8493 case $as_dir in #(((
8494 '') as_dir=./ ;;
8495 */) ;;
8496 *) as_dir=$as_dir/ ;;
8497 esac
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_ac_ct_OTOOL="otool"
8501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
8504 done
8505 done
8506 IFS=$as_save_IFS
8507
8508 fi ;;
8509 esac
8510 fi
8511 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8512 if test -n "$ac_ct_OTOOL"; then
8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8514 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8515 else
8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 printf "%s\n" "no" >&6; }
8518 fi
8519
8520 if test "x$ac_ct_OTOOL" = x; then
8521 OTOOL=":"
8522 else
8523 case $cross_compiling:$ac_tool_warned in
8524 yes:)
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8526 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8527 ac_tool_warned=yes ;;
8528 esac
8529 OTOOL=$ac_ct_OTOOL
8530 fi
8531 else
8532 OTOOL="$ac_cv_prog_OTOOL"
8533 fi
8534
8535 if test -n "$ac_tool_prefix"; then
8536 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8537 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 printf %s "checking for $ac_word... " >&6; }
8540 if test ${ac_cv_prog_OTOOL64+y}
8541 then :
8542 printf %s "(cached) " >&6
8543 else case e in #(
8544 e) if test -n "$OTOOL64"; then
8545 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8546 else
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8549 do
8550 IFS=$as_save_IFS
8551 case $as_dir in #(((
8552 '') as_dir=./ ;;
8553 */) ;;
8554 *) as_dir=$as_dir/ ;;
8555 esac
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8558 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8560 break 2
8561 fi
8562 done
8563 done
8564 IFS=$as_save_IFS
8565
8566 fi ;;
8567 esac
8568 fi
8569 OTOOL64=$ac_cv_prog_OTOOL64
8570 if test -n "$OTOOL64"; then
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8572 printf "%s\n" "$OTOOL64" >&6; }
8573 else
8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 printf "%s\n" "no" >&6; }
8576 fi
8577
8578
8579 fi
8580 if test -z "$ac_cv_prog_OTOOL64"; then
8581 ac_ct_OTOOL64=$OTOOL64
8582 # Extract the first word of "otool64", so it can be a program name with args.
8583 set dummy otool64; ac_word=$2
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585 printf %s "checking for $ac_word... " >&6; }
8586 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8587 then :
8588 printf %s "(cached) " >&6
8589 else case e in #(
8590 e) if test -n "$ac_ct_OTOOL64"; then
8591 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8595 do
8596 IFS=$as_save_IFS
8597 case $as_dir in #(((
8598 '') as_dir=./ ;;
8599 */) ;;
8600 *) as_dir=$as_dir/ ;;
8601 esac
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8604 ac_cv_prog_ac_ct_OTOOL64="otool64"
8605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8606 break 2
8607 fi
8608 done
8609 done
8610 IFS=$as_save_IFS
8611
8612 fi ;;
8613 esac
8614 fi
8615 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8616 if test -n "$ac_ct_OTOOL64"; then
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8618 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8619 else
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 printf "%s\n" "no" >&6; }
8622 fi
8623
8624 if test "x$ac_ct_OTOOL64" = x; then
8625 OTOOL64=":"
8626 else
8627 case $cross_compiling:$ac_tool_warned in
8628 yes:)
8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8630 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8631 ac_tool_warned=yes ;;
8632 esac
8633 OTOOL64=$ac_ct_OTOOL64
8634 fi
8635 else
8636 OTOOL64="$ac_cv_prog_OTOOL64"
8637 fi
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8666 printf %s "checking for -single_module linker flag... " >&6; }
8667 if test ${lt_cv_apple_cc_single_mod+y}
8668 then :
8669 printf %s "(cached) " >&6
8670 else case e in #(
8671 e) lt_cv_apple_cc_single_mod=no
8672 if test -z "$LT_MULTI_MODULE"; then
8673 # By default we will add the -single_module flag. You can override
8674 # by either setting the environment variable LT_MULTI_MODULE
8675 # non-empty at configure time, or by adding -multi_module to the
8676 # link flags.
8677 rm -rf libconftest.dylib*
8678 echo "int foo(void){return 1;}" > conftest.c
8679 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8680 -dynamiclib -Wl,-single_module conftest.c" >&5
8681 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8682 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8683 _lt_result=$?
8684 # If there is a non-empty error log, and "single_module"
8685 # appears in it, assume the flag caused a linker warning
8686 if test -s conftest.err && $GREP single_module conftest.err; then
8687 cat conftest.err >&5
8688 # Otherwise, if the output was created with a 0 exit code from
8689 # the compiler, it worked.
8690 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8691 lt_cv_apple_cc_single_mod=yes
8692 else
8693 cat conftest.err >&5
8694 fi
8695 rm -rf libconftest.dylib*
8696 rm -f conftest.*
8697 fi ;;
8698 esac
8699 fi
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8701 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8702
8703 # Feature test to disable chained fixups since it is not
8704 # compatible with '-undefined dynamic_lookup'
8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8706 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8707 if test ${lt_cv_support_no_fixup_chains+y}
8708 then :
8709 printf %s "(cached) " >&6
8710 else case e in #(
8711 e) save_LDFLAGS=$LDFLAGS
8712 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h. */
8715
8716 int
8717 main (void)
8718 {
8719
8720 ;
8721 return 0;
8722 }
8723 _ACEOF
8724 if ac_fn_c_try_link "$LINENO"
8725 then :
8726 lt_cv_support_no_fixup_chains=yes
8727 else case e in #(
8728 e) lt_cv_support_no_fixup_chains=no
8729 ;;
8730 esac
8731 fi
8732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8733 conftest$ac_exeext conftest.$ac_ext
8734 LDFLAGS=$save_LDFLAGS
8735
8736 ;;
8737 esac
8738 fi
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8740 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8741
8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8743 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8744 if test ${lt_cv_ld_exported_symbols_list+y}
8745 then :
8746 printf %s "(cached) " >&6
8747 else case e in #(
8748 e) lt_cv_ld_exported_symbols_list=no
8749 save_LDFLAGS=$LDFLAGS
8750 echo "_main" > conftest.sym
8751 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754
8755 int
8756 main (void)
8757 {
8758
8759 ;
8760 return 0;
8761 }
8762 _ACEOF
8763 if ac_fn_c_try_link "$LINENO"
8764 then :
8765 lt_cv_ld_exported_symbols_list=yes
8766 else case e in #(
8767 e) lt_cv_ld_exported_symbols_list=no ;;
8768 esac
8769 fi
8770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8771 conftest$ac_exeext conftest.$ac_ext
8772 LDFLAGS=$save_LDFLAGS
8773 ;;
8774 esac
8775 fi
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8777 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8778
8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8780 printf %s "checking for -force_load linker flag... " >&6; }
8781 if test ${lt_cv_ld_force_load+y}
8782 then :
8783 printf %s "(cached) " >&6
8784 else case e in #(
8785 e) lt_cv_ld_force_load=no
8786 cat > conftest.c << _LT_EOF
8787 int forced_loaded() { return 2;}
8788 _LT_EOF
8789 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8790 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8791 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8792 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8793 echo "$RANLIB libconftest.a" >&5
8794 $RANLIB libconftest.a 2>&5
8795 cat > conftest.c << _LT_EOF
8796 int main(void) { return 0;}
8797 _LT_EOF
8798 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8799 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8800 _lt_result=$?
8801 if test -s conftest.err && $GREP force_load conftest.err; then
8802 cat conftest.err >&5
8803 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8804 lt_cv_ld_force_load=yes
8805 else
8806 cat conftest.err >&5
8807 fi
8808 rm -f conftest.err libconftest.a conftest conftest.c
8809 rm -rf conftest.dSYM
8810 ;;
8811 esac
8812 fi
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8814 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8815 case $host_os in
8816 rhapsody* | darwin1.[012])
8817 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8818 darwin1.*)
8819 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8820 darwin*)
8821 case $MACOSX_DEPLOYMENT_TARGET,$host in
8822 10.[012],*|,*powerpc*-darwin[5-8]*)
8823 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8824 *)
8825 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8826 if test yes = "$lt_cv_support_no_fixup_chains"; then
8827 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8828 fi
8829 ;;
8830 esac
8831 ;;
8832 esac
8833 if test yes = "$lt_cv_apple_cc_single_mod"; then
8834 _lt_dar_single_mod='$single_module'
8835 fi
8836 _lt_dar_needs_single_mod=no
8837 case $host_os in
8838 rhapsody* | darwin1.*)
8839 _lt_dar_needs_single_mod=yes ;;
8840 darwin*)
8841 # When targeting Mac OS X 10.4 (darwin 8) or later,
8842 # -single_module is the default and -multi_module is unsupported.
8843 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8844 # target any OS version that needs -single_module.
8845 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8846 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8847 _lt_dar_needs_single_mod=yes ;;
8848 esac
8849 ;;
8850 esac
8851 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8852 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8853 else
8854 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8855 fi
8856 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8857 _lt_dsymutil='~$DSYMUTIL $lib || :'
8858 else
8859 _lt_dsymutil=
8860 fi
8861 ;;
8862 esac
8863
8864 # func_munge_path_list VARIABLE PATH
8865 # -----------------------------------
8866 # VARIABLE is name of variable containing _space_ separated list of
8867 # directories to be munged by the contents of PATH, which is string
8868 # having a format:
8869 # "DIR[:DIR]:"
8870 # string "DIR[ DIR]" will be prepended to VARIABLE
8871 # ":DIR[:DIR]"
8872 # string "DIR[ DIR]" will be appended to VARIABLE
8873 # "DIRP[:DIRP]::[DIRA:]DIRA"
8874 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8875 # "DIRA[ DIRA]" will be appended to VARIABLE
8876 # "DIR[:DIR]"
8877 # VARIABLE will be replaced by "DIR[ DIR]"
8878 func_munge_path_list ()
8879 {
8880 case x$2 in
8881 x)
8882 ;;
8883 *:)
8884 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8885 ;;
8886 x:*)
8887 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8888 ;;
8889 *::*)
8890 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8891 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8892 ;;
8893 *)
8894 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8895 ;;
8896 esac
8897 }
8898
8899 ac_header= ac_cache=
8900 for ac_item in $ac_header_c_list
8901 do
8902 if test $ac_cache; then
8903 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8904 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8905 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8906 fi
8907 ac_header= ac_cache=
8908 elif test $ac_header; then
8909 ac_cache=$ac_item
8910 else
8911 ac_header=$ac_item
8912 fi
8913 done
8914
8915
8916
8917
8918
8919
8920
8921
8922 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8923 then :
8924
8925 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8926
8927 fi
8928 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8929 "
8930 if test "x$ac_cv_header_dlfcn_h" = xyes
8931 then :
8932 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8933
8934 fi
8935
8936
8937
8938
8939
8940 # Set options
8941
8942
8943
8944 enable_dlopen=no
8945
8946
8947 enable_win32_dll=no
8948
8949
8950 # Check whether --enable-shared was given.
8951 if test ${enable_shared+y}
8952 then :
8953 enableval=$enable_shared; p=${PACKAGE-default}
8954 case $enableval in
8955 yes) enable_shared=yes ;;
8956 no) enable_shared=no ;;
8957 *)
8958 enable_shared=no
8959 # Look at the argument we got. We use all the common list separators.
8960 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8961 for pkg in $enableval; do
8962 IFS=$lt_save_ifs
8963 if test "X$pkg" = "X$p"; then
8964 enable_shared=yes
8965 fi
8966 done
8967 IFS=$lt_save_ifs
8968 ;;
8969 esac
8970 else case e in #(
8971 e) enable_shared=yes ;;
8972 esac
8973 fi
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984 # Check whether --enable-pic was given.
8985 if test ${enable_pic+y}
8986 then :
8987 enableval=$enable_pic; lt_p=${PACKAGE-default}
8988 case $enableval in
8989 yes|no) pic_mode=$enableval ;;
8990 *)
8991 pic_mode=default
8992 # Look at the argument we got. We use all the common list separators.
8993 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8994 for lt_pkg in $enableval; do
8995 IFS=$lt_save_ifs
8996 if test "X$lt_pkg" = "X$lt_p"; then
8997 pic_mode=yes
8998 fi
8999 done
9000 IFS=$lt_save_ifs
9001 ;;
9002 esac
9003 else case e in #(
9004 e) # Check whether --with-pic was given.
9005 if test ${with_pic+y}
9006 then :
9007 withval=$with_pic; lt_p=${PACKAGE-default}
9008 case $withval in
9009 yes|no) pic_mode=$withval ;;
9010 *)
9011 pic_mode=default
9012 # Look at the argument we got. We use all the common list separators.
9013 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9014 for lt_pkg in $withval; do
9015 IFS=$lt_save_ifs
9016 if test "X$lt_pkg" = "X$lt_p"; then
9017 pic_mode=yes
9018 fi
9019 done
9020 IFS=$lt_save_ifs
9021 ;;
9022 esac
9023 else case e in #(
9024 e) pic_mode=default ;;
9025 esac
9026 fi
9027
9028 ;;
9029 esac
9030 fi
9031
9032
9033
9034
9035
9036
9037
9038
9039 # Check whether --enable-fast-install was given.
9040 if test ${enable_fast_install+y}
9041 then :
9042 enableval=$enable_fast_install; p=${PACKAGE-default}
9043 case $enableval in
9044 yes) enable_fast_install=yes ;;
9045 no) enable_fast_install=no ;;
9046 *)
9047 enable_fast_install=no
9048 # Look at the argument we got. We use all the common list separators.
9049 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9050 for pkg in $enableval; do
9051 IFS=$lt_save_ifs
9052 if test "X$pkg" = "X$p"; then
9053 enable_fast_install=yes
9054 fi
9055 done
9056 IFS=$lt_save_ifs
9057 ;;
9058 esac
9059 else case e in #(
9060 e) enable_fast_install=yes ;;
9061 esac
9062 fi
9063
9064
9065
9066
9067
9068
9069
9070
9071 shared_archive_member_spec=
9072 case $host,$enable_shared in
9073 power*-*-aix[5-9]*,yes)
9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9075 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9076 # Check whether --enable-aix-soname was given.
9077 if test ${enable_aix_soname+y}
9078 then :
9079 enableval=$enable_aix_soname; case $enableval in
9080 aix|svr4|both)
9081 ;;
9082 *)
9083 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9084 ;;
9085 esac
9086 lt_cv_with_aix_soname=$enable_aix_soname
9087 else case e in #(
9088 e) # Check whether --with-aix-soname was given.
9089 if test ${with_aix_soname+y}
9090 then :
9091 withval=$with_aix_soname; case $withval in
9092 aix|svr4|both)
9093 ;;
9094 *)
9095 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9096 ;;
9097 esac
9098 lt_cv_with_aix_soname=$with_aix_soname
9099 else case e in #(
9100 e) if test ${lt_cv_with_aix_soname+y}
9101 then :
9102 printf %s "(cached) " >&6
9103 else case e in #(
9104 e) lt_cv_with_aix_soname=aix ;;
9105 esac
9106 fi
9107 ;;
9108 esac
9109 fi
9110
9111 enable_aix_soname=$lt_cv_with_aix_soname ;;
9112 esac
9113 fi
9114
9115 with_aix_soname=$enable_aix_soname
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9117 printf "%s\n" "$with_aix_soname" >&6; }
9118 if test aix != "$with_aix_soname"; then
9119 # For the AIX way of multilib, we name the shared archive member
9120 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9121 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9122 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9123 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9124 if test 64 = "${OBJECT_MODE-32}"; then
9125 shared_archive_member_spec=shr_64
9126 else
9127 shared_archive_member_spec=shr
9128 fi
9129 fi
9130 ;;
9131 *)
9132 with_aix_soname=aix
9133 ;;
9134 esac
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145 # This can be used to rebuild libtool when needed
9146 LIBTOOL_DEPS=$ltmain
9147
9148 # Always use our own libtool.
9149 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180 test -z "$LN_S" && LN_S="ln -s"
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195 if test -n "${ZSH_VERSION+set}"; then
9196 setopt NO_GLOB_SUBST
9197 fi
9198
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9200 printf %s "checking for objdir... " >&6; }
9201 if test ${lt_cv_objdir+y}
9202 then :
9203 printf %s "(cached) " >&6
9204 else case e in #(
9205 e) rm -f .libs 2>/dev/null
9206 mkdir .libs 2>/dev/null
9207 if test -d .libs; then
9208 lt_cv_objdir=.libs
9209 else
9210 # MS-DOS does not allow filenames that begin with a dot.
9211 lt_cv_objdir=_libs
9212 fi
9213 rmdir .libs 2>/dev/null ;;
9214 esac
9215 fi
9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9217 printf "%s\n" "$lt_cv_objdir" >&6; }
9218 objdir=$lt_cv_objdir
9219
9220
9221
9222
9223
9224 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9225
9226
9227
9228
9229 case $host_os in
9230 aix3*)
9231 # AIX sometimes has problems with the GCC collect2 program. For some
9232 # reason, if we set the COLLECT_NAMES environment variable, the problems
9233 # vanish in a puff of smoke.
9234 if test set != "${COLLECT_NAMES+set}"; then
9235 COLLECT_NAMES=
9236 export COLLECT_NAMES
9237 fi
9238 ;;
9239 esac
9240
9241 # Global variables:
9242 ofile=libtool
9243 can_build_shared=yes
9244
9245 # All known linkers require a '.a' archive for static linking (except MSVC and
9246 # ICC, which need '.lib').
9247 libext=a
9248
9249 with_gnu_ld=$lt_cv_prog_gnu_ld
9250
9251 old_CC=$CC
9252 old_CFLAGS=$CFLAGS
9253
9254 # Set sane defaults for various variables
9255 test -z "$CC" && CC=cc
9256 test -z "$LTCC" && LTCC=$CC
9257 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9258 test -z "$LD" && LD=ld
9259 test -z "$ac_objext" && ac_objext=o
9260
9261 func_cc_basename $compiler
9262 cc_basename=$func_cc_basename_result
9263
9264
9265 # Only perform the check for file, if the check method requires it
9266 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9267 case $deplibs_check_method in
9268 file_magic*)
9269 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9271 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9272 if test ${lt_cv_path_MAGIC_CMD+y}
9273 then :
9274 printf %s "(cached) " >&6
9275 else case e in #(
9276 e) case $MAGIC_CMD in
9277 [\\/*] | ?:[\\/]*)
9278 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9279 ;;
9280 *)
9281 lt_save_MAGIC_CMD=$MAGIC_CMD
9282 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9283 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9284 for ac_dir in $ac_dummy; do
9285 IFS=$lt_save_ifs
9286 test -z "$ac_dir" && ac_dir=.
9287 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9288 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9289 if test -n "$file_magic_test_file"; then
9290 case $deplibs_check_method in
9291 "file_magic "*)
9292 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9293 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9294 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9295 $EGREP "$file_magic_regex" > /dev/null; then
9296 :
9297 else
9298 cat <<_LT_EOF 1>&2
9299
9300 *** Warning: the command libtool uses to detect shared libraries,
9301 *** $file_magic_cmd, produces output that libtool cannot recognize.
9302 *** The result is that libtool may fail to recognize shared libraries
9303 *** as such. This will affect the creation of libtool libraries that
9304 *** depend on shared libraries, but programs linked with such libtool
9305 *** libraries will work regardless of this problem. Nevertheless, you
9306 *** may want to report the problem to your system manager and/or to
9307 *** [email protected]
9308
9309 _LT_EOF
9310 fi ;;
9311 esac
9312 fi
9313 break
9314 fi
9315 done
9316 IFS=$lt_save_ifs
9317 MAGIC_CMD=$lt_save_MAGIC_CMD
9318 ;;
9319 esac ;;
9320 esac
9321 fi
9322
9323 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9324 if test -n "$MAGIC_CMD"; then
9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9326 printf "%s\n" "$MAGIC_CMD" >&6; }
9327 else
9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329 printf "%s\n" "no" >&6; }
9330 fi
9331
9332
9333
9334
9335
9336 if test -z "$lt_cv_path_MAGIC_CMD"; then
9337 if test -n "$ac_tool_prefix"; then
9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9339 printf %s "checking for file... " >&6; }
9340 if test ${lt_cv_path_MAGIC_CMD+y}
9341 then :
9342 printf %s "(cached) " >&6
9343 else case e in #(
9344 e) case $MAGIC_CMD in
9345 [\\/*] | ?:[\\/]*)
9346 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9347 ;;
9348 *)
9349 lt_save_MAGIC_CMD=$MAGIC_CMD
9350 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9352 for ac_dir in $ac_dummy; do
9353 IFS=$lt_save_ifs
9354 test -z "$ac_dir" && ac_dir=.
9355 if test -f "$ac_dir/file"; then
9356 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9357 if test -n "$file_magic_test_file"; then
9358 case $deplibs_check_method in
9359 "file_magic "*)
9360 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9361 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9363 $EGREP "$file_magic_regex" > /dev/null; then
9364 :
9365 else
9366 cat <<_LT_EOF 1>&2
9367
9368 *** Warning: the command libtool uses to detect shared libraries,
9369 *** $file_magic_cmd, produces output that libtool cannot recognize.
9370 *** The result is that libtool may fail to recognize shared libraries
9371 *** as such. This will affect the creation of libtool libraries that
9372 *** depend on shared libraries, but programs linked with such libtool
9373 *** libraries will work regardless of this problem. Nevertheless, you
9374 *** may want to report the problem to your system manager and/or to
9375 *** [email protected]
9376
9377 _LT_EOF
9378 fi ;;
9379 esac
9380 fi
9381 break
9382 fi
9383 done
9384 IFS=$lt_save_ifs
9385 MAGIC_CMD=$lt_save_MAGIC_CMD
9386 ;;
9387 esac ;;
9388 esac
9389 fi
9390
9391 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9392 if test -n "$MAGIC_CMD"; then
9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9394 printf "%s\n" "$MAGIC_CMD" >&6; }
9395 else
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 printf "%s\n" "no" >&6; }
9398 fi
9399
9400
9401 else
9402 MAGIC_CMD=:
9403 fi
9404 fi
9405
9406 fi
9407 ;;
9408 esac
9409
9410 # Use C for the default configuration in the libtool script
9411
9412 lt_save_CC=$CC
9413 ac_ext=c
9414 ac_cpp='$CPP $CPPFLAGS'
9415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9418
9419
9420 # Source file extension for C test sources.
9421 ac_ext=c
9422
9423 # Object file extension for compiled C test sources.
9424 objext=o
9425 objext=$objext
9426
9427 # Code to be used in simple compile tests
9428 lt_simple_compile_test_code="int some_variable = 0;"
9429
9430 # Code to be used in simple link tests
9431 lt_simple_link_test_code='int main(void){return(0);}'
9432
9433
9434
9435
9436
9437
9438
9439 # If no C compiler was specified, use CC.
9440 LTCC=${LTCC-"$CC"}
9441
9442 # If no C compiler flags were specified, use CFLAGS.
9443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9444
9445 # Allow CC to be a program name with arguments.
9446 compiler=$CC
9447
9448 # Save the default compiler, since it gets overwritten when the other
9449 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9450 compiler_DEFAULT=$CC
9451
9452 # save warnings/boilerplate of simple test code
9453 ac_outfile=conftest.$ac_objext
9454 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9455 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9456 _lt_compiler_boilerplate=`cat conftest.err`
9457 $RM conftest*
9458
9459 ac_outfile=conftest.$ac_objext
9460 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9461 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9462 _lt_linker_boilerplate=`cat conftest.err`
9463 $RM -r conftest*
9464
9465
9466 ## CAVEAT EMPTOR:
9467 ## There is no encapsulation within the following macros, do not change
9468 ## the running order or otherwise move them around unless you know exactly
9469 ## what you are doing...
9470 if test -n "$compiler"; then
9471
9472 lt_prog_compiler_no_builtin_flag=
9473
9474 if test yes = "$GCC"; then
9475 case $cc_basename in
9476 nvcc*)
9477 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9478 *)
9479 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9480 esac
9481
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9483 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9484 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9485 then :
9486 printf %s "(cached) " >&6
9487 else case e in #(
9488 e) lt_cv_prog_compiler_rtti_exceptions=no
9489 ac_outfile=conftest.$ac_objext
9490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9491 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9492 # Insert the option either (1) after the last *FLAGS variable, or
9493 # (2) before a word containing "conftest.", or (3) at the end.
9494 # Note that $ac_compile itself does not contain backslashes and begins
9495 # with a dollar sign (not a hyphen), so the echo should work correctly.
9496 # The option is referenced via a variable to avoid confusing sed.
9497 lt_compile=`echo "$ac_compile" | $SED \
9498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9500 -e 's:$: $lt_compiler_flag:'`
9501 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9502 (eval "$lt_compile" 2>conftest.err)
9503 ac_status=$?
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 if (exit $ac_status) && test -s "$ac_outfile"; then
9507 # The compiler can only warn and ignore the option if not recognized
9508 # So say no if there are warnings other than the usual output.
9509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9512 lt_cv_prog_compiler_rtti_exceptions=yes
9513 fi
9514 fi
9515 $RM conftest*
9516 ;;
9517 esac
9518 fi
9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9520 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9521
9522 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9523 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9524 else
9525 :
9526 fi
9527
9528 fi
9529
9530
9531
9532
9533
9534
9535 lt_prog_compiler_wl=
9536 lt_prog_compiler_pic=
9537 lt_prog_compiler_static=
9538
9539
9540 if test yes = "$GCC"; then
9541 lt_prog_compiler_wl='-Wl,'
9542 lt_prog_compiler_static='-static'
9543
9544 case $host_os in
9545 aix*)
9546 # All AIX code is PIC.
9547 if test ia64 = "$host_cpu"; then
9548 # AIX 5 now supports IA64 processor
9549 lt_prog_compiler_static='-Bstatic'
9550 fi
9551 lt_prog_compiler_pic='-fPIC'
9552 ;;
9553
9554 amigaos*)
9555 case $host_cpu in
9556 powerpc)
9557 # see comment about AmigaOS4 .so support
9558 lt_prog_compiler_pic='-fPIC'
9559 ;;
9560 m68k)
9561 # FIXME: we need at least 68020 code to build shared libraries, but
9562 # adding the '-m68020' flag to GCC prevents building anything better,
9563 # like '-m68040'.
9564 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9565 ;;
9566 esac
9567 ;;
9568
9569 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9570 # PIC is the default for these OSes.
9571 ;;
9572
9573 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9574 # This hack is so that the source file can tell whether it is being
9575 # built for inclusion in a dll (and should export symbols for example).
9576 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9577 # (--disable-auto-import) libraries
9578 lt_prog_compiler_pic='-DDLL_EXPORT'
9579 case $host_os in
9580 os2*)
9581 lt_prog_compiler_static='$wl-static'
9582 ;;
9583 esac
9584 ;;
9585
9586 darwin* | rhapsody*)
9587 # PIC is the default on this platform
9588 # Common symbols not allowed in MH_DYLIB files
9589 lt_prog_compiler_pic='-fno-common'
9590 ;;
9591
9592 haiku*)
9593 # PIC is the default for Haiku.
9594 # The "-static" flag exists, but is broken.
9595 lt_prog_compiler_static=
9596 ;;
9597
9598 hpux*)
9599 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9600 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9601 # sets the default TLS model and affects inlining.
9602 case $host_cpu in
9603 hppa*64*)
9604 # +Z the default
9605 ;;
9606 *)
9607 lt_prog_compiler_pic='-fPIC'
9608 ;;
9609 esac
9610 ;;
9611
9612 interix[3-9]*)
9613 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9614 # Instead, we relocate shared libraries at runtime.
9615 ;;
9616
9617 msdosdjgpp*)
9618 # Just because we use GCC doesn't mean we suddenly get shared libraries
9619 # on systems that don't support them.
9620 lt_prog_compiler_can_build_shared=no
9621 enable_shared=no
9622 ;;
9623
9624 *nto* | *qnx*)
9625 # QNX uses GNU C++, but need to define -shared option too, otherwise
9626 # it will coredump.
9627 lt_prog_compiler_pic='-fPIC -shared'
9628 ;;
9629
9630 sysv4*MP*)
9631 if test -d /usr/nec; then
9632 lt_prog_compiler_pic=-Kconform_pic
9633 fi
9634 ;;
9635
9636 *)
9637 lt_prog_compiler_pic='-fPIC'
9638 ;;
9639 esac
9640
9641 case $cc_basename in
9642 nvcc*) # Cuda Compiler Driver 2.2
9643 lt_prog_compiler_wl='-Xlinker '
9644 if test -n "$lt_prog_compiler_pic"; then
9645 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9646 fi
9647 ;;
9648 esac
9649 else
9650 # PORTME Check for flag to pass linker flags through the system compiler.
9651 case $host_os in
9652 aix*)
9653 lt_prog_compiler_wl='-Wl,'
9654 if test ia64 = "$host_cpu"; then
9655 # AIX 5 now supports IA64 processor
9656 lt_prog_compiler_static='-Bstatic'
9657 else
9658 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9659 fi
9660 ;;
9661
9662 darwin* | rhapsody*)
9663 # PIC is the default on this platform
9664 # Common symbols not allowed in MH_DYLIB files
9665 lt_prog_compiler_pic='-fno-common'
9666 case $cc_basename in
9667 nagfor*)
9668 # NAG Fortran compiler
9669 lt_prog_compiler_wl='-Wl,-Wl,,'
9670 lt_prog_compiler_pic='-PIC'
9671 lt_prog_compiler_static='-Bstatic'
9672 ;;
9673 esac
9674 ;;
9675
9676 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9677 # This hack is so that the source file can tell whether it is being
9678 # built for inclusion in a dll (and should export symbols for example).
9679 lt_prog_compiler_pic='-DDLL_EXPORT'
9680 case $host_os in
9681 os2*)
9682 lt_prog_compiler_static='$wl-static'
9683 ;;
9684 esac
9685 ;;
9686
9687 hpux9* | hpux10* | hpux11*)
9688 lt_prog_compiler_wl='-Wl,'
9689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9690 # not for PA HP-UX.
9691 case $host_cpu in
9692 hppa*64*|ia64*)
9693 # +Z the default
9694 ;;
9695 *)
9696 lt_prog_compiler_pic='+Z'
9697 ;;
9698 esac
9699 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9700 lt_prog_compiler_static='$wl-a ${wl}archive'
9701 ;;
9702
9703 irix5* | irix6* | nonstopux*)
9704 lt_prog_compiler_wl='-Wl,'
9705 # PIC (with -KPIC) is the default.
9706 lt_prog_compiler_static='-non_shared'
9707 ;;
9708
9709 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9710 case $cc_basename in
9711 # old Intel for x86_64, which still supported -KPIC.
9712 ecc*)
9713 lt_prog_compiler_wl='-Wl,'
9714 lt_prog_compiler_pic='-KPIC'
9715 lt_prog_compiler_static='-static'
9716 ;;
9717 *flang* | ftn | f18* | f95*)
9718 # Flang compiler.
9719 lt_prog_compiler_wl='-Wl,'
9720 lt_prog_compiler_pic='-fPIC'
9721 lt_prog_compiler_static='-static'
9722 ;;
9723 # icc used to be incompatible with GCC.
9724 # ICC 10 doesn't accept -KPIC any more.
9725 icc* | ifort*)
9726 lt_prog_compiler_wl='-Wl,'
9727 lt_prog_compiler_pic='-fPIC'
9728 lt_prog_compiler_static='-static'
9729 ;;
9730 # Lahey Fortran 8.1.
9731 lf95*)
9732 lt_prog_compiler_wl='-Wl,'
9733 lt_prog_compiler_pic='--shared'
9734 lt_prog_compiler_static='--static'
9735 ;;
9736 nagfor*)
9737 # NAG Fortran compiler
9738 lt_prog_compiler_wl='-Wl,-Wl,,'
9739 lt_prog_compiler_pic='-PIC'
9740 lt_prog_compiler_static='-Bstatic'
9741 ;;
9742 tcc*)
9743 # Fabrice Bellard et al's Tiny C Compiler
9744 lt_prog_compiler_wl='-Wl,'
9745 lt_prog_compiler_pic='-fPIC'
9746 lt_prog_compiler_static='-static'
9747 ;;
9748 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9749 # Portland Group compilers (*not* the Pentium gcc compiler,
9750 # which looks to be a dead project)
9751 lt_prog_compiler_wl='-Wl,'
9752 lt_prog_compiler_pic='-fpic'
9753 lt_prog_compiler_static='-Bstatic'
9754 ;;
9755 ccc*)
9756 lt_prog_compiler_wl='-Wl,'
9757 # All Alpha code is PIC.
9758 lt_prog_compiler_static='-non_shared'
9759 ;;
9760 xl* | bgxl* | bgf* | mpixl*)
9761 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9762 lt_prog_compiler_wl='-Wl,'
9763 lt_prog_compiler_pic='-qpic'
9764 lt_prog_compiler_static='-qstaticlink'
9765 ;;
9766 *)
9767 case `$CC -V 2>&1 | $SED 5q` in
9768 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9769 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9770 lt_prog_compiler_pic='-KPIC'
9771 lt_prog_compiler_static='-Bstatic'
9772 lt_prog_compiler_wl=''
9773 ;;
9774 *Sun\ F* | *Sun*Fortran*)
9775 lt_prog_compiler_pic='-KPIC'
9776 lt_prog_compiler_static='-Bstatic'
9777 lt_prog_compiler_wl='-Qoption ld '
9778 ;;
9779 *Sun\ C*)
9780 # Sun C 5.9
9781 lt_prog_compiler_pic='-KPIC'
9782 lt_prog_compiler_static='-Bstatic'
9783 lt_prog_compiler_wl='-Wl,'
9784 ;;
9785 *Intel*\ [CF]*Compiler*)
9786 lt_prog_compiler_wl='-Wl,'
9787 lt_prog_compiler_pic='-fPIC'
9788 lt_prog_compiler_static='-static'
9789 ;;
9790 *Portland\ Group*)
9791 lt_prog_compiler_wl='-Wl,'
9792 lt_prog_compiler_pic='-fpic'
9793 lt_prog_compiler_static='-Bstatic'
9794 ;;
9795 esac
9796 ;;
9797 esac
9798 ;;
9799
9800 newsos6)
9801 lt_prog_compiler_pic='-KPIC'
9802 lt_prog_compiler_static='-Bstatic'
9803 ;;
9804
9805 *-mlibc)
9806 lt_prog_compiler_wl='-Wl,'
9807 lt_prog_compiler_pic='-fPIC'
9808 lt_prog_compiler_static='-static'
9809 ;;
9810
9811 *nto* | *qnx*)
9812 # QNX uses GNU C++, but need to define -shared option too, otherwise
9813 # it will coredump.
9814 lt_prog_compiler_pic='-fPIC -shared'
9815 ;;
9816
9817 osf3* | osf4* | osf5*)
9818 lt_prog_compiler_wl='-Wl,'
9819 # All OSF/1 code is PIC.
9820 lt_prog_compiler_static='-non_shared'
9821 ;;
9822
9823 rdos*)
9824 lt_prog_compiler_static='-non_shared'
9825 ;;
9826
9827 serenity*)
9828 ;;
9829
9830 solaris*)
9831 lt_prog_compiler_pic='-KPIC'
9832 lt_prog_compiler_static='-Bstatic'
9833 case $cc_basename in
9834 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9835 lt_prog_compiler_wl='-Qoption ld ';;
9836 *)
9837 lt_prog_compiler_wl='-Wl,';;
9838 esac
9839 ;;
9840
9841 sunos4*)
9842 lt_prog_compiler_wl='-Qoption ld '
9843 lt_prog_compiler_pic='-PIC'
9844 lt_prog_compiler_static='-Bstatic'
9845 ;;
9846
9847 sysv4 | sysv4.2uw2* | sysv4.3*)
9848 lt_prog_compiler_wl='-Wl,'
9849 lt_prog_compiler_pic='-KPIC'
9850 lt_prog_compiler_static='-Bstatic'
9851 ;;
9852
9853 sysv4*MP*)
9854 if test -d /usr/nec; then
9855 lt_prog_compiler_pic='-Kconform_pic'
9856 lt_prog_compiler_static='-Bstatic'
9857 fi
9858 ;;
9859
9860 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9861 lt_prog_compiler_wl='-Wl,'
9862 lt_prog_compiler_pic='-KPIC'
9863 lt_prog_compiler_static='-Bstatic'
9864 ;;
9865
9866 unicos*)
9867 lt_prog_compiler_wl='-Wl,'
9868 lt_prog_compiler_can_build_shared=no
9869 ;;
9870
9871 uts4*)
9872 lt_prog_compiler_pic='-pic'
9873 lt_prog_compiler_static='-Bstatic'
9874 ;;
9875
9876 *)
9877 lt_prog_compiler_can_build_shared=no
9878 ;;
9879 esac
9880 fi
9881
9882 case $host_os in
9883 # For platforms that do not support PIC, -DPIC is meaningless:
9884 *djgpp*)
9885 lt_prog_compiler_pic=
9886 ;;
9887 *)
9888 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9889 ;;
9890 esac
9891
9892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9893 printf %s "checking for $compiler option to produce PIC... " >&6; }
9894 if test ${lt_cv_prog_compiler_pic+y}
9895 then :
9896 printf %s "(cached) " >&6
9897 else case e in #(
9898 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9899 esac
9900 fi
9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9902 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9903 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9904
9905 #
9906 # Check to make sure the PIC flag actually works.
9907 #
9908 if test -n "$lt_prog_compiler_pic"; then
9909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9910 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9911 if test ${lt_cv_prog_compiler_pic_works+y}
9912 then :
9913 printf %s "(cached) " >&6
9914 else case e in #(
9915 e) lt_cv_prog_compiler_pic_works=no
9916 ac_outfile=conftest.$ac_objext
9917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9918 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9919 # Insert the option either (1) after the last *FLAGS variable, or
9920 # (2) before a word containing "conftest.", or (3) at the end.
9921 # Note that $ac_compile itself does not contain backslashes and begins
9922 # with a dollar sign (not a hyphen), so the echo should work correctly.
9923 # The option is referenced via a variable to avoid confusing sed.
9924 lt_compile=`echo "$ac_compile" | $SED \
9925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9927 -e 's:$: $lt_compiler_flag:'`
9928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9929 (eval "$lt_compile" 2>conftest.err)
9930 ac_status=$?
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 if (exit $ac_status) && test -s "$ac_outfile"; then
9934 # The compiler can only warn and ignore the option if not recognized
9935 # So say no if there are warnings other than the usual output.
9936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9939 lt_cv_prog_compiler_pic_works=yes
9940 fi
9941 fi
9942 $RM conftest*
9943 ;;
9944 esac
9945 fi
9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9947 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9948
9949 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9950 case $lt_prog_compiler_pic in
9951 "" | " "*) ;;
9952 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9953 esac
9954 else
9955 lt_prog_compiler_pic=
9956 lt_prog_compiler_can_build_shared=no
9957 fi
9958
9959 fi
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971 #
9972 # Check to make sure the static flag actually works.
9973 #
9974 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9976 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9977 if test ${lt_cv_prog_compiler_static_works+y}
9978 then :
9979 printf %s "(cached) " >&6
9980 else case e in #(
9981 e) lt_cv_prog_compiler_static_works=no
9982 save_LDFLAGS=$LDFLAGS
9983 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9984 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9985 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9986 # The linker can only warn and ignore the option if not recognized
9987 # So say no if there are warnings
9988 if test -s conftest.err; then
9989 # Append any errors to the config.log.
9990 cat conftest.err 1>&5
9991 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9993 if diff conftest.exp conftest.er2 >/dev/null; then
9994 lt_cv_prog_compiler_static_works=yes
9995 fi
9996 else
9997 lt_cv_prog_compiler_static_works=yes
9998 fi
9999 fi
10000 $RM -r conftest*
10001 LDFLAGS=$save_LDFLAGS
10002 ;;
10003 esac
10004 fi
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10006 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10007
10008 if test yes = "$lt_cv_prog_compiler_static_works"; then
10009 :
10010 else
10011 lt_prog_compiler_static=
10012 fi
10013
10014
10015
10016
10017
10018
10019
10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10021 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10022 if test ${lt_cv_prog_compiler_c_o+y}
10023 then :
10024 printf %s "(cached) " >&6
10025 else case e in #(
10026 e) lt_cv_prog_compiler_c_o=no
10027 $RM -r conftest 2>/dev/null
10028 mkdir conftest
10029 cd conftest
10030 mkdir out
10031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10032
10033 lt_compiler_flag="-o out/conftest2.$ac_objext"
10034 # Insert the option either (1) after the last *FLAGS variable, or
10035 # (2) before a word containing "conftest.", or (3) at the end.
10036 # Note that $ac_compile itself does not contain backslashes and begins
10037 # with a dollar sign (not a hyphen), so the echo should work correctly.
10038 lt_compile=`echo "$ac_compile" | $SED \
10039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10041 -e 's:$: $lt_compiler_flag:'`
10042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10043 (eval "$lt_compile" 2>out/conftest.err)
10044 ac_status=$?
10045 cat out/conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10048 then
10049 # The compiler can only warn and ignore the option if not recognized
10050 # So say no if there are warnings
10051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10054 lt_cv_prog_compiler_c_o=yes
10055 fi
10056 fi
10057 chmod u+w . 2>&5
10058 $RM conftest*
10059 # SGI C++ compiler will create directory out/ii_files/ for
10060 # template instantiation
10061 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10062 $RM out/* && rmdir out
10063 cd ..
10064 $RM -r conftest
10065 $RM conftest*
10066 ;;
10067 esac
10068 fi
10069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10070 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10071
10072
10073
10074
10075
10076
10077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10078 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10079 if test ${lt_cv_prog_compiler_c_o+y}
10080 then :
10081 printf %s "(cached) " >&6
10082 else case e in #(
10083 e) lt_cv_prog_compiler_c_o=no
10084 $RM -r conftest 2>/dev/null
10085 mkdir conftest
10086 cd conftest
10087 mkdir out
10088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10089
10090 lt_compiler_flag="-o out/conftest2.$ac_objext"
10091 # Insert the option either (1) after the last *FLAGS variable, or
10092 # (2) before a word containing "conftest.", or (3) at the end.
10093 # Note that $ac_compile itself does not contain backslashes and begins
10094 # with a dollar sign (not a hyphen), so the echo should work correctly.
10095 lt_compile=`echo "$ac_compile" | $SED \
10096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10098 -e 's:$: $lt_compiler_flag:'`
10099 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10100 (eval "$lt_compile" 2>out/conftest.err)
10101 ac_status=$?
10102 cat out/conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10105 then
10106 # The compiler can only warn and ignore the option if not recognized
10107 # So say no if there are warnings
10108 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10109 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10110 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10111 lt_cv_prog_compiler_c_o=yes
10112 fi
10113 fi
10114 chmod u+w . 2>&5
10115 $RM conftest*
10116 # SGI C++ compiler will create directory out/ii_files/ for
10117 # template instantiation
10118 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10119 $RM out/* && rmdir out
10120 cd ..
10121 $RM -r conftest
10122 $RM conftest*
10123 ;;
10124 esac
10125 fi
10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10127 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10128
10129
10130
10131
10132 hard_links=nottested
10133 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10134 # do not overwrite the value of need_locks provided by the user
10135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10136 printf %s "checking if we can lock with hard links... " >&6; }
10137 hard_links=yes
10138 $RM conftest*
10139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10140 touch conftest.a
10141 ln conftest.a conftest.b 2>&5 || hard_links=no
10142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10144 printf "%s\n" "$hard_links" >&6; }
10145 if test no = "$hard_links"; then
10146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10147 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10148 need_locks=warn
10149 fi
10150 else
10151 need_locks=no
10152 fi
10153
10154
10155
10156
10157
10158
10159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10160 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10161
10162 runpath_var=
10163 allow_undefined_flag=
10164 always_export_symbols=no
10165 archive_cmds=
10166 archive_expsym_cmds=
10167 compiler_needs_object=no
10168 enable_shared_with_static_runtimes=no
10169 export_dynamic_flag_spec=
10170 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10171 hardcode_automatic=no
10172 hardcode_direct=no
10173 hardcode_direct_absolute=no
10174 hardcode_libdir_flag_spec=
10175 hardcode_libdir_separator=
10176 hardcode_minus_L=no
10177 hardcode_shlibpath_var=unsupported
10178 inherit_rpath=no
10179 link_all_deplibs=unknown
10180 module_cmds=
10181 module_expsym_cmds=
10182 old_archive_from_new_cmds=
10183 old_archive_from_expsyms_cmds=
10184 thread_safe_flag_spec=
10185 whole_archive_flag_spec=
10186 # include_expsyms should be a list of space-separated symbols to be *always*
10187 # included in the symbol list
10188 include_expsyms=
10189 # exclude_expsyms can be an extended regexp of symbols to exclude
10190 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10191 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10192 # as well as any symbol that contains 'd'.
10193 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10194 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10195 # platforms (ab)use it in PIC code, but their linkers get confused if
10196 # the symbol is explicitly referenced. Since portable code cannot
10197 # rely on this symbol name, it's probably fine to never include it in
10198 # preloaded symbol tables.
10199 # Exclude shared library initialization/finalization symbols.
10200 extract_expsyms_cmds=
10201
10202 case $host_os in
10203 cygwin* | mingw* | windows* | pw32* | cegcc*)
10204 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10205 # When not using gcc, we currently assume that we are using
10206 # Microsoft Visual C++ or Intel C++ Compiler.
10207 if test yes != "$GCC"; then
10208 with_gnu_ld=no
10209 fi
10210 ;;
10211 interix*)
10212 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10213 with_gnu_ld=yes
10214 ;;
10215 esac
10216
10217 ld_shlibs=yes
10218
10219 # On some targets, GNU ld is compatible enough with the native linker
10220 # that we're better off using the native interface for both.
10221 lt_use_gnu_ld_interface=no
10222 if test yes = "$with_gnu_ld"; then
10223 case $host_os in
10224 aix*)
10225 # The AIX port of GNU ld has always aspired to compatibility
10226 # with the native linker. However, as the warning in the GNU ld
10227 # block says, versions before 2.19.5* couldn't really create working
10228 # shared libraries, regardless of the interface used.
10229 case `$LD -v 2>&1` in
10230 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10231 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10232 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10233 *)
10234 lt_use_gnu_ld_interface=yes
10235 ;;
10236 esac
10237 ;;
10238 *)
10239 lt_use_gnu_ld_interface=yes
10240 ;;
10241 esac
10242 fi
10243
10244 if test yes = "$lt_use_gnu_ld_interface"; then
10245 # If archive_cmds runs LD, not CC, wlarc should be empty
10246 wlarc='$wl'
10247
10248 # Set some defaults for GNU ld with shared library support. These
10249 # are reset later if shared libraries are not supported. Putting them
10250 # here allows them to be overridden if necessary.
10251 runpath_var=LD_RUN_PATH
10252 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10253 export_dynamic_flag_spec='$wl--export-dynamic'
10254 # ancient GNU ld didn't support --whole-archive et. al.
10255 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10256 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10257 else
10258 whole_archive_flag_spec=
10259 fi
10260 supports_anon_versioning=no
10261 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10262 *GNU\ gold*) supports_anon_versioning=yes ;;
10263 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10264 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10265 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10266 *\ 2.11.*) ;; # other 2.11 versions
10267 *) supports_anon_versioning=yes ;;
10268 esac
10269
10270 # See if GNU ld supports shared libraries.
10271 case $host_os in
10272 aix[3-9]*)
10273 # On AIX/PPC, the GNU linker is very broken
10274 if test ia64 != "$host_cpu"; then
10275 ld_shlibs=no
10276 cat <<_LT_EOF 1>&2
10277
10278 *** Warning: the GNU linker, at least up to release 2.19, is reported
10279 *** to be unable to reliably create shared libraries on AIX.
10280 *** Therefore, libtool is disabling shared libraries support. If you
10281 *** really care for shared libraries, you may want to install binutils
10282 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10283 *** You will then need to restart the configuration process.
10284
10285 _LT_EOF
10286 fi
10287 ;;
10288
10289 amigaos*)
10290 case $host_cpu in
10291 powerpc)
10292 # see comment about AmigaOS4 .so support
10293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10294 archive_expsym_cmds=''
10295 ;;
10296 m68k)
10297 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)'
10298 hardcode_libdir_flag_spec='-L$libdir'
10299 hardcode_minus_L=yes
10300 ;;
10301 esac
10302 ;;
10303
10304 beos*)
10305 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10306 allow_undefined_flag=unsupported
10307 # Joseph Beckenbach <[email protected]> says some releases of gcc
10308 # support --undefined. This deserves some investigation. FIXME
10309 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10310 else
10311 ld_shlibs=no
10312 fi
10313 ;;
10314
10315 cygwin* | mingw* | windows* | pw32* | cegcc*)
10316 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10317 # as there is no search path for DLLs.
10318 hardcode_libdir_flag_spec='-L$libdir'
10319 export_dynamic_flag_spec='$wl--export-all-symbols'
10320 allow_undefined_flag=unsupported
10321 always_export_symbols=no
10322 enable_shared_with_static_runtimes=yes
10323 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'
10324 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10325 file_list_spec='@'
10326
10327 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10329 # If the export-symbols file already is a .def file, use it as
10330 # is; otherwise, prepend EXPORTS...
10331 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10332 cp $export_symbols $output_objdir/$soname.def;
10333 else
10334 echo EXPORTS > $output_objdir/$soname.def;
10335 cat $export_symbols >> $output_objdir/$soname.def;
10336 fi~
10337 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10338 else
10339 ld_shlibs=no
10340 fi
10341 ;;
10342
10343 haiku*)
10344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10345 link_all_deplibs=no
10346 ;;
10347
10348 os2*)
10349 hardcode_libdir_flag_spec='-L$libdir'
10350 hardcode_minus_L=yes
10351 allow_undefined_flag=unsupported
10352 shrext_cmds=.dll
10353 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10354 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10355 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10356 $ECHO EXPORTS >> $output_objdir/$libname.def~
10357 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10358 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10359 emximp -o $lib $output_objdir/$libname.def'
10360 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10361 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10362 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10363 $ECHO EXPORTS >> $output_objdir/$libname.def~
10364 prefix_cmds="$SED"~
10365 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10366 prefix_cmds="$prefix_cmds -e 1d";
10367 fi~
10368 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10369 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10370 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10371 emximp -o $lib $output_objdir/$libname.def'
10372 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10373 enable_shared_with_static_runtimes=yes
10374 file_list_spec='@'
10375 ;;
10376
10377 interix[3-9]*)
10378 hardcode_direct=no
10379 hardcode_shlibpath_var=no
10380 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10381 export_dynamic_flag_spec='$wl-E'
10382 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10383 # Instead, shared libraries are loaded at an image base (0x10000000 by
10384 # default) and relocated if they conflict, which is a slow very memory
10385 # consuming and fragmenting process. To avoid this, we pick a random,
10386 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10387 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10388 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10389 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'
10390 ;;
10391
10392 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10393 tmp_diet=no
10394 if test linux-dietlibc = "$host_os"; then
10395 case $cc_basename in
10396 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10397 esac
10398 fi
10399 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10400 && test no = "$tmp_diet"
10401 then
10402 tmp_addflag=' $pic_flag'
10403 tmp_sharedflag='-shared'
10404 case $cc_basename,$host_cpu in
10405 pgcc*) # Portland Group C compiler
10406 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'
10407 tmp_addflag=' $pic_flag'
10408 ;;
10409 pgf77* | pgf90* | pgf95* | pgfortran*)
10410 # Portland Group f77 and f90 compilers
10411 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'
10412 tmp_addflag=' $pic_flag -Mnomain' ;;
10413 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10414 tmp_addflag=' -i_dynamic' ;;
10415 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10416 tmp_addflag=' -i_dynamic -nofor_main' ;;
10417 ifc* | ifort*) # Intel Fortran compiler
10418 tmp_addflag=' -nofor_main' ;;
10419 lf95*) # Lahey Fortran 8.1
10420 whole_archive_flag_spec=
10421 tmp_sharedflag='--shared' ;;
10422 nagfor*) # NAGFOR 5.3
10423 tmp_sharedflag='-Wl,-shared' ;;
10424 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10425 tmp_sharedflag='-qmkshrobj'
10426 tmp_addflag= ;;
10427 nvcc*) # Cuda Compiler Driver 2.2
10428 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'
10429 compiler_needs_object=yes
10430 ;;
10431 esac
10432 case `$CC -V 2>&1 | $SED 5q` in
10433 *Sun\ C*) # Sun C 5.9
10434 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'
10435 compiler_needs_object=yes
10436 tmp_sharedflag='-G' ;;
10437 *Sun\ F*) # Sun Fortran 8.3
10438 tmp_sharedflag='-G' ;;
10439 esac
10440 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10441
10442 if test yes = "$supports_anon_versioning"; then
10443 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10444 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10445 echo "local: *; };" >> $output_objdir/$libname.ver~
10446 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10447 fi
10448
10449 case $cc_basename in
10450 tcc*)
10451 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10452 export_dynamic_flag_spec='-rdynamic'
10453 ;;
10454 xlf* | bgf* | bgxlf* | mpixlf*)
10455 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10456 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10457 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10458 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10459 if test yes = "$supports_anon_versioning"; then
10460 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10461 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10462 echo "local: *; };" >> $output_objdir/$libname.ver~
10463 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10464 fi
10465 ;;
10466 esac
10467 else
10468 ld_shlibs=no
10469 fi
10470 ;;
10471
10472 *-mlibc)
10473 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10474 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10475 ;;
10476
10477 netbsd* | netbsdelf*-gnu)
10478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10479 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10480 wlarc=
10481 else
10482 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10483 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10484 fi
10485 ;;
10486
10487 solaris*)
10488 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10489 ld_shlibs=no
10490 cat <<_LT_EOF 1>&2
10491
10492 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10493 *** create shared libraries on Solaris systems. Therefore, libtool
10494 *** is disabling shared libraries support. We urge you to upgrade GNU
10495 *** binutils to release 2.9.1 or newer. Another option is to modify
10496 *** your PATH or compiler configuration so that the native linker is
10497 *** used, and then restart.
10498
10499 _LT_EOF
10500 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10501 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10502 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10503 else
10504 ld_shlibs=no
10505 fi
10506 ;;
10507
10508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10509 case `$LD -v 2>&1` in
10510 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10511 ld_shlibs=no
10512 cat <<_LT_EOF 1>&2
10513
10514 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10515 *** reliably create shared libraries on SCO systems. Therefore, libtool
10516 *** is disabling shared libraries support. We urge you to upgrade GNU
10517 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10518 *** your PATH or compiler configuration so that the native linker is
10519 *** used, and then restart.
10520
10521 _LT_EOF
10522 ;;
10523 *)
10524 # For security reasons, it is highly recommended that you always
10525 # use absolute paths for naming shared libraries, and exclude the
10526 # DT_RUNPATH tag from executables and libraries. But doing so
10527 # requires that you compile everything twice, which is a pain.
10528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10529 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10532 else
10533 ld_shlibs=no
10534 fi
10535 ;;
10536 esac
10537 ;;
10538
10539 sunos4*)
10540 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10541 wlarc=
10542 hardcode_direct=yes
10543 hardcode_shlibpath_var=no
10544 ;;
10545
10546 *)
10547 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10548 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10549 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10550 else
10551 ld_shlibs=no
10552 fi
10553 ;;
10554 esac
10555
10556 if test no = "$ld_shlibs"; then
10557 runpath_var=
10558 hardcode_libdir_flag_spec=
10559 export_dynamic_flag_spec=
10560 whole_archive_flag_spec=
10561 fi
10562 else
10563 # PORTME fill in a description of your system's linker (not GNU ld)
10564 case $host_os in
10565 aix3*)
10566 allow_undefined_flag=unsupported
10567 always_export_symbols=yes
10568 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'
10569 # Note: this linker hardcodes the directories in LIBPATH if there
10570 # are no directories specified by -L.
10571 hardcode_minus_L=yes
10572 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10573 # Neither direct hardcoding nor static linking is supported with a
10574 # broken collect2.
10575 hardcode_direct=unsupported
10576 fi
10577 ;;
10578
10579 aix[4-9]*)
10580 if test ia64 = "$host_cpu"; then
10581 # On IA64, the linker does run time linking by default, so we don't
10582 # have to do anything special.
10583 aix_use_runtimelinking=no
10584 exp_sym_flag='-Bexport'
10585 no_entry_flag=
10586 else
10587 # If we're using GNU nm, then we don't want the "-C" option.
10588 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10589 # Without the "-l" option, or with the "-B" option, AIX nm treats
10590 # weak defined symbols like other global defined symbols, whereas
10591 # GNU nm marks them as "W".
10592 # While the 'weak' keyword is ignored in the Export File, we need
10593 # it in the Import File for the 'aix-soname' feature, so we have
10594 # to replace the "-B" option with "-P" for AIX nm.
10595 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10596 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'
10597 else
10598 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'
10599 fi
10600 aix_use_runtimelinking=no
10601
10602 # Test if we are trying to use run time linking or normal
10603 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10604 # have runtime linking enabled, and use it for executables.
10605 # For shared libraries, we enable/disable runtime linking
10606 # depending on the kind of the shared library created -
10607 # when "with_aix_soname,aix_use_runtimelinking" is:
10608 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10609 # "aix,yes" lib.so shared, rtl:yes, for executables
10610 # lib.a static archive
10611 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10612 # lib.a(lib.so.V) shared, rtl:no, for executables
10613 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10614 # lib.a(lib.so.V) shared, rtl:no
10615 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10616 # lib.a static archive
10617 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10618 for ld_flag in $LDFLAGS; do
10619 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10620 aix_use_runtimelinking=yes
10621 break
10622 fi
10623 done
10624 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10625 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10626 # so we don't have lib.a shared libs to link our executables.
10627 # We have to force runtime linking in this case.
10628 aix_use_runtimelinking=yes
10629 LDFLAGS="$LDFLAGS -Wl,-brtl"
10630 fi
10631 ;;
10632 esac
10633
10634 exp_sym_flag='-bexport'
10635 no_entry_flag='-bnoentry'
10636 fi
10637
10638 # When large executables or shared objects are built, AIX ld can
10639 # have problems creating the table of contents. If linking a library
10640 # or program results in "error TOC overflow" add -mminimal-toc to
10641 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10642 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10643
10644 archive_cmds=''
10645 hardcode_direct=yes
10646 hardcode_direct_absolute=yes
10647 hardcode_libdir_separator=':'
10648 link_all_deplibs=yes
10649 file_list_spec='$wl-f,'
10650 case $with_aix_soname,$aix_use_runtimelinking in
10651 aix,*) ;; # traditional, no import file
10652 svr4,* | *,yes) # use import file
10653 # The Import File defines what to hardcode.
10654 hardcode_direct=no
10655 hardcode_direct_absolute=no
10656 ;;
10657 esac
10658
10659 if test yes = "$GCC"; then
10660 case $host_os in aix4.[012]|aix4.[012].*)
10661 # We only want to do this on AIX 4.2 and lower, the check
10662 # below for broken collect2 doesn't work under 4.3+
10663 collect2name=`$CC -print-prog-name=collect2`
10664 if test -f "$collect2name" &&
10665 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10666 then
10667 # We have reworked collect2
10668 :
10669 else
10670 # We have old collect2
10671 hardcode_direct=unsupported
10672 # It fails to find uninstalled libraries when the uninstalled
10673 # path is not listed in the libpath. Setting hardcode_minus_L
10674 # to unsupported forces relinking
10675 hardcode_minus_L=yes
10676 hardcode_libdir_flag_spec='-L$libdir'
10677 hardcode_libdir_separator=
10678 fi
10679 ;;
10680 esac
10681 shared_flag='-shared'
10682 if test yes = "$aix_use_runtimelinking"; then
10683 shared_flag="$shared_flag "'$wl-G'
10684 fi
10685 # Need to ensure runtime linking is disabled for the traditional
10686 # shared library, or the linker may eventually find shared libraries
10687 # /with/ Import File - we do not want to mix them.
10688 shared_flag_aix='-shared'
10689 shared_flag_svr4='-shared $wl-G'
10690 else
10691 # not using gcc
10692 if test ia64 = "$host_cpu"; then
10693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10694 # chokes on -Wl,-G. The following line is correct:
10695 shared_flag='-G'
10696 else
10697 if test yes = "$aix_use_runtimelinking"; then
10698 shared_flag='$wl-G'
10699 else
10700 shared_flag='$wl-bM:SRE'
10701 fi
10702 shared_flag_aix='$wl-bM:SRE'
10703 shared_flag_svr4='$wl-G'
10704 fi
10705 fi
10706
10707 export_dynamic_flag_spec='$wl-bexpall'
10708 # It seems that -bexpall does not export symbols beginning with
10709 # underscore (_), so it is better to generate a list of symbols to export.
10710 always_export_symbols=yes
10711 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10712 # Warning - without using the other runtime loading flags (-brtl),
10713 # -berok will link without error, but may produce a broken library.
10714 allow_undefined_flag='-berok'
10715 # Determine the default libpath from the value encoded in an
10716 # empty executable.
10717 if test set = "${lt_cv_aix_libpath+set}"; then
10718 aix_libpath=$lt_cv_aix_libpath
10719 else
10720 if test ${lt_cv_aix_libpath_+y}
10721 then :
10722 printf %s "(cached) " >&6
10723 else case e in #(
10724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726
10727 int
10728 main (void)
10729 {
10730
10731 ;
10732 return 0;
10733 }
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"
10736 then :
10737
10738 lt_aix_libpath_sed='
10739 /Import File Strings/,/^$/ {
10740 /^0/ {
10741 s/^0 *\([^ ]*\) *$/\1/
10742 p
10743 }
10744 }'
10745 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10746 # Check for a 64-bit object if we didn't find anything.
10747 if test -z "$lt_cv_aix_libpath_"; then
10748 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10749 fi
10750 fi
10751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10752 conftest$ac_exeext conftest.$ac_ext
10753 if test -z "$lt_cv_aix_libpath_"; then
10754 lt_cv_aix_libpath_=/usr/lib:/lib
10755 fi
10756 ;;
10757 esac
10758 fi
10759
10760 aix_libpath=$lt_cv_aix_libpath_
10761 fi
10762
10763 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10764 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
10765 else
10766 if test ia64 = "$host_cpu"; then
10767 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10768 allow_undefined_flag="-z nodefs"
10769 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"
10770 else
10771 # Determine the default libpath from the value encoded in an
10772 # empty executable.
10773 if test set = "${lt_cv_aix_libpath+set}"; then
10774 aix_libpath=$lt_cv_aix_libpath
10775 else
10776 if test ${lt_cv_aix_libpath_+y}
10777 then :
10778 printf %s "(cached) " >&6
10779 else case e in #(
10780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h. */
10782
10783 int
10784 main (void)
10785 {
10786
10787 ;
10788 return 0;
10789 }
10790 _ACEOF
10791 if ac_fn_c_try_link "$LINENO"
10792 then :
10793
10794 lt_aix_libpath_sed='
10795 /Import File Strings/,/^$/ {
10796 /^0/ {
10797 s/^0 *\([^ ]*\) *$/\1/
10798 p
10799 }
10800 }'
10801 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10802 # Check for a 64-bit object if we didn't find anything.
10803 if test -z "$lt_cv_aix_libpath_"; then
10804 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10805 fi
10806 fi
10807 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10808 conftest$ac_exeext conftest.$ac_ext
10809 if test -z "$lt_cv_aix_libpath_"; then
10810 lt_cv_aix_libpath_=/usr/lib:/lib
10811 fi
10812 ;;
10813 esac
10814 fi
10815
10816 aix_libpath=$lt_cv_aix_libpath_
10817 fi
10818
10819 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10820 # Warning - without using the other run time loading flags,
10821 # -berok will link without error, but may produce a broken library.
10822 no_undefined_flag=' $wl-bernotok'
10823 allow_undefined_flag=' $wl-berok'
10824 if test yes = "$with_gnu_ld"; then
10825 # We only use this code for GNU lds that support --whole-archive.
10826 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10827 else
10828 # Exported symbols can be pulled into shared objects from archives
10829 whole_archive_flag_spec='$convenience'
10830 fi
10831 archive_cmds_need_lc=yes
10832 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10833 # -brtl affects multiple linker settings, -berok does not and is overridden later
10834 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10835 if test svr4 != "$with_aix_soname"; then
10836 # This is similar to how AIX traditionally builds its shared libraries.
10837 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'
10838 fi
10839 if test aix != "$with_aix_soname"; then
10840 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'
10841 else
10842 # used by -dlpreopen to get the symbols
10843 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10844 fi
10845 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10846 fi
10847 fi
10848 ;;
10849
10850 amigaos*)
10851 case $host_cpu in
10852 powerpc)
10853 # see comment about AmigaOS4 .so support
10854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10855 archive_expsym_cmds=''
10856 ;;
10857 m68k)
10858 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)'
10859 hardcode_libdir_flag_spec='-L$libdir'
10860 hardcode_minus_L=yes
10861 ;;
10862 esac
10863 ;;
10864
10865 bsdi[45]*)
10866 export_dynamic_flag_spec=-rdynamic
10867 ;;
10868
10869 cygwin* | mingw* | windows* | pw32* | cegcc*)
10870 # When not using gcc, we currently assume that we are using
10871 # Microsoft Visual C++ or Intel C++ Compiler.
10872 # hardcode_libdir_flag_spec is actually meaningless, as there is
10873 # no search path for DLLs.
10874 case $cc_basename in
10875 cl* | icl*)
10876 # Native MSVC or ICC
10877 hardcode_libdir_flag_spec=' '
10878 allow_undefined_flag=unsupported
10879 always_export_symbols=yes
10880 file_list_spec='@'
10881 # Tell ltmain to make .lib files, not .a files.
10882 libext=lib
10883 # Tell ltmain to make .dll files, not .so files.
10884 shrext_cmds=.dll
10885 # FIXME: Setting linknames here is a bad hack.
10886 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10887 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10888 cp "$export_symbols" "$output_objdir/$soname.def";
10889 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10890 else
10891 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10892 fi~
10893 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10894 linknames='
10895 # The linker will not automatically build a static lib if we build a DLL.
10896 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10897 enable_shared_with_static_runtimes=yes
10898 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10899 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10900 # Don't use ranlib
10901 old_postinstall_cmds='chmod 644 $oldlib'
10902 postlink_cmds='lt_outputfile="@OUTPUT@"~
10903 lt_tool_outputfile="@TOOL_OUTPUT@"~
10904 case $lt_outputfile in
10905 *.exe|*.EXE) ;;
10906 *)
10907 lt_outputfile=$lt_outputfile.exe
10908 lt_tool_outputfile=$lt_tool_outputfile.exe
10909 ;;
10910 esac~
10911 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10912 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10913 $RM "$lt_outputfile.manifest";
10914 fi'
10915 ;;
10916 *)
10917 # Assume MSVC and ICC wrapper
10918 hardcode_libdir_flag_spec=' '
10919 allow_undefined_flag=unsupported
10920 # Tell ltmain to make .lib files, not .a files.
10921 libext=lib
10922 # Tell ltmain to make .dll files, not .so files.
10923 shrext_cmds=.dll
10924 # FIXME: Setting linknames here is a bad hack.
10925 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10926 # The linker will automatically build a .lib file if we build a DLL.
10927 old_archive_from_new_cmds='true'
10928 # FIXME: Should let the user specify the lib program.
10929 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10930 enable_shared_with_static_runtimes=yes
10931 ;;
10932 esac
10933 ;;
10934
10935 darwin* | rhapsody*)
10936
10937
10938 archive_cmds_need_lc=no
10939 hardcode_direct=no
10940 hardcode_automatic=yes
10941 hardcode_shlibpath_var=unsupported
10942 if test yes = "$lt_cv_ld_force_load"; then
10943 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\"`'
10944
10945 else
10946 whole_archive_flag_spec=''
10947 fi
10948 link_all_deplibs=yes
10949 allow_undefined_flag=$_lt_dar_allow_undefined
10950 case $cc_basename in
10951 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10952 *) _lt_dar_can_shared=$GCC ;;
10953 esac
10954 if test yes = "$_lt_dar_can_shared"; then
10955 output_verbose_link_cmd=func_echo_all
10956 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10957 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10958 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"
10959 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"
10960
10961 else
10962 ld_shlibs=no
10963 fi
10964
10965 ;;
10966
10967 dgux*)
10968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10969 hardcode_libdir_flag_spec='-L$libdir'
10970 hardcode_shlibpath_var=no
10971 ;;
10972
10973 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10974 # support. Future versions do this automatically, but an explicit c++rt0.o
10975 # does not break anything, and helps significantly (at the cost of a little
10976 # extra space).
10977 freebsd2.2*)
10978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10979 hardcode_libdir_flag_spec='-R$libdir'
10980 hardcode_direct=yes
10981 hardcode_shlibpath_var=no
10982 ;;
10983
10984 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10985 freebsd2.*)
10986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10987 hardcode_direct=yes
10988 hardcode_minus_L=yes
10989 hardcode_shlibpath_var=no
10990 ;;
10991
10992 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10993 freebsd* | dragonfly* | midnightbsd*)
10994 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10995 hardcode_libdir_flag_spec='-R$libdir'
10996 hardcode_direct=yes
10997 hardcode_shlibpath_var=no
10998 ;;
10999
11000 hpux9*)
11001 if test yes = "$GCC"; then
11002 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'
11003 else
11004 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'
11005 fi
11006 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11007 hardcode_libdir_separator=:
11008 hardcode_direct=yes
11009
11010 # hardcode_minus_L: Not really in the search PATH,
11011 # but as the default location of the library.
11012 hardcode_minus_L=yes
11013 export_dynamic_flag_spec='$wl-E'
11014 ;;
11015
11016 hpux10*)
11017 if test yes,no = "$GCC,$with_gnu_ld"; then
11018 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11019 else
11020 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11021 fi
11022 if test no = "$with_gnu_ld"; then
11023 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11024 hardcode_libdir_separator=:
11025 hardcode_direct=yes
11026 hardcode_direct_absolute=yes
11027 export_dynamic_flag_spec='$wl-E'
11028 # hardcode_minus_L: Not really in the search PATH,
11029 # but as the default location of the library.
11030 hardcode_minus_L=yes
11031 fi
11032 ;;
11033
11034 hpux11*)
11035 if test yes,no = "$GCC,$with_gnu_ld"; then
11036 case $host_cpu in
11037 hppa*64*)
11038 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11039 ;;
11040 ia64*)
11041 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11042 ;;
11043 *)
11044 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11045 ;;
11046 esac
11047 else
11048 case $host_cpu in
11049 hppa*64*)
11050 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11051 ;;
11052 ia64*)
11053 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11054 ;;
11055 *)
11056
11057 # Older versions of the 11.00 compiler do not understand -b yet
11058 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11060 printf %s "checking if $CC understands -b... " >&6; }
11061 if test ${lt_cv_prog_compiler__b+y}
11062 then :
11063 printf %s "(cached) " >&6
11064 else case e in #(
11065 e) lt_cv_prog_compiler__b=no
11066 save_LDFLAGS=$LDFLAGS
11067 LDFLAGS="$LDFLAGS -b"
11068 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11069 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11070 # The linker can only warn and ignore the option if not recognized
11071 # So say no if there are warnings
11072 if test -s conftest.err; then
11073 # Append any errors to the config.log.
11074 cat conftest.err 1>&5
11075 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11077 if diff conftest.exp conftest.er2 >/dev/null; then
11078 lt_cv_prog_compiler__b=yes
11079 fi
11080 else
11081 lt_cv_prog_compiler__b=yes
11082 fi
11083 fi
11084 $RM -r conftest*
11085 LDFLAGS=$save_LDFLAGS
11086 ;;
11087 esac
11088 fi
11089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11090 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11091
11092 if test yes = "$lt_cv_prog_compiler__b"; then
11093 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11094 else
11095 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11096 fi
11097
11098 ;;
11099 esac
11100 fi
11101 if test no = "$with_gnu_ld"; then
11102 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11103 hardcode_libdir_separator=:
11104
11105 case $host_cpu in
11106 hppa*64*|ia64*)
11107 hardcode_direct=no
11108 hardcode_shlibpath_var=no
11109 ;;
11110 *)
11111 hardcode_direct=yes
11112 hardcode_direct_absolute=yes
11113 export_dynamic_flag_spec='$wl-E'
11114
11115 # hardcode_minus_L: Not really in the search PATH,
11116 # but as the default location of the library.
11117 hardcode_minus_L=yes
11118 ;;
11119 esac
11120 fi
11121 ;;
11122
11123 irix5* | irix6* | nonstopux*)
11124 if test yes = "$GCC"; then
11125 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'
11126 # Try to use the -exported_symbol ld option, if it does not
11127 # work, assume that -exports_file does not work either and
11128 # implicitly export all symbols.
11129 # This should be the same for all languages, so no per-tag cache variable.
11130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11131 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11132 if test ${lt_cv_irix_exported_symbol+y}
11133 then :
11134 printf %s "(cached) " >&6
11135 else case e in #(
11136 e) save_LDFLAGS=$LDFLAGS
11137 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139 /* end confdefs.h. */
11140 int foo (void) { return 0; }
11141 _ACEOF
11142 if ac_fn_c_try_link "$LINENO"
11143 then :
11144 lt_cv_irix_exported_symbol=yes
11145 else case e in #(
11146 e) lt_cv_irix_exported_symbol=no ;;
11147 esac
11148 fi
11149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11150 conftest$ac_exeext conftest.$ac_ext
11151 LDFLAGS=$save_LDFLAGS ;;
11152 esac
11153 fi
11154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11155 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11156 if test yes = "$lt_cv_irix_exported_symbol"; then
11157 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'
11158 fi
11159 else
11160 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'
11161 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'
11162 fi
11163 archive_cmds_need_lc='no'
11164 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11165 hardcode_libdir_separator=:
11166 inherit_rpath=yes
11167 link_all_deplibs=yes
11168 ;;
11169
11170 linux*)
11171 case $cc_basename in
11172 tcc*)
11173 # Fabrice Bellard et al's Tiny C Compiler
11174 ld_shlibs=yes
11175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11176 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11177 ;;
11178 esac
11179 ;;
11180
11181 *-mlibc)
11182 ;;
11183
11184 netbsd* | netbsdelf*-gnu)
11185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11187 else
11188 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11189 fi
11190 hardcode_libdir_flag_spec='-R$libdir'
11191 hardcode_direct=yes
11192 hardcode_shlibpath_var=no
11193 ;;
11194
11195 newsos6)
11196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11197 hardcode_direct=yes
11198 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11199 hardcode_libdir_separator=:
11200 hardcode_shlibpath_var=no
11201 ;;
11202
11203 *nto* | *qnx*)
11204 ;;
11205
11206 openbsd*)
11207 if test -f /usr/libexec/ld.so; then
11208 hardcode_direct=yes
11209 hardcode_shlibpath_var=no
11210 hardcode_direct_absolute=yes
11211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11212 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11213 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11214 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11215 export_dynamic_flag_spec='$wl-E'
11216 else
11217 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11218 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11219 fi
11220 else
11221 ld_shlibs=no
11222 fi
11223 ;;
11224
11225 os2*)
11226 hardcode_libdir_flag_spec='-L$libdir'
11227 hardcode_minus_L=yes
11228 allow_undefined_flag=unsupported
11229 shrext_cmds=.dll
11230 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11231 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11232 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11233 $ECHO EXPORTS >> $output_objdir/$libname.def~
11234 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11235 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11236 emximp -o $lib $output_objdir/$libname.def'
11237 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11238 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11239 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11240 $ECHO EXPORTS >> $output_objdir/$libname.def~
11241 prefix_cmds="$SED"~
11242 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11243 prefix_cmds="$prefix_cmds -e 1d";
11244 fi~
11245 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11246 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11247 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11248 emximp -o $lib $output_objdir/$libname.def'
11249 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11250 enable_shared_with_static_runtimes=yes
11251 file_list_spec='@'
11252 ;;
11253
11254 osf3*)
11255 if test yes = "$GCC"; then
11256 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11257 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'
11258 else
11259 allow_undefined_flag=' -expect_unresolved \*'
11260 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'
11261 fi
11262 archive_cmds_need_lc='no'
11263 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11264 hardcode_libdir_separator=:
11265 ;;
11266
11267 osf4* | osf5*) # as osf3* with the addition of -msym flag
11268 if test yes = "$GCC"; then
11269 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11270 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'
11271 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11272 else
11273 allow_undefined_flag=' -expect_unresolved \*'
11274 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'
11275 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~
11276 $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'
11277
11278 # Both c and cxx compiler support -rpath directly
11279 hardcode_libdir_flag_spec='-rpath $libdir'
11280 fi
11281 archive_cmds_need_lc='no'
11282 hardcode_libdir_separator=:
11283 ;;
11284
11285 serenity*)
11286 ;;
11287
11288 solaris*)
11289 no_undefined_flag=' -z defs'
11290 if test yes = "$GCC"; then
11291 wlarc='$wl'
11292 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11293 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11294 $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'
11295 else
11296 case `$CC -V 2>&1` in
11297 *"Compilers 5.0"*)
11298 wlarc=''
11299 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11300 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11301 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11302 ;;
11303 *)
11304 wlarc='$wl'
11305 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11306 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11307 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11308 ;;
11309 esac
11310 fi
11311 hardcode_libdir_flag_spec='-R$libdir'
11312 hardcode_shlibpath_var=no
11313 case $host_os in
11314 solaris2.[0-5] | solaris2.[0-5].*) ;;
11315 *)
11316 # The compiler driver will combine and reorder linker options,
11317 # but understands '-z linker_flag'. GCC discards it without '$wl',
11318 # but is careful enough not to reorder.
11319 # Supported since Solaris 2.6 (maybe 2.5.1?)
11320 if test yes = "$GCC"; then
11321 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11322 else
11323 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11324 fi
11325 ;;
11326 esac
11327 link_all_deplibs=yes
11328 ;;
11329
11330 sunos4*)
11331 if test sequent = "$host_vendor"; then
11332 # Use $CC to link under sequent, because it throws in some extra .o
11333 # files that make .init and .fini sections work.
11334 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11335 else
11336 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11337 fi
11338 hardcode_libdir_flag_spec='-L$libdir'
11339 hardcode_direct=yes
11340 hardcode_minus_L=yes
11341 hardcode_shlibpath_var=no
11342 ;;
11343
11344 sysv4)
11345 case $host_vendor in
11346 sni)
11347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11348 hardcode_direct=yes # is this really true???
11349 ;;
11350 siemens)
11351 ## LD is ld it makes a PLAMLIB
11352 ## CC just makes a GrossModule.
11353 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11354 reload_cmds='$CC -r -o $output$reload_objs'
11355 hardcode_direct=no
11356 ;;
11357 motorola)
11358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11359 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11360 ;;
11361 esac
11362 runpath_var='LD_RUN_PATH'
11363 hardcode_shlibpath_var=no
11364 ;;
11365
11366 sysv4.3*)
11367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11368 hardcode_shlibpath_var=no
11369 export_dynamic_flag_spec='-Bexport'
11370 ;;
11371
11372 sysv4*MP*)
11373 if test -d /usr/nec; then
11374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11375 hardcode_shlibpath_var=no
11376 runpath_var=LD_RUN_PATH
11377 hardcode_runpath_var=yes
11378 ld_shlibs=yes
11379 fi
11380 ;;
11381
11382 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11383 no_undefined_flag='$wl-z,text'
11384 archive_cmds_need_lc=no
11385 hardcode_shlibpath_var=no
11386 runpath_var='LD_RUN_PATH'
11387
11388 if test yes = "$GCC"; then
11389 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11390 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11391 else
11392 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11393 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11394 fi
11395 ;;
11396
11397 sysv5* | sco3.2v5* | sco5v6*)
11398 # Note: We CANNOT use -z defs as we might desire, because we do not
11399 # link with -lc, and that would cause any symbols used from libc to
11400 # always be unresolved, which means just about no library would
11401 # ever link correctly. If we're not using GNU ld we use -z text
11402 # though, which does catch some bad symbols but isn't as heavy-handed
11403 # as -z defs.
11404 no_undefined_flag='$wl-z,text'
11405 allow_undefined_flag='$wl-z,nodefs'
11406 archive_cmds_need_lc=no
11407 hardcode_shlibpath_var=no
11408 hardcode_libdir_flag_spec='$wl-R,$libdir'
11409 hardcode_libdir_separator=':'
11410 link_all_deplibs=yes
11411 export_dynamic_flag_spec='$wl-Bexport'
11412 runpath_var='LD_RUN_PATH'
11413
11414 if test yes = "$GCC"; then
11415 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11416 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11417 else
11418 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11419 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11420 fi
11421 ;;
11422
11423 uts4*)
11424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11425 hardcode_libdir_flag_spec='-L$libdir'
11426 hardcode_shlibpath_var=no
11427 ;;
11428
11429 *)
11430 ld_shlibs=no
11431 ;;
11432 esac
11433
11434 if test sni = "$host_vendor"; then
11435 case $host in
11436 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11437 export_dynamic_flag_spec='$wl-Blargedynsym'
11438 ;;
11439 esac
11440 fi
11441 fi
11442
11443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11444 printf "%s\n" "$ld_shlibs" >&6; }
11445 test no = "$ld_shlibs" && can_build_shared=no
11446
11447 with_gnu_ld=$with_gnu_ld
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463 #
11464 # Do we need to explicitly link libc?
11465 #
11466 case "x$archive_cmds_need_lc" in
11467 x|xyes)
11468 # Assume -lc should be added
11469 archive_cmds_need_lc=yes
11470
11471 if test yes,yes = "$GCC,$enable_shared"; then
11472 case $archive_cmds in
11473 *'~'*)
11474 # FIXME: we may have to deal with multi-command sequences.
11475 ;;
11476 '$CC '*)
11477 # Test whether the compiler implicitly links with -lc since on some
11478 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11479 # to ld, don't add -lc before -lgcc.
11480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11481 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11482 if test ${lt_cv_archive_cmds_need_lc+y}
11483 then :
11484 printf %s "(cached) " >&6
11485 else case e in #(
11486 e) $RM conftest*
11487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11488
11489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11490 (eval $ac_compile) 2>&5
11491 ac_status=$?
11492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11493 test $ac_status = 0; } 2>conftest.err; then
11494 soname=conftest
11495 lib=conftest
11496 libobjs=conftest.$ac_objext
11497 deplibs=
11498 wl=$lt_prog_compiler_wl
11499 pic_flag=$lt_prog_compiler_pic
11500 compiler_flags=-v
11501 linker_flags=-v
11502 verstring=
11503 output_objdir=.
11504 libname=conftest
11505 lt_save_allow_undefined_flag=$allow_undefined_flag
11506 allow_undefined_flag=
11507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11508 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11509 ac_status=$?
11510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11511 test $ac_status = 0; }
11512 then
11513 lt_cv_archive_cmds_need_lc=no
11514 else
11515 lt_cv_archive_cmds_need_lc=yes
11516 fi
11517 allow_undefined_flag=$lt_save_allow_undefined_flag
11518 else
11519 cat conftest.err 1>&5
11520 fi
11521 $RM conftest*
11522 ;;
11523 esac
11524 fi
11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11526 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11527 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11528 ;;
11529 esac
11530 fi
11531 ;;
11532 esac
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11686 printf %s "checking dynamic linker characteristics... " >&6; }
11687
11688 if test yes = "$GCC"; then
11689 case $host_os in
11690 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11691 *) lt_awk_arg='/^libraries:/' ;;
11692 esac
11693 case $host_os in
11694 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11695 *) lt_sed_strip_eq='s|=/|/|g' ;;
11696 esac
11697 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11698 case $lt_search_path_spec in
11699 *\;*)
11700 # if the path contains ";" then we assume it to be the separator
11701 # otherwise default to the standard path separator (i.e. ":") - it is
11702 # assumed that no part of a normal pathname contains ";" but that should
11703 # okay in the real world where ";" in dirpaths is itself problematic.
11704 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11705 ;;
11706 *)
11707 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11708 ;;
11709 esac
11710 # Ok, now we have the path, separated by spaces, we can step through it
11711 # and add multilib dir if necessary...
11712 lt_tmp_lt_search_path_spec=
11713 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11714 # ...but if some path component already ends with the multilib dir we assume
11715 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11716 case "$lt_multi_os_dir; $lt_search_path_spec " in
11717 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11718 lt_multi_os_dir=
11719 ;;
11720 esac
11721 for lt_sys_path in $lt_search_path_spec; do
11722 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11723 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11724 elif test -n "$lt_multi_os_dir"; then
11725 test -d "$lt_sys_path" && \
11726 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11727 fi
11728 done
11729 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11730 BEGIN {RS = " "; FS = "/|\n";} {
11731 lt_foo = "";
11732 lt_count = 0;
11733 for (lt_i = NF; lt_i > 0; lt_i--) {
11734 if ($lt_i != "" && $lt_i != ".") {
11735 if ($lt_i == "..") {
11736 lt_count++;
11737 } else {
11738 if (lt_count == 0) {
11739 lt_foo = "/" $lt_i lt_foo;
11740 } else {
11741 lt_count--;
11742 }
11743 }
11744 }
11745 }
11746 if (lt_foo != "") { lt_freq[lt_foo]++; }
11747 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11748 }'`
11749 # AWK program above erroneously prepends '/' to C:/dos/paths
11750 # for these hosts.
11751 case $host_os in
11752 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11753 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11754 esac
11755 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11756 else
11757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11758 fi
11759 library_names_spec=
11760 libname_spec='lib$name'
11761 soname_spec=
11762 shrext_cmds=.so
11763 postinstall_cmds=
11764 postuninstall_cmds=
11765 finish_cmds=
11766 finish_eval=
11767 shlibpath_var=
11768 shlibpath_overrides_runpath=unknown
11769 version_type=none
11770 dynamic_linker="$host_os ld.so"
11771 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11772 need_lib_prefix=unknown
11773 hardcode_into_libs=no
11774
11775 # when you set need_version to no, make sure it does not cause -set_version
11776 # flags to be left without arguments
11777 need_version=unknown
11778
11779
11780
11781 case $host_os in
11782 aix3*)
11783 version_type=linux # correct to gnu/linux during the next big refactor
11784 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11785 shlibpath_var=LIBPATH
11786
11787 # AIX 3 has no versioning support, so we append a major version to the name.
11788 soname_spec='$libname$release$shared_ext$major'
11789 ;;
11790
11791 aix[4-9]*)
11792 version_type=linux # correct to gnu/linux during the next big refactor
11793 need_lib_prefix=no
11794 need_version=no
11795 hardcode_into_libs=yes
11796 if test ia64 = "$host_cpu"; then
11797 # AIX 5 supports IA64
11798 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 else
11801 # With GCC up to 2.95.x, collect2 would create an import file
11802 # for dependence libraries. The import file would start with
11803 # the line '#! .'. This would cause the generated library to
11804 # depend on '.', always an invalid library. This was fixed in
11805 # development snapshots of GCC prior to 3.0.
11806 case $host_os in
11807 aix4 | aix4.[01] | aix4.[01].*)
11808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11809 echo ' yes '
11810 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11811 :
11812 else
11813 can_build_shared=no
11814 fi
11815 ;;
11816 esac
11817 # Using Import Files as archive members, it is possible to support
11818 # filename-based versioning of shared library archives on AIX. While
11819 # this would work for both with and without runtime linking, it will
11820 # prevent static linking of such archives. So we do filename-based
11821 # shared library versioning with .so extension only, which is used
11822 # when both runtime linking and shared linking is enabled.
11823 # Unfortunately, runtime linking may impact performance, so we do
11824 # not want this to be the default eventually. Also, we use the
11825 # versioned .so libs for executables only if there is the -brtl
11826 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11827 # To allow for filename-based versioning support, we need to create
11828 # libNAME.so.V as an archive file, containing:
11829 # *) an Import File, referring to the versioned filename of the
11830 # archive as well as the shared archive member, telling the
11831 # bitwidth (32 or 64) of that shared object, and providing the
11832 # list of exported symbols of that shared object, eventually
11833 # decorated with the 'weak' keyword
11834 # *) the shared object with the F_LOADONLY flag set, to really avoid
11835 # it being seen by the linker.
11836 # At run time we better use the real file rather than another symlink,
11837 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11838
11839 case $with_aix_soname,$aix_use_runtimelinking in
11840 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11841 # soname into executable. Probably we can add versioning support to
11842 # collect2, so additional links can be useful in future.
11843 aix,yes) # traditional libtool
11844 dynamic_linker='AIX unversionable lib.so'
11845 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11846 # instead of lib<name>.a to let people know that these are not
11847 # typical AIX shared libraries.
11848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11849 ;;
11850 aix,no) # traditional AIX only
11851 dynamic_linker='AIX lib.a(lib.so.V)'
11852 # We preserve .a as extension for shared libraries through AIX4.2
11853 # and later when we are not doing run time linking.
11854 library_names_spec='$libname$release.a $libname.a'
11855 soname_spec='$libname$release$shared_ext$major'
11856 ;;
11857 svr4,*) # full svr4 only
11858 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11859 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11860 # We do not specify a path in Import Files, so LIBPATH fires.
11861 shlibpath_overrides_runpath=yes
11862 ;;
11863 *,yes) # both, prefer svr4
11864 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11865 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11866 # unpreferred sharedlib libNAME.a needs extra handling
11867 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"'
11868 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"'
11869 # We do not specify a path in Import Files, so LIBPATH fires.
11870 shlibpath_overrides_runpath=yes
11871 ;;
11872 *,no) # both, prefer aix
11873 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11874 library_names_spec='$libname$release.a $libname.a'
11875 soname_spec='$libname$release$shared_ext$major'
11876 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11877 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)'
11878 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"'
11879 ;;
11880 esac
11881 shlibpath_var=LIBPATH
11882 fi
11883 ;;
11884
11885 amigaos*)
11886 case $host_cpu in
11887 powerpc)
11888 # Since July 2007 AmigaOS4 officially supports .so libraries.
11889 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11891 ;;
11892 m68k)
11893 library_names_spec='$libname.ixlibrary $libname.a'
11894 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11895 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'
11896 ;;
11897 esac
11898 ;;
11899
11900 beos*)
11901 library_names_spec='$libname$shared_ext'
11902 dynamic_linker="$host_os ld.so"
11903 shlibpath_var=LIBRARY_PATH
11904 ;;
11905
11906 bsdi[45]*)
11907 version_type=linux # correct to gnu/linux during the next big refactor
11908 need_version=no
11909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11910 soname_spec='$libname$release$shared_ext$major'
11911 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11912 shlibpath_var=LD_LIBRARY_PATH
11913 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11914 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11915 # the default ld.so.conf also contains /usr/contrib/lib and
11916 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11917 # libtool to hard-code these into programs
11918 ;;
11919
11920 cygwin* | mingw* | windows* | pw32* | cegcc*)
11921 version_type=windows
11922 shrext_cmds=.dll
11923 need_version=no
11924 need_lib_prefix=no
11925
11926 case $GCC,$cc_basename in
11927 yes,*)
11928 # gcc
11929 library_names_spec='$libname.dll.a'
11930 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11931 # If user builds GCC with multilib enabled,
11932 # it should just install on $(libdir)
11933 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11934 if test xyes = x"$multilib"; then
11935 postinstall_cmds='base_file=`basename \$file`~
11936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11937 dldir=$destdir/`dirname \$dlpath`~
11938 $install_prog $dir/$dlname $destdir/$dlname~
11939 chmod a+x $destdir/$dlname~
11940 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11941 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11942 fi'
11943 else
11944 postinstall_cmds='base_file=`basename \$file`~
11945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11946 dldir=$destdir/`dirname \$dlpath`~
11947 test -d \$dldir || mkdir -p \$dldir~
11948 $install_prog $dir/$dlname \$dldir/$dlname~
11949 chmod a+x \$dldir/$dlname~
11950 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11951 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11952 fi'
11953 fi
11954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11955 dlpath=$dir/\$dldll~
11956 $RM \$dlpath'
11957 shlibpath_overrides_runpath=yes
11958
11959 case $host_os in
11960 cygwin*)
11961 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11962 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11963
11964 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11965 ;;
11966 mingw* | windows* | cegcc*)
11967 # MinGW DLLs use traditional 'lib' prefix
11968 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11969 ;;
11970 pw32*)
11971 # pw32 DLLs use 'pw' prefix rather than 'lib'
11972 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11973 ;;
11974 esac
11975 dynamic_linker='Win32 ld.exe'
11976 ;;
11977
11978 *,cl* | *,icl*)
11979 # Native MSVC or ICC
11980 libname_spec='$name'
11981 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11982 library_names_spec='$libname.dll.lib'
11983
11984 case $build_os in
11985 mingw* | windows*)
11986 sys_lib_search_path_spec=
11987 lt_save_ifs=$IFS
11988 IFS=';'
11989 for lt_path in $LIB
11990 do
11991 IFS=$lt_save_ifs
11992 # Let DOS variable expansion print the short 8.3 style file name.
11993 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11994 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11995 done
11996 IFS=$lt_save_ifs
11997 # Convert to MSYS style.
11998 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11999 ;;
12000 cygwin*)
12001 # Convert to unix form, then to dos form, then back to unix form
12002 # but this time dos style (no spaces!) so that the unix form looks
12003 # like /cygdrive/c/PROGRA~1:/cygdr...
12004 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12005 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12006 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12007 ;;
12008 *)
12009 sys_lib_search_path_spec=$LIB
12010 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12011 # It is most probably a Windows format PATH.
12012 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12013 else
12014 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12015 fi
12016 # FIXME: find the short name or the path components, as spaces are
12017 # common. (e.g. "Program Files" -> "PROGRA~1")
12018 ;;
12019 esac
12020
12021 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12022 postinstall_cmds='base_file=`basename \$file`~
12023 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12024 dldir=$destdir/`dirname \$dlpath`~
12025 test -d \$dldir || mkdir -p \$dldir~
12026 $install_prog $dir/$dlname \$dldir/$dlname'
12027 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12028 dlpath=$dir/\$dldll~
12029 $RM \$dlpath'
12030 shlibpath_overrides_runpath=yes
12031 dynamic_linker='Win32 link.exe'
12032 ;;
12033
12034 *)
12035 # Assume MSVC and ICC wrapper
12036 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12037 dynamic_linker='Win32 ld.exe'
12038 ;;
12039 esac
12040 # FIXME: first we should search . and the directory the executable is in
12041 shlibpath_var=PATH
12042 ;;
12043
12044 darwin* | rhapsody*)
12045 dynamic_linker="$host_os dyld"
12046 version_type=darwin
12047 need_lib_prefix=no
12048 need_version=no
12049 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12050 soname_spec='$libname$release$major$shared_ext'
12051 shlibpath_overrides_runpath=yes
12052 shlibpath_var=DYLD_LIBRARY_PATH
12053 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12054
12055 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12056 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12057 ;;
12058
12059 dgux*)
12060 version_type=linux # correct to gnu/linux during the next big refactor
12061 need_lib_prefix=no
12062 need_version=no
12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12064 soname_spec='$libname$release$shared_ext$major'
12065 shlibpath_var=LD_LIBRARY_PATH
12066 ;;
12067
12068 freebsd* | dragonfly* | midnightbsd*)
12069 # DragonFly does not have aout. When/if they implement a new
12070 # versioning mechanism, adjust this.
12071 if test -x /usr/bin/objformat; then
12072 objformat=`/usr/bin/objformat`
12073 else
12074 case $host_os in
12075 freebsd[23].*) objformat=aout ;;
12076 *) objformat=elf ;;
12077 esac
12078 fi
12079 version_type=freebsd-$objformat
12080 case $version_type in
12081 freebsd-elf*)
12082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12083 soname_spec='$libname$release$shared_ext$major'
12084 need_version=no
12085 need_lib_prefix=no
12086 ;;
12087 freebsd-*)
12088 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12089 need_version=yes
12090 ;;
12091 esac
12092 case $host_cpu in
12093 powerpc64)
12094 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12095 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12098 int test_pointer_size[sizeof (void *) - 5];
12099
12100 _ACEOF
12101 if ac_fn_c_try_compile "$LINENO"
12102 then :
12103 shlibpath_var=LD_LIBRARY_PATH
12104 else case e in #(
12105 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12106 esac
12107 fi
12108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12109 ;;
12110 *)
12111 shlibpath_var=LD_LIBRARY_PATH
12112 ;;
12113 esac
12114 case $host_os in
12115 freebsd2.*)
12116 shlibpath_overrides_runpath=yes
12117 ;;
12118 freebsd3.[01]* | freebsdelf3.[01]*)
12119 shlibpath_overrides_runpath=yes
12120 hardcode_into_libs=yes
12121 ;;
12122 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12123 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12124 shlibpath_overrides_runpath=no
12125 hardcode_into_libs=yes
12126 ;;
12127 *) # from 4.6 on, and DragonFly
12128 shlibpath_overrides_runpath=yes
12129 hardcode_into_libs=yes
12130 ;;
12131 esac
12132 ;;
12133
12134 haiku*)
12135 version_type=linux # correct to gnu/linux during the next big refactor
12136 need_lib_prefix=no
12137 need_version=no
12138 dynamic_linker="$host_os runtime_loader"
12139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12140 soname_spec='$libname$release$shared_ext$major'
12141 shlibpath_var=LIBRARY_PATH
12142 shlibpath_overrides_runpath=no
12143 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12144 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12145 hardcode_into_libs=no
12146 ;;
12147
12148 hpux9* | hpux10* | hpux11*)
12149 # Give a soname corresponding to the major version so that dld.sl refuses to
12150 # link against other versions.
12151 version_type=sunos
12152 need_lib_prefix=no
12153 need_version=no
12154 case $host_cpu in
12155 ia64*)
12156 shrext_cmds='.so'
12157 hardcode_into_libs=yes
12158 dynamic_linker="$host_os dld.so"
12159 shlibpath_var=LD_LIBRARY_PATH
12160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12162 soname_spec='$libname$release$shared_ext$major'
12163 if test 32 = "$HPUX_IA64_MODE"; then
12164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12165 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12166 else
12167 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12168 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12169 fi
12170 ;;
12171 hppa*64*)
12172 shrext_cmds='.sl'
12173 hardcode_into_libs=yes
12174 dynamic_linker="$host_os dld.sl"
12175 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12178 soname_spec='$libname$release$shared_ext$major'
12179 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12181 ;;
12182 *)
12183 shrext_cmds='.sl'
12184 dynamic_linker="$host_os dld.sl"
12185 shlibpath_var=SHLIB_PATH
12186 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12188 soname_spec='$libname$release$shared_ext$major'
12189 ;;
12190 esac
12191 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12192 postinstall_cmds='chmod 555 $lib'
12193 # or fails outright, so override atomically:
12194 install_override_mode=555
12195 ;;
12196
12197 interix[3-9]*)
12198 version_type=linux # correct to gnu/linux during the next big refactor
12199 need_lib_prefix=no
12200 need_version=no
12201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12202 soname_spec='$libname$release$shared_ext$major'
12203 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12204 shlibpath_var=LD_LIBRARY_PATH
12205 shlibpath_overrides_runpath=no
12206 hardcode_into_libs=yes
12207 ;;
12208
12209 irix5* | irix6* | nonstopux*)
12210 case $host_os in
12211 nonstopux*) version_type=nonstopux ;;
12212 *)
12213 if test yes = "$lt_cv_prog_gnu_ld"; then
12214 version_type=linux # correct to gnu/linux during the next big refactor
12215 else
12216 version_type=irix
12217 fi ;;
12218 esac
12219 need_lib_prefix=no
12220 need_version=no
12221 soname_spec='$libname$release$shared_ext$major'
12222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12223 case $host_os in
12224 irix5* | nonstopux*)
12225 libsuff= shlibsuff=
12226 ;;
12227 *)
12228 case $LD in # libtool.m4 will add one of these switches to LD
12229 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12230 libsuff= shlibsuff= libmagic=32-bit;;
12231 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12232 libsuff=32 shlibsuff=N32 libmagic=N32;;
12233 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12234 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12235 *) libsuff= shlibsuff= libmagic=never-match;;
12236 esac
12237 ;;
12238 esac
12239 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12240 shlibpath_overrides_runpath=no
12241 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12242 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12243 hardcode_into_libs=yes
12244 ;;
12245
12246 # No shared lib support for Linux oldld, aout, or coff.
12247 linux*oldld* | linux*aout* | linux*coff*)
12248 dynamic_linker=no
12249 ;;
12250
12251 linux*android*)
12252 version_type=none # Android doesn't support versioned libraries.
12253 need_lib_prefix=no
12254 need_version=no
12255 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12256 soname_spec='$libname$release$shared_ext'
12257 finish_cmds=
12258 shlibpath_var=LD_LIBRARY_PATH
12259 shlibpath_overrides_runpath=yes
12260
12261 # This implies no fast_install, which is unacceptable.
12262 # Some rework will be needed to allow for fast_install
12263 # before this can be enabled.
12264 hardcode_into_libs=yes
12265
12266 dynamic_linker='Android linker'
12267 # -rpath works at least for libraries that are not overridden by
12268 # libraries installed in system locations.
12269 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12270 ;;
12271
12272 # This must be glibc/ELF.
12273 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12274 version_type=linux # correct to gnu/linux during the next big refactor
12275 need_lib_prefix=no
12276 need_version=no
12277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12278 soname_spec='$libname$release$shared_ext$major'
12279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12280 shlibpath_var=LD_LIBRARY_PATH
12281 shlibpath_overrides_runpath=no
12282
12283 # Some binutils ld are patched to set DT_RUNPATH
12284 if test ${lt_cv_shlibpath_overrides_runpath+y}
12285 then :
12286 printf %s "(cached) " >&6
12287 else case e in #(
12288 e) lt_cv_shlibpath_overrides_runpath=no
12289 save_LDFLAGS=$LDFLAGS
12290 save_libdir=$libdir
12291 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12292 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12295
12296 int
12297 main (void)
12298 {
12299
12300 ;
12301 return 0;
12302 }
12303 _ACEOF
12304 if ac_fn_c_try_link "$LINENO"
12305 then :
12306 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12307 then :
12308 lt_cv_shlibpath_overrides_runpath=yes
12309 fi
12310 fi
12311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12312 conftest$ac_exeext conftest.$ac_ext
12313 LDFLAGS=$save_LDFLAGS
12314 libdir=$save_libdir
12315 ;;
12316 esac
12317 fi
12318
12319 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12320
12321 # This implies no fast_install, which is unacceptable.
12322 # Some rework will be needed to allow for fast_install
12323 # before this can be enabled.
12324 hardcode_into_libs=yes
12325
12326 # Ideally, we could use ldconfig to report *all* directories which are
12327 # searched for libraries, however this is still not possible. Aside from not
12328 # being certain /sbin/ldconfig is available, command
12329 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12330 # even though it is searched at run-time. Try to do the best guess by
12331 # appending ld.so.conf contents (and includes) to the search path.
12332 if test -f /etc/ld.so.conf; then
12333 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' ' '`
12334 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12335 fi
12336
12337 # We used to test for /lib/ld.so.1 and disable shared libraries on
12338 # powerpc, because MkLinux only supported shared libraries with the
12339 # GNU dynamic linker. Since this was broken with cross compilers,
12340 # most powerpc-linux boxes support dynamic linking these days and
12341 # people can always --disable-shared, the test was removed, and we
12342 # assume the GNU/Linux dynamic linker is in use.
12343 dynamic_linker='GNU/Linux ld.so'
12344 ;;
12345
12346 netbsdelf*-gnu)
12347 version_type=linux
12348 need_lib_prefix=no
12349 need_version=no
12350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12351 soname_spec='$libname$release$shared_ext$major'
12352 shlibpath_var=LD_LIBRARY_PATH
12353 shlibpath_overrides_runpath=no
12354 hardcode_into_libs=yes
12355 dynamic_linker='NetBSD ld.elf_so'
12356 ;;
12357
12358 netbsd*)
12359 version_type=sunos
12360 need_lib_prefix=no
12361 need_version=no
12362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12363 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12365 dynamic_linker='NetBSD (a.out) ld.so'
12366 else
12367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12368 soname_spec='$libname$release$shared_ext$major'
12369 dynamic_linker='NetBSD ld.elf_so'
12370 fi
12371 shlibpath_var=LD_LIBRARY_PATH
12372 shlibpath_overrides_runpath=yes
12373 hardcode_into_libs=yes
12374 ;;
12375
12376 *-mlibc)
12377 version_type=linux # correct to gnu/linux during the next big refactor
12378 need_lib_prefix=no
12379 need_version=no
12380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12381 soname_spec='$libname$release$shared_ext$major'
12382 dynamic_linker='mlibc ld.so'
12383 shlibpath_var=LD_LIBRARY_PATH
12384 shlibpath_overrides_runpath=no
12385 hardcode_into_libs=yes
12386 ;;
12387
12388 newsos6)
12389 version_type=linux # correct to gnu/linux during the next big refactor
12390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12391 shlibpath_var=LD_LIBRARY_PATH
12392 shlibpath_overrides_runpath=yes
12393 ;;
12394
12395 *nto* | *qnx*)
12396 version_type=qnx
12397 need_lib_prefix=no
12398 need_version=no
12399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12400 soname_spec='$libname$release$shared_ext$major'
12401 shlibpath_var=LD_LIBRARY_PATH
12402 shlibpath_overrides_runpath=no
12403 hardcode_into_libs=yes
12404 dynamic_linker='ldqnx.so'
12405 ;;
12406
12407 openbsd*)
12408 version_type=sunos
12409 sys_lib_dlsearch_path_spec=/usr/lib
12410 need_lib_prefix=no
12411 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12412 need_version=no
12413 else
12414 need_version=yes
12415 fi
12416 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12418 shlibpath_var=LD_LIBRARY_PATH
12419 shlibpath_overrides_runpath=yes
12420 ;;
12421
12422 os2*)
12423 libname_spec='$name'
12424 version_type=windows
12425 shrext_cmds=.dll
12426 need_version=no
12427 need_lib_prefix=no
12428 # OS/2 can only load a DLL with a base name of 8 characters or less.
12429 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12430 v=$($ECHO $release$versuffix | tr -d .-);
12431 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12432 $ECHO $n$v`$shared_ext'
12433 library_names_spec='${libname}_dll.$libext'
12434 dynamic_linker='OS/2 ld.exe'
12435 shlibpath_var=BEGINLIBPATH
12436 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12438 postinstall_cmds='base_file=`basename \$file`~
12439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12440 dldir=$destdir/`dirname \$dlpath`~
12441 test -d \$dldir || mkdir -p \$dldir~
12442 $install_prog $dir/$dlname \$dldir/$dlname~
12443 chmod a+x \$dldir/$dlname~
12444 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12445 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12446 fi'
12447 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12448 dlpath=$dir/\$dldll~
12449 $RM \$dlpath'
12450 ;;
12451
12452 osf3* | osf4* | osf5*)
12453 version_type=osf
12454 need_lib_prefix=no
12455 need_version=no
12456 soname_spec='$libname$release$shared_ext$major'
12457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12458 shlibpath_var=LD_LIBRARY_PATH
12459 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12461 ;;
12462
12463 rdos*)
12464 dynamic_linker=no
12465 ;;
12466
12467 serenity*)
12468 version_type=linux # correct to gnu/linux during the next big refactor
12469 need_lib_prefix=no
12470 need_version=no
12471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12472 soname_spec='$libname$release$shared_ext$major'
12473 shlibpath_var=LD_LIBRARY_PATH
12474 shlibpath_overrides_runpath=no
12475 dynamic_linker='SerenityOS LibELF'
12476 ;;
12477
12478 solaris*)
12479 version_type=linux # correct to gnu/linux during the next big refactor
12480 need_lib_prefix=no
12481 need_version=no
12482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483 soname_spec='$libname$release$shared_ext$major'
12484 shlibpath_var=LD_LIBRARY_PATH
12485 shlibpath_overrides_runpath=yes
12486 hardcode_into_libs=yes
12487 # ldd complains unless libraries are executable
12488 postinstall_cmds='chmod +x $lib'
12489 ;;
12490
12491 sunos4*)
12492 version_type=sunos
12493 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12494 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12495 shlibpath_var=LD_LIBRARY_PATH
12496 shlibpath_overrides_runpath=yes
12497 if test yes = "$with_gnu_ld"; then
12498 need_lib_prefix=no
12499 fi
12500 need_version=yes
12501 ;;
12502
12503 sysv4 | sysv4.3*)
12504 version_type=linux # correct to gnu/linux during the next big refactor
12505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12506 soname_spec='$libname$release$shared_ext$major'
12507 shlibpath_var=LD_LIBRARY_PATH
12508 case $host_vendor in
12509 sni)
12510 shlibpath_overrides_runpath=no
12511 need_lib_prefix=no
12512 runpath_var=LD_RUN_PATH
12513 ;;
12514 siemens)
12515 need_lib_prefix=no
12516 ;;
12517 motorola)
12518 need_lib_prefix=no
12519 need_version=no
12520 shlibpath_overrides_runpath=no
12521 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12522 ;;
12523 esac
12524 ;;
12525
12526 sysv4*MP*)
12527 if test -d /usr/nec; then
12528 version_type=linux # correct to gnu/linux during the next big refactor
12529 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12530 soname_spec='$libname$shared_ext.$major'
12531 shlibpath_var=LD_LIBRARY_PATH
12532 fi
12533 ;;
12534
12535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12536 version_type=sco
12537 need_lib_prefix=no
12538 need_version=no
12539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12540 soname_spec='$libname$release$shared_ext$major'
12541 shlibpath_var=LD_LIBRARY_PATH
12542 shlibpath_overrides_runpath=yes
12543 hardcode_into_libs=yes
12544 if test yes = "$with_gnu_ld"; then
12545 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12546 else
12547 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12548 case $host_os in
12549 sco3.2v5*)
12550 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12551 ;;
12552 esac
12553 fi
12554 sys_lib_dlsearch_path_spec='/usr/lib'
12555 ;;
12556
12557 tpf*)
12558 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12559 version_type=linux # correct to gnu/linux during the next big refactor
12560 need_lib_prefix=no
12561 need_version=no
12562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12563 shlibpath_var=LD_LIBRARY_PATH
12564 shlibpath_overrides_runpath=no
12565 hardcode_into_libs=yes
12566 ;;
12567
12568 uts4*)
12569 version_type=linux # correct to gnu/linux during the next big refactor
12570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12571 soname_spec='$libname$release$shared_ext$major'
12572 shlibpath_var=LD_LIBRARY_PATH
12573 ;;
12574
12575 emscripten*)
12576 version_type=none
12577 need_lib_prefix=no
12578 need_version=no
12579 library_names_spec='$libname$release$shared_ext'
12580 soname_spec='$libname$release$shared_ext'
12581 finish_cmds=
12582 dynamic_linker="Emscripten linker"
12583 lt_prog_compiler_wl=
12584 lt_prog_compiler_pic=
12585 lt_prog_compiler_static=
12586
12587
12588 if test yes = "$GCC"; then
12589 lt_prog_compiler_wl='-Wl,'
12590 lt_prog_compiler_static='-static'
12591
12592 case $host_os in
12593 aix*)
12594 # All AIX code is PIC.
12595 if test ia64 = "$host_cpu"; then
12596 # AIX 5 now supports IA64 processor
12597 lt_prog_compiler_static='-Bstatic'
12598 fi
12599 lt_prog_compiler_pic='-fPIC'
12600 ;;
12601
12602 amigaos*)
12603 case $host_cpu in
12604 powerpc)
12605 # see comment about AmigaOS4 .so support
12606 lt_prog_compiler_pic='-fPIC'
12607 ;;
12608 m68k)
12609 # FIXME: we need at least 68020 code to build shared libraries, but
12610 # adding the '-m68020' flag to GCC prevents building anything better,
12611 # like '-m68040'.
12612 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12613 ;;
12614 esac
12615 ;;
12616
12617 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12618 # PIC is the default for these OSes.
12619 ;;
12620
12621 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12622 # This hack is so that the source file can tell whether it is being
12623 # built for inclusion in a dll (and should export symbols for example).
12624 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12625 # (--disable-auto-import) libraries
12626 lt_prog_compiler_pic='-DDLL_EXPORT'
12627 case $host_os in
12628 os2*)
12629 lt_prog_compiler_static='$wl-static'
12630 ;;
12631 esac
12632 ;;
12633
12634 darwin* | rhapsody*)
12635 # PIC is the default on this platform
12636 # Common symbols not allowed in MH_DYLIB files
12637 lt_prog_compiler_pic='-fno-common'
12638 ;;
12639
12640 haiku*)
12641 # PIC is the default for Haiku.
12642 # The "-static" flag exists, but is broken.
12643 lt_prog_compiler_static=
12644 ;;
12645
12646 hpux*)
12647 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12648 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12649 # sets the default TLS model and affects inlining.
12650 case $host_cpu in
12651 hppa*64*)
12652 # +Z the default
12653 ;;
12654 *)
12655 lt_prog_compiler_pic='-fPIC'
12656 ;;
12657 esac
12658 ;;
12659
12660 interix[3-9]*)
12661 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12662 # Instead, we relocate shared libraries at runtime.
12663 ;;
12664
12665 msdosdjgpp*)
12666 # Just because we use GCC doesn't mean we suddenly get shared libraries
12667 # on systems that don't support them.
12668 lt_prog_compiler_can_build_shared=no
12669 enable_shared=no
12670 ;;
12671
12672 *nto* | *qnx*)
12673 # QNX uses GNU C++, but need to define -shared option too, otherwise
12674 # it will coredump.
12675 lt_prog_compiler_pic='-fPIC -shared'
12676 ;;
12677
12678 sysv4*MP*)
12679 if test -d /usr/nec; then
12680 lt_prog_compiler_pic=-Kconform_pic
12681 fi
12682 ;;
12683
12684 *)
12685 lt_prog_compiler_pic='-fPIC'
12686 ;;
12687 esac
12688
12689 case $cc_basename in
12690 nvcc*) # Cuda Compiler Driver 2.2
12691 lt_prog_compiler_wl='-Xlinker '
12692 if test -n "$lt_prog_compiler_pic"; then
12693 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12694 fi
12695 ;;
12696 esac
12697 else
12698 # PORTME Check for flag to pass linker flags through the system compiler.
12699 case $host_os in
12700 aix*)
12701 lt_prog_compiler_wl='-Wl,'
12702 if test ia64 = "$host_cpu"; then
12703 # AIX 5 now supports IA64 processor
12704 lt_prog_compiler_static='-Bstatic'
12705 else
12706 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12707 fi
12708 ;;
12709
12710 darwin* | rhapsody*)
12711 # PIC is the default on this platform
12712 # Common symbols not allowed in MH_DYLIB files
12713 lt_prog_compiler_pic='-fno-common'
12714 case $cc_basename in
12715 nagfor*)
12716 # NAG Fortran compiler
12717 lt_prog_compiler_wl='-Wl,-Wl,,'
12718 lt_prog_compiler_pic='-PIC'
12719 lt_prog_compiler_static='-Bstatic'
12720 ;;
12721 esac
12722 ;;
12723
12724 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12725 # This hack is so that the source file can tell whether it is being
12726 # built for inclusion in a dll (and should export symbols for example).
12727 lt_prog_compiler_pic='-DDLL_EXPORT'
12728 case $host_os in
12729 os2*)
12730 lt_prog_compiler_static='$wl-static'
12731 ;;
12732 esac
12733 ;;
12734
12735 hpux9* | hpux10* | hpux11*)
12736 lt_prog_compiler_wl='-Wl,'
12737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12738 # not for PA HP-UX.
12739 case $host_cpu in
12740 hppa*64*|ia64*)
12741 # +Z the default
12742 ;;
12743 *)
12744 lt_prog_compiler_pic='+Z'
12745 ;;
12746 esac
12747 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12748 lt_prog_compiler_static='$wl-a ${wl}archive'
12749 ;;
12750
12751 irix5* | irix6* | nonstopux*)
12752 lt_prog_compiler_wl='-Wl,'
12753 # PIC (with -KPIC) is the default.
12754 lt_prog_compiler_static='-non_shared'
12755 ;;
12756
12757 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12758 case $cc_basename in
12759 # old Intel for x86_64, which still supported -KPIC.
12760 ecc*)
12761 lt_prog_compiler_wl='-Wl,'
12762 lt_prog_compiler_pic='-KPIC'
12763 lt_prog_compiler_static='-static'
12764 ;;
12765 *flang* | ftn | f18* | f95*)
12766 # Flang compiler.
12767 lt_prog_compiler_wl='-Wl,'
12768 lt_prog_compiler_pic='-fPIC'
12769 lt_prog_compiler_static='-static'
12770 ;;
12771 # icc used to be incompatible with GCC.
12772 # ICC 10 doesn't accept -KPIC any more.
12773 icc* | ifort*)
12774 lt_prog_compiler_wl='-Wl,'
12775 lt_prog_compiler_pic='-fPIC'
12776 lt_prog_compiler_static='-static'
12777 ;;
12778 # Lahey Fortran 8.1.
12779 lf95*)
12780 lt_prog_compiler_wl='-Wl,'
12781 lt_prog_compiler_pic='--shared'
12782 lt_prog_compiler_static='--static'
12783 ;;
12784 nagfor*)
12785 # NAG Fortran compiler
12786 lt_prog_compiler_wl='-Wl,-Wl,,'
12787 lt_prog_compiler_pic='-PIC'
12788 lt_prog_compiler_static='-Bstatic'
12789 ;;
12790 tcc*)
12791 # Fabrice Bellard et al's Tiny C Compiler
12792 lt_prog_compiler_wl='-Wl,'
12793 lt_prog_compiler_pic='-fPIC'
12794 lt_prog_compiler_static='-static'
12795 ;;
12796 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12797 # Portland Group compilers (*not* the Pentium gcc compiler,
12798 # which looks to be a dead project)
12799 lt_prog_compiler_wl='-Wl,'
12800 lt_prog_compiler_pic='-fpic'
12801 lt_prog_compiler_static='-Bstatic'
12802 ;;
12803 ccc*)
12804 lt_prog_compiler_wl='-Wl,'
12805 # All Alpha code is PIC.
12806 lt_prog_compiler_static='-non_shared'
12807 ;;
12808 xl* | bgxl* | bgf* | mpixl*)
12809 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12810 lt_prog_compiler_wl='-Wl,'
12811 lt_prog_compiler_pic='-qpic'
12812 lt_prog_compiler_static='-qstaticlink'
12813 ;;
12814 *)
12815 case `$CC -V 2>&1 | $SED 5q` in
12816 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12817 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12818 lt_prog_compiler_pic='-KPIC'
12819 lt_prog_compiler_static='-Bstatic'
12820 lt_prog_compiler_wl=''
12821 ;;
12822 *Sun\ F* | *Sun*Fortran*)
12823 lt_prog_compiler_pic='-KPIC'
12824 lt_prog_compiler_static='-Bstatic'
12825 lt_prog_compiler_wl='-Qoption ld '
12826 ;;
12827 *Sun\ C*)
12828 # Sun C 5.9
12829 lt_prog_compiler_pic='-KPIC'
12830 lt_prog_compiler_static='-Bstatic'
12831 lt_prog_compiler_wl='-Wl,'
12832 ;;
12833 *Intel*\ [CF]*Compiler*)
12834 lt_prog_compiler_wl='-Wl,'
12835 lt_prog_compiler_pic='-fPIC'
12836 lt_prog_compiler_static='-static'
12837 ;;
12838 *Portland\ Group*)
12839 lt_prog_compiler_wl='-Wl,'
12840 lt_prog_compiler_pic='-fpic'
12841 lt_prog_compiler_static='-Bstatic'
12842 ;;
12843 esac
12844 ;;
12845 esac
12846 ;;
12847
12848 newsos6)
12849 lt_prog_compiler_pic='-KPIC'
12850 lt_prog_compiler_static='-Bstatic'
12851 ;;
12852
12853 *-mlibc)
12854 lt_prog_compiler_wl='-Wl,'
12855 lt_prog_compiler_pic='-fPIC'
12856 lt_prog_compiler_static='-static'
12857 ;;
12858
12859 *nto* | *qnx*)
12860 # QNX uses GNU C++, but need to define -shared option too, otherwise
12861 # it will coredump.
12862 lt_prog_compiler_pic='-fPIC -shared'
12863 ;;
12864
12865 osf3* | osf4* | osf5*)
12866 lt_prog_compiler_wl='-Wl,'
12867 # All OSF/1 code is PIC.
12868 lt_prog_compiler_static='-non_shared'
12869 ;;
12870
12871 rdos*)
12872 lt_prog_compiler_static='-non_shared'
12873 ;;
12874
12875 serenity*)
12876 ;;
12877
12878 solaris*)
12879 lt_prog_compiler_pic='-KPIC'
12880 lt_prog_compiler_static='-Bstatic'
12881 case $cc_basename in
12882 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12883 lt_prog_compiler_wl='-Qoption ld ';;
12884 *)
12885 lt_prog_compiler_wl='-Wl,';;
12886 esac
12887 ;;
12888
12889 sunos4*)
12890 lt_prog_compiler_wl='-Qoption ld '
12891 lt_prog_compiler_pic='-PIC'
12892 lt_prog_compiler_static='-Bstatic'
12893 ;;
12894
12895 sysv4 | sysv4.2uw2* | sysv4.3*)
12896 lt_prog_compiler_wl='-Wl,'
12897 lt_prog_compiler_pic='-KPIC'
12898 lt_prog_compiler_static='-Bstatic'
12899 ;;
12900
12901 sysv4*MP*)
12902 if test -d /usr/nec; then
12903 lt_prog_compiler_pic='-Kconform_pic'
12904 lt_prog_compiler_static='-Bstatic'
12905 fi
12906 ;;
12907
12908 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12909 lt_prog_compiler_wl='-Wl,'
12910 lt_prog_compiler_pic='-KPIC'
12911 lt_prog_compiler_static='-Bstatic'
12912 ;;
12913
12914 unicos*)
12915 lt_prog_compiler_wl='-Wl,'
12916 lt_prog_compiler_can_build_shared=no
12917 ;;
12918
12919 uts4*)
12920 lt_prog_compiler_pic='-pic'
12921 lt_prog_compiler_static='-Bstatic'
12922 ;;
12923
12924 *)
12925 lt_prog_compiler_can_build_shared=no
12926 ;;
12927 esac
12928 fi
12929
12930 case $host_os in
12931 # For platforms that do not support PIC, -DPIC is meaningless:
12932 *djgpp*)
12933 lt_prog_compiler_pic=
12934 ;;
12935 *)
12936 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12937 ;;
12938 esac
12939
12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12941 printf %s "checking for $compiler option to produce PIC... " >&6; }
12942 if test ${lt_cv_prog_compiler_pic+y}
12943 then :
12944 printf %s "(cached) " >&6
12945 else case e in #(
12946 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12947 esac
12948 fi
12949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12950 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12951 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12952
12953 #
12954 # Check to make sure the PIC flag actually works.
12955 #
12956 if test -n "$lt_prog_compiler_pic"; then
12957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12958 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12959 if test ${lt_cv_prog_compiler_pic_works+y}
12960 then :
12961 printf %s "(cached) " >&6
12962 else case e in #(
12963 e) lt_cv_prog_compiler_pic_works=no
12964 ac_outfile=conftest.$ac_objext
12965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12966 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12967 # Insert the option either (1) after the last *FLAGS variable, or
12968 # (2) before a word containing "conftest.", or (3) at the end.
12969 # Note that $ac_compile itself does not contain backslashes and begins
12970 # with a dollar sign (not a hyphen), so the echo should work correctly.
12971 # The option is referenced via a variable to avoid confusing sed.
12972 lt_compile=`echo "$ac_compile" | $SED \
12973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12975 -e 's:$: $lt_compiler_flag:'`
12976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12977 (eval "$lt_compile" 2>conftest.err)
12978 ac_status=$?
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 if (exit $ac_status) && test -s "$ac_outfile"; then
12982 # The compiler can only warn and ignore the option if not recognized
12983 # So say no if there are warnings other than the usual output.
12984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12987 lt_cv_prog_compiler_pic_works=yes
12988 fi
12989 fi
12990 $RM conftest*
12991 ;;
12992 esac
12993 fi
12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12995 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12996
12997 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12998 case $lt_prog_compiler_pic in
12999 "" | " "*) ;;
13000 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13001 esac
13002 else
13003 lt_prog_compiler_pic=
13004 lt_prog_compiler_can_build_shared=no
13005 fi
13006
13007 fi
13008
13009
13010
13011
13012
13013 #
13014 # Check to make sure the static flag actually works.
13015 #
13016 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13018 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13019 if test ${lt_cv_prog_compiler_static_works+y}
13020 then :
13021 printf %s "(cached) " >&6
13022 else case e in #(
13023 e) lt_cv_prog_compiler_static_works=no
13024 save_LDFLAGS=$LDFLAGS
13025 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13028 # The linker can only warn and ignore the option if not recognized
13029 # So say no if there are warnings
13030 if test -s conftest.err; then
13031 # Append any errors to the config.log.
13032 cat conftest.err 1>&5
13033 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13035 if diff conftest.exp conftest.er2 >/dev/null; then
13036 lt_cv_prog_compiler_static_works=yes
13037 fi
13038 else
13039 lt_cv_prog_compiler_static_works=yes
13040 fi
13041 fi
13042 $RM -r conftest*
13043 LDFLAGS=$save_LDFLAGS
13044 ;;
13045 esac
13046 fi
13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13048 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13049
13050 if test yes = "$lt_cv_prog_compiler_static_works"; then
13051 :
13052 else
13053 lt_prog_compiler_static=
13054 fi
13055
13056
13057
13058 ='-fPIC'
13059 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13060 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'
13061 archive_cmds_need_lc=no
13062 no_undefined_flag=
13063 ;;
13064
13065 *)
13066 dynamic_linker=no
13067 ;;
13068 esac
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13070 printf "%s\n" "$dynamic_linker" >&6; }
13071 test no = "$dynamic_linker" && can_build_shared=no
13072
13073 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13074 if test yes = "$GCC"; then
13075 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13076 fi
13077
13078 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13079 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13080 fi
13081
13082 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13083 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13084 fi
13085
13086 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13087 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13088
13089 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13090 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13091
13092 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13093 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13192 printf %s "checking how to hardcode library paths into programs... " >&6; }
13193 hardcode_action=
13194 if test -n "$hardcode_libdir_flag_spec" ||
13195 test -n "$runpath_var" ||
13196 test yes = "$hardcode_automatic"; then
13197
13198 # We can hardcode non-existent directories.
13199 if test no != "$hardcode_direct" &&
13200 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13201 # have to relink, otherwise we might link with an installed library
13202 # when we should be linking with a yet-to-be-installed one
13203 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13204 test no != "$hardcode_minus_L"; then
13205 # Linking always hardcodes the temporary library directory.
13206 hardcode_action=relink
13207 else
13208 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13209 hardcode_action=immediate
13210 fi
13211 else
13212 # We cannot hardcode anything, or else we can only hardcode existing
13213 # directories.
13214 hardcode_action=unsupported
13215 fi
13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13217 printf "%s\n" "$hardcode_action" >&6; }
13218
13219 if test relink = "$hardcode_action" ||
13220 test yes = "$inherit_rpath"; then
13221 # Fast installation is not supported
13222 enable_fast_install=no
13223 elif test yes = "$shlibpath_overrides_runpath" ||
13224 test no = "$enable_shared"; then
13225 # Fast installation is not necessary
13226 enable_fast_install=needless
13227 fi
13228
13229
13230
13231
13232
13233
13234 if test yes != "$enable_dlopen"; then
13235 enable_dlopen=unknown
13236 enable_dlopen_self=unknown
13237 enable_dlopen_self_static=unknown
13238 else
13239 lt_cv_dlopen=no
13240 lt_cv_dlopen_libs=
13241
13242 case $host_os in
13243 beos*)
13244 lt_cv_dlopen=load_add_on
13245 lt_cv_dlopen_libs=
13246 lt_cv_dlopen_self=yes
13247 ;;
13248
13249 mingw* | windows* | pw32* | cegcc*)
13250 lt_cv_dlopen=LoadLibrary
13251 lt_cv_dlopen_libs=
13252 ;;
13253
13254 cygwin*)
13255 lt_cv_dlopen=dlopen
13256 lt_cv_dlopen_libs=
13257 ;;
13258
13259 darwin*)
13260 # if libdl is installed we need to link against it
13261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13262 printf %s "checking for dlopen in -ldl... " >&6; }
13263 if test ${ac_cv_lib_dl_dlopen+y}
13264 then :
13265 printf %s "(cached) " >&6
13266 else case e in #(
13267 e) ac_check_lib_save_LIBS=$LIBS
13268 LIBS="-ldl $LIBS"
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13271
13272 /* Override any GCC internal prototype to avoid an error.
13273 Use char because int might match the return type of a GCC
13274 builtin and then its argument prototype would still apply.
13275 The 'extern "C"' is for builds by C++ compilers;
13276 although this is not generally supported in C code supporting it here
13277 has little cost and some practical benefit (sr 110532). */
13278 #ifdef __cplusplus
13279 extern "C"
13280 #endif
13281 char dlopen (void);
13282 int
13283 main (void)
13284 {
13285 return dlopen ();
13286 ;
13287 return 0;
13288 }
13289 _ACEOF
13290 if ac_fn_c_try_link "$LINENO"
13291 then :
13292 ac_cv_lib_dl_dlopen=yes
13293 else case e in #(
13294 e) ac_cv_lib_dl_dlopen=no ;;
13295 esac
13296 fi
13297 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13298 conftest$ac_exeext conftest.$ac_ext
13299 LIBS=$ac_check_lib_save_LIBS ;;
13300 esac
13301 fi
13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13303 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13304 if test "x$ac_cv_lib_dl_dlopen" = xyes
13305 then :
13306 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13307 else case e in #(
13308 e)
13309 lt_cv_dlopen=dyld
13310 lt_cv_dlopen_libs=
13311 lt_cv_dlopen_self=yes
13312 ;;
13313 esac
13314 fi
13315
13316 ;;
13317
13318 tpf*)
13319 # Don't try to run any link tests for TPF. We know it's impossible
13320 # because TPF is a cross-compiler, and we know how we open DSOs.
13321 lt_cv_dlopen=dlopen
13322 lt_cv_dlopen_libs=
13323 lt_cv_dlopen_self=no
13324 ;;
13325
13326 *)
13327 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13328 if test "x$ac_cv_func_shl_load" = xyes
13329 then :
13330 lt_cv_dlopen=shl_load
13331 else case e in #(
13332 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13333 printf %s "checking for shl_load in -ldld... " >&6; }
13334 if test ${ac_cv_lib_dld_shl_load+y}
13335 then :
13336 printf %s "(cached) " >&6
13337 else case e in #(
13338 e) ac_check_lib_save_LIBS=$LIBS
13339 LIBS="-ldld $LIBS"
13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h. */
13342
13343 /* Override any GCC internal prototype to avoid an error.
13344 Use char because int might match the return type of a GCC
13345 builtin and then its argument prototype would still apply.
13346 The 'extern "C"' is for builds by C++ compilers;
13347 although this is not generally supported in C code supporting it here
13348 has little cost and some practical benefit (sr 110532). */
13349 #ifdef __cplusplus
13350 extern "C"
13351 #endif
13352 char shl_load (void);
13353 int
13354 main (void)
13355 {
13356 return shl_load ();
13357 ;
13358 return 0;
13359 }
13360 _ACEOF
13361 if ac_fn_c_try_link "$LINENO"
13362 then :
13363 ac_cv_lib_dld_shl_load=yes
13364 else case e in #(
13365 e) ac_cv_lib_dld_shl_load=no ;;
13366 esac
13367 fi
13368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13369 conftest$ac_exeext conftest.$ac_ext
13370 LIBS=$ac_check_lib_save_LIBS ;;
13371 esac
13372 fi
13373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13374 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13375 if test "x$ac_cv_lib_dld_shl_load" = xyes
13376 then :
13377 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13378 else case e in #(
13379 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13380 if test "x$ac_cv_func_dlopen" = xyes
13381 then :
13382 lt_cv_dlopen=dlopen
13383 else case e in #(
13384 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13385 printf %s "checking for dlopen in -ldl... " >&6; }
13386 if test ${ac_cv_lib_dl_dlopen+y}
13387 then :
13388 printf %s "(cached) " >&6
13389 else case e in #(
13390 e) ac_check_lib_save_LIBS=$LIBS
13391 LIBS="-ldl $LIBS"
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394
13395 /* Override any GCC internal prototype to avoid an error.
13396 Use char because int might match the return type of a GCC
13397 builtin and then its argument prototype would still apply.
13398 The 'extern "C"' is for builds by C++ compilers;
13399 although this is not generally supported in C code supporting it here
13400 has little cost and some practical benefit (sr 110532). */
13401 #ifdef __cplusplus
13402 extern "C"
13403 #endif
13404 char dlopen (void);
13405 int
13406 main (void)
13407 {
13408 return dlopen ();
13409 ;
13410 return 0;
13411 }
13412 _ACEOF
13413 if ac_fn_c_try_link "$LINENO"
13414 then :
13415 ac_cv_lib_dl_dlopen=yes
13416 else case e in #(
13417 e) ac_cv_lib_dl_dlopen=no ;;
13418 esac
13419 fi
13420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13421 conftest$ac_exeext conftest.$ac_ext
13422 LIBS=$ac_check_lib_save_LIBS ;;
13423 esac
13424 fi
13425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13426 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13427 if test "x$ac_cv_lib_dl_dlopen" = xyes
13428 then :
13429 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13430 else case e in #(
13431 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13432 printf %s "checking for dlopen in -lsvld... " >&6; }
13433 if test ${ac_cv_lib_svld_dlopen+y}
13434 then :
13435 printf %s "(cached) " >&6
13436 else case e in #(
13437 e) ac_check_lib_save_LIBS=$LIBS
13438 LIBS="-lsvld $LIBS"
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13441
13442 /* Override any GCC internal prototype to avoid an error.
13443 Use char because int might match the return type of a GCC
13444 builtin and then its argument prototype would still apply.
13445 The 'extern "C"' is for builds by C++ compilers;
13446 although this is not generally supported in C code supporting it here
13447 has little cost and some practical benefit (sr 110532). */
13448 #ifdef __cplusplus
13449 extern "C"
13450 #endif
13451 char dlopen (void);
13452 int
13453 main (void)
13454 {
13455 return dlopen ();
13456 ;
13457 return 0;
13458 }
13459 _ACEOF
13460 if ac_fn_c_try_link "$LINENO"
13461 then :
13462 ac_cv_lib_svld_dlopen=yes
13463 else case e in #(
13464 e) ac_cv_lib_svld_dlopen=no ;;
13465 esac
13466 fi
13467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13468 conftest$ac_exeext conftest.$ac_ext
13469 LIBS=$ac_check_lib_save_LIBS ;;
13470 esac
13471 fi
13472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13473 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13474 if test "x$ac_cv_lib_svld_dlopen" = xyes
13475 then :
13476 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13477 else case e in #(
13478 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13479 printf %s "checking for dld_link in -ldld... " >&6; }
13480 if test ${ac_cv_lib_dld_dld_link+y}
13481 then :
13482 printf %s "(cached) " >&6
13483 else case e in #(
13484 e) ac_check_lib_save_LIBS=$LIBS
13485 LIBS="-ldld $LIBS"
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488
13489 /* Override any GCC internal prototype to avoid an error.
13490 Use char because int might match the return type of a GCC
13491 builtin and then its argument prototype would still apply.
13492 The 'extern "C"' is for builds by C++ compilers;
13493 although this is not generally supported in C code supporting it here
13494 has little cost and some practical benefit (sr 110532). */
13495 #ifdef __cplusplus
13496 extern "C"
13497 #endif
13498 char dld_link (void);
13499 int
13500 main (void)
13501 {
13502 return dld_link ();
13503 ;
13504 return 0;
13505 }
13506 _ACEOF
13507 if ac_fn_c_try_link "$LINENO"
13508 then :
13509 ac_cv_lib_dld_dld_link=yes
13510 else case e in #(
13511 e) ac_cv_lib_dld_dld_link=no ;;
13512 esac
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13515 conftest$ac_exeext conftest.$ac_ext
13516 LIBS=$ac_check_lib_save_LIBS ;;
13517 esac
13518 fi
13519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13520 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13521 if test "x$ac_cv_lib_dld_dld_link" = xyes
13522 then :
13523 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13524 fi
13525
13526 ;;
13527 esac
13528 fi
13529
13530 ;;
13531 esac
13532 fi
13533
13534 ;;
13535 esac
13536 fi
13537
13538 ;;
13539 esac
13540 fi
13541
13542 ;;
13543 esac
13544 fi
13545
13546 ;;
13547 esac
13548
13549 if test no = "$lt_cv_dlopen"; then
13550 enable_dlopen=no
13551 else
13552 enable_dlopen=yes
13553 fi
13554
13555 case $lt_cv_dlopen in
13556 dlopen)
13557 save_CPPFLAGS=$CPPFLAGS
13558 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13559
13560 save_LDFLAGS=$LDFLAGS
13561 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13562
13563 save_LIBS=$LIBS
13564 LIBS="$lt_cv_dlopen_libs $LIBS"
13565
13566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13567 printf %s "checking whether a program can dlopen itself... " >&6; }
13568 if test ${lt_cv_dlopen_self+y}
13569 then :
13570 printf %s "(cached) " >&6
13571 else case e in #(
13572 e) if test yes = "$cross_compiling"; then :
13573 lt_cv_dlopen_self=cross
13574 else
13575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13576 lt_status=$lt_dlunknown
13577 cat > conftest.$ac_ext <<_LT_EOF
13578 #line $LINENO "configure"
13579 #include "confdefs.h"
13580
13581 #if HAVE_DLFCN_H
13582 #include <dlfcn.h>
13583 #endif
13584
13585 #include <stdio.h>
13586
13587 #ifdef RTLD_GLOBAL
13588 # define LT_DLGLOBAL RTLD_GLOBAL
13589 #else
13590 # ifdef DL_GLOBAL
13591 # define LT_DLGLOBAL DL_GLOBAL
13592 # else
13593 # define LT_DLGLOBAL 0
13594 # endif
13595 #endif
13596
13597 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13598 find out it does not work in some platform. */
13599 #ifndef LT_DLLAZY_OR_NOW
13600 # ifdef RTLD_LAZY
13601 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13602 # else
13603 # ifdef DL_LAZY
13604 # define LT_DLLAZY_OR_NOW DL_LAZY
13605 # else
13606 # ifdef RTLD_NOW
13607 # define LT_DLLAZY_OR_NOW RTLD_NOW
13608 # else
13609 # ifdef DL_NOW
13610 # define LT_DLLAZY_OR_NOW DL_NOW
13611 # else
13612 # define LT_DLLAZY_OR_NOW 0
13613 # endif
13614 # endif
13615 # endif
13616 # endif
13617 #endif
13618
13619 /* When -fvisibility=hidden is used, assume the code has been annotated
13620 correspondingly for the symbols needed. */
13621 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13622 int fnord (void) __attribute__((visibility("default")));
13623 #endif
13624
13625 int fnord (void) { return 42; }
13626 int main (void)
13627 {
13628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13629 int status = $lt_dlunknown;
13630
13631 if (self)
13632 {
13633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13634 else
13635 {
13636 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13637 else puts (dlerror ());
13638 }
13639 /* dlclose (self); */
13640 }
13641 else
13642 puts (dlerror ());
13643
13644 return status;
13645 }
13646 _LT_EOF
13647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13648 (eval $ac_link) 2>&5
13649 ac_status=$?
13650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13651 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13652 (./conftest; exit; ) >&5 2>/dev/null
13653 lt_status=$?
13654 case x$lt_status in
13655 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13656 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13657 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13658 esac
13659 else :
13660 # compilation failed
13661 lt_cv_dlopen_self=no
13662 fi
13663 fi
13664 rm -fr conftest*
13665
13666 ;;
13667 esac
13668 fi
13669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13670 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13671
13672 if test yes = "$lt_cv_dlopen_self"; then
13673 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13675 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13676 if test ${lt_cv_dlopen_self_static+y}
13677 then :
13678 printf %s "(cached) " >&6
13679 else case e in #(
13680 e) if test yes = "$cross_compiling"; then :
13681 lt_cv_dlopen_self_static=cross
13682 else
13683 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13684 lt_status=$lt_dlunknown
13685 cat > conftest.$ac_ext <<_LT_EOF
13686 #line $LINENO "configure"
13687 #include "confdefs.h"
13688
13689 #if HAVE_DLFCN_H
13690 #include <dlfcn.h>
13691 #endif
13692
13693 #include <stdio.h>
13694
13695 #ifdef RTLD_GLOBAL
13696 # define LT_DLGLOBAL RTLD_GLOBAL
13697 #else
13698 # ifdef DL_GLOBAL
13699 # define LT_DLGLOBAL DL_GLOBAL
13700 # else
13701 # define LT_DLGLOBAL 0
13702 # endif
13703 #endif
13704
13705 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13706 find out it does not work in some platform. */
13707 #ifndef LT_DLLAZY_OR_NOW
13708 # ifdef RTLD_LAZY
13709 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13710 # else
13711 # ifdef DL_LAZY
13712 # define LT_DLLAZY_OR_NOW DL_LAZY
13713 # else
13714 # ifdef RTLD_NOW
13715 # define LT_DLLAZY_OR_NOW RTLD_NOW
13716 # else
13717 # ifdef DL_NOW
13718 # define LT_DLLAZY_OR_NOW DL_NOW
13719 # else
13720 # define LT_DLLAZY_OR_NOW 0
13721 # endif
13722 # endif
13723 # endif
13724 # endif
13725 #endif
13726
13727 /* When -fvisibility=hidden is used, assume the code has been annotated
13728 correspondingly for the symbols needed. */
13729 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13730 int fnord (void) __attribute__((visibility("default")));
13731 #endif
13732
13733 int fnord (void) { return 42; }
13734 int main (void)
13735 {
13736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13737 int status = $lt_dlunknown;
13738
13739 if (self)
13740 {
13741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13742 else
13743 {
13744 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13745 else puts (dlerror ());
13746 }
13747 /* dlclose (self); */
13748 }
13749 else
13750 puts (dlerror ());
13751
13752 return status;
13753 }
13754 _LT_EOF
13755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13756 (eval $ac_link) 2>&5
13757 ac_status=$?
13758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13759 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13760 (./conftest; exit; ) >&5 2>/dev/null
13761 lt_status=$?
13762 case x$lt_status in
13763 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13764 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13765 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13766 esac
13767 else :
13768 # compilation failed
13769 lt_cv_dlopen_self_static=no
13770 fi
13771 fi
13772 rm -fr conftest*
13773
13774 ;;
13775 esac
13776 fi
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13778 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13779 fi
13780
13781 CPPFLAGS=$save_CPPFLAGS
13782 LDFLAGS=$save_LDFLAGS
13783 LIBS=$save_LIBS
13784 ;;
13785 esac
13786
13787 case $lt_cv_dlopen_self in
13788 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13789 *) enable_dlopen_self=unknown ;;
13790 esac
13791
13792 case $lt_cv_dlopen_self_static in
13793 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13794 *) enable_dlopen_self_static=unknown ;;
13795 esac
13796 fi
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814 striplib=
13815 old_striplib=
13816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13817 printf %s "checking whether stripping libraries is possible... " >&6; }
13818 if test -z "$STRIP"; then
13819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820 printf "%s\n" "no" >&6; }
13821 else
13822 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13823 old_striplib="$STRIP --strip-debug"
13824 striplib="$STRIP --strip-unneeded"
13825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13826 printf "%s\n" "yes" >&6; }
13827 else
13828 case $host_os in
13829 darwin*)
13830 # FIXME - insert some real tests, host_os isn't really good enough
13831 striplib="$STRIP -x"
13832 old_striplib="$STRIP -S"
13833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13834 printf "%s\n" "yes" >&6; }
13835 ;;
13836 freebsd*)
13837 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13838 old_striplib="$STRIP --strip-debug"
13839 striplib="$STRIP --strip-unneeded"
13840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13841 printf "%s\n" "yes" >&6; }
13842 else
13843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13844 printf "%s\n" "no" >&6; }
13845 fi
13846 ;;
13847 *)
13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 printf "%s\n" "no" >&6; }
13850 ;;
13851 esac
13852 fi
13853 fi
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866 # Report what library types will actually be built
13867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13868 printf %s "checking if libtool supports shared libraries... " >&6; }
13869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13870 printf "%s\n" "$can_build_shared" >&6; }
13871
13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13873 printf %s "checking whether to build shared libraries... " >&6; }
13874 test no = "$can_build_shared" && enable_shared=no
13875
13876 # On AIX, shared libraries and static libraries use the same namespace, and
13877 # are all built from PIC.
13878 case $host_os in
13879 aix3*)
13880 test yes = "$enable_shared" && enable_static=no
13881 if test -n "$RANLIB"; then
13882 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13883 postinstall_cmds='$RANLIB $lib'
13884 fi
13885 ;;
13886
13887 aix[4-9]*)
13888 if test ia64 != "$host_cpu"; then
13889 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13890 yes,aix,yes) ;; # shared object as lib.so file only
13891 yes,svr4,*) ;; # shared object as lib.so archive member only
13892 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13893 esac
13894 fi
13895 ;;
13896 esac
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13898 printf "%s\n" "$enable_shared" >&6; }
13899
13900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13901 printf %s "checking whether to build static libraries... " >&6; }
13902 # Make sure either enable_shared or enable_static is yes.
13903 test yes = "$enable_shared" || enable_static=yes
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13905 printf "%s\n" "$enable_static" >&6; }
13906
13907
13908
13909
13910 fi
13911 ac_ext=c
13912 ac_cpp='$CPP $CPPFLAGS'
13913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13916
13917 CC=$lt_save_CC
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933 ac_config_commands="$ac_config_commands libtool"
13934
13935
13936
13937
13938 # Only expand once:
13939
13940
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13942 printf %s "checking whether ln -s works... " >&6; }
13943 LN_S=$as_ln_s
13944 if test "$LN_S" = "ln -s"; then
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13946 printf "%s\n" "yes" >&6; }
13947 else
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13949 printf "%s\n" "no, using $LN_S" >&6; }
13950 fi
13951
13952
13953
13954 # Check whether --with-slibdir was given.
13955 if test ${with_slibdir+y}
13956 then :
13957 withval=$with_slibdir; slibdir="$withval"
13958 else case e in #(
13959 e) slibdir="/lib" ;;
13960 esac
13961 fi
13962
13963
13964
13965 # Check whether --with-rundir was given.
13966 if test ${with_rundir+y}
13967 then :
13968 withval=$with_rundir; rundir="$withval"
13969 else case e in #(
13970 e) rundir="/run" ;;
13971 esac
13972 fi
13973
13974
13975
13976 # Check whether --with-dtd was given.
13977 if test ${with_dtd+y}
13978 then :
13979 withval=$with_dtd; with_dtd=true
13980 else case e in #(
13981 e) with_dtd=false ;;
13982 esac
13983 fi
13984
13985
13986 # Check whether --with-selinux was given.
13987 if test ${with_selinux+y}
13988 then :
13989 withval=$with_selinux; with_selinux=true
13990 else case e in #(
13991 e) with_selinux=false ;;
13992 esac
13993 fi
13994
13995 # Check whether --enable-la was given.
13996 if test ${enable_la+y}
13997 then :
13998 enableval=$enable_la; keep_la=true
13999 else case e in #(
14000 e) keep_la=false ;;
14001 esac
14002 fi
14003
14004 if test "x$keep_la" = "xtrue"; then
14005 KEEP_LA_TRUE=
14006 KEEP_LA_FALSE='#'
14007 else
14008 KEEP_LA_TRUE='#'
14009 KEEP_LA_FALSE=
14010 fi
14011
14012 if test "x$with_selinux" = "xtrue"; then
14013 SELINUX_TRUE=
14014 SELINUX_FALSE='#'
14015 else
14016 SELINUX_TRUE='#'
14017 SELINUX_FALSE=
14018 fi
14019
14020 if test "x$with_dtd" = "xtrue"; then
14021 WITH_DTD_TRUE=
14022 WITH_DTD_FALSE='#'
14023 else
14024 WITH_DTD_TRUE='#'
14025 WITH_DTD_FALSE=
14026 fi
14027
14028
14029
14030 ac_ext=c
14031 ac_cpp='$CPP $CPPFLAGS'
14032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14035
14036 saved_CFLAGS="$CFLAGS"
14037 CFLAGS="$saved_CFLAGS -fvisibility=hidden"
14038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts -fvisibility=hidden" >&5
14039 printf %s "checking whether compiler accepts -fvisibility=hidden... " >&6; }
14040 if test ${ac_cv_fvisibility_hidden+y}
14041 then :
14042 printf %s "(cached) " >&6
14043 else case e in #(
14044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046
14047 _ACEOF
14048 if ac_fn_c_try_compile "$LINENO"
14049 then :
14050 ac_cv_fvisibility_hidden=yes
14051 else case e in #(
14052 e) ac_cv_fvisibility_hidden=no
14053 ;;
14054 esac
14055 fi
14056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14057 esac
14058 fi
14059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fvisibility_hidden" >&5
14060 printf "%s\n" "$ac_cv_fvisibility_hidden" >&6; }
14061 if test "$ac_cv_fvisibility_hidden" = "yes"; then
14062
14063 printf "%s\n" "#define HAVE_VISIBILITY_HIDDEN 1" >>confdefs.h
14064
14065 GCC_FVISIBILITY_HIDDEN=-fvisibility=hidden
14066
14067 fi
14068 CFLAGS="$saved_CFLAGS"
14069 ac_ext=c
14070 ac_cpp='$CPP $CPPFLAGS'
14071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14074
14075
14076
14077 regular_CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_REENTRANT"
14078 regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \
14079 -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
14080 -Wformat=2 -pipe"
14081
14082
14083
14084 ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
14085 if test "x$ac_cv_header_linux_fs_h" = xyes
14086 then :
14087 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
14088
14089 fi
14090 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
14091 if test "x$ac_cv_header_linux_major_h" = xyes
14092 then :
14093 printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
14094
14095 fi
14096 ac_fn_c_check_header_compile "$LINENO" "dev/cgdvar.h" "ac_cv_header_dev_cgdvar_h" "$ac_includes_default"
14097 if test "x$ac_cv_header_dev_cgdvar_h" = xyes
14098 then :
14099 printf "%s\n" "#define HAVE_DEV_CGDVAR_H 1" >>confdefs.h
14100
14101 fi
14102 ac_fn_c_check_header_compile "$LINENO" "dev/vndvar.h" "ac_cv_header_dev_vndvar_h" "$ac_includes_default"
14103 if test "x$ac_cv_header_dev_vndvar_h" = xyes
14104 then :
14105 printf "%s\n" "#define HAVE_DEV_VNDVAR_H 1" >>confdefs.h
14106
14107 fi
14108
14109 ac_fn_c_check_header_compile "$LINENO" "sys/mdioctl.h" "ac_cv_header_sys_mdioctl_h" "$ac_includes_default"
14110 if test "x$ac_cv_header_sys_mdioctl_h" = xyes
14111 then :
14112 printf "%s\n" "#define HAVE_SYS_MDIOCTL_H 1" >>confdefs.h
14113
14114 fi
14115 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
14116 if test "x$ac_cv_header_sys_mount_h" = xyes
14117 then :
14118 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
14119
14120 fi
14121 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
14122 if test "x$ac_cv_header_sys_statvfs_h" = xyes
14123 then :
14124 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
14125
14126 fi
14127
14128 ac_fn_c_check_member "$LINENO" "struct loop_info64" "lo_file_name" "ac_cv_member_struct_loop_info64_lo_file_name" "#include <linux/loop.h>
14129 "
14130 if test "x$ac_cv_member_struct_loop_info64_lo_file_name" = xyes
14131 then :
14132
14133 printf "%s\n" "#define HAVE_STRUCT_LOOP_INFO64_LO_FILE_NAME 1" >>confdefs.h
14134
14135
14136 fi
14137
14138 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
14139 if test "x$ac_cv_func_getgrouplist" = xyes
14140 then :
14141 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
14142
14143 fi
14144 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
14145 if test "x$ac_cv_func_getgroups" = xyes
14146 then :
14147 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
14148
14149 fi
14150 ac_fn_c_check_func "$LINENO" "setgroups" "ac_cv_func_setgroups"
14151 if test "x$ac_cv_func_setgroups" = xyes
14152 then :
14153 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
14154
14155 fi
14156
14157 if test "x$ac_cv_header_dev_cgdvar_h" = "xyes"; then
14158 HAVE_CGD_TRUE=
14159 HAVE_CGD_FALSE='#'
14160 else
14161 HAVE_CGD_TRUE='#'
14162 HAVE_CGD_FALSE=
14163 fi
14164
14165 if test "x$ac_cv_header_sys_mdioctl_h" = "xyes"; then
14166 HAVE_MDIO_TRUE=
14167 HAVE_MDIO_FALSE='#'
14168 else
14169 HAVE_MDIO_TRUE='#'
14170 HAVE_MDIO_FALSE=
14171 fi
14172
14173 if test "x$ac_cv_header_dev_vndvar_h" = "xyes"; then
14174 HAVE_VND_TRUE=
14175 HAVE_VND_FALSE='#'
14176 else
14177 HAVE_VND_TRUE='#'
14178 HAVE_VND_FALSE=
14179 fi
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14190 if test -n "$ac_tool_prefix"; then
14191 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14192 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14194 printf %s "checking for $ac_word... " >&6; }
14195 if test ${ac_cv_path_PKG_CONFIG+y}
14196 then :
14197 printf %s "(cached) " >&6
14198 else case e in #(
14199 e) case $PKG_CONFIG in
14200 [\\/]* | ?:[\\/]*)
14201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14202 ;;
14203 *)
14204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205 for as_dir in $PATH
14206 do
14207 IFS=$as_save_IFS
14208 case $as_dir in #(((
14209 '') as_dir=./ ;;
14210 */) ;;
14211 *) as_dir=$as_dir/ ;;
14212 esac
14213 for ac_exec_ext in '' $ac_executable_extensions; do
14214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14215 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14217 break 2
14218 fi
14219 done
14220 done
14221 IFS=$as_save_IFS
14222
14223 ;;
14224 esac ;;
14225 esac
14226 fi
14227 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14228 if test -n "$PKG_CONFIG"; then
14229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14230 printf "%s\n" "$PKG_CONFIG" >&6; }
14231 else
14232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14233 printf "%s\n" "no" >&6; }
14234 fi
14235
14236
14237 fi
14238 if test -z "$ac_cv_path_PKG_CONFIG"; then
14239 ac_pt_PKG_CONFIG=$PKG_CONFIG
14240 # Extract the first word of "pkg-config", so it can be a program name with args.
14241 set dummy pkg-config; ac_word=$2
14242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 printf %s "checking for $ac_word... " >&6; }
14244 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14245 then :
14246 printf %s "(cached) " >&6
14247 else case e in #(
14248 e) case $ac_pt_PKG_CONFIG in
14249 [\\/]* | ?:[\\/]*)
14250 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14251 ;;
14252 *)
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14255 do
14256 IFS=$as_save_IFS
14257 case $as_dir in #(((
14258 '') as_dir=./ ;;
14259 */) ;;
14260 *) as_dir=$as_dir/ ;;
14261 esac
14262 for ac_exec_ext in '' $ac_executable_extensions; do
14263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14264 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14266 break 2
14267 fi
14268 done
14269 done
14270 IFS=$as_save_IFS
14271
14272 ;;
14273 esac ;;
14274 esac
14275 fi
14276 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14277 if test -n "$ac_pt_PKG_CONFIG"; then
14278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14279 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14280 else
14281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14282 printf "%s\n" "no" >&6; }
14283 fi
14284
14285 if test "x$ac_pt_PKG_CONFIG" = x; then
14286 PKG_CONFIG=""
14287 else
14288 case $cross_compiling:$ac_tool_warned in
14289 yes:)
14290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14291 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14292 ac_tool_warned=yes ;;
14293 esac
14294 PKG_CONFIG=$ac_pt_PKG_CONFIG
14295 fi
14296 else
14297 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14298 fi
14299
14300 fi
14301 if test -n "$PKG_CONFIG"; then
14302 _pkg_min_version=0.9.0
14303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14304 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14305 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14307 printf "%s\n" "yes" >&6; }
14308 else
14309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 printf "%s\n" "no" >&6; }
14311 PKG_CONFIG=""
14312 fi
14313 fi
14314
14315 pkg_failed=no
14316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libHX >= 4.28" >&5
14317 printf %s "checking for libHX >= 4.28... " >&6; }
14318
14319 if test -n "$libHX_CFLAGS"; then
14320 pkg_cv_libHX_CFLAGS="$libHX_CFLAGS"
14321 elif test -n "$PKG_CONFIG"; then
14322 if test -n "$PKG_CONFIG" && \
14323 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libHX >= 4.28\""; } >&5
14324 ($PKG_CONFIG --exists --print-errors "libHX >= 4.28") 2>&5
14325 ac_status=$?
14326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14327 test $ac_status = 0; }; then
14328 pkg_cv_libHX_CFLAGS=`$PKG_CONFIG --cflags "libHX >= 4.28" 2>/dev/null`
14329 test "x$?" != "x0" && pkg_failed=yes
14330 else
14331 pkg_failed=yes
14332 fi
14333 else
14334 pkg_failed=untried
14335 fi
14336 if test -n "$libHX_LIBS"; then
14337 pkg_cv_libHX_LIBS="$libHX_LIBS"
14338 elif test -n "$PKG_CONFIG"; then
14339 if test -n "$PKG_CONFIG" && \
14340 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libHX >= 4.28\""; } >&5
14341 ($PKG_CONFIG --exists --print-errors "libHX >= 4.28") 2>&5
14342 ac_status=$?
14343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14344 test $ac_status = 0; }; then
14345 pkg_cv_libHX_LIBS=`$PKG_CONFIG --libs "libHX >= 4.28" 2>/dev/null`
14346 test "x$?" != "x0" && pkg_failed=yes
14347 else
14348 pkg_failed=yes
14349 fi
14350 else
14351 pkg_failed=untried
14352 fi
14353
14354
14355
14356 if test $pkg_failed = yes; then
14357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14358 printf "%s\n" "no" >&6; }
14359
14360 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14361 _pkg_short_errors_supported=yes
14362 else
14363 _pkg_short_errors_supported=no
14364 fi
14365 if test $_pkg_short_errors_supported = yes; then
14366 libHX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libHX >= 4.28" 2>&1`
14367 else
14368 libHX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libHX >= 4.28" 2>&1`
14369 fi
14370 # Put the nasty error message in config.log where it belongs
14371 echo "$libHX_PKG_ERRORS" >&5
14372
14373 as_fn_error $? "Package requirements (libHX >= 4.28) were not met:
14374
14375 $libHX_PKG_ERRORS
14376
14377 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14378 installed software in a non-standard prefix.
14379
14380 Alternatively, you may set the environment variables libHX_CFLAGS
14381 and libHX_LIBS to avoid the need to call pkg-config.
14382 See the pkg-config man page for more details." "$LINENO" 5
14383 elif test $pkg_failed = untried; then
14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14385 printf "%s\n" "no" >&6; }
14386 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14387 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14388 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14389 is in your PATH or set the PKG_CONFIG environment variable to the full
14390 path to pkg-config.
14391
14392 Alternatively, you may set the environment variables libHX_CFLAGS
14393 and libHX_LIBS to avoid the need to call pkg-config.
14394 See the pkg-config man page for more details.
14395
14396 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14397 See 'config.log' for more details" "$LINENO" 5; }
14398 else
14399 libHX_CFLAGS=$pkg_cv_libHX_CFLAGS
14400 libHX_LIBS=$pkg_cv_libHX_LIBS
14401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14402 printf "%s\n" "yes" >&6; }
14403
14404 fi
14405
14406 pkg_failed=no
14407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount >= 2.20" >&5
14408 printf %s "checking for mount >= 2.20... " >&6; }
14409
14410 if test -n "$libmount_CFLAGS"; then
14411 pkg_cv_libmount_CFLAGS="$libmount_CFLAGS"
14412 elif test -n "$PKG_CONFIG"; then
14413 if test -n "$PKG_CONFIG" && \
14414 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mount >= 2.20\""; } >&5
14415 ($PKG_CONFIG --exists --print-errors "mount >= 2.20") 2>&5
14416 ac_status=$?
14417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14418 test $ac_status = 0; }; then
14419 pkg_cv_libmount_CFLAGS=`$PKG_CONFIG --cflags "mount >= 2.20" 2>/dev/null`
14420 test "x$?" != "x0" && pkg_failed=yes
14421 else
14422 pkg_failed=yes
14423 fi
14424 else
14425 pkg_failed=untried
14426 fi
14427 if test -n "$libmount_LIBS"; then
14428 pkg_cv_libmount_LIBS="$libmount_LIBS"
14429 elif test -n "$PKG_CONFIG"; then
14430 if test -n "$PKG_CONFIG" && \
14431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mount >= 2.20\""; } >&5
14432 ($PKG_CONFIG --exists --print-errors "mount >= 2.20") 2>&5
14433 ac_status=$?
14434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14435 test $ac_status = 0; }; then
14436 pkg_cv_libmount_LIBS=`$PKG_CONFIG --libs "mount >= 2.20" 2>/dev/null`
14437 test "x$?" != "x0" && pkg_failed=yes
14438 else
14439 pkg_failed=yes
14440 fi
14441 else
14442 pkg_failed=untried
14443 fi
14444
14445
14446
14447 if test $pkg_failed = yes; then
14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14449 printf "%s\n" "no" >&6; }
14450
14451 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14452 _pkg_short_errors_supported=yes
14453 else
14454 _pkg_short_errors_supported=no
14455 fi
14456 if test $_pkg_short_errors_supported = yes; then
14457 libmount_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mount >= 2.20" 2>&1`
14458 else
14459 libmount_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mount >= 2.20" 2>&1`
14460 fi
14461 # Put the nasty error message in config.log where it belongs
14462 echo "$libmount_PKG_ERRORS" >&5
14463
14464 as_fn_error $? "Package requirements (mount >= 2.20) were not met:
14465
14466 $libmount_PKG_ERRORS
14467
14468 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14469 installed software in a non-standard prefix.
14470
14471 Alternatively, you may set the environment variables libmount_CFLAGS
14472 and libmount_LIBS to avoid the need to call pkg-config.
14473 See the pkg-config man page for more details." "$LINENO" 5
14474 elif test $pkg_failed = untried; then
14475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476 printf "%s\n" "no" >&6; }
14477 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14478 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14479 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14480 is in your PATH or set the PKG_CONFIG environment variable to the full
14481 path to pkg-config.
14482
14483 Alternatively, you may set the environment variables libmount_CFLAGS
14484 and libmount_LIBS to avoid the need to call pkg-config.
14485 See the pkg-config man page for more details.
14486
14487 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14488 See 'config.log' for more details" "$LINENO" 5; }
14489 else
14490 libmount_CFLAGS=$pkg_cv_libmount_CFLAGS
14491 libmount_LIBS=$pkg_cv_libmount_LIBS
14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14493 printf "%s\n" "yes" >&6; }
14494
14495 fi
14496
14497 pkg_failed=no
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6" >&5
14499 printf %s "checking for libxml-2.0 >= 2.6... " >&6; }
14500
14501 if test -n "$libxml_CFLAGS"; then
14502 pkg_cv_libxml_CFLAGS="$libxml_CFLAGS"
14503 elif test -n "$PKG_CONFIG"; then
14504 if test -n "$PKG_CONFIG" && \
14505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
14506 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
14507 ac_status=$?
14508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14509 test $ac_status = 0; }; then
14510 pkg_cv_libxml_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
14511 test "x$?" != "x0" && pkg_failed=yes
14512 else
14513 pkg_failed=yes
14514 fi
14515 else
14516 pkg_failed=untried
14517 fi
14518 if test -n "$libxml_LIBS"; then
14519 pkg_cv_libxml_LIBS="$libxml_LIBS"
14520 elif test -n "$PKG_CONFIG"; then
14521 if test -n "$PKG_CONFIG" && \
14522 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
14523 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
14524 ac_status=$?
14525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14526 test $ac_status = 0; }; then
14527 pkg_cv_libxml_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
14528 test "x$?" != "x0" && pkg_failed=yes
14529 else
14530 pkg_failed=yes
14531 fi
14532 else
14533 pkg_failed=untried
14534 fi
14535
14536
14537
14538 if test $pkg_failed = yes; then
14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14540 printf "%s\n" "no" >&6; }
14541
14542 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14543 _pkg_short_errors_supported=yes
14544 else
14545 _pkg_short_errors_supported=no
14546 fi
14547 if test $_pkg_short_errors_supported = yes; then
14548 libxml_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
14549 else
14550 libxml_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
14551 fi
14552 # Put the nasty error message in config.log where it belongs
14553 echo "$libxml_PKG_ERRORS" >&5
14554
14555 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
14556
14557 $libxml_PKG_ERRORS
14558
14559 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14560 installed software in a non-standard prefix.
14561
14562 Alternatively, you may set the environment variables libxml_CFLAGS
14563 and libxml_LIBS to avoid the need to call pkg-config.
14564 See the pkg-config man page for more details." "$LINENO" 5
14565 elif test $pkg_failed = untried; then
14566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14567 printf "%s\n" "no" >&6; }
14568 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14569 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14570 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14571 is in your PATH or set the PKG_CONFIG environment variable to the full
14572 path to pkg-config.
14573
14574 Alternatively, you may set the environment variables libxml_CFLAGS
14575 and libxml_LIBS to avoid the need to call pkg-config.
14576 See the pkg-config man page for more details.
14577
14578 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14579 See 'config.log' for more details" "$LINENO" 5; }
14580 else
14581 libxml_CFLAGS=$pkg_cv_libxml_CFLAGS
14582 libxml_LIBS=$pkg_cv_libxml_LIBS
14583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14584 printf "%s\n" "yes" >&6; }
14585
14586 fi
14587
14588 pkg_failed=no
14589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpcre2-8" >&5
14590 printf %s "checking for libpcre2-8... " >&6; }
14591
14592 if test -n "$libpcre2_CFLAGS"; then
14593 pkg_cv_libpcre2_CFLAGS="$libpcre2_CFLAGS"
14594 elif test -n "$PKG_CONFIG"; then
14595 if test -n "$PKG_CONFIG" && \
14596 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
14597 ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5
14598 ac_status=$?
14599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14600 test $ac_status = 0; }; then
14601 pkg_cv_libpcre2_CFLAGS=`$PKG_CONFIG --cflags "libpcre2-8" 2>/dev/null`
14602 test "x$?" != "x0" && pkg_failed=yes
14603 else
14604 pkg_failed=yes
14605 fi
14606 else
14607 pkg_failed=untried
14608 fi
14609 if test -n "$libpcre2_LIBS"; then
14610 pkg_cv_libpcre2_LIBS="$libpcre2_LIBS"
14611 elif test -n "$PKG_CONFIG"; then
14612 if test -n "$PKG_CONFIG" && \
14613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
14614 ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5
14615 ac_status=$?
14616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617 test $ac_status = 0; }; then
14618 pkg_cv_libpcre2_LIBS=`$PKG_CONFIG --libs "libpcre2-8" 2>/dev/null`
14619 test "x$?" != "x0" && pkg_failed=yes
14620 else
14621 pkg_failed=yes
14622 fi
14623 else
14624 pkg_failed=untried
14625 fi
14626
14627
14628
14629 if test $pkg_failed = yes; then
14630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14631 printf "%s\n" "no" >&6; }
14632
14633 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14634 _pkg_short_errors_supported=yes
14635 else
14636 _pkg_short_errors_supported=no
14637 fi
14638 if test $_pkg_short_errors_supported = yes; then
14639 libpcre2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8" 2>&1`
14640 else
14641 libpcre2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8" 2>&1`
14642 fi
14643 # Put the nasty error message in config.log where it belongs
14644 echo "$libpcre2_PKG_ERRORS" >&5
14645
14646 as_fn_error $? "Package requirements (libpcre2-8) were not met:
14647
14648 $libpcre2_PKG_ERRORS
14649
14650 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14651 installed software in a non-standard prefix.
14652
14653 Alternatively, you may set the environment variables libpcre2_CFLAGS
14654 and libpcre2_LIBS to avoid the need to call pkg-config.
14655 See the pkg-config man page for more details." "$LINENO" 5
14656 elif test $pkg_failed = untried; then
14657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14658 printf "%s\n" "no" >&6; }
14659 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14660 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14661 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14662 is in your PATH or set the PKG_CONFIG environment variable to the full
14663 path to pkg-config.
14664
14665 Alternatively, you may set the environment variables libpcre2_CFLAGS
14666 and libpcre2_LIBS to avoid the need to call pkg-config.
14667 See the pkg-config man page for more details.
14668
14669 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14670 See 'config.log' for more details" "$LINENO" 5; }
14671 else
14672 libpcre2_CFLAGS=$pkg_cv_libpcre2_CFLAGS
14673 libpcre2_LIBS=$pkg_cv_libpcre2_LIBS
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14675 printf "%s\n" "yes" >&6; }
14676
14677 fi
14678
14679
14680 # Check whether --with-crypto was given.
14681 if test ${with_crypto+y}
14682 then :
14683 withval=$with_crypto; with_crypto="$withval"
14684 else case e in #(
14685 e) with_crypto="auto"
14686 ;;
14687 esac
14688 fi
14689
14690
14691
14692 # Check whether --with-cryptsetup was given.
14693 if test ${with_cryptsetup+y}
14694 then :
14695 withval=$with_cryptsetup; with_cryptsetup="$withval"
14696 else case e in #(
14697 e) with_cryptsetup="auto"
14698 ;;
14699 esac
14700 fi
14701
14702
14703 if test "$with_crypto" != no; then
14704
14705 pkg_failed=no
14706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto >= 0.9.8" >&5
14707 printf %s "checking for libcrypto >= 0.9.8... " >&6; }
14708
14709 if test -n "$libcrypto_CFLAGS"; then
14710 pkg_cv_libcrypto_CFLAGS="$libcrypto_CFLAGS"
14711 elif test -n "$PKG_CONFIG"; then
14712 if test -n "$PKG_CONFIG" && \
14713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.8\""; } >&5
14714 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.8") 2>&5
14715 ac_status=$?
14716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14717 test $ac_status = 0; }; then
14718 pkg_cv_libcrypto_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.8" 2>/dev/null`
14719 test "x$?" != "x0" && pkg_failed=yes
14720 else
14721 pkg_failed=yes
14722 fi
14723 else
14724 pkg_failed=untried
14725 fi
14726 if test -n "$libcrypto_LIBS"; then
14727 pkg_cv_libcrypto_LIBS="$libcrypto_LIBS"
14728 elif test -n "$PKG_CONFIG"; then
14729 if test -n "$PKG_CONFIG" && \
14730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.8\""; } >&5
14731 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.8") 2>&5
14732 ac_status=$?
14733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14734 test $ac_status = 0; }; then
14735 pkg_cv_libcrypto_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.8" 2>/dev/null`
14736 test "x$?" != "x0" && pkg_failed=yes
14737 else
14738 pkg_failed=yes
14739 fi
14740 else
14741 pkg_failed=untried
14742 fi
14743
14744
14745
14746 if test $pkg_failed = yes; then
14747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 printf "%s\n" "no" >&6; }
14749
14750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14751 _pkg_short_errors_supported=yes
14752 else
14753 _pkg_short_errors_supported=no
14754 fi
14755 if test $_pkg_short_errors_supported = yes; then
14756 libcrypto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.8" 2>&1`
14757 else
14758 libcrypto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.8" 2>&1`
14759 fi
14760 # Put the nasty error message in config.log where it belongs
14761 echo "$libcrypto_PKG_ERRORS" >&5
14762
14763 if test "x$with_crypto" = xyes; then
14764 as_fn_error $? "$libcrypto_PKG_ERRORS" "$LINENO" 5
14765 fi;
14766
14767 elif test $pkg_failed = untried; then
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14769 printf "%s\n" "no" >&6; }
14770 if test "x$with_crypto" = xyes; then
14771 as_fn_error $? "$libcrypto_PKG_ERRORS" "$LINENO" 5
14772 fi;
14773
14774 else
14775 libcrypto_CFLAGS=$pkg_cv_libcrypto_CFLAGS
14776 libcrypto_LIBS=$pkg_cv_libcrypto_LIBS
14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14778 printf "%s\n" "yes" >&6; }
14779
14780 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14781
14782 with_crypto="yes";
14783
14784 fi
14785 fi;
14786 if test "$with_crypto" = yes; then
14787 HAVE_LIBCRYPTO_TRUE=
14788 HAVE_LIBCRYPTO_FALSE='#'
14789 else
14790 HAVE_LIBCRYPTO_TRUE='#'
14791 HAVE_LIBCRYPTO_FALSE=
14792 fi
14793
14794
14795 if test "$with_cryptsetup" != no; then
14796
14797 pkg_failed=no
14798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcryptsetup >= 1.1.2" >&5
14799 printf %s "checking for libcryptsetup >= 1.1.2... " >&6; }
14800
14801 if test -n "$libcryptsetup_CFLAGS"; then
14802 pkg_cv_libcryptsetup_CFLAGS="$libcryptsetup_CFLAGS"
14803 elif test -n "$PKG_CONFIG"; then
14804 if test -n "$PKG_CONFIG" && \
14805 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcryptsetup >= 1.1.2\""; } >&5
14806 ($PKG_CONFIG --exists --print-errors "libcryptsetup >= 1.1.2") 2>&5
14807 ac_status=$?
14808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14809 test $ac_status = 0; }; then
14810 pkg_cv_libcryptsetup_CFLAGS=`$PKG_CONFIG --cflags "libcryptsetup >= 1.1.2" 2>/dev/null`
14811 test "x$?" != "x0" && pkg_failed=yes
14812 else
14813 pkg_failed=yes
14814 fi
14815 else
14816 pkg_failed=untried
14817 fi
14818 if test -n "$libcryptsetup_LIBS"; then
14819 pkg_cv_libcryptsetup_LIBS="$libcryptsetup_LIBS"
14820 elif test -n "$PKG_CONFIG"; then
14821 if test -n "$PKG_CONFIG" && \
14822 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcryptsetup >= 1.1.2\""; } >&5
14823 ($PKG_CONFIG --exists --print-errors "libcryptsetup >= 1.1.2") 2>&5
14824 ac_status=$?
14825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14826 test $ac_status = 0; }; then
14827 pkg_cv_libcryptsetup_LIBS=`$PKG_CONFIG --libs "libcryptsetup >= 1.1.2" 2>/dev/null`
14828 test "x$?" != "x0" && pkg_failed=yes
14829 else
14830 pkg_failed=yes
14831 fi
14832 else
14833 pkg_failed=untried
14834 fi
14835
14836
14837
14838 if test $pkg_failed = yes; then
14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14840 printf "%s\n" "no" >&6; }
14841
14842 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14843 _pkg_short_errors_supported=yes
14844 else
14845 _pkg_short_errors_supported=no
14846 fi
14847 if test $_pkg_short_errors_supported = yes; then
14848 libcryptsetup_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcryptsetup >= 1.1.2" 2>&1`
14849 else
14850 libcryptsetup_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcryptsetup >= 1.1.2" 2>&1`
14851 fi
14852 # Put the nasty error message in config.log where it belongs
14853 echo "$libcryptsetup_PKG_ERRORS" >&5
14854
14855 if test "x$with_cryptsetup" = xyes; then
14856 as_fn_error $? "$libcryptsetup_PKG_ERRORS" "$LINENO" 5
14857 fi;
14858
14859 elif test $pkg_failed = untried; then
14860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14861 printf "%s\n" "no" >&6; }
14862 if test "x$with_cryptsetup" = xyes; then
14863 as_fn_error $? "$libcryptsetup_PKG_ERRORS" "$LINENO" 5
14864 fi;
14865
14866 else
14867 libcryptsetup_CFLAGS=$pkg_cv_libcryptsetup_CFLAGS
14868 libcryptsetup_LIBS=$pkg_cv_libcryptsetup_LIBS
14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14870 printf "%s\n" "yes" >&6; }
14871
14872 printf "%s\n" "#define HAVE_LIBCRYPTSETUP 1" >>confdefs.h
14873
14874 with_cryptsetup="yes";
14875
14876 fi
14877 fi
14878 if test "$with_cryptsetup" = yes; then
14879 HAVE_LIBCRYPTSETUP_TRUE=
14880 HAVE_LIBCRYPTSETUP_FALSE='#'
14881 else
14882 HAVE_LIBCRYPTSETUP_TRUE='#'
14883 HAVE_LIBCRYPTSETUP_FALSE=
14884 fi
14885
14886
14887 for ac_header in security/pam_modules.h
14888 do :
14889 ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "$ac_includes_default"
14890 if test "x$ac_cv_header_security_pam_modules_h" = xyes
14891 then :
14892 printf "%s\n" "#define HAVE_SECURITY_PAM_MODULES_H 1" >>confdefs.h
14893 have_pamheader="yes"
14894 fi
14895
14896 done
14897 # Mac OS X 10.3 puts PAM headers in /usr/include/pam.
14898 for ac_header in pam/pam_modules.h
14899 do :
14900 ac_fn_c_check_header_compile "$LINENO" "pam/pam_modules.h" "ac_cv_header_pam_pam_modules_h" "$ac_includes_default"
14901 if test "x$ac_cv_header_pam_pam_modules_h" = xyes
14902 then :
14903 printf "%s\n" "#define HAVE_PAM_PAM_MODULES_H 1" >>confdefs.h
14904 have_pamheader="yes"
14905 fi
14906
14907 done
14908 if test x"$have_pamheader" != x"yes"; then
14909 as_fn_error $? "You are missing PAM headers" "$LINENO" 5
14910 fi
14911
14912 case "$host" in
14913 (*-*-linux*|*-*-openbsd*)
14914 PAM_MODDIR='${slibdir}/security'
14915 ;;
14916 (*-*-solaris*|*-*-netbsd*)
14917 PAM_MODDIR='${libdir}/security';
14918 ;;
14919 (*-*-darwin*)
14920 PAM_MODDIR='${libdir}/pam';
14921 ;;
14922 (*)
14923 PAM_MODDIR='${libdir}';
14924 ;;
14925 esac
14926
14927
14928
14929 ac_config_files="$ac_config_files Makefile libcryptmount.pc"
14930
14931 cat >confcache <<\_ACEOF
14932 # This file is a shell script that caches the results of configure
14933 # tests run on this system so they can be shared between configure
14934 # scripts and configure runs, see configure's option --config-cache.
14935 # It is not useful on other systems. If it contains results you don't
14936 # want to keep, you may remove or edit it.
14937 #
14938 # config.status only pays attention to the cache file if you give it
14939 # the --recheck option to rerun configure.
14940 #
14941 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
14942 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
14943 # following values.
14944
14945 _ACEOF
14946
14947 # The following way of writing the cache mishandles newlines in values,
14948 # but we know of no workaround that is simple, portable, and efficient.
14949 # So, we kill variables containing newlines.
14950 # Ultrix sh set writes to stderr and can't be redirected directly,
14951 # and sets the high bit in the cache file unless we assign to the vars.
14952 (
14953 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14954 eval ac_val=\$$ac_var
14955 case $ac_val in #(
14956 *${as_nl}*)
14957 case $ac_var in #(
14958 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14959 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14960 esac
14961 case $ac_var in #(
14962 _ | IFS | as_nl) ;; #(
14963 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14964 *) { eval $ac_var=; unset $ac_var;} ;;
14965 esac ;;
14966 esac
14967 done
14968
14969 (set) 2>&1 |
14970 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14971 *${as_nl}ac_space=\ *)
14972 # 'set' does not quote correctly, so add quotes: double-quote
14973 # substitution turns \\\\ into \\, and sed turns \\ into \.
14974 sed -n \
14975 "s/'/'\\\\''/g;
14976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14977 ;; #(
14978 *)
14979 # 'set' quotes correctly as required by POSIX, so do not add quotes.
14980 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14981 ;;
14982 esac |
14983 sort
14984 ) |
14985 sed '
14986 /^ac_cv_env_/b end
14987 t clear
14988 :clear
14989 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14990 t end
14991 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14992 :end' >>confcache
14993 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14994 if test -w "$cache_file"; then
14995 if test "x$cache_file" != "x/dev/null"; then
14996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14997 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14998 if test ! -f "$cache_file" || test -h "$cache_file"; then
14999 cat confcache >"$cache_file"
15000 else
15001 case $cache_file in #(
15002 */* | ?:*)
15003 mv -f confcache "$cache_file"$$ &&
15004 mv -f "$cache_file"$$ "$cache_file" ;; #(
15005 *)
15006 mv -f confcache "$cache_file" ;;
15007 esac
15008 fi
15009 fi
15010 else
15011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15012 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15013 fi
15014 fi
15015 rm -f confcache
15016
15017 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15018 # Let make expand exec_prefix.
15019 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15020
15021 DEFS=-DHAVE_CONFIG_H
15022
15023 ac_libobjs=
15024 ac_ltlibobjs=
15025 U=
15026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15027 # 1. Remove the extension, and $U if already installed.
15028 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15029 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15030 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15031 # will be set to the directory where LIBOBJS objects are built.
15032 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15033 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15034 done
15035 LIBOBJS=$ac_libobjs
15036
15037 LTLIBOBJS=$ac_ltlibobjs
15038
15039
15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15041 printf %s "checking that generated files are newer than configure... " >&6; }
15042 if test -n "$am_sleep_pid"; then
15043 # Hide warnings about reused PIDs.
15044 wait $am_sleep_pid 2>/dev/null
15045 fi
15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15047 printf "%s\n" "done" >&6; }
15048 case $enable_silent_rules in # (((
15049 yes) AM_DEFAULT_VERBOSITY=0;;
15050 no) AM_DEFAULT_VERBOSITY=1;;
15051 esac
15052 if test $am_cv_make_support_nested_variables = yes; then
15053 AM_V='$(V)'
15054 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15055 else
15056 AM_V=$AM_DEFAULT_VERBOSITY
15057 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15058 fi
15059
15060 if test -n "$EXEEXT"; then
15061 am__EXEEXT_TRUE=
15062 am__EXEEXT_FALSE='#'
15063 else
15064 am__EXEEXT_TRUE='#'
15065 am__EXEEXT_FALSE=
15066 fi
15067
15068 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15069 as_fn_error $? "conditional \"AMDEP\" was never defined.
15070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15071 fi
15072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15073 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15075 fi
15076 if test -z "${KEEP_LA_TRUE}" && test -z "${KEEP_LA_FALSE}"; then
15077 as_fn_error $? "conditional \"KEEP_LA\" was never defined.
15078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15079 fi
15080 if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
15081 as_fn_error $? "conditional \"SELINUX\" was never defined.
15082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15083 fi
15084 if test -z "${WITH_DTD_TRUE}" && test -z "${WITH_DTD_FALSE}"; then
15085 as_fn_error $? "conditional \"WITH_DTD\" was never defined.
15086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15087 fi
15088 if test -z "${HAVE_CGD_TRUE}" && test -z "${HAVE_CGD_FALSE}"; then
15089 as_fn_error $? "conditional \"HAVE_CGD\" was never defined.
15090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15091 fi
15092 if test -z "${HAVE_MDIO_TRUE}" && test -z "${HAVE_MDIO_FALSE}"; then
15093 as_fn_error $? "conditional \"HAVE_MDIO\" was never defined.
15094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15095 fi
15096 if test -z "${HAVE_VND_TRUE}" && test -z "${HAVE_VND_FALSE}"; then
15097 as_fn_error $? "conditional \"HAVE_VND\" was never defined.
15098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15099 fi
15100 if test -z "${HAVE_LIBCRYPTO_TRUE}" && test -z "${HAVE_LIBCRYPTO_FALSE}"; then
15101 as_fn_error $? "conditional \"HAVE_LIBCRYPTO\" was never defined.
15102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15103 fi
15104 if test -z "${HAVE_LIBCRYPTSETUP_TRUE}" && test -z "${HAVE_LIBCRYPTSETUP_FALSE}"; then
15105 as_fn_error $? "conditional \"HAVE_LIBCRYPTSETUP\" was never defined.
15106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15107 fi
15108
15109 : "${CONFIG_STATUS=./config.status}"
15110 ac_write_fail=0
15111 ac_clean_files_save=$ac_clean_files
15112 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15114 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15115 as_write_fail=0
15116 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15117 #! $SHELL
15118 # Generated by $as_me.
15119 # Run this file to recreate the current configuration.
15120 # Compiler output produced by configure, useful for debugging
15121 # configure, is in config.log if it exists.
15122
15123 debug=false
15124 ac_cs_recheck=false
15125 ac_cs_silent=false
15126
15127 SHELL=\${CONFIG_SHELL-$SHELL}
15128 export SHELL
15129 _ASEOF
15130 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15131 ## -------------------- ##
15132 ## M4sh Initialization. ##
15133 ## -------------------- ##
15134
15135 # Be more Bourne compatible
15136 DUALCASE=1; export DUALCASE # for MKS sh
15137 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15138 then :
15139 emulate sh
15140 NULLCMD=:
15141 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15142 # is contrary to our usage. Disable this feature.
15143 alias -g '${1+"$@"}'='"$@"'
15144 setopt NO_GLOB_SUBST
15145 else case e in #(
15146 e) case `(set -o) 2>/dev/null` in #(
15147 *posix*) :
15148 set -o posix ;; #(
15149 *) :
15150 ;;
15151 esac ;;
15152 esac
15153 fi
15154
15155
15156
15157 # Reset variables that may have inherited troublesome values from
15158 # the environment.
15159
15160 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15161 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15162 # side effect of setting IFS to empty, thus disabling word splitting.)
15163 # Quoting is to prevent editors from complaining about space-tab.
15164 as_nl='
15165 '
15166 export as_nl
15167 IFS=" "" $as_nl"
15168
15169 PS1='$ '
15170 PS2='> '
15171 PS4='+ '
15172
15173 # Ensure predictable behavior from utilities with locale-dependent output.
15174 LC_ALL=C
15175 export LC_ALL
15176 LANGUAGE=C
15177 export LANGUAGE
15178
15179 # We cannot yet rely on "unset" to work, but we need these variables
15180 # to be unset--not just set to an empty or harmless value--now, to
15181 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15182 # also avoids known problems related to "unset" and subshell syntax
15183 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15184 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15185 do eval test \${$as_var+y} \
15186 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15187 done
15188
15189 # Ensure that fds 0, 1, and 2 are open.
15190 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15191 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15192 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15193
15194 # The user is always right.
15195 if ${PATH_SEPARATOR+false} :; then
15196 PATH_SEPARATOR=:
15197 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15198 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15199 PATH_SEPARATOR=';'
15200 }
15201 fi
15202
15203
15204 # Find who we are. Look in the path if we contain no directory separator.
15205 as_myself=
15206 case $0 in #((
15207 *[\\/]* ) as_myself=$0 ;;
15208 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209 for as_dir in $PATH
15210 do
15211 IFS=$as_save_IFS
15212 case $as_dir in #(((
15213 '') as_dir=./ ;;
15214 */) ;;
15215 *) as_dir=$as_dir/ ;;
15216 esac
15217 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15218 done
15219 IFS=$as_save_IFS
15220
15221 ;;
15222 esac
15223 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15224 # in which case we are not to be found in the path.
15225 if test "x$as_myself" = x; then
15226 as_myself=$0
15227 fi
15228 if test ! -f "$as_myself"; then
15229 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15230 exit 1
15231 fi
15232
15233
15234
15235 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15236 # ----------------------------------------
15237 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15238 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15239 # script with STATUS, using 1 if that was 0.
15240 as_fn_error ()
15241 {
15242 as_status=$1; test $as_status -eq 0 && as_status=1
15243 if test "$4"; then
15244 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15246 fi
15247 printf "%s\n" "$as_me: error: $2" >&2
15248 as_fn_exit $as_status
15249 } # as_fn_error
15250
15251
15252 # as_fn_set_status STATUS
15253 # -----------------------
15254 # Set $? to STATUS, without forking.
15255 as_fn_set_status ()
15256 {
15257 return $1
15258 } # as_fn_set_status
15259
15260 # as_fn_exit STATUS
15261 # -----------------
15262 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15263 as_fn_exit ()
15264 {
15265 set +e
15266 as_fn_set_status $1
15267 exit $1
15268 } # as_fn_exit
15269
15270 # as_fn_unset VAR
15271 # ---------------
15272 # Portably unset VAR.
15273 as_fn_unset ()
15274 {
15275 { eval $1=; unset $1;}
15276 }
15277 as_unset=as_fn_unset
15278
15279 # as_fn_append VAR VALUE
15280 # ----------------------
15281 # Append the text in VALUE to the end of the definition contained in VAR. Take
15282 # advantage of any shell optimizations that allow amortized linear growth over
15283 # repeated appends, instead of the typical quadratic growth present in naive
15284 # implementations.
15285 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15286 then :
15287 eval 'as_fn_append ()
15288 {
15289 eval $1+=\$2
15290 }'
15291 else case e in #(
15292 e) as_fn_append ()
15293 {
15294 eval $1=\$$1\$2
15295 } ;;
15296 esac
15297 fi # as_fn_append
15298
15299 # as_fn_arith ARG...
15300 # ------------------
15301 # Perform arithmetic evaluation on the ARGs, and store the result in the
15302 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15303 # must be portable across $(()) and expr.
15304 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15305 then :
15306 eval 'as_fn_arith ()
15307 {
15308 as_val=$(( $* ))
15309 }'
15310 else case e in #(
15311 e) as_fn_arith ()
15312 {
15313 as_val=`expr "$@" || test $? -eq 1`
15314 } ;;
15315 esac
15316 fi # as_fn_arith
15317
15318
15319 if expr a : '\(a\)' >/dev/null 2>&1 &&
15320 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15321 as_expr=expr
15322 else
15323 as_expr=false
15324 fi
15325
15326 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15327 as_basename=basename
15328 else
15329 as_basename=false
15330 fi
15331
15332 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15333 as_dirname=dirname
15334 else
15335 as_dirname=false
15336 fi
15337
15338 as_me=`$as_basename -- "$0" ||
15339 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15340 X"$0" : 'X\(//\)$' \| \
15341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15342 printf "%s\n" X/"$0" |
15343 sed '/^.*\/\([^/][^/]*\)\/*$/{
15344 s//\1/
15345 q
15346 }
15347 /^X\/\(\/\/\)$/{
15348 s//\1/
15349 q
15350 }
15351 /^X\/\(\/\).*/{
15352 s//\1/
15353 q
15354 }
15355 s/.*/./; q'`
15356
15357 # Avoid depending upon Character Ranges.
15358 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15359 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15360 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15361 as_cr_digits='0123456789'
15362 as_cr_alnum=$as_cr_Letters$as_cr_digits
15363
15364
15365 # Determine whether it's possible to make 'echo' print without a newline.
15366 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15367 # for compatibility with existing Makefiles.
15368 ECHO_C= ECHO_N= ECHO_T=
15369 case `echo -n x` in #(((((
15370 -n*)
15371 case `echo 'xy\c'` in
15372 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15373 xy) ECHO_C='\c';;
15374 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15375 ECHO_T=' ';;
15376 esac;;
15377 *)
15378 ECHO_N='-n';;
15379 esac
15380
15381 # For backward compatibility with old third-party macros, we provide
15382 # the shell variables $as_echo and $as_echo_n. New code should use
15383 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15384 as_echo='printf %s\n'
15385 as_echo_n='printf %s'
15386
15387 rm -f conf$$ conf$$.exe conf$$.file
15388 if test -d conf$$.dir; then
15389 rm -f conf$$.dir/conf$$.file
15390 else
15391 rm -f conf$$.dir
15392 mkdir conf$$.dir 2>/dev/null
15393 fi
15394 if (echo >conf$$.file) 2>/dev/null; then
15395 if ln -s conf$$.file conf$$ 2>/dev/null; then
15396 as_ln_s='ln -s'
15397 # ... but there are two gotchas:
15398 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15399 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15400 # In both cases, we have to default to 'cp -pR'.
15401 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15402 as_ln_s='cp -pR'
15403 elif ln conf$$.file conf$$ 2>/dev/null; then
15404 as_ln_s=ln
15405 else
15406 as_ln_s='cp -pR'
15407 fi
15408 else
15409 as_ln_s='cp -pR'
15410 fi
15411 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15412 rmdir conf$$.dir 2>/dev/null
15413
15414
15415 # as_fn_mkdir_p
15416 # -------------
15417 # Create "$as_dir" as a directory, including parents if necessary.
15418 as_fn_mkdir_p ()
15419 {
15420
15421 case $as_dir in #(
15422 -*) as_dir=./$as_dir;;
15423 esac
15424 test -d "$as_dir" || eval $as_mkdir_p || {
15425 as_dirs=
15426 while :; do
15427 case $as_dir in #(
15428 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15429 *) as_qdir=$as_dir;;
15430 esac
15431 as_dirs="'$as_qdir' $as_dirs"
15432 as_dir=`$as_dirname -- "$as_dir" ||
15433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15434 X"$as_dir" : 'X\(//\)[^/]' \| \
15435 X"$as_dir" : 'X\(//\)$' \| \
15436 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15437 printf "%s\n" X"$as_dir" |
15438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15439 s//\1/
15440 q
15441 }
15442 /^X\(\/\/\)[^/].*/{
15443 s//\1/
15444 q
15445 }
15446 /^X\(\/\/\)$/{
15447 s//\1/
15448 q
15449 }
15450 /^X\(\/\).*/{
15451 s//\1/
15452 q
15453 }
15454 s/.*/./; q'`
15455 test -d "$as_dir" && break
15456 done
15457 test -z "$as_dirs" || eval "mkdir $as_dirs"
15458 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15459
15460
15461 } # as_fn_mkdir_p
15462 if mkdir -p . 2>/dev/null; then
15463 as_mkdir_p='mkdir -p "$as_dir"'
15464 else
15465 test -d ./-p && rmdir ./-p
15466 as_mkdir_p=false
15467 fi
15468
15469
15470 # as_fn_executable_p FILE
15471 # -----------------------
15472 # Test if FILE is an executable regular file.
15473 as_fn_executable_p ()
15474 {
15475 test -f "$1" && test -x "$1"
15476 } # as_fn_executable_p
15477 as_test_x='test -x'
15478 as_executable_p=as_fn_executable_p
15479
15480 # Sed expression to map a string onto a valid CPP name.
15481 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15482 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15483
15484 # Sed expression to map a string onto a valid variable name.
15485 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15486 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15487
15488
15489 exec 6>&1
15490 ## ----------------------------------- ##
15491 ## Main body of $CONFIG_STATUS script. ##
15492 ## ----------------------------------- ##
15493 _ASEOF
15494 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15495
15496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15497 # Save the log message, to keep $0 and so on meaningful, and to
15498 # report actual input values of CONFIG_FILES etc. instead of their
15499 # values after options handling.
15500 ac_log="
15501 This file was extended by pam_mount $as_me 2.22, which was
15502 generated by GNU Autoconf 2.72. Invocation command line was
15503
15504 CONFIG_FILES = $CONFIG_FILES
15505 CONFIG_HEADERS = $CONFIG_HEADERS
15506 CONFIG_LINKS = $CONFIG_LINKS
15507 CONFIG_COMMANDS = $CONFIG_COMMANDS
15508 $ $0 $@
15509
15510 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15511 "
15512
15513 _ACEOF
15514
15515 case $ac_config_files in *"
15516 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15517 esac
15518
15519 case $ac_config_headers in *"
15520 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15521 esac
15522
15523
15524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15525 # Files that config.status was made for.
15526 config_files="$ac_config_files"
15527 config_headers="$ac_config_headers"
15528 config_commands="$ac_config_commands"
15529
15530 _ACEOF
15531
15532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15533 ac_cs_usage="\
15534 '$as_me' instantiates files and other configuration actions
15535 from templates according to the current configuration. Unless the files
15536 and actions are specified as TAGs, all are instantiated by default.
15537
15538 Usage: $0 [OPTION]... [TAG]...
15539
15540 -h, --help print this help, then exit
15541 -V, --version print version number and configuration settings, then exit
15542 --config print configuration, then exit
15543 -q, --quiet, --silent
15544 do not print progress messages
15545 -d, --debug don't remove temporary files
15546 --recheck update $as_me by reconfiguring in the same conditions
15547 --file=FILE[:TEMPLATE]
15548 instantiate the configuration file FILE
15549 --header=FILE[:TEMPLATE]
15550 instantiate the configuration header FILE
15551
15552 Configuration files:
15553 $config_files
15554
15555 Configuration headers:
15556 $config_headers
15557
15558 Configuration commands:
15559 $config_commands
15560
15561 Report bugs to the package provider."
15562
15563 _ACEOF
15564 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15565 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15567 ac_cs_config='$ac_cs_config_escaped'
15568 ac_cs_version="\\
15569 pam_mount config.status 2.22
15570 configured by $0, generated by GNU Autoconf 2.72,
15571 with options \\"\$ac_cs_config\\"
15572
15573 Copyright (C) 2023 Free Software Foundation, Inc.
15574 This config.status script is free software; the Free Software Foundation
15575 gives unlimited permission to copy, distribute and modify it."
15576
15577 ac_pwd='$ac_pwd'
15578 srcdir='$srcdir'
15579 INSTALL='$INSTALL'
15580 MKDIR_P='$MKDIR_P'
15581 AWK='$AWK'
15582 test -n "\$AWK" || AWK=awk
15583 _ACEOF
15584
15585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15586 # The default lists apply if the user does not specify any file.
15587 ac_need_defaults=:
15588 while test $# != 0
15589 do
15590 case $1 in
15591 --*=?*)
15592 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15593 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15594 ac_shift=:
15595 ;;
15596 --*=)
15597 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15598 ac_optarg=
15599 ac_shift=:
15600 ;;
15601 *)
15602 ac_option=$1
15603 ac_optarg=$2
15604 ac_shift=shift
15605 ;;
15606 esac
15607
15608 case $ac_option in
15609 # Handling of the options.
15610 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15611 ac_cs_recheck=: ;;
15612 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15613 printf "%s\n" "$ac_cs_version"; exit ;;
15614 --config | --confi | --conf | --con | --co | --c )
15615 printf "%s\n" "$ac_cs_config"; exit ;;
15616 --debug | --debu | --deb | --de | --d | -d )
15617 debug=: ;;
15618 --file | --fil | --fi | --f )
15619 $ac_shift
15620 case $ac_optarg in
15621 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15622 '') as_fn_error $? "missing file argument" ;;
15623 esac
15624 as_fn_append CONFIG_FILES " '$ac_optarg'"
15625 ac_need_defaults=false;;
15626 --header | --heade | --head | --hea )
15627 $ac_shift
15628 case $ac_optarg in
15629 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15630 esac
15631 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15632 ac_need_defaults=false;;
15633 --he | --h)
15634 # Conflict between --help and --header
15635 as_fn_error $? "ambiguous option: '$1'
15636 Try '$0 --help' for more information.";;
15637 --help | --hel | -h )
15638 printf "%s\n" "$ac_cs_usage"; exit ;;
15639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15640 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15641 ac_cs_silent=: ;;
15642
15643 # This is an error.
15644 -*) as_fn_error $? "unrecognized option: '$1'
15645 Try '$0 --help' for more information." ;;
15646
15647 *) as_fn_append ac_config_targets " $1"
15648 ac_need_defaults=false ;;
15649
15650 esac
15651 shift
15652 done
15653
15654 ac_configure_extra_args=
15655
15656 if $ac_cs_silent; then
15657 exec 6>/dev/null
15658 ac_configure_extra_args="$ac_configure_extra_args --silent"
15659 fi
15660
15661 _ACEOF
15662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15663 if \$ac_cs_recheck; then
15664 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15665 shift
15666 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15667 CONFIG_SHELL='$SHELL'
15668 export CONFIG_SHELL
15669 exec "\$@"
15670 fi
15671
15672 _ACEOF
15673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15674 exec 5>>config.log
15675 {
15676 echo
15677 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15678 ## Running $as_me. ##
15679 _ASBOX
15680 printf "%s\n" "$ac_log"
15681 } >&5
15682
15683 _ACEOF
15684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15685 #
15686 # INIT-COMMANDS
15687 #
15688 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15689
15690
15691 # The HP-UX ksh and POSIX shell print the target directory to stdout
15692 # if CDPATH is set.
15693 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15694
15695 sed_quote_subst='$sed_quote_subst'
15696 double_quote_subst='$double_quote_subst'
15697 delay_variable_subst='$delay_variable_subst'
15698 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15699 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15700 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15701 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15702 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15703 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15704 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15705 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15706 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15707 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15708 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15709 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15710 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15711 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15712 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15713 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15714 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15715 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15716 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15717 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15718 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15719 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15720 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15721 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15722 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15723 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15724 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15725 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15726 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15727 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15728 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15729 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15730 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15731 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15732 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15733 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15734 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15735 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15736 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15737 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15738 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15739 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15740 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15741 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15742 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15743 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15744 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15745 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15746 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15747 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15748 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15749 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15750 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15751 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15752 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15753 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15754 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15755 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15756 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15757 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15758 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"`'
15759 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15760 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15761 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15762 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15763 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15764 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15765 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15766 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15767 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15768 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15769 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15770 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15771 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15772 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15773 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15774 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15775 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15776 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15777 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15778 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15779 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15780 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15781 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15782 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15783 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15784 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15785 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15786 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15787 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15788 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15789 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15790 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15791 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15792 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15793 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15794 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15795 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15796 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15797 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15798 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15799 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15800 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15801 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15802 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15803 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15804 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15805 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15806 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15807 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15808 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15809 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15810 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15811 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15812 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15813 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15814 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15815 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15816 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15817 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15818 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15819 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15820 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15821 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15822 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15823 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15824 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15825 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15826 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15827 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15828 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15829 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15830 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15831 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15832 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15833 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15834 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15835
15836 LTCC='$LTCC'
15837 LTCFLAGS='$LTCFLAGS'
15838 compiler='$compiler_DEFAULT'
15839
15840 # A function that is used when there is no print builtin or printf.
15841 func_fallback_echo ()
15842 {
15843 eval 'cat <<_LTECHO_EOF
15844 \$1
15845 _LTECHO_EOF'
15846 }
15847
15848 # Quote evaled strings.
15849 for var in SHELL \
15850 ECHO \
15851 PATH_SEPARATOR \
15852 SED \
15853 GREP \
15854 EGREP \
15855 FGREP \
15856 LD \
15857 NM \
15858 LN_S \
15859 lt_SP2NL \
15860 lt_NL2SP \
15861 reload_flag \
15862 FILECMD \
15863 OBJDUMP \
15864 deplibs_check_method \
15865 file_magic_cmd \
15866 file_magic_glob \
15867 want_nocaseglob \
15868 DLLTOOL \
15869 sharedlib_from_linklib_cmd \
15870 AR \
15871 archiver_list_spec \
15872 STRIP \
15873 RANLIB \
15874 CC \
15875 CFLAGS \
15876 compiler \
15877 lt_cv_sys_global_symbol_pipe \
15878 lt_cv_sys_global_symbol_to_cdecl \
15879 lt_cv_sys_global_symbol_to_import \
15880 lt_cv_sys_global_symbol_to_c_name_address \
15881 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15882 lt_cv_nm_interface \
15883 nm_file_list_spec \
15884 lt_cv_truncate_bin \
15885 lt_prog_compiler_no_builtin_flag \
15886 lt_prog_compiler_pic \
15887 lt_prog_compiler_wl \
15888 lt_prog_compiler_static \
15889 lt_cv_prog_compiler_c_o \
15890 need_locks \
15891 MANIFEST_TOOL \
15892 DSYMUTIL \
15893 NMEDIT \
15894 LIPO \
15895 OTOOL \
15896 OTOOL64 \
15897 shrext_cmds \
15898 export_dynamic_flag_spec \
15899 whole_archive_flag_spec \
15900 compiler_needs_object \
15901 with_gnu_ld \
15902 allow_undefined_flag \
15903 no_undefined_flag \
15904 hardcode_libdir_flag_spec \
15905 hardcode_libdir_separator \
15906 exclude_expsyms \
15907 include_expsyms \
15908 file_list_spec \
15909 variables_saved_for_relink \
15910 libname_spec \
15911 library_names_spec \
15912 soname_spec \
15913 install_override_mode \
15914 finish_eval \
15915 old_striplib \
15916 striplib; do
15917 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15918 *[\\\\\\\`\\"\\\$]*)
15919 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15920 ;;
15921 *)
15922 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15923 ;;
15924 esac
15925 done
15926
15927 # Double-quote double-evaled strings.
15928 for var in reload_cmds \
15929 old_postinstall_cmds \
15930 old_postuninstall_cmds \
15931 old_archive_cmds \
15932 extract_expsyms_cmds \
15933 old_archive_from_new_cmds \
15934 old_archive_from_expsyms_cmds \
15935 archive_cmds \
15936 archive_expsym_cmds \
15937 module_cmds \
15938 module_expsym_cmds \
15939 export_symbols_cmds \
15940 prelink_cmds \
15941 postlink_cmds \
15942 postinstall_cmds \
15943 postuninstall_cmds \
15944 finish_cmds \
15945 sys_lib_search_path_spec \
15946 configure_time_dlsearch_path \
15947 configure_time_lt_sys_library_path; do
15948 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15949 *[\\\\\\\`\\"\\\$]*)
15950 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15951 ;;
15952 *)
15953 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15954 ;;
15955 esac
15956 done
15957
15958 ac_aux_dir='$ac_aux_dir'
15959
15960 # See if we are running on zsh, and set the options that allow our
15961 # commands through without removal of \ escapes INIT.
15962 if test -n "\${ZSH_VERSION+set}"; then
15963 setopt NO_GLOB_SUBST
15964 fi
15965
15966
15967 PACKAGE='$PACKAGE'
15968 VERSION='$VERSION'
15969 RM='$RM'
15970 ofile='$ofile'
15971
15972
15973
15974
15975 _ACEOF
15976
15977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15978
15979 # Handling of arguments.
15980 for ac_config_target in $ac_config_targets
15981 do
15982 case $ac_config_target in
15983 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15984 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15985 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15986 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15987 "libcryptmount.pc") CONFIG_FILES="$CONFIG_FILES libcryptmount.pc" ;;
15988
15989 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
15990 esac
15991 done
15992
15993
15994 # If the user did not use the arguments to specify the items to instantiate,
15995 # then the envvar interface is used. Set only those that are not.
15996 # We use the long form for the default assignment because of an extremely
15997 # bizarre bug on SunOS 4.1.3.
15998 if $ac_need_defaults; then
15999 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16000 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16001 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16002 fi
16003
16004 # Have a temporary directory for convenience. Make it in the build tree
16005 # simply because there is no reason against having it here, and in addition,
16006 # creating and moving files from /tmp can sometimes cause problems.
16007 # Hook for its removal unless debugging.
16008 # Note that there is a small window in which the directory will not be cleaned:
16009 # after its creation but before its name has been assigned to '$tmp'.
16010 $debug ||
16011 {
16012 tmp= ac_tmp=
16013 trap 'exit_status=$?
16014 : "${ac_tmp:=$tmp}"
16015 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16016 ' 0
16017 trap 'as_fn_exit 1' 1 2 13 15
16018 }
16019 # Create a (secure) tmp directory for tmp files.
16020
16021 {
16022 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16023 test -d "$tmp"
16024 } ||
16025 {
16026 tmp=./conf$$-$RANDOM
16027 (umask 077 && mkdir "$tmp")
16028 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16029 ac_tmp=$tmp
16030
16031 # Set up the scripts for CONFIG_FILES section.
16032 # No need to generate them if there are no CONFIG_FILES.
16033 # This happens for instance with './config.status config.h'.
16034 if test -n "$CONFIG_FILES"; then
16035
16036
16037 ac_cr=`echo X | tr X '\015'`
16038 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16039 # But we know of no other shell where ac_cr would be empty at this
16040 # point, so we can use a bashism as a fallback.
16041 if test "x$ac_cr" = x; then
16042 eval ac_cr=\$\'\\r\'
16043 fi
16044 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16045 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16046 ac_cs_awk_cr='\\r'
16047 else
16048 ac_cs_awk_cr=$ac_cr
16049 fi
16050
16051 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16052 _ACEOF
16053
16054
16055 {
16056 echo "cat >conf$$subs.awk <<_ACEOF" &&
16057 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16058 echo "_ACEOF"
16059 } >conf$$subs.sh ||
16060 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16061 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16062 ac_delim='%!_!# '
16063 for ac_last_try in false false false false false :; do
16064 . ./conf$$subs.sh ||
16065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16066
16067 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16068 if test $ac_delim_n = $ac_delim_num; then
16069 break
16070 elif $ac_last_try; then
16071 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16072 else
16073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16074 fi
16075 done
16076 rm -f conf$$subs.sh
16077
16078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16079 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16080 _ACEOF
16081 sed -n '
16082 h
16083 s/^/S["/; s/!.*/"]=/
16084 p
16085 g
16086 s/^[^!]*!//
16087 :repl
16088 t repl
16089 s/'"$ac_delim"'$//
16090 t delim
16091 :nl
16092 h
16093 s/\(.\{148\}\)..*/\1/
16094 t more1
16095 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16096 p
16097 n
16098 b repl
16099 :more1
16100 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16101 p
16102 g
16103 s/.\{148\}//
16104 t nl
16105 :delim
16106 h
16107 s/\(.\{148\}\)..*/\1/
16108 t more2
16109 s/["\\]/\\&/g; s/^/"/; s/$/"/
16110 p
16111 b
16112 :more2
16113 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16114 p
16115 g
16116 s/.\{148\}//
16117 t delim
16118 ' <conf$$subs.awk | sed '
16119 /^[^""]/{
16120 N
16121 s/\n//
16122 }
16123 ' >>$CONFIG_STATUS || ac_write_fail=1
16124 rm -f conf$$subs.awk
16125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16126 _ACAWK
16127 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16128 for (key in S) S_is_set[key] = 1
16129 FS = ""
16130
16131 }
16132 {
16133 line = $ 0
16134 nfields = split(line, field, "@")
16135 substed = 0
16136 len = length(field[1])
16137 for (i = 2; i < nfields; i++) {
16138 key = field[i]
16139 keylen = length(key)
16140 if (S_is_set[key]) {
16141 value = S[key]
16142 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16143 len += length(value) + length(field[++i])
16144 substed = 1
16145 } else
16146 len += 1 + keylen
16147 }
16148
16149 print line
16150 }
16151
16152 _ACAWK
16153 _ACEOF
16154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16155 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16156 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16157 else
16158 cat
16159 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16160 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16161 _ACEOF
16162
16163 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16164 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16165 # trailing colons and then remove the whole line if VPATH becomes empty
16166 # (actually we leave an empty line to preserve line numbers).
16167 if test "x$srcdir" = x.; then
16168 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16169 h
16170 s///
16171 s/^/:/
16172 s/[ ]*$/:/
16173 s/:\$(srcdir):/:/g
16174 s/:\${srcdir}:/:/g
16175 s/:@srcdir@:/:/g
16176 s/^:*//
16177 s/:*$//
16178 x
16179 s/\(=[ ]*\).*/\1/
16180 G
16181 s/\n//
16182 s/^[^=]*=[ ]*$//
16183 }'
16184 fi
16185
16186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16187 fi # test -n "$CONFIG_FILES"
16188
16189 # Set up the scripts for CONFIG_HEADERS section.
16190 # No need to generate them if there are no CONFIG_HEADERS.
16191 # This happens for instance with './config.status Makefile'.
16192 if test -n "$CONFIG_HEADERS"; then
16193 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16194 BEGIN {
16195 _ACEOF
16196
16197 # Transform confdefs.h into an awk script 'defines.awk', embedded as
16198 # here-document in config.status, that substitutes the proper values into
16199 # config.h.in to produce config.h.
16200
16201 # Create a delimiter string that does not exist in confdefs.h, to ease
16202 # handling of long lines.
16203 ac_delim='%!_!# '
16204 for ac_last_try in false false :; do
16205 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16206 if test -z "$ac_tt"; then
16207 break
16208 elif $ac_last_try; then
16209 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16210 else
16211 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16212 fi
16213 done
16214
16215 # For the awk script, D is an array of macro values keyed by name,
16216 # likewise P contains macro parameters if any. Preserve backslash
16217 # newline sequences.
16218
16219 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16220 sed -n '
16221 s/.\{148\}/&'"$ac_delim"'/g
16222 t rset
16223 :rset
16224 s/^[ ]*#[ ]*define[ ][ ]*/ /
16225 t def
16226 d
16227 :def
16228 s/\\$//
16229 t bsnl
16230 s/["\\]/\\&/g
16231 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16232 D["\1"]=" \3"/p
16233 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16234 d
16235 :bsnl
16236 s/["\\]/\\&/g
16237 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16238 D["\1"]=" \3\\\\\\n"\\/p
16239 t cont
16240 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16241 t cont
16242 d
16243 :cont
16244 n
16245 s/.\{148\}/&'"$ac_delim"'/g
16246 t clear
16247 :clear
16248 s/\\$//
16249 t bsnlc
16250 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16251 d
16252 :bsnlc
16253 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16254 b cont
16255 ' <confdefs.h | sed '
16256 s/'"$ac_delim"'/"\\\
16257 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16258
16259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16260 for (key in D) D_is_set[key] = 1
16261 FS = ""
16262 }
16263 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16264 line = \$ 0
16265 split(line, arg, " ")
16266 if (arg[1] == "#") {
16267 defundef = arg[2]
16268 mac1 = arg[3]
16269 } else {
16270 defundef = substr(arg[1], 2)
16271 mac1 = arg[2]
16272 }
16273 split(mac1, mac2, "(") #)
16274 macro = mac2[1]
16275 prefix = substr(line, 1, index(line, defundef) - 1)
16276 if (D_is_set[macro]) {
16277 # Preserve the white space surrounding the "#".
16278 print prefix "define", macro P[macro] D[macro]
16279 next
16280 } else {
16281 # Replace #undef with comments. This is necessary, for example,
16282 # in the case of _POSIX_SOURCE, which is predefined and required
16283 # on some systems where configure will not decide to define it.
16284 if (defundef == "undef") {
16285 print "/*", prefix defundef, macro, "*/"
16286 next
16287 }
16288 }
16289 }
16290 { print }
16291 _ACAWK
16292 _ACEOF
16293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16294 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16295 fi # test -n "$CONFIG_HEADERS"
16296
16297
16298 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16299 shift
16300 for ac_tag
16301 do
16302 case $ac_tag in
16303 :[FHLC]) ac_mode=$ac_tag; continue;;
16304 esac
16305 case $ac_mode$ac_tag in
16306 :[FHL]*:*);;
16307 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16308 :[FH]-) ac_tag=-:-;;
16309 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16310 esac
16311 ac_save_IFS=$IFS
16312 IFS=:
16313 set x $ac_tag
16314 IFS=$ac_save_IFS
16315 shift
16316 ac_file=$1
16317 shift
16318
16319 case $ac_mode in
16320 :L) ac_source=$1;;
16321 :[FH])
16322 ac_file_inputs=
16323 for ac_f
16324 do
16325 case $ac_f in
16326 -) ac_f="$ac_tmp/stdin";;
16327 *) # Look for the file first in the build tree, then in the source tree
16328 # (if the path is not absolute). The absolute path cannot be DOS-style,
16329 # because $ac_f cannot contain ':'.
16330 test -f "$ac_f" ||
16331 case $ac_f in
16332 [\\/$]*) false;;
16333 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16334 esac ||
16335 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16336 esac
16337 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16338 as_fn_append ac_file_inputs " '$ac_f'"
16339 done
16340
16341 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16342 # use $as_me), people would be surprised to read:
16343 # /* config.h. Generated by config.status. */
16344 configure_input='Generated from '`
16345 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16346 `' by configure.'
16347 if test x"$ac_file" != x-; then
16348 configure_input="$ac_file. $configure_input"
16349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16350 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16351 fi
16352 # Neutralize special characters interpreted by sed in replacement strings.
16353 case $configure_input in #(
16354 *\&* | *\|* | *\\* )
16355 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16356 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16357 *) ac_sed_conf_input=$configure_input;;
16358 esac
16359
16360 case $ac_tag in
16361 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16363 esac
16364 ;;
16365 esac
16366
16367 ac_dir=`$as_dirname -- "$ac_file" ||
16368 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16369 X"$ac_file" : 'X\(//\)[^/]' \| \
16370 X"$ac_file" : 'X\(//\)$' \| \
16371 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16372 printf "%s\n" X"$ac_file" |
16373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16374 s//\1/
16375 q
16376 }
16377 /^X\(\/\/\)[^/].*/{
16378 s//\1/
16379 q
16380 }
16381 /^X\(\/\/\)$/{
16382 s//\1/
16383 q
16384 }
16385 /^X\(\/\).*/{
16386 s//\1/
16387 q
16388 }
16389 s/.*/./; q'`
16390 as_dir="$ac_dir"; as_fn_mkdir_p
16391 ac_builddir=.
16392
16393 case "$ac_dir" in
16394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16395 *)
16396 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16397 # A ".." for each directory in $ac_dir_suffix.
16398 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16399 case $ac_top_builddir_sub in
16400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16402 esac ;;
16403 esac
16404 ac_abs_top_builddir=$ac_pwd
16405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16406 # for backward compatibility:
16407 ac_top_builddir=$ac_top_build_prefix
16408
16409 case $srcdir in
16410 .) # We are building in place.
16411 ac_srcdir=.
16412 ac_top_srcdir=$ac_top_builddir_sub
16413 ac_abs_top_srcdir=$ac_pwd ;;
16414 [\\/]* | ?:[\\/]* ) # Absolute name.
16415 ac_srcdir=$srcdir$ac_dir_suffix;
16416 ac_top_srcdir=$srcdir
16417 ac_abs_top_srcdir=$srcdir ;;
16418 *) # Relative name.
16419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16420 ac_top_srcdir=$ac_top_build_prefix$srcdir
16421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16422 esac
16423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16424
16425
16426 case $ac_mode in
16427 :F)
16428 #
16429 # CONFIG_FILE
16430 #
16431
16432 case $INSTALL in
16433 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16434 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16435 esac
16436 ac_MKDIR_P=$MKDIR_P
16437 case $MKDIR_P in
16438 [\\/$]* | ?:[\\/]* ) ;;
16439 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16440 esac
16441 _ACEOF
16442
16443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16444 # If the template does not know about datarootdir, expand it.
16445 # FIXME: This hack should be removed a few years after 2.60.
16446 ac_datarootdir_hack=; ac_datarootdir_seen=
16447 ac_sed_dataroot='
16448 /datarootdir/ {
16449 p
16450 q
16451 }
16452 /@datadir@/p
16453 /@docdir@/p
16454 /@infodir@/p
16455 /@localedir@/p
16456 /@mandir@/p'
16457 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16458 *datarootdir*) ac_datarootdir_seen=yes;;
16459 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16461 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16462 _ACEOF
16463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16464 ac_datarootdir_hack='
16465 s&@datadir@&$datadir&g
16466 s&@docdir@&$docdir&g
16467 s&@infodir@&$infodir&g
16468 s&@localedir@&$localedir&g
16469 s&@mandir@&$mandir&g
16470 s&\\\${datarootdir}&$datarootdir&g' ;;
16471 esac
16472 _ACEOF
16473
16474 # Neutralize VPATH when '$srcdir' = '.'.
16475 # Shell code in configure.ac might set extrasub.
16476 # FIXME: do we really want to maintain this feature?
16477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16478 ac_sed_extra="$ac_vpsub
16479 $extrasub
16480 _ACEOF
16481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16482 :t
16483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16484 s|@configure_input@|$ac_sed_conf_input|;t t
16485 s&@top_builddir@&$ac_top_builddir_sub&;t t
16486 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16487 s&@srcdir@&$ac_srcdir&;t t
16488 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16489 s&@top_srcdir@&$ac_top_srcdir&;t t
16490 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16491 s&@builddir@&$ac_builddir&;t t
16492 s&@abs_builddir@&$ac_abs_builddir&;t t
16493 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16494 s&@INSTALL@&$ac_INSTALL&;t t
16495 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16496 $ac_datarootdir_hack
16497 "
16498 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16499 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16500
16501 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16502 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16503 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16504 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16506 which seems to be undefined. Please make sure it is defined" >&5
16507 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16508 which seems to be undefined. Please make sure it is defined" >&2;}
16509
16510 rm -f "$ac_tmp/stdin"
16511 case $ac_file in
16512 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16513 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16514 esac \
16515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16516 ;;
16517 :H)
16518 #
16519 # CONFIG_HEADER
16520 #
16521 if test x"$ac_file" != x-; then
16522 {
16523 printf "%s\n" "/* $configure_input */" >&1 \
16524 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16525 } >"$ac_tmp/config.h" \
16526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16527 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16529 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16530 else
16531 rm -f "$ac_file"
16532 mv "$ac_tmp/config.h" "$ac_file" \
16533 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16534 fi
16535 else
16536 printf "%s\n" "/* $configure_input */" >&1 \
16537 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16538 || as_fn_error $? "could not create -" "$LINENO" 5
16539 fi
16540 # Compute "$ac_file"'s index in $config_headers.
16541 _am_arg="$ac_file"
16542 _am_stamp_count=1
16543 for _am_header in $config_headers :; do
16544 case $_am_header in
16545 $_am_arg | $_am_arg:* )
16546 break ;;
16547 * )
16548 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16549 esac
16550 done
16551 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16552 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16553 X"$_am_arg" : 'X\(//\)[^/]' \| \
16554 X"$_am_arg" : 'X\(//\)$' \| \
16555 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16556 printf "%s\n" X"$_am_arg" |
16557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16558 s//\1/
16559 q
16560 }
16561 /^X\(\/\/\)[^/].*/{
16562 s//\1/
16563 q
16564 }
16565 /^X\(\/\/\)$/{
16566 s//\1/
16567 q
16568 }
16569 /^X\(\/\).*/{
16570 s//\1/
16571 q
16572 }
16573 s/.*/./; q'`/stamp-h$_am_stamp_count
16574 ;;
16575
16576 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16577 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16578 ;;
16579 esac
16580
16581
16582 case $ac_file$ac_mode in
16583 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16584 # Older Autoconf quotes --file arguments for eval, but not when files
16585 # are listed without --file. Let's play safe and only enable the eval
16586 # if we detect the quoting.
16587 # TODO: see whether this extra hack can be removed once we start
16588 # requiring Autoconf 2.70 or later.
16589 case $CONFIG_FILES in #(
16590 *\'*) :
16591 eval set x "$CONFIG_FILES" ;; #(
16592 *) :
16593 set x $CONFIG_FILES ;; #(
16594 *) :
16595 ;;
16596 esac
16597 shift
16598 # Used to flag and report bootstrapping failures.
16599 am_rc=0
16600 for am_mf
16601 do
16602 # Strip MF so we end up with the name of the file.
16603 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16604 # Check whether this is an Automake generated Makefile which includes
16605 # dependency-tracking related rules and includes.
16606 # Grep'ing the whole file directly is not great: AIX grep has a line
16607 # limit of 2048, but all sed's we know have understand at least 4000.
16608 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16609 || continue
16610 am_dirpart=`$as_dirname -- "$am_mf" ||
16611 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16612 X"$am_mf" : 'X\(//\)[^/]' \| \
16613 X"$am_mf" : 'X\(//\)$' \| \
16614 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16615 printf "%s\n" X"$am_mf" |
16616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16617 s//\1/
16618 q
16619 }
16620 /^X\(\/\/\)[^/].*/{
16621 s//\1/
16622 q
16623 }
16624 /^X\(\/\/\)$/{
16625 s//\1/
16626 q
16627 }
16628 /^X\(\/\).*/{
16629 s//\1/
16630 q
16631 }
16632 s/.*/./; q'`
16633 am_filepart=`$as_basename -- "$am_mf" ||
16634 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16635 X"$am_mf" : 'X\(//\)$' \| \
16636 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16637 printf "%s\n" X/"$am_mf" |
16638 sed '/^.*\/\([^/][^/]*\)\/*$/{
16639 s//\1/
16640 q
16641 }
16642 /^X\/\(\/\/\)$/{
16643 s//\1/
16644 q
16645 }
16646 /^X\/\(\/\).*/{
16647 s//\1/
16648 q
16649 }
16650 s/.*/./; q'`
16651 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16652 && sed -e '/# am--include-marker/d' "$am_filepart" \
16653 | $MAKE -f - am--depfiles" >&5
16654 (cd "$am_dirpart" \
16655 && sed -e '/# am--include-marker/d' "$am_filepart" \
16656 | $MAKE -f - am--depfiles) >&5 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } || am_rc=$?
16660 done
16661 if test $am_rc -ne 0; then
16662 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16663 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16664 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16665 for automatic dependency tracking. If GNU make was not used, consider
16666 re-running the configure script with MAKE=\"gmake\" (or whatever is
16667 necessary). You can also try re-running configure with the
16668 '--disable-dependency-tracking' option to at least be able to build
16669 the package (albeit without support for automatic dependency tracking).
16670 See 'config.log' for more details" "$LINENO" 5; }
16671 fi
16672 { am_dirpart=; unset am_dirpart;}
16673 { am_filepart=; unset am_filepart;}
16674 { am_mf=; unset am_mf;}
16675 { am_rc=; unset am_rc;}
16676 rm -f conftest-deps.mk
16677 }
16678 ;;
16679 "libtool":C)
16680
16681 # See if we are running on zsh, and set the options that allow our
16682 # commands through without removal of \ escapes.
16683 if test -n "${ZSH_VERSION+set}"; then
16684 setopt NO_GLOB_SUBST
16685 fi
16686
16687 cfgfile=${ofile}T
16688 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16689 $RM "$cfgfile"
16690
16691 cat <<_LT_EOF >> "$cfgfile"
16692 #! $SHELL
16693 # Generated automatically by $as_me ($PACKAGE) $VERSION
16694 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16695
16696 # Provide generalized library-building support services.
16697 # Written by Gordon Matzigkeit, 1996
16698
16699 # Copyright (C) 2024 Free Software Foundation, Inc.
16700 # This is free software; see the source for copying conditions. There is NO
16701 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16702
16703 # GNU Libtool is free software; you can redistribute it and/or modify
16704 # it under the terms of the GNU General Public License as published by
16705 # the Free Software Foundation; either version 2 of the License, or
16706 # (at your option) any later version.
16707 #
16708 # As a special exception to the GNU General Public License, if you
16709 # distribute this file as part of a program or library that is built
16710 # using GNU Libtool, you may include this file under the same
16711 # distribution terms that you use for the rest of that program.
16712 #
16713 # GNU Libtool is distributed in the hope that it will be useful, but
16714 # WITHOUT ANY WARRANTY; without even the implied warranty of
16715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16716 # GNU General Public License for more details.
16717 #
16718 # You should have received a copy of the GNU General Public License
16719 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16720
16721
16722 # The names of the tagged configurations supported by this script.
16723 available_tags=''
16724
16725 # Configured defaults for sys_lib_dlsearch_path munging.
16726 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16727
16728 # ### BEGIN LIBTOOL CONFIG
16729
16730 # Whether or not to build static libraries.
16731 build_old_libs=$enable_static
16732
16733 # Which release of libtool.m4 was used?
16734 macro_version=$macro_version
16735 macro_revision=$macro_revision
16736
16737 # Whether or not to build shared libraries.
16738 build_libtool_libs=$enable_shared
16739
16740 # What type of objects to build.
16741 pic_mode=$pic_mode
16742
16743 # Whether or not to optimize for fast installation.
16744 fast_install=$enable_fast_install
16745
16746 # Shared archive member basename,for filename based shared library versioning on AIX.
16747 shared_archive_member_spec=$shared_archive_member_spec
16748
16749 # Shell to use when invoking shell scripts.
16750 SHELL=$lt_SHELL
16751
16752 # An echo program that protects backslashes.
16753 ECHO=$lt_ECHO
16754
16755 # The PATH separator for the build system.
16756 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16757
16758 # The host system.
16759 host_alias=$host_alias
16760 host=$host
16761 host_os=$host_os
16762
16763 # The build system.
16764 build_alias=$build_alias
16765 build=$build
16766 build_os=$build_os
16767
16768 # A sed program that does not truncate output.
16769 SED=$lt_SED
16770
16771 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16772 Xsed="\$SED -e 1s/^X//"
16773
16774 # A grep program that handles long lines.
16775 GREP=$lt_GREP
16776
16777 # An ERE matcher.
16778 EGREP=$lt_EGREP
16779
16780 # A literal string matcher.
16781 FGREP=$lt_FGREP
16782
16783 # A BSD- or MS-compatible name lister.
16784 NM=$lt_NM
16785
16786 # Whether we need soft or hard links.
16787 LN_S=$lt_LN_S
16788
16789 # What is the maximum length of a command?
16790 max_cmd_len=$max_cmd_len
16791
16792 # Object file suffix (normally "o").
16793 objext=$ac_objext
16794
16795 # Executable file suffix (normally "").
16796 exeext=$exeext
16797
16798 # whether the shell understands "unset".
16799 lt_unset=$lt_unset
16800
16801 # turn spaces into newlines.
16802 SP2NL=$lt_lt_SP2NL
16803
16804 # turn newlines into spaces.
16805 NL2SP=$lt_lt_NL2SP
16806
16807 # convert \$build file names to \$host format.
16808 to_host_file_cmd=$lt_cv_to_host_file_cmd
16809
16810 # convert \$build files to toolchain format.
16811 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16812
16813 # A file(cmd) program that detects file types.
16814 FILECMD=$lt_FILECMD
16815
16816 # An object symbol dumper.
16817 OBJDUMP=$lt_OBJDUMP
16818
16819 # Method to check whether dependent libraries are shared objects.
16820 deplibs_check_method=$lt_deplibs_check_method
16821
16822 # Command to use when deplibs_check_method = "file_magic".
16823 file_magic_cmd=$lt_file_magic_cmd
16824
16825 # How to find potential files when deplibs_check_method = "file_magic".
16826 file_magic_glob=$lt_file_magic_glob
16827
16828 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16829 want_nocaseglob=$lt_want_nocaseglob
16830
16831 # DLL creation program.
16832 DLLTOOL=$lt_DLLTOOL
16833
16834 # Command to associate shared and link libraries.
16835 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16836
16837 # The archiver.
16838 AR=$lt_AR
16839
16840 # Flags to create an archive (by configure).
16841 lt_ar_flags=$lt_ar_flags
16842
16843 # Flags to create an archive.
16844 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16845
16846 # How to feed a file listing to the archiver.
16847 archiver_list_spec=$lt_archiver_list_spec
16848
16849 # A symbol stripping program.
16850 STRIP=$lt_STRIP
16851
16852 # Commands used to install an old-style archive.
16853 RANLIB=$lt_RANLIB
16854 old_postinstall_cmds=$lt_old_postinstall_cmds
16855 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16856
16857 # Whether to use a lock for old archive extraction.
16858 lock_old_archive_extraction=$lock_old_archive_extraction
16859
16860 # A C compiler.
16861 LTCC=$lt_CC
16862
16863 # LTCC compiler flags.
16864 LTCFLAGS=$lt_CFLAGS
16865
16866 # Take the output of nm and produce a listing of raw symbols and C names.
16867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16868
16869 # Transform the output of nm in a proper C declaration.
16870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16871
16872 # Transform the output of nm into a list of symbols to manually relocate.
16873 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16874
16875 # Transform the output of nm in a C name address pair.
16876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16877
16878 # Transform the output of nm in a C name address pair when lib prefix is needed.
16879 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16880
16881 # The name lister interface.
16882 nm_interface=$lt_lt_cv_nm_interface
16883
16884 # Specify filename containing input files for \$NM.
16885 nm_file_list_spec=$lt_nm_file_list_spec
16886
16887 # The root where to search for dependent libraries,and where our libraries should be installed.
16888 lt_sysroot=$lt_sysroot
16889
16890 # Command to truncate a binary pipe.
16891 lt_truncate_bin=$lt_lt_cv_truncate_bin
16892
16893 # The name of the directory that contains temporary libtool files.
16894 objdir=$objdir
16895
16896 # Used to examine libraries when file_magic_cmd begins with "file".
16897 MAGIC_CMD=$MAGIC_CMD
16898
16899 # Must we lock files when doing compilation?
16900 need_locks=$lt_need_locks
16901
16902 # Manifest tool.
16903 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16904
16905 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16906 DSYMUTIL=$lt_DSYMUTIL
16907
16908 # Tool to change global to local symbols on Mac OS X.
16909 NMEDIT=$lt_NMEDIT
16910
16911 # Tool to manipulate fat objects and archives on Mac OS X.
16912 LIPO=$lt_LIPO
16913
16914 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16915 OTOOL=$lt_OTOOL
16916
16917 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16918 OTOOL64=$lt_OTOOL64
16919
16920 # Old archive suffix (normally "a").
16921 libext=$libext
16922
16923 # Shared library suffix (normally ".so").
16924 shrext_cmds=$lt_shrext_cmds
16925
16926 # The commands to extract the exported symbol list from a shared archive.
16927 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16928
16929 # Variables whose values should be saved in libtool wrapper scripts and
16930 # restored at link time.
16931 variables_saved_for_relink=$lt_variables_saved_for_relink
16932
16933 # Do we need the "lib" prefix for modules?
16934 need_lib_prefix=$need_lib_prefix
16935
16936 # Do we need a version for libraries?
16937 need_version=$need_version
16938
16939 # Library versioning type.
16940 version_type=$version_type
16941
16942 # Shared library runtime path variable.
16943 runpath_var=$runpath_var
16944
16945 # Shared library path variable.
16946 shlibpath_var=$shlibpath_var
16947
16948 # Is shlibpath searched before the hard-coded library search path?
16949 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16950
16951 # Format of library name prefix.
16952 libname_spec=$lt_libname_spec
16953
16954 # List of archive names. First name is the real one, the rest are links.
16955 # The last name is the one that the linker finds with -lNAME
16956 library_names_spec=$lt_library_names_spec
16957
16958 # The coded name of the library, if different from the real name.
16959 soname_spec=$lt_soname_spec
16960
16961 # Permission mode override for installation of shared libraries.
16962 install_override_mode=$lt_install_override_mode
16963
16964 # Command to use after installation of a shared archive.
16965 postinstall_cmds=$lt_postinstall_cmds
16966
16967 # Command to use after uninstallation of a shared archive.
16968 postuninstall_cmds=$lt_postuninstall_cmds
16969
16970 # Commands used to finish a libtool library installation in a directory.
16971 finish_cmds=$lt_finish_cmds
16972
16973 # As "finish_cmds", except a single script fragment to be evaled but
16974 # not shown.
16975 finish_eval=$lt_finish_eval
16976
16977 # Whether we should hardcode library paths into libraries.
16978 hardcode_into_libs=$hardcode_into_libs
16979
16980 # Compile-time system search path for libraries.
16981 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16982
16983 # Detected run-time system search path for libraries.
16984 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16985
16986 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16987 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16988
16989 # Whether dlopen is supported.
16990 dlopen_support=$enable_dlopen
16991
16992 # Whether dlopen of programs is supported.
16993 dlopen_self=$enable_dlopen_self
16994
16995 # Whether dlopen of statically linked programs is supported.
16996 dlopen_self_static=$enable_dlopen_self_static
16997
16998 # Commands to strip libraries.
16999 old_striplib=$lt_old_striplib
17000 striplib=$lt_striplib
17001
17002
17003 # The linker used to build libraries.
17004 LD=$lt_LD
17005
17006 # How to create reloadable object files.
17007 reload_flag=$lt_reload_flag
17008 reload_cmds=$lt_reload_cmds
17009
17010 # Commands used to build an old-style archive.
17011 old_archive_cmds=$lt_old_archive_cmds
17012
17013 # A language specific compiler.
17014 CC=$lt_compiler
17015
17016 # Is the compiler the GNU compiler?
17017 with_gcc=$GCC
17018
17019 # Compiler flag to turn off builtin functions.
17020 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17021
17022 # Additional compiler flags for building library objects.
17023 pic_flag=$lt_lt_prog_compiler_pic
17024
17025 # How to pass a linker flag through the compiler.
17026 wl=$lt_lt_prog_compiler_wl
17027
17028 # Compiler flag to prevent dynamic linking.
17029 link_static_flag=$lt_lt_prog_compiler_static
17030
17031 # Does compiler simultaneously support -c and -o options?
17032 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17033
17034 # Whether or not to add -lc for building shared libraries.
17035 build_libtool_need_lc=$archive_cmds_need_lc
17036
17037 # Whether or not to disallow shared libs when runtime libs are static.
17038 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17039
17040 # Compiler flag to allow reflexive dlopens.
17041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17042
17043 # Compiler flag to generate shared objects directly from archives.
17044 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17045
17046 # Whether the compiler copes with passing no objects directly.
17047 compiler_needs_object=$lt_compiler_needs_object
17048
17049 # Create an old-style archive from a shared archive.
17050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17051
17052 # Create a temporary old-style archive to link instead of a shared archive.
17053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17054
17055 # Commands used to build a shared archive.
17056 archive_cmds=$lt_archive_cmds
17057 archive_expsym_cmds=$lt_archive_expsym_cmds
17058
17059 # Commands used to build a loadable module if different from building
17060 # a shared archive.
17061 module_cmds=$lt_module_cmds
17062 module_expsym_cmds=$lt_module_expsym_cmds
17063
17064 # Whether we are building with GNU ld or not.
17065 with_gnu_ld=$lt_with_gnu_ld
17066
17067 # Flag that allows shared libraries with undefined symbols to be built.
17068 allow_undefined_flag=$lt_allow_undefined_flag
17069
17070 # Flag that enforces no undefined symbols.
17071 no_undefined_flag=$lt_no_undefined_flag
17072
17073 # Flag to hardcode \$libdir into a binary during linking.
17074 # This must work even if \$libdir does not exist
17075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17076
17077 # Whether we need a single "-rpath" flag with a separated argument.
17078 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17079
17080 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17081 # DIR into the resulting binary.
17082 hardcode_direct=$hardcode_direct
17083
17084 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17085 # DIR into the resulting binary and the resulting library dependency is
17086 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17087 # library is relocated.
17088 hardcode_direct_absolute=$hardcode_direct_absolute
17089
17090 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17091 # into the resulting binary.
17092 hardcode_minus_L=$hardcode_minus_L
17093
17094 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17095 # into the resulting binary.
17096 hardcode_shlibpath_var=$hardcode_shlibpath_var
17097
17098 # Set to "yes" if building a shared library automatically hardcodes DIR
17099 # into the library and all subsequent libraries and executables linked
17100 # against it.
17101 hardcode_automatic=$hardcode_automatic
17102
17103 # Set to yes if linker adds runtime paths of dependent libraries
17104 # to runtime path list.
17105 inherit_rpath=$inherit_rpath
17106
17107 # Whether libtool must link a program against all its dependency libraries.
17108 link_all_deplibs=$link_all_deplibs
17109
17110 # Set to "yes" if exported symbols are required.
17111 always_export_symbols=$always_export_symbols
17112
17113 # The commands to list exported symbols.
17114 export_symbols_cmds=$lt_export_symbols_cmds
17115
17116 # Symbols that should not be listed in the preloaded symbols.
17117 exclude_expsyms=$lt_exclude_expsyms
17118
17119 # Symbols that must always be exported.
17120 include_expsyms=$lt_include_expsyms
17121
17122 # Commands necessary for linking programs (against libraries) with templates.
17123 prelink_cmds=$lt_prelink_cmds
17124
17125 # Commands necessary for finishing linking programs.
17126 postlink_cmds=$lt_postlink_cmds
17127
17128 # Specify filename containing input files.
17129 file_list_spec=$lt_file_list_spec
17130
17131 # How to hardcode a shared library path into an executable.
17132 hardcode_action=$hardcode_action
17133
17134 # ### END LIBTOOL CONFIG
17135
17136 _LT_EOF
17137
17138 cat <<'_LT_EOF' >> "$cfgfile"
17139
17140 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17141
17142 # func_munge_path_list VARIABLE PATH
17143 # -----------------------------------
17144 # VARIABLE is name of variable containing _space_ separated list of
17145 # directories to be munged by the contents of PATH, which is string
17146 # having a format:
17147 # "DIR[:DIR]:"
17148 # string "DIR[ DIR]" will be prepended to VARIABLE
17149 # ":DIR[:DIR]"
17150 # string "DIR[ DIR]" will be appended to VARIABLE
17151 # "DIRP[:DIRP]::[DIRA:]DIRA"
17152 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17153 # "DIRA[ DIRA]" will be appended to VARIABLE
17154 # "DIR[:DIR]"
17155 # VARIABLE will be replaced by "DIR[ DIR]"
17156 func_munge_path_list ()
17157 {
17158 case x$2 in
17159 x)
17160 ;;
17161 *:)
17162 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17163 ;;
17164 x:*)
17165 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17166 ;;
17167 *::*)
17168 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17169 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17170 ;;
17171 *)
17172 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17173 ;;
17174 esac
17175 }
17176
17177
17178 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17179 func_cc_basename ()
17180 {
17181 for cc_temp in $*""; do
17182 case $cc_temp in
17183 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17184 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17185 \-*) ;;
17186 *) break;;
17187 esac
17188 done
17189 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17190 }
17191
17192
17193 # ### END FUNCTIONS SHARED WITH CONFIGURE
17194
17195 _LT_EOF
17196
17197 case $host_os in
17198 aix3*)
17199 cat <<\_LT_EOF >> "$cfgfile"
17200 # AIX sometimes has problems with the GCC collect2 program. For some
17201 # reason, if we set the COLLECT_NAMES environment variable, the problems
17202 # vanish in a puff of smoke.
17203 if test set != "${COLLECT_NAMES+set}"; then
17204 COLLECT_NAMES=
17205 export COLLECT_NAMES
17206 fi
17207 _LT_EOF
17208 ;;
17209 esac
17210
17211
17212
17213 ltmain=$ac_aux_dir/ltmain.sh
17214
17215
17216 # We use sed instead of cat because bash on DJGPP gets confused if
17217 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17218 # text mode, it properly converts lines to CR/LF. This bash problem
17219 # is reportedly fixed, but why not run on old versions too?
17220 $SED '$q' "$ltmain" >> "$cfgfile" \
17221 || (rm -f "$cfgfile"; exit 1)
17222
17223 mv -f "$cfgfile" "$ofile" ||
17224 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17225 chmod +x "$ofile"
17226
17227 ;;
17228
17229 esac
17230 done # for ac_tag
17231
17232
17233 as_fn_exit 0
17234 _ACEOF
17235 ac_clean_files=$ac_clean_files_save
17236
17237 test $ac_write_fail = 0 ||
17238 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17239
17240
17241 # configure is writing to config.log, and then calls config.status.
17242 # config.status does its own redirection, appending to config.log.
17243 # Unfortunately, on DOS this fails, as config.log is still kept open
17244 # by configure, so config.status won't be able to write to it; its
17245 # output is simply discarded. So we exec the FD to /dev/null,
17246 # effectively closing config.log, so it can be properly (re)opened and
17247 # appended to by config.status. When coming back to configure, we
17248 # need to make the FD available again.
17249 if test "$no_create" != yes; then
17250 ac_cs_success=:
17251 ac_config_status_args=
17252 test "$silent" = yes &&
17253 ac_config_status_args="$ac_config_status_args --quiet"
17254 exec 5>/dev/null
17255 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17256 exec 5>>config.log
17257 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17258 # would make configure fail if this is the last instruction.
17259 $ac_cs_success || as_fn_exit 1
17260 fi
17261 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17263 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17264 fi
17265
17266