Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for bluez 5.87.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 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 # contradicts POSIX and common usage. Disable this.
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 case $# in # ((
133 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
134 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
135 esac
136 # Admittedly, this is quite paranoid, since all the known shells bail
137 # out after a failed 'exec'.
138 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
139 exit 255
140 fi
141 # We don't want this to propagate to other subprocesses.
142 { _as_can_reexec=; unset _as_can_reexec;}
143 if test "x$CONFIG_SHELL" = x; then
144 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # contradicts POSIX and common usage. Disable this.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else case e in #(
153 e) case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac ;;
159 esac
160 fi
161 "
162 as_required="as_fn_return () { (exit \$1); }
163 as_fn_success () { as_fn_return 0; }
164 as_fn_failure () { as_fn_return 1; }
165 as_fn_ret_success () { return 0; }
166 as_fn_ret_failure () { return 1; }
167
168 exitcode=0
169 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
170 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
171 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
172 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
173 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 then :
175
176 else case e in #(
177 e) exitcode=1; echo positional parameters were not saved. ;;
178 esac
179 fi
180 test x\$exitcode = x0 || exit 1
181 blah=\$(echo \$(echo blah))
182 test x\"\$blah\" = xblah || exit 1
183 test -x / || exit 1"
184 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
185 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
186 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
187 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
196 test \$(( 1 + 1 )) = 2 || exit 1"
197 if (eval "$as_required") 2>/dev/null
198 then :
199 as_have_required=yes
200 else case e in #(
201 e) as_have_required=no ;;
202 esac
203 fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 then :
206
207 else case e in #(
208 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 case $as_dir in #(((
214 '') as_dir=./ ;;
215 */) ;;
216 *) as_dir=$as_dir/ ;;
217 esac
218 as_found=:
219 case $as_dir in #(
220 /*)
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
226 then :
227 CONFIG_SHELL=$as_shell as_have_required=yes
228 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
229 then :
230 break 2
231 fi
232 fi
233 done;;
234 esac
235 as_found=false
236 done
237 IFS=$as_save_IFS
238 if $as_found
239 then :
240
241 else case e in #(
242 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
244 then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi ;;
247 esac
248 fi
249
250
251 if test "x$CONFIG_SHELL" != x
252 then :
253 export CONFIG_SHELL
254 # We cannot yet assume a decent shell, so we have to provide a
255 # neutralization value for shells without unset; and this also
256 # works around shells that cannot unset nonexistent variables.
257 # Preserve -v and -x to the replacement shell.
258 BASH_ENV=/dev/null
259 ENV=/dev/null
260 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
261 case $- in # ((((
262 *v*x* | *x*v* ) as_opts=-vx ;;
263 *v* ) as_opts=-v ;;
264 *x* ) as_opts=-x ;;
265 * ) as_opts= ;;
266 esac
267 case $# in # ((
268 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
269 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
270 esac
271 # Admittedly, this is quite paranoid, since all the known shells bail
272 # out after a failed 'exec'.
273 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
274 exit 255
275 fi
276
277 if test x$as_have_required = xno
278 then :
279 printf '%s\n' "$0: This script requires a shell more modern than all"
280 printf '%s\n' "$0: the shells that I found on your system."
281 if test ${ZSH_VERSION+y} ; then
282 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should"
283 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later."
284 else
285 printf '%s\n' "$0: Please tell [email protected] about your system,
286 $0: including any error possibly output before this
287 $0: message. Then install a modern shell, or manually run
288 $0: the script under such a shell if you do have one."
289 fi
290 exit 1
291 fi ;;
292 esac
293 fi
294 fi
295 SHELL=${CONFIG_SHELL-/bin/sh}
296 export SHELL
297 # Unset more variables known to interfere with behavior of common tools.
298 CLICOLOR_FORCE= GREP_OPTIONS=
299 unset CLICOLOR_FORCE GREP_OPTIONS
300
301 ## --------------------- ##
302 ## M4sh Shell Functions. ##
303 ## --------------------- ##
304 # as_fn_unset VAR
305 # ---------------
306 # Portably unset VAR.
307 as_fn_unset ()
308 {
309 { eval $1=; unset $1;}
310 }
311 as_unset=as_fn_unset
312
313
314 # as_fn_set_status STATUS
315 # -----------------------
316 # Set $? to STATUS, without forking.
317 as_fn_set_status ()
318 {
319 return $1
320 } # as_fn_set_status
321
322 # as_fn_exit STATUS
323 # -----------------
324 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 as_fn_exit ()
326 {
327 set +e
328 as_fn_set_status $1
329 exit $1
330 } # as_fn_exit
331
332 # as_fn_mkdir_p
333 # -------------
334 # Create "$as_dir" as a directory, including parents if necessary.
335 as_fn_mkdir_p ()
336 {
337
338 case $as_dir in #(
339 -*) as_dir=./$as_dir;;
340 esac
341 test -d "$as_dir" || eval $as_mkdir_p || {
342 as_dirs=
343 while :; do
344 case $as_dir in #(
345 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
346 *) as_qdir=$as_dir;;
347 esac
348 as_dirs="'$as_qdir' $as_dirs"
349 as_dir=`$as_dirname -- "$as_dir" ||
350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
351 X"$as_dir" : 'X\(//\)[^/]' \| \
352 X"$as_dir" : 'X\(//\)$' \| \
353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
354 printf '%s\n' X"$as_dir" |
355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\/\)[^/].*/{
360 s//\1/
361 q
362 }
363 /^X\(\/\/\)$/{
364 s//\1/
365 q
366 }
367 /^X\(\/\).*/{
368 s//\1/
369 q
370 }
371 s/.*/./; q'`
372 test -d "$as_dir" && break
373 done
374 test -z "$as_dirs" || eval "mkdir $as_dirs"
375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
376
377
378 } # as_fn_mkdir_p
379
380 # as_fn_executable_p FILE
381 # -----------------------
382 # Test if FILE is an executable regular file.
383 as_fn_executable_p ()
384 {
385 test -f "$1" && test -x "$1"
386 } # as_fn_executable_p
387 # as_fn_append VAR VALUE
388 # ----------------------
389 # Append the text in VALUE to the end of the definition contained in VAR. Take
390 # advantage of any shell optimizations that allow amortized linear growth over
391 # repeated appends, instead of the typical quadratic growth present in naive
392 # implementations.
393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
394 then :
395 eval 'as_fn_append ()
396 {
397 eval $1+=\$2
398 }'
399 else case e in #(
400 e) as_fn_append ()
401 {
402 eval $1=\$$1\$2
403 } ;;
404 esac
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else case e in #(
419 e) as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 } ;;
423 esac
424 fi # as_fn_arith
425
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf '%s\n' "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf '%s\n' X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 t clear
500 :clear
501 s/[$]LINENO.*/&-/
502 t lineno
503 b
504 :lineno
505 N
506 :loop
507 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
508 t loop
509 s/-\n.*//
510 ' >$as_me.lineno &&
511 chmod +x "$as_me.lineno" ||
512 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
513
514 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
515 # already done that, so ensure we don't try to do so again and fall
516 # in an infinite loop. This has already happened in practice.
517 _as_can_reexec=no; export _as_can_reexec
518 # Don't try to exec as it changes $[0], causing all sort of problems
519 # (the dirname of $[0] is not the place where we might find the
520 # original and so on. Autoconf is especially sensitive to this).
521 . "./$as_me.lineno"
522 # Exit status is that of the last command.
523 exit
524 }
525
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529 else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532 fi
533 if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
539 # In both cases, we have to default to 'cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547 else
548 as_ln_s='cp -pR'
549 fi
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
552
553 if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555 else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558 fi
559
560 as_test_x='test -x'
561 as_executable_p=as_fn_executable_p
562
563 # Sed expression to map a string onto a valid CPP name.
564 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
565 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
566
567 # Sed expression to map a string onto a valid variable name.
568 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
569 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
570
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573
574 test -n "$DJDIR" || exec 7<&0 </dev/null
575 exec 6>&1
576
577 # Name of the host.
578 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
579 # so uname gets run too.
580 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582 #
583 # Initializations.
584 #
585 ac_default_prefix=/usr/local
586 ac_clean_CONFIG_STATUS=
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594
595 # Identity of this package.
596 PACKAGE_NAME='bluez'
597 PACKAGE_TARNAME='bluez'
598 PACKAGE_VERSION='5.87'
599 PACKAGE_STRING='bluez 5.87'
600 PACKAGE_BUGREPORT=''
601 PACKAGE_URL=''
602
603 ac_default_prefix=/usr/local
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stddef.h>
607 #ifdef HAVE_STDIO_H
608 # include <stdio.h>
609 #endif
610 #ifdef HAVE_STDLIB_H
611 # include <stdlib.h>
612 #endif
613 #ifdef HAVE_STRING_H
614 # include <string.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_SYS_TYPES_H
626 # include <sys/types.h>
627 #endif
628 #ifdef HAVE_SYS_STAT_H
629 # include <sys/stat.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_c_list=
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 PLUGIN_PHONEBOOK
641 LIBEDATESERVER_LIBS
642 LIBEDATESERVER_CFLAGS
643 LIBEBOOK_LIBS
644 LIBEBOOK_CFLAGS
645 MESH_STORAGEDIR
646 CONFIGDIR
647 PKGLIBEXECDIR
648 PKGBINDIR
649 ADMIN_FALSE
650 ADMIN_TRUE
651 LOGGER_FALSE
652 LOGGER_TRUE
653 HID2HCI_FALSE
654 HID2HCI_TRUE
655 SIXAXIS_FALSE
656 SIXAXIS_TRUE
657 EXTERNAL_PLUGINS_FALSE
658 EXTERNAL_PLUGINS_TRUE
659 DEPRECATED_FALSE
660 DEPRECATED_TRUE
661 EXPERIMENTAL_FALSE
662 EXPERIMENTAL_TRUE
663 TESTING_FALSE
664 TESTING_TRUE
665 RUN_RST2MAN_FALSE
666 RUN_RST2MAN_TRUE
667 MANPAGES_FALSE
668 MANPAGES_TRUE
669 RST2MAN
670 DATAFILES_FALSE
671 DATAFILES_TRUE
672 SYSTEMD_USERUNITDIR
673 SYSTEMD_SYSTEMUNITDIR
674 SYSTEMD_FALSE
675 SYSTEMD_TRUE
676 READLINE_FALSE
677 READLINE_TRUE
678 CLIENT_FALSE
679 CLIENT_TRUE
680 LIBSHARED_ELL_FALSE
681 LIBSHARED_ELL_TRUE
682 EXTERNAL_ELL_FALSE
683 EXTERNAL_ELL_TRUE
684 ELL_LIBS
685 ELL_CFLAGS
686 BTPCLIENT_FALSE
687 BTPCLIENT_TRUE
688 OBEX_FALSE
689 OBEX_TRUE
690 ICAL_LIBS
691 ICAL_CFLAGS
692 ALSA_LIBS
693 ALSA_CFLAGS
694 MIDI_FALSE
695 MIDI_TRUE
696 JSONC_LIBS
697 JSONC_CFLAGS
698 MESH_FALSE
699 MESH_TRUE
700 CUPS_SERVERBIN
701 CUPS_SERVERBIN_FALSE
702 CUPS_SERVERBIN_TRUE
703 CUPS_FALSE
704 CUPS_TRUE
705 UDEV_DIR
706 UDEV_LIBS
707 UDEV_CFLAGS
708 MONITOR_FALSE
709 MONITOR_TRUE
710 TOOLS_FALSE
711 TOOLS_TRUE
712 HFP_FALSE
713 HFP_TRUE
714 ASHA_FALSE
715 ASHA_TRUE
716 GMAP_FALSE
717 GMAP_TRUE
718 TMAP_FALSE
719 TMAP_TRUE
720 CSIP_FALSE
721 CSIP_TRUE
722 MICP_FALSE
723 MICP_TRUE
724 VCP_FALSE
725 VCP_TRUE
726 CCP_FALSE
727 CCP_TRUE
728 MCP_FALSE
729 MCP_TRUE
730 BASS_FALSE
731 BASS_TRUE
732 BAP_FALSE
733 BAP_TRUE
734 HOG_FALSE
735 HOG_TRUE
736 HID_FALSE
737 HID_TRUE
738 NETWORK_FALSE
739 NETWORK_TRUE
740 AVRCP_FALSE
741 AVRCP_TRUE
742 A2DP_FALSE
743 A2DP_TRUE
744 NFC_FALSE
745 NFC_TRUE
746 TEST_FALSE
747 TEST_TRUE
748 LIBRARY_FALSE
749 LIBRARY_TRUE
750 BACKTRACE_LIBS
751 BACKTRACE_CFLAGS
752 ZSH_COMPLETIONS_FALSE
753 ZSH_COMPLETIONS_TRUE
754 ZSH_COMPLETIONDIR
755 DBUS_SESSIONBUSDIR
756 DBUS_SYSTEMBUSDIR
757 DBUS_CONFDIR
758 DBUS_LIBS
759 DBUS_CFLAGS
760 GLIB_LIBS
761 GLIB_CFLAGS
762 VALGRIND_FALSE
763 VALGRIND_TRUE
764 MISC_LDFLAGS
765 MISC_CFLAGS
766 ASAN_LIB
767 DBUS_RUN_SESSION_FALSE
768 DBUS_RUN_SESSION_TRUE
769 COVERAGE_FALSE
770 COVERAGE_TRUE
771 enable_valgrind
772 enable_dbus_run_session
773 enable_coverage
774 LT_SYS_LIBRARY_PATH
775 OTOOL64
776 OTOOL
777 LIPO
778 NMEDIT
779 DSYMUTIL
780 MANIFEST_TOOL
781 RANLIB
782 ac_ct_AR
783 AR
784 DLLTOOL
785 OBJDUMP
786 FILECMD
787 LN_S
788 NM
789 ac_ct_DUMPBIN
790 DUMPBIN
791 LD
792 FGREP
793 EGREP
794 GREP
795 SED
796 host_os
797 host_vendor
798 host_cpu
799 host
800 build_os
801 build_vendor
802 build_cpu
803 build
804 LIBTOOL
805 am__fastdepCC_FALSE
806 am__fastdepCC_TRUE
807 CCDEPMODE
808 am__nodep
809 AMDEPBACKSLASH
810 AMDEP_FALSE
811 AMDEP_TRUE
812 am__include
813 DEPDIR
814 OBJEXT
815 EXEEXT
816 ac_ct_CC
817 CPPFLAGS
818 LDFLAGS
819 CFLAGS
820 CC
821 WARNING_CFLAGS
822 PKG_CONFIG_LIBDIR
823 PKG_CONFIG_PATH
824 PKG_CONFIG
825 MAINT
826 MAINTAINER_MODE_FALSE
827 MAINTAINER_MODE_TRUE
828 am__xargs_n
829 am__rm_f_notfound
830 AM_BACKSLASH
831 AM_DEFAULT_VERBOSITY
832 AM_DEFAULT_V
833 AM_V
834 CSCOPE
835 ETAGS
836 CTAGS
837 am__untar
838 am__tar
839 AMTAR
840 am__leading_dot
841 SET_MAKE
842 AWK
843 mkdir_p
844 MKDIR_P
845 INSTALL_STRIP_PROGRAM
846 STRIP
847 install_sh
848 MAKEINFO
849 AUTOHEADER
850 AUTOMAKE
851 AUTOCONF
852 ACLOCAL
853 VERSION
854 PACKAGE
855 CYGPATH_W
856 am__isrc
857 INSTALL_DATA
858 INSTALL_SCRIPT
859 INSTALL_PROGRAM
860 ECHO_T
861 ECHO_N
862 ECHO_C
863 target_alias
864 host_alias
865 build_alias
866 LIBS
867 DEFS
868 mandir
869 localedir
870 libdir
871 psdir
872 pdfdir
873 dvidir
874 htmldir
875 infodir
876 docdir
877 oldincludedir
878 includedir
879 runstatedir
880 localstatedir
881 sharedstatedir
882 sysconfdir
883 datadir
884 datarootdir
885 libexecdir
886 sbindir
887 bindir
888 program_transform_name
889 prefix
890 exec_prefix
891 PACKAGE_URL
892 PACKAGE_BUGREPORT
893 PACKAGE_STRING
894 PACKAGE_VERSION
895 PACKAGE_TARNAME
896 PACKAGE_NAME
897 PATH_SEPARATOR
898 SHELL
899 am__quote'
900 ac_subst_files=''
901 ac_user_opts='
902 enable_option_checking
903 enable_silent_rules
904 enable_maintainer_mode
905 enable_dependency_tracking
906 enable_static
907 enable_shared
908 enable_pic
909 with_pic
910 enable_fast_install
911 enable_aix_soname
912 with_aix_soname
913 with_gnu_ld
914 with_sysroot
915 enable_libtool_lock
916 enable_optimization
917 enable_asan
918 enable_lsan
919 enable_ubsan
920 enable_debug
921 enable_pie
922 enable_threads
923 with_dbusconfdir
924 with_dbussystembusdir
925 with_dbussessionbusdir
926 with_zsh_completion_dir
927 enable_backtrace
928 enable_library
929 enable_test
930 enable_nfc
931 enable_a2dp
932 enable_avrcp
933 enable_network
934 enable_hid
935 enable_hog
936 enable_bap
937 enable_bass
938 enable_mcp
939 enable_ccp
940 enable_vcp
941 enable_micp
942 enable_csip
943 enable_tmap
944 enable_gmap
945 enable_asha
946 enable_hfp
947 enable_tools
948 enable_monitor
949 enable_udev
950 with_udevdir
951 enable_cups
952 enable_mesh
953 enable_midi
954 enable_obex
955 enable_btpclient
956 enable_external_ell
957 enable_client
958 enable_systemd
959 with_systemdsystemunitdir
960 with_systemduserunitdir
961 enable_datafiles
962 enable_manpages
963 enable_testing
964 enable_experimental
965 enable_deprecated
966 enable_external_plugins
967 enable_sixaxis
968 enable_hid2hci
969 enable_logger
970 enable_admin
971 with_phonebook
972 '
973 ac_precious_vars='build_alias
974 host_alias
975 target_alias
976 PKG_CONFIG
977 PKG_CONFIG_PATH
978 PKG_CONFIG_LIBDIR
979 CC
980 CFLAGS
981 LDFLAGS
982 LIBS
983 CPPFLAGS
984 LT_SYS_LIBRARY_PATH
985 GLIB_CFLAGS
986 GLIB_LIBS
987 DBUS_CFLAGS
988 DBUS_LIBS
989 UDEV_CFLAGS
990 UDEV_LIBS
991 JSONC_CFLAGS
992 JSONC_LIBS
993 ALSA_CFLAGS
994 ALSA_LIBS
995 ICAL_CFLAGS
996 ICAL_LIBS
997 ELL_CFLAGS
998 ELL_LIBS
999 LIBEBOOK_CFLAGS
1000 LIBEBOOK_LIBS
1001 LIBEDATESERVER_CFLAGS
1002 LIBEDATESERVER_LIBS'
1003
1004
1005 # Initialize some variables set by options.
1006 ac_init_help=
1007 ac_init_version=false
1008 ac_unrecognized_opts=
1009 ac_unrecognized_sep=
1010 # The variables have the same names as the options, with
1011 # dashes changed to underlines.
1012 cache_file=/dev/null
1013 exec_prefix=NONE
1014 no_create=
1015 no_recursion=
1016 prefix=NONE
1017 program_prefix=NONE
1018 program_suffix=NONE
1019 program_transform_name=s,x,x,
1020 silent=
1021 site=
1022 srcdir=
1023 verbose=
1024 x_includes=NONE
1025 x_libraries=NONE
1026
1027 # Installation directory options.
1028 # These are left unexpanded so users can "make install exec_prefix=/foo"
1029 # and all the variables that are supposed to be based on exec_prefix
1030 # by default will actually change.
1031 # Use braces instead of parens because sh, perl, etc. also accept them.
1032 # (The list follows the same order as the GNU Coding Standards.)
1033 bindir='${exec_prefix}/bin'
1034 sbindir='${exec_prefix}/sbin'
1035 libexecdir='${exec_prefix}/libexec'
1036 datarootdir='${prefix}/share'
1037 datadir='${datarootdir}'
1038 sysconfdir='${prefix}/etc'
1039 sharedstatedir='${prefix}/com'
1040 localstatedir='${prefix}/var'
1041 runstatedir='${localstatedir}/run'
1042 includedir='${prefix}/include'
1043 oldincludedir='/usr/include'
1044 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1045 infodir='${datarootdir}/info'
1046 htmldir='${docdir}'
1047 dvidir='${docdir}'
1048 pdfdir='${docdir}'
1049 psdir='${docdir}'
1050 libdir='${exec_prefix}/lib'
1051 localedir='${datarootdir}/locale'
1052 mandir='${datarootdir}/man'
1053
1054 ac_prev=
1055 ac_dashdash=
1056 for ac_option
1057 do
1058 # If the previous option needs an argument, assign it.
1059 if test -n "$ac_prev"; then
1060 eval $ac_prev=\$ac_option
1061 ac_prev=
1062 continue
1063 fi
1064
1065 case $ac_option in
1066 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1067 *=) ac_optarg= ;;
1068 *) ac_optarg=yes ;;
1069 esac
1070
1071 case $ac_dashdash$ac_option in
1072 --)
1073 ac_dashdash=yes ;;
1074
1075 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1076 ac_prev=bindir ;;
1077 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1078 bindir=$ac_optarg ;;
1079
1080 -build | --build | --buil | --bui | --bu)
1081 ac_prev=build_alias ;;
1082 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1083 build_alias=$ac_optarg ;;
1084
1085 -cache-file | --cache-file | --cache-fil | --cache-fi \
1086 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1087 ac_prev=cache_file ;;
1088 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1089 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1090 cache_file=$ac_optarg ;;
1091
1092 --config-cache | -C)
1093 cache_file=config.cache ;;
1094
1095 -datadir | --datadir | --datadi | --datad)
1096 ac_prev=datadir ;;
1097 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1098 datadir=$ac_optarg ;;
1099
1100 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1101 | --dataroo | --dataro | --datar)
1102 ac_prev=datarootdir ;;
1103 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1104 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1105 datarootdir=$ac_optarg ;;
1106
1107 -disable-* | --disable-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error $? "invalid feature name: '$ac_useropt'"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1115 *"
1116 "enable_$ac_useropt"
1117 "*) ;;
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1120 esac
1121 eval enable_$ac_useropt=no ;;
1122
1123 -docdir | --docdir | --docdi | --doc | --do)
1124 ac_prev=docdir ;;
1125 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1126 docdir=$ac_optarg ;;
1127
1128 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1129 ac_prev=dvidir ;;
1130 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1131 dvidir=$ac_optarg ;;
1132
1133 -enable-* | --enable-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid feature name: '$ac_useropt'"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "enable_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval enable_$ac_useropt=\$ac_optarg ;;
1148
1149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1151 | --exec | --exe | --ex)
1152 ac_prev=exec_prefix ;;
1153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1155 | --exec=* | --exe=* | --ex=*)
1156 exec_prefix=$ac_optarg ;;
1157
1158 -gas | --gas | --ga | --g)
1159 # Obsolete; use --with-gas.
1160 with_gas=yes ;;
1161
1162 -help | --help | --hel | --he | -h)
1163 ac_init_help=long ;;
1164 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1165 ac_init_help=recursive ;;
1166 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1167 ac_init_help=short ;;
1168
1169 -host | --host | --hos | --ho)
1170 ac_prev=host_alias ;;
1171 -host=* | --host=* | --hos=* | --ho=*)
1172 host_alias=$ac_optarg ;;
1173
1174 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1175 ac_prev=htmldir ;;
1176 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1177 | --ht=*)
1178 htmldir=$ac_optarg ;;
1179
1180 -includedir | --includedir | --includedi | --included | --include \
1181 | --includ | --inclu | --incl | --inc)
1182 ac_prev=includedir ;;
1183 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1184 | --includ=* | --inclu=* | --incl=* | --inc=*)
1185 includedir=$ac_optarg ;;
1186
1187 -infodir | --infodir | --infodi | --infod | --info | --inf)
1188 ac_prev=infodir ;;
1189 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1190 infodir=$ac_optarg ;;
1191
1192 -libdir | --libdir | --libdi | --libd)
1193 ac_prev=libdir ;;
1194 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1195 libdir=$ac_optarg ;;
1196
1197 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1198 | --libexe | --libex | --libe)
1199 ac_prev=libexecdir ;;
1200 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1201 | --libexe=* | --libex=* | --libe=*)
1202 libexecdir=$ac_optarg ;;
1203
1204 -localedir | --localedir | --localedi | --localed | --locale)
1205 ac_prev=localedir ;;
1206 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1207 localedir=$ac_optarg ;;
1208
1209 -localstatedir | --localstatedir | --localstatedi | --localstated \
1210 | --localstate | --localstat | --localsta | --localst | --locals)
1211 ac_prev=localstatedir ;;
1212 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1213 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1214 localstatedir=$ac_optarg ;;
1215
1216 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1217 ac_prev=mandir ;;
1218 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1219 mandir=$ac_optarg ;;
1220
1221 -nfp | --nfp | --nf)
1222 # Obsolete; use --without-fp.
1223 with_fp=no ;;
1224
1225 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1226 | --no-cr | --no-c | -n)
1227 no_create=yes ;;
1228
1229 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1230 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1231 no_recursion=yes ;;
1232
1233 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1234 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1235 | --oldin | --oldi | --old | --ol | --o)
1236 ac_prev=oldincludedir ;;
1237 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1238 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1239 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1240 oldincludedir=$ac_optarg ;;
1241
1242 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1243 ac_prev=prefix ;;
1244 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1245 prefix=$ac_optarg ;;
1246
1247 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1248 | --program-pre | --program-pr | --program-p)
1249 ac_prev=program_prefix ;;
1250 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1251 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1252 program_prefix=$ac_optarg ;;
1253
1254 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1255 | --program-suf | --program-su | --program-s)
1256 ac_prev=program_suffix ;;
1257 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1258 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1259 program_suffix=$ac_optarg ;;
1260
1261 -program-transform-name | --program-transform-name \
1262 | --program-transform-nam | --program-transform-na \
1263 | --program-transform-n | --program-transform- \
1264 | --program-transform | --program-transfor \
1265 | --program-transfo | --program-transf \
1266 | --program-trans | --program-tran \
1267 | --progr-tra | --program-tr | --program-t)
1268 ac_prev=program_transform_name ;;
1269 -program-transform-name=* | --program-transform-name=* \
1270 | --program-transform-nam=* | --program-transform-na=* \
1271 | --program-transform-n=* | --program-transform-=* \
1272 | --program-transform=* | --program-transfor=* \
1273 | --program-transfo=* | --program-transf=* \
1274 | --program-trans=* | --program-tran=* \
1275 | --progr-tra=* | --program-tr=* | --program-t=*)
1276 program_transform_name=$ac_optarg ;;
1277
1278 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1279 ac_prev=pdfdir ;;
1280 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1281 pdfdir=$ac_optarg ;;
1282
1283 -psdir | --psdir | --psdi | --psd | --ps)
1284 ac_prev=psdir ;;
1285 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1286 psdir=$ac_optarg ;;
1287
1288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289 | -silent | --silent | --silen | --sile | --sil)
1290 silent=yes ;;
1291
1292 -runstatedir | --runstatedir | --runstatedi | --runstated \
1293 | --runstate | --runstat | --runsta | --runst | --runs \
1294 | --run | --ru | --r)
1295 ac_prev=runstatedir ;;
1296 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1297 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1298 | --run=* | --ru=* | --r=*)
1299 runstatedir=$ac_optarg ;;
1300
1301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1302 ac_prev=sbindir ;;
1303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1304 | --sbi=* | --sb=*)
1305 sbindir=$ac_optarg ;;
1306
1307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1309 | --sharedst | --shareds | --shared | --share | --shar \
1310 | --sha | --sh)
1311 ac_prev=sharedstatedir ;;
1312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1315 | --sha=* | --sh=*)
1316 sharedstatedir=$ac_optarg ;;
1317
1318 -site | --site | --sit)
1319 ac_prev=site ;;
1320 -site=* | --site=* | --sit=*)
1321 site=$ac_optarg ;;
1322
1323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1324 ac_prev=srcdir ;;
1325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1326 srcdir=$ac_optarg ;;
1327
1328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1329 | --syscon | --sysco | --sysc | --sys | --sy)
1330 ac_prev=sysconfdir ;;
1331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1333 sysconfdir=$ac_optarg ;;
1334
1335 -target | --target | --targe | --targ | --tar | --ta | --t)
1336 ac_prev=target_alias ;;
1337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1338 target_alias=$ac_optarg ;;
1339
1340 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1341 verbose=yes ;;
1342
1343 -version | --version | --versio | --versi | --vers | -V)
1344 ac_init_version=: ;;
1345
1346 -with-* | --with-*)
1347 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350 as_fn_error $? "invalid package name: '$ac_useropt'"
1351 ac_useropt_orig=$ac_useropt
1352 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1354 *"
1355 "with_$ac_useropt"
1356 "*) ;;
1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1358 ac_unrecognized_sep=', ';;
1359 esac
1360 eval with_$ac_useropt=\$ac_optarg ;;
1361
1362 -without-* | --without-*)
1363 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1364 # Reject names that are not valid shell variable names.
1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366 as_fn_error $? "invalid package name: '$ac_useropt'"
1367 ac_useropt_orig=$ac_useropt
1368 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1369 case $ac_user_opts in
1370 *"
1371 "with_$ac_useropt"
1372 "*) ;;
1373 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1374 ac_unrecognized_sep=', ';;
1375 esac
1376 eval with_$ac_useropt=no ;;
1377
1378 --x)
1379 # Obsolete; use --with-x.
1380 with_x=yes ;;
1381
1382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1383 | --x-incl | --x-inc | --x-in | --x-i)
1384 ac_prev=x_includes ;;
1385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1387 x_includes=$ac_optarg ;;
1388
1389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1391 ac_prev=x_libraries ;;
1392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1394 x_libraries=$ac_optarg ;;
1395
1396 -*) as_fn_error $? "unrecognized option: '$ac_option'
1397 Try '$0 --help' for more information"
1398 ;;
1399
1400 *=*)
1401 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1402 # Reject names that are not valid shell variable names.
1403 case $ac_envvar in #(
1404 '' | [0-9]* | *[!_$as_cr_alnum]* )
1405 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1406 esac
1407 eval $ac_envvar=\$ac_optarg
1408 export $ac_envvar ;;
1409
1410 *)
1411 # FIXME: should be removed in autoconf 3.0.
1412 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1413 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1414 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1415 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1416 ;;
1417
1418 esac
1419 done
1420
1421 if test -n "$ac_prev"; then
1422 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1423 as_fn_error $? "missing argument to $ac_option"
1424 fi
1425
1426 if test -n "$ac_unrecognized_opts"; then
1427 case $enable_option_checking in
1428 no) ;;
1429 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1430 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1431 esac
1432 fi
1433
1434 # Check all directory arguments for consistency.
1435 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1436 datadir sysconfdir sharedstatedir localstatedir includedir \
1437 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1438 libdir localedir mandir runstatedir
1439 do
1440 eval ac_val=\$$ac_var
1441 # Remove trailing slashes.
1442 case $ac_val in
1443 */ )
1444 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1445 eval $ac_var=\$ac_val;;
1446 esac
1447 # Be sure to have absolute directory names.
1448 case $ac_val in
1449 [\\/$]* | ?:[\\/]* ) continue;;
1450 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1451 esac
1452 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1453 done
1454
1455 # There might be people who depend on the old broken behavior: '$host'
1456 # used to hold the argument of --host etc.
1457 # FIXME: To remove some day.
1458 build=$build_alias
1459 host=$host_alias
1460 target=$target_alias
1461
1462 # FIXME: To remove some day.
1463 if test "x$host_alias" != x; then
1464 if test "x$build_alias" = x; then
1465 cross_compiling=maybe
1466 elif test "x$build_alias" != "x$host_alias"; then
1467 cross_compiling=yes
1468 fi
1469 fi
1470
1471 ac_tool_prefix=
1472 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1473
1474 test "$silent" = yes && exec 6>/dev/null
1475
1476
1477 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1478 ac_ls_di=`ls -di .` &&
1479 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1480 as_fn_error $? "working directory cannot be determined"
1481 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1482 as_fn_error $? "pwd does not report name of working directory"
1483
1484
1485 # Find the source files, if location was not specified.
1486 if test -z "$srcdir"; then
1487 ac_srcdir_defaulted=yes
1488 # Try the directory containing this script, then the parent directory.
1489 ac_confdir=`$as_dirname -- "$as_myself" ||
1490 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1491 X"$as_myself" : 'X\(//\)[^/]' \| \
1492 X"$as_myself" : 'X\(//\)$' \| \
1493 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1494 printf '%s\n' X"$as_myself" |
1495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1496 s//\1/
1497 q
1498 }
1499 /^X\(\/\/\)[^/].*/{
1500 s//\1/
1501 q
1502 }
1503 /^X\(\/\/\)$/{
1504 s//\1/
1505 q
1506 }
1507 /^X\(\/\).*/{
1508 s//\1/
1509 q
1510 }
1511 s/.*/./; q'`
1512 srcdir=$ac_confdir
1513 if test ! -r "$srcdir/$ac_unique_file"; then
1514 srcdir=..
1515 fi
1516 else
1517 ac_srcdir_defaulted=no
1518 fi
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1521 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1522 fi
1523 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1524 ac_abs_confdir=`(
1525 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1526 pwd)`
1527 # When building in place, set srcdir=.
1528 if test "$ac_abs_confdir" = "$ac_pwd"; then
1529 srcdir=.
1530 fi
1531 # Remove unnecessary trailing slashes from srcdir.
1532 # Double slashes in file names in object file debugging info
1533 # mess up M-x gdb in Emacs.
1534 case $srcdir in
1535 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1536 esac
1537 for ac_var in $ac_precious_vars; do
1538 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_env_${ac_var}_value=\$${ac_var}
1540 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1541 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1542 done
1543
1544 #
1545 # Report the --help message.
1546 #
1547 if test "$ac_init_help" = "long"; then
1548 # Omit some internal or obsolete options to make the list less imposing.
1549 # This message is too long to be a string in the A/UX 3.1 sh.
1550 cat <<_ACEOF
1551 'configure' configures bluez 5.87 to adapt to many kinds of systems.
1552
1553 Usage: $0 [OPTION]... [VAR=VALUE]...
1554
1555 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1556 VAR=VALUE. See below for descriptions of some of the useful variables.
1557
1558 Defaults for the options are specified in brackets.
1559
1560 Configuration:
1561 -h, --help display this help and exit
1562 --help=short display options specific to this package
1563 --help=recursive display the short help of all the included packages
1564 -V, --version display version information and exit
1565 -q, --quiet, --silent do not print 'checking ...' messages
1566 --cache-file=FILE cache test results in FILE [disabled]
1567 -C, --config-cache alias for '--cache-file=config.cache'
1568 -n, --no-create do not create output files
1569 --srcdir=DIR find the sources in DIR [configure dir or '..']
1570
1571 Installation directories:
1572 --prefix=PREFIX install architecture-independent files in PREFIX
1573 [$ac_default_prefix]
1574 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1575 [PREFIX]
1576
1577 By default, 'make install' will install all the files in
1578 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1579 an installation prefix other than '$ac_default_prefix' using '--prefix',
1580 for instance '--prefix=\$HOME'.
1581
1582 For better control, use the options below.
1583
1584 Fine tuning of the installation directories:
1585 --bindir=DIR user executables [EPREFIX/bin]
1586 --sbindir=DIR system admin executables [EPREFIX/sbin]
1587 --libexecdir=DIR program executables [EPREFIX/libexec]
1588 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1589 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1590 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1591 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1592 --libdir=DIR object code libraries [EPREFIX/lib]
1593 --includedir=DIR C header files [PREFIX/include]
1594 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1595 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1596 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1597 --infodir=DIR info documentation [DATAROOTDIR/info]
1598 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1599 --mandir=DIR man documentation [DATAROOTDIR/man]
1600 --docdir=DIR documentation root [DATAROOTDIR/doc/bluez]
1601 --htmldir=DIR html documentation [DOCDIR]
1602 --dvidir=DIR dvi documentation [DOCDIR]
1603 --pdfdir=DIR pdf documentation [DOCDIR]
1604 --psdir=DIR ps documentation [DOCDIR]
1605 _ACEOF
1606
1607 cat <<\_ACEOF
1608
1609 Program names:
1610 --program-prefix=PREFIX prepend PREFIX to installed program names
1611 --program-suffix=SUFFIX append SUFFIX to installed program names
1612 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1613
1614 System types:
1615 --build=BUILD configure for building on BUILD [guessed]
1616 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1617 _ACEOF
1618 fi
1619
1620 if test -n "$ac_init_help"; then
1621 case $ac_init_help in
1622 short | recursive ) echo "Configuration of bluez 5.87:";;
1623 esac
1624 cat <<\_ACEOF
1625
1626 Optional Features:
1627 --disable-option-checking ignore unrecognized --enable/--with options
1628 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1629 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1630 --enable-silent-rules less verbose build output (undo: "make V=1")
1631 --disable-silent-rules verbose build output (undo: "make V=0")
1632 --enable-maintainer-mode
1633 enable make rules and dependencies not useful (and
1634 sometimes confusing) to the casual installer
1635 --enable-dependency-tracking
1636 do not reject slow dependency extractors
1637 --disable-dependency-tracking
1638 speeds up one-time build
1639 --enable-static[=PKGS] build static libraries [default=no]
1640 --enable-shared[=PKGS] build shared libraries [default=yes]
1641 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1642 both]
1643 --enable-fast-install[=PKGS]
1644 optimize for fast installation [default=yes]
1645 --enable-aix-soname=aix|svr4|both
1646 shared library versioning (aka "SONAME") variant to
1647 provide on AIX, [default=aix].
1648 --disable-libtool-lock avoid locking (might break parallel builds)
1649 --disable-optimization disable code optimization through compiler
1650 --enable-asan enable linking with address sanitizer
1651 --enable-lsan enable linking with address sanitizer
1652 --enable-ubsan enable linking with address sanitizer
1653 --enable-debug enable compiling with debugging information
1654 --enable-pie enable position independent executables flag
1655 --enable-threads enable threading support
1656 --enable-backtrace compile backtrace support
1657 --enable-library install Bluetooth library
1658 --enable-test enable test/example scripts
1659 --enable-nfc enable NFC pairing
1660 --disable-a2dp disable A2DP profile
1661 --disable-avrcp disable AVRCP profile
1662 --disable-network disable network profiles
1663 --disable-hid disable HID profile
1664 --disable-hog disable HoG profile
1665 --disable-bap disable BAP profile
1666 --disable-bass disable BASS service
1667 --disable-mcp disable MCP profile
1668 --disable-ccp disable CCP profile
1669 --disable-vcp disable VCP profile
1670 --disable-micp disable MICP profile
1671 --disable-csip disable CSIP profile
1672 --disable-tmap disable TMAP profile
1673 --disable-gmap disable GMAP profile
1674 --disable-asha disable ASHA support
1675 --disable-hfp disable HFP support
1676 --disable-tools disable Bluetooth tools
1677 --disable-monitor disable Bluetooth monitor
1678 --disable-udev disable udev device support
1679 --disable-cups disable CUPS printer support
1680 --enable-mesh enable Mesh profile support
1681 --enable-midi enable MIDI support
1682 --disable-obex disable OBEX profile support
1683 --enable-btpclient enable BTP client
1684 --enable-external-ell enable external Embedded Linux library
1685 --disable-client disable command line client
1686 --disable-systemd disable systemd integration
1687 --disable-datafiles do not install configuration and data files
1688 --disable-manpages disable building of manual pages
1689 --enable-testing enable testing tools
1690 --enable-experimental enable experimental tools
1691 --enable-deprecated enable deprecated tools
1692 --enable-external-plugins
1693 enable support for external plugins
1694 --enable-sixaxis enable sixaxis plugin
1695 --enable-hid2hci enable hid2hci tool
1696 --enable-logger enable HCI logger service
1697 --enable-admin enable admin policy plugin
1698
1699 Optional Packages:
1700 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1701 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1702 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1703 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1704 compiler's sysroot if not specified).
1705 --with-dbusconfdir=DIR path to D-Bus configuration directory
1706 --with-dbussystembusdir=DIR
1707 path to D-Bus system bus services directory
1708 --with-dbussessionbusdir=DIR
1709 path to D-Bus session bus services directory
1710 --with-zsh-completion-dir=DIR
1711 path to install zsh completions
1712 --with-udevdir=DIR path to udev directory
1713 --with-systemdsystemunitdir=DIR
1714 path to systemd system unit directory
1715 --with-systemduserunitdir=DIR
1716 path to systemd user unit directory
1717 --with-phonebook=PLUGIN obexd phonebook plugin (default=dummy)
1718
1719 Some influential environment variables:
1720 PKG_CONFIG path to pkg-config utility
1721 PKG_CONFIG_PATH
1722 directories to add to pkg-config's search path
1723 PKG_CONFIG_LIBDIR
1724 path overriding pkg-config's built-in search path
1725 CC C compiler command
1726 CFLAGS C compiler flags
1727 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1728 nonstandard directory <lib dir>
1729 LIBS libraries to pass to the linker, e.g. -l<library>
1730 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1731 you have headers in a nonstandard directory <include dir>
1732 LT_SYS_LIBRARY_PATH
1733 User-defined run-time library search path.
1734 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1735 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1736 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1737 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1738 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1739 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1740 JSONC_CFLAGS
1741 C compiler flags for JSONC, overriding pkg-config
1742 JSONC_LIBS linker flags for JSONC, overriding pkg-config
1743 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1744 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1745 ICAL_CFLAGS C compiler flags for ICAL, overriding pkg-config
1746 ICAL_LIBS linker flags for ICAL, overriding pkg-config
1747 ELL_CFLAGS C compiler flags for ELL, overriding pkg-config
1748 ELL_LIBS linker flags for ELL, overriding pkg-config
1749 LIBEBOOK_CFLAGS
1750 C compiler flags for LIBEBOOK, overriding pkg-config
1751 LIBEBOOK_LIBS
1752 linker flags for LIBEBOOK, overriding pkg-config
1753 LIBEDATESERVER_CFLAGS
1754 C compiler flags for LIBEDATESERVER, overriding pkg-config
1755 LIBEDATESERVER_LIBS
1756 linker flags for LIBEDATESERVER, overriding pkg-config
1757
1758 Use these variables to override the choices made by 'configure' or to help
1759 it to find libraries and programs with nonstandard names/locations.
1760
1761 Report bugs to the package provider.
1762 _ACEOF
1763 ac_status=$?
1764 fi
1765
1766 if test "$ac_init_help" = "recursive"; then
1767 # If there are subdirs, report their specific --help.
1768 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1769 test -d "$ac_dir" ||
1770 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1771 continue
1772 ac_builddir=.
1773
1774 case "$ac_dir" in
1775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 *)
1777 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1778 # A ".." for each directory in $ac_dir_suffix.
1779 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1780 case $ac_top_builddir_sub in
1781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1783 esac ;;
1784 esac
1785 ac_abs_top_builddir=$ac_pwd
1786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1787 # for backward compatibility:
1788 ac_top_builddir=$ac_top_build_prefix
1789
1790 case $srcdir in
1791 .) # We are building in place.
1792 ac_srcdir=.
1793 ac_top_srcdir=$ac_top_builddir_sub
1794 ac_abs_top_srcdir=$ac_pwd ;;
1795 [\\/]* | ?:[\\/]* ) # Absolute name.
1796 ac_srcdir=$srcdir$ac_dir_suffix;
1797 ac_top_srcdir=$srcdir
1798 ac_abs_top_srcdir=$srcdir ;;
1799 *) # Relative name.
1800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1801 ac_top_srcdir=$ac_top_build_prefix$srcdir
1802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1803 esac
1804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1805
1806 cd "$ac_dir" || { ac_status=$?; continue; }
1807 # Check for configure.gnu first; this name is used for a wrapper for
1808 # Metaconfig's "Configure" on case-insensitive file systems.
1809 if test -f "$ac_srcdir/configure.gnu"; then
1810 echo &&
1811 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1812 elif test -f "$ac_srcdir/configure"; then
1813 echo &&
1814 $SHELL "$ac_srcdir/configure" --help=recursive
1815 else
1816 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1817 fi || ac_status=$?
1818 cd "$ac_pwd" || { ac_status=$?; break; }
1819 done
1820 fi
1821
1822 test -n "$ac_init_help" && exit $ac_status
1823 if $ac_init_version; then
1824 cat <<\_ACEOF
1825 bluez configure 5.87
1826 generated by GNU Autoconf 2.73
1827
1828 Copyright (C) 2026 Free Software Foundation, Inc.
1829 This configure script is free software; the Free Software Foundation
1830 gives unlimited permission to copy, distribute and modify it.
1831 _ACEOF
1832 exit
1833 fi
1834
1835 ## ------------------------ ##
1836 ## Autoconf initialization. ##
1837 ## ------------------------ ##
1838
1839 # ac_fn_c_try_compile LINENO
1840 # --------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_c_try_compile ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext conftest.beam
1846 if { { ac_try="$ac_compile"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 printf '%s\n' "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1859 fi
1860 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.$ac_objext
1865 then :
1866 ac_retval=0
1867 else case e in #(
1868 e) printf '%s\n' "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=1 ;;
1872 esac
1873 fi
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1876
1877 } # ac_fn_c_try_compile
1878
1879 # ac_fn_c_try_link LINENO
1880 # -----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_c_try_link ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 printf '%s\n' "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1907 }
1908 then :
1909 ac_retval=0
1910 else case e in #(
1911 e) printf '%s\n' "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 ac_retval=1 ;;
1915 esac
1916 fi
1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919 # interfere with the next link command; also delete a directory that is
1920 # left behind by Apple's compiler. We do this before executing the actions.
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1924
1925 } # ac_fn_c_try_link
1926
1927 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1928 # -------------------------------------------------------
1929 # Tests whether HEADER exists and can be compiled using the include files in
1930 # INCLUDES, setting the cache variable VAR accordingly.
1931 ac_fn_c_check_header_compile ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 printf %s "checking for $2... " >&6; }
1936 if eval test \${$3+y}
1937 then :
1938 printf %s "(cached) " >&6
1939 else case e in #(
1940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 $4
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"
1946 then :
1947 eval "$3=yes"
1948 else case e in #(
1949 e) eval "$3=no" ;;
1950 esac
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1953 esac
1954 fi
1955 eval ac_res=\$$3
1956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 printf '%s\n' "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959
1960 } # ac_fn_c_check_header_compile
1961
1962 # ac_fn_c_check_func LINENO FUNC VAR
1963 # ----------------------------------
1964 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1965 ac_fn_c_check_func ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 printf %s "checking for $2... " >&6; }
1970 if eval test \${$3+y}
1971 then :
1972 printf %s "(cached) " >&6
1973 else case e in #(
1974 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1978 #define $2 innocuous_$2
1979
1980 /* System header to define __stub macros and hopefully few prototypes,
1981 which can conflict with char $2 (void); below. */
1982
1983 #include <limits.h>
1984 #undef $2
1985
1986 /* Override any GCC internal prototype to avoid an error.
1987 Use char because int might match the return type of a GCC
1988 builtin and then its argument prototype would still apply. */
1989 #ifdef __cplusplus
1990 extern "C"
1991 #endif
1992 char $2 (void);
1993 /* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996 #if defined __stub_$2 || defined __stub___$2
1997 choke me
1998 #endif
1999
2000 int
2001 main (void)
2002 {
2003 return $2 ();
2004 ;
2005 return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_link "$LINENO"
2009 then :
2010 eval "$3=yes"
2011 else case e in #(
2012 e) eval "$3=no" ;;
2013 esac
2014 fi
2015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2016 conftest$ac_exeext conftest.$ac_ext ;;
2017 esac
2018 fi
2019 eval ac_res=\$$3
2020 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 printf '%s\n' "$ac_res" >&6; }
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023
2024 } # ac_fn_c_check_func
2025
2026 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2027 # ------------------------------------------------------------------
2028 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2029 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2030 ac_fn_check_decl ()
2031 {
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 as_decl_name=`echo $2|sed 's/ *(.*//'`
2034 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2035 printf %s "checking whether $as_decl_name is declared... " >&6; }
2036 if eval test \${$3+y}
2037 then :
2038 printf %s "(cached) " >&6
2039 else case e in #(
2040 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2041 eval ac_save_FLAGS=\$$6
2042 as_fn_append $6 " $5"
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2045 $4
2046 int
2047 main (void)
2048 {
2049 #ifndef $as_decl_name
2050 #ifdef __cplusplus
2051 (void) $as_decl_use;
2052 #else
2053 (void) $as_decl_name;
2054 #endif
2055 #endif
2056
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"
2062 then :
2063 eval "$3=yes"
2064 else case e in #(
2065 e) eval "$3=no" ;;
2066 esac
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2069 eval $6=\$ac_save_FLAGS
2070 ;;
2071 esac
2072 fi
2073 eval ac_res=\$$3
2074 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 printf '%s\n' "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078 } # ac_fn_check_decl
2079 ac_configure_args_raw=
2080 for ac_arg
2081 do
2082 case $ac_arg in
2083 *\'*)
2084 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2085 esac
2086 as_fn_append ac_configure_args_raw " '$ac_arg'"
2087 done
2088
2089 case $ac_configure_args_raw in
2090 *$as_nl*)
2091 ac_safe_unquote= ;;
2092 *)
2093 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2094 ac_unsafe_a="$ac_unsafe_z#~"
2095 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2096 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2097 esac
2098
2099 cat >config.log <<_ACEOF
2100 This file contains any messages produced by compilers while
2101 running configure, to aid debugging if configure makes a mistake.
2102
2103 It was created by bluez $as_me 5.87, which was
2104 generated by GNU Autoconf 2.73. Invocation command line was
2105
2106 $ $0$ac_configure_args_raw
2107
2108 _ACEOF
2109 exec 5>>config.log
2110 {
2111 cat <<_ASUNAME
2112 ## --------- ##
2113 ## Platform. ##
2114 ## --------- ##
2115
2116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121
2122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124
2125 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2126 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2129 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2130 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2131 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132
2133 _ASUNAME
2134
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138 IFS=$as_save_IFS
2139 case $as_dir in #(((
2140 '') as_dir=./ ;;
2141 */) ;;
2142 *) as_dir=$as_dir/ ;;
2143 esac
2144 printf '%s\n' "PATH: $as_dir"
2145 done
2146 IFS=$as_save_IFS
2147
2148 } >&5
2149
2150 cat >&5 <<_ACEOF
2151
2152
2153 ## ----------- ##
2154 ## Core tests. ##
2155 ## ----------- ##
2156
2157 _ACEOF
2158
2159
2160 # Keep a trace of the command line.
2161 # Strip out --no-create and --no-recursion so they do not pile up.
2162 # Strip out --silent because we don't want to record it for future runs.
2163 # Also quote any args containing shell meta-characters.
2164 # Make two passes to allow for proper duplicate-argument suppression.
2165 ac_configure_args=
2166 ac_configure_args0=
2167 ac_configure_args1=
2168 ac_must_keep_next=false
2169 for ac_pass in 1 2
2170 do
2171 for ac_arg
2172 do
2173 case $ac_arg in
2174 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2176 | -silent | --silent | --silen | --sile | --sil)
2177 continue ;;
2178 *\'*)
2179 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2180 esac
2181 case $ac_pass in
2182 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2183 2)
2184 as_fn_append ac_configure_args1 " '$ac_arg'"
2185 if test $ac_must_keep_next = true; then
2186 ac_must_keep_next=false # Got value, back to normal.
2187 else
2188 case $ac_arg in
2189 *=* | --config-cache | -C | -disable-* | --disable-* \
2190 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2191 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2192 | -with-* | --with-* | -without-* | --without-* | --x)
2193 case "$ac_configure_args0 " in
2194 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2195 esac
2196 ;;
2197 -* ) ac_must_keep_next=true ;;
2198 esac
2199 fi
2200 as_fn_append ac_configure_args " '$ac_arg'"
2201 ;;
2202 esac
2203 done
2204 done
2205 { ac_configure_args0=; unset ac_configure_args0;}
2206 { ac_configure_args1=; unset ac_configure_args1;}
2207
2208 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
2209 ac_cache_dump ()
2210 {
2211 # The following way of writing the cache mishandles newlines in values,
2212 # but we know of no workaround that is simple, portable, and efficient.
2213 # So, we kill variables containing newlines.
2214 # Ultrix sh set writes to stderr and can't be redirected directly,
2215 # and sets the high bit in the cache file unless we assign to the vars.
2216 (
2217 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2218 eval ac_val=\$$ac_var
2219 case $ac_val in #(
2220 *${as_nl}*)
2221 case $ac_var in #(
2222 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2223 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2224 esac
2225 case $ac_var in #(
2226 _ | IFS | as_nl) ;; #(
2227 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2228 *) { eval $ac_var=; unset $ac_var;} ;;
2229 esac ;;
2230 esac
2231 done
2232
2233 (set) 2>&1 |
2234 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2235 *${as_nl}ac_space=\ *)
2236 # 'set' does not quote correctly, so add quotes: double-quote
2237 # substitution turns \\\\ into \\, and sed turns \\ into \.
2238 sed -n \
2239 "s/'/'\\\\''/g;
2240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2241 ;; #(
2242 *)
2243 # 'set' quotes correctly as required by POSIX, so do not add quotes.
2244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2245 ;;
2246 esac |
2247 sort
2248 )
2249 }
2250
2251 # Print debugging info to stdout.
2252 ac_dump_debugging_info ()
2253 {
2254 echo
2255
2256 printf '%s\n' "## ---------------- ##
2257 ## Cache variables. ##
2258 ## ---------------- ##"
2259 echo
2260 ac_cache_dump
2261 echo
2262
2263 printf '%s\n' "## ----------------- ##
2264 ## Output variables. ##
2265 ## ----------------- ##"
2266 echo
2267 for ac_var in $ac_subst_vars
2268 do
2269 eval ac_val=\$$ac_var
2270 case $ac_val in
2271 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2272 esac
2273 printf '%s\n' "$ac_var='$ac_val'"
2274 done | sort
2275 echo
2276
2277 if test -n "$ac_subst_files"; then
2278 printf '%s\n' "## ------------------- ##
2279 ## File substitutions. ##
2280 ## ------------------- ##"
2281 echo
2282 for ac_var in $ac_subst_files
2283 do
2284 eval ac_val=\$$ac_var
2285 case $ac_val in
2286 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2287 esac
2288 printf '%s\n' "$ac_var='$ac_val'"
2289 done | sort
2290 echo
2291 fi
2292
2293 if test -s confdefs.h; then
2294 printf '%s\n' "## ----------- ##
2295 ## confdefs.h. ##
2296 ## ----------- ##"
2297 echo
2298 cat confdefs.h
2299 echo
2300 fi
2301 test "$ac_signal" != 0 &&
2302 printf '%s\n' "$as_me: caught signal $ac_signal"
2303 printf '%s\n' "$as_me: exit $exit_status"
2304 }
2305
2306 # When interrupted or exit'd, cleanup temporary files, and complete
2307 # config.log.
2308 ac_exit_trap ()
2309 {
2310 exit_status=
2311 # Sanitize IFS.
2312 IFS=" "" $as_nl"
2313 # Save into config.log some information that might help in debugging.
2314 ac_dump_debugging_info >&5
2315 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
2316 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2317 exit $exit_status
2318 }
2319
2320 trap 'ac_exit_trap $?' 0
2321 for ac_signal in 1 2 13 15; do
2322 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2323 done
2324 ac_signal=0
2325
2326 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2327 rm -f -r conftest* confdefs.h
2328
2329 printf '%s\n' "/* confdefs.h */" > confdefs.h
2330
2331 # Predefined preprocessor variables.
2332
2333 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2334
2335 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2336
2337 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2338
2339 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2340
2341 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2342
2343 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2344
2345
2346 # Let the site file select an alternate cache file if it wants to.
2347 # Prefer an explicitly selected file to automatically selected ones.
2348 if test -n "$CONFIG_SITE"; then
2349 ac_site_files="$CONFIG_SITE"
2350 elif test "x$prefix" != xNONE; then
2351 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2352 else
2353 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2354 fi
2355
2356 for ac_site_file in $ac_site_files
2357 do
2358 case $ac_site_file in #(
2359 */*) :
2360 ;; #(
2361 *) :
2362 ac_site_file=./$ac_site_file ;;
2363 esac
2364 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2365 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2366 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
2367 sed 's/^/| /' "$ac_site_file" >&5
2368 . "$ac_site_file" \
2369 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2370 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2371 as_fn_error $? "failed to load site script $ac_site_file
2372 See 'config.log' for more details" "$LINENO" 5; }
2373 fi
2374 done
2375
2376 if test -r "$cache_file"; then
2377 # Some versions of bash will fail to source /dev/null (special files
2378 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2379 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2380 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2381 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
2382 case $cache_file in
2383 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2384 *) . "./$cache_file";;
2385 esac
2386 fi
2387 else
2388 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2389 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2390 >$cache_file
2391 fi
2392
2393 # Test code for whether the C compiler supports C23 (global declarations)
2394 ac_c_conftest_c23_globals='
2395 /* Does the compiler advertise conformance to C17 or earlier?
2396 Although GCC 14 does not do that, even with -std=gnu23,
2397 it is close enough, and defines __STDC_VERSION == 202000L. */
2398 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2399 # error "Compiler advertises conformance to C17 or earlier"
2400 #endif
2401
2402 // Check alignas.
2403 char alignas (double) c23_aligned_as_double;
2404 char alignas (0) c23_no_special_alignment;
2405 extern char c23_aligned_as_int;
2406 char alignas (0) alignas (int) c23_aligned_as_int;
2407
2408 // Check alignof.
2409 enum
2410 {
2411 c23_int_alignment = alignof (int),
2412 c23_int_array_alignment = alignof (int[100]),
2413 c23_char_alignment = alignof (char)
2414 };
2415 static_assert (0 < -alignof (int), "alignof is signed");
2416
2417 int function_with_unnamed_parameter (int) { return 0; }
2418
2419 void c23_noreturn ();
2420
2421 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2422 The parens pacify GCC 15. */
2423 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2424
2425 bool check_that_bool_works = true | false | !nullptr;
2426 #if !true
2427 # error "true does not work in #if"
2428 #endif
2429 #if false
2430 #elifdef __STDC_VERSION__
2431 #else
2432 # error "#elifdef does not work"
2433 #endif
2434
2435 #ifndef __has_c_attribute
2436 # error "__has_c_attribute not defined"
2437 #endif
2438
2439 #ifndef __has_include
2440 # error "__has_include not defined"
2441 #endif
2442
2443 #define LPAREN() (
2444 #define FORTY_TWO(x) 42
2445 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2446 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2447
2448 static_assert (0b101010 == 42);
2449 static_assert (0B101010 == 42);
2450 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2451 static_assert (0.500'\''000'\''000 == 0.5);
2452
2453 enum unsignedish : unsigned int { uione = 1 };
2454 static_assert (0 < -uione);
2455
2456 #include <stddef.h>
2457 constexpr nullptr_t null_pointer = nullptr;
2458
2459 static typeof (1 + 1L) two () { return 2; }
2460 static long int three () { return 3; }
2461 '
2462
2463 # Test code for whether the C compiler supports C23 (body of main).
2464 ac_c_conftest_c23_main='
2465 {
2466 label_before_declaration:
2467 int arr[10] = {};
2468 if (arr[0])
2469 goto label_before_declaration;
2470 if (!arr[0])
2471 goto label_at_end_of_block;
2472 label_at_end_of_block:
2473 }
2474 ok |= !null_pointer;
2475 ok |= two != three;
2476 '
2477
2478 # Test code for whether the C compiler supports C23 (complete).
2479 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2480
2481 int
2482 main (int, char **)
2483 {
2484 int ok = 0;
2485 ${ac_c_conftest_c23_main}
2486 return ok;
2487 }
2488 "
2489
2490 # Test code for whether the C compiler supports C89 (global declarations)
2491 ac_c_conftest_c89_globals='
2492 /* Do not test the value of __STDC__, because some compilers define it to 0
2493 or do not define it, while otherwise adequately conforming. */
2494
2495 #include <stddef.h>
2496 #include <stdarg.h>
2497 struct stat;
2498 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2499 struct buf { int x; };
2500 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2501 static char *e (char **p, int i)
2502 {
2503 return p[i];
2504 }
2505 static char *f (char * (*g) (char **, int), char **p, ...)
2506 {
2507 char *s;
2508 va_list v;
2509 va_start (v,p);
2510 s = g (p, va_arg (v,int));
2511 va_end (v);
2512 return s;
2513 }
2514
2515 /* C89 style stringification. */
2516 #define noexpand_stringify(a) #a
2517 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2518
2519 /* C89 style token pasting. Exercises some of the corner cases that
2520 e.g. old MSVC gets wrong, but not very hard. */
2521 #define noexpand_concat(a,b) a##b
2522 #define expand_concat(a,b) noexpand_concat(a,b)
2523 extern int vA;
2524 extern int vbee;
2525 #define aye A
2526 #define bee B
2527 int *pvA = &expand_concat(v,aye);
2528 int *pvbee = &noexpand_concat(v,bee);
2529
2530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2531 function prototypes and stuff, but not \xHH hex character constants.
2532 These do not provoke an error unfortunately, instead are silently treated
2533 as an "x". The following induces an error, until -std is added to get
2534 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2535 array size at least. It is necessary to write \x00 == 0 to get something
2536 that is true only with -std. */
2537 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2538
2539 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2540 inside strings and character constants. */
2541 #define FOO(x) '\''x'\''
2542 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2543
2544 int test (int i, double x);
2545 struct s1 {int (*f) (int a);};
2546 struct s2 {int (*f) (double a);};
2547 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2548 int, int);'
2549
2550 # Test code for whether the C compiler supports C89 (body of main).
2551 ac_c_conftest_c89_main='
2552 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2553 '
2554
2555 # Test code for whether the C compiler supports C99 (global declarations)
2556 ac_c_conftest_c99_globals='
2557 /* Does the compiler advertise C99 conformance? */
2558 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2559 # error "Compiler does not advertise C99 conformance"
2560 #endif
2561
2562 // See if C++-style comments work.
2563
2564 #include <stdbool.h>
2565 extern int puts (const char *);
2566 extern int printf (const char *, ...);
2567 extern int dprintf (int, const char *, ...);
2568 extern void *malloc (size_t);
2569 extern void free (void *);
2570
2571 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2572 // dprintf is used instead of fprintf to avoid needing to declare
2573 // FILE and stderr, and "aND" is used instead of "and" to work around
2574 // GCC bug 40564 which is irrelevant here.
2575 #define debug(...) dprintf (2, __VA_ARGS__)
2576 #define showlist(...) puts (#__VA_ARGS__)
2577 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2578 static void
2579 test_varargs_macros (void)
2580 {
2581 int x = 1234;
2582 int y = 5678;
2583 debug ("Flag");
2584 debug ("X = %d\n", x);
2585 showlist (The first, second, aND third items.);
2586 report (x>y, "x is %d but y is %d", x, y);
2587 }
2588
2589 // Check long long types.
2590 #define BIG64 18446744073709551615ull
2591 #define BIG32 4294967295ul
2592 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2593 #if !BIG_OK
2594 #error "your preprocessor is broken"
2595 #endif
2596 #if BIG_OK
2597 #else
2598 #error "your preprocessor is broken"
2599 #endif
2600 static long long int bignum = -9223372036854775807LL;
2601 static unsigned long long int ubignum = BIG64;
2602
2603 struct incomplete_array
2604 {
2605 int datasize;
2606 double data[];
2607 };
2608
2609 struct named_init {
2610 int number;
2611 const wchar_t *name;
2612 double average;
2613 };
2614
2615 typedef const char *ccp;
2616
2617 static inline int
2618 test_restrict (ccp restrict text)
2619 {
2620 // Iterate through items via the restricted pointer.
2621 // Also check for declarations in for loops.
2622 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2623 continue;
2624 return 0;
2625 }
2626
2627 // Check varargs and va_copy.
2628 static bool
2629 test_varargs (const char *format, ...)
2630 {
2631 va_list args;
2632 va_start (args, format);
2633 va_list args_copy;
2634 va_copy (args_copy, args);
2635
2636 const char *str = "";
2637 int number = 0;
2638 float fnumber = 0;
2639
2640 while (*format)
2641 {
2642 switch (*format++)
2643 {
2644 case '\''s'\'': // string
2645 str = va_arg (args_copy, const char *);
2646 break;
2647 case '\''d'\'': // int
2648 number = va_arg (args_copy, int);
2649 break;
2650 case '\''f'\'': // float
2651 fnumber = va_arg (args_copy, double);
2652 break;
2653 default:
2654 break;
2655 }
2656 }
2657 va_end (args_copy);
2658 va_end (args);
2659
2660 return *str && number && fnumber;
2661 }
2662 '
2663
2664 # Test code for whether the C compiler supports C99 (body of main).
2665 ac_c_conftest_c99_main='
2666 // Check bool.
2667 _Bool success = false;
2668 success |= (argc != 0);
2669
2670 // Check restrict.
2671 if (test_restrict ("String literal") == 0)
2672 success = true;
2673 const char *restrict newvar = "Another string";
2674
2675 // Check varargs.
2676 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2677 test_varargs_macros ();
2678
2679 // Check flexible array members.
2680 static struct incomplete_array *volatile incomplete_array_pointer;
2681 struct incomplete_array *ia = incomplete_array_pointer;
2682 ia->datasize = 10;
2683 for (int i = 0; i < ia->datasize; ++i)
2684 ia->data[i] = i * 1.234;
2685 // Work around memory leak warnings.
2686 free (ia);
2687
2688 // Check named initializers.
2689 struct named_init ni = {
2690 .number = 34,
2691 .name = L"Test wide string",
2692 .average = 543.34343,
2693 };
2694
2695 ni.number = 58;
2696
2697 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2698 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2699
2700 // work around unused variable warnings
2701 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2702 || ni.number != 58);
2703 '
2704
2705 # Test code for whether the C compiler supports C11 (global declarations)
2706 ac_c_conftest_c11_globals='
2707 /* Does the compiler advertise C11 conformance? */
2708 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2709 # error "Compiler does not advertise C11 conformance"
2710 #endif
2711
2712 // Check _Alignas.
2713 char _Alignas (double) aligned_as_double;
2714 char _Alignas (0) no_special_alignment;
2715 extern char aligned_as_int;
2716 char _Alignas (0) _Alignas (int) aligned_as_int;
2717
2718 // Check _Alignof.
2719 enum
2720 {
2721 int_alignment = _Alignof (int),
2722 int_array_alignment = _Alignof (int[100]),
2723 char_alignment = _Alignof (char)
2724 };
2725 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2726
2727 // Check _Noreturn.
2728 int _Noreturn does_not_return (void) { for (;;) continue; }
2729
2730 // Check _Static_assert.
2731 struct test_static_assert
2732 {
2733 int x;
2734 _Static_assert (sizeof (int) <= sizeof (long int),
2735 "_Static_assert does not work in struct");
2736 long int y;
2737 };
2738
2739 // Check UTF-8 literals.
2740 #define u8 syntax error!
2741 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2742
2743 // Check duplicate typedefs.
2744 typedef long *long_ptr;
2745 typedef long int *long_ptr;
2746 typedef long_ptr long_ptr;
2747
2748 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2749 struct anonymous
2750 {
2751 union {
2752 struct { int i; int j; };
2753 struct { int k; long int l; } w;
2754 };
2755 int m;
2756 } v1;
2757 '
2758
2759 # Test code for whether the C compiler supports C11 (body of main).
2760 ac_c_conftest_c11_main='
2761 _Static_assert ((offsetof (struct anonymous, i)
2762 == offsetof (struct anonymous, w.k)),
2763 "Anonymous union alignment botch");
2764 v1.i = 2;
2765 v1.w.k = 5;
2766 ok |= v1.i != 5;
2767 '
2768
2769 # Test code for whether the C compiler supports C11 (complete).
2770 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2771 ${ac_c_conftest_c99_globals}
2772 ${ac_c_conftest_c11_globals}
2773
2774 int
2775 main (int argc, char **argv)
2776 {
2777 int ok = 0;
2778 ${ac_c_conftest_c89_main}
2779 ${ac_c_conftest_c99_main}
2780 ${ac_c_conftest_c11_main}
2781 return ok;
2782 }
2783 "
2784
2785 # Test code for whether the C compiler supports C99 (complete).
2786 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2787 ${ac_c_conftest_c99_globals}
2788
2789 int
2790 main (int argc, char **argv)
2791 {
2792 int ok = 0;
2793 ${ac_c_conftest_c89_main}
2794 ${ac_c_conftest_c99_main}
2795 return ok;
2796 }
2797 "
2798
2799 # Test code for whether the C compiler supports C89 (complete).
2800 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2801
2802 int
2803 main (int argc, char **argv)
2804 {
2805 int ok = 0;
2806 ${ac_c_conftest_c89_main}
2807 return ok;
2808 }
2809 "
2810
2811 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2812 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2813 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2814 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2815 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2816 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2817 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2818 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2819 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2820
2821 # Auxiliary files required by this configure script.
2822 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2823
2824 # Locations in which to look for auxiliary files.
2825 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2826
2827 # Search for a directory containing all of the required auxiliary files,
2828 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2829 # If we don't find one directory that contains all the files we need,
2830 # we report the set of missing files from the *first* directory in
2831 # $ac_aux_dir_candidates and give up.
2832 ac_missing_aux_files=""
2833 ac_first_candidate=:
2834 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 as_found=false
2837 for as_dir in $ac_aux_dir_candidates
2838 do
2839 IFS=$as_save_IFS
2840 case $as_dir in #(((
2841 '') as_dir=./ ;;
2842 */) ;;
2843 *) as_dir=$as_dir/ ;;
2844 esac
2845 as_found=:
2846
2847 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2848 ac_aux_dir_found=yes
2849 ac_install_sh=
2850 for ac_aux in $ac_aux_files
2851 do
2852 # As a special case, if "install-sh" is required, that requirement
2853 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2854 # and $ac_install_sh is set appropriately for whichever one is found.
2855 if test x"$ac_aux" = x"install-sh"
2856 then
2857 if test -f "${as_dir}install-sh"; then
2858 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2859 ac_install_sh="${as_dir}install-sh -c"
2860 elif test -f "${as_dir}install.sh"; then
2861 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2862 ac_install_sh="${as_dir}install.sh -c"
2863 elif test -f "${as_dir}shtool"; then
2864 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2865 ac_install_sh="${as_dir}shtool install -c"
2866 else
2867 ac_aux_dir_found=no
2868 if $ac_first_candidate; then
2869 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2870 else
2871 break
2872 fi
2873 fi
2874 else
2875 if test -f "${as_dir}${ac_aux}"; then
2876 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2877 else
2878 ac_aux_dir_found=no
2879 if $ac_first_candidate; then
2880 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2881 else
2882 break
2883 fi
2884 fi
2885 fi
2886 done
2887 if test "$ac_aux_dir_found" = yes; then
2888 ac_aux_dir="$as_dir"
2889 break
2890 fi
2891 ac_first_candidate=false
2892
2893 as_found=false
2894 done
2895 IFS=$as_save_IFS
2896 if $as_found
2897 then :
2898
2899 else case e in #(
2900 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2901 esac
2902 fi
2903
2904
2905 # These three variables are undocumented and unsupported,
2906 # and are intended to be withdrawn in a future Autoconf release.
2907 # They can cause serious problems if a builder's source tree is in a directory
2908 # whose full name contains unusual characters.
2909 if test -f "${ac_aux_dir}config.guess"; then
2910 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2911 fi
2912 if test -f "${ac_aux_dir}config.sub"; then
2913 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2914 fi
2915 if test -f "$ac_aux_dir/configure"; then
2916 ac_configure="$SHELL ${ac_aux_dir}configure"
2917 fi
2918
2919 # Check that the precious variables saved in the cache have kept the same
2920 # value.
2921 ac_cache_corrupted=false
2922 for ac_var in $ac_precious_vars; do
2923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2924 eval ac_new_set=\$ac_env_${ac_var}_set
2925 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2926 eval ac_new_val=\$ac_env_${ac_var}_value
2927 case $ac_old_set,$ac_new_set in
2928 set,)
2929 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2930 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2931 ac_cache_corrupted=: ;;
2932 ,set)
2933 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2934 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2935 ac_cache_corrupted=: ;;
2936 ,);;
2937 *)
2938 if test "x$ac_old_val" != "x$ac_new_val"; then
2939 # differences in whitespace do not lead to failure.
2940 ac_old_val_w=
2941 for ac_val in x $ac_old_val; do
2942 ac_old_val_w="$ac_old_val_w $ac_val"
2943 done
2944 ac_new_val_w=
2945 for ac_val in x $ac_new_val; do
2946 ac_new_val_w="$ac_new_val_w $ac_val"
2947 done
2948 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2949 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2950 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2951 ac_cache_corrupted=:
2952 else
2953 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2954 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2955 eval $ac_var=\$ac_old_val
2956 fi
2957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2958 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
2959 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2960 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
2961 fi;;
2962 esac
2963 # Pass precious variables to config.status.
2964 if test "$ac_new_set" = set; then
2965 case $ac_new_val in
2966 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2967 *) ac_arg=$ac_var=$ac_new_val ;;
2968 esac
2969 case " $ac_configure_args " in
2970 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2971 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2972 esac
2973 fi
2974 done
2975 if $ac_cache_corrupted; then
2976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2977 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2978 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2979 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
2980 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2981 and start over" "$LINENO" 5
2982 fi
2983 ## -------------------- ##
2984 ## Main body of script. ##
2985 ## -------------------- ##
2986
2987
2988 # Determine whether it's possible to make 'echo' print without a newline.
2989 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2990 # for compatibility with existing Makefiles.
2991 ECHO_C= ECHO_N= ECHO_T=
2992 case `echo -n x` in #(((((
2993 -n*)
2994 case `echo 'xy\c'` in
2995 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2996 xy) ECHO_C='\c';;
2997 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2998 ECHO_T=' ';;
2999 esac;;
3000 *)
3001 ECHO_N='-n';;
3002 esac
3003
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009
3010
3011
3012 am__api_version='1.18'
3013
3014
3015
3016 # Find a good install program. We prefer a C program (faster),
3017 # so one script is as good as another. But avoid the broken or
3018 # incompatible versions:
3019 # SysV /etc/install, /usr/sbin/install
3020 # SunOS /usr/etc/install
3021 # IRIX /sbin/install
3022 # AIX /bin/install
3023 # AmigaOS /C/install, which installs bootblocks on floppy discs
3024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3027 # OS/2's system install, which has a completely different semantic
3028 # ./install, which can be erroneously created by make from ./install.sh.
3029 # Reject install programs that cannot install multiple files.
3030 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3031 printf %s "checking for a BSD-compatible install... " >&6; }
3032 if test -z "$INSTALL"; then
3033 if test ${ac_cv_path_install+y}
3034 then :
3035 printf %s "(cached) " >&6
3036 else case e in #(
3037 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040 IFS=$as_save_IFS
3041 case $as_dir in #(((
3042 '') as_dir=./ ;;
3043 */) ;;
3044 *) as_dir=$as_dir/ ;;
3045 esac
3046 # Account for fact that we put trailing slashes in our PATH walk.
3047 case $as_dir in #((
3048 ./ | /[cC]/* | \
3049 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3050 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3051 /usr/ucb/* ) ;;
3052 *)
3053 # OSF/1 and SCO ODT 3.0 have their own names for install.
3054 # Don't use installbsd from OSF/1 since it installs stuff as root
3055 # by default.
3056 for ac_prog in ginstall scoinst install; do
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3059 if test $ac_prog = install &&
3060 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3061 # AIX install. It has an incompatible calling convention.
3062 :
3063 elif test $ac_prog = install &&
3064 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3065 # program-specific install script used by HP pwplus--don't use.
3066 :
3067 else
3068 rm -rf conftest.one conftest.two conftest.dir
3069 echo one > conftest.one
3070 echo two > conftest.two
3071 mkdir conftest.dir
3072 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3073 test -s conftest.one && test -s conftest.two &&
3074 test -s conftest.dir/conftest.one &&
3075 test -s conftest.dir/conftest.two
3076 then
3077 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3078 break 3
3079 fi
3080 fi
3081 fi
3082 done
3083 done
3084 ;;
3085 esac
3086
3087 done
3088 IFS=$as_save_IFS
3089
3090 rm -rf conftest.one conftest.two conftest.dir
3091 ;;
3092 esac
3093 fi
3094 if test ${ac_cv_path_install+y}; then
3095 INSTALL=$ac_cv_path_install
3096 else
3097 # As a last resort, use the slow shell script. Don't cache a
3098 # value for INSTALL within a source directory, because that will
3099 # break other packages using the cache if that directory is
3100 # removed, or if the value is a relative name.
3101 INSTALL=$ac_install_sh
3102 fi
3103 fi
3104 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3105 printf '%s\n' "$INSTALL" >&6; }
3106
3107 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3108 # It thinks the first close brace ends the variable substitution.
3109 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3110
3111 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3112
3113 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3114
3115 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3116 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3117 if test ${am_cv_sleep_fractional_seconds+y}
3118 then :
3119 printf %s "(cached) " >&6
3120 else case e in #(
3121 e) if sleep 0.001 2>/dev/null
3122 then :
3123 am_cv_sleep_fractional_seconds=yes
3124 else case e in #(
3125 e) am_cv_sleep_fractional_seconds=no ;;
3126 esac
3127 fi
3128 ;;
3129 esac
3130 fi
3131 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3132 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
3133
3134 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3135 printf %s "checking filesystem timestamp resolution... " >&6; }
3136 if test ${am_cv_filesystem_timestamp_resolution+y}
3137 then :
3138 printf %s "(cached) " >&6
3139 else case e in #(
3140 e) # Default to the worst case.
3141 am_cv_filesystem_timestamp_resolution=2
3142
3143 # Only try to go finer than 1 sec if sleep can do it.
3144 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3145 # - 1 sec is not much of a win compared to 2 sec, and
3146 # - it takes 2 seconds to perform the test whether 1 sec works.
3147 #
3148 # Instead, just use the default 2s on platforms that have 1s resolution,
3149 # accept the extra 1s delay when using $sleep in the Automake tests, in
3150 # exchange for not incurring the 2s delay for running the test for all
3151 # packages.
3152 #
3153 am_try_resolutions=
3154 if test "$am_cv_sleep_fractional_seconds" = yes; then
3155 # Even a millisecond often causes a bunch of false positives,
3156 # so just try a hundredth of a second. The time saved between .001 and
3157 # .01 is not terribly consequential.
3158 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3159 fi
3160
3161 # In order to catch current-generation FAT out, we must *modify* files
3162 # that already exist; the *creation* timestamp is finer. Use names
3163 # that make ls -t sort them differently when they have equal
3164 # timestamps than when they have distinct timestamps, keeping
3165 # in mind that ls -t prints the *newest* file first.
3166 rm -f conftest.ts?
3167 : > conftest.ts1
3168 : > conftest.ts2
3169 : > conftest.ts3
3170
3171 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3172 # clobber the current shell's arguments. (Outer-level square brackets
3173 # are removed by m4; they're present so that m4 does not expand
3174 # <dollar><star>; be careful, easy to get confused.)
3175 if (
3176 set X `ls -t conftest.ts[12]` &&
3177 {
3178 test "$*" != "X conftest.ts1 conftest.ts2" ||
3179 test "$*" != "X conftest.ts2 conftest.ts1";
3180 }
3181 ); then :; else
3182 # If neither matched, then we have a broken ls. This can happen
3183 # if, for instance, CONFIG_SHELL is bash and it inherits a
3184 # broken ls alias from the environment. This has actually
3185 # happened. Such a system could not be considered "sane".
3186 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3187 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3188 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3189 as_fn_error $? "ls -t produces unexpected output.
3190 Make sure there is not a broken ls alias in your environment.
3191 See 'config.log' for more details" "$LINENO" 5; }
3192 fi
3193
3194 for am_try_res in $am_try_resolutions; do
3195 # Any one fine-grained sleep might happen to cross the boundary
3196 # between two values of a coarser actual resolution, but if we do
3197 # two fine-grained sleeps in a row, at least one of them will fall
3198 # entirely within a coarse interval.
3199 echo alpha > conftest.ts1
3200 sleep $am_try_res
3201 echo beta > conftest.ts2
3202 sleep $am_try_res
3203 echo gamma > conftest.ts3
3204
3205 # We assume that 'ls -t' will make use of high-resolution
3206 # timestamps if the operating system supports them at all.
3207 if (set X `ls -t conftest.ts?` &&
3208 test "$2" = conftest.ts3 &&
3209 test "$3" = conftest.ts2 &&
3210 test "$4" = conftest.ts1); then
3211 #
3212 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3213 # because we don't need to test make.
3214 make_ok=true
3215 if test $am_try_res != 1; then
3216 # But if we've succeeded so far with a subsecond resolution, we
3217 # have one more thing to check: make. It can happen that
3218 # everything else supports the subsecond mtimes, but make doesn't;
3219 # notably on macOS, which ships make 3.81 from 2006 (the last one
3220 # released under GPLv2). https://bugs.gnu.org/68808
3221 #
3222 # We test $MAKE if it is defined in the environment, else "make".
3223 # It might get overridden later, but our hope is that in practice
3224 # it does not matter: it is the system "make" which is (by far)
3225 # the most likely to be broken, whereas if the user overrides it,
3226 # probably they did so with a better, or at least not worse, make.
3227 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3228 #
3229 # Create a Makefile (real tab character here):
3230 rm -f conftest.mk
3231 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3232 echo ' touch conftest.ts2' >>conftest.mk
3233 #
3234 # Now, running
3235 # touch conftest.ts1; touch conftest.ts2; make
3236 # should touch ts1 because ts2 is newer. This could happen by luck,
3237 # but most often, it will fail if make's support is insufficient. So
3238 # test for several consecutive successes.
3239 #
3240 # (We reuse conftest.ts[12] because we still want to modify existing
3241 # files, not create new ones, per above.)
3242 n=0
3243 make=${MAKE-make}
3244 until test $n -eq 3; do
3245 echo one > conftest.ts1
3246 sleep $am_try_res
3247 echo two > conftest.ts2 # ts2 should now be newer than ts1
3248 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3249 make_ok=false
3250 break # out of $n loop
3251 fi
3252 n=`expr $n + 1`
3253 done
3254 fi
3255 #
3256 if $make_ok; then
3257 # Everything we know to check worked out, so call this resolution good.
3258 am_cv_filesystem_timestamp_resolution=$am_try_res
3259 break # out of $am_try_res loop
3260 fi
3261 # Otherwise, we'll go on to check the next resolution.
3262 fi
3263 done
3264 rm -f conftest.ts?
3265 # (end _am_filesystem_timestamp_resolution)
3266 ;;
3267 esac
3268 fi
3269 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3270 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
3271
3272 # This check should not be cached, as it may vary across builds of
3273 # different projects.
3274 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3275 printf %s "checking whether build environment is sane... " >&6; }
3276 # Reject unsafe characters in $srcdir or the absolute working directory
3277 # name. Accept space and tab only in the latter.
3278 am_lf='
3279 '
3280 case `pwd` in
3281 *[\\\"\#\$\&\'\`$am_lf]*)
3282 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 printf '%s\n' "no" >&6; }
3284 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3285 esac
3286 case $srcdir in
3287 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3288 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 printf '%s\n' "no" >&6; }
3290 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3291 esac
3292
3293 # Do 'set' in a subshell so we don't clobber the current shell's
3294 # arguments. Must try -L first in case configure is actually a
3295 # symlink; some systems play weird games with the mod time of symlinks
3296 # (eg FreeBSD returns the mod time of the symlink's containing
3297 # directory).
3298 am_build_env_is_sane=no
3299 am_has_slept=no
3300 rm -f conftest.file
3301 for am_try in 1 2; do
3302 echo "timestamp, slept: $am_has_slept" > conftest.file
3303 if (
3304 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3305 if test "$*" = "X"; then
3306 # -L didn't work.
3307 set X `ls -t "$srcdir/configure" conftest.file`
3308 fi
3309 test "$2" = conftest.file
3310 ); then
3311 am_build_env_is_sane=yes
3312 break
3313 fi
3314 # Just in case.
3315 sleep "$am_cv_filesystem_timestamp_resolution"
3316 am_has_slept=yes
3317 done
3318
3319 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3320 printf '%s\n' "$am_build_env_is_sane" >&6; }
3321 if test "$am_build_env_is_sane" = no; then
3322 as_fn_error $? "newly created file is older than distributed files!
3323 Check your system clock" "$LINENO" 5
3324 fi
3325
3326 # If we didn't sleep, we still need to ensure time stamps of config.status and
3327 # generated files are strictly newer.
3328 am_sleep_pid=
3329 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3330 then :
3331
3332 else case e in #(
3333 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3334 am_sleep_pid=$!
3335 ;;
3336 esac
3337 fi
3338
3339 rm -f conftest.file
3340
3341 test "$program_prefix" != NONE &&
3342 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3343 # Use a double $ so make ignores it.
3344 test "$program_suffix" != NONE &&
3345 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3346 # Double any \ or $.
3347 # By default was 's,x,x', remove it if useless.
3348 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3349 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
3350
3351
3352 # Expand $ac_aux_dir to an absolute path.
3353 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3354
3355
3356 if test x"${MISSING+set}" != xset; then
3357 MISSING="\${SHELL} '$am_aux_dir/missing'"
3358 fi
3359 # Use eval to expand $SHELL
3360 if eval "$MISSING --is-lightweight"; then
3361 am_missing_run="$MISSING "
3362 else
3363 am_missing_run=
3364 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3365 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3366 fi
3367
3368 if test x"${install_sh+set}" != xset; then
3369 case $am_aux_dir in
3370 *\ * | *\ *)
3371 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3372 *)
3373 install_sh="\${SHELL} $am_aux_dir/install-sh"
3374 esac
3375 fi
3376
3377 # Installed binaries are usually stripped using 'strip' when the user
3378 # run "make install-strip". However 'strip' might not be the right
3379 # tool to use in cross-compilation environments, therefore Automake
3380 # will honor the 'STRIP' environment variable to overrule this program.
3381 if test "$cross_compiling" != no; then
3382 if test -n "$ac_tool_prefix"; then
3383 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3384 set dummy ${ac_tool_prefix}strip; ac_word=$2
3385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 printf %s "checking for $ac_word... " >&6; }
3387 if test ${ac_cv_prog_STRIP+y}
3388 then :
3389 printf %s "(cached) " >&6
3390 else case e in #(
3391 e) if test -n "$STRIP"; then
3392 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397 IFS=$as_save_IFS
3398 case $as_dir in #(((
3399 '') as_dir=./ ;;
3400 */) ;;
3401 *) as_dir=$as_dir/ ;;
3402 esac
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3406 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409 done
3410 done
3411 IFS=$as_save_IFS
3412
3413 fi ;;
3414 esac
3415 fi
3416 STRIP=$ac_cv_prog_STRIP
3417 if test -n "$STRIP"; then
3418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3419 printf '%s\n' "$STRIP" >&6; }
3420 else
3421 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 printf '%s\n' "no" >&6; }
3423 fi
3424
3425
3426 fi
3427 if test -z "$ac_cv_prog_STRIP"; then
3428 ac_ct_STRIP=$STRIP
3429 # Extract the first word of "strip", so it can be a program name with args.
3430 set dummy strip; ac_word=$2
3431 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 printf %s "checking for $ac_word... " >&6; }
3433 if test ${ac_cv_prog_ac_ct_STRIP+y}
3434 then :
3435 printf %s "(cached) " >&6
3436 else case e in #(
3437 e) if test -n "$ac_ct_STRIP"; then
3438 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3439 else
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443 IFS=$as_save_IFS
3444 case $as_dir in #(((
3445 '') as_dir=./ ;;
3446 */) ;;
3447 *) as_dir=$as_dir/ ;;
3448 esac
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_ac_ct_STRIP="strip"
3452 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3453 break 2
3454 fi
3455 done
3456 done
3457 IFS=$as_save_IFS
3458
3459 fi ;;
3460 esac
3461 fi
3462 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3463 if test -n "$ac_ct_STRIP"; then
3464 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3465 printf '%s\n' "$ac_ct_STRIP" >&6; }
3466 else
3467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 printf '%s\n' "no" >&6; }
3469 fi
3470
3471 if test "x$ac_ct_STRIP" = x; then
3472 STRIP=":"
3473 else
3474 case $cross_compiling:$ac_tool_warned in
3475 yes:)
3476 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3477 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3478 ac_tool_warned=yes ;;
3479 esac
3480 STRIP=$ac_ct_STRIP
3481 fi
3482 else
3483 STRIP="$ac_cv_prog_STRIP"
3484 fi
3485
3486 fi
3487 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3488
3489
3490 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3491 printf %s "checking for a race-free mkdir -p... " >&6; }
3492 if test -z "$MKDIR_P"; then
3493 if test ${ac_cv_path_mkdir+y}
3494 then :
3495 printf %s "(cached) " >&6
3496 else case e in #(
3497 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3499 do
3500 IFS=$as_save_IFS
3501 case $as_dir in #(((
3502 '') as_dir=./ ;;
3503 */) ;;
3504 *) as_dir=$as_dir/ ;;
3505 esac
3506 for ac_prog in mkdir gmkdir; do
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3509 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3510 'mkdir ('*'coreutils) '* | \
3511 *'BusyBox '* | \
3512 'mkdir (fileutils) '4.1*)
3513 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3514 break 3;;
3515 esac
3516 done
3517 done
3518 done
3519 IFS=$as_save_IFS
3520 ;;
3521 esac
3522 fi
3523
3524 test -d ./--version && rmdir ./--version
3525 if test ${ac_cv_path_mkdir+y}; then
3526 MKDIR_P="$ac_cv_path_mkdir -p"
3527 else
3528 # As a last resort, use plain mkdir -p,
3529 # in the hope it doesn't have the bugs of ancient mkdir.
3530 MKDIR_P='mkdir -p'
3531 fi
3532 fi
3533 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3534 printf '%s\n' "$MKDIR_P" >&6; }
3535
3536 for ac_prog in gawk mawk nawk awk 'busybox awk'
3537 do
3538 # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy $ac_prog; ac_word=$2
3540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 printf %s "checking for $ac_word... " >&6; }
3542 if test ${ac_cv_prog_AWK+y}
3543 then :
3544 printf %s "(cached) " >&6
3545 else case e in #(
3546 e) if test -n "$AWK"; then
3547 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552 IFS=$as_save_IFS
3553 case $as_dir in #(((
3554 '') as_dir=./ ;;
3555 */) ;;
3556 *) as_dir=$as_dir/ ;;
3557 esac
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3560 ac_cv_prog_AWK="$ac_prog"
3561 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564 done
3565 done
3566 IFS=$as_save_IFS
3567
3568 fi ;;
3569 esac
3570 fi
3571 AWK=$ac_cv_prog_AWK
3572 if test -n "$AWK"; then
3573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3574 printf '%s\n' "$AWK" >&6; }
3575 else
3576 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 printf '%s\n' "no" >&6; }
3578 fi
3579
3580
3581 test -n "$AWK" && break
3582 done
3583
3584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3585 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3586 set x ${MAKE-make}
3587 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3588 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3589 then :
3590 printf %s "(cached) " >&6
3591 else case e in #(
3592 e) cat >conftest.make <<\_ACEOF
3593 SHELL = /bin/sh
3594 all:
3595 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
3596 _ACEOF
3597 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3598 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3599 *@@@%%%=?*=@@@%%%*)
3600 eval ac_cv_prog_make_${ac_make}_set=yes;;
3601 *)
3602 eval ac_cv_prog_make_${ac_make}_set=no;;
3603 esac
3604 rm -f conftest.make ;;
3605 esac
3606 fi
3607 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3608 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3609 printf '%s\n' "yes" >&6; }
3610 SET_MAKE=
3611 else
3612 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 printf '%s\n' "no" >&6; }
3614 SET_MAKE="MAKE=${MAKE-make}"
3615 fi
3616
3617 rm -rf .tst 2>/dev/null
3618 mkdir .tst 2>/dev/null
3619 if test -d .tst; then
3620 am__leading_dot=.
3621 else
3622 am__leading_dot=_
3623 fi
3624 rmdir .tst 2>/dev/null
3625
3626 AM_DEFAULT_VERBOSITY=1
3627 # Check whether --enable-silent-rules was given.
3628 if test ${enable_silent_rules+y}
3629 then :
3630 enableval=$enable_silent_rules;
3631 fi
3632
3633 am_make=${MAKE-make}
3634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3635 printf %s "checking whether $am_make supports nested variables... " >&6; }
3636 if test ${am_cv_make_support_nested_variables+y}
3637 then :
3638 printf %s "(cached) " >&6
3639 else case e in #(
3640 e) if printf '%s\n' 'TRUE=$(BAR$(V))
3641 BAR0=false
3642 BAR1=true
3643 V=1
3644 am__doit:
3645 @$(TRUE)
3646 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3647 am_cv_make_support_nested_variables=yes
3648 else
3649 am_cv_make_support_nested_variables=no
3650 fi ;;
3651 esac
3652 fi
3653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3654 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
3655 AM_BACKSLASH='\'
3656
3657 am__rm_f_notfound=
3658 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3659 then :
3660
3661 else case e in #(
3662 e) am__rm_f_notfound='""' ;;
3663 esac
3664 fi
3665
3666
3667 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3668 printf %s "checking xargs -n works... " >&6; }
3669 if test ${am_cv_xargs_n_works+y}
3670 then :
3671 printf %s "(cached) " >&6
3672 else case e in #(
3673 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3674 3"
3675 then :
3676 am_cv_xargs_n_works=yes
3677 else case e in #(
3678 e) am_cv_xargs_n_works=no ;;
3679 esac
3680 fi ;;
3681 esac
3682 fi
3683 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3684 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
3685 if test "$am_cv_xargs_n_works" = yes
3686 then :
3687 am__xargs_n='xargs -n'
3688 else case e in #(
3689 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3690 ;;
3691 esac
3692 fi
3693
3694 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3695 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3696 # is not polluted with repeated "-I."
3697 am__isrc=' -I$(srcdir)'
3698 # test to see if srcdir already configured
3699 if test -f $srcdir/config.status; then
3700 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3701 fi
3702 fi
3703
3704 # test whether we have cygpath
3705 if test -z "$CYGPATH_W"; then
3706 if (cygpath --version) >/dev/null 2>/dev/null; then
3707 CYGPATH_W='cygpath -w'
3708 else
3709 CYGPATH_W=echo
3710 fi
3711 fi
3712
3713
3714 # Define the identity of the package.
3715 PACKAGE='bluez'
3716 VERSION='5.87'
3717
3718
3719 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3720
3721
3722 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
3723
3724 # Some tools Automake needs.
3725
3726 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3727
3728
3729 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3730
3731
3732 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3733
3734
3735 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3736
3737
3738 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3739
3740 # For better backward compatibility. To be removed once Automake 1.9.x
3741 # dies out for good. For more background, see:
3742 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3743 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3744 mkdir_p='$(MKDIR_P)'
3745
3746 # We need awk for the "check" target (and possibly the TAP driver). The
3747 # system "awk" is bad on some platforms.
3748 # Always define AMTAR for backward compatibility. Yes, it's still used
3749 # in the wild :-( We should find a proper way to deprecate it ...
3750 AMTAR='$${TAR-tar}'
3751
3752
3753 # We'll loop over all known methods to create a tar archive until one works.
3754 _am_tools='gnutar pax cpio none'
3755
3756
3757
3758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3759 printf %s "checking how to create a pax tar archive... " >&6; }
3760
3761 # Go ahead even if we have the value already cached. We do so because we
3762 # need to set the values for the 'am__tar' and 'am__untar' variables.
3763 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3764
3765 for _am_tool in $_am_tools; do
3766 case $_am_tool in
3767 gnutar)
3768 for _am_tar in tar gnutar gtar; do
3769 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3770 ($_am_tar --version) >&5 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } && break
3774 done
3775 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3776 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3777 am__untar="$_am_tar -xf -"
3778 ;;
3779 plaintar)
3780 # Must skip GNU tar: if it does not support --format= it doesn't create
3781 # ustar tarball either.
3782 (tar --version) >/dev/null 2>&1 && continue
3783 am__tar='tar chf - "$$tardir"'
3784 am__tar_='tar chf - "$tardir"'
3785 am__untar='tar xf -'
3786 ;;
3787 pax)
3788 am__tar='pax -L -x pax -w "$$tardir"'
3789 am__tar_='pax -L -x pax -w "$tardir"'
3790 am__untar='pax -r'
3791 ;;
3792 cpio)
3793 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3794 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3795 am__untar='cpio -i -H pax -d'
3796 ;;
3797 none)
3798 am__tar=false
3799 am__tar_=false
3800 am__untar=false
3801 ;;
3802 esac
3803
3804 # If the value was cached, stop now. We just wanted to have am__tar
3805 # and am__untar set.
3806 test -n "${am_cv_prog_tar_pax}" && break
3807
3808 # tar/untar a dummy directory, and stop if the command works.
3809 rm -rf conftest.dir
3810 mkdir conftest.dir
3811 echo GrepMe > conftest.dir/file
3812 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3813 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }
3817 rm -rf conftest.dir
3818 if test -s conftest.tar; then
3819 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3820 ($am__untar <conftest.tar) >&5 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }
3824 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3825 (cat conftest.dir/file) >&5 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }
3829 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3830 fi
3831 done
3832 rm -rf conftest.dir
3833
3834 if test ${am_cv_prog_tar_pax+y}
3835 then :
3836 printf %s "(cached) " >&6
3837 else case e in #(
3838 e) am_cv_prog_tar_pax=$_am_tool ;;
3839 esac
3840 fi
3841
3842 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3843 printf '%s\n' "$am_cv_prog_tar_pax" >&6; }
3844
3845
3846
3847
3848
3849 # Variables for tags utilities; see am/tags.am
3850 if test -z "$CTAGS"; then
3851 CTAGS=ctags
3852 fi
3853
3854 if test -z "$ETAGS"; then
3855 ETAGS=etags
3856 fi
3857
3858 if test -z "$CSCOPE"; then
3859 CSCOPE=cscope
3860 fi
3861
3862
3863
3864
3865
3866
3867
3868 ac_config_headers="$ac_config_headers config.h"
3869
3870
3871
3872 AM_DEFAULT_VERBOSITY=0
3873
3874
3875
3876
3877 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3878 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3879 # Check whether --enable-maintainer-mode was given.
3880 if test ${enable_maintainer_mode+y}
3881 then :
3882 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3883 else case e in #(
3884 e) USE_MAINTAINER_MODE=no ;;
3885 esac
3886 fi
3887
3888 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3889 printf '%s\n' "$USE_MAINTAINER_MODE" >&6; }
3890 if test $USE_MAINTAINER_MODE = yes; then
3891 MAINTAINER_MODE_TRUE=
3892 MAINTAINER_MODE_FALSE='#'
3893 else
3894 MAINTAINER_MODE_TRUE='#'
3895 MAINTAINER_MODE_FALSE=
3896 fi
3897
3898 MAINT=$MAINTAINER_MODE_TRUE
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3912 if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3914 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3915 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916 printf %s "checking for $ac_word... " >&6; }
3917 if test ${ac_cv_path_PKG_CONFIG+y}
3918 then :
3919 printf %s "(cached) " >&6
3920 else case e in #(
3921 e) case $PKG_CONFIG in
3922 [\\/]* | ?:[\\/]*)
3923 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3924 ;;
3925 *)
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929 IFS=$as_save_IFS
3930 case $as_dir in #(((
3931 '') as_dir=./ ;;
3932 */) ;;
3933 *) as_dir=$as_dir/ ;;
3934 esac
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3937 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3938 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941 done
3942 done
3943 IFS=$as_save_IFS
3944
3945 ;;
3946 esac ;;
3947 esac
3948 fi
3949 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3950 if test -n "$PKG_CONFIG"; then
3951 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3952 printf '%s\n' "$PKG_CONFIG" >&6; }
3953 else
3954 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 printf '%s\n' "no" >&6; }
3956 fi
3957
3958
3959 fi
3960 if test -z "$ac_cv_path_PKG_CONFIG"; then
3961 ac_pt_PKG_CONFIG=$PKG_CONFIG
3962 # Extract the first word of "pkg-config", so it can be a program name with args.
3963 set dummy pkg-config; ac_word=$2
3964 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 printf %s "checking for $ac_word... " >&6; }
3966 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
3967 then :
3968 printf %s "(cached) " >&6
3969 else case e in #(
3970 e) case $ac_pt_PKG_CONFIG in
3971 [\\/]* | ?:[\\/]*)
3972 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3973 ;;
3974 *)
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978 IFS=$as_save_IFS
3979 case $as_dir in #(((
3980 '') as_dir=./ ;;
3981 */) ;;
3982 *) as_dir=$as_dir/ ;;
3983 esac
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3986 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3987 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3988 break 2
3989 fi
3990 done
3991 done
3992 IFS=$as_save_IFS
3993
3994 ;;
3995 esac ;;
3996 esac
3997 fi
3998 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3999 if test -n "$ac_pt_PKG_CONFIG"; then
4000 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4001 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
4002 else
4003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 printf '%s\n' "no" >&6; }
4005 fi
4006
4007 if test "x$ac_pt_PKG_CONFIG" = x; then
4008 PKG_CONFIG=""
4009 else
4010 case $cross_compiling:$ac_tool_warned in
4011 yes:)
4012 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4013 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4014 ac_tool_warned=yes ;;
4015 esac
4016 PKG_CONFIG=$ac_pt_PKG_CONFIG
4017 fi
4018 else
4019 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4020 fi
4021
4022 fi
4023 if test -n "$PKG_CONFIG"; then
4024 _pkg_min_version=0.9.0
4025 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4026 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4027 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4028 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4029 printf '%s\n' "yes" >&6; }
4030 else
4031 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 printf '%s\n' "no" >&6; }
4033 PKG_CONFIG=""
4034 fi
4035 fi
4036 if test -z "$PKG_CONFIG"; then
4037 as_fn_error $? "pkg-config not found" "$LINENO" 5
4038 fi
4039
4040
4041 with_cflags=""
4042 if (test "$USE_MAINTAINER_MODE" = "yes"); then
4043 with_cflags="$with_cflags -Wall -Werror -Wextra"
4044 with_cflags="$with_cflags -Wno-unused-parameter"
4045 with_cflags="$with_cflags -Wno-missing-field-initializers"
4046 with_cflags="$with_cflags -Wdeclaration-after-statement"
4047 with_cflags="$with_cflags -Wmissing-declarations"
4048 with_cflags="$with_cflags -Wredundant-decls"
4049 with_cflags="$with_cflags -Wcast-align"
4050 with_cflags="$with_cflags -Wswitch-enum"
4051 with_cflags="$with_cflags -Wformat -Wformat-security"
4052 with_cflags="$with_cflags -Wstringop-overflow"
4053 with_cflags="$with_cflags -DG_DISABLE_DEPRECATED"
4054 with_cflags="$with_cflags -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36"
4055 with_cflags="$with_cflags -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36"
4056 fi
4057 WARNING_CFLAGS=$with_cflags
4058
4059
4060
4061 ac_ext=c
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080 DEPDIR="${am__leading_dot}deps"
4081
4082 ac_config_commands="$ac_config_commands depfiles"
4083
4084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4085 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4086 cat > confinc.mk << 'END'
4087 am__doit:
4088 @echo this is the am__doit target >confinc.out
4089 .PHONY: am__doit
4090 END
4091 am__include="#"
4092 am__quote=
4093 # BSD make does it like this.
4094 echo '.include "confinc.mk" # ignored' > confmf.BSD
4095 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4096 echo 'include confinc.mk # ignored' > confmf.GNU
4097 _am_result=no
4098 for s in GNU BSD; do
4099 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4100 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }
4104 case $?:`cat confinc.out 2>/dev/null` in #(
4105 '0:this is the am__doit target') :
4106 case $s in #(
4107 BSD) :
4108 am__include='.include' am__quote='"' ;; #(
4109 *) :
4110 am__include='include' am__quote='' ;;
4111 esac ;; #(
4112 *) :
4113 ;;
4114 esac
4115 if test "$am__include" != "#"; then
4116 _am_result="yes ($s style)"
4117 break
4118 fi
4119 done
4120 rm -f confinc.* confmf.*
4121 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4122 printf '%s\n' "${_am_result}" >&6; }
4123
4124 # Check whether --enable-dependency-tracking was given.
4125 if test ${enable_dependency_tracking+y}
4126 then :
4127 enableval=$enable_dependency_tracking;
4128 fi
4129
4130 if test "x$enable_dependency_tracking" != xno; then
4131 am_depcomp="$ac_aux_dir/depcomp"
4132 AMDEPBACKSLASH='\'
4133 am__nodep='_no'
4134 fi
4135 if test "x$enable_dependency_tracking" != xno; then
4136 AMDEP_TRUE=
4137 AMDEP_FALSE='#'
4138 else
4139 AMDEP_TRUE='#'
4140 AMDEP_FALSE=
4141 fi
4142
4143
4144 ac_ext=c
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149 if test -n "$ac_tool_prefix"; then
4150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4152 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153 printf %s "checking for $ac_word... " >&6; }
4154 if test ${ac_cv_prog_CC+y}
4155 then :
4156 printf %s "(cached) " >&6
4157 else case e in #(
4158 e) if test -n "$CC"; then
4159 ac_cv_prog_CC="$CC" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164 IFS=$as_save_IFS
4165 case $as_dir in #(((
4166 '') as_dir=./ ;;
4167 */) ;;
4168 *) as_dir=$as_dir/ ;;
4169 esac
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4173 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4174 break 2
4175 fi
4176 done
4177 done
4178 IFS=$as_save_IFS
4179
4180 fi ;;
4181 esac
4182 fi
4183 CC=$ac_cv_prog_CC
4184 if test -n "$CC"; then
4185 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 printf '%s\n' "$CC" >&6; }
4187 else
4188 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 printf '%s\n' "no" >&6; }
4190 fi
4191
4192
4193 fi
4194 if test -z "$ac_cv_prog_CC"; then
4195 ac_ct_CC=$CC
4196 # Extract the first word of "gcc", so it can be a program name with args.
4197 set dummy gcc; ac_word=$2
4198 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 printf %s "checking for $ac_word... " >&6; }
4200 if test ${ac_cv_prog_ac_ct_CC+y}
4201 then :
4202 printf %s "(cached) " >&6
4203 else case e in #(
4204 e) if test -n "$ac_ct_CC"; then
4205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210 IFS=$as_save_IFS
4211 case $as_dir in #(((
4212 '') as_dir=./ ;;
4213 */) ;;
4214 *) as_dir=$as_dir/ ;;
4215 esac
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_ac_ct_CC="gcc"
4219 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222 done
4223 done
4224 IFS=$as_save_IFS
4225
4226 fi ;;
4227 esac
4228 fi
4229 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4230 if test -n "$ac_ct_CC"; then
4231 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4232 printf '%s\n' "$ac_ct_CC" >&6; }
4233 else
4234 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 printf '%s\n' "no" >&6; }
4236 fi
4237
4238 if test "x$ac_ct_CC" = x; then
4239 CC=""
4240 else
4241 case $cross_compiling:$ac_tool_warned in
4242 yes:)
4243 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4244 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4245 ac_tool_warned=yes ;;
4246 esac
4247 CC=$ac_ct_CC
4248 fi
4249 else
4250 CC="$ac_cv_prog_CC"
4251 fi
4252
4253 if test -z "$CC"; then
4254 if test -n "$ac_tool_prefix"; then
4255 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}cc; ac_word=$2
4257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 printf %s "checking for $ac_word... " >&6; }
4259 if test ${ac_cv_prog_CC+y}
4260 then :
4261 printf %s "(cached) " >&6
4262 else case e in #(
4263 e) if test -n "$CC"; then
4264 ac_cv_prog_CC="$CC" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269 IFS=$as_save_IFS
4270 case $as_dir in #(((
4271 '') as_dir=./ ;;
4272 */) ;;
4273 *) as_dir=$as_dir/ ;;
4274 esac
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4277 ac_cv_prog_CC="${ac_tool_prefix}cc"
4278 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4279 break 2
4280 fi
4281 done
4282 done
4283 IFS=$as_save_IFS
4284
4285 fi ;;
4286 esac
4287 fi
4288 CC=$ac_cv_prog_CC
4289 if test -n "$CC"; then
4290 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4291 printf '%s\n' "$CC" >&6; }
4292 else
4293 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 printf '%s\n' "no" >&6; }
4295 fi
4296
4297
4298 fi
4299 fi
4300 if test -z "$CC"; then
4301 # Extract the first word of "cc", so it can be a program name with args.
4302 set dummy cc; ac_word=$2
4303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 printf %s "checking for $ac_word... " >&6; }
4305 if test ${ac_cv_prog_CC+y}
4306 then :
4307 printf %s "(cached) " >&6
4308 else case e in #(
4309 e) if test -n "$CC"; then
4310 ac_cv_prog_CC="$CC" # Let the user override the test.
4311 else
4312 ac_prog_rejected=no
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316 IFS=$as_save_IFS
4317 case $as_dir in #(((
4318 '') as_dir=./ ;;
4319 */) ;;
4320 *) as_dir=$as_dir/ ;;
4321 esac
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4324 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4325 ac_prog_rejected=yes
4326 continue
4327 fi
4328 ac_cv_prog_CC="cc"
4329 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4330 break 2
4331 fi
4332 done
4333 done
4334 IFS=$as_save_IFS
4335
4336 if test $ac_prog_rejected = yes; then
4337 # We found a bogon in the path, so make sure we never use it.
4338 set dummy $ac_cv_prog_CC
4339 shift
4340 if test $# != 0; then
4341 # We chose a different compiler from the bogus one.
4342 # However, it has the same basename, so the bogon will be chosen
4343 # first if we set CC to just the basename; use the full file name.
4344 shift
4345 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4346 fi
4347 fi
4348 fi ;;
4349 esac
4350 fi
4351 CC=$ac_cv_prog_CC
4352 if test -n "$CC"; then
4353 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4354 printf '%s\n' "$CC" >&6; }
4355 else
4356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 printf '%s\n' "no" >&6; }
4358 fi
4359
4360
4361 fi
4362 if test -z "$CC"; then
4363 if test -n "$ac_tool_prefix"; then
4364 for ac_prog in cl.exe
4365 do
4366 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4367 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4368 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 printf %s "checking for $ac_word... " >&6; }
4370 if test ${ac_cv_prog_CC+y}
4371 then :
4372 printf %s "(cached) " >&6
4373 else case e in #(
4374 e) if test -n "$CC"; then
4375 ac_cv_prog_CC="$CC" # Let the user override the test.
4376 else
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380 IFS=$as_save_IFS
4381 case $as_dir in #(((
4382 '') as_dir=./ ;;
4383 */) ;;
4384 *) as_dir=$as_dir/ ;;
4385 esac
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4388 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4389 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4390 break 2
4391 fi
4392 done
4393 done
4394 IFS=$as_save_IFS
4395
4396 fi ;;
4397 esac
4398 fi
4399 CC=$ac_cv_prog_CC
4400 if test -n "$CC"; then
4401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4402 printf '%s\n' "$CC" >&6; }
4403 else
4404 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 printf '%s\n' "no" >&6; }
4406 fi
4407
4408
4409 test -n "$CC" && break
4410 done
4411 fi
4412 if test -z "$CC"; then
4413 ac_ct_CC=$CC
4414 for ac_prog in cl.exe
4415 do
4416 # Extract the first word of "$ac_prog", so it can be a program name with args.
4417 set dummy $ac_prog; ac_word=$2
4418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 printf %s "checking for $ac_word... " >&6; }
4420 if test ${ac_cv_prog_ac_ct_CC+y}
4421 then :
4422 printf %s "(cached) " >&6
4423 else case e in #(
4424 e) if test -n "$ac_ct_CC"; then
4425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4426 else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4429 do
4430 IFS=$as_save_IFS
4431 case $as_dir in #(((
4432 '') as_dir=./ ;;
4433 */) ;;
4434 *) as_dir=$as_dir/ ;;
4435 esac
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4438 ac_cv_prog_ac_ct_CC="$ac_prog"
4439 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442 done
4443 done
4444 IFS=$as_save_IFS
4445
4446 fi ;;
4447 esac
4448 fi
4449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4450 if test -n "$ac_ct_CC"; then
4451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4452 printf '%s\n' "$ac_ct_CC" >&6; }
4453 else
4454 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 printf '%s\n' "no" >&6; }
4456 fi
4457
4458
4459 test -n "$ac_ct_CC" && break
4460 done
4461
4462 if test "x$ac_ct_CC" = x; then
4463 CC=""
4464 else
4465 case $cross_compiling:$ac_tool_warned in
4466 yes:)
4467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4468 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4469 ac_tool_warned=yes ;;
4470 esac
4471 CC=$ac_ct_CC
4472 fi
4473 fi
4474
4475 fi
4476 if test -z "$CC"; then
4477 if test -n "$ac_tool_prefix"; then
4478 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4479 set dummy ${ac_tool_prefix}clang; ac_word=$2
4480 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481 printf %s "checking for $ac_word... " >&6; }
4482 if test ${ac_cv_prog_CC+y}
4483 then :
4484 printf %s "(cached) " >&6
4485 else case e in #(
4486 e) if test -n "$CC"; then
4487 ac_cv_prog_CC="$CC" # Let the user override the test.
4488 else
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4491 do
4492 IFS=$as_save_IFS
4493 case $as_dir in #(((
4494 '') as_dir=./ ;;
4495 */) ;;
4496 *) as_dir=$as_dir/ ;;
4497 esac
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4500 ac_cv_prog_CC="${ac_tool_prefix}clang"
4501 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4502 break 2
4503 fi
4504 done
4505 done
4506 IFS=$as_save_IFS
4507
4508 fi ;;
4509 esac
4510 fi
4511 CC=$ac_cv_prog_CC
4512 if test -n "$CC"; then
4513 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4514 printf '%s\n' "$CC" >&6; }
4515 else
4516 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 printf '%s\n' "no" >&6; }
4518 fi
4519
4520
4521 fi
4522 if test -z "$ac_cv_prog_CC"; then
4523 ac_ct_CC=$CC
4524 # Extract the first word of "clang", so it can be a program name with args.
4525 set dummy clang; ac_word=$2
4526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527 printf %s "checking for $ac_word... " >&6; }
4528 if test ${ac_cv_prog_ac_ct_CC+y}
4529 then :
4530 printf %s "(cached) " >&6
4531 else case e in #(
4532 e) if test -n "$ac_ct_CC"; then
4533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538 IFS=$as_save_IFS
4539 case $as_dir in #(((
4540 '') as_dir=./ ;;
4541 */) ;;
4542 *) as_dir=$as_dir/ ;;
4543 esac
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4546 ac_cv_prog_ac_ct_CC="clang"
4547 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550 done
4551 done
4552 IFS=$as_save_IFS
4553
4554 fi ;;
4555 esac
4556 fi
4557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4558 if test -n "$ac_ct_CC"; then
4559 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4560 printf '%s\n' "$ac_ct_CC" >&6; }
4561 else
4562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 printf '%s\n' "no" >&6; }
4564 fi
4565
4566 if test "x$ac_ct_CC" = x; then
4567 CC=""
4568 else
4569 case $cross_compiling:$ac_tool_warned in
4570 yes:)
4571 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4572 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4573 ac_tool_warned=yes ;;
4574 esac
4575 CC=$ac_ct_CC
4576 fi
4577 else
4578 CC="$ac_cv_prog_CC"
4579 fi
4580
4581 fi
4582
4583
4584 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4585 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4586 as_fn_error $? "no acceptable C compiler found in \$PATH
4587 See 'config.log' for more details" "$LINENO" 5; }
4588
4589 # Provide some information about the compiler.
4590 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4591 set X $ac_compile
4592 ac_compiler=$2
4593 for ac_option in --version -v -V -qversion -version; do
4594 { { ac_try="$ac_compiler $ac_option >&5"
4595 case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4600 printf '%s\n' "$ac_try_echo"; } >&5
4601 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4602 ac_status=$?
4603 if test -s conftest.err; then
4604 sed '10a\
4605 ... rest of stderr output deleted ...
4606 10q' conftest.err >conftest.er1
4607 cat conftest.er1 >&5
4608 fi
4609 rm -f conftest.er1 conftest.err
4610 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; }
4612 done
4613
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616
4617 int
4618 main (void)
4619 {
4620
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 ac_clean_files_save=$ac_clean_files
4626 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4627 # Try to create an executable without -o first, disregard a.out.
4628 # It will help us diagnose broken compilers, and finding out an intuition
4629 # of exeext.
4630 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4631 printf %s "checking whether the C compiler works... " >&6; }
4632 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4633
4634 # The possible output files:
4635 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4636
4637 ac_rmfiles=
4638 for ac_file in $ac_files
4639 do
4640 case $ac_file in
4641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4642 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4643 esac
4644 done
4645 rm -f $ac_rmfiles
4646
4647 if { { ac_try="$ac_link_default"
4648 case "(($ac_try" in
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4651 esac
4652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4653 printf '%s\n' "$ac_try_echo"; } >&5
4654 (eval "$ac_link_default") 2>&5
4655 ac_status=$?
4656 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657 test $ac_status = 0; }
4658 then :
4659 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4660 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4661 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4662 # so that the user can short-circuit this test for compilers unknown to
4663 # Autoconf.
4664 for ac_file in $ac_files ''
4665 do
4666 test -f "$ac_file" || continue
4667 case $ac_file in
4668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4669 ;;
4670 [ab].out )
4671 # We found the default executable, but exeext='' is most
4672 # certainly right.
4673 break;;
4674 *.* )
4675 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4676 then :; else
4677 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4678 fi
4679 # We set ac_cv_exeext here because the later test for it is not
4680 # safe: cross compilers may not add the suffix if given an '-o'
4681 # argument, so we may need to know it at that point already.
4682 # Even if this section looks crufty: it has the advantage of
4683 # actually working.
4684 break;;
4685 * )
4686 break;;
4687 esac
4688 done
4689 test "$ac_cv_exeext" = no && ac_cv_exeext=
4690
4691 else case e in #(
4692 e) ac_file='' ;;
4693 esac
4694 fi
4695 if test -z "$ac_file"
4696 then :
4697 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 printf '%s\n' "no" >&6; }
4699 printf '%s\n' "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4703 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4704 as_fn_error 77 "C compiler cannot create executables
4705 See 'config.log' for more details" "$LINENO" 5; }
4706 else case e in #(
4707 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4708 printf '%s\n' "yes" >&6; } ;;
4709 esac
4710 fi
4711 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4712 printf %s "checking for C compiler default output file name... " >&6; }
4713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4714 printf '%s\n' "$ac_file" >&6; }
4715 ac_exeext=$ac_cv_exeext
4716
4717 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4718 ac_clean_files=$ac_clean_files_save
4719 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4720 printf %s "checking for suffix of executables... " >&6; }
4721 if { { ac_try="$ac_link"
4722 case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4725 esac
4726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4727 printf '%s\n' "$ac_try_echo"; } >&5
4728 (eval "$ac_link") 2>&5
4729 ac_status=$?
4730 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731 test $ac_status = 0; }
4732 then :
4733 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4734 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4735 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4736 # 'rm'.
4737 for ac_file in conftest.exe conftest conftest.*; do
4738 test -f "$ac_file" || continue
4739 case $ac_file in
4740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4742 break;;
4743 * ) break;;
4744 esac
4745 done
4746 else case e in #(
4747 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4748 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4749 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4750 See 'config.log' for more details" "$LINENO" 5; } ;;
4751 esac
4752 fi
4753 rm -f conftest conftest$ac_cv_exeext
4754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4755 printf '%s\n' "$ac_cv_exeext" >&6; }
4756
4757 rm -f conftest.$ac_ext
4758 EXEEXT=$ac_cv_exeext
4759 ac_exeext=$EXEEXT
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 #include <stdio.h>
4763 int
4764 main (void)
4765 {
4766 FILE *f = fopen ("conftest.out", "w");
4767 if (!f)
4768 return 1;
4769 return ferror (f) || fclose (f) != 0;
4770
4771 ;
4772 return 0;
4773 }
4774 _ACEOF
4775 ac_clean_files="$ac_clean_files conftest.out"
4776 # Check that the compiler produces executables we can run. If not, either
4777 # the compiler is broken, or we cross compile.
4778 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4779 printf %s "checking whether we are cross compiling... " >&6; }
4780 if test "$cross_compiling" != yes; then
4781 { { ac_try="$ac_link"
4782 case "(($ac_try" in
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4785 esac
4786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4787 printf '%s\n' "$ac_try_echo"; } >&5
4788 (eval "$ac_link") 2>&5
4789 ac_status=$?
4790 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4791 test $ac_status = 0; }
4792 if { ac_try='./conftest$ac_cv_exeext'
4793 { { case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4798 printf '%s\n' "$ac_try_echo"; } >&5
4799 (eval "$ac_try") 2>&5
4800 ac_status=$?
4801 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4802 test $ac_status = 0; }; }; then
4803 cross_compiling=no
4804 else
4805 if test "$cross_compiling" = maybe; then
4806 cross_compiling=yes
4807 else
4808 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4809 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4810 as_fn_error 77 "cannot run C compiled programs.
4811 If you meant to cross compile, use '--host'.
4812 See 'config.log' for more details" "$LINENO" 5; }
4813 fi
4814 fi
4815 fi
4816 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4817 printf '%s\n' "$cross_compiling" >&6; }
4818
4819 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4820 conftest.o conftest.obj conftest.out
4821 ac_clean_files=$ac_clean_files_save
4822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4823 printf %s "checking for suffix of object files... " >&6; }
4824 if test ${ac_cv_objext+y}
4825 then :
4826 printf %s "(cached) " >&6
4827 else case e in #(
4828 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830
4831 int
4832 main (void)
4833 {
4834
4835 ;
4836 return 0;
4837 }
4838 _ACEOF
4839 rm -f conftest.o conftest.obj
4840 if { { ac_try="$ac_compile"
4841 case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844 esac
4845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4846 printf '%s\n' "$ac_try_echo"; } >&5
4847 (eval "$ac_compile") 2>&5
4848 ac_status=$?
4849 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4850 test $ac_status = 0; }
4851 then :
4852 for ac_file in conftest.o conftest.obj conftest.*; do
4853 test -f "$ac_file" || continue;
4854 case $ac_file in
4855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4856 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4857 break;;
4858 esac
4859 done
4860 else case e in #(
4861 e) printf '%s\n' "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4863
4864 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4865 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4866 as_fn_error $? "cannot compute suffix of object files: cannot compile
4867 See 'config.log' for more details" "$LINENO" 5; } ;;
4868 esac
4869 fi
4870 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4871 esac
4872 fi
4873 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4874 printf '%s\n' "$ac_cv_objext" >&6; }
4875 OBJEXT=$ac_cv_objext
4876 ac_objext=$OBJEXT
4877 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4878 printf %s "checking whether the compiler supports GNU C... " >&6; }
4879 if test ${ac_cv_c_compiler_gnu+y}
4880 then :
4881 printf %s "(cached) " >&6
4882 else case e in #(
4883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885
4886 int
4887 main (void)
4888 {
4889 #ifndef __GNUC__
4890 choke me
4891 #endif
4892
4893 ;
4894 return 0;
4895 }
4896 _ACEOF
4897 if ac_fn_c_try_compile "$LINENO"
4898 then :
4899 ac_compiler_gnu=yes
4900 else case e in #(
4901 e) ac_compiler_gnu=no ;;
4902 esac
4903 fi
4904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4906 ;;
4907 esac
4908 fi
4909 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4910 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
4911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4912
4913 if test $ac_compiler_gnu = yes; then
4914 GCC=yes
4915 else
4916 GCC=
4917 fi
4918 ac_test_CFLAGS=${CFLAGS+y}
4919 ac_save_CFLAGS=$CFLAGS
4920 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4921 printf %s "checking whether $CC accepts -g... " >&6; }
4922 if test ${ac_cv_prog_cc_g+y}
4923 then :
4924 printf %s "(cached) " >&6
4925 else case e in #(
4926 e) ac_save_c_werror_flag=$ac_c_werror_flag
4927 ac_c_werror_flag=yes
4928 ac_cv_prog_cc_g=no
4929 CFLAGS="-g"
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932
4933 int
4934 main (void)
4935 {
4936
4937 ;
4938 return 0;
4939 }
4940 _ACEOF
4941 if ac_fn_c_try_compile "$LINENO"
4942 then :
4943 ac_cv_prog_cc_g=yes
4944 else case e in #(
4945 e) CFLAGS=""
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948
4949 int
4950 main (void)
4951 {
4952
4953 ;
4954 return 0;
4955 }
4956 _ACEOF
4957 if ac_fn_c_try_compile "$LINENO"
4958 then :
4959
4960 else case e in #(
4961 e) ac_c_werror_flag=$ac_save_c_werror_flag
4962 CFLAGS="-g"
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4965
4966 int
4967 main (void)
4968 {
4969
4970 ;
4971 return 0;
4972 }
4973 _ACEOF
4974 if ac_fn_c_try_compile "$LINENO"
4975 then :
4976 ac_cv_prog_cc_g=yes
4977 fi
4978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4979 esac
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4982 esac
4983 fi
4984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4985 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4986 esac
4987 fi
4988 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4989 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
4990 if test $ac_test_CFLAGS; then
4991 CFLAGS=$ac_save_CFLAGS
4992 elif test $ac_cv_prog_cc_g = yes; then
4993 if test "$GCC" = yes; then
4994 CFLAGS="-g -O2"
4995 else
4996 CFLAGS="-g"
4997 fi
4998 else
4999 if test "$GCC" = yes; then
5000 CFLAGS="-O2"
5001 else
5002 CFLAGS=
5003 fi
5004 fi
5005 ac_prog_cc_stdc=no
5006 if test x$ac_prog_cc_stdc = xno
5007 then :
5008 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
5009 printf %s "checking for $CC option to enable C23 features... " >&6; }
5010 if test ${ac_cv_prog_cc_c23+y}
5011 then :
5012 printf %s "(cached) " >&6
5013 else case e in #(
5014 e) ac_cv_prog_cc_c23=no
5015 ac_save_CC=$CC
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018 $ac_c_conftest_c23_program
5019 _ACEOF
5020 for ac_arg in '' -std=gnu23
5021 do
5022 CC="$ac_save_CC $ac_arg"
5023 if ac_fn_c_try_compile "$LINENO"
5024 then :
5025 ac_cv_prog_cc_c23=$ac_arg
5026 fi
5027 rm -f core conftest.err conftest.$ac_objext conftest.beam
5028 test "x$ac_cv_prog_cc_c23" != "xno" && break
5029 done
5030 rm -f conftest.$ac_ext
5031 CC=$ac_save_CC ;;
5032 esac
5033 fi
5034
5035 if test "x$ac_cv_prog_cc_c23" = xno
5036 then :
5037 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5038 printf '%s\n' "unsupported" >&6; }
5039 else case e in #(
5040 e) if test "x$ac_cv_prog_cc_c23" = x
5041 then :
5042 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5043 printf '%s\n' "none needed" >&6; }
5044 else case e in #(
5045 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
5046 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
5047 CC="$CC $ac_cv_prog_cc_c23" ;;
5048 esac
5049 fi
5050 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
5051 ac_prog_cc_stdc=c23 ;;
5052 esac
5053 fi
5054 fi
5055 if test x$ac_prog_cc_stdc = xno
5056 then :
5057 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5058 printf %s "checking for $CC option to enable C11 features... " >&6; }
5059 if test ${ac_cv_prog_cc_c11+y}
5060 then :
5061 printf %s "(cached) " >&6
5062 else case e in #(
5063 e) ac_cv_prog_cc_c11=no
5064 ac_save_CC=$CC
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 $ac_c_conftest_c11_program
5068 _ACEOF
5069 for ac_arg in '' -std=gnu11 -std:c11
5070 do
5071 CC="$ac_save_CC $ac_arg"
5072 if ac_fn_c_try_compile "$LINENO"
5073 then :
5074 ac_cv_prog_cc_c11=$ac_arg
5075 fi
5076 rm -f core conftest.err conftest.$ac_objext conftest.beam
5077 test "x$ac_cv_prog_cc_c11" != "xno" && break
5078 done
5079 rm -f conftest.$ac_ext
5080 CC=$ac_save_CC ;;
5081 esac
5082 fi
5083
5084 if test "x$ac_cv_prog_cc_c11" = xno
5085 then :
5086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5087 printf '%s\n' "unsupported" >&6; }
5088 else case e in #(
5089 e) if test "x$ac_cv_prog_cc_c11" = x
5090 then :
5091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5092 printf '%s\n' "none needed" >&6; }
5093 else case e in #(
5094 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5095 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
5096 CC="$CC $ac_cv_prog_cc_c11" ;;
5097 esac
5098 fi
5099 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5100 ac_prog_cc_stdc=c11 ;;
5101 esac
5102 fi
5103 fi
5104 if test x$ac_prog_cc_stdc = xno
5105 then :
5106 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5107 printf %s "checking for $CC option to enable C99 features... " >&6; }
5108 if test ${ac_cv_prog_cc_c99+y}
5109 then :
5110 printf %s "(cached) " >&6
5111 else case e in #(
5112 e) ac_cv_prog_cc_c99=no
5113 ac_save_CC=$CC
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 $ac_c_conftest_c99_program
5117 _ACEOF
5118 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5119 do
5120 CC="$ac_save_CC $ac_arg"
5121 if ac_fn_c_try_compile "$LINENO"
5122 then :
5123 ac_cv_prog_cc_c99=$ac_arg
5124 fi
5125 rm -f core conftest.err conftest.$ac_objext conftest.beam
5126 test "x$ac_cv_prog_cc_c99" != "xno" && break
5127 done
5128 rm -f conftest.$ac_ext
5129 CC=$ac_save_CC ;;
5130 esac
5131 fi
5132
5133 if test "x$ac_cv_prog_cc_c99" = xno
5134 then :
5135 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5136 printf '%s\n' "unsupported" >&6; }
5137 else case e in #(
5138 e) if test "x$ac_cv_prog_cc_c99" = x
5139 then :
5140 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5141 printf '%s\n' "none needed" >&6; }
5142 else case e in #(
5143 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5144 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
5145 CC="$CC $ac_cv_prog_cc_c99" ;;
5146 esac
5147 fi
5148 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5149 ac_prog_cc_stdc=c99 ;;
5150 esac
5151 fi
5152 fi
5153 if test x$ac_prog_cc_stdc = xno
5154 then :
5155 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5156 printf %s "checking for $CC option to enable C89 features... " >&6; }
5157 if test ${ac_cv_prog_cc_c89+y}
5158 then :
5159 printf %s "(cached) " >&6
5160 else case e in #(
5161 e) ac_cv_prog_cc_c89=no
5162 ac_save_CC=$CC
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165 $ac_c_conftest_c89_program
5166 _ACEOF
5167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5168 do
5169 CC="$ac_save_CC $ac_arg"
5170 if ac_fn_c_try_compile "$LINENO"
5171 then :
5172 ac_cv_prog_cc_c89=$ac_arg
5173 fi
5174 rm -f core conftest.err conftest.$ac_objext conftest.beam
5175 test "x$ac_cv_prog_cc_c89" != "xno" && break
5176 done
5177 rm -f conftest.$ac_ext
5178 CC=$ac_save_CC ;;
5179 esac
5180 fi
5181
5182 if test "x$ac_cv_prog_cc_c89" = xno
5183 then :
5184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5185 printf '%s\n' "unsupported" >&6; }
5186 else case e in #(
5187 e) if test "x$ac_cv_prog_cc_c89" = x
5188 then :
5189 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5190 printf '%s\n' "none needed" >&6; }
5191 else case e in #(
5192 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5193 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
5194 CC="$CC $ac_cv_prog_cc_c89" ;;
5195 esac
5196 fi
5197 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5198 ac_prog_cc_stdc=c89 ;;
5199 esac
5200 fi
5201 fi
5202
5203 ac_ext=c
5204 ac_cpp='$CPP $CPPFLAGS'
5205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5208
5209
5210 ac_ext=c
5211 ac_cpp='$CPP $CPPFLAGS'
5212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5215 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5216 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5217 if test ${am_cv_prog_cc_c_o+y}
5218 then :
5219 printf %s "(cached) " >&6
5220 else case e in #(
5221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223
5224 int
5225 main (void)
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 # Make sure it works both with $CC and with simple cc.
5233 # Following AC_PROG_CC_C_O, we do the test twice because some
5234 # compilers refuse to overwrite an existing .o file with -o,
5235 # though they will create one.
5236 am_cv_prog_cc_c_o=yes
5237 for am_i in 1 2; do
5238 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5239 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } \
5243 && test -f conftest2.$ac_objext; then
5244 : OK
5245 else
5246 am_cv_prog_cc_c_o=no
5247 break
5248 fi
5249 done
5250 # aligned with autoconf, so not including core; see bug#72225.
5251 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5252 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5253 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5254 unset am_i ;;
5255 esac
5256 fi
5257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5258 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
5259 if test "$am_cv_prog_cc_c_o" != yes; then
5260 # Losing compiler, so override with the script.
5261 # FIXME: It is wrong to rewrite CC.
5262 # But if we don't then we get into trouble of one sort or another.
5263 # A longer-term fix would be to have automake use am__CC in this case,
5264 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5265 CC="$am_aux_dir/compile $CC"
5266 fi
5267 ac_ext=c
5268 ac_cpp='$CPP $CPPFLAGS'
5269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5272
5273
5274 depcc="$CC" am_compiler_list=
5275
5276 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5277 printf %s "checking dependency style of $depcc... " >&6; }
5278 if test ${am_cv_CC_dependencies_compiler_type+y}
5279 then :
5280 printf %s "(cached) " >&6
5281 else case e in #(
5282 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5283 # We make a subdir and do the tests there. Otherwise we can end up
5284 # making bogus files that we don't know about and never remove. For
5285 # instance it was reported that on HP-UX the gcc test will end up
5286 # making a dummy file named 'D' -- because '-MD' means "put the output
5287 # in D".
5288 rm -rf conftest.dir
5289 mkdir conftest.dir
5290 # Copy depcomp to subdir because otherwise we won't find it if we're
5291 # using a relative directory.
5292 cp "$am_depcomp" conftest.dir
5293 cd conftest.dir
5294 # We will build objects and dependencies in a subdirectory because
5295 # it helps to detect inapplicable dependency modes. For instance
5296 # both Tru64's cc and ICC support -MD to output dependencies as a
5297 # side effect of compilation, but ICC will put the dependencies in
5298 # the current directory while Tru64 will put them in the object
5299 # directory.
5300 mkdir sub
5301
5302 am_cv_CC_dependencies_compiler_type=none
5303 if test "$am_compiler_list" = ""; then
5304 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5305 fi
5306 am__universal=false
5307 case " $depcc " in #(
5308 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5309 esac
5310
5311 for depmode in $am_compiler_list; do
5312 # Setup a source with many dependencies, because some compilers
5313 # like to wrap large dependency lists on column 80 (with \), and
5314 # we should not choose a depcomp mode which is confused by this.
5315 #
5316 # We need to recreate these files for each test, as the compiler may
5317 # overwrite some of them when testing with obscure command lines.
5318 # This happens at least with the AIX C compiler.
5319 : > sub/conftest.c
5320 for i in 1 2 3 4 5 6; do
5321 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5322 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5323 # Solaris 10 /bin/sh.
5324 echo '/* dummy */' > sub/conftst$i.h
5325 done
5326 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5327
5328 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5329 # mode. It turns out that the SunPro C++ compiler does not properly
5330 # handle '-M -o', and we need to detect this. Also, some Intel
5331 # versions had trouble with output in subdirs.
5332 am__obj=sub/conftest.${OBJEXT-o}
5333 am__minus_obj="-o $am__obj"
5334 case $depmode in
5335 gcc)
5336 # This depmode causes a compiler race in universal mode.
5337 test "$am__universal" = false || continue
5338 ;;
5339 nosideeffect)
5340 # After this tag, mechanisms are not by side-effect, so they'll
5341 # only be used when explicitly requested.
5342 if test "x$enable_dependency_tracking" = xyes; then
5343 continue
5344 else
5345 break
5346 fi
5347 ;;
5348 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5349 # This compiler won't grok '-c -o', but also, the minuso test has
5350 # not run yet. These depmodes are late enough in the game, and
5351 # so weak that their functioning should not be impacted.
5352 am__obj=conftest.${OBJEXT-o}
5353 am__minus_obj=
5354 ;;
5355 none) break ;;
5356 esac
5357 if depmode=$depmode \
5358 source=sub/conftest.c object=$am__obj \
5359 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5360 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5361 >/dev/null 2>conftest.err &&
5362 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5363 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5364 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5365 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5366 # icc doesn't choke on unknown options, it will just issue warnings
5367 # or remarks (even with -Werror). So we grep stderr for any message
5368 # that says an option was ignored or not supported.
5369 # When given -MP, icc 7.0 and 7.1 complain thus:
5370 # icc: Command line warning: ignoring option '-M'; no argument required
5371 # The diagnosis changed in icc 8.0:
5372 # icc: Command line remark: option '-MP' not supported
5373 if (grep 'ignoring option' conftest.err ||
5374 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5375 am_cv_CC_dependencies_compiler_type=$depmode
5376 break
5377 fi
5378 fi
5379 done
5380
5381 cd ..
5382 rm -rf conftest.dir
5383 else
5384 am_cv_CC_dependencies_compiler_type=none
5385 fi
5386 ;;
5387 esac
5388 fi
5389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5390 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
5391 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5392
5393 if
5394 test "x$enable_dependency_tracking" != xno \
5395 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5396 am__fastdepCC_TRUE=
5397 am__fastdepCC_FALSE='#'
5398 else
5399 am__fastdepCC_TRUE='#'
5400 am__fastdepCC_FALSE=
5401 fi
5402
5403
5404
5405 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5406 printf %s "checking for C/C++ restrict keyword... " >&6; }
5407 if test ${ac_cv_c_restrict+y}
5408 then :
5409 printf %s "(cached) " >&6
5410 else case e in #(
5411 e) ac_cv_c_restrict=no
5412 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
5413 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
5414 # Put 'restrict' last, because C++ lacks it.
5415 for ac_kw in __restrict__ __restrict _Restrict restrict; do
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 typedef int *int_ptr;
5419 int foo (int_ptr $ac_kw ip) { return ip[0]; }
5420 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
5421 int bar (int ip[$ac_kw]) { return ip[0]; }
5422
5423 int
5424 main (void)
5425 {
5426 int s[1];
5427 int *$ac_kw t = s;
5428 t[0] = 0;
5429 return foo (t) + bar (t);
5430
5431 ;
5432 return 0;
5433 }
5434 _ACEOF
5435 if ac_fn_c_try_compile "$LINENO"
5436 then :
5437 ac_cv_c_restrict=$ac_kw
5438 fi
5439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5440 test "$ac_cv_c_restrict" != no && break
5441 done
5442 ;;
5443 esac
5444 fi
5445 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5446 printf '%s\n' "$ac_cv_c_restrict" >&6; }
5447
5448 case $ac_cv_c_restrict in
5449 restrict) ;;
5450 no) printf '%s\n' "#define restrict /**/" >>confdefs.h
5451 ;;
5452 *) printf '%s\n' "#define restrict $ac_cv_c_restrict" >>confdefs.h
5453 ;;
5454 esac
5455
5456
5457 ac_ext=c
5458 ac_cpp='$CPP $CPPFLAGS'
5459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5462 if test -n "$ac_tool_prefix"; then
5463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5465 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 printf %s "checking for $ac_word... " >&6; }
5467 if test ${ac_cv_prog_CC+y}
5468 then :
5469 printf %s "(cached) " >&6
5470 else case e in #(
5471 e) if test -n "$CC"; then
5472 ac_cv_prog_CC="$CC" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477 IFS=$as_save_IFS
5478 case $as_dir in #(((
5479 '') as_dir=./ ;;
5480 */) ;;
5481 *) as_dir=$as_dir/ ;;
5482 esac
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5486 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5487 break 2
5488 fi
5489 done
5490 done
5491 IFS=$as_save_IFS
5492
5493 fi ;;
5494 esac
5495 fi
5496 CC=$ac_cv_prog_CC
5497 if test -n "$CC"; then
5498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5499 printf '%s\n' "$CC" >&6; }
5500 else
5501 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 printf '%s\n' "no" >&6; }
5503 fi
5504
5505
5506 fi
5507 if test -z "$ac_cv_prog_CC"; then
5508 ac_ct_CC=$CC
5509 # Extract the first word of "gcc", so it can be a program name with args.
5510 set dummy gcc; ac_word=$2
5511 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 printf %s "checking for $ac_word... " >&6; }
5513 if test ${ac_cv_prog_ac_ct_CC+y}
5514 then :
5515 printf %s "(cached) " >&6
5516 else case e in #(
5517 e) if test -n "$ac_ct_CC"; then
5518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523 IFS=$as_save_IFS
5524 case $as_dir in #(((
5525 '') as_dir=./ ;;
5526 */) ;;
5527 *) as_dir=$as_dir/ ;;
5528 esac
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5531 ac_cv_prog_ac_ct_CC="gcc"
5532 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535 done
5536 done
5537 IFS=$as_save_IFS
5538
5539 fi ;;
5540 esac
5541 fi
5542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5543 if test -n "$ac_ct_CC"; then
5544 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5545 printf '%s\n' "$ac_ct_CC" >&6; }
5546 else
5547 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 printf '%s\n' "no" >&6; }
5549 fi
5550
5551 if test "x$ac_ct_CC" = x; then
5552 CC=""
5553 else
5554 case $cross_compiling:$ac_tool_warned in
5555 yes:)
5556 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558 ac_tool_warned=yes ;;
5559 esac
5560 CC=$ac_ct_CC
5561 fi
5562 else
5563 CC="$ac_cv_prog_CC"
5564 fi
5565
5566 if test -z "$CC"; then
5567 if test -n "$ac_tool_prefix"; then
5568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5569 set dummy ${ac_tool_prefix}cc; ac_word=$2
5570 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 printf %s "checking for $ac_word... " >&6; }
5572 if test ${ac_cv_prog_CC+y}
5573 then :
5574 printf %s "(cached) " >&6
5575 else case e in #(
5576 e) if test -n "$CC"; then
5577 ac_cv_prog_CC="$CC" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582 IFS=$as_save_IFS
5583 case $as_dir in #(((
5584 '') as_dir=./ ;;
5585 */) ;;
5586 *) as_dir=$as_dir/ ;;
5587 esac
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_CC="${ac_tool_prefix}cc"
5591 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5592 break 2
5593 fi
5594 done
5595 done
5596 IFS=$as_save_IFS
5597
5598 fi ;;
5599 esac
5600 fi
5601 CC=$ac_cv_prog_CC
5602 if test -n "$CC"; then
5603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5604 printf '%s\n' "$CC" >&6; }
5605 else
5606 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 printf '%s\n' "no" >&6; }
5608 fi
5609
5610
5611 fi
5612 fi
5613 if test -z "$CC"; then
5614 # Extract the first word of "cc", so it can be a program name with args.
5615 set dummy cc; ac_word=$2
5616 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 printf %s "checking for $ac_word... " >&6; }
5618 if test ${ac_cv_prog_CC+y}
5619 then :
5620 printf %s "(cached) " >&6
5621 else case e in #(
5622 e) if test -n "$CC"; then
5623 ac_cv_prog_CC="$CC" # Let the user override the test.
5624 else
5625 ac_prog_rejected=no
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629 IFS=$as_save_IFS
5630 case $as_dir in #(((
5631 '') as_dir=./ ;;
5632 */) ;;
5633 *) as_dir=$as_dir/ ;;
5634 esac
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5637 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5638 ac_prog_rejected=yes
5639 continue
5640 fi
5641 ac_cv_prog_CC="cc"
5642 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5643 break 2
5644 fi
5645 done
5646 done
5647 IFS=$as_save_IFS
5648
5649 if test $ac_prog_rejected = yes; then
5650 # We found a bogon in the path, so make sure we never use it.
5651 set dummy $ac_cv_prog_CC
5652 shift
5653 if test $# != 0; then
5654 # We chose a different compiler from the bogus one.
5655 # However, it has the same basename, so the bogon will be chosen
5656 # first if we set CC to just the basename; use the full file name.
5657 shift
5658 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5659 fi
5660 fi
5661 fi ;;
5662 esac
5663 fi
5664 CC=$ac_cv_prog_CC
5665 if test -n "$CC"; then
5666 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5667 printf '%s\n' "$CC" >&6; }
5668 else
5669 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 printf '%s\n' "no" >&6; }
5671 fi
5672
5673
5674 fi
5675 if test -z "$CC"; then
5676 if test -n "$ac_tool_prefix"; then
5677 for ac_prog in cl.exe
5678 do
5679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 printf %s "checking for $ac_word... " >&6; }
5683 if test ${ac_cv_prog_CC+y}
5684 then :
5685 printf %s "(cached) " >&6
5686 else case e in #(
5687 e) if test -n "$CC"; then
5688 ac_cv_prog_CC="$CC" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693 IFS=$as_save_IFS
5694 case $as_dir in #(((
5695 '') as_dir=./ ;;
5696 */) ;;
5697 *) as_dir=$as_dir/ ;;
5698 esac
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5702 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705 done
5706 done
5707 IFS=$as_save_IFS
5708
5709 fi ;;
5710 esac
5711 fi
5712 CC=$ac_cv_prog_CC
5713 if test -n "$CC"; then
5714 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5715 printf '%s\n' "$CC" >&6; }
5716 else
5717 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 printf '%s\n' "no" >&6; }
5719 fi
5720
5721
5722 test -n "$CC" && break
5723 done
5724 fi
5725 if test -z "$CC"; then
5726 ac_ct_CC=$CC
5727 for ac_prog in cl.exe
5728 do
5729 # Extract the first word of "$ac_prog", so it can be a program name with args.
5730 set dummy $ac_prog; ac_word=$2
5731 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732 printf %s "checking for $ac_word... " >&6; }
5733 if test ${ac_cv_prog_ac_ct_CC+y}
5734 then :
5735 printf %s "(cached) " >&6
5736 else case e in #(
5737 e) if test -n "$ac_ct_CC"; then
5738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743 IFS=$as_save_IFS
5744 case $as_dir in #(((
5745 '') as_dir=./ ;;
5746 */) ;;
5747 *) as_dir=$as_dir/ ;;
5748 esac
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5751 ac_cv_prog_ac_ct_CC="$ac_prog"
5752 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5753 break 2
5754 fi
5755 done
5756 done
5757 IFS=$as_save_IFS
5758
5759 fi ;;
5760 esac
5761 fi
5762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5763 if test -n "$ac_ct_CC"; then
5764 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5765 printf '%s\n' "$ac_ct_CC" >&6; }
5766 else
5767 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 printf '%s\n' "no" >&6; }
5769 fi
5770
5771
5772 test -n "$ac_ct_CC" && break
5773 done
5774
5775 if test "x$ac_ct_CC" = x; then
5776 CC=""
5777 else
5778 case $cross_compiling:$ac_tool_warned in
5779 yes:)
5780 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5781 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5782 ac_tool_warned=yes ;;
5783 esac
5784 CC=$ac_ct_CC
5785 fi
5786 fi
5787
5788 fi
5789 if test -z "$CC"; then
5790 if test -n "$ac_tool_prefix"; then
5791 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5792 set dummy ${ac_tool_prefix}clang; ac_word=$2
5793 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 printf %s "checking for $ac_word... " >&6; }
5795 if test ${ac_cv_prog_CC+y}
5796 then :
5797 printf %s "(cached) " >&6
5798 else case e in #(
5799 e) if test -n "$CC"; then
5800 ac_cv_prog_CC="$CC" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805 IFS=$as_save_IFS
5806 case $as_dir in #(((
5807 '') as_dir=./ ;;
5808 */) ;;
5809 *) as_dir=$as_dir/ ;;
5810 esac
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_CC="${ac_tool_prefix}clang"
5814 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5815 break 2
5816 fi
5817 done
5818 done
5819 IFS=$as_save_IFS
5820
5821 fi ;;
5822 esac
5823 fi
5824 CC=$ac_cv_prog_CC
5825 if test -n "$CC"; then
5826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5827 printf '%s\n' "$CC" >&6; }
5828 else
5829 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 printf '%s\n' "no" >&6; }
5831 fi
5832
5833
5834 fi
5835 if test -z "$ac_cv_prog_CC"; then
5836 ac_ct_CC=$CC
5837 # Extract the first word of "clang", so it can be a program name with args.
5838 set dummy clang; ac_word=$2
5839 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 printf %s "checking for $ac_word... " >&6; }
5841 if test ${ac_cv_prog_ac_ct_CC+y}
5842 then :
5843 printf %s "(cached) " >&6
5844 else case e in #(
5845 e) if test -n "$ac_ct_CC"; then
5846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851 IFS=$as_save_IFS
5852 case $as_dir in #(((
5853 '') as_dir=./ ;;
5854 */) ;;
5855 *) as_dir=$as_dir/ ;;
5856 esac
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5859 ac_cv_prog_ac_ct_CC="clang"
5860 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5861 break 2
5862 fi
5863 done
5864 done
5865 IFS=$as_save_IFS
5866
5867 fi ;;
5868 esac
5869 fi
5870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5871 if test -n "$ac_ct_CC"; then
5872 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5873 printf '%s\n' "$ac_ct_CC" >&6; }
5874 else
5875 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 printf '%s\n' "no" >&6; }
5877 fi
5878
5879 if test "x$ac_ct_CC" = x; then
5880 CC=""
5881 else
5882 case $cross_compiling:$ac_tool_warned in
5883 yes:)
5884 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5885 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5886 ac_tool_warned=yes ;;
5887 esac
5888 CC=$ac_ct_CC
5889 fi
5890 else
5891 CC="$ac_cv_prog_CC"
5892 fi
5893
5894 fi
5895
5896
5897 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5898 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
5899 as_fn_error $? "no acceptable C compiler found in \$PATH
5900 See 'config.log' for more details" "$LINENO" 5; }
5901
5902 # Provide some information about the compiler.
5903 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5904 set X $ac_compile
5905 ac_compiler=$2
5906 for ac_option in --version -v -V -qversion -version; do
5907 { { ac_try="$ac_compiler $ac_option >&5"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5913 printf '%s\n' "$ac_try_echo"; } >&5
5914 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5915 ac_status=$?
5916 if test -s conftest.err; then
5917 sed '10a\
5918 ... rest of stderr output deleted ...
5919 10q' conftest.err >conftest.er1
5920 cat conftest.er1 >&5
5921 fi
5922 rm -f conftest.er1 conftest.err
5923 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5924 test $ac_status = 0; }
5925 done
5926
5927 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5928 printf %s "checking whether the compiler supports GNU C... " >&6; }
5929 if test ${ac_cv_c_compiler_gnu+y}
5930 then :
5931 printf %s "(cached) " >&6
5932 else case e in #(
5933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935
5936 int
5937 main (void)
5938 {
5939 #ifndef __GNUC__
5940 choke me
5941 #endif
5942
5943 ;
5944 return 0;
5945 }
5946 _ACEOF
5947 if ac_fn_c_try_compile "$LINENO"
5948 then :
5949 ac_compiler_gnu=yes
5950 else case e in #(
5951 e) ac_compiler_gnu=no ;;
5952 esac
5953 fi
5954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5956 ;;
5957 esac
5958 fi
5959 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5960 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
5961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5962
5963 if test $ac_compiler_gnu = yes; then
5964 GCC=yes
5965 else
5966 GCC=
5967 fi
5968 ac_test_CFLAGS=${CFLAGS+y}
5969 ac_save_CFLAGS=$CFLAGS
5970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5971 printf %s "checking whether $CC accepts -g... " >&6; }
5972 if test ${ac_cv_prog_cc_g+y}
5973 then :
5974 printf %s "(cached) " >&6
5975 else case e in #(
5976 e) ac_save_c_werror_flag=$ac_c_werror_flag
5977 ac_c_werror_flag=yes
5978 ac_cv_prog_cc_g=no
5979 CFLAGS="-g"
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982
5983 int
5984 main (void)
5985 {
5986
5987 ;
5988 return 0;
5989 }
5990 _ACEOF
5991 if ac_fn_c_try_compile "$LINENO"
5992 then :
5993 ac_cv_prog_cc_g=yes
5994 else case e in #(
5995 e) CFLAGS=""
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
5998
5999 int
6000 main (void)
6001 {
6002
6003 ;
6004 return 0;
6005 }
6006 _ACEOF
6007 if ac_fn_c_try_compile "$LINENO"
6008 then :
6009
6010 else case e in #(
6011 e) ac_c_werror_flag=$ac_save_c_werror_flag
6012 CFLAGS="-g"
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015
6016 int
6017 main (void)
6018 {
6019
6020 ;
6021 return 0;
6022 }
6023 _ACEOF
6024 if ac_fn_c_try_compile "$LINENO"
6025 then :
6026 ac_cv_prog_cc_g=yes
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6029 esac
6030 fi
6031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6032 esac
6033 fi
6034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6035 ac_c_werror_flag=$ac_save_c_werror_flag ;;
6036 esac
6037 fi
6038 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6039 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
6040 if test $ac_test_CFLAGS; then
6041 CFLAGS=$ac_save_CFLAGS
6042 elif test $ac_cv_prog_cc_g = yes; then
6043 if test "$GCC" = yes; then
6044 CFLAGS="-g -O2"
6045 else
6046 CFLAGS="-g"
6047 fi
6048 else
6049 if test "$GCC" = yes; then
6050 CFLAGS="-O2"
6051 else
6052 CFLAGS=
6053 fi
6054 fi
6055 ac_prog_cc_stdc=no
6056 if test x$ac_prog_cc_stdc = xno
6057 then :
6058 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
6059 printf %s "checking for $CC option to enable C23 features... " >&6; }
6060 if test ${ac_cv_prog_cc_c23+y}
6061 then :
6062 printf %s "(cached) " >&6
6063 else case e in #(
6064 e) ac_cv_prog_cc_c23=no
6065 ac_save_CC=$CC
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 $ac_c_conftest_c23_program
6069 _ACEOF
6070 for ac_arg in '' -std=gnu23
6071 do
6072 CC="$ac_save_CC $ac_arg"
6073 if ac_fn_c_try_compile "$LINENO"
6074 then :
6075 ac_cv_prog_cc_c23=$ac_arg
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext conftest.beam
6078 test "x$ac_cv_prog_cc_c23" != "xno" && break
6079 done
6080 rm -f conftest.$ac_ext
6081 CC=$ac_save_CC ;;
6082 esac
6083 fi
6084
6085 if test "x$ac_cv_prog_cc_c23" = xno
6086 then :
6087 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6088 printf '%s\n' "unsupported" >&6; }
6089 else case e in #(
6090 e) if test "x$ac_cv_prog_cc_c23" = x
6091 then :
6092 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6093 printf '%s\n' "none needed" >&6; }
6094 else case e in #(
6095 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
6096 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
6097 CC="$CC $ac_cv_prog_cc_c23" ;;
6098 esac
6099 fi
6100 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
6101 ac_prog_cc_stdc=c23 ;;
6102 esac
6103 fi
6104 fi
6105 if test x$ac_prog_cc_stdc = xno
6106 then :
6107 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6108 printf %s "checking for $CC option to enable C11 features... " >&6; }
6109 if test ${ac_cv_prog_cc_c11+y}
6110 then :
6111 printf %s "(cached) " >&6
6112 else case e in #(
6113 e) ac_cv_prog_cc_c11=no
6114 ac_save_CC=$CC
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117 $ac_c_conftest_c11_program
6118 _ACEOF
6119 for ac_arg in '' -std=gnu11 -std:c11
6120 do
6121 CC="$ac_save_CC $ac_arg"
6122 if ac_fn_c_try_compile "$LINENO"
6123 then :
6124 ac_cv_prog_cc_c11=$ac_arg
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext conftest.beam
6127 test "x$ac_cv_prog_cc_c11" != "xno" && break
6128 done
6129 rm -f conftest.$ac_ext
6130 CC=$ac_save_CC ;;
6131 esac
6132 fi
6133
6134 if test "x$ac_cv_prog_cc_c11" = xno
6135 then :
6136 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6137 printf '%s\n' "unsupported" >&6; }
6138 else case e in #(
6139 e) if test "x$ac_cv_prog_cc_c11" = x
6140 then :
6141 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6142 printf '%s\n' "none needed" >&6; }
6143 else case e in #(
6144 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6145 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
6146 CC="$CC $ac_cv_prog_cc_c11" ;;
6147 esac
6148 fi
6149 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6150 ac_prog_cc_stdc=c11 ;;
6151 esac
6152 fi
6153 fi
6154 if test x$ac_prog_cc_stdc = xno
6155 then :
6156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6157 printf %s "checking for $CC option to enable C99 features... " >&6; }
6158 if test ${ac_cv_prog_cc_c99+y}
6159 then :
6160 printf %s "(cached) " >&6
6161 else case e in #(
6162 e) ac_cv_prog_cc_c99=no
6163 ac_save_CC=$CC
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166 $ac_c_conftest_c99_program
6167 _ACEOF
6168 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6169 do
6170 CC="$ac_save_CC $ac_arg"
6171 if ac_fn_c_try_compile "$LINENO"
6172 then :
6173 ac_cv_prog_cc_c99=$ac_arg
6174 fi
6175 rm -f core conftest.err conftest.$ac_objext conftest.beam
6176 test "x$ac_cv_prog_cc_c99" != "xno" && break
6177 done
6178 rm -f conftest.$ac_ext
6179 CC=$ac_save_CC ;;
6180 esac
6181 fi
6182
6183 if test "x$ac_cv_prog_cc_c99" = xno
6184 then :
6185 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6186 printf '%s\n' "unsupported" >&6; }
6187 else case e in #(
6188 e) if test "x$ac_cv_prog_cc_c99" = x
6189 then :
6190 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6191 printf '%s\n' "none needed" >&6; }
6192 else case e in #(
6193 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6194 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
6195 CC="$CC $ac_cv_prog_cc_c99" ;;
6196 esac
6197 fi
6198 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6199 ac_prog_cc_stdc=c99 ;;
6200 esac
6201 fi
6202 fi
6203 if test x$ac_prog_cc_stdc = xno
6204 then :
6205 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6206 printf %s "checking for $CC option to enable C89 features... " >&6; }
6207 if test ${ac_cv_prog_cc_c89+y}
6208 then :
6209 printf %s "(cached) " >&6
6210 else case e in #(
6211 e) ac_cv_prog_cc_c89=no
6212 ac_save_CC=$CC
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215 $ac_c_conftest_c89_program
6216 _ACEOF
6217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6218 do
6219 CC="$ac_save_CC $ac_arg"
6220 if ac_fn_c_try_compile "$LINENO"
6221 then :
6222 ac_cv_prog_cc_c89=$ac_arg
6223 fi
6224 rm -f core conftest.err conftest.$ac_objext conftest.beam
6225 test "x$ac_cv_prog_cc_c89" != "xno" && break
6226 done
6227 rm -f conftest.$ac_ext
6228 CC=$ac_save_CC ;;
6229 esac
6230 fi
6231
6232 if test "x$ac_cv_prog_cc_c89" = xno
6233 then :
6234 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6235 printf '%s\n' "unsupported" >&6; }
6236 else case e in #(
6237 e) if test "x$ac_cv_prog_cc_c89" = x
6238 then :
6239 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6240 printf '%s\n' "none needed" >&6; }
6241 else case e in #(
6242 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6243 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
6244 CC="$CC $ac_cv_prog_cc_c89" ;;
6245 esac
6246 fi
6247 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6248 ac_prog_cc_stdc=c89 ;;
6249 esac
6250 fi
6251 fi
6252
6253 ac_ext=c
6254 ac_cpp='$CPP $CPPFLAGS'
6255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6258
6259
6260 ac_ext=c
6261 ac_cpp='$CPP $CPPFLAGS'
6262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6265 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6266 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6267 if test ${am_cv_prog_cc_c_o+y}
6268 then :
6269 printf %s "(cached) " >&6
6270 else case e in #(
6271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273
6274 int
6275 main (void)
6276 {
6277
6278 ;
6279 return 0;
6280 }
6281 _ACEOF
6282 # Make sure it works both with $CC and with simple cc.
6283 # Following AC_PROG_CC_C_O, we do the test twice because some
6284 # compilers refuse to overwrite an existing .o file with -o,
6285 # though they will create one.
6286 am_cv_prog_cc_c_o=yes
6287 for am_i in 1 2; do
6288 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6289 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } \
6293 && test -f conftest2.$ac_objext; then
6294 : OK
6295 else
6296 am_cv_prog_cc_c_o=no
6297 break
6298 fi
6299 done
6300 # aligned with autoconf, so not including core; see bug#72225.
6301 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
6302 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
6303 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
6304 unset am_i ;;
6305 esac
6306 fi
6307 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6308 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
6309 if test "$am_cv_prog_cc_c_o" != yes; then
6310 # Losing compiler, so override with the script.
6311 # FIXME: It is wrong to rewrite CC.
6312 # But if we don't then we get into trouble of one sort or another.
6313 # A longer-term fix would be to have automake use am__CC in this case,
6314 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6315 CC="$am_aux_dir/compile $CC"
6316 fi
6317 ac_ext=c
6318 ac_cpp='$CPP $CPPFLAGS'
6319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6322
6323
6324 depcc="$CC" am_compiler_list=
6325
6326 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6327 printf %s "checking dependency style of $depcc... " >&6; }
6328 if test ${am_cv_CC_dependencies_compiler_type+y}
6329 then :
6330 printf %s "(cached) " >&6
6331 else case e in #(
6332 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6333 # We make a subdir and do the tests there. Otherwise we can end up
6334 # making bogus files that we don't know about and never remove. For
6335 # instance it was reported that on HP-UX the gcc test will end up
6336 # making a dummy file named 'D' -- because '-MD' means "put the output
6337 # in D".
6338 rm -rf conftest.dir
6339 mkdir conftest.dir
6340 # Copy depcomp to subdir because otherwise we won't find it if we're
6341 # using a relative directory.
6342 cp "$am_depcomp" conftest.dir
6343 cd conftest.dir
6344 # We will build objects and dependencies in a subdirectory because
6345 # it helps to detect inapplicable dependency modes. For instance
6346 # both Tru64's cc and ICC support -MD to output dependencies as a
6347 # side effect of compilation, but ICC will put the dependencies in
6348 # the current directory while Tru64 will put them in the object
6349 # directory.
6350 mkdir sub
6351
6352 am_cv_CC_dependencies_compiler_type=none
6353 if test "$am_compiler_list" = ""; then
6354 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6355 fi
6356 am__universal=false
6357 case " $depcc " in #(
6358 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6359 esac
6360
6361 for depmode in $am_compiler_list; do
6362 # Setup a source with many dependencies, because some compilers
6363 # like to wrap large dependency lists on column 80 (with \), and
6364 # we should not choose a depcomp mode which is confused by this.
6365 #
6366 # We need to recreate these files for each test, as the compiler may
6367 # overwrite some of them when testing with obscure command lines.
6368 # This happens at least with the AIX C compiler.
6369 : > sub/conftest.c
6370 for i in 1 2 3 4 5 6; do
6371 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6372 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6373 # Solaris 10 /bin/sh.
6374 echo '/* dummy */' > sub/conftst$i.h
6375 done
6376 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6377
6378 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6379 # mode. It turns out that the SunPro C++ compiler does not properly
6380 # handle '-M -o', and we need to detect this. Also, some Intel
6381 # versions had trouble with output in subdirs.
6382 am__obj=sub/conftest.${OBJEXT-o}
6383 am__minus_obj="-o $am__obj"
6384 case $depmode in
6385 gcc)
6386 # This depmode causes a compiler race in universal mode.
6387 test "$am__universal" = false || continue
6388 ;;
6389 nosideeffect)
6390 # After this tag, mechanisms are not by side-effect, so they'll
6391 # only be used when explicitly requested.
6392 if test "x$enable_dependency_tracking" = xyes; then
6393 continue
6394 else
6395 break
6396 fi
6397 ;;
6398 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6399 # This compiler won't grok '-c -o', but also, the minuso test has
6400 # not run yet. These depmodes are late enough in the game, and
6401 # so weak that their functioning should not be impacted.
6402 am__obj=conftest.${OBJEXT-o}
6403 am__minus_obj=
6404 ;;
6405 none) break ;;
6406 esac
6407 if depmode=$depmode \
6408 source=sub/conftest.c object=$am__obj \
6409 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6410 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6411 >/dev/null 2>conftest.err &&
6412 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6413 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6414 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6415 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6416 # icc doesn't choke on unknown options, it will just issue warnings
6417 # or remarks (even with -Werror). So we grep stderr for any message
6418 # that says an option was ignored or not supported.
6419 # When given -MP, icc 7.0 and 7.1 complain thus:
6420 # icc: Command line warning: ignoring option '-M'; no argument required
6421 # The diagnosis changed in icc 8.0:
6422 # icc: Command line remark: option '-MP' not supported
6423 if (grep 'ignoring option' conftest.err ||
6424 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6425 am_cv_CC_dependencies_compiler_type=$depmode
6426 break
6427 fi
6428 fi
6429 done
6430
6431 cd ..
6432 rm -rf conftest.dir
6433 else
6434 am_cv_CC_dependencies_compiler_type=none
6435 fi
6436 ;;
6437 esac
6438 fi
6439 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6440 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
6441 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6442
6443 if
6444 test "x$enable_dependency_tracking" != xno \
6445 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6446 am__fastdepCC_TRUE=
6447 am__fastdepCC_FALSE='#'
6448 else
6449 am__fastdepCC_TRUE='#'
6450 am__fastdepCC_FALSE=
6451 fi
6452
6453
6454
6455
6456 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
6457 printf %s "checking whether ${CC-cc} accepts -fPIE... " >&6; }
6458 if test ${ac_cv_prog_cc_pie+y}
6459 then :
6460 printf %s "(cached) " >&6
6461 else case e in #(
6462 e)
6463 echo 'void f(){}' > conftest.c
6464 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
6465 ac_cv_prog_cc_pie=yes
6466 else
6467 ac_cv_prog_cc_pie=no
6468 fi
6469 rm -rf conftest*
6470 ;;
6471 esac
6472 fi
6473 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
6474 printf '%s\n' "$ac_cv_prog_cc_pie" >&6; }
6475
6476
6477 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fsanitize=address" >&5
6478 printf %s "checking whether ${CC-cc} accepts -fsanitize=address... " >&6; }
6479 if test ${ac_cv_prog_cc_asan+y}
6480 then :
6481 printf %s "(cached) " >&6
6482 else case e in #(
6483 e)
6484 echo 'void f(){}' > asan.c
6485 if test -z "`${CC-cc} -fsanitize=address -c asan.c 2>&1`"; then
6486 ac_cv_prog_cc_asan=yes
6487 else
6488 ac_cv_prog_cc_asan=no
6489 fi
6490 rm -rf asan*
6491 ;;
6492 esac
6493 fi
6494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_asan" >&5
6495 printf '%s\n' "$ac_cv_prog_cc_asan" >&6; }
6496
6497
6498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fsanitize=leak" >&5
6499 printf %s "checking whether ${CC-cc} accepts -fsanitize=leak... " >&6; }
6500 if test ${ac_cv_prog_cc_lsan+y}
6501 then :
6502 printf %s "(cached) " >&6
6503 else case e in #(
6504 e)
6505 echo 'void f(){}' > lsan.c
6506 if test -z "`${CC-cc} -fsanitize=leak -c lsan.c 2>&1`"; then
6507 ac_cv_prog_cc_lsan=yes
6508 else
6509 ac_cv_prog_cc_lsan=no
6510 fi
6511 rm -rf lsan*
6512 ;;
6513 esac
6514 fi
6515 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_lsan" >&5
6516 printf '%s\n' "$ac_cv_prog_cc_lsan" >&6; }
6517
6518
6519 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fsanitize=undefined" >&5
6520 printf %s "checking whether ${CC-cc} accepts -fsanitize=undefined... " >&6; }
6521 if test ${ac_cv_prog_cc_ubsan+y}
6522 then :
6523 printf %s "(cached) " >&6
6524 else case e in #(
6525 e)
6526 echo 'void f(){}' > ubsan.c
6527 if test -z "`${CC-cc} -fsanitize=undefined -c ubsan.c 2>&1`"; then
6528 ac_cv_prog_cc_ubsan=yes
6529 else
6530 ac_cv_prog_cc_ubsan=no
6531 fi
6532 rm -rf ubsan*
6533 ;;
6534 esac
6535 fi
6536 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_ubsan" >&5
6537 printf '%s\n' "$ac_cv_prog_cc_ubsan" >&6; }
6538
6539
6540
6541
6542
6543
6544
6545
6546 case `pwd` in
6547 *\ * | *\ *)
6548 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6549 printf '%s\n' "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6550 esac
6551
6552
6553
6554 macro_version='2.5.4'
6555 macro_revision='2.5.4'
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570 ltmain=$ac_aux_dir/ltmain.sh
6571
6572
6573
6574 # Make sure we can run config.sub.
6575 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6576 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6577
6578 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6579 printf %s "checking build system type... " >&6; }
6580 if test ${ac_cv_build+y}
6581 then :
6582 printf %s "(cached) " >&6
6583 else case e in #(
6584 e) ac_build_alias=$build_alias
6585 test "x$ac_build_alias" = x &&
6586 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6587 test "x$ac_build_alias" = x &&
6588 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6589 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6590 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6591 ;;
6592 esac
6593 fi
6594 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6595 printf '%s\n' "$ac_cv_build" >&6; }
6596 case $ac_cv_build in
6597 *-*-*) ;;
6598 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6599 esac
6600 build=$ac_cv_build
6601 ac_save_IFS=$IFS; IFS='-'
6602 set x $ac_cv_build
6603 shift
6604 build_cpu=$1
6605 build_vendor=$2
6606 shift; shift
6607 # Remember, the first character of IFS is used to create $*,
6608 # except with old shells:
6609 build_os=$*
6610 IFS=$ac_save_IFS
6611 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
6612
6613
6614 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6615 printf %s "checking host system type... " >&6; }
6616 if test ${ac_cv_host+y}
6617 then :
6618 printf %s "(cached) " >&6
6619 else case e in #(
6620 e) if test "x$host_alias" = x; then
6621 ac_cv_host=$ac_cv_build
6622 else
6623 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6624 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6625 fi
6626 ;;
6627 esac
6628 fi
6629 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6630 printf '%s\n' "$ac_cv_host" >&6; }
6631 case $ac_cv_host in
6632 *-*-*) ;;
6633 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6634 esac
6635 host=$ac_cv_host
6636 ac_save_IFS=$IFS; IFS='-'
6637 set x $ac_cv_host
6638 shift
6639 host_cpu=$1
6640 host_vendor=$2
6641 shift; shift
6642 # Remember, the first character of IFS is used to create $*,
6643 # except with old shells:
6644 host_os=$*
6645 IFS=$ac_save_IFS
6646 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
6647
6648
6649 # Backslashify metacharacters that are still active within
6650 # double-quoted strings.
6651 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6652
6653 # Same as above, but do not quote variable references.
6654 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6655
6656 # Sed substitution to delay expansion of an escaped shell variable in a
6657 # double_quote_subst'ed string.
6658 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6659
6660 # Sed substitution to delay expansion of an escaped single quote.
6661 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6662
6663 # Sed substitution to avoid accidental globbing in evaled expressions
6664 no_glob_subst='s/\*/\\\*/g'
6665
6666 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6667 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6668 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6669
6670 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6671 printf %s "checking how to print strings... " >&6; }
6672 # Test print first, because it will be a builtin if present.
6673 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6674 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6675 ECHO='print -r --'
6676 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6677 ECHO='printf %s\n'
6678 else
6679 # Use this function as a fallback that always works.
6680 func_fallback_echo ()
6681 {
6682 eval 'cat <<_LTECHO_EOF
6683 $1
6684 _LTECHO_EOF'
6685 }
6686 ECHO='func_fallback_echo'
6687 fi
6688
6689 # func_echo_all arg...
6690 # Invoke $ECHO with all args, space-separated.
6691 func_echo_all ()
6692 {
6693 $ECHO ""
6694 }
6695
6696 case $ECHO in
6697 printf*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6698 printf '%s\n' "printf" >&6; } ;;
6699 print*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6700 printf '%s\n' "print -r" >&6; } ;;
6701 *) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6702 printf '%s\n' "cat" >&6; } ;;
6703 esac
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6719 printf %s "checking for a sed that does not truncate output... " >&6; }
6720 if test ${ac_cv_path_SED+y}
6721 then :
6722 printf %s "(cached) " >&6
6723 else case e in #(
6724 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6725 for ac_i in 1 2 3 4 5 6 7; do
6726 ac_script="$ac_script$as_nl$ac_script"
6727 done
6728 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6729 { ac_script=; unset ac_script;}
6730 if test -z "$SED"; then
6731 ac_path_SED_found=false
6732 # Loop through the user's path and test for each of PROGNAME-LIST
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736 IFS=$as_save_IFS
6737 case $as_dir in #(((
6738 '') as_dir=./ ;;
6739 */) ;;
6740 *) as_dir=$as_dir/ ;;
6741 esac
6742 for ac_prog in sed gsed
6743 do
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6746 as_fn_executable_p "$ac_path_SED" || continue
6747 # Check for GNU ac_path_SED and select it if it is found.
6748 # Check for GNU $ac_path_SED
6749 case `"$ac_path_SED" --version 2>&1` in #(
6750 *GNU*)
6751 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6752 #(
6753 *)
6754 ac_count=0
6755 printf %s 0123456789 >"conftest.in"
6756 while :
6757 do
6758 cat "conftest.in" "conftest.in" >"conftest.tmp"
6759 mv "conftest.tmp" "conftest.in"
6760 cp "conftest.in" "conftest.nl"
6761 printf '%s\n' '' >> "conftest.nl"
6762 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6764 as_fn_arith $ac_count + 1 && ac_count=$as_val
6765 if test $ac_count -gt ${ac_path_SED_max-0}; then
6766 # Best one so far, save it but keep looking for a better one
6767 ac_cv_path_SED="$ac_path_SED"
6768 ac_path_SED_max=$ac_count
6769 fi
6770 # 10*(2^10) chars as input seems more than enough
6771 test $ac_count -gt 10 && break
6772 done
6773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6774 esac
6775
6776 $ac_path_SED_found && break 3
6777 done
6778 done
6779 done
6780 IFS=$as_save_IFS
6781 if test -z "$ac_cv_path_SED"; then
6782 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6783 fi
6784 else
6785 ac_cv_path_SED=$SED
6786 fi
6787 ;;
6788 esac
6789 fi
6790 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6791 printf '%s\n' "$ac_cv_path_SED" >&6; }
6792 SED="$ac_cv_path_SED"
6793 rm -f conftest.sed
6794
6795 test -z "$SED" && SED=sed
6796 Xsed="$SED -e 1s/^X//"
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6809 printf %s "checking for grep that handles long lines and -e... " >&6; }
6810 if test ${ac_cv_path_GREP+y}
6811 then :
6812 printf %s "(cached) " >&6
6813 else case e in #(
6814 e) if test -z "$GREP"; then
6815 ac_path_GREP_found=false
6816 # Loop through the user's path and test for each of PROGNAME-LIST
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6819 do
6820 IFS=$as_save_IFS
6821 case $as_dir in #(((
6822 '') as_dir=./ ;;
6823 */) ;;
6824 *) as_dir=$as_dir/ ;;
6825 esac
6826 for ac_prog in grep ggrep
6827 do
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6830 as_fn_executable_p "$ac_path_GREP" || continue
6831 # Check for GNU ac_path_GREP and select it if it is found.
6832 # Check for GNU $ac_path_GREP
6833 case `"$ac_path_GREP" --version 2>&1` in #(
6834 *GNU*)
6835 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6836 #(
6837 *)
6838 ac_count=0
6839 printf %s 0123456789 >"conftest.in"
6840 while :
6841 do
6842 cat "conftest.in" "conftest.in" >"conftest.tmp"
6843 mv "conftest.tmp" "conftest.in"
6844 cp "conftest.in" "conftest.nl"
6845 printf '%s\n' 'GREP' >> "conftest.nl"
6846 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6847 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6848 as_fn_arith $ac_count + 1 && ac_count=$as_val
6849 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6850 # Best one so far, save it but keep looking for a better one
6851 ac_cv_path_GREP="$ac_path_GREP"
6852 ac_path_GREP_max=$ac_count
6853 fi
6854 # 10*(2^10) chars as input seems more than enough
6855 test $ac_count -gt 10 && break
6856 done
6857 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6858 esac
6859
6860 $ac_path_GREP_found && break 3
6861 done
6862 done
6863 done
6864 IFS=$as_save_IFS
6865 if test -z "$ac_cv_path_GREP"; then
6866 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6867 fi
6868 else
6869 ac_cv_path_GREP=$GREP
6870 fi
6871 ;;
6872 esac
6873 fi
6874 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6875 printf '%s\n' "$ac_cv_path_GREP" >&6; }
6876 GREP="$ac_cv_path_GREP"
6877
6878
6879 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6880 printf %s "checking for egrep... " >&6; }
6881 if test ${ac_cv_path_EGREP+y}
6882 then :
6883 printf %s "(cached) " >&6
6884 else case e in #(
6885 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6886 then ac_cv_path_EGREP="$GREP -E"
6887 else
6888 if test -z "$EGREP"; then
6889 ac_path_EGREP_found=false
6890 # Loop through the user's path and test for each of PROGNAME-LIST
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6893 do
6894 IFS=$as_save_IFS
6895 case $as_dir in #(((
6896 '') as_dir=./ ;;
6897 */) ;;
6898 *) as_dir=$as_dir/ ;;
6899 esac
6900 for ac_prog in egrep
6901 do
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6904 as_fn_executable_p "$ac_path_EGREP" || continue
6905 # Check for GNU ac_path_EGREP and select it if it is found.
6906 # Check for GNU $ac_path_EGREP
6907 case `"$ac_path_EGREP" --version 2>&1` in #(
6908 *GNU*)
6909 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6910 #(
6911 *)
6912 ac_count=0
6913 printf %s 0123456789 >"conftest.in"
6914 while :
6915 do
6916 cat "conftest.in" "conftest.in" >"conftest.tmp"
6917 mv "conftest.tmp" "conftest.in"
6918 cp "conftest.in" "conftest.nl"
6919 printf '%s\n' 'EGREP' >> "conftest.nl"
6920 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6922 as_fn_arith $ac_count + 1 && ac_count=$as_val
6923 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6924 # Best one so far, save it but keep looking for a better one
6925 ac_cv_path_EGREP="$ac_path_EGREP"
6926 ac_path_EGREP_max=$ac_count
6927 fi
6928 # 10*(2^10) chars as input seems more than enough
6929 test $ac_count -gt 10 && break
6930 done
6931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6932 esac
6933
6934 $ac_path_EGREP_found && break 3
6935 done
6936 done
6937 done
6938 IFS=$as_save_IFS
6939 if test -z "$ac_cv_path_EGREP"; then
6940 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6941 fi
6942 else
6943 ac_cv_path_EGREP=$EGREP
6944 fi
6945
6946 fi ;;
6947 esac
6948 fi
6949 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6950 printf '%s\n' "$ac_cv_path_EGREP" >&6; }
6951 EGREP="$ac_cv_path_EGREP"
6952
6953 EGREP_TRADITIONAL=$EGREP
6954 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6955
6956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6957 printf %s "checking for fgrep... " >&6; }
6958 if test ${ac_cv_path_FGREP+y}
6959 then :
6960 printf %s "(cached) " >&6
6961 else case e in #(
6962 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6963 then ac_cv_path_FGREP="$GREP -F"
6964 else
6965 if test -z "$FGREP"; then
6966 ac_path_FGREP_found=false
6967 # Loop through the user's path and test for each of PROGNAME-LIST
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6970 do
6971 IFS=$as_save_IFS
6972 case $as_dir in #(((
6973 '') as_dir=./ ;;
6974 */) ;;
6975 *) as_dir=$as_dir/ ;;
6976 esac
6977 for ac_prog in fgrep
6978 do
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6981 as_fn_executable_p "$ac_path_FGREP" || continue
6982 # Check for GNU ac_path_FGREP and select it if it is found.
6983 # Check for GNU $ac_path_FGREP
6984 case `"$ac_path_FGREP" --version 2>&1` in #(
6985 *GNU*)
6986 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6987 #(
6988 *)
6989 ac_count=0
6990 printf %s 0123456789 >"conftest.in"
6991 while :
6992 do
6993 cat "conftest.in" "conftest.in" >"conftest.tmp"
6994 mv "conftest.tmp" "conftest.in"
6995 cp "conftest.in" "conftest.nl"
6996 printf '%s\n' 'FGREP' >> "conftest.nl"
6997 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6999 as_fn_arith $ac_count + 1 && ac_count=$as_val
7000 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7001 # Best one so far, save it but keep looking for a better one
7002 ac_cv_path_FGREP="$ac_path_FGREP"
7003 ac_path_FGREP_max=$ac_count
7004 fi
7005 # 10*(2^10) chars as input seems more than enough
7006 test $ac_count -gt 10 && break
7007 done
7008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7009 esac
7010
7011 $ac_path_FGREP_found && break 3
7012 done
7013 done
7014 done
7015 IFS=$as_save_IFS
7016 if test -z "$ac_cv_path_FGREP"; then
7017 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7018 fi
7019 else
7020 ac_cv_path_FGREP=$FGREP
7021 fi
7022
7023 fi ;;
7024 esac
7025 fi
7026 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7027 printf '%s\n' "$ac_cv_path_FGREP" >&6; }
7028 FGREP="$ac_cv_path_FGREP"
7029
7030
7031 test -z "$GREP" && GREP=grep
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051 # Check whether --with-gnu-ld was given.
7052 if test ${with_gnu_ld+y}
7053 then :
7054 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7055 else case e in #(
7056 e) with_gnu_ld=no ;;
7057 esac
7058 fi
7059
7060 ac_prog=ld
7061 if test yes = "$GCC"; then
7062 # Check if gcc -print-prog-name=ld gives a path.
7063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7064 printf %s "checking for ld used by $CC... " >&6; }
7065 case $host in
7066 *-*-mingw* | *-*-windows*)
7067 # gcc leaves a trailing carriage return, which upsets mingw
7068 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7069 *)
7070 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7071 esac
7072 case $ac_prog in
7073 # Accept absolute paths.
7074 [\\/]* | ?:[\\/]*)
7075 re_direlt='/[^/][^/]*/\.\./'
7076 # Canonicalize the pathname of ld
7077 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7078 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7079 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7080 done
7081 test -z "$LD" && LD=$ac_prog
7082 ;;
7083 "")
7084 # If it fails, then pretend we aren't using GCC.
7085 ac_prog=ld
7086 ;;
7087 *)
7088 # If it is relative, then search for the first ld in PATH.
7089 with_gnu_ld=unknown
7090 ;;
7091 esac
7092 elif test yes = "$with_gnu_ld"; then
7093 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7094 printf %s "checking for GNU ld... " >&6; }
7095 else
7096 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7097 printf %s "checking for non-GNU ld... " >&6; }
7098 fi
7099 if test ${lt_cv_path_LD+y}
7100 then :
7101 printf %s "(cached) " >&6
7102 else case e in #(
7103 e) if test -z "$LD"; then
7104 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7105 for ac_dir in $PATH; do
7106 IFS=$lt_save_ifs
7107 test -z "$ac_dir" && ac_dir=.
7108 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7109 lt_cv_path_LD=$ac_dir/$ac_prog
7110 # Check to see if the program is GNU ld. I'd rather use --version,
7111 # but apparently some variants of GNU ld only accept -v.
7112 # Break only if it was the GNU/non-GNU ld that we prefer.
7113 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7114 *GNU* | *'with BFD'*)
7115 test no != "$with_gnu_ld" && break
7116 ;;
7117 *)
7118 test yes != "$with_gnu_ld" && break
7119 ;;
7120 esac
7121 fi
7122 done
7123 IFS=$lt_save_ifs
7124 else
7125 lt_cv_path_LD=$LD # Let the user override the test with a path.
7126 fi ;;
7127 esac
7128 fi
7129
7130 LD=$lt_cv_path_LD
7131 if test -n "$LD"; then
7132 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7133 printf '%s\n' "$LD" >&6; }
7134 else
7135 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 printf '%s\n' "no" >&6; }
7137 fi
7138 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7139 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7140 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7141 if test ${lt_cv_prog_gnu_ld+y}
7142 then :
7143 printf %s "(cached) " >&6
7144 else case e in #(
7145 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7146 case `$LD -v 2>&1 </dev/null` in
7147 *GNU* | *'with BFD'*)
7148 lt_cv_prog_gnu_ld=yes
7149 ;;
7150 *)
7151 lt_cv_prog_gnu_ld=no
7152 ;;
7153 esac ;;
7154 esac
7155 fi
7156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7157 printf '%s\n' "$lt_cv_prog_gnu_ld" >&6; }
7158 with_gnu_ld=$lt_cv_prog_gnu_ld
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7169 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7170 if test ${lt_cv_path_NM+y}
7171 then :
7172 printf %s "(cached) " >&6
7173 else case e in #(
7174 e) if test -n "$NM"; then
7175 # Let the user override the test.
7176 lt_cv_path_NM=$NM
7177 else
7178 lt_nm_to_check=${ac_tool_prefix}nm
7179 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7180 lt_nm_to_check="$lt_nm_to_check nm"
7181 fi
7182 for lt_tmp_nm in $lt_nm_to_check; do
7183 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7184 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7185 IFS=$lt_save_ifs
7186 test -z "$ac_dir" && ac_dir=.
7187 tmp_nm=$ac_dir/$lt_tmp_nm
7188 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7189 # Check to see if the nm accepts a BSD-compat flag.
7190 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7191 # nm: unknown option "B" ignored
7192 # Tru64's nm complains that /dev/null is an invalid object file
7193 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7194 case $build_os in
7195 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7196 *) lt_bad_file=/dev/null ;;
7197 esac
7198 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7199 *$lt_bad_file* | *'Invalid file or object type'*)
7200 lt_cv_path_NM="$tmp_nm -B"
7201 break 2
7202 ;;
7203 *)
7204 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7205 */dev/null*)
7206 lt_cv_path_NM="$tmp_nm -p"
7207 break 2
7208 ;;
7209 *)
7210 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7211 continue # so that we can try to find one that supports BSD flags
7212 ;;
7213 esac
7214 ;;
7215 esac
7216 fi
7217 done
7218 IFS=$lt_save_ifs
7219 done
7220 : ${lt_cv_path_NM=no}
7221 fi ;;
7222 esac
7223 fi
7224 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7225 printf '%s\n' "$lt_cv_path_NM" >&6; }
7226 if test no != "$lt_cv_path_NM"; then
7227 NM=$lt_cv_path_NM
7228 else
7229 # Didn't find any BSD compatible name lister, look for dumpbin.
7230 if test -n "$DUMPBIN"; then :
7231 # Let the user override the test.
7232 else
7233 if test -n "$ac_tool_prefix"; then
7234 for ac_prog in dumpbin "link -dump"
7235 do
7236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7238 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 printf %s "checking for $ac_word... " >&6; }
7240 if test ${ac_cv_prog_DUMPBIN+y}
7241 then :
7242 printf %s "(cached) " >&6
7243 else case e in #(
7244 e) if test -n "$DUMPBIN"; then
7245 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250 IFS=$as_save_IFS
7251 case $as_dir in #(((
7252 '') as_dir=./ ;;
7253 */) ;;
7254 *) as_dir=$as_dir/ ;;
7255 esac
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7258 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7259 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7260 break 2
7261 fi
7262 done
7263 done
7264 IFS=$as_save_IFS
7265
7266 fi ;;
7267 esac
7268 fi
7269 DUMPBIN=$ac_cv_prog_DUMPBIN
7270 if test -n "$DUMPBIN"; then
7271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7272 printf '%s\n' "$DUMPBIN" >&6; }
7273 else
7274 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 printf '%s\n' "no" >&6; }
7276 fi
7277
7278
7279 test -n "$DUMPBIN" && break
7280 done
7281 fi
7282 if test -z "$DUMPBIN"; then
7283 ac_ct_DUMPBIN=$DUMPBIN
7284 for ac_prog in dumpbin "link -dump"
7285 do
7286 # Extract the first word of "$ac_prog", so it can be a program name with args.
7287 set dummy $ac_prog; ac_word=$2
7288 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 printf %s "checking for $ac_word... " >&6; }
7290 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7291 then :
7292 printf %s "(cached) " >&6
7293 else case e in #(
7294 e) if test -n "$ac_ct_DUMPBIN"; then
7295 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300 IFS=$as_save_IFS
7301 case $as_dir in #(((
7302 '') as_dir=./ ;;
7303 */) ;;
7304 *) as_dir=$as_dir/ ;;
7305 esac
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7309 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7310 break 2
7311 fi
7312 done
7313 done
7314 IFS=$as_save_IFS
7315
7316 fi ;;
7317 esac
7318 fi
7319 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7320 if test -n "$ac_ct_DUMPBIN"; then
7321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7322 printf '%s\n' "$ac_ct_DUMPBIN" >&6; }
7323 else
7324 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 printf '%s\n' "no" >&6; }
7326 fi
7327
7328
7329 test -n "$ac_ct_DUMPBIN" && break
7330 done
7331
7332 if test "x$ac_ct_DUMPBIN" = x; then
7333 DUMPBIN=":"
7334 else
7335 case $cross_compiling:$ac_tool_warned in
7336 yes:)
7337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339 ac_tool_warned=yes ;;
7340 esac
7341 DUMPBIN=$ac_ct_DUMPBIN
7342 fi
7343 fi
7344
7345 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7346 *COFF*)
7347 DUMPBIN="$DUMPBIN -symbols -headers"
7348 ;;
7349 *)
7350 DUMPBIN=:
7351 ;;
7352 esac
7353 fi
7354
7355 if test : != "$DUMPBIN"; then
7356 NM=$DUMPBIN
7357 fi
7358 fi
7359 test -z "$NM" && NM=nm
7360
7361
7362
7363
7364
7365
7366 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7367 printf %s "checking the name lister ($NM) interface... " >&6; }
7368 if test ${lt_cv_nm_interface+y}
7369 then :
7370 printf %s "(cached) " >&6
7371 else case e in #(
7372 e) lt_cv_nm_interface="BSD nm"
7373 echo "int some_variable = 0;" > conftest.$ac_ext
7374 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7375 (eval "$ac_compile" 2>conftest.err)
7376 cat conftest.err >&5
7377 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7378 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7379 cat conftest.err >&5
7380 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7381 cat conftest.out >&5
7382 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7383 lt_cv_nm_interface="MS dumpbin"
7384 fi
7385 rm -f conftest* ;;
7386 esac
7387 fi
7388 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7389 printf '%s\n' "$lt_cv_nm_interface" >&6; }
7390
7391 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7392 printf %s "checking whether ln -s works... " >&6; }
7393 LN_S=$as_ln_s
7394 if test "$LN_S" = "ln -s"; then
7395 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7396 printf '%s\n' "yes" >&6; }
7397 else
7398 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7399 printf '%s\n' "no, using $LN_S" >&6; }
7400 fi
7401
7402 # find the maximum length of command line arguments
7403 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7404 printf %s "checking the maximum length of command line arguments... " >&6; }
7405 if test ${lt_cv_sys_max_cmd_len+y}
7406 then :
7407 printf %s "(cached) " >&6
7408 else case e in #(
7409 e) i=0
7410 teststring=ABCD
7411
7412 case $build_os in
7413 msdosdjgpp*)
7414 # On DJGPP, this test can blow up pretty badly due to problems in libc
7415 # (any single argument exceeding 2000 bytes causes a buffer overrun
7416 # during glob expansion). Even if it were fixed, the result of this
7417 # check would be larger than it should be.
7418 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7419 ;;
7420
7421 gnu* | ironclad*)
7422 # Under GNU Hurd and Ironclad, this test is not required because there
7423 # is no limit to the length of command line arguments.
7424 # Libtool will interpret -1 as no limit whatsoever
7425 lt_cv_sys_max_cmd_len=-1;
7426 ;;
7427
7428 cygwin* | mingw* | windows* | cegcc*)
7429 # On Win9x/ME, this test blows up -- it succeeds, but takes
7430 # about 5 minutes as the teststring grows exponentially.
7431 # Worse, since 9x/ME are not pre-emptively multitasking,
7432 # you end up with a "frozen" computer, even though with patience
7433 # the test eventually succeeds (with a max line length of 256k).
7434 # Instead, let's just punt: use the minimum linelength reported by
7435 # all of the supported platforms: 8192 (on NT/2K/XP).
7436 lt_cv_sys_max_cmd_len=8192;
7437 ;;
7438
7439 mint*)
7440 # On MiNT this can take a long time and run out of memory.
7441 lt_cv_sys_max_cmd_len=8192;
7442 ;;
7443
7444 amigaos*)
7445 # On AmigaOS with pdksh, this test takes hours, literally.
7446 # So we just punt and use a minimum line length of 8192.
7447 lt_cv_sys_max_cmd_len=8192;
7448 ;;
7449
7450 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7451 # This has been around since 386BSD, at least. Likely further.
7452 if test -x /sbin/sysctl; then
7453 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7454 elif test -x /usr/sbin/sysctl; then
7455 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7456 else
7457 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7458 fi
7459 # And add a safety zone
7460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7462 ;;
7463
7464 interix*)
7465 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7466 lt_cv_sys_max_cmd_len=196608
7467 ;;
7468
7469 os2*)
7470 # The test takes a long time on OS/2.
7471 lt_cv_sys_max_cmd_len=8192
7472 ;;
7473
7474 osf*)
7475 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7476 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7477 # nice to cause kernel panics so lets avoid the loop below.
7478 # First set a reasonable default.
7479 lt_cv_sys_max_cmd_len=16384
7480 #
7481 if test -x /sbin/sysconfig; then
7482 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7483 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7484 esac
7485 fi
7486 ;;
7487 sco3.2v5*)
7488 lt_cv_sys_max_cmd_len=102400
7489 ;;
7490 sysv5* | sco5v6* | sysv4.2uw2*)
7491 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7492 if test -n "$kargmax"; then
7493 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7494 else
7495 lt_cv_sys_max_cmd_len=32768
7496 fi
7497 ;;
7498 *)
7499 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7500 if test -n "$lt_cv_sys_max_cmd_len" && \
7501 test undefined != "$lt_cv_sys_max_cmd_len"; then
7502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7504 else
7505 # Make teststring a little bigger before we do anything with it.
7506 # a 1K string should be a reasonable start.
7507 for i in 1 2 3 4 5 6 7 8; do
7508 teststring=$teststring$teststring
7509 done
7510 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7511 # If test is not a shell built-in, we'll probably end up computing a
7512 # maximum length that is only half of the actual maximum length, but
7513 # we can't tell.
7514 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7515 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7516 test 17 != "$i" # 1/2 MB should be enough
7517 do
7518 i=`expr $i + 1`
7519 teststring=$teststring$teststring
7520 done
7521 # Only check the string length outside the loop.
7522 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7523 teststring=
7524 # Add a significant safety factor because C++ compilers can tack on
7525 # massive amounts of additional arguments before passing them to the
7526 # linker. It appears as though 1/2 is a usable value.
7527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7528 fi
7529 ;;
7530 esac
7531 ;;
7532 esac
7533 fi
7534
7535 if test -n "$lt_cv_sys_max_cmd_len"; then
7536 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7537 printf '%s\n' "$lt_cv_sys_max_cmd_len" >&6; }
7538 else
7539 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none" >&5
7540 printf '%s\n' "none" >&6; }
7541 fi
7542 max_cmd_len=$lt_cv_sys_max_cmd_len
7543
7544
7545
7546
7547
7548
7549 : ${CP="cp -f"}
7550 : ${MV="mv -f"}
7551 : ${RM="rm -f"}
7552
7553 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7554 lt_unset=unset
7555 else
7556 lt_unset=false
7557 fi
7558
7559
7560
7561
7562
7563 # test EBCDIC or ASCII
7564 case `echo X|tr X '\101'` in
7565 A) # ASCII based system
7566 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7567 lt_SP2NL='tr \040 \012'
7568 lt_NL2SP='tr \015\012 \040\040'
7569 ;;
7570 *) # EBCDIC based system
7571 lt_SP2NL='tr \100 \n'
7572 lt_NL2SP='tr \r\n \100\100'
7573 ;;
7574 esac
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7585 printf %s "checking how to convert $build file names to $host format... " >&6; }
7586 if test ${lt_cv_to_host_file_cmd+y}
7587 then :
7588 printf %s "(cached) " >&6
7589 else case e in #(
7590 e) case $host in
7591 *-*-mingw* )
7592 case $build in
7593 *-*-mingw* | *-*-windows* ) # actually msys
7594 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7595 ;;
7596 *-*-cygwin* )
7597 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7598 ;;
7599 * ) # otherwise, assume *nix
7600 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7601 ;;
7602 esac
7603 ;;
7604 *-*-cygwin* )
7605 case $build in
7606 *-*-mingw* | *-*-windows* ) # actually msys
7607 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7608 ;;
7609 *-*-cygwin* )
7610 lt_cv_to_host_file_cmd=func_convert_file_noop
7611 ;;
7612 * ) # otherwise, assume *nix
7613 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7614 ;;
7615 esac
7616 ;;
7617 * ) # unhandled hosts (and "normal" native builds)
7618 lt_cv_to_host_file_cmd=func_convert_file_noop
7619 ;;
7620 esac
7621 ;;
7622 esac
7623 fi
7624
7625 to_host_file_cmd=$lt_cv_to_host_file_cmd
7626 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7627 printf '%s\n' "$lt_cv_to_host_file_cmd" >&6; }
7628
7629
7630
7631
7632
7633 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7634 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7635 if test ${lt_cv_to_tool_file_cmd+y}
7636 then :
7637 printf %s "(cached) " >&6
7638 else case e in #(
7639 e) #assume ordinary cross tools, or native build.
7640 lt_cv_to_tool_file_cmd=func_convert_file_noop
7641 case $host in
7642 *-*-mingw* | *-*-windows* )
7643 case $build in
7644 *-*-mingw* | *-*-windows* ) # actually msys
7645 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7646 ;;
7647 esac
7648 ;;
7649 esac
7650 ;;
7651 esac
7652 fi
7653
7654 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7655 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7656 printf '%s\n' "$lt_cv_to_tool_file_cmd" >&6; }
7657
7658
7659
7660
7661
7662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7663 printf %s "checking for $LD option to reload object files... " >&6; }
7664 if test ${lt_cv_ld_reload_flag+y}
7665 then :
7666 printf %s "(cached) " >&6
7667 else case e in #(
7668 e) lt_cv_ld_reload_flag='-r' ;;
7669 esac
7670 fi
7671 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7672 printf '%s\n' "$lt_cv_ld_reload_flag" >&6; }
7673 reload_flag=$lt_cv_ld_reload_flag
7674 case $reload_flag in
7675 "" | " "*) ;;
7676 *) reload_flag=" $reload_flag" ;;
7677 esac
7678 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7679 case $host_os in
7680 cygwin* | mingw* | windows* | pw32* | cegcc*)
7681 if test yes != "$GCC"; then
7682 reload_cmds=false
7683 fi
7684 ;;
7685 darwin*)
7686 if test yes = "$GCC"; then
7687 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7688 else
7689 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7690 fi
7691 ;;
7692 esac
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702 # Extract the first word of "file", so it can be a program name with args.
7703 set dummy file; ac_word=$2
7704 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 printf %s "checking for $ac_word... " >&6; }
7706 if test ${ac_cv_prog_FILECMD+y}
7707 then :
7708 printf %s "(cached) " >&6
7709 else case e in #(
7710 e) if test -n "$FILECMD"; then
7711 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7712 else
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7715 do
7716 IFS=$as_save_IFS
7717 case $as_dir in #(((
7718 '') as_dir=./ ;;
7719 */) ;;
7720 *) as_dir=$as_dir/ ;;
7721 esac
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_FILECMD="file"
7725 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7726 break 2
7727 fi
7728 done
7729 done
7730 IFS=$as_save_IFS
7731
7732 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7733 fi ;;
7734 esac
7735 fi
7736 FILECMD=$ac_cv_prog_FILECMD
7737 if test -n "$FILECMD"; then
7738 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7739 printf '%s\n' "$FILECMD" >&6; }
7740 else
7741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 printf '%s\n' "no" >&6; }
7743 fi
7744
7745
7746
7747
7748
7749
7750
7751
7752 if test -n "$ac_tool_prefix"; then
7753 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7754 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7755 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 printf %s "checking for $ac_word... " >&6; }
7757 if test ${ac_cv_prog_OBJDUMP+y}
7758 then :
7759 printf %s "(cached) " >&6
7760 else case e in #(
7761 e) if test -n "$OBJDUMP"; then
7762 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7766 do
7767 IFS=$as_save_IFS
7768 case $as_dir in #(((
7769 '') as_dir=./ ;;
7770 */) ;;
7771 *) as_dir=$as_dir/ ;;
7772 esac
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7775 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7776 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779 done
7780 done
7781 IFS=$as_save_IFS
7782
7783 fi ;;
7784 esac
7785 fi
7786 OBJDUMP=$ac_cv_prog_OBJDUMP
7787 if test -n "$OBJDUMP"; then
7788 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7789 printf '%s\n' "$OBJDUMP" >&6; }
7790 else
7791 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 printf '%s\n' "no" >&6; }
7793 fi
7794
7795
7796 fi
7797 if test -z "$ac_cv_prog_OBJDUMP"; then
7798 ac_ct_OBJDUMP=$OBJDUMP
7799 # Extract the first word of "objdump", so it can be a program name with args.
7800 set dummy objdump; ac_word=$2
7801 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 printf %s "checking for $ac_word... " >&6; }
7803 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7804 then :
7805 printf %s "(cached) " >&6
7806 else case e in #(
7807 e) if test -n "$ac_ct_OBJDUMP"; then
7808 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7809 else
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813 IFS=$as_save_IFS
7814 case $as_dir in #(((
7815 '') as_dir=./ ;;
7816 */) ;;
7817 *) as_dir=$as_dir/ ;;
7818 esac
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7822 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825 done
7826 done
7827 IFS=$as_save_IFS
7828
7829 fi ;;
7830 esac
7831 fi
7832 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7833 if test -n "$ac_ct_OBJDUMP"; then
7834 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7835 printf '%s\n' "$ac_ct_OBJDUMP" >&6; }
7836 else
7837 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 printf '%s\n' "no" >&6; }
7839 fi
7840
7841 if test "x$ac_ct_OBJDUMP" = x; then
7842 OBJDUMP="false"
7843 else
7844 case $cross_compiling:$ac_tool_warned in
7845 yes:)
7846 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7847 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7848 ac_tool_warned=yes ;;
7849 esac
7850 OBJDUMP=$ac_ct_OBJDUMP
7851 fi
7852 else
7853 OBJDUMP="$ac_cv_prog_OBJDUMP"
7854 fi
7855
7856 test -z "$OBJDUMP" && OBJDUMP=objdump
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7867 printf %s "checking how to recognize dependent libraries... " >&6; }
7868 if test ${lt_cv_deplibs_check_method+y}
7869 then :
7870 printf %s "(cached) " >&6
7871 else case e in #(
7872 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7873 lt_cv_file_magic_test_file=
7874 lt_cv_deplibs_check_method='unknown'
7875 # Need to set the preceding variable on all platforms that support
7876 # interlibrary dependencies.
7877 # 'none' -- dependencies not supported.
7878 # 'unknown' -- same as none, but documents that we really don't know.
7879 # 'pass_all' -- all dependencies passed with no checks.
7880 # 'file_magic [[regex]]' -- check by looking for files in library path
7881 # that responds to the $file_magic_cmd with a given extended regex.
7882 # If you have 'file' or equivalent on your system and you're not sure
7883 # whether 'pass_all' will *always* work, you probably want this one.
7884
7885 case $host_os in
7886 aix[4-9]*)
7887 lt_cv_deplibs_check_method=pass_all
7888 ;;
7889
7890 beos*)
7891 lt_cv_deplibs_check_method=pass_all
7892 ;;
7893
7894 bsdi[45]*)
7895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7896 lt_cv_file_magic_cmd='$FILECMD -L'
7897 lt_cv_file_magic_test_file=/shlib/libc.so
7898 ;;
7899
7900 cygwin*)
7901 # func_win32_libid is a shell function defined in ltmain.sh
7902 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7903 lt_cv_file_magic_cmd='func_win32_libid'
7904 ;;
7905
7906 mingw* | windows* | pw32*)
7907 # Base MSYS/MinGW do not provide the 'file' command needed by
7908 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7909 # unless we find 'file', for example because we are cross-compiling.
7910 if ( file / ) >/dev/null 2>&1; then
7911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7912 lt_cv_file_magic_cmd='func_win32_libid'
7913 else
7914 # Keep this pattern in sync with the one in func_win32_libid.
7915 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7916 lt_cv_file_magic_cmd='$OBJDUMP -f'
7917 fi
7918 ;;
7919
7920 cegcc*)
7921 # use the weaker test based on 'objdump'. See mingw*.
7922 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7923 lt_cv_file_magic_cmd='$OBJDUMP -f'
7924 ;;
7925
7926 darwin* | rhapsody*)
7927 lt_cv_deplibs_check_method=pass_all
7928 ;;
7929
7930 freebsd* | dragonfly* | midnightbsd*)
7931 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7932 case $host_cpu in
7933 i*86 )
7934 # Not sure whether the presence of OpenBSD here was a mistake.
7935 # Let's accept both of them until this is cleared up.
7936 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7937 lt_cv_file_magic_cmd=$FILECMD
7938 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7939 ;;
7940 esac
7941 else
7942 lt_cv_deplibs_check_method=pass_all
7943 fi
7944 ;;
7945
7946 haiku*)
7947 lt_cv_deplibs_check_method=pass_all
7948 ;;
7949
7950 hpux10.20* | hpux11*)
7951 lt_cv_file_magic_cmd=$FILECMD
7952 case $host_cpu in
7953 ia64*)
7954 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7955 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7956 ;;
7957 hppa*64*)
7958 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]'
7959 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7960 ;;
7961 *)
7962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7963 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7964 ;;
7965 esac
7966 ;;
7967
7968 interix[3-9]*)
7969 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7971 ;;
7972
7973 irix5* | irix6* | nonstopux*)
7974 case $LD in
7975 *-32|*"-32 ") libmagic=32-bit;;
7976 *-n32|*"-n32 ") libmagic=N32;;
7977 *-64|*"-64 ") libmagic=64-bit;;
7978 *) libmagic=never-match;;
7979 esac
7980 lt_cv_deplibs_check_method=pass_all
7981 ;;
7982
7983 # This must be glibc/ELF.
7984 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7985 lt_cv_deplibs_check_method=pass_all
7986 ;;
7987
7988 *-mlibc)
7989 lt_cv_deplibs_check_method=pass_all
7990 ;;
7991
7992 netbsd* | netbsdelf*-gnu)
7993 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7995 else
7996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7997 fi
7998 ;;
7999
8000 newos6*)
8001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8002 lt_cv_file_magic_cmd=$FILECMD
8003 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8004 ;;
8005
8006 *nto* | *qnx*)
8007 lt_cv_deplibs_check_method=pass_all
8008 ;;
8009
8010 openbsd*)
8011 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8013 else
8014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8015 fi
8016 ;;
8017
8018 osf3* | osf4* | osf5*)
8019 lt_cv_deplibs_check_method=pass_all
8020 ;;
8021
8022 rdos*)
8023 lt_cv_deplibs_check_method=pass_all
8024 ;;
8025
8026 serenity*)
8027 lt_cv_deplibs_check_method=pass_all
8028 ;;
8029
8030 solaris*)
8031 lt_cv_deplibs_check_method=pass_all
8032 ;;
8033
8034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8035 lt_cv_deplibs_check_method=pass_all
8036 ;;
8037
8038 sysv4 | sysv4.3*)
8039 case $host_vendor in
8040 motorola)
8041 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]'
8042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8043 ;;
8044 ncr)
8045 lt_cv_deplibs_check_method=pass_all
8046 ;;
8047 sequent)
8048 lt_cv_file_magic_cmd='/bin/file'
8049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8050 ;;
8051 sni)
8052 lt_cv_file_magic_cmd='/bin/file'
8053 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8054 lt_cv_file_magic_test_file=/lib/libc.so
8055 ;;
8056 siemens)
8057 lt_cv_deplibs_check_method=pass_all
8058 ;;
8059 pc)
8060 lt_cv_deplibs_check_method=pass_all
8061 ;;
8062 esac
8063 ;;
8064
8065 tpf*)
8066 lt_cv_deplibs_check_method=pass_all
8067 ;;
8068 os2*)
8069 lt_cv_deplibs_check_method=pass_all
8070 ;;
8071 esac
8072 ;;
8073 esac
8074 fi
8075 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8076 printf '%s\n' "$lt_cv_deplibs_check_method" >&6; }
8077
8078 file_magic_glob=
8079 want_nocaseglob=no
8080 if test "$build" = "$host"; then
8081 case $host_os in
8082 mingw* | windows* | pw32*)
8083 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8084 want_nocaseglob=yes
8085 else
8086 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8087 fi
8088 ;;
8089 esac
8090 fi
8091
8092 file_magic_cmd=$lt_cv_file_magic_cmd
8093 deplibs_check_method=$lt_cv_deplibs_check_method
8094 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117 if test -n "$ac_tool_prefix"; then
8118 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8119 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 printf %s "checking for $ac_word... " >&6; }
8122 if test ${ac_cv_prog_DLLTOOL+y}
8123 then :
8124 printf %s "(cached) " >&6
8125 else case e in #(
8126 e) if test -n "$DLLTOOL"; then
8127 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132 IFS=$as_save_IFS
8133 case $as_dir in #(((
8134 '') as_dir=./ ;;
8135 */) ;;
8136 *) as_dir=$as_dir/ ;;
8137 esac
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8140 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8141 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8142 break 2
8143 fi
8144 done
8145 done
8146 IFS=$as_save_IFS
8147
8148 fi ;;
8149 esac
8150 fi
8151 DLLTOOL=$ac_cv_prog_DLLTOOL
8152 if test -n "$DLLTOOL"; then
8153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8154 printf '%s\n' "$DLLTOOL" >&6; }
8155 else
8156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 printf '%s\n' "no" >&6; }
8158 fi
8159
8160
8161 fi
8162 if test -z "$ac_cv_prog_DLLTOOL"; then
8163 ac_ct_DLLTOOL=$DLLTOOL
8164 # Extract the first word of "dlltool", so it can be a program name with args.
8165 set dummy dlltool; ac_word=$2
8166 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 printf %s "checking for $ac_word... " >&6; }
8168 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8169 then :
8170 printf %s "(cached) " >&6
8171 else case e in #(
8172 e) if test -n "$ac_ct_DLLTOOL"; then
8173 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178 IFS=$as_save_IFS
8179 case $as_dir in #(((
8180 '') as_dir=./ ;;
8181 */) ;;
8182 *) as_dir=$as_dir/ ;;
8183 esac
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8186 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8187 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8188 break 2
8189 fi
8190 done
8191 done
8192 IFS=$as_save_IFS
8193
8194 fi ;;
8195 esac
8196 fi
8197 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8198 if test -n "$ac_ct_DLLTOOL"; then
8199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8200 printf '%s\n' "$ac_ct_DLLTOOL" >&6; }
8201 else
8202 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 printf '%s\n' "no" >&6; }
8204 fi
8205
8206 if test "x$ac_ct_DLLTOOL" = x; then
8207 DLLTOOL="false"
8208 else
8209 case $cross_compiling:$ac_tool_warned in
8210 yes:)
8211 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8212 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8213 ac_tool_warned=yes ;;
8214 esac
8215 DLLTOOL=$ac_ct_DLLTOOL
8216 fi
8217 else
8218 DLLTOOL="$ac_cv_prog_DLLTOOL"
8219 fi
8220
8221 test -z "$DLLTOOL" && DLLTOOL=dlltool
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8233 printf %s "checking how to associate runtime and link libraries... " >&6; }
8234 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8235 then :
8236 printf %s "(cached) " >&6
8237 else case e in #(
8238 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8239
8240 case $host_os in
8241 cygwin* | mingw* | windows* | pw32* | cegcc*)
8242 # two different shell functions defined in ltmain.sh;
8243 # decide which one to use based on capabilities of $DLLTOOL
8244 case `$DLLTOOL --help 2>&1` in
8245 *--identify-strict*)
8246 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8247 ;;
8248 *)
8249 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8250 ;;
8251 esac
8252 ;;
8253 *)
8254 # fallback: assume linklib IS sharedlib
8255 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8256 ;;
8257 esac
8258 ;;
8259 esac
8260 fi
8261 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8262 printf '%s\n' "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8263 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8264 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8265
8266
8267
8268
8269
8270
8271
8272 if test -n "$ac_tool_prefix"; then
8273 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8274 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8275 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 printf %s "checking for $ac_word... " >&6; }
8277 if test ${ac_cv_prog_RANLIB+y}
8278 then :
8279 printf %s "(cached) " >&6
8280 else case e in #(
8281 e) if test -n "$RANLIB"; then
8282 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8283 else
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8286 do
8287 IFS=$as_save_IFS
8288 case $as_dir in #(((
8289 '') as_dir=./ ;;
8290 */) ;;
8291 *) as_dir=$as_dir/ ;;
8292 esac
8293 for ac_exec_ext in '' $ac_executable_extensions; do
8294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8296 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8297 break 2
8298 fi
8299 done
8300 done
8301 IFS=$as_save_IFS
8302
8303 fi ;;
8304 esac
8305 fi
8306 RANLIB=$ac_cv_prog_RANLIB
8307 if test -n "$RANLIB"; then
8308 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8309 printf '%s\n' "$RANLIB" >&6; }
8310 else
8311 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312 printf '%s\n' "no" >&6; }
8313 fi
8314
8315
8316 fi
8317 if test -z "$ac_cv_prog_RANLIB"; then
8318 ac_ct_RANLIB=$RANLIB
8319 # Extract the first word of "ranlib", so it can be a program name with args.
8320 set dummy ranlib; ac_word=$2
8321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 printf %s "checking for $ac_word... " >&6; }
8323 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8324 then :
8325 printf %s "(cached) " >&6
8326 else case e in #(
8327 e) if test -n "$ac_ct_RANLIB"; then
8328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8329 else
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333 IFS=$as_save_IFS
8334 case $as_dir in #(((
8335 '') as_dir=./ ;;
8336 */) ;;
8337 *) as_dir=$as_dir/ ;;
8338 esac
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8341 ac_cv_prog_ac_ct_RANLIB="ranlib"
8342 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8343 break 2
8344 fi
8345 done
8346 done
8347 IFS=$as_save_IFS
8348
8349 fi ;;
8350 esac
8351 fi
8352 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8353 if test -n "$ac_ct_RANLIB"; then
8354 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8355 printf '%s\n' "$ac_ct_RANLIB" >&6; }
8356 else
8357 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 printf '%s\n' "no" >&6; }
8359 fi
8360
8361 if test "x$ac_ct_RANLIB" = x; then
8362 RANLIB=":"
8363 else
8364 case $cross_compiling:$ac_tool_warned in
8365 yes:)
8366 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8367 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8368 ac_tool_warned=yes ;;
8369 esac
8370 RANLIB=$ac_ct_RANLIB
8371 fi
8372 else
8373 RANLIB="$ac_cv_prog_RANLIB"
8374 fi
8375
8376 if test -n "$ac_tool_prefix"; then
8377 for ac_prog in ar
8378 do
8379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 printf %s "checking for $ac_word... " >&6; }
8383 if test ${ac_cv_prog_AR+y}
8384 then :
8385 printf %s "(cached) " >&6
8386 else case e in #(
8387 e) if test -n "$AR"; then
8388 ac_cv_prog_AR="$AR" # Let the user override the test.
8389 else
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8392 do
8393 IFS=$as_save_IFS
8394 case $as_dir in #(((
8395 '') as_dir=./ ;;
8396 */) ;;
8397 *) as_dir=$as_dir/ ;;
8398 esac
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8401 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8402 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405 done
8406 done
8407 IFS=$as_save_IFS
8408
8409 fi ;;
8410 esac
8411 fi
8412 AR=$ac_cv_prog_AR
8413 if test -n "$AR"; then
8414 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8415 printf '%s\n' "$AR" >&6; }
8416 else
8417 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 printf '%s\n' "no" >&6; }
8419 fi
8420
8421
8422 test -n "$AR" && break
8423 done
8424 fi
8425 if test -z "$AR"; then
8426 ac_ct_AR=$AR
8427 for ac_prog in ar
8428 do
8429 # Extract the first word of "$ac_prog", so it can be a program name with args.
8430 set dummy $ac_prog; ac_word=$2
8431 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 printf %s "checking for $ac_word... " >&6; }
8433 if test ${ac_cv_prog_ac_ct_AR+y}
8434 then :
8435 printf %s "(cached) " >&6
8436 else case e in #(
8437 e) if test -n "$ac_ct_AR"; then
8438 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8439 else
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8442 do
8443 IFS=$as_save_IFS
8444 case $as_dir in #(((
8445 '') as_dir=./ ;;
8446 */) ;;
8447 *) as_dir=$as_dir/ ;;
8448 esac
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8451 ac_cv_prog_ac_ct_AR="$ac_prog"
8452 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8453 break 2
8454 fi
8455 done
8456 done
8457 IFS=$as_save_IFS
8458
8459 fi ;;
8460 esac
8461 fi
8462 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8463 if test -n "$ac_ct_AR"; then
8464 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8465 printf '%s\n' "$ac_ct_AR" >&6; }
8466 else
8467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 printf '%s\n' "no" >&6; }
8469 fi
8470
8471
8472 test -n "$ac_ct_AR" && break
8473 done
8474
8475 if test "x$ac_ct_AR" = x; then
8476 AR="false"
8477 else
8478 case $cross_compiling:$ac_tool_warned in
8479 yes:)
8480 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8481 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8482 ac_tool_warned=yes ;;
8483 esac
8484 AR=$ac_ct_AR
8485 fi
8486 fi
8487
8488 : ${AR=ar}
8489
8490
8491
8492
8493
8494
8495 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8496 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8497 # higher priority because that's what people were doing historically (setting
8498 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8499 # variable obsoleted/removed.
8500
8501 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8502 lt_ar_flags=$AR_FLAGS
8503
8504
8505
8506
8507
8508
8509 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8510 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8511
8512
8513
8514
8515
8516
8517 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8518 printf %s "checking for archiver @FILE support... " >&6; }
8519 if test ${lt_cv_ar_at_file+y}
8520 then :
8521 printf %s "(cached) " >&6
8522 else case e in #(
8523 e) lt_cv_ar_at_file=no
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526
8527 int
8528 main (void)
8529 {
8530
8531 ;
8532 return 0;
8533 }
8534 _ACEOF
8535 if ac_fn_c_try_compile "$LINENO"
8536 then :
8537 echo conftest.$ac_objext > conftest.lst
8538 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8540 (eval $lt_ar_try) 2>&5
8541 ac_status=$?
8542 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8543 test $ac_status = 0; }
8544 if test 0 -eq "$ac_status"; then
8545 # Ensure the archiver fails upon bogus file names.
8546 rm -f conftest.$ac_objext libconftest.a
8547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8548 (eval $lt_ar_try) 2>&5
8549 ac_status=$?
8550 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8551 test $ac_status = 0; }
8552 if test 0 -ne "$ac_status"; then
8553 lt_cv_ar_at_file=@
8554 fi
8555 fi
8556 rm -f conftest.* libconftest.a
8557
8558 fi
8559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8560 ;;
8561 esac
8562 fi
8563 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8564 printf '%s\n' "$lt_cv_ar_at_file" >&6; }
8565
8566 if test no = "$lt_cv_ar_at_file"; then
8567 archiver_list_spec=
8568 else
8569 archiver_list_spec=$lt_cv_ar_at_file
8570 fi
8571
8572
8573
8574
8575
8576
8577
8578 if test -n "$ac_tool_prefix"; then
8579 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8580 set dummy ${ac_tool_prefix}strip; ac_word=$2
8581 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 printf %s "checking for $ac_word... " >&6; }
8583 if test ${ac_cv_prog_STRIP+y}
8584 then :
8585 printf %s "(cached) " >&6
8586 else case e in #(
8587 e) if test -n "$STRIP"; then
8588 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8589 else
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8592 do
8593 IFS=$as_save_IFS
8594 case $as_dir in #(((
8595 '') as_dir=./ ;;
8596 */) ;;
8597 *) as_dir=$as_dir/ ;;
8598 esac
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8601 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8602 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8603 break 2
8604 fi
8605 done
8606 done
8607 IFS=$as_save_IFS
8608
8609 fi ;;
8610 esac
8611 fi
8612 STRIP=$ac_cv_prog_STRIP
8613 if test -n "$STRIP"; then
8614 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8615 printf '%s\n' "$STRIP" >&6; }
8616 else
8617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 printf '%s\n' "no" >&6; }
8619 fi
8620
8621
8622 fi
8623 if test -z "$ac_cv_prog_STRIP"; then
8624 ac_ct_STRIP=$STRIP
8625 # Extract the first word of "strip", so it can be a program name with args.
8626 set dummy strip; ac_word=$2
8627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 printf %s "checking for $ac_word... " >&6; }
8629 if test ${ac_cv_prog_ac_ct_STRIP+y}
8630 then :
8631 printf %s "(cached) " >&6
8632 else case e in #(
8633 e) if test -n "$ac_ct_STRIP"; then
8634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8635 else
8636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 for as_dir in $PATH
8638 do
8639 IFS=$as_save_IFS
8640 case $as_dir in #(((
8641 '') as_dir=./ ;;
8642 */) ;;
8643 *) as_dir=$as_dir/ ;;
8644 esac
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8647 ac_cv_prog_ac_ct_STRIP="strip"
8648 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8649 break 2
8650 fi
8651 done
8652 done
8653 IFS=$as_save_IFS
8654
8655 fi ;;
8656 esac
8657 fi
8658 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8659 if test -n "$ac_ct_STRIP"; then
8660 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8661 printf '%s\n' "$ac_ct_STRIP" >&6; }
8662 else
8663 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664 printf '%s\n' "no" >&6; }
8665 fi
8666
8667 if test "x$ac_ct_STRIP" = x; then
8668 STRIP=":"
8669 else
8670 case $cross_compiling:$ac_tool_warned in
8671 yes:)
8672 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8673 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8674 ac_tool_warned=yes ;;
8675 esac
8676 STRIP=$ac_ct_STRIP
8677 fi
8678 else
8679 STRIP="$ac_cv_prog_STRIP"
8680 fi
8681
8682 test -z "$STRIP" && STRIP=:
8683
8684
8685
8686
8687
8688
8689
8690 test -z "$RANLIB" && RANLIB=:
8691
8692
8693
8694
8695
8696
8697 # Determine commands to create old-style static archives.
8698 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8699 old_postinstall_cmds='chmod 644 $oldlib'
8700 old_postuninstall_cmds=
8701
8702 if test -n "$RANLIB"; then
8703 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8704 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8705 fi
8706
8707 case $host_os in
8708 darwin*)
8709 lock_old_archive_extraction=yes ;;
8710 *)
8711 lock_old_archive_extraction=no ;;
8712 esac
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752 # If no C compiler was specified, use CC.
8753 LTCC=${LTCC-"$CC"}
8754
8755 # If no C compiler flags were specified, use CFLAGS.
8756 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8757
8758 # Allow CC to be a program name with arguments.
8759 compiler=$CC
8760
8761
8762 # Check for command to grab the raw symbol name followed by C symbol from nm.
8763 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8764 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8765 if test ${lt_cv_sys_global_symbol_pipe+y}
8766 then :
8767 printf %s "(cached) " >&6
8768 else case e in #(
8769 e)
8770 # These are sane defaults that work on at least a few old systems.
8771 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8772
8773 # Character class describing NM global symbol codes.
8774 symcode='[BCDEGRST]'
8775
8776 # Regexp to match symbols that can be accessed directly from C.
8777 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8778
8779 # Define system-specific variables.
8780 case $host_os in
8781 aix*)
8782 symcode='[BCDT]'
8783 ;;
8784 cygwin* | mingw* | windows* | pw32* | cegcc*)
8785 symcode='[ABCDGISTW]'
8786 ;;
8787 hpux*)
8788 if test ia64 = "$host_cpu"; then
8789 symcode='[ABCDEGRST]'
8790 fi
8791 ;;
8792 irix* | nonstopux*)
8793 symcode='[BCDEGRST]'
8794 ;;
8795 osf*)
8796 symcode='[BCDEGQRST]'
8797 ;;
8798 solaris*)
8799 symcode='[BCDRT]'
8800 ;;
8801 sco3.2v5*)
8802 symcode='[DT]'
8803 ;;
8804 sysv4.2uw2*)
8805 symcode='[DT]'
8806 ;;
8807 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8808 symcode='[ABDT]'
8809 ;;
8810 sysv4)
8811 symcode='[DFNSTU]'
8812 ;;
8813 esac
8814
8815 # If we're using GNU nm, then use its standard symbol codes.
8816 case `$NM -V 2>&1` in
8817 *GNU* | *'with BFD'*)
8818 symcode='[ABCDGIRSTW]' ;;
8819 esac
8820
8821 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8822 # Gets list of data symbols to import.
8823 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8824 # Adjust the below global symbol transforms to fixup imported variables.
8825 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8826 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8827 lt_c_name_lib_hook="\
8828 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8829 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8830 else
8831 # Disable hooks by default.
8832 lt_cv_sys_global_symbol_to_import=
8833 lt_cdecl_hook=
8834 lt_c_name_hook=
8835 lt_c_name_lib_hook=
8836 fi
8837
8838 # Transform an extracted symbol line into a proper C declaration.
8839 # Some systems (esp. on ia64) link data and code symbols differently,
8840 # so use this general approach.
8841 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8842 $lt_cdecl_hook\
8843 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8844 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8845
8846 # Transform an extracted symbol line into symbol name and symbol address
8847 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8848 $lt_c_name_hook\
8849 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8850 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8851
8852 # Transform an extracted symbol line into symbol name with lib prefix and
8853 # symbol address.
8854 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8855 $lt_c_name_lib_hook\
8856 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8857 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8858 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8859
8860 # Handle CRLF in mingw tool chain
8861 opt_cr=
8862 case $build_os in
8863 mingw* | windows*)
8864 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8865 ;;
8866 esac
8867
8868 # Try without a prefix underscore, then with it.
8869 for ac_symprfx in "" "_"; do
8870
8871 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8872 symxfrm="\\1 $ac_symprfx\\2 \\2"
8873
8874 # Write the raw and C identifiers.
8875 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8876 # Fake it for dumpbin and say T for any non-static function,
8877 # D for any global variable and I for any imported variable.
8878 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8879 # which start with @ or ?.
8880 lt_cv_sys_global_symbol_pipe="$AWK '"\
8881 " {last_section=section; section=\$ 3};"\
8882 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8883 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8884 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8885 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8886 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8887 " \$ 0!~/External *\|/{next};"\
8888 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8889 " {if(hide[section]) next};"\
8890 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8891 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8892 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8893 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8894 " ' prfx=^$ac_symprfx"
8895 else
8896 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8897 fi
8898 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8899
8900 # Check to see that the pipe works correctly.
8901 pipe_works=no
8902
8903 rm -f conftest*
8904 cat > conftest.$ac_ext <<_LT_EOF
8905 #ifdef __cplusplus
8906 extern "C" {
8907 #endif
8908 char nm_test_var;
8909 void nm_test_func(void);
8910 void nm_test_func(void){}
8911 #ifdef __cplusplus
8912 }
8913 #endif
8914 int main(void){nm_test_var='a';nm_test_func();return(0);}
8915 _LT_EOF
8916
8917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8918 (eval $ac_compile) 2>&5
8919 ac_status=$?
8920 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8921 test $ac_status = 0; }; then
8922 # Now try to grab the symbols.
8923 nlist=conftest.nm
8924 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8925 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8926 # Try sorting and uniquifying the output.
8927 if sort "$nlist" | uniq > "$nlist"T; then
8928 mv -f "$nlist"T "$nlist"
8929 else
8930 rm -f "$nlist"T
8931 fi
8932
8933 # Make sure that we snagged all the symbols we need.
8934 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8935 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8936 cat <<_LT_EOF > conftest.$ac_ext
8937 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8938 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8939 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8940 relocations are performed -- see ld's documentation on pseudo-relocs. */
8941 # define LT_DLSYM_CONST
8942 #elif defined __osf__
8943 /* This system does not cope well with relocations in const data. */
8944 # define LT_DLSYM_CONST
8945 #else
8946 # define LT_DLSYM_CONST const
8947 #endif
8948
8949 #ifdef __cplusplus
8950 extern "C" {
8951 #endif
8952
8953 _LT_EOF
8954 # Now generate the symbol file.
8955 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8956
8957 cat <<_LT_EOF >> conftest.$ac_ext
8958
8959 /* The mapping between symbol names and symbols. */
8960 LT_DLSYM_CONST struct {
8961 const char *name;
8962 void *address;
8963 }
8964 lt__PROGRAM__LTX_preloaded_symbols[] =
8965 {
8966 { "@PROGRAM@", (void *) 0 },
8967 _LT_EOF
8968 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8969 cat <<\_LT_EOF >> conftest.$ac_ext
8970 {0, (void *) 0}
8971 };
8972
8973 /* This works around a problem in FreeBSD linker */
8974 #ifdef FREEBSD_WORKAROUND
8975 static const void *lt_preloaded_setup() {
8976 return lt__PROGRAM__LTX_preloaded_symbols;
8977 }
8978 #endif
8979
8980 #ifdef __cplusplus
8981 }
8982 #endif
8983 _LT_EOF
8984 # Now try linking the two files.
8985 mv conftest.$ac_objext conftstm.$ac_objext
8986 lt_globsym_save_LIBS=$LIBS
8987 lt_globsym_save_CFLAGS=$CFLAGS
8988 LIBS=conftstm.$ac_objext
8989 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8991 (eval $ac_link) 2>&5
8992 ac_status=$?
8993 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8994 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8995 pipe_works=yes
8996 fi
8997 LIBS=$lt_globsym_save_LIBS
8998 CFLAGS=$lt_globsym_save_CFLAGS
8999 else
9000 echo "cannot find nm_test_func in $nlist" >&5
9001 fi
9002 else
9003 echo "cannot find nm_test_var in $nlist" >&5
9004 fi
9005 else
9006 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9007 fi
9008 else
9009 echo "$progname: failed program was:" >&5
9010 cat conftest.$ac_ext >&5
9011 fi
9012 rm -rf conftest* conftst*
9013
9014 # Do not use the global_symbol_pipe unless it works.
9015 if test yes = "$pipe_works"; then
9016 break
9017 else
9018 lt_cv_sys_global_symbol_pipe=
9019 fi
9020 done
9021 ;;
9022 esac
9023 fi
9024
9025 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9026 lt_cv_sys_global_symbol_to_cdecl=
9027 fi
9028 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9029 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9030 printf '%s\n' "failed" >&6; }
9031 else
9032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9033 printf '%s\n' "ok" >&6; }
9034 fi
9035
9036 # Response file support.
9037 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9038 nm_file_list_spec='@'
9039 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9040 nm_file_list_spec='@'
9041 fi
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9080 printf %s "checking for sysroot... " >&6; }
9081
9082 # Check whether --with-sysroot was given.
9083 if test ${with_sysroot+y}
9084 then :
9085 withval=$with_sysroot;
9086 else case e in #(
9087 e) with_sysroot=no ;;
9088 esac
9089 fi
9090
9091
9092 lt_sysroot=
9093 case $with_sysroot in #(
9094 yes)
9095 if test yes = "$GCC"; then
9096 # Trim trailing / since we'll always append absolute paths and we want
9097 # to avoid //, if only for less confusing output for the user.
9098 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
9099 fi
9100 ;; #(
9101 /*)
9102 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9103 ;; #(
9104 no|'')
9105 ;; #(
9106 *)
9107 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9108 printf '%s\n' "$with_sysroot" >&6; }
9109 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9110 ;;
9111 esac
9112
9113 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9114 printf '%s\n' "${lt_sysroot:-no}" >&6; }
9115
9116
9117
9118
9119
9120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9121 printf %s "checking for a working dd... " >&6; }
9122 if test ${ac_cv_path_lt_DD+y}
9123 then :
9124 printf %s "(cached) " >&6
9125 else case e in #(
9126 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9127 cat conftest.i conftest.i >conftest2.i
9128 : ${lt_DD:=$DD}
9129 if test -z "$lt_DD"; then
9130 ac_path_lt_DD_found=false
9131 # Loop through the user's path and test for each of PROGNAME-LIST
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 for as_dir in $PATH
9134 do
9135 IFS=$as_save_IFS
9136 case $as_dir in #(((
9137 '') as_dir=./ ;;
9138 */) ;;
9139 *) as_dir=$as_dir/ ;;
9140 esac
9141 for ac_prog in dd
9142 do
9143 for ac_exec_ext in '' $ac_executable_extensions; do
9144 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9145 as_fn_executable_p "$ac_path_lt_DD" || continue
9146 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9147 cmp -s conftest.i conftest.out \
9148 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9149 fi
9150 $ac_path_lt_DD_found && break 3
9151 done
9152 done
9153 done
9154 IFS=$as_save_IFS
9155 if test -z "$ac_cv_path_lt_DD"; then
9156 :
9157 fi
9158 else
9159 ac_cv_path_lt_DD=$lt_DD
9160 fi
9161
9162 rm -f conftest.i conftest2.i conftest.out ;;
9163 esac
9164 fi
9165 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9166 printf '%s\n' "$ac_cv_path_lt_DD" >&6; }
9167
9168
9169 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9170 printf %s "checking how to truncate binary pipes... " >&6; }
9171 if test ${lt_cv_truncate_bin+y}
9172 then :
9173 printf %s "(cached) " >&6
9174 else case e in #(
9175 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9176 cat conftest.i conftest.i >conftest2.i
9177 lt_cv_truncate_bin=
9178 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9179 cmp -s conftest.i conftest.out \
9180 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9181 fi
9182 rm -f conftest.i conftest2.i conftest.out
9183 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9184 esac
9185 fi
9186 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9187 printf '%s\n' "$lt_cv_truncate_bin" >&6; }
9188
9189
9190
9191
9192
9193
9194
9195 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9196 func_cc_basename ()
9197 {
9198 for cc_temp in $*""; do
9199 case $cc_temp in
9200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9202 \-*) ;;
9203 *) break;;
9204 esac
9205 done
9206 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9207 }
9208
9209 # Check whether --enable-libtool-lock was given.
9210 if test ${enable_libtool_lock+y}
9211 then :
9212 enableval=$enable_libtool_lock;
9213 fi
9214
9215 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9216
9217 # Some flags need to be propagated to the compiler or linker for good
9218 # libtool support.
9219 case $host in
9220 ia64-*-hpux*)
9221 # Find out what ABI is being produced by ac_compile, and set mode
9222 # options accordingly.
9223 echo 'int i;' > conftest.$ac_ext
9224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9225 (eval $ac_compile) 2>&5
9226 ac_status=$?
9227 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9228 test $ac_status = 0; }; then
9229 case `$FILECMD conftest.$ac_objext` in
9230 *ELF-32*)
9231 HPUX_IA64_MODE=32
9232 ;;
9233 *ELF-64*)
9234 HPUX_IA64_MODE=64
9235 ;;
9236 esac
9237 fi
9238 rm -rf conftest*
9239 ;;
9240 *-*-irix6*)
9241 # Find out what ABI is being produced by ac_compile, and set linker
9242 # options accordingly.
9243 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9245 (eval $ac_compile) 2>&5
9246 ac_status=$?
9247 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9248 test $ac_status = 0; }; then
9249 if test yes = "$lt_cv_prog_gnu_ld"; then
9250 case `$FILECMD conftest.$ac_objext` in
9251 *32-bit*)
9252 LD="${LD-ld} -melf32bsmip"
9253 ;;
9254 *N32*)
9255 LD="${LD-ld} -melf32bmipn32"
9256 ;;
9257 *64-bit*)
9258 LD="${LD-ld} -melf64bmip"
9259 ;;
9260 esac
9261 else
9262 case `$FILECMD conftest.$ac_objext` in
9263 *32-bit*)
9264 LD="${LD-ld} -32"
9265 ;;
9266 *N32*)
9267 LD="${LD-ld} -n32"
9268 ;;
9269 *64-bit*)
9270 LD="${LD-ld} -64"
9271 ;;
9272 esac
9273 fi
9274 fi
9275 rm -rf conftest*
9276 ;;
9277
9278 mips64*-*linux*)
9279 # Find out what ABI is being produced by ac_compile, and set linker
9280 # options accordingly.
9281 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9283 (eval $ac_compile) 2>&5
9284 ac_status=$?
9285 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9286 test $ac_status = 0; }; then
9287 emul=elf
9288 case `$FILECMD conftest.$ac_objext` in
9289 *32-bit*)
9290 emul="${emul}32"
9291 ;;
9292 *64-bit*)
9293 emul="${emul}64"
9294 ;;
9295 esac
9296 case `$FILECMD conftest.$ac_objext` in
9297 *MSB*)
9298 emul="${emul}btsmip"
9299 ;;
9300 *LSB*)
9301 emul="${emul}ltsmip"
9302 ;;
9303 esac
9304 case `$FILECMD conftest.$ac_objext` in
9305 *N32*)
9306 emul="${emul}n32"
9307 ;;
9308 esac
9309 LD="${LD-ld} -m $emul"
9310 fi
9311 rm -rf conftest*
9312 ;;
9313
9314 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9315 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9316 # Find out what ABI is being produced by ac_compile, and set linker
9317 # options accordingly. Note that the listed cases only cover the
9318 # situations where additional linker options are needed (such as when
9319 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9320 # vice versa); the common cases where no linker options are needed do
9321 # not appear in the list.
9322 echo 'int i;' > conftest.$ac_ext
9323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9324 (eval $ac_compile) 2>&5
9325 ac_status=$?
9326 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9327 test $ac_status = 0; }; then
9328 case `$FILECMD conftest.o` in
9329 *32-bit*)
9330 case $host in
9331 x86_64-*kfreebsd*-gnu)
9332 LD="${LD-ld} -m elf_i386_fbsd"
9333 ;;
9334 x86_64-*linux*|x86_64-gnu*)
9335 case `$FILECMD conftest.o` in
9336 *x86-64*)
9337 LD="${LD-ld} -m elf32_x86_64"
9338 ;;
9339 *)
9340 LD="${LD-ld} -m elf_i386"
9341 ;;
9342 esac
9343 ;;
9344 powerpc64le-*linux*)
9345 LD="${LD-ld} -m elf32lppclinux"
9346 ;;
9347 powerpc64-*linux*)
9348 LD="${LD-ld} -m elf32ppclinux"
9349 ;;
9350 s390x-*linux*)
9351 LD="${LD-ld} -m elf_s390"
9352 ;;
9353 sparc64-*linux*)
9354 LD="${LD-ld} -m elf32_sparc"
9355 ;;
9356 esac
9357 ;;
9358 *64-bit*)
9359 case $host in
9360 x86_64-*kfreebsd*-gnu)
9361 LD="${LD-ld} -m elf_x86_64_fbsd"
9362 ;;
9363 x86_64-*linux*|x86_64-gnu*)
9364 LD="${LD-ld} -m elf_x86_64"
9365 ;;
9366 powerpcle-*linux*)
9367 LD="${LD-ld} -m elf64lppc"
9368 ;;
9369 powerpc-*linux*)
9370 LD="${LD-ld} -m elf64ppc"
9371 ;;
9372 s390*-*linux*|s390*-*tpf*)
9373 LD="${LD-ld} -m elf64_s390"
9374 ;;
9375 sparc*-*linux*)
9376 LD="${LD-ld} -m elf64_sparc"
9377 ;;
9378 esac
9379 ;;
9380 esac
9381 fi
9382 rm -rf conftest*
9383 ;;
9384
9385 *-*-sco3.2v5*)
9386 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9387 SAVE_CFLAGS=$CFLAGS
9388 CFLAGS="$CFLAGS -belf"
9389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9390 printf %s "checking whether the C compiler needs -belf... " >&6; }
9391 if test ${lt_cv_cc_needs_belf+y}
9392 then :
9393 printf %s "(cached) " >&6
9394 else case e in #(
9395 e) ac_ext=c
9396 ac_cpp='$CPP $CPPFLAGS'
9397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9400
9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402 /* end confdefs.h. */
9403
9404 int
9405 main (void)
9406 {
9407
9408 ;
9409 return 0;
9410 }
9411 _ACEOF
9412 if ac_fn_c_try_link "$LINENO"
9413 then :
9414 lt_cv_cc_needs_belf=yes
9415 else case e in #(
9416 e) lt_cv_cc_needs_belf=no ;;
9417 esac
9418 fi
9419 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9420 conftest$ac_exeext conftest.$ac_ext
9421 ac_ext=c
9422 ac_cpp='$CPP $CPPFLAGS'
9423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9426 ;;
9427 esac
9428 fi
9429 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9430 printf '%s\n' "$lt_cv_cc_needs_belf" >&6; }
9431 if test yes != "$lt_cv_cc_needs_belf"; then
9432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9433 CFLAGS=$SAVE_CFLAGS
9434 fi
9435 ;;
9436 *-*solaris*)
9437 # Find out what ABI is being produced by ac_compile, and set linker
9438 # options accordingly.
9439 echo 'int i;' > conftest.$ac_ext
9440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9441 (eval $ac_compile) 2>&5
9442 ac_status=$?
9443 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9444 test $ac_status = 0; }; then
9445 case `$FILECMD conftest.o` in
9446 *64-bit*)
9447 case $lt_cv_prog_gnu_ld in
9448 yes*)
9449 case $host in
9450 i?86-*-solaris*|x86_64-*-solaris*)
9451 LD="${LD-ld} -m elf_x86_64"
9452 ;;
9453 sparc*-*-solaris*)
9454 LD="${LD-ld} -m elf64_sparc"
9455 ;;
9456 esac
9457 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9458 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9459 LD=${LD-ld}_sol2
9460 fi
9461 ;;
9462 *)
9463 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9464 LD="${LD-ld} -64"
9465 fi
9466 ;;
9467 esac
9468 ;;
9469 esac
9470 fi
9471 rm -rf conftest*
9472 ;;
9473 esac
9474
9475 need_locks=$enable_libtool_lock
9476
9477 if test -n "$ac_tool_prefix"; then
9478 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9479 set dummy ${ac_tool_prefix}mt; ac_word=$2
9480 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9481 printf %s "checking for $ac_word... " >&6; }
9482 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9483 then :
9484 printf %s "(cached) " >&6
9485 else case e in #(
9486 e) if test -n "$MANIFEST_TOOL"; then
9487 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9488 else
9489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490 for as_dir in $PATH
9491 do
9492 IFS=$as_save_IFS
9493 case $as_dir in #(((
9494 '') as_dir=./ ;;
9495 */) ;;
9496 *) as_dir=$as_dir/ ;;
9497 esac
9498 for ac_exec_ext in '' $ac_executable_extensions; do
9499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9500 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9501 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9502 break 2
9503 fi
9504 done
9505 done
9506 IFS=$as_save_IFS
9507
9508 fi ;;
9509 esac
9510 fi
9511 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9512 if test -n "$MANIFEST_TOOL"; then
9513 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9514 printf '%s\n' "$MANIFEST_TOOL" >&6; }
9515 else
9516 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 printf '%s\n' "no" >&6; }
9518 fi
9519
9520
9521 fi
9522 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9523 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9524 # Extract the first word of "mt", so it can be a program name with args.
9525 set dummy mt; ac_word=$2
9526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9527 printf %s "checking for $ac_word... " >&6; }
9528 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9529 then :
9530 printf %s "(cached) " >&6
9531 else case e in #(
9532 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9533 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9534 else
9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536 for as_dir in $PATH
9537 do
9538 IFS=$as_save_IFS
9539 case $as_dir in #(((
9540 '') as_dir=./ ;;
9541 */) ;;
9542 *) as_dir=$as_dir/ ;;
9543 esac
9544 for ac_exec_ext in '' $ac_executable_extensions; do
9545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9546 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9547 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9548 break 2
9549 fi
9550 done
9551 done
9552 IFS=$as_save_IFS
9553
9554 fi ;;
9555 esac
9556 fi
9557 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9558 if test -n "$ac_ct_MANIFEST_TOOL"; then
9559 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9560 printf '%s\n' "$ac_ct_MANIFEST_TOOL" >&6; }
9561 else
9562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 printf '%s\n' "no" >&6; }
9564 fi
9565
9566 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9567 MANIFEST_TOOL=":"
9568 else
9569 case $cross_compiling:$ac_tool_warned in
9570 yes:)
9571 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9572 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9573 ac_tool_warned=yes ;;
9574 esac
9575 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9576 fi
9577 else
9578 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9579 fi
9580
9581 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9582 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9583 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9584 if test ${lt_cv_path_manifest_tool+y}
9585 then :
9586 printf %s "(cached) " >&6
9587 else case e in #(
9588 e) lt_cv_path_manifest_tool=no
9589 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9590 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9591 cat conftest.err >&5
9592 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9593 lt_cv_path_manifest_tool=yes
9594 fi
9595 rm -f conftest* ;;
9596 esac
9597 fi
9598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9599 printf '%s\n' "$lt_cv_path_manifest_tool" >&6; }
9600 if test yes != "$lt_cv_path_manifest_tool"; then
9601 MANIFEST_TOOL=:
9602 fi
9603
9604
9605
9606
9607
9608
9609 case $host_os in
9610 rhapsody* | darwin*)
9611 if test -n "$ac_tool_prefix"; then
9612 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9613 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9614 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9615 printf %s "checking for $ac_word... " >&6; }
9616 if test ${ac_cv_prog_DSYMUTIL+y}
9617 then :
9618 printf %s "(cached) " >&6
9619 else case e in #(
9620 e) if test -n "$DSYMUTIL"; then
9621 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9622 else
9623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9624 for as_dir in $PATH
9625 do
9626 IFS=$as_save_IFS
9627 case $as_dir in #(((
9628 '') as_dir=./ ;;
9629 */) ;;
9630 *) as_dir=$as_dir/ ;;
9631 esac
9632 for ac_exec_ext in '' $ac_executable_extensions; do
9633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9634 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9635 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9636 break 2
9637 fi
9638 done
9639 done
9640 IFS=$as_save_IFS
9641
9642 fi ;;
9643 esac
9644 fi
9645 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9646 if test -n "$DSYMUTIL"; then
9647 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9648 printf '%s\n' "$DSYMUTIL" >&6; }
9649 else
9650 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651 printf '%s\n' "no" >&6; }
9652 fi
9653
9654
9655 fi
9656 if test -z "$ac_cv_prog_DSYMUTIL"; then
9657 ac_ct_DSYMUTIL=$DSYMUTIL
9658 # Extract the first word of "dsymutil", so it can be a program name with args.
9659 set dummy dsymutil; ac_word=$2
9660 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9661 printf %s "checking for $ac_word... " >&6; }
9662 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9663 then :
9664 printf %s "(cached) " >&6
9665 else case e in #(
9666 e) if test -n "$ac_ct_DSYMUTIL"; then
9667 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9668 else
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 for as_dir in $PATH
9671 do
9672 IFS=$as_save_IFS
9673 case $as_dir in #(((
9674 '') as_dir=./ ;;
9675 */) ;;
9676 *) as_dir=$as_dir/ ;;
9677 esac
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9680 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9681 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9682 break 2
9683 fi
9684 done
9685 done
9686 IFS=$as_save_IFS
9687
9688 fi ;;
9689 esac
9690 fi
9691 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9692 if test -n "$ac_ct_DSYMUTIL"; then
9693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9694 printf '%s\n' "$ac_ct_DSYMUTIL" >&6; }
9695 else
9696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697 printf '%s\n' "no" >&6; }
9698 fi
9699
9700 if test "x$ac_ct_DSYMUTIL" = x; then
9701 DSYMUTIL=":"
9702 else
9703 case $cross_compiling:$ac_tool_warned in
9704 yes:)
9705 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9706 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9707 ac_tool_warned=yes ;;
9708 esac
9709 DSYMUTIL=$ac_ct_DSYMUTIL
9710 fi
9711 else
9712 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9713 fi
9714
9715 if test -n "$ac_tool_prefix"; then
9716 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9717 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9718 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719 printf %s "checking for $ac_word... " >&6; }
9720 if test ${ac_cv_prog_NMEDIT+y}
9721 then :
9722 printf %s "(cached) " >&6
9723 else case e in #(
9724 e) if test -n "$NMEDIT"; then
9725 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9726 else
9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728 for as_dir in $PATH
9729 do
9730 IFS=$as_save_IFS
9731 case $as_dir in #(((
9732 '') as_dir=./ ;;
9733 */) ;;
9734 *) as_dir=$as_dir/ ;;
9735 esac
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9738 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9739 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9740 break 2
9741 fi
9742 done
9743 done
9744 IFS=$as_save_IFS
9745
9746 fi ;;
9747 esac
9748 fi
9749 NMEDIT=$ac_cv_prog_NMEDIT
9750 if test -n "$NMEDIT"; then
9751 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9752 printf '%s\n' "$NMEDIT" >&6; }
9753 else
9754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 printf '%s\n' "no" >&6; }
9756 fi
9757
9758
9759 fi
9760 if test -z "$ac_cv_prog_NMEDIT"; then
9761 ac_ct_NMEDIT=$NMEDIT
9762 # Extract the first word of "nmedit", so it can be a program name with args.
9763 set dummy nmedit; ac_word=$2
9764 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765 printf %s "checking for $ac_word... " >&6; }
9766 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9767 then :
9768 printf %s "(cached) " >&6
9769 else case e in #(
9770 e) if test -n "$ac_ct_NMEDIT"; then
9771 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9772 else
9773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774 for as_dir in $PATH
9775 do
9776 IFS=$as_save_IFS
9777 case $as_dir in #(((
9778 '') as_dir=./ ;;
9779 */) ;;
9780 *) as_dir=$as_dir/ ;;
9781 esac
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9784 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9785 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9786 break 2
9787 fi
9788 done
9789 done
9790 IFS=$as_save_IFS
9791
9792 fi ;;
9793 esac
9794 fi
9795 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9796 if test -n "$ac_ct_NMEDIT"; then
9797 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9798 printf '%s\n' "$ac_ct_NMEDIT" >&6; }
9799 else
9800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801 printf '%s\n' "no" >&6; }
9802 fi
9803
9804 if test "x$ac_ct_NMEDIT" = x; then
9805 NMEDIT=":"
9806 else
9807 case $cross_compiling:$ac_tool_warned in
9808 yes:)
9809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9810 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9811 ac_tool_warned=yes ;;
9812 esac
9813 NMEDIT=$ac_ct_NMEDIT
9814 fi
9815 else
9816 NMEDIT="$ac_cv_prog_NMEDIT"
9817 fi
9818
9819 if test -n "$ac_tool_prefix"; then
9820 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9821 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9823 printf %s "checking for $ac_word... " >&6; }
9824 if test ${ac_cv_prog_LIPO+y}
9825 then :
9826 printf %s "(cached) " >&6
9827 else case e in #(
9828 e) if test -n "$LIPO"; then
9829 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9830 else
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832 for as_dir in $PATH
9833 do
9834 IFS=$as_save_IFS
9835 case $as_dir in #(((
9836 '') as_dir=./ ;;
9837 */) ;;
9838 *) as_dir=$as_dir/ ;;
9839 esac
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9842 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9843 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9844 break 2
9845 fi
9846 done
9847 done
9848 IFS=$as_save_IFS
9849
9850 fi ;;
9851 esac
9852 fi
9853 LIPO=$ac_cv_prog_LIPO
9854 if test -n "$LIPO"; then
9855 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9856 printf '%s\n' "$LIPO" >&6; }
9857 else
9858 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859 printf '%s\n' "no" >&6; }
9860 fi
9861
9862
9863 fi
9864 if test -z "$ac_cv_prog_LIPO"; then
9865 ac_ct_LIPO=$LIPO
9866 # Extract the first word of "lipo", so it can be a program name with args.
9867 set dummy lipo; ac_word=$2
9868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869 printf %s "checking for $ac_word... " >&6; }
9870 if test ${ac_cv_prog_ac_ct_LIPO+y}
9871 then :
9872 printf %s "(cached) " >&6
9873 else case e in #(
9874 e) if test -n "$ac_ct_LIPO"; then
9875 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9876 else
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 for as_dir in $PATH
9879 do
9880 IFS=$as_save_IFS
9881 case $as_dir in #(((
9882 '') as_dir=./ ;;
9883 */) ;;
9884 *) as_dir=$as_dir/ ;;
9885 esac
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9888 ac_cv_prog_ac_ct_LIPO="lipo"
9889 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9890 break 2
9891 fi
9892 done
9893 done
9894 IFS=$as_save_IFS
9895
9896 fi ;;
9897 esac
9898 fi
9899 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9900 if test -n "$ac_ct_LIPO"; then
9901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9902 printf '%s\n' "$ac_ct_LIPO" >&6; }
9903 else
9904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905 printf '%s\n' "no" >&6; }
9906 fi
9907
9908 if test "x$ac_ct_LIPO" = x; then
9909 LIPO=":"
9910 else
9911 case $cross_compiling:$ac_tool_warned in
9912 yes:)
9913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9914 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9915 ac_tool_warned=yes ;;
9916 esac
9917 LIPO=$ac_ct_LIPO
9918 fi
9919 else
9920 LIPO="$ac_cv_prog_LIPO"
9921 fi
9922
9923 if test -n "$ac_tool_prefix"; then
9924 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9925 set dummy ${ac_tool_prefix}otool; ac_word=$2
9926 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927 printf %s "checking for $ac_word... " >&6; }
9928 if test ${ac_cv_prog_OTOOL+y}
9929 then :
9930 printf %s "(cached) " >&6
9931 else case e in #(
9932 e) if test -n "$OTOOL"; then
9933 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9934 else
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 for as_dir in $PATH
9937 do
9938 IFS=$as_save_IFS
9939 case $as_dir in #(((
9940 '') as_dir=./ ;;
9941 */) ;;
9942 *) as_dir=$as_dir/ ;;
9943 esac
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9946 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9947 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9948 break 2
9949 fi
9950 done
9951 done
9952 IFS=$as_save_IFS
9953
9954 fi ;;
9955 esac
9956 fi
9957 OTOOL=$ac_cv_prog_OTOOL
9958 if test -n "$OTOOL"; then
9959 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9960 printf '%s\n' "$OTOOL" >&6; }
9961 else
9962 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963 printf '%s\n' "no" >&6; }
9964 fi
9965
9966
9967 fi
9968 if test -z "$ac_cv_prog_OTOOL"; then
9969 ac_ct_OTOOL=$OTOOL
9970 # Extract the first word of "otool", so it can be a program name with args.
9971 set dummy otool; ac_word=$2
9972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9973 printf %s "checking for $ac_word... " >&6; }
9974 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9975 then :
9976 printf %s "(cached) " >&6
9977 else case e in #(
9978 e) if test -n "$ac_ct_OTOOL"; then
9979 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9980 else
9981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 for as_dir in $PATH
9983 do
9984 IFS=$as_save_IFS
9985 case $as_dir in #(((
9986 '') as_dir=./ ;;
9987 */) ;;
9988 *) as_dir=$as_dir/ ;;
9989 esac
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9992 ac_cv_prog_ac_ct_OTOOL="otool"
9993 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9994 break 2
9995 fi
9996 done
9997 done
9998 IFS=$as_save_IFS
9999
10000 fi ;;
10001 esac
10002 fi
10003 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10004 if test -n "$ac_ct_OTOOL"; then
10005 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10006 printf '%s\n' "$ac_ct_OTOOL" >&6; }
10007 else
10008 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 printf '%s\n' "no" >&6; }
10010 fi
10011
10012 if test "x$ac_ct_OTOOL" = x; then
10013 OTOOL=":"
10014 else
10015 case $cross_compiling:$ac_tool_warned in
10016 yes:)
10017 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10018 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10019 ac_tool_warned=yes ;;
10020 esac
10021 OTOOL=$ac_ct_OTOOL
10022 fi
10023 else
10024 OTOOL="$ac_cv_prog_OTOOL"
10025 fi
10026
10027 if test -n "$ac_tool_prefix"; then
10028 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10029 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10030 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031 printf %s "checking for $ac_word... " >&6; }
10032 if test ${ac_cv_prog_OTOOL64+y}
10033 then :
10034 printf %s "(cached) " >&6
10035 else case e in #(
10036 e) if test -n "$OTOOL64"; then
10037 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10038 else
10039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040 for as_dir in $PATH
10041 do
10042 IFS=$as_save_IFS
10043 case $as_dir in #(((
10044 '') as_dir=./ ;;
10045 */) ;;
10046 *) as_dir=$as_dir/ ;;
10047 esac
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10050 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10051 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10052 break 2
10053 fi
10054 done
10055 done
10056 IFS=$as_save_IFS
10057
10058 fi ;;
10059 esac
10060 fi
10061 OTOOL64=$ac_cv_prog_OTOOL64
10062 if test -n "$OTOOL64"; then
10063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10064 printf '%s\n' "$OTOOL64" >&6; }
10065 else
10066 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 printf '%s\n' "no" >&6; }
10068 fi
10069
10070
10071 fi
10072 if test -z "$ac_cv_prog_OTOOL64"; then
10073 ac_ct_OTOOL64=$OTOOL64
10074 # Extract the first word of "otool64", so it can be a program name with args.
10075 set dummy otool64; ac_word=$2
10076 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077 printf %s "checking for $ac_word... " >&6; }
10078 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10079 then :
10080 printf %s "(cached) " >&6
10081 else case e in #(
10082 e) if test -n "$ac_ct_OTOOL64"; then
10083 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10084 else
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10087 do
10088 IFS=$as_save_IFS
10089 case $as_dir in #(((
10090 '') as_dir=./ ;;
10091 */) ;;
10092 *) as_dir=$as_dir/ ;;
10093 esac
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10096 ac_cv_prog_ac_ct_OTOOL64="otool64"
10097 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10098 break 2
10099 fi
10100 done
10101 done
10102 IFS=$as_save_IFS
10103
10104 fi ;;
10105 esac
10106 fi
10107 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10108 if test -n "$ac_ct_OTOOL64"; then
10109 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10110 printf '%s\n' "$ac_ct_OTOOL64" >&6; }
10111 else
10112 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 printf '%s\n' "no" >&6; }
10114 fi
10115
10116 if test "x$ac_ct_OTOOL64" = x; then
10117 OTOOL64=":"
10118 else
10119 case $cross_compiling:$ac_tool_warned in
10120 yes:)
10121 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10122 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10123 ac_tool_warned=yes ;;
10124 esac
10125 OTOOL64=$ac_ct_OTOOL64
10126 fi
10127 else
10128 OTOOL64="$ac_cv_prog_OTOOL64"
10129 fi
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10158 printf %s "checking for -single_module linker flag... " >&6; }
10159 if test ${lt_cv_apple_cc_single_mod+y}
10160 then :
10161 printf %s "(cached) " >&6
10162 else case e in #(
10163 e) lt_cv_apple_cc_single_mod=no
10164 if test -z "$LT_MULTI_MODULE"; then
10165 # By default we will add the -single_module flag. You can override
10166 # by either setting the environment variable LT_MULTI_MODULE
10167 # non-empty at configure time, or by adding -multi_module to the
10168 # link flags.
10169 rm -rf libconftest.dylib*
10170 echo "int foo(void){return 1;}" > conftest.c
10171 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10172 -dynamiclib -Wl,-single_module conftest.c" >&5
10173 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10174 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10175 _lt_result=$?
10176 # If there is a non-empty error log, and "single_module"
10177 # appears in it, assume the flag caused a linker warning
10178 if test -s conftest.err && $GREP single_module conftest.err; then
10179 cat conftest.err >&5
10180 # Otherwise, if the output was created with a 0 exit code from
10181 # the compiler, it worked.
10182 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10183 lt_cv_apple_cc_single_mod=yes
10184 else
10185 cat conftest.err >&5
10186 fi
10187 rm -rf libconftest.dylib*
10188 rm -f conftest.*
10189 fi ;;
10190 esac
10191 fi
10192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10193 printf '%s\n' "$lt_cv_apple_cc_single_mod" >&6; }
10194
10195 # Feature test to disable chained fixups since it is not
10196 # compatible with '-undefined dynamic_lookup'
10197 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
10198 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
10199 if test ${lt_cv_support_no_fixup_chains+y}
10200 then :
10201 printf %s "(cached) " >&6
10202 else case e in #(
10203 e) save_LDFLAGS=$LDFLAGS
10204 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10207
10208 int
10209 main (void)
10210 {
10211
10212 ;
10213 return 0;
10214 }
10215 _ACEOF
10216 if ac_fn_c_try_link "$LINENO"
10217 then :
10218 lt_cv_support_no_fixup_chains=yes
10219 else case e in #(
10220 e) lt_cv_support_no_fixup_chains=no
10221 ;;
10222 esac
10223 fi
10224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LDFLAGS=$save_LDFLAGS
10227
10228 ;;
10229 esac
10230 fi
10231 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10232 printf '%s\n' "$lt_cv_support_no_fixup_chains" >&6; }
10233
10234 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10235 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10236 if test ${lt_cv_ld_exported_symbols_list+y}
10237 then :
10238 printf %s "(cached) " >&6
10239 else case e in #(
10240 e) lt_cv_ld_exported_symbols_list=no
10241 save_LDFLAGS=$LDFLAGS
10242 echo "_main" > conftest.sym
10243 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10246
10247 int
10248 main (void)
10249 {
10250
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 if ac_fn_c_try_link "$LINENO"
10256 then :
10257 lt_cv_ld_exported_symbols_list=yes
10258 else case e in #(
10259 e) lt_cv_ld_exported_symbols_list=no ;;
10260 esac
10261 fi
10262 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LDFLAGS=$save_LDFLAGS
10265 ;;
10266 esac
10267 fi
10268 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10269 printf '%s\n' "$lt_cv_ld_exported_symbols_list" >&6; }
10270
10271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10272 printf %s "checking for -force_load linker flag... " >&6; }
10273 if test ${lt_cv_ld_force_load+y}
10274 then :
10275 printf %s "(cached) " >&6
10276 else case e in #(
10277 e) lt_cv_ld_force_load=no
10278 cat > conftest.c << _LT_EOF
10279 int forced_loaded() { return 2;}
10280 _LT_EOF
10281 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10282 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10283 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10284 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10285 echo "$RANLIB libconftest.a" >&5
10286 $RANLIB libconftest.a 2>&5
10287 cat > conftest.c << _LT_EOF
10288 int main(void) { return 0;}
10289 _LT_EOF
10290 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10291 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10292 _lt_result=$?
10293 if test -s conftest.err && $GREP force_load conftest.err; then
10294 cat conftest.err >&5
10295 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10296 lt_cv_ld_force_load=yes
10297 else
10298 cat conftest.err >&5
10299 fi
10300 rm -f conftest.err libconftest.a conftest conftest.c
10301 rm -rf conftest.dSYM
10302 ;;
10303 esac
10304 fi
10305 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10306 printf '%s\n' "$lt_cv_ld_force_load" >&6; }
10307 case $host_os in
10308 rhapsody* | darwin1.[012])
10309 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10310 darwin1.*)
10311 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10312 darwin*)
10313 case $MACOSX_DEPLOYMENT_TARGET,$host in
10314 10.[012],*|,*powerpc*-darwin[5-8]*)
10315 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10316 *)
10317 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10318 if test yes = "$lt_cv_support_no_fixup_chains"; then
10319 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10320 fi
10321 ;;
10322 esac
10323 ;;
10324 esac
10325 if test yes = "$lt_cv_apple_cc_single_mod"; then
10326 _lt_dar_single_mod='$single_module'
10327 fi
10328 _lt_dar_needs_single_mod=no
10329 case $host_os in
10330 rhapsody* | darwin1.*)
10331 _lt_dar_needs_single_mod=yes ;;
10332 darwin*)
10333 # When targeting Mac OS X 10.4 (darwin 8) or later,
10334 # -single_module is the default and -multi_module is unsupported.
10335 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10336 # target any OS version that needs -single_module.
10337 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10338 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10339 _lt_dar_needs_single_mod=yes ;;
10340 esac
10341 ;;
10342 esac
10343 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10344 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10345 else
10346 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10347 fi
10348 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10349 _lt_dsymutil='~$DSYMUTIL $lib || :'
10350 else
10351 _lt_dsymutil=
10352 fi
10353 ;;
10354 esac
10355
10356 # func_munge_path_list VARIABLE PATH
10357 # -----------------------------------
10358 # VARIABLE is name of variable containing _space_ separated list of
10359 # directories to be munged by the contents of PATH, which is string
10360 # having a format:
10361 # "DIR[:DIR]:"
10362 # string "DIR[ DIR]" will be prepended to VARIABLE
10363 # ":DIR[:DIR]"
10364 # string "DIR[ DIR]" will be appended to VARIABLE
10365 # "DIRP[:DIRP]::[DIRA:]DIRA"
10366 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10367 # "DIRA[ DIRA]" will be appended to VARIABLE
10368 # "DIR[:DIR]"
10369 # VARIABLE will be replaced by "DIR[ DIR]"
10370 func_munge_path_list ()
10371 {
10372 case x$2 in
10373 x)
10374 ;;
10375 *:)
10376 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10377 ;;
10378 x:*)
10379 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10380 ;;
10381 *::*)
10382 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10383 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10384 ;;
10385 *)
10386 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10387 ;;
10388 esac
10389 }
10390
10391 ac_header= ac_cache=
10392 for ac_item in $ac_header_c_list
10393 do
10394 if test $ac_cache; then
10395 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
10396 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
10397 printf '%s\n' "#define $ac_item 1" >> confdefs.h
10398 fi
10399 ac_header= ac_cache=
10400 elif test $ac_header; then
10401 ac_cache=$ac_item
10402 else
10403 ac_header=$ac_item
10404 fi
10405 done
10406
10407
10408
10409
10410
10411
10412
10413
10414 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
10415 then :
10416
10417 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
10418
10419 fi
10420 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10421 "
10422 if test "x$ac_cv_header_dlfcn_h" = xyes
10423 then :
10424 printf '%s\n' "#define HAVE_DLFCN_H 1" >>confdefs.h
10425
10426 fi
10427
10428
10429
10430
10431
10432 # Set options
10433 # Check whether --enable-static was given.
10434 if test ${enable_static+y}
10435 then :
10436 enableval=$enable_static; p=${PACKAGE-default}
10437 case $enableval in
10438 yes) enable_static=yes ;;
10439 no) enable_static=no ;;
10440 *)
10441 enable_static=no
10442 # Look at the argument we got. We use all the common list separators.
10443 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10444 for pkg in $enableval; do
10445 IFS=$lt_save_ifs
10446 if test "X$pkg" = "X$p"; then
10447 enable_static=yes
10448 fi
10449 done
10450 IFS=$lt_save_ifs
10451 ;;
10452 esac
10453 else case e in #(
10454 e) enable_static=no ;;
10455 esac
10456 fi
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467 enable_dlopen=no
10468
10469
10470 enable_win32_dll=no
10471
10472
10473 # Check whether --enable-shared was given.
10474 if test ${enable_shared+y}
10475 then :
10476 enableval=$enable_shared; p=${PACKAGE-default}
10477 case $enableval in
10478 yes) enable_shared=yes ;;
10479 no) enable_shared=no ;;
10480 *)
10481 enable_shared=no
10482 # Look at the argument we got. We use all the common list separators.
10483 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10484 for pkg in $enableval; do
10485 IFS=$lt_save_ifs
10486 if test "X$pkg" = "X$p"; then
10487 enable_shared=yes
10488 fi
10489 done
10490 IFS=$lt_save_ifs
10491 ;;
10492 esac
10493 else case e in #(
10494 e) enable_shared=yes ;;
10495 esac
10496 fi
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507 # Check whether --enable-pic was given.
10508 if test ${enable_pic+y}
10509 then :
10510 enableval=$enable_pic; lt_p=${PACKAGE-default}
10511 case $enableval in
10512 yes|no) pic_mode=$enableval ;;
10513 *)
10514 pic_mode=default
10515 # Look at the argument we got. We use all the common list separators.
10516 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10517 for lt_pkg in $enableval; do
10518 IFS=$lt_save_ifs
10519 if test "X$lt_pkg" = "X$lt_p"; then
10520 pic_mode=yes
10521 fi
10522 done
10523 IFS=$lt_save_ifs
10524 ;;
10525 esac
10526 else case e in #(
10527 e) # Check whether --with-pic was given.
10528 if test ${with_pic+y}
10529 then :
10530 withval=$with_pic; lt_p=${PACKAGE-default}
10531 case $withval in
10532 yes|no) pic_mode=$withval ;;
10533 *)
10534 pic_mode=default
10535 # Look at the argument we got. We use all the common list separators.
10536 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10537 for lt_pkg in $withval; do
10538 IFS=$lt_save_ifs
10539 if test "X$lt_pkg" = "X$lt_p"; then
10540 pic_mode=yes
10541 fi
10542 done
10543 IFS=$lt_save_ifs
10544 ;;
10545 esac
10546 else case e in #(
10547 e) pic_mode=default ;;
10548 esac
10549 fi
10550
10551 ;;
10552 esac
10553 fi
10554
10555
10556
10557
10558
10559
10560
10561
10562 # Check whether --enable-fast-install was given.
10563 if test ${enable_fast_install+y}
10564 then :
10565 enableval=$enable_fast_install; p=${PACKAGE-default}
10566 case $enableval in
10567 yes) enable_fast_install=yes ;;
10568 no) enable_fast_install=no ;;
10569 *)
10570 enable_fast_install=no
10571 # Look at the argument we got. We use all the common list separators.
10572 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10573 for pkg in $enableval; do
10574 IFS=$lt_save_ifs
10575 if test "X$pkg" = "X$p"; then
10576 enable_fast_install=yes
10577 fi
10578 done
10579 IFS=$lt_save_ifs
10580 ;;
10581 esac
10582 else case e in #(
10583 e) enable_fast_install=yes ;;
10584 esac
10585 fi
10586
10587
10588
10589
10590
10591
10592
10593
10594 shared_archive_member_spec=
10595 case $host,$enable_shared in
10596 power*-*-aix[5-9]*,yes)
10597 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10598 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10599 # Check whether --enable-aix-soname was given.
10600 if test ${enable_aix_soname+y}
10601 then :
10602 enableval=$enable_aix_soname; case $enableval in
10603 aix|svr4|both)
10604 ;;
10605 *)
10606 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10607 ;;
10608 esac
10609 lt_cv_with_aix_soname=$enable_aix_soname
10610 else case e in #(
10611 e) # Check whether --with-aix-soname was given.
10612 if test ${with_aix_soname+y}
10613 then :
10614 withval=$with_aix_soname; case $withval in
10615 aix|svr4|both)
10616 ;;
10617 *)
10618 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10619 ;;
10620 esac
10621 lt_cv_with_aix_soname=$with_aix_soname
10622 else case e in #(
10623 e) if test ${lt_cv_with_aix_soname+y}
10624 then :
10625 printf %s "(cached) " >&6
10626 else case e in #(
10627 e) lt_cv_with_aix_soname=aix ;;
10628 esac
10629 fi
10630 ;;
10631 esac
10632 fi
10633
10634 enable_aix_soname=$lt_cv_with_aix_soname ;;
10635 esac
10636 fi
10637
10638 with_aix_soname=$enable_aix_soname
10639 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10640 printf '%s\n' "$with_aix_soname" >&6; }
10641 if test aix != "$with_aix_soname"; then
10642 # For the AIX way of multilib, we name the shared archive member
10643 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10644 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10645 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10646 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10647 if test 64 = "${OBJECT_MODE-32}"; then
10648 shared_archive_member_spec=shr_64
10649 else
10650 shared_archive_member_spec=shr
10651 fi
10652 fi
10653 ;;
10654 *)
10655 with_aix_soname=aix
10656 ;;
10657 esac
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668 # This can be used to rebuild libtool when needed
10669 LIBTOOL_DEPS=$ltmain
10670
10671 # Always use our own libtool.
10672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703 test -z "$LN_S" && LN_S="ln -s"
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718 if test -n "${ZSH_VERSION+set}"; then
10719 setopt NO_GLOB_SUBST
10720 fi
10721
10722 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10723 printf %s "checking for objdir... " >&6; }
10724 if test ${lt_cv_objdir+y}
10725 then :
10726 printf %s "(cached) " >&6
10727 else case e in #(
10728 e) rm -f .libs 2>/dev/null
10729 mkdir .libs 2>/dev/null
10730 if test -d .libs; then
10731 lt_cv_objdir=.libs
10732 else
10733 # MS-DOS does not allow filenames that begin with a dot.
10734 lt_cv_objdir=_libs
10735 fi
10736 rmdir .libs 2>/dev/null ;;
10737 esac
10738 fi
10739 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10740 printf '%s\n' "$lt_cv_objdir" >&6; }
10741 objdir=$lt_cv_objdir
10742
10743
10744
10745
10746
10747 printf '%s\n' "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10748
10749
10750
10751
10752 case $host_os in
10753 aix3*)
10754 # AIX sometimes has problems with the GCC collect2 program. For some
10755 # reason, if we set the COLLECT_NAMES environment variable, the problems
10756 # vanish in a puff of smoke.
10757 if test set != "${COLLECT_NAMES+set}"; then
10758 COLLECT_NAMES=
10759 export COLLECT_NAMES
10760 fi
10761 ;;
10762 esac
10763
10764 # Global variables:
10765 ofile=libtool
10766 can_build_shared=yes
10767
10768 # All known linkers require a '.a' archive for static linking (except MSVC and
10769 # ICC, which need '.lib').
10770 libext=a
10771
10772 with_gnu_ld=$lt_cv_prog_gnu_ld
10773
10774 old_CC=$CC
10775 old_CFLAGS=$CFLAGS
10776
10777 # Set sane defaults for various variables
10778 test -z "$CC" && CC=cc
10779 test -z "$LTCC" && LTCC=$CC
10780 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10781 test -z "$LD" && LD=ld
10782 test -z "$ac_objext" && ac_objext=o
10783
10784 func_cc_basename $compiler
10785 cc_basename=$func_cc_basename_result
10786
10787
10788 # Only perform the check for file, if the check method requires it
10789 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10790 case $deplibs_check_method in
10791 file_magic*)
10792 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10793 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10794 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10795 if test ${lt_cv_path_MAGIC_CMD+y}
10796 then :
10797 printf %s "(cached) " >&6
10798 else case e in #(
10799 e) case $MAGIC_CMD in
10800 [\\/*] | ?:[\\/]*)
10801 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10802 ;;
10803 *)
10804 lt_save_MAGIC_CMD=$MAGIC_CMD
10805 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10806 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10807 for ac_dir in $ac_dummy; do
10808 IFS=$lt_save_ifs
10809 test -z "$ac_dir" && ac_dir=.
10810 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10811 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10812 if test -n "$file_magic_test_file"; then
10813 case $deplibs_check_method in
10814 "file_magic "*)
10815 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10816 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10817 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10818 $EGREP "$file_magic_regex" > /dev/null; then
10819 :
10820 else
10821 cat <<_LT_EOF 1>&2
10822
10823 *** Warning: the command libtool uses to detect shared libraries,
10824 *** $file_magic_cmd, produces output that libtool cannot recognize.
10825 *** The result is that libtool may fail to recognize shared libraries
10826 *** as such. This will affect the creation of libtool libraries that
10827 *** depend on shared libraries, but programs linked with such libtool
10828 *** libraries will work regardless of this problem. Nevertheless, you
10829 *** may want to report the problem to your system manager and/or to
10830 *** [email protected]
10831
10832 _LT_EOF
10833 fi ;;
10834 esac
10835 fi
10836 break
10837 fi
10838 done
10839 IFS=$lt_save_ifs
10840 MAGIC_CMD=$lt_save_MAGIC_CMD
10841 ;;
10842 esac ;;
10843 esac
10844 fi
10845
10846 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10847 if test -n "$MAGIC_CMD"; then
10848 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10849 printf '%s\n' "$MAGIC_CMD" >&6; }
10850 else
10851 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852 printf '%s\n' "no" >&6; }
10853 fi
10854
10855
10856
10857
10858
10859 if test -z "$lt_cv_path_MAGIC_CMD"; then
10860 if test -n "$ac_tool_prefix"; then
10861 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10862 printf %s "checking for file... " >&6; }
10863 if test ${lt_cv_path_MAGIC_CMD+y}
10864 then :
10865 printf %s "(cached) " >&6
10866 else case e in #(
10867 e) case $MAGIC_CMD in
10868 [\\/*] | ?:[\\/]*)
10869 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10870 ;;
10871 *)
10872 lt_save_MAGIC_CMD=$MAGIC_CMD
10873 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10874 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10875 for ac_dir in $ac_dummy; do
10876 IFS=$lt_save_ifs
10877 test -z "$ac_dir" && ac_dir=.
10878 if test -f "$ac_dir/file"; then
10879 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10880 if test -n "$file_magic_test_file"; then
10881 case $deplibs_check_method in
10882 "file_magic "*)
10883 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10884 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10885 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10886 $EGREP "$file_magic_regex" > /dev/null; then
10887 :
10888 else
10889 cat <<_LT_EOF 1>&2
10890
10891 *** Warning: the command libtool uses to detect shared libraries,
10892 *** $file_magic_cmd, produces output that libtool cannot recognize.
10893 *** The result is that libtool may fail to recognize shared libraries
10894 *** as such. This will affect the creation of libtool libraries that
10895 *** depend on shared libraries, but programs linked with such libtool
10896 *** libraries will work regardless of this problem. Nevertheless, you
10897 *** may want to report the problem to your system manager and/or to
10898 *** [email protected]
10899
10900 _LT_EOF
10901 fi ;;
10902 esac
10903 fi
10904 break
10905 fi
10906 done
10907 IFS=$lt_save_ifs
10908 MAGIC_CMD=$lt_save_MAGIC_CMD
10909 ;;
10910 esac ;;
10911 esac
10912 fi
10913
10914 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10915 if test -n "$MAGIC_CMD"; then
10916 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10917 printf '%s\n' "$MAGIC_CMD" >&6; }
10918 else
10919 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 printf '%s\n' "no" >&6; }
10921 fi
10922
10923
10924 else
10925 MAGIC_CMD=:
10926 fi
10927 fi
10928
10929 fi
10930 ;;
10931 esac
10932
10933 # Use C for the default configuration in the libtool script
10934
10935 lt_save_CC=$CC
10936 ac_ext=c
10937 ac_cpp='$CPP $CPPFLAGS'
10938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10941
10942
10943 # Source file extension for C test sources.
10944 ac_ext=c
10945
10946 # Object file extension for compiled C test sources.
10947 objext=o
10948 objext=$objext
10949
10950 # Code to be used in simple compile tests
10951 lt_simple_compile_test_code="int some_variable = 0;"
10952
10953 # Code to be used in simple link tests
10954 lt_simple_link_test_code='int main(void){return(0);}'
10955
10956
10957
10958
10959
10960
10961
10962 # If no C compiler was specified, use CC.
10963 LTCC=${LTCC-"$CC"}
10964
10965 # If no C compiler flags were specified, use CFLAGS.
10966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10967
10968 # Allow CC to be a program name with arguments.
10969 compiler=$CC
10970
10971 # Save the default compiler, since it gets overwritten when the other
10972 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10973 compiler_DEFAULT=$CC
10974
10975 # save warnings/boilerplate of simple test code
10976 ac_outfile=conftest.$ac_objext
10977 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10978 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10979 _lt_compiler_boilerplate=`cat conftest.err`
10980 $RM conftest*
10981
10982 ac_outfile=conftest.$ac_objext
10983 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10984 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10985 _lt_linker_boilerplate=`cat conftest.err`
10986 $RM -r conftest*
10987
10988
10989 if test -n "$compiler"; then
10990
10991 lt_prog_compiler_no_builtin_flag=
10992
10993 if test yes = "$GCC"; then
10994 case $cc_basename in
10995 nvcc*)
10996 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10997 *)
10998 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10999 esac
11000
11001 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11002 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11003 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11004 then :
11005 printf %s "(cached) " >&6
11006 else case e in #(
11007 e) lt_cv_prog_compiler_rtti_exceptions=no
11008 ac_outfile=conftest.$ac_objext
11009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11010 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11011 # Insert the option either (1) after the last *FLAGS variable, or
11012 # (2) before a word containing "conftest.", or (3) at the end.
11013 # Note that $ac_compile itself does not contain backslashes and begins
11014 # with a dollar sign (not a hyphen), so the echo should work correctly.
11015 # The option is referenced via a variable to avoid confusing sed.
11016 lt_compile=`echo "$ac_compile" | $SED \
11017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11019 -e 's:$: $lt_compiler_flag:'`
11020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11021 (eval "$lt_compile" 2>conftest.err)
11022 ac_status=$?
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 if (exit $ac_status) && test -s "$ac_outfile"; then
11026 # The compiler can only warn and ignore the option if not recognized
11027 # So say no if there are warnings other than the usual output.
11028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11031 lt_cv_prog_compiler_rtti_exceptions=yes
11032 fi
11033 fi
11034 $RM conftest*
11035 ;;
11036 esac
11037 fi
11038 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11039 printf '%s\n' "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11040
11041 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11042 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11043 else
11044 :
11045 fi
11046
11047 fi
11048
11049
11050
11051
11052
11053
11054 lt_prog_compiler_wl=
11055 lt_prog_compiler_pic=
11056 lt_prog_compiler_static=
11057
11058
11059 if test yes = "$GCC"; then
11060 lt_prog_compiler_wl='-Wl,'
11061 lt_prog_compiler_static='-static'
11062
11063 case $host_os in
11064 aix*)
11065 # All AIX code is PIC.
11066 if test ia64 = "$host_cpu"; then
11067 # AIX 5 now supports IA64 processor
11068 lt_prog_compiler_static='-Bstatic'
11069 fi
11070 lt_prog_compiler_pic='-fPIC'
11071 ;;
11072
11073 amigaos*)
11074 case $host_cpu in
11075 powerpc)
11076 # see comment about AmigaOS4 .so support
11077 lt_prog_compiler_pic='-fPIC'
11078 ;;
11079 m68k)
11080 # FIXME: we need at least 68020 code to build shared libraries, but
11081 # adding the '-m68020' flag to GCC prevents building anything better,
11082 # like '-m68040'.
11083 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11084 ;;
11085 esac
11086 ;;
11087
11088 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11089 # PIC is the default for these OSes.
11090 ;;
11091
11092 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11093 # This hack is so that the source file can tell whether it is being
11094 # built for inclusion in a dll (and should export symbols for example).
11095 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11096 # (--disable-auto-import) libraries
11097 lt_prog_compiler_pic='-DDLL_EXPORT'
11098 case $host_os in
11099 os2*)
11100 lt_prog_compiler_static='$wl-static'
11101 ;;
11102 esac
11103 ;;
11104
11105 darwin* | rhapsody*)
11106 # PIC is the default on this platform
11107 # Common symbols not allowed in MH_DYLIB files
11108 lt_prog_compiler_pic='-fno-common'
11109 ;;
11110
11111 haiku*)
11112 # PIC is the default for Haiku.
11113 # The "-static" flag exists, but is broken.
11114 lt_prog_compiler_static=
11115 ;;
11116
11117 hpux*)
11118 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11119 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11120 # sets the default TLS model and affects inlining.
11121 case $host_cpu in
11122 hppa*64*)
11123 # +Z the default
11124 ;;
11125 *)
11126 lt_prog_compiler_pic='-fPIC'
11127 ;;
11128 esac
11129 ;;
11130
11131 interix[3-9]*)
11132 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11133 # Instead, we relocate shared libraries at runtime.
11134 ;;
11135
11136 msdosdjgpp*)
11137 # Just because we use GCC doesn't mean we suddenly get shared libraries
11138 # on systems that don't support them.
11139 lt_prog_compiler_can_build_shared=no
11140 enable_shared=no
11141 ;;
11142
11143 *nto* | *qnx*)
11144 # QNX uses GNU C++, but need to define -shared option too, otherwise
11145 # it will coredump.
11146 lt_prog_compiler_pic='-fPIC -shared'
11147 ;;
11148
11149 sysv4*MP*)
11150 if test -d /usr/nec; then
11151 lt_prog_compiler_pic=-Kconform_pic
11152 fi
11153 ;;
11154
11155 *)
11156 lt_prog_compiler_pic='-fPIC'
11157 ;;
11158 esac
11159
11160 case $cc_basename in
11161 nvcc*) # Cuda Compiler Driver 2.2
11162 lt_prog_compiler_wl='-Xlinker '
11163 if test -n "$lt_prog_compiler_pic"; then
11164 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11165 fi
11166 ;;
11167 esac
11168 else
11169 # PORTME Check for flag to pass linker flags through the system compiler.
11170 case $host_os in
11171 aix*)
11172 lt_prog_compiler_wl='-Wl,'
11173 if test ia64 = "$host_cpu"; then
11174 # AIX 5 now supports IA64 processor
11175 lt_prog_compiler_static='-Bstatic'
11176 else
11177 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11178 fi
11179 ;;
11180
11181 darwin* | rhapsody*)
11182 # PIC is the default on this platform
11183 # Common symbols not allowed in MH_DYLIB files
11184 lt_prog_compiler_pic='-fno-common'
11185 case $cc_basename in
11186 nagfor*)
11187 # NAG Fortran compiler
11188 lt_prog_compiler_wl='-Wl,-Wl,,'
11189 lt_prog_compiler_pic='-PIC'
11190 lt_prog_compiler_static='-Bstatic'
11191 ;;
11192 esac
11193 ;;
11194
11195 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11196 # This hack is so that the source file can tell whether it is being
11197 # built for inclusion in a dll (and should export symbols for example).
11198 lt_prog_compiler_pic='-DDLL_EXPORT'
11199 case $host_os in
11200 os2*)
11201 lt_prog_compiler_static='$wl-static'
11202 ;;
11203 esac
11204 ;;
11205
11206 hpux9* | hpux10* | hpux11*)
11207 lt_prog_compiler_wl='-Wl,'
11208 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11209 # not for PA HP-UX.
11210 case $host_cpu in
11211 hppa*64*|ia64*)
11212 # +Z the default
11213 ;;
11214 *)
11215 lt_prog_compiler_pic='+Z'
11216 ;;
11217 esac
11218 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11219 lt_prog_compiler_static='$wl-a ${wl}archive'
11220 ;;
11221
11222 irix5* | irix6* | nonstopux*)
11223 lt_prog_compiler_wl='-Wl,'
11224 # PIC (with -KPIC) is the default.
11225 lt_prog_compiler_static='-non_shared'
11226 ;;
11227
11228 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11229 case $cc_basename in
11230 # old Intel for x86_64, which still supported -KPIC.
11231 ecc*)
11232 lt_prog_compiler_wl='-Wl,'
11233 lt_prog_compiler_pic='-KPIC'
11234 lt_prog_compiler_static='-static'
11235 ;;
11236 *flang* | ftn | f18* | f95*)
11237 # Flang compiler.
11238 lt_prog_compiler_wl='-Wl,'
11239 lt_prog_compiler_pic='-fPIC'
11240 lt_prog_compiler_static='-static'
11241 ;;
11242 # flang / f18. f95 an alias for gfortran or flang on Debian
11243 flang* | f18* | f95*)
11244 lt_prog_compiler_wl='-Wl,'
11245 lt_prog_compiler_pic='-fPIC'
11246 lt_prog_compiler_static='-static'
11247 ;;
11248 # icc used to be incompatible with GCC.
11249 # ICC 10 doesn't accept -KPIC any more.
11250 icc* | ifort*)
11251 lt_prog_compiler_wl='-Wl,'
11252 lt_prog_compiler_pic='-fPIC'
11253 lt_prog_compiler_static='-static'
11254 ;;
11255 # Lahey Fortran 8.1.
11256 lf95*)
11257 lt_prog_compiler_wl='-Wl,'
11258 lt_prog_compiler_pic='--shared'
11259 lt_prog_compiler_static='--static'
11260 ;;
11261 nagfor*)
11262 # NAG Fortran compiler
11263 lt_prog_compiler_wl='-Wl,-Wl,,'
11264 lt_prog_compiler_pic='-PIC'
11265 lt_prog_compiler_static='-Bstatic'
11266 ;;
11267 tcc*)
11268 # Fabrice Bellard et al's Tiny C Compiler
11269 lt_prog_compiler_wl='-Wl,'
11270 lt_prog_compiler_pic='-fPIC'
11271 lt_prog_compiler_static='-static'
11272 ;;
11273 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11274 # Portland Group compilers (*not* the Pentium gcc compiler,
11275 # which looks to be a dead project)
11276 lt_prog_compiler_wl='-Wl,'
11277 lt_prog_compiler_pic='-fpic'
11278 lt_prog_compiler_static='-Bstatic'
11279 ;;
11280 ccc*)
11281 lt_prog_compiler_wl='-Wl,'
11282 # All Alpha code is PIC.
11283 lt_prog_compiler_static='-non_shared'
11284 ;;
11285 xl* | bgxl* | bgf* | mpixl*)
11286 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11287 lt_prog_compiler_wl='-Wl,'
11288 lt_prog_compiler_pic='-qpic'
11289 lt_prog_compiler_static='-qstaticlink'
11290 ;;
11291 *)
11292 case `$CC -V 2>&1 | $SED 5q` in
11293 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11294 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11295 lt_prog_compiler_pic='-KPIC'
11296 lt_prog_compiler_static='-Bstatic'
11297 lt_prog_compiler_wl=''
11298 ;;
11299 *Sun\ F* | *Sun*Fortran*)
11300 lt_prog_compiler_pic='-KPIC'
11301 lt_prog_compiler_static='-Bstatic'
11302 lt_prog_compiler_wl='-Qoption ld '
11303 ;;
11304 *Sun\ C*)
11305 # Sun C 5.9
11306 lt_prog_compiler_pic='-KPIC'
11307 lt_prog_compiler_static='-Bstatic'
11308 lt_prog_compiler_wl='-Wl,'
11309 ;;
11310 *Intel*\ [CF]*Compiler*)
11311 lt_prog_compiler_wl='-Wl,'
11312 lt_prog_compiler_pic='-fPIC'
11313 lt_prog_compiler_static='-static'
11314 ;;
11315 *Portland\ Group*)
11316 lt_prog_compiler_wl='-Wl,'
11317 lt_prog_compiler_pic='-fpic'
11318 lt_prog_compiler_static='-Bstatic'
11319 ;;
11320 esac
11321 ;;
11322 esac
11323 ;;
11324
11325 newsos6)
11326 lt_prog_compiler_pic='-KPIC'
11327 lt_prog_compiler_static='-Bstatic'
11328 ;;
11329
11330 *-mlibc)
11331 lt_prog_compiler_wl='-Wl,'
11332 lt_prog_compiler_pic='-fPIC'
11333 lt_prog_compiler_static='-static'
11334 ;;
11335
11336 *nto* | *qnx*)
11337 # QNX uses GNU C++, but need to define -shared option too, otherwise
11338 # it will coredump.
11339 lt_prog_compiler_pic='-fPIC -shared'
11340 ;;
11341
11342 osf3* | osf4* | osf5*)
11343 lt_prog_compiler_wl='-Wl,'
11344 # All OSF/1 code is PIC.
11345 lt_prog_compiler_static='-non_shared'
11346 ;;
11347
11348 rdos*)
11349 lt_prog_compiler_static='-non_shared'
11350 ;;
11351
11352 serenity*)
11353 ;;
11354
11355 solaris*)
11356 lt_prog_compiler_pic='-KPIC'
11357 lt_prog_compiler_static='-Bstatic'
11358 case $cc_basename in
11359 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11360 lt_prog_compiler_wl='-Qoption ld ';;
11361 *)
11362 lt_prog_compiler_wl='-Wl,';;
11363 esac
11364 ;;
11365
11366 sunos4*)
11367 lt_prog_compiler_wl='-Qoption ld '
11368 lt_prog_compiler_pic='-PIC'
11369 lt_prog_compiler_static='-Bstatic'
11370 ;;
11371
11372 sysv4 | sysv4.2uw2* | sysv4.3*)
11373 lt_prog_compiler_wl='-Wl,'
11374 lt_prog_compiler_pic='-KPIC'
11375 lt_prog_compiler_static='-Bstatic'
11376 ;;
11377
11378 sysv4*MP*)
11379 if test -d /usr/nec; then
11380 lt_prog_compiler_pic='-Kconform_pic'
11381 lt_prog_compiler_static='-Bstatic'
11382 fi
11383 ;;
11384
11385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11386 lt_prog_compiler_wl='-Wl,'
11387 lt_prog_compiler_pic='-KPIC'
11388 lt_prog_compiler_static='-Bstatic'
11389 ;;
11390
11391 unicos*)
11392 lt_prog_compiler_wl='-Wl,'
11393 lt_prog_compiler_can_build_shared=no
11394 ;;
11395
11396 uts4*)
11397 lt_prog_compiler_pic='-pic'
11398 lt_prog_compiler_static='-Bstatic'
11399 ;;
11400
11401 *)
11402 lt_prog_compiler_can_build_shared=no
11403 ;;
11404 esac
11405 fi
11406
11407 case $host_os in
11408 # For platforms that do not support PIC, -DPIC is meaningless:
11409 *djgpp*)
11410 lt_prog_compiler_pic=
11411 ;;
11412 *)
11413 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11414 ;;
11415 esac
11416
11417 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11418 printf %s "checking for $compiler option to produce PIC... " >&6; }
11419 if test ${lt_cv_prog_compiler_pic+y}
11420 then :
11421 printf %s "(cached) " >&6
11422 else case e in #(
11423 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11424 esac
11425 fi
11426 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11427 printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; }
11428 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11429
11430 #
11431 # Check to make sure the PIC flag actually works.
11432 #
11433 if test -n "$lt_prog_compiler_pic"; then
11434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11435 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11436 if test ${lt_cv_prog_compiler_pic_works+y}
11437 then :
11438 printf %s "(cached) " >&6
11439 else case e in #(
11440 e) lt_cv_prog_compiler_pic_works=no
11441 ac_outfile=conftest.$ac_objext
11442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11443 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11444 # Insert the option either (1) after the last *FLAGS variable, or
11445 # (2) before a word containing "conftest.", or (3) at the end.
11446 # Note that $ac_compile itself does not contain backslashes and begins
11447 # with a dollar sign (not a hyphen), so the echo should work correctly.
11448 # The option is referenced via a variable to avoid confusing sed.
11449 lt_compile=`echo "$ac_compile" | $SED \
11450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11452 -e 's:$: $lt_compiler_flag:'`
11453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11454 (eval "$lt_compile" 2>conftest.err)
11455 ac_status=$?
11456 cat conftest.err >&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 if (exit $ac_status) && test -s "$ac_outfile"; then
11459 # The compiler can only warn and ignore the option if not recognized
11460 # So say no if there are warnings other than the usual output.
11461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11464 lt_cv_prog_compiler_pic_works=yes
11465 fi
11466 fi
11467 $RM conftest*
11468 ;;
11469 esac
11470 fi
11471 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11472 printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; }
11473
11474 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11475 case $lt_prog_compiler_pic in
11476 "" | " "*) ;;
11477 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11478 esac
11479 else
11480 lt_prog_compiler_pic=
11481 lt_prog_compiler_can_build_shared=no
11482 fi
11483
11484 fi
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496 #
11497 # Check to make sure the static flag actually works.
11498 #
11499 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11500 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11501 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11502 if test ${lt_cv_prog_compiler_static_works+y}
11503 then :
11504 printf %s "(cached) " >&6
11505 else case e in #(
11506 e) lt_cv_prog_compiler_static_works=no
11507 save_LDFLAGS=$LDFLAGS
11508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11509 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11511 # The linker can only warn and ignore the option if not recognized
11512 # So say no if there are warnings
11513 if test -s conftest.err; then
11514 # Append any errors to the config.log.
11515 cat conftest.err 1>&5
11516 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11518 if diff conftest.exp conftest.er2 >/dev/null; then
11519 lt_cv_prog_compiler_static_works=yes
11520 fi
11521 else
11522 lt_cv_prog_compiler_static_works=yes
11523 fi
11524 fi
11525 $RM -r conftest*
11526 LDFLAGS=$save_LDFLAGS
11527 ;;
11528 esac
11529 fi
11530 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11531 printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; }
11532
11533 if test yes = "$lt_cv_prog_compiler_static_works"; then
11534 :
11535 else
11536 lt_prog_compiler_static=
11537 fi
11538
11539
11540
11541
11542
11543
11544
11545 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11546 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11547 if test ${lt_cv_prog_compiler_c_o+y}
11548 then :
11549 printf %s "(cached) " >&6
11550 else case e in #(
11551 e) lt_cv_prog_compiler_c_o=no
11552 $RM -r conftest 2>/dev/null
11553 mkdir conftest
11554 cd conftest
11555 mkdir out
11556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11557
11558 lt_compiler_flag="-o out/conftest2.$ac_objext"
11559 # Insert the option either (1) after the last *FLAGS variable, or
11560 # (2) before a word containing "conftest.", or (3) at the end.
11561 # Note that $ac_compile itself does not contain backslashes and begins
11562 # with a dollar sign (not a hyphen), so the echo should work correctly.
11563 lt_compile=`echo "$ac_compile" | $SED \
11564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11566 -e 's:$: $lt_compiler_flag:'`
11567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11568 (eval "$lt_compile" 2>out/conftest.err)
11569 ac_status=$?
11570 cat out/conftest.err >&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11573 then
11574 # The compiler can only warn and ignore the option if not recognized
11575 # So say no if there are warnings
11576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11579 lt_cv_prog_compiler_c_o=yes
11580 fi
11581 fi
11582 chmod u+w . 2>&5
11583 $RM conftest*
11584 # SGI C++ compiler will create directory out/ii_files/ for
11585 # template instantiation
11586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11587 $RM out/* && rmdir out
11588 cd ..
11589 $RM -r conftest
11590 $RM conftest*
11591 ;;
11592 esac
11593 fi
11594 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11595 printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; }
11596
11597
11598
11599
11600
11601
11602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11603 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11604 if test ${lt_cv_prog_compiler_c_o+y}
11605 then :
11606 printf %s "(cached) " >&6
11607 else case e in #(
11608 e) lt_cv_prog_compiler_c_o=no
11609 $RM -r conftest 2>/dev/null
11610 mkdir conftest
11611 cd conftest
11612 mkdir out
11613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11614
11615 lt_compiler_flag="-o out/conftest2.$ac_objext"
11616 # Insert the option either (1) after the last *FLAGS variable, or
11617 # (2) before a word containing "conftest.", or (3) at the end.
11618 # Note that $ac_compile itself does not contain backslashes and begins
11619 # with a dollar sign (not a hyphen), so the echo should work correctly.
11620 lt_compile=`echo "$ac_compile" | $SED \
11621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11623 -e 's:$: $lt_compiler_flag:'`
11624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11625 (eval "$lt_compile" 2>out/conftest.err)
11626 ac_status=$?
11627 cat out/conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11630 then
11631 # The compiler can only warn and ignore the option if not recognized
11632 # So say no if there are warnings
11633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11634 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11635 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11636 lt_cv_prog_compiler_c_o=yes
11637 fi
11638 fi
11639 chmod u+w . 2>&5
11640 $RM conftest*
11641 # SGI C++ compiler will create directory out/ii_files/ for
11642 # template instantiation
11643 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11644 $RM out/* && rmdir out
11645 cd ..
11646 $RM -r conftest
11647 $RM conftest*
11648 ;;
11649 esac
11650 fi
11651 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11652 printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; }
11653
11654
11655
11656
11657 hard_links=nottested
11658 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11659 # do not overwrite the value of need_locks provided by the user
11660 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11661 printf %s "checking if we can lock with hard links... " >&6; }
11662 hard_links=yes
11663 $RM conftest*
11664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11665 touch conftest.a
11666 ln conftest.a conftest.b 2>&5 || hard_links=no
11667 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11668 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11669 printf '%s\n' "$hard_links" >&6; }
11670 if test no = "$hard_links"; then
11671 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11672 printf '%s\n' "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11673 need_locks=warn
11674 fi
11675 else
11676 need_locks=no
11677 fi
11678
11679
11680
11681
11682
11683
11684 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11685 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11686
11687 runpath_var=
11688 allow_undefined_flag=
11689 always_export_symbols=no
11690 archive_cmds=
11691 archive_expsym_cmds=
11692 compiler_needs_object=no
11693 enable_shared_with_static_runtimes=no
11694 export_dynamic_flag_spec=
11695 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11696 hardcode_automatic=no
11697 hardcode_direct=no
11698 hardcode_direct_absolute=no
11699 hardcode_libdir_flag_spec=
11700 hardcode_libdir_separator=
11701 hardcode_minus_L=no
11702 hardcode_shlibpath_var=unsupported
11703 inherit_rpath=no
11704 link_all_deplibs=unknown
11705 module_cmds=
11706 module_expsym_cmds=
11707 old_archive_from_new_cmds=
11708 old_archive_from_expsyms_cmds=
11709 thread_safe_flag_spec=
11710 whole_archive_flag_spec=
11711 # include_expsyms should be a list of space-separated symbols to be *always*
11712 # included in the symbol list
11713 include_expsyms=
11714 # exclude_expsyms can be an extended regexp of symbols to exclude
11715 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11716 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11717 # as well as any symbol that contains 'd'.
11718 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11720 # platforms (ab)use it in PIC code, but their linkers get confused if
11721 # the symbol is explicitly referenced. Since portable code cannot
11722 # rely on this symbol name, it's probably fine to never include it in
11723 # preloaded symbol tables.
11724 # Exclude shared library initialization/finalization symbols.
11725 extract_expsyms_cmds=
11726
11727 case $host_os in
11728 cygwin* | mingw* | windows* | pw32* | cegcc*)
11729 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11730 # When not using gcc, we currently assume that we are using
11731 # Microsoft Visual C++ or Intel C++ Compiler.
11732 if test yes != "$GCC"; then
11733 with_gnu_ld=no
11734 fi
11735 ;;
11736 interix*)
11737 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11738 with_gnu_ld=yes
11739 ;;
11740 linux* | k*bsd*-gnu | gnu*)
11741 link_all_deplibs=no
11742 ;;
11743 esac
11744
11745 ld_shlibs=yes
11746
11747 # On some targets, GNU ld is compatible enough with the native linker
11748 # that we're better off using the native interface for both.
11749 lt_use_gnu_ld_interface=no
11750 if test yes = "$with_gnu_ld"; then
11751 case $host_os in
11752 aix*)
11753 # The AIX port of GNU ld has always aspired to compatibility
11754 # with the native linker. However, as the warning in the GNU ld
11755 # block says, versions before 2.19.5* couldn't really create working
11756 # shared libraries, regardless of the interface used.
11757 case `$LD -v 2>&1` in
11758 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11759 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11760 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11761 *)
11762 lt_use_gnu_ld_interface=yes
11763 ;;
11764 esac
11765 ;;
11766 *)
11767 lt_use_gnu_ld_interface=yes
11768 ;;
11769 esac
11770 fi
11771
11772 if test yes = "$lt_use_gnu_ld_interface"; then
11773 # If archive_cmds runs LD, not CC, wlarc should be empty
11774 wlarc='$wl'
11775
11776 # Set some defaults for GNU ld with shared library support. These
11777 # are reset later if shared libraries are not supported. Putting them
11778 # here allows them to be overridden if necessary.
11779 runpath_var=LD_RUN_PATH
11780 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11781 export_dynamic_flag_spec='$wl--export-dynamic'
11782 # ancient GNU ld didn't support --whole-archive et. al.
11783 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11784 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11785 else
11786 whole_archive_flag_spec=
11787 fi
11788 supports_anon_versioning=no
11789 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11790 *GNU\ gold*) supports_anon_versioning=yes ;;
11791 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11792 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11793 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11794 *\ 2.11.*) ;; # other 2.11 versions
11795 *) supports_anon_versioning=yes ;;
11796 esac
11797
11798 # See if GNU ld supports shared libraries.
11799 case $host_os in
11800 aix[3-9]*)
11801 # On AIX/PPC, the GNU linker is very broken
11802 if test ia64 != "$host_cpu"; then
11803 ld_shlibs=no
11804 cat <<_LT_EOF 1>&2
11805
11806 *** Warning: the GNU linker, at least up to release 2.19, is reported
11807 *** to be unable to reliably create shared libraries on AIX.
11808 *** Therefore, libtool is disabling shared libraries support. If you
11809 *** really care for shared libraries, you may want to install binutils
11810 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11811 *** You will then need to restart the configuration process.
11812
11813 _LT_EOF
11814 fi
11815 ;;
11816
11817 amigaos*)
11818 case $host_cpu in
11819 powerpc)
11820 # see comment about AmigaOS4 .so support
11821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11822 archive_expsym_cmds=''
11823 ;;
11824 m68k)
11825 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)'
11826 hardcode_libdir_flag_spec='-L$libdir'
11827 hardcode_minus_L=yes
11828 ;;
11829 esac
11830 ;;
11831
11832 beos*)
11833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11834 allow_undefined_flag=unsupported
11835 # Joseph Beckenbach <[email protected]> says some releases of gcc
11836 # support --undefined. This deserves some investigation. FIXME
11837 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11838 else
11839 ld_shlibs=no
11840 fi
11841 ;;
11842
11843 cygwin* | mingw* | windows* | pw32* | cegcc*)
11844 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11845 # as there is no search path for DLLs.
11846 hardcode_libdir_flag_spec='-L$libdir'
11847 export_dynamic_flag_spec='$wl--export-all-symbols'
11848 allow_undefined_flag=unsupported
11849 always_export_symbols=no
11850 enable_shared_with_static_runtimes=yes
11851 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'
11852 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11853 file_list_spec='@'
11854
11855 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11857 # If the export-symbols file already is a .def file, use it as
11858 # is; otherwise, prepend EXPORTS...
11859 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11860 cp $export_symbols $output_objdir/$soname.def;
11861 else
11862 echo EXPORTS > $output_objdir/$soname.def;
11863 cat $export_symbols >> $output_objdir/$soname.def;
11864 fi~
11865 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11866 else
11867 ld_shlibs=no
11868 fi
11869 ;;
11870
11871 haiku*)
11872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11873 link_all_deplibs=no
11874 ;;
11875
11876 os2*)
11877 hardcode_libdir_flag_spec='-L$libdir'
11878 hardcode_minus_L=yes
11879 allow_undefined_flag=unsupported
11880 shrext_cmds=.dll
11881 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11882 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11883 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11884 $ECHO EXPORTS >> $output_objdir/$libname.def~
11885 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11886 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11887 emximp -o $lib $output_objdir/$libname.def'
11888 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11889 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11890 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11891 $ECHO EXPORTS >> $output_objdir/$libname.def~
11892 prefix_cmds="$SED"~
11893 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11894 prefix_cmds="$prefix_cmds -e 1d";
11895 fi~
11896 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11897 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11898 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11899 emximp -o $lib $output_objdir/$libname.def'
11900 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11901 enable_shared_with_static_runtimes=yes
11902 file_list_spec='@'
11903 ;;
11904
11905 interix[3-9]*)
11906 hardcode_direct=no
11907 hardcode_shlibpath_var=no
11908 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11909 export_dynamic_flag_spec='$wl-E'
11910 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11911 # Instead, shared libraries are loaded at an image base (0x10000000 by
11912 # default) and relocated if they conflict, which is a slow very memory
11913 # consuming and fragmenting process. To avoid this, we pick a random,
11914 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11915 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11916 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11917 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'
11918 ;;
11919
11920 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11921 tmp_diet=no
11922 if test linux-dietlibc = "$host_os"; then
11923 case $cc_basename in
11924 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11925 esac
11926 fi
11927 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11928 && test no = "$tmp_diet"
11929 then
11930 tmp_addflag=' $pic_flag'
11931 tmp_sharedflag='-shared'
11932 case $cc_basename,$host_cpu in
11933 pgcc*) # Portland Group C compiler
11934 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'
11935 tmp_addflag=' $pic_flag'
11936 ;;
11937 pgf77* | pgf90* | pgf95* | pgfortran*)
11938 # Portland Group f77 and f90 compilers
11939 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'
11940 tmp_addflag=' $pic_flag -Mnomain' ;;
11941 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11942 tmp_addflag=' -i_dynamic' ;;
11943 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11944 tmp_addflag=' -i_dynamic -nofor_main' ;;
11945 ifc* | ifort*) # Intel Fortran compiler
11946 tmp_addflag=' -nofor_main' ;;
11947 lf95*) # Lahey Fortran 8.1
11948 whole_archive_flag_spec=
11949 tmp_sharedflag='--shared' ;;
11950 nagfor*) # NAGFOR 5.3
11951 tmp_sharedflag='-Wl,-shared' ;;
11952 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11953 tmp_sharedflag='-qmkshrobj'
11954 tmp_addflag= ;;
11955 nvcc*) # Cuda Compiler Driver 2.2
11956 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'
11957 compiler_needs_object=yes
11958 ;;
11959 esac
11960 case `$CC -V 2>&1 | $SED 5q` in
11961 *Sun\ C*) # Sun C 5.9
11962 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'
11963 compiler_needs_object=yes
11964 tmp_sharedflag='-G' ;;
11965 *Sun\ F*) # Sun Fortran 8.3
11966 tmp_sharedflag='-G' ;;
11967 esac
11968 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11969
11970 if test yes = "$supports_anon_versioning"; then
11971 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11972 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11973 echo "local: *; };" >> $output_objdir/$libname.ver~
11974 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11975 fi
11976
11977 case $cc_basename in
11978 tcc*)
11979 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11980 export_dynamic_flag_spec='-rdynamic'
11981 ;;
11982 xlf* | bgf* | bgxlf* | mpixlf*)
11983 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11984 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11985 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11986 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11987 if test yes = "$supports_anon_versioning"; then
11988 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11989 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11990 echo "local: *; };" >> $output_objdir/$libname.ver~
11991 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11992 fi
11993 ;;
11994 esac
11995 else
11996 ld_shlibs=no
11997 fi
11998 ;;
11999
12000 *-mlibc)
12001 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12002 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12003 ;;
12004
12005 netbsd* | netbsdelf*-gnu)
12006 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12007 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12008 wlarc=
12009 else
12010 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12011 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12012 fi
12013 ;;
12014
12015 solaris*)
12016 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12017 ld_shlibs=no
12018 cat <<_LT_EOF 1>&2
12019
12020 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12021 *** create shared libraries on Solaris systems. Therefore, libtool
12022 *** is disabling shared libraries support. We urge you to upgrade GNU
12023 *** binutils to release 2.9.1 or newer. Another option is to modify
12024 *** your PATH or compiler configuration so that the native linker is
12025 *** used, and then restart.
12026
12027 _LT_EOF
12028 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12029 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12030 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12031 else
12032 ld_shlibs=no
12033 fi
12034 ;;
12035
12036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12037 case `$LD -v 2>&1` in
12038 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12039 ld_shlibs=no
12040 cat <<_LT_EOF 1>&2
12041
12042 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12043 *** reliably create shared libraries on SCO systems. Therefore, libtool
12044 *** is disabling shared libraries support. We urge you to upgrade GNU
12045 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12046 *** your PATH or compiler configuration so that the native linker is
12047 *** used, and then restart.
12048
12049 _LT_EOF
12050 ;;
12051 *)
12052 # For security reasons, it is highly recommended that you always
12053 # use absolute paths for naming shared libraries, and exclude the
12054 # DT_RUNPATH tag from executables and libraries. But doing so
12055 # requires that you compile everything twice, which is a pain.
12056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12057 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12059 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12060 else
12061 ld_shlibs=no
12062 fi
12063 ;;
12064 esac
12065 ;;
12066
12067 sunos4*)
12068 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12069 wlarc=
12070 hardcode_direct=yes
12071 hardcode_shlibpath_var=no
12072 ;;
12073
12074 *)
12075 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12076 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12077 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12078 else
12079 ld_shlibs=no
12080 fi
12081 ;;
12082 esac
12083
12084 if test no = "$ld_shlibs"; then
12085 runpath_var=
12086 hardcode_libdir_flag_spec=
12087 export_dynamic_flag_spec=
12088 whole_archive_flag_spec=
12089 fi
12090 else
12091 # PORTME fill in a description of your system's linker (not GNU ld)
12092 case $host_os in
12093 aix3*)
12094 allow_undefined_flag=unsupported
12095 always_export_symbols=yes
12096 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'
12097 # Note: this linker hardcodes the directories in LIBPATH if there
12098 # are no directories specified by -L.
12099 hardcode_minus_L=yes
12100 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12101 # Neither direct hardcoding nor static linking is supported with a
12102 # broken collect2.
12103 hardcode_direct=unsupported
12104 fi
12105 ;;
12106
12107 aix[4-9]*)
12108 if test ia64 = "$host_cpu"; then
12109 # On IA64, the linker does run time linking by default, so we don't
12110 # have to do anything special.
12111 aix_use_runtimelinking=no
12112 exp_sym_flag='-Bexport'
12113 no_entry_flag=
12114 else
12115 # If we're using GNU nm, then we don't want the "-C" option.
12116 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12117 # Without the "-l" option, or with the "-B" option, AIX nm treats
12118 # weak defined symbols like other global defined symbols, whereas
12119 # GNU nm marks them as "W".
12120 # While the 'weak' keyword is ignored in the Export File, we need
12121 # it in the Import File for the 'aix-soname' feature, so we have
12122 # to replace the "-B" option with "-P" for AIX nm.
12123 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12124 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'
12125 else
12126 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'
12127 fi
12128 aix_use_runtimelinking=no
12129
12130 # Test if we are trying to use run time linking or normal
12131 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12132 # have runtime linking enabled, and use it for executables.
12133 # For shared libraries, we enable/disable runtime linking
12134 # depending on the kind of the shared library created -
12135 # when "with_aix_soname,aix_use_runtimelinking" is:
12136 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12137 # "aix,yes" lib.so shared, rtl:yes, for executables
12138 # lib.a static archive
12139 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12140 # lib.a(lib.so.V) shared, rtl:no, for executables
12141 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12142 # lib.a(lib.so.V) shared, rtl:no
12143 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12144 # lib.a static archive
12145 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12146 for ld_flag in $LDFLAGS; do
12147 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12148 aix_use_runtimelinking=yes
12149 break
12150 fi
12151 done
12152 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12153 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12154 # so we don't have lib.a shared libs to link our executables.
12155 # We have to force runtime linking in this case.
12156 aix_use_runtimelinking=yes
12157 LDFLAGS="$LDFLAGS -Wl,-brtl"
12158 fi
12159 ;;
12160 esac
12161
12162 exp_sym_flag='-bexport'
12163 no_entry_flag='-bnoentry'
12164 fi
12165
12166 # When large executables or shared objects are built, AIX ld can
12167 # have problems creating the table of contents. If linking a library
12168 # or program results in "error TOC overflow" add -mminimal-toc to
12169 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12170 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12171
12172 archive_cmds=''
12173 hardcode_direct=yes
12174 hardcode_direct_absolute=yes
12175 hardcode_libdir_separator=':'
12176 link_all_deplibs=yes
12177 file_list_spec='$wl-f,'
12178 case $with_aix_soname,$aix_use_runtimelinking in
12179 aix,*) ;; # traditional, no import file
12180 svr4,* | *,yes) # use import file
12181 # The Import File defines what to hardcode.
12182 hardcode_direct=no
12183 hardcode_direct_absolute=no
12184 ;;
12185 esac
12186
12187 if test yes = "$GCC"; then
12188 case $host_os in aix4.[012]|aix4.[012].*)
12189 # We only want to do this on AIX 4.2 and lower, the check
12190 # below for broken collect2 doesn't work under 4.3+
12191 collect2name=`$CC -print-prog-name=collect2`
12192 if test -f "$collect2name" &&
12193 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12194 then
12195 # We have reworked collect2
12196 :
12197 else
12198 # We have old collect2
12199 hardcode_direct=unsupported
12200 # It fails to find uninstalled libraries when the uninstalled
12201 # path is not listed in the libpath. Setting hardcode_minus_L
12202 # to unsupported forces relinking
12203 hardcode_minus_L=yes
12204 hardcode_libdir_flag_spec='-L$libdir'
12205 hardcode_libdir_separator=
12206 fi
12207 ;;
12208 esac
12209 shared_flag='-shared'
12210 if test yes = "$aix_use_runtimelinking"; then
12211 shared_flag="$shared_flag "'$wl-G'
12212 fi
12213 # Need to ensure runtime linking is disabled for the traditional
12214 # shared library, or the linker may eventually find shared libraries
12215 # /with/ Import File - we do not want to mix them.
12216 shared_flag_aix='-shared'
12217 shared_flag_svr4='-shared $wl-G'
12218 else
12219 # not using gcc
12220 if test ia64 = "$host_cpu"; then
12221 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12222 # chokes on -Wl,-G. The following line is correct:
12223 shared_flag='-G'
12224 else
12225 if test yes = "$aix_use_runtimelinking"; then
12226 shared_flag='$wl-G'
12227 else
12228 shared_flag='$wl-bM:SRE'
12229 fi
12230 shared_flag_aix='$wl-bM:SRE'
12231 shared_flag_svr4='$wl-G'
12232 fi
12233 fi
12234
12235 export_dynamic_flag_spec='$wl-bexpall'
12236 # It seems that -bexpall does not export symbols beginning with
12237 # underscore (_), so it is better to generate a list of symbols to export.
12238 always_export_symbols=yes
12239 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12240 # Warning - without using the other runtime loading flags (-brtl),
12241 # -berok will link without error, but may produce a broken library.
12242 allow_undefined_flag='-berok'
12243 # Determine the default libpath from the value encoded in an
12244 # empty executable.
12245 if test set = "${lt_cv_aix_libpath+set}"; then
12246 aix_libpath=$lt_cv_aix_libpath
12247 else
12248 if test ${lt_cv_aix_libpath_+y}
12249 then :
12250 printf %s "(cached) " >&6
12251 else case e in #(
12252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253 /* end confdefs.h. */
12254
12255 int
12256 main (void)
12257 {
12258
12259 ;
12260 return 0;
12261 }
12262 _ACEOF
12263 if ac_fn_c_try_link "$LINENO"
12264 then :
12265
12266 lt_aix_libpath_sed='
12267 /Import File Strings/,/^$/ {
12268 /^0/ {
12269 s/^0 *\([^ ]*\) *$/\1/
12270 p
12271 }
12272 }'
12273 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12274 # Check for a 64-bit object if we didn't find anything.
12275 if test -z "$lt_cv_aix_libpath_"; then
12276 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12277 fi
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12280 conftest$ac_exeext conftest.$ac_ext
12281 if test -z "$lt_cv_aix_libpath_"; then
12282 lt_cv_aix_libpath_=/usr/lib:/lib
12283 fi
12284 ;;
12285 esac
12286 fi
12287
12288 aix_libpath=$lt_cv_aix_libpath_
12289 fi
12290
12291 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12292 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
12293 else
12294 if test ia64 = "$host_cpu"; then
12295 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12296 allow_undefined_flag="-z nodefs"
12297 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"
12298 else
12299 # Determine the default libpath from the value encoded in an
12300 # empty executable.
12301 if test set = "${lt_cv_aix_libpath+set}"; then
12302 aix_libpath=$lt_cv_aix_libpath
12303 else
12304 if test ${lt_cv_aix_libpath_+y}
12305 then :
12306 printf %s "(cached) " >&6
12307 else case e in #(
12308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12310
12311 int
12312 main (void)
12313 {
12314
12315 ;
12316 return 0;
12317 }
12318 _ACEOF
12319 if ac_fn_c_try_link "$LINENO"
12320 then :
12321
12322 lt_aix_libpath_sed='
12323 /Import File Strings/,/^$/ {
12324 /^0/ {
12325 s/^0 *\([^ ]*\) *$/\1/
12326 p
12327 }
12328 }'
12329 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12330 # Check for a 64-bit object if we didn't find anything.
12331 if test -z "$lt_cv_aix_libpath_"; then
12332 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12333 fi
12334 fi
12335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12336 conftest$ac_exeext conftest.$ac_ext
12337 if test -z "$lt_cv_aix_libpath_"; then
12338 lt_cv_aix_libpath_=/usr/lib:/lib
12339 fi
12340 ;;
12341 esac
12342 fi
12343
12344 aix_libpath=$lt_cv_aix_libpath_
12345 fi
12346
12347 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12348 # Warning - without using the other run time loading flags,
12349 # -berok will link without error, but may produce a broken library.
12350 no_undefined_flag=' $wl-bernotok'
12351 allow_undefined_flag=' $wl-berok'
12352 if test yes = "$with_gnu_ld"; then
12353 # We only use this code for GNU lds that support --whole-archive.
12354 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12355 else
12356 # Exported symbols can be pulled into shared objects from archives
12357 whole_archive_flag_spec='$convenience'
12358 fi
12359 archive_cmds_need_lc=yes
12360 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12361 # -brtl affects multiple linker settings, -berok does not and is overridden later
12362 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12363 if test svr4 != "$with_aix_soname"; then
12364 # This is similar to how AIX traditionally builds its shared libraries.
12365 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'
12366 fi
12367 if test aix != "$with_aix_soname"; then
12368 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'
12369 else
12370 # used by -dlpreopen to get the symbols
12371 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12372 fi
12373 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12374 fi
12375 fi
12376 ;;
12377
12378 amigaos*)
12379 case $host_cpu in
12380 powerpc)
12381 # see comment about AmigaOS4 .so support
12382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12383 archive_expsym_cmds=''
12384 ;;
12385 m68k)
12386 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)'
12387 hardcode_libdir_flag_spec='-L$libdir'
12388 hardcode_minus_L=yes
12389 ;;
12390 esac
12391 ;;
12392
12393 bsdi[45]*)
12394 export_dynamic_flag_spec=-rdynamic
12395 ;;
12396
12397 cygwin* | mingw* | windows* | pw32* | cegcc*)
12398 # When not using gcc, we currently assume that we are using
12399 # Microsoft Visual C++ or Intel C++ Compiler.
12400 # hardcode_libdir_flag_spec is actually meaningless, as there is
12401 # no search path for DLLs.
12402 case $cc_basename in
12403 cl* | icl*)
12404 # Native MSVC or ICC
12405 hardcode_libdir_flag_spec=' '
12406 allow_undefined_flag=unsupported
12407 always_export_symbols=yes
12408 file_list_spec='@'
12409 # Tell ltmain to make .lib files, not .a files.
12410 libext=lib
12411 # Tell ltmain to make .dll files, not .so files.
12412 shrext_cmds=.dll
12413 # FIXME: Setting linknames here is a bad hack.
12414 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12415 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12416 cp "$export_symbols" "$output_objdir/$soname.def";
12417 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12418 else
12419 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12420 fi~
12421 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12422 linknames='
12423 # The linker will not automatically build a static lib if we build a DLL.
12424 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12425 enable_shared_with_static_runtimes=yes
12426 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12427 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12428 # Don't use ranlib
12429 old_postinstall_cmds='chmod 644 $oldlib'
12430 postlink_cmds='lt_outputfile="@OUTPUT@"~
12431 lt_tool_outputfile="@TOOL_OUTPUT@"~
12432 case $lt_outputfile in
12433 *.exe|*.EXE) ;;
12434 *)
12435 lt_outputfile=$lt_outputfile.exe
12436 lt_tool_outputfile=$lt_tool_outputfile.exe
12437 ;;
12438 esac~
12439 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12440 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12441 $RM "$lt_outputfile.manifest";
12442 fi'
12443 ;;
12444 *)
12445 # Assume MSVC and ICC wrapper
12446 hardcode_libdir_flag_spec=' '
12447 allow_undefined_flag=unsupported
12448 # Tell ltmain to make .lib files, not .a files.
12449 libext=lib
12450 # Tell ltmain to make .dll files, not .so files.
12451 shrext_cmds=.dll
12452 # FIXME: Setting linknames here is a bad hack.
12453 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12454 # The linker will automatically build a .lib file if we build a DLL.
12455 old_archive_from_new_cmds='true'
12456 # FIXME: Should let the user specify the lib program.
12457 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12458 enable_shared_with_static_runtimes=yes
12459 ;;
12460 esac
12461 ;;
12462
12463 darwin* | rhapsody*)
12464
12465
12466 archive_cmds_need_lc=no
12467 hardcode_direct=no
12468 hardcode_automatic=yes
12469 hardcode_shlibpath_var=unsupported
12470 if test yes = "$lt_cv_ld_force_load"; then
12471 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\"`'
12472
12473 else
12474 whole_archive_flag_spec=''
12475 fi
12476 link_all_deplibs=yes
12477 allow_undefined_flag=$_lt_dar_allow_undefined
12478 case $cc_basename in
12479 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12480 *) _lt_dar_can_shared=$GCC ;;
12481 esac
12482 if test yes = "$_lt_dar_can_shared"; then
12483 output_verbose_link_cmd=func_echo_all
12484 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12485 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12486 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"
12487 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"
12488
12489 else
12490 ld_shlibs=no
12491 fi
12492
12493 ;;
12494
12495 dgux*)
12496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12497 hardcode_libdir_flag_spec='-L$libdir'
12498 hardcode_shlibpath_var=no
12499 ;;
12500
12501 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12502 # support. Future versions do this automatically, but an explicit c++rt0.o
12503 # does not break anything, and helps significantly (at the cost of a little
12504 # extra space).
12505 freebsd2.2*)
12506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12507 hardcode_libdir_flag_spec='-R$libdir'
12508 hardcode_direct=yes
12509 hardcode_shlibpath_var=no
12510 ;;
12511
12512 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12513 freebsd2.*)
12514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12515 hardcode_direct=yes
12516 hardcode_minus_L=yes
12517 hardcode_shlibpath_var=no
12518 ;;
12519
12520 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12521 freebsd* | dragonfly* | midnightbsd*)
12522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12523 hardcode_libdir_flag_spec='-R$libdir'
12524 hardcode_direct=yes
12525 hardcode_shlibpath_var=no
12526 ;;
12527
12528 hpux9*)
12529 if test yes = "$GCC"; then
12530 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'
12531 else
12532 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'
12533 fi
12534 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12535 hardcode_libdir_separator=:
12536 hardcode_direct=yes
12537
12538 # hardcode_minus_L: Not really in the search PATH,
12539 # but as the default location of the library.
12540 hardcode_minus_L=yes
12541 export_dynamic_flag_spec='$wl-E'
12542 ;;
12543
12544 hpux10*)
12545 if test yes,no = "$GCC,$with_gnu_ld"; then
12546 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12547 else
12548 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12549 fi
12550 if test no = "$with_gnu_ld"; then
12551 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12552 hardcode_libdir_separator=:
12553 hardcode_direct=yes
12554 hardcode_direct_absolute=yes
12555 export_dynamic_flag_spec='$wl-E'
12556 # hardcode_minus_L: Not really in the search PATH,
12557 # but as the default location of the library.
12558 hardcode_minus_L=yes
12559 fi
12560 ;;
12561
12562 hpux11*)
12563 if test yes,no = "$GCC,$with_gnu_ld"; then
12564 case $host_cpu in
12565 hppa*64*)
12566 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12567 ;;
12568 ia64*)
12569 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12570 ;;
12571 *)
12572 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12573 ;;
12574 esac
12575 else
12576 case $host_cpu in
12577 hppa*64*)
12578 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12579 ;;
12580 ia64*)
12581 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12582 ;;
12583 *)
12584
12585 # Older versions of the 11.00 compiler do not understand -b yet
12586 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12588 printf %s "checking if $CC understands -b... " >&6; }
12589 if test ${lt_cv_prog_compiler__b+y}
12590 then :
12591 printf %s "(cached) " >&6
12592 else case e in #(
12593 e) lt_cv_prog_compiler__b=no
12594 save_LDFLAGS=$LDFLAGS
12595 LDFLAGS="$LDFLAGS -b"
12596 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12597 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12598 # The linker can only warn and ignore the option if not recognized
12599 # So say no if there are warnings
12600 if test -s conftest.err; then
12601 # Append any errors to the config.log.
12602 cat conftest.err 1>&5
12603 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12605 if diff conftest.exp conftest.er2 >/dev/null; then
12606 lt_cv_prog_compiler__b=yes
12607 fi
12608 else
12609 lt_cv_prog_compiler__b=yes
12610 fi
12611 fi
12612 $RM -r conftest*
12613 LDFLAGS=$save_LDFLAGS
12614 ;;
12615 esac
12616 fi
12617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12618 printf '%s\n' "$lt_cv_prog_compiler__b" >&6; }
12619
12620 if test yes = "$lt_cv_prog_compiler__b"; then
12621 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12622 else
12623 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12624 fi
12625
12626 ;;
12627 esac
12628 fi
12629 if test no = "$with_gnu_ld"; then
12630 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12631 hardcode_libdir_separator=:
12632
12633 case $host_cpu in
12634 hppa*64*|ia64*)
12635 hardcode_direct=no
12636 hardcode_shlibpath_var=no
12637 ;;
12638 *)
12639 hardcode_direct=yes
12640 hardcode_direct_absolute=yes
12641 export_dynamic_flag_spec='$wl-E'
12642
12643 # hardcode_minus_L: Not really in the search PATH,
12644 # but as the default location of the library.
12645 hardcode_minus_L=yes
12646 ;;
12647 esac
12648 fi
12649 ;;
12650
12651 irix5* | irix6* | nonstopux*)
12652 if test yes = "$GCC"; then
12653 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'
12654 # Try to use the -exported_symbol ld option, if it does not
12655 # work, assume that -exports_file does not work either and
12656 # implicitly export all symbols.
12657 # This should be the same for all languages, so no per-tag cache variable.
12658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12659 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12660 if test ${lt_cv_irix_exported_symbol+y}
12661 then :
12662 printf %s "(cached) " >&6
12663 else case e in #(
12664 e) save_LDFLAGS=$LDFLAGS
12665 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12668 int foo (void) { return 0; }
12669 _ACEOF
12670 if ac_fn_c_try_link "$LINENO"
12671 then :
12672 lt_cv_irix_exported_symbol=yes
12673 else case e in #(
12674 e) lt_cv_irix_exported_symbol=no ;;
12675 esac
12676 fi
12677 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12678 conftest$ac_exeext conftest.$ac_ext
12679 LDFLAGS=$save_LDFLAGS ;;
12680 esac
12681 fi
12682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12683 printf '%s\n' "$lt_cv_irix_exported_symbol" >&6; }
12684 if test yes = "$lt_cv_irix_exported_symbol"; then
12685 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'
12686 fi
12687 link_all_deplibs=no
12688 else
12689 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'
12690 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'
12691 fi
12692 archive_cmds_need_lc='no'
12693 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12694 hardcode_libdir_separator=:
12695 inherit_rpath=yes
12696 link_all_deplibs=yes
12697 ;;
12698
12699 linux*)
12700 case $cc_basename in
12701 tcc*)
12702 # Fabrice Bellard et al's Tiny C Compiler
12703 ld_shlibs=yes
12704 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12705 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12706 ;;
12707 esac
12708 ;;
12709
12710 *-mlibc)
12711 ;;
12712
12713 netbsd* | netbsdelf*-gnu)
12714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12716 else
12717 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12718 fi
12719 hardcode_libdir_flag_spec='-R$libdir'
12720 hardcode_direct=yes
12721 hardcode_shlibpath_var=no
12722 ;;
12723
12724 newsos6)
12725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12726 hardcode_direct=yes
12727 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12728 hardcode_libdir_separator=:
12729 hardcode_shlibpath_var=no
12730 ;;
12731
12732 *nto* | *qnx*)
12733 ;;
12734
12735 openbsd*)
12736 if test -f /usr/libexec/ld.so; then
12737 hardcode_direct=yes
12738 hardcode_shlibpath_var=no
12739 hardcode_direct_absolute=yes
12740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12741 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12742 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12743 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12744 export_dynamic_flag_spec='$wl-E'
12745 else
12746 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12747 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12748 fi
12749 else
12750 ld_shlibs=no
12751 fi
12752 ;;
12753
12754 os2*)
12755 hardcode_libdir_flag_spec='-L$libdir'
12756 hardcode_minus_L=yes
12757 allow_undefined_flag=unsupported
12758 shrext_cmds=.dll
12759 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12760 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12761 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12762 $ECHO EXPORTS >> $output_objdir/$libname.def~
12763 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12764 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12765 emximp -o $lib $output_objdir/$libname.def'
12766 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12767 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12768 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12769 $ECHO EXPORTS >> $output_objdir/$libname.def~
12770 prefix_cmds="$SED"~
12771 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12772 prefix_cmds="$prefix_cmds -e 1d";
12773 fi~
12774 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12775 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12776 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12777 emximp -o $lib $output_objdir/$libname.def'
12778 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12779 enable_shared_with_static_runtimes=yes
12780 file_list_spec='@'
12781 ;;
12782
12783 osf3*)
12784 if test yes = "$GCC"; then
12785 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12786 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'
12787 else
12788 allow_undefined_flag=' -expect_unresolved \*'
12789 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'
12790 fi
12791 archive_cmds_need_lc='no'
12792 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12793 hardcode_libdir_separator=:
12794 ;;
12795
12796 osf4* | osf5*) # as osf3* with the addition of -msym flag
12797 if test yes = "$GCC"; then
12798 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12799 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'
12800 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12801 else
12802 allow_undefined_flag=' -expect_unresolved \*'
12803 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'
12804 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~
12805 $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'
12806
12807 # Both c and cxx compiler support -rpath directly
12808 hardcode_libdir_flag_spec='-rpath $libdir'
12809 fi
12810 archive_cmds_need_lc='no'
12811 hardcode_libdir_separator=:
12812 ;;
12813
12814 serenity*)
12815 ;;
12816
12817 solaris*)
12818 no_undefined_flag=' -z defs'
12819 if test yes = "$GCC"; then
12820 wlarc='$wl'
12821 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12822 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12823 $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'
12824 else
12825 case `$CC -V 2>&1` in
12826 *"Compilers 5.0"*)
12827 wlarc=''
12828 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12830 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12831 ;;
12832 *)
12833 wlarc='$wl'
12834 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12836 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12837 ;;
12838 esac
12839 fi
12840 hardcode_libdir_flag_spec='-R$libdir'
12841 hardcode_shlibpath_var=no
12842 case $host_os in
12843 solaris2.[0-5] | solaris2.[0-5].*) ;;
12844 *)
12845 # The compiler driver will combine and reorder linker options,
12846 # but understands '-z linker_flag'. GCC discards it without '$wl',
12847 # but is careful enough not to reorder.
12848 # Supported since Solaris 2.6 (maybe 2.5.1?)
12849 if test yes = "$GCC"; then
12850 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12851 else
12852 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12853 fi
12854 ;;
12855 esac
12856 link_all_deplibs=yes
12857 ;;
12858
12859 sunos4*)
12860 if test sequent = "$host_vendor"; then
12861 # Use $CC to link under sequent, because it throws in some extra .o
12862 # files that make .init and .fini sections work.
12863 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12864 else
12865 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12866 fi
12867 hardcode_libdir_flag_spec='-L$libdir'
12868 hardcode_direct=yes
12869 hardcode_minus_L=yes
12870 hardcode_shlibpath_var=no
12871 ;;
12872
12873 sysv4)
12874 case $host_vendor in
12875 sni)
12876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12877 hardcode_direct=yes # is this really true???
12878 ;;
12879 siemens)
12880 ## LD is ld it makes a PLAMLIB
12881 ## CC just makes a GrossModule.
12882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12883 reload_cmds='$CC -r -o $output$reload_objs'
12884 hardcode_direct=no
12885 ;;
12886 motorola)
12887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12888 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12889 ;;
12890 esac
12891 runpath_var='LD_RUN_PATH'
12892 hardcode_shlibpath_var=no
12893 ;;
12894
12895 sysv4.3*)
12896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897 hardcode_shlibpath_var=no
12898 export_dynamic_flag_spec='-Bexport'
12899 ;;
12900
12901 sysv4*MP*)
12902 if test -d /usr/nec; then
12903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12904 hardcode_shlibpath_var=no
12905 runpath_var=LD_RUN_PATH
12906 hardcode_runpath_var=yes
12907 ld_shlibs=yes
12908 fi
12909 ;;
12910
12911 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12912 no_undefined_flag='$wl-z,text'
12913 archive_cmds_need_lc=no
12914 hardcode_shlibpath_var=no
12915 runpath_var='LD_RUN_PATH'
12916
12917 if test yes = "$GCC"; then
12918 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12919 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12920 else
12921 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12922 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12923 fi
12924 ;;
12925
12926 sysv5* | sco3.2v5* | sco5v6*)
12927 # Note: We CANNOT use -z defs as we might desire, because we do not
12928 # link with -lc, and that would cause any symbols used from libc to
12929 # always be unresolved, which means just about no library would
12930 # ever link correctly. If we're not using GNU ld we use -z text
12931 # though, which does catch some bad symbols but isn't as heavy-handed
12932 # as -z defs.
12933 no_undefined_flag='$wl-z,text'
12934 allow_undefined_flag='$wl-z,nodefs'
12935 archive_cmds_need_lc=no
12936 hardcode_shlibpath_var=no
12937 hardcode_libdir_flag_spec='$wl-R,$libdir'
12938 hardcode_libdir_separator=':'
12939 link_all_deplibs=yes
12940 export_dynamic_flag_spec='$wl-Bexport'
12941 runpath_var='LD_RUN_PATH'
12942
12943 if test yes = "$GCC"; then
12944 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12945 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12946 else
12947 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12948 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12949 fi
12950 ;;
12951
12952 uts4*)
12953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12954 hardcode_libdir_flag_spec='-L$libdir'
12955 hardcode_shlibpath_var=no
12956 ;;
12957
12958 *)
12959 ld_shlibs=no
12960 ;;
12961 esac
12962
12963 if test sni = "$host_vendor"; then
12964 case $host in
12965 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12966 export_dynamic_flag_spec='$wl-Blargedynsym'
12967 ;;
12968 esac
12969 fi
12970 fi
12971
12972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12973 printf '%s\n' "$ld_shlibs" >&6; }
12974 test no = "$ld_shlibs" && can_build_shared=no
12975
12976 with_gnu_ld=$with_gnu_ld
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992 #
12993 # Do we need to explicitly link libc?
12994 #
12995 case "x$archive_cmds_need_lc" in
12996 x|xyes)
12997 # Assume -lc should be added
12998 archive_cmds_need_lc=yes
12999
13000 if test yes,yes = "$GCC,$enable_shared"; then
13001 case $archive_cmds in
13002 *'~'*)
13003 # FIXME: we may have to deal with multi-command sequences.
13004 ;;
13005 '$CC '*)
13006 # Test whether the compiler implicitly links with -lc since on some
13007 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13008 # to ld, don't add -lc before -lgcc.
13009 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13010 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13011 if test ${lt_cv_archive_cmds_need_lc+y}
13012 then :
13013 printf %s "(cached) " >&6
13014 else case e in #(
13015 e) $RM conftest*
13016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13017
13018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13019 (eval $ac_compile) 2>&5
13020 ac_status=$?
13021 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13022 test $ac_status = 0; } 2>conftest.err; then
13023 soname=conftest
13024 lib=conftest
13025 libobjs=conftest.$ac_objext
13026 deplibs=
13027 wl=$lt_prog_compiler_wl
13028 pic_flag=$lt_prog_compiler_pic
13029 compiler_flags=-v
13030 linker_flags=-v
13031 verstring=
13032 output_objdir=.
13033 libname=conftest
13034 lt_save_allow_undefined_flag=$allow_undefined_flag
13035 allow_undefined_flag=
13036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13037 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13038 ac_status=$?
13039 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13040 test $ac_status = 0; }
13041 then
13042 lt_cv_archive_cmds_need_lc=no
13043 else
13044 lt_cv_archive_cmds_need_lc=yes
13045 fi
13046 allow_undefined_flag=$lt_save_allow_undefined_flag
13047 else
13048 cat conftest.err 1>&5
13049 fi
13050 $RM conftest*
13051 ;;
13052 esac
13053 fi
13054 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13055 printf '%s\n' "$lt_cv_archive_cmds_need_lc" >&6; }
13056 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13057 ;;
13058 esac
13059 fi
13060 ;;
13061 esac
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13215 printf %s "checking dynamic linker characteristics... " >&6; }
13216
13217 if test yes = "$GCC"; then
13218 case $host_os in
13219 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13220 *) lt_awk_arg='/^libraries:/' ;;
13221 esac
13222 case $host_os in
13223 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13224 *) lt_sed_strip_eq='s|=/|/|g' ;;
13225 esac
13226 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13227 case $lt_search_path_spec in
13228 *\;*)
13229 # if the path contains ";" then we assume it to be the separator
13230 # otherwise default to the standard path separator (i.e. ":") - it is
13231 # assumed that no part of a normal pathname contains ";" but that should
13232 # okay in the real world where ";" in dirpaths is itself problematic.
13233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13234 ;;
13235 *)
13236 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13237 ;;
13238 esac
13239 # Ok, now we have the path, separated by spaces, we can step through it
13240 # and add multilib dir if necessary...
13241 lt_tmp_lt_search_path_spec=
13242 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13243 # ...but if some path component already ends with the multilib dir we assume
13244 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13245 case "$lt_multi_os_dir; $lt_search_path_spec " in
13246 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13247 lt_multi_os_dir=
13248 ;;
13249 esac
13250 for lt_sys_path in $lt_search_path_spec; do
13251 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13252 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13253 elif test -n "$lt_multi_os_dir"; then
13254 test -d "$lt_sys_path" && \
13255 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13256 fi
13257 done
13258 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13259 BEGIN {RS = " "; FS = "/|\n";} {
13260 lt_foo = "";
13261 lt_count = 0;
13262 for (lt_i = NF; lt_i > 0; lt_i--) {
13263 if ($lt_i != "" && $lt_i != ".") {
13264 if ($lt_i == "..") {
13265 lt_count++;
13266 } else {
13267 if (lt_count == 0) {
13268 lt_foo = "/" $lt_i lt_foo;
13269 } else {
13270 lt_count--;
13271 }
13272 }
13273 }
13274 }
13275 if (lt_foo != "") { lt_freq[lt_foo]++; }
13276 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13277 }'`
13278 # AWK program above erroneously prepends '/' to C:/dos/paths
13279 # for these hosts.
13280 case $host_os in
13281 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13282 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13283 esac
13284 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13285 else
13286 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13287 fi
13288 library_names_spec=
13289 libname_spec='lib$name'
13290 soname_spec=
13291 shrext_cmds=.so
13292 postinstall_cmds=
13293 postuninstall_cmds=
13294 finish_cmds=
13295 finish_eval=
13296 shlibpath_var=
13297 shlibpath_overrides_runpath=unknown
13298 version_type=none
13299 dynamic_linker="$host_os ld.so"
13300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13301 need_lib_prefix=unknown
13302 hardcode_into_libs=no
13303
13304 # when you set need_version to no, make sure it does not cause -set_version
13305 # flags to be left without arguments
13306 need_version=unknown
13307
13308
13309
13310 case $host_os in
13311 aix3*)
13312 version_type=linux # correct to gnu/linux during the next big refactor
13313 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13314 shlibpath_var=LIBPATH
13315
13316 # AIX 3 has no versioning support, so we append a major version to the name.
13317 soname_spec='$libname$release$shared_ext$major'
13318 ;;
13319
13320 aix[4-9]*)
13321 version_type=linux # correct to gnu/linux during the next big refactor
13322 need_lib_prefix=no
13323 need_version=no
13324 hardcode_into_libs=yes
13325 if test ia64 = "$host_cpu"; then
13326 # AIX 5 supports IA64
13327 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13328 shlibpath_var=LD_LIBRARY_PATH
13329 else
13330 # With GCC up to 2.95.x, collect2 would create an import file
13331 # for dependence libraries. The import file would start with
13332 # the line '#! .'. This would cause the generated library to
13333 # depend on '.', always an invalid library. This was fixed in
13334 # development snapshots of GCC prior to 3.0.
13335 case $host_os in
13336 aix4 | aix4.[01] | aix4.[01].*)
13337 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13338 echo ' yes '
13339 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13340 :
13341 else
13342 can_build_shared=no
13343 fi
13344 ;;
13345 esac
13346 # Using Import Files as archive members, it is possible to support
13347 # filename-based versioning of shared library archives on AIX. While
13348 # this would work for both with and without runtime linking, it will
13349 # prevent static linking of such archives. So we do filename-based
13350 # shared library versioning with .so extension only, which is used
13351 # when both runtime linking and shared linking is enabled.
13352 # Unfortunately, runtime linking may impact performance, so we do
13353 # not want this to be the default eventually. Also, we use the
13354 # versioned .so libs for executables only if there is the -brtl
13355 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13356 # To allow for filename-based versioning support, we need to create
13357 # libNAME.so.V as an archive file, containing:
13358 # *) an Import File, referring to the versioned filename of the
13359 # archive as well as the shared archive member, telling the
13360 # bitwidth (32 or 64) of that shared object, and providing the
13361 # list of exported symbols of that shared object, eventually
13362 # decorated with the 'weak' keyword
13363 # *) the shared object with the F_LOADONLY flag set, to really avoid
13364 # it being seen by the linker.
13365 # At run time we better use the real file rather than another symlink,
13366 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13367
13368 case $with_aix_soname,$aix_use_runtimelinking in
13369 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13370 # soname into executable. Probably we can add versioning support to
13371 # collect2, so additional links can be useful in future.
13372 aix,yes) # traditional libtool
13373 dynamic_linker='AIX unversionable lib.so'
13374 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13375 # instead of lib<name>.a to let people know that these are not
13376 # typical AIX shared libraries.
13377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13378 ;;
13379 aix,no) # traditional AIX only
13380 dynamic_linker='AIX lib.a(lib.so.V)'
13381 # We preserve .a as extension for shared libraries through AIX4.2
13382 # and later when we are not doing run time linking.
13383 library_names_spec='$libname$release.a $libname.a'
13384 soname_spec='$libname$release$shared_ext$major'
13385 ;;
13386 svr4,*) # full svr4 only
13387 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13388 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13389 # We do not specify a path in Import Files, so LIBPATH fires.
13390 shlibpath_overrides_runpath=yes
13391 ;;
13392 *,yes) # both, prefer svr4
13393 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13394 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13395 # unpreferred sharedlib libNAME.a needs extra handling
13396 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"'
13397 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"'
13398 # We do not specify a path in Import Files, so LIBPATH fires.
13399 shlibpath_overrides_runpath=yes
13400 ;;
13401 *,no) # both, prefer aix
13402 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13403 library_names_spec='$libname$release.a $libname.a'
13404 soname_spec='$libname$release$shared_ext$major'
13405 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13406 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)'
13407 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"'
13408 ;;
13409 esac
13410 shlibpath_var=LIBPATH
13411 fi
13412 ;;
13413
13414 amigaos*)
13415 case $host_cpu in
13416 powerpc)
13417 # Since July 2007 AmigaOS4 officially supports .so libraries.
13418 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13420 ;;
13421 m68k)
13422 library_names_spec='$libname.ixlibrary $libname.a'
13423 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13424 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'
13425 ;;
13426 esac
13427 ;;
13428
13429 beos*)
13430 library_names_spec='$libname$shared_ext'
13431 dynamic_linker="$host_os ld.so"
13432 shlibpath_var=LIBRARY_PATH
13433 ;;
13434
13435 bsdi[45]*)
13436 version_type=linux # correct to gnu/linux during the next big refactor
13437 need_version=no
13438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13439 soname_spec='$libname$release$shared_ext$major'
13440 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13441 shlibpath_var=LD_LIBRARY_PATH
13442 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13443 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13444 # the default ld.so.conf also contains /usr/contrib/lib and
13445 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13446 # libtool to hard-code these into programs
13447 ;;
13448
13449 cygwin* | mingw* | windows* | pw32* | cegcc*)
13450 version_type=windows
13451 shrext_cmds=.dll
13452 need_version=no
13453 need_lib_prefix=no
13454
13455 case $GCC,$cc_basename in
13456 yes,*)
13457 # gcc
13458 library_names_spec='$libname.dll.a'
13459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13460 # If user builds GCC with multilib enabled,
13461 # it should just install on $(libdir)
13462 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13463 if test xyes = x"$multilib"; then
13464 postinstall_cmds='base_file=`basename \$file`~
13465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13466 dldir=$destdir/`dirname \$dlpath`~
13467 $install_prog $dir/$dlname $destdir/$dlname~
13468 chmod a+x $destdir/$dlname~
13469 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13470 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13471 fi'
13472 else
13473 postinstall_cmds='base_file=`basename \$file`~
13474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13475 dldir=$destdir/`dirname \$dlpath`~
13476 test -d \$dldir || mkdir -p \$dldir~
13477 $install_prog $dir/$dlname \$dldir/$dlname~
13478 chmod a+x \$dldir/$dlname~
13479 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13480 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13481 fi'
13482 fi
13483 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13484 dlpath=$dir/\$dldll~
13485 $RM \$dlpath'
13486 shlibpath_overrides_runpath=yes
13487
13488 case $host_os in
13489 cygwin*)
13490 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13491 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13492
13493 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13494 ;;
13495 mingw* | windows* | cegcc*)
13496 # MinGW DLLs use traditional 'lib' prefix
13497 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13498 ;;
13499 pw32*)
13500 # pw32 DLLs use 'pw' prefix rather than 'lib'
13501 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13502 ;;
13503 esac
13504 dynamic_linker='Win32 ld.exe'
13505 ;;
13506
13507 *,cl* | *,icl*)
13508 # Native MSVC or ICC
13509 libname_spec='$name'
13510 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13511 library_names_spec='$libname.dll.lib'
13512
13513 case $build_os in
13514 mingw* | windows*)
13515 sys_lib_search_path_spec=
13516 lt_save_ifs=$IFS
13517 IFS=';'
13518 for lt_path in $LIB
13519 do
13520 IFS=$lt_save_ifs
13521 # Let DOS variable expansion print the short 8.3 style file name.
13522 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13523 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13524 done
13525 IFS=$lt_save_ifs
13526 # Convert to MSYS style.
13527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13528 ;;
13529 cygwin*)
13530 # Convert to unix form, then to dos form, then back to unix form
13531 # but this time dos style (no spaces!) so that the unix form looks
13532 # like /cygdrive/c/PROGRA~1:/cygdr...
13533 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13534 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13535 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13536 ;;
13537 *)
13538 sys_lib_search_path_spec=$LIB
13539 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13540 # It is most probably a Windows format PATH.
13541 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13542 else
13543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13544 fi
13545 # FIXME: find the short name or the path components, as spaces are
13546 # common. (e.g. "Program Files" -> "PROGRA~1")
13547 ;;
13548 esac
13549
13550 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13551 postinstall_cmds='base_file=`basename \$file`~
13552 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13553 dldir=$destdir/`dirname \$dlpath`~
13554 test -d \$dldir || mkdir -p \$dldir~
13555 $install_prog $dir/$dlname \$dldir/$dlname'
13556 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13557 dlpath=$dir/\$dldll~
13558 $RM \$dlpath'
13559 shlibpath_overrides_runpath=yes
13560 dynamic_linker='Win32 link.exe'
13561 ;;
13562
13563 *)
13564 # Assume MSVC and ICC wrapper
13565 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13566 dynamic_linker='Win32 ld.exe'
13567 ;;
13568 esac
13569 # FIXME: first we should search . and the directory the executable is in
13570 shlibpath_var=PATH
13571 ;;
13572
13573 darwin* | rhapsody*)
13574 dynamic_linker="$host_os dyld"
13575 version_type=darwin
13576 need_lib_prefix=no
13577 need_version=no
13578 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13579 soname_spec='$libname$release$major$shared_ext'
13580 shlibpath_overrides_runpath=yes
13581 shlibpath_var=DYLD_LIBRARY_PATH
13582 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13583
13584 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13585 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13586 ;;
13587
13588 dgux*)
13589 version_type=linux # correct to gnu/linux during the next big refactor
13590 need_lib_prefix=no
13591 need_version=no
13592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13593 soname_spec='$libname$release$shared_ext$major'
13594 shlibpath_var=LD_LIBRARY_PATH
13595 ;;
13596
13597 freebsd* | dragonfly* | midnightbsd*)
13598 # DragonFly does not have aout. When/if they implement a new
13599 # versioning mechanism, adjust this.
13600 if test -x /usr/bin/objformat; then
13601 objformat=`/usr/bin/objformat`
13602 else
13603 case $host_os in
13604 freebsd[23].*) objformat=aout ;;
13605 *) objformat=elf ;;
13606 esac
13607 fi
13608 version_type=freebsd-$objformat
13609 case $version_type in
13610 freebsd-elf*)
13611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13612 soname_spec='$libname$release$shared_ext$major'
13613 need_version=no
13614 need_lib_prefix=no
13615 ;;
13616 freebsd-*)
13617 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13618 need_version=yes
13619 ;;
13620 esac
13621 case $host_cpu in
13622 powerpc64)
13623 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13624 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13627 int test_pointer_size[sizeof (void *) - 5];
13628
13629 _ACEOF
13630 if ac_fn_c_try_compile "$LINENO"
13631 then :
13632 shlibpath_var=LD_LIBRARY_PATH
13633 else case e in #(
13634 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13635 esac
13636 fi
13637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13638 ;;
13639 *)
13640 shlibpath_var=LD_LIBRARY_PATH
13641 ;;
13642 esac
13643 case $host_os in
13644 freebsd2.*)
13645 shlibpath_overrides_runpath=yes
13646 ;;
13647 freebsd3.[01]* | freebsdelf3.[01]*)
13648 shlibpath_overrides_runpath=yes
13649 hardcode_into_libs=yes
13650 ;;
13651 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13652 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13653 shlibpath_overrides_runpath=no
13654 hardcode_into_libs=yes
13655 ;;
13656 *) # from 4.6 on, and DragonFly
13657 shlibpath_overrides_runpath=yes
13658 hardcode_into_libs=yes
13659 ;;
13660 esac
13661 ;;
13662
13663 haiku*)
13664 version_type=linux # correct to gnu/linux during the next big refactor
13665 need_lib_prefix=no
13666 need_version=no
13667 dynamic_linker="$host_os runtime_loader"
13668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13669 soname_spec='$libname$release$shared_ext$major'
13670 shlibpath_var=LIBRARY_PATH
13671 shlibpath_overrides_runpath=no
13672 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13673 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13674 hardcode_into_libs=no
13675 ;;
13676
13677 hpux9* | hpux10* | hpux11*)
13678 # Give a soname corresponding to the major version so that dld.sl refuses to
13679 # link against other versions.
13680 version_type=sunos
13681 need_lib_prefix=no
13682 need_version=no
13683 case $host_cpu in
13684 ia64*)
13685 shrext_cmds='.so'
13686 hardcode_into_libs=yes
13687 dynamic_linker="$host_os dld.so"
13688 shlibpath_var=LD_LIBRARY_PATH
13689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13691 soname_spec='$libname$release$shared_ext$major'
13692 if test 32 = "$HPUX_IA64_MODE"; then
13693 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13694 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13695 else
13696 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13697 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13698 fi
13699 ;;
13700 hppa*64*)
13701 shrext_cmds='.sl'
13702 hardcode_into_libs=yes
13703 dynamic_linker="$host_os dld.sl"
13704 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13707 soname_spec='$libname$release$shared_ext$major'
13708 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13710 ;;
13711 *)
13712 shrext_cmds='.sl'
13713 dynamic_linker="$host_os dld.sl"
13714 shlibpath_var=SHLIB_PATH
13715 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13717 soname_spec='$libname$release$shared_ext$major'
13718 ;;
13719 esac
13720 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13721 postinstall_cmds='chmod 555 $lib'
13722 # or fails outright, so override atomically:
13723 install_override_mode=555
13724 ;;
13725
13726 interix[3-9]*)
13727 version_type=linux # correct to gnu/linux during the next big refactor
13728 need_lib_prefix=no
13729 need_version=no
13730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13731 soname_spec='$libname$release$shared_ext$major'
13732 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13733 shlibpath_var=LD_LIBRARY_PATH
13734 shlibpath_overrides_runpath=no
13735 hardcode_into_libs=yes
13736 ;;
13737
13738 irix5* | irix6* | nonstopux*)
13739 case $host_os in
13740 nonstopux*) version_type=nonstopux ;;
13741 *)
13742 if test yes = "$lt_cv_prog_gnu_ld"; then
13743 version_type=linux # correct to gnu/linux during the next big refactor
13744 else
13745 version_type=irix
13746 fi ;;
13747 esac
13748 need_lib_prefix=no
13749 need_version=no
13750 soname_spec='$libname$release$shared_ext$major'
13751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13752 case $host_os in
13753 irix5* | nonstopux*)
13754 libsuff= shlibsuff=
13755 ;;
13756 *)
13757 case $LD in # libtool.m4 will add one of these switches to LD
13758 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13759 libsuff= shlibsuff= libmagic=32-bit;;
13760 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13761 libsuff=32 shlibsuff=N32 libmagic=N32;;
13762 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13763 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13764 *) libsuff= shlibsuff= libmagic=never-match;;
13765 esac
13766 ;;
13767 esac
13768 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13769 shlibpath_overrides_runpath=no
13770 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13771 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13772 hardcode_into_libs=yes
13773 ;;
13774
13775 # No shared lib support for Linux oldld, aout, or coff.
13776 linux*oldld* | linux*aout* | linux*coff*)
13777 dynamic_linker=no
13778 ;;
13779
13780 linux*android*)
13781 version_type=none # Android doesn't support versioned libraries.
13782 need_lib_prefix=no
13783 need_version=no
13784 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13785 soname_spec='$libname$release$shared_ext'
13786 finish_cmds=
13787 shlibpath_var=LD_LIBRARY_PATH
13788 shlibpath_overrides_runpath=yes
13789
13790 # This implies no fast_install, which is unacceptable.
13791 # Some rework will be needed to allow for fast_install
13792 # before this can be enabled.
13793 hardcode_into_libs=yes
13794
13795 dynamic_linker='Android linker'
13796 # -rpath works at least for libraries that are not overridden by
13797 # libraries installed in system locations.
13798 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13799 ;;
13800
13801 # This must be glibc/ELF.
13802 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13803 version_type=linux # correct to gnu/linux during the next big refactor
13804 need_lib_prefix=no
13805 need_version=no
13806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13807 soname_spec='$libname$release$shared_ext$major'
13808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13809 shlibpath_var=LD_LIBRARY_PATH
13810 shlibpath_overrides_runpath=no
13811
13812 # Some binutils ld are patched to set DT_RUNPATH
13813 if test ${lt_cv_shlibpath_overrides_runpath+y}
13814 then :
13815 printf %s "(cached) " >&6
13816 else case e in #(
13817 e) lt_cv_shlibpath_overrides_runpath=no
13818 save_LDFLAGS=$LDFLAGS
13819 save_libdir=$libdir
13820 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13821 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h. */
13824
13825 int
13826 main (void)
13827 {
13828
13829 ;
13830 return 0;
13831 }
13832 _ACEOF
13833 if ac_fn_c_try_link "$LINENO"
13834 then :
13835 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13836 then :
13837 lt_cv_shlibpath_overrides_runpath=yes
13838 fi
13839 fi
13840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13841 conftest$ac_exeext conftest.$ac_ext
13842 LDFLAGS=$save_LDFLAGS
13843 libdir=$save_libdir
13844 ;;
13845 esac
13846 fi
13847
13848 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13849
13850 # This implies no fast_install, which is unacceptable.
13851 # Some rework will be needed to allow for fast_install
13852 # before this can be enabled.
13853 hardcode_into_libs=yes
13854
13855 # Ideally, we could use ldconfig to report *all* directories which are
13856 # searched for libraries, however this is still not possible. Aside from not
13857 # being certain /sbin/ldconfig is available, command
13858 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13859 # even though it is searched at run-time. Try to do the best guess by
13860 # appending ld.so.conf contents (and includes) to the search path.
13861 if test -f /etc/ld.so.conf; then
13862 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' ' '`
13863 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13864 fi
13865
13866 # We used to test for /lib/ld.so.1 and disable shared libraries on
13867 # powerpc, because MkLinux only supported shared libraries with the
13868 # GNU dynamic linker. Since this was broken with cross compilers,
13869 # most powerpc-linux boxes support dynamic linking these days and
13870 # people can always --disable-shared, the test was removed, and we
13871 # assume the GNU/Linux dynamic linker is in use.
13872 dynamic_linker='GNU/Linux ld.so'
13873 ;;
13874
13875 netbsdelf*-gnu)
13876 version_type=linux
13877 need_lib_prefix=no
13878 need_version=no
13879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13880 soname_spec='$libname$release$shared_ext$major'
13881 shlibpath_var=LD_LIBRARY_PATH
13882 shlibpath_overrides_runpath=no
13883 hardcode_into_libs=yes
13884 dynamic_linker='NetBSD ld.elf_so'
13885 ;;
13886
13887 netbsdelf*-gnu)
13888 version_type=linux
13889 need_lib_prefix=no
13890 need_version=no
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13892 soname_spec='${libname}${release}${shared_ext}$major'
13893 shlibpath_var=LD_LIBRARY_PATH
13894 shlibpath_overrides_runpath=no
13895 hardcode_into_libs=yes
13896 dynamic_linker='NetBSD ld.elf_so'
13897 ;;
13898
13899 netbsd*)
13900 version_type=sunos
13901 need_lib_prefix=no
13902 need_version=no
13903 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13904 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13906 dynamic_linker='NetBSD (a.out) ld.so'
13907 else
13908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13909 soname_spec='$libname$release$shared_ext$major'
13910 dynamic_linker='NetBSD ld.elf_so'
13911 fi
13912 shlibpath_var=LD_LIBRARY_PATH
13913 shlibpath_overrides_runpath=yes
13914 hardcode_into_libs=yes
13915 ;;
13916
13917 *-mlibc)
13918 version_type=linux # correct to gnu/linux during the next big refactor
13919 need_lib_prefix=no
13920 need_version=no
13921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13922 soname_spec='$libname$release$shared_ext$major'
13923 dynamic_linker='mlibc ld.so'
13924 shlibpath_var=LD_LIBRARY_PATH
13925 shlibpath_overrides_runpath=no
13926 hardcode_into_libs=yes
13927 ;;
13928
13929 newsos6)
13930 version_type=linux # correct to gnu/linux during the next big refactor
13931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13932 shlibpath_var=LD_LIBRARY_PATH
13933 shlibpath_overrides_runpath=yes
13934 ;;
13935
13936 *nto* | *qnx*)
13937 version_type=qnx
13938 need_lib_prefix=no
13939 need_version=no
13940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13941 soname_spec='$libname$release$shared_ext$major'
13942 shlibpath_var=LD_LIBRARY_PATH
13943 shlibpath_overrides_runpath=no
13944 hardcode_into_libs=yes
13945 dynamic_linker='ldqnx.so'
13946 ;;
13947
13948 openbsd*)
13949 version_type=sunos
13950 sys_lib_dlsearch_path_spec=/usr/lib
13951 need_lib_prefix=no
13952 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13953 need_version=no
13954 else
13955 need_version=yes
13956 fi
13957 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13959 shlibpath_var=LD_LIBRARY_PATH
13960 shlibpath_overrides_runpath=yes
13961 ;;
13962
13963 os2*)
13964 libname_spec='$name'
13965 version_type=windows
13966 shrext_cmds=.dll
13967 need_version=no
13968 need_lib_prefix=no
13969 # OS/2 can only load a DLL with a base name of 8 characters or less.
13970 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13971 v=$($ECHO $release$versuffix | tr -d .-);
13972 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13973 $ECHO $n$v`$shared_ext'
13974 library_names_spec='${libname}_dll.$libext'
13975 dynamic_linker='OS/2 ld.exe'
13976 shlibpath_var=BEGINLIBPATH
13977 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13979 postinstall_cmds='base_file=`basename \$file`~
13980 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13981 dldir=$destdir/`dirname \$dlpath`~
13982 test -d \$dldir || mkdir -p \$dldir~
13983 $install_prog $dir/$dlname \$dldir/$dlname~
13984 chmod a+x \$dldir/$dlname~
13985 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13986 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13987 fi'
13988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13989 dlpath=$dir/\$dldll~
13990 $RM \$dlpath'
13991 ;;
13992
13993 osf3* | osf4* | osf5*)
13994 version_type=osf
13995 need_lib_prefix=no
13996 need_version=no
13997 soname_spec='$libname$release$shared_ext$major'
13998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13999 shlibpath_var=LD_LIBRARY_PATH
14000 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14002 ;;
14003
14004 rdos*)
14005 dynamic_linker=no
14006 ;;
14007
14008 serenity*)
14009 version_type=linux # correct to gnu/linux during the next big refactor
14010 need_lib_prefix=no
14011 need_version=no
14012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14013 soname_spec='$libname$release$shared_ext$major'
14014 shlibpath_var=LD_LIBRARY_PATH
14015 shlibpath_overrides_runpath=no
14016 dynamic_linker='SerenityOS LibELF'
14017 ;;
14018
14019 solaris*)
14020 version_type=linux # correct to gnu/linux during the next big refactor
14021 need_lib_prefix=no
14022 need_version=no
14023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14024 soname_spec='$libname$release$shared_ext$major'
14025 shlibpath_var=LD_LIBRARY_PATH
14026 shlibpath_overrides_runpath=yes
14027 hardcode_into_libs=yes
14028 # ldd complains unless libraries are executable
14029 postinstall_cmds='chmod +x $lib'
14030 ;;
14031
14032 sunos4*)
14033 version_type=sunos
14034 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14036 shlibpath_var=LD_LIBRARY_PATH
14037 shlibpath_overrides_runpath=yes
14038 if test yes = "$with_gnu_ld"; then
14039 need_lib_prefix=no
14040 fi
14041 need_version=yes
14042 ;;
14043
14044 sysv4 | sysv4.3*)
14045 version_type=linux # correct to gnu/linux during the next big refactor
14046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14047 soname_spec='$libname$release$shared_ext$major'
14048 shlibpath_var=LD_LIBRARY_PATH
14049 case $host_vendor in
14050 sni)
14051 shlibpath_overrides_runpath=no
14052 need_lib_prefix=no
14053 runpath_var=LD_RUN_PATH
14054 ;;
14055 siemens)
14056 need_lib_prefix=no
14057 ;;
14058 motorola)
14059 need_lib_prefix=no
14060 need_version=no
14061 shlibpath_overrides_runpath=no
14062 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14063 ;;
14064 esac
14065 ;;
14066
14067 sysv4*MP*)
14068 if test -d /usr/nec; then
14069 version_type=linux # correct to gnu/linux during the next big refactor
14070 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14071 soname_spec='$libname$shared_ext.$major'
14072 shlibpath_var=LD_LIBRARY_PATH
14073 fi
14074 ;;
14075
14076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14077 version_type=sco
14078 need_lib_prefix=no
14079 need_version=no
14080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14081 soname_spec='$libname$release$shared_ext$major'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 shlibpath_overrides_runpath=yes
14084 hardcode_into_libs=yes
14085 if test yes = "$with_gnu_ld"; then
14086 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14087 else
14088 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14089 case $host_os in
14090 sco3.2v5*)
14091 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14092 ;;
14093 esac
14094 fi
14095 sys_lib_dlsearch_path_spec='/usr/lib'
14096 ;;
14097
14098 tpf*)
14099 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14100 version_type=linux # correct to gnu/linux during the next big refactor
14101 need_lib_prefix=no
14102 need_version=no
14103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14104 shlibpath_var=LD_LIBRARY_PATH
14105 shlibpath_overrides_runpath=no
14106 hardcode_into_libs=yes
14107 ;;
14108
14109 uts4*)
14110 version_type=linux # correct to gnu/linux during the next big refactor
14111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14112 soname_spec='$libname$release$shared_ext$major'
14113 shlibpath_var=LD_LIBRARY_PATH
14114 ;;
14115
14116 emscripten*)
14117 version_type=none
14118 need_lib_prefix=no
14119 need_version=no
14120 library_names_spec='$libname$release$shared_ext'
14121 soname_spec='$libname$release$shared_ext'
14122 finish_cmds=
14123 dynamic_linker="Emscripten linker"
14124 lt_prog_compiler_wl=
14125 lt_prog_compiler_pic=
14126 lt_prog_compiler_static=
14127
14128
14129 if test yes = "$GCC"; then
14130 lt_prog_compiler_wl='-Wl,'
14131 lt_prog_compiler_static='-static'
14132
14133 case $host_os in
14134 aix*)
14135 # All AIX code is PIC.
14136 if test ia64 = "$host_cpu"; then
14137 # AIX 5 now supports IA64 processor
14138 lt_prog_compiler_static='-Bstatic'
14139 fi
14140 lt_prog_compiler_pic='-fPIC'
14141 ;;
14142
14143 amigaos*)
14144 case $host_cpu in
14145 powerpc)
14146 # see comment about AmigaOS4 .so support
14147 lt_prog_compiler_pic='-fPIC'
14148 ;;
14149 m68k)
14150 # FIXME: we need at least 68020 code to build shared libraries, but
14151 # adding the '-m68020' flag to GCC prevents building anything better,
14152 # like '-m68040'.
14153 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14154 ;;
14155 esac
14156 ;;
14157
14158 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14159 # PIC is the default for these OSes.
14160 ;;
14161
14162 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14163 # This hack is so that the source file can tell whether it is being
14164 # built for inclusion in a dll (and should export symbols for example).
14165 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14166 # (--disable-auto-import) libraries
14167 lt_prog_compiler_pic='-DDLL_EXPORT'
14168 case $host_os in
14169 os2*)
14170 lt_prog_compiler_static='$wl-static'
14171 ;;
14172 esac
14173 ;;
14174
14175 darwin* | rhapsody*)
14176 # PIC is the default on this platform
14177 # Common symbols not allowed in MH_DYLIB files
14178 lt_prog_compiler_pic='-fno-common'
14179 ;;
14180
14181 haiku*)
14182 # PIC is the default for Haiku.
14183 # The "-static" flag exists, but is broken.
14184 lt_prog_compiler_static=
14185 ;;
14186
14187 hpux*)
14188 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14189 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14190 # sets the default TLS model and affects inlining.
14191 case $host_cpu in
14192 hppa*64*)
14193 # +Z the default
14194 ;;
14195 *)
14196 lt_prog_compiler_pic='-fPIC'
14197 ;;
14198 esac
14199 ;;
14200
14201 interix[3-9]*)
14202 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14203 # Instead, we relocate shared libraries at runtime.
14204 ;;
14205
14206 msdosdjgpp*)
14207 # Just because we use GCC doesn't mean we suddenly get shared libraries
14208 # on systems that don't support them.
14209 lt_prog_compiler_can_build_shared=no
14210 enable_shared=no
14211 ;;
14212
14213 *nto* | *qnx*)
14214 # QNX uses GNU C++, but need to define -shared option too, otherwise
14215 # it will coredump.
14216 lt_prog_compiler_pic='-fPIC -shared'
14217 ;;
14218
14219 sysv4*MP*)
14220 if test -d /usr/nec; then
14221 lt_prog_compiler_pic=-Kconform_pic
14222 fi
14223 ;;
14224
14225 *)
14226 lt_prog_compiler_pic='-fPIC'
14227 ;;
14228 esac
14229
14230 case $cc_basename in
14231 nvcc*) # Cuda Compiler Driver 2.2
14232 lt_prog_compiler_wl='-Xlinker '
14233 if test -n "$lt_prog_compiler_pic"; then
14234 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14235 fi
14236 ;;
14237 esac
14238 else
14239 # PORTME Check for flag to pass linker flags through the system compiler.
14240 case $host_os in
14241 aix*)
14242 lt_prog_compiler_wl='-Wl,'
14243 if test ia64 = "$host_cpu"; then
14244 # AIX 5 now supports IA64 processor
14245 lt_prog_compiler_static='-Bstatic'
14246 else
14247 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14248 fi
14249 ;;
14250
14251 darwin* | rhapsody*)
14252 # PIC is the default on this platform
14253 # Common symbols not allowed in MH_DYLIB files
14254 lt_prog_compiler_pic='-fno-common'
14255 case $cc_basename in
14256 nagfor*)
14257 # NAG Fortran compiler
14258 lt_prog_compiler_wl='-Wl,-Wl,,'
14259 lt_prog_compiler_pic='-PIC'
14260 lt_prog_compiler_static='-Bstatic'
14261 ;;
14262 esac
14263 ;;
14264
14265 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14266 # This hack is so that the source file can tell whether it is being
14267 # built for inclusion in a dll (and should export symbols for example).
14268 lt_prog_compiler_pic='-DDLL_EXPORT'
14269 case $host_os in
14270 os2*)
14271 lt_prog_compiler_static='$wl-static'
14272 ;;
14273 esac
14274 ;;
14275
14276 hpux9* | hpux10* | hpux11*)
14277 lt_prog_compiler_wl='-Wl,'
14278 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14279 # not for PA HP-UX.
14280 case $host_cpu in
14281 hppa*64*|ia64*)
14282 # +Z the default
14283 ;;
14284 *)
14285 lt_prog_compiler_pic='+Z'
14286 ;;
14287 esac
14288 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14289 lt_prog_compiler_static='$wl-a ${wl}archive'
14290 ;;
14291
14292 irix5* | irix6* | nonstopux*)
14293 lt_prog_compiler_wl='-Wl,'
14294 # PIC (with -KPIC) is the default.
14295 lt_prog_compiler_static='-non_shared'
14296 ;;
14297
14298 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14299 case $cc_basename in
14300 # old Intel for x86_64, which still supported -KPIC.
14301 ecc*)
14302 lt_prog_compiler_wl='-Wl,'
14303 lt_prog_compiler_pic='-KPIC'
14304 lt_prog_compiler_static='-static'
14305 ;;
14306 *flang* | ftn | f18* | f95*)
14307 # Flang compiler.
14308 lt_prog_compiler_wl='-Wl,'
14309 lt_prog_compiler_pic='-fPIC'
14310 lt_prog_compiler_static='-static'
14311 ;;
14312 # flang / f18. f95 an alias for gfortran or flang on Debian
14313 flang* | f18* | f95*)
14314 lt_prog_compiler_wl='-Wl,'
14315 lt_prog_compiler_pic='-fPIC'
14316 lt_prog_compiler_static='-static'
14317 ;;
14318 # icc used to be incompatible with GCC.
14319 # ICC 10 doesn't accept -KPIC any more.
14320 icc* | ifort*)
14321 lt_prog_compiler_wl='-Wl,'
14322 lt_prog_compiler_pic='-fPIC'
14323 lt_prog_compiler_static='-static'
14324 ;;
14325 # Lahey Fortran 8.1.
14326 lf95*)
14327 lt_prog_compiler_wl='-Wl,'
14328 lt_prog_compiler_pic='--shared'
14329 lt_prog_compiler_static='--static'
14330 ;;
14331 nagfor*)
14332 # NAG Fortran compiler
14333 lt_prog_compiler_wl='-Wl,-Wl,,'
14334 lt_prog_compiler_pic='-PIC'
14335 lt_prog_compiler_static='-Bstatic'
14336 ;;
14337 tcc*)
14338 # Fabrice Bellard et al's Tiny C Compiler
14339 lt_prog_compiler_wl='-Wl,'
14340 lt_prog_compiler_pic='-fPIC'
14341 lt_prog_compiler_static='-static'
14342 ;;
14343 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14344 # Portland Group compilers (*not* the Pentium gcc compiler,
14345 # which looks to be a dead project)
14346 lt_prog_compiler_wl='-Wl,'
14347 lt_prog_compiler_pic='-fpic'
14348 lt_prog_compiler_static='-Bstatic'
14349 ;;
14350 ccc*)
14351 lt_prog_compiler_wl='-Wl,'
14352 # All Alpha code is PIC.
14353 lt_prog_compiler_static='-non_shared'
14354 ;;
14355 xl* | bgxl* | bgf* | mpixl*)
14356 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14357 lt_prog_compiler_wl='-Wl,'
14358 lt_prog_compiler_pic='-qpic'
14359 lt_prog_compiler_static='-qstaticlink'
14360 ;;
14361 *)
14362 case `$CC -V 2>&1 | $SED 5q` in
14363 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14364 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14365 lt_prog_compiler_pic='-KPIC'
14366 lt_prog_compiler_static='-Bstatic'
14367 lt_prog_compiler_wl=''
14368 ;;
14369 *Sun\ F* | *Sun*Fortran*)
14370 lt_prog_compiler_pic='-KPIC'
14371 lt_prog_compiler_static='-Bstatic'
14372 lt_prog_compiler_wl='-Qoption ld '
14373 ;;
14374 *Sun\ C*)
14375 # Sun C 5.9
14376 lt_prog_compiler_pic='-KPIC'
14377 lt_prog_compiler_static='-Bstatic'
14378 lt_prog_compiler_wl='-Wl,'
14379 ;;
14380 *Intel*\ [CF]*Compiler*)
14381 lt_prog_compiler_wl='-Wl,'
14382 lt_prog_compiler_pic='-fPIC'
14383 lt_prog_compiler_static='-static'
14384 ;;
14385 *Portland\ Group*)
14386 lt_prog_compiler_wl='-Wl,'
14387 lt_prog_compiler_pic='-fpic'
14388 lt_prog_compiler_static='-Bstatic'
14389 ;;
14390 esac
14391 ;;
14392 esac
14393 ;;
14394
14395 newsos6)
14396 lt_prog_compiler_pic='-KPIC'
14397 lt_prog_compiler_static='-Bstatic'
14398 ;;
14399
14400 *-mlibc)
14401 lt_prog_compiler_wl='-Wl,'
14402 lt_prog_compiler_pic='-fPIC'
14403 lt_prog_compiler_static='-static'
14404 ;;
14405
14406 *nto* | *qnx*)
14407 # QNX uses GNU C++, but need to define -shared option too, otherwise
14408 # it will coredump.
14409 lt_prog_compiler_pic='-fPIC -shared'
14410 ;;
14411
14412 osf3* | osf4* | osf5*)
14413 lt_prog_compiler_wl='-Wl,'
14414 # All OSF/1 code is PIC.
14415 lt_prog_compiler_static='-non_shared'
14416 ;;
14417
14418 rdos*)
14419 lt_prog_compiler_static='-non_shared'
14420 ;;
14421
14422 serenity*)
14423 ;;
14424
14425 solaris*)
14426 lt_prog_compiler_pic='-KPIC'
14427 lt_prog_compiler_static='-Bstatic'
14428 case $cc_basename in
14429 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14430 lt_prog_compiler_wl='-Qoption ld ';;
14431 *)
14432 lt_prog_compiler_wl='-Wl,';;
14433 esac
14434 ;;
14435
14436 sunos4*)
14437 lt_prog_compiler_wl='-Qoption ld '
14438 lt_prog_compiler_pic='-PIC'
14439 lt_prog_compiler_static='-Bstatic'
14440 ;;
14441
14442 sysv4 | sysv4.2uw2* | sysv4.3*)
14443 lt_prog_compiler_wl='-Wl,'
14444 lt_prog_compiler_pic='-KPIC'
14445 lt_prog_compiler_static='-Bstatic'
14446 ;;
14447
14448 sysv4*MP*)
14449 if test -d /usr/nec; then
14450 lt_prog_compiler_pic='-Kconform_pic'
14451 lt_prog_compiler_static='-Bstatic'
14452 fi
14453 ;;
14454
14455 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14456 lt_prog_compiler_wl='-Wl,'
14457 lt_prog_compiler_pic='-KPIC'
14458 lt_prog_compiler_static='-Bstatic'
14459 ;;
14460
14461 unicos*)
14462 lt_prog_compiler_wl='-Wl,'
14463 lt_prog_compiler_can_build_shared=no
14464 ;;
14465
14466 uts4*)
14467 lt_prog_compiler_pic='-pic'
14468 lt_prog_compiler_static='-Bstatic'
14469 ;;
14470
14471 *)
14472 lt_prog_compiler_can_build_shared=no
14473 ;;
14474 esac
14475 fi
14476
14477 case $host_os in
14478 # For platforms that do not support PIC, -DPIC is meaningless:
14479 *djgpp*)
14480 lt_prog_compiler_pic=
14481 ;;
14482 *)
14483 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14484 ;;
14485 esac
14486
14487 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14488 printf %s "checking for $compiler option to produce PIC... " >&6; }
14489 if test ${lt_cv_prog_compiler_pic+y}
14490 then :
14491 printf %s "(cached) " >&6
14492 else case e in #(
14493 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14494 esac
14495 fi
14496 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14497 printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; }
14498 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14499
14500 #
14501 # Check to make sure the PIC flag actually works.
14502 #
14503 if test -n "$lt_prog_compiler_pic"; then
14504 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14505 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14506 if test ${lt_cv_prog_compiler_pic_works+y}
14507 then :
14508 printf %s "(cached) " >&6
14509 else case e in #(
14510 e) lt_cv_prog_compiler_pic_works=no
14511 ac_outfile=conftest.$ac_objext
14512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14513 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14514 # Insert the option either (1) after the last *FLAGS variable, or
14515 # (2) before a word containing "conftest.", or (3) at the end.
14516 # Note that $ac_compile itself does not contain backslashes and begins
14517 # with a dollar sign (not a hyphen), so the echo should work correctly.
14518 # The option is referenced via a variable to avoid confusing sed.
14519 lt_compile=`echo "$ac_compile" | $SED \
14520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14522 -e 's:$: $lt_compiler_flag:'`
14523 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14524 (eval "$lt_compile" 2>conftest.err)
14525 ac_status=$?
14526 cat conftest.err >&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 if (exit $ac_status) && test -s "$ac_outfile"; then
14529 # The compiler can only warn and ignore the option if not recognized
14530 # So say no if there are warnings other than the usual output.
14531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14533 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14534 lt_cv_prog_compiler_pic_works=yes
14535 fi
14536 fi
14537 $RM conftest*
14538 ;;
14539 esac
14540 fi
14541 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14542 printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; }
14543
14544 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14545 case $lt_prog_compiler_pic in
14546 "" | " "*) ;;
14547 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14548 esac
14549 else
14550 lt_prog_compiler_pic=
14551 lt_prog_compiler_can_build_shared=no
14552 fi
14553
14554 fi
14555
14556
14557
14558
14559
14560 #
14561 # Check to make sure the static flag actually works.
14562 #
14563 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14564 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14565 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14566 if test ${lt_cv_prog_compiler_static_works+y}
14567 then :
14568 printf %s "(cached) " >&6
14569 else case e in #(
14570 e) lt_cv_prog_compiler_static_works=no
14571 save_LDFLAGS=$LDFLAGS
14572 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14573 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14574 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14575 # The linker can only warn and ignore the option if not recognized
14576 # So say no if there are warnings
14577 if test -s conftest.err; then
14578 # Append any errors to the config.log.
14579 cat conftest.err 1>&5
14580 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14582 if diff conftest.exp conftest.er2 >/dev/null; then
14583 lt_cv_prog_compiler_static_works=yes
14584 fi
14585 else
14586 lt_cv_prog_compiler_static_works=yes
14587 fi
14588 fi
14589 $RM -r conftest*
14590 LDFLAGS=$save_LDFLAGS
14591 ;;
14592 esac
14593 fi
14594 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14595 printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; }
14596
14597 if test yes = "$lt_cv_prog_compiler_static_works"; then
14598 :
14599 else
14600 lt_prog_compiler_static=
14601 fi
14602
14603
14604
14605 ='-fPIC'
14606 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14607 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'
14608 archive_cmds_need_lc=no
14609 no_undefined_flag=
14610 ;;
14611
14612 *)
14613 dynamic_linker=no
14614 ;;
14615 esac
14616 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14617 printf '%s\n' "$dynamic_linker" >&6; }
14618 test no = "$dynamic_linker" && can_build_shared=no
14619
14620 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14621 if test yes = "$GCC"; then
14622 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14623 fi
14624
14625 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14626 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14627 fi
14628
14629 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14630 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14631 fi
14632
14633 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14634 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14635
14636 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14637 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14638
14639 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14640 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14739 printf %s "checking how to hardcode library paths into programs... " >&6; }
14740 hardcode_action=
14741 if test -n "$hardcode_libdir_flag_spec" ||
14742 test -n "$runpath_var" ||
14743 test yes = "$hardcode_automatic"; then
14744
14745 # We can hardcode non-existent directories.
14746 if test no != "$hardcode_direct" &&
14747 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14748 # have to relink, otherwise we might link with an installed library
14749 # when we should be linking with a yet-to-be-installed one
14750 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14751 test no != "$hardcode_minus_L"; then
14752 # Linking always hardcodes the temporary library directory.
14753 hardcode_action=relink
14754 else
14755 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14756 hardcode_action=immediate
14757 fi
14758 else
14759 # We cannot hardcode anything, or else we can only hardcode existing
14760 # directories.
14761 hardcode_action=unsupported
14762 fi
14763 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14764 printf '%s\n' "$hardcode_action" >&6; }
14765
14766 if test relink = "$hardcode_action" ||
14767 test yes = "$inherit_rpath"; then
14768 # Fast installation is not supported
14769 enable_fast_install=no
14770 elif test yes = "$shlibpath_overrides_runpath" ||
14771 test no = "$enable_shared"; then
14772 # Fast installation is not necessary
14773 enable_fast_install=needless
14774 fi
14775
14776
14777
14778
14779
14780
14781 if test yes != "$enable_dlopen"; then
14782 enable_dlopen=unknown
14783 enable_dlopen_self=unknown
14784 enable_dlopen_self_static=unknown
14785 else
14786 lt_cv_dlopen=no
14787 lt_cv_dlopen_libs=
14788
14789 case $host_os in
14790 beos*)
14791 lt_cv_dlopen=load_add_on
14792 lt_cv_dlopen_libs=
14793 lt_cv_dlopen_self=yes
14794 ;;
14795
14796 mingw* | windows* | pw32* | cegcc*)
14797 lt_cv_dlopen=LoadLibrary
14798 lt_cv_dlopen_libs=
14799 ;;
14800
14801 cygwin*)
14802 lt_cv_dlopen=dlopen
14803 lt_cv_dlopen_libs=
14804 ;;
14805
14806 darwin*)
14807 # if libdl is installed we need to link against it
14808 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14809 printf %s "checking for dlopen in -ldl... " >&6; }
14810 if test ${ac_cv_lib_dl_dlopen+y}
14811 then :
14812 printf %s "(cached) " >&6
14813 else case e in #(
14814 e) ac_check_lib_save_LIBS=$LIBS
14815 LIBS="-ldl $LIBS"
14816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14818
14819 /* Override any GCC internal prototype to avoid an error.
14820 Use char because int might match the return type of a GCC
14821 builtin and then its argument prototype would still apply.
14822 The 'extern "C"' is for builds by C++ compilers;
14823 although this is not generally supported in C code supporting it here
14824 has little cost and some practical benefit (sr 110532). */
14825 #ifdef __cplusplus
14826 extern "C"
14827 #endif
14828 char dlopen (void);
14829 int
14830 main (void)
14831 {
14832 return dlopen ();
14833 ;
14834 return 0;
14835 }
14836 _ACEOF
14837 if ac_fn_c_try_link "$LINENO"
14838 then :
14839 ac_cv_lib_dl_dlopen=yes
14840 else case e in #(
14841 e) ac_cv_lib_dl_dlopen=no ;;
14842 esac
14843 fi
14844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14845 conftest$ac_exeext conftest.$ac_ext
14846 LIBS=$ac_check_lib_save_LIBS ;;
14847 esac
14848 fi
14849 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14850 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
14851 if test "x$ac_cv_lib_dl_dlopen" = xyes
14852 then :
14853 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14854 else case e in #(
14855 e)
14856 lt_cv_dlopen=dyld
14857 lt_cv_dlopen_libs=
14858 lt_cv_dlopen_self=yes
14859 ;;
14860 esac
14861 fi
14862
14863 ;;
14864
14865 tpf*)
14866 # Don't try to run any link tests for TPF. We know it's impossible
14867 # because TPF is a cross-compiler, and we know how we open DSOs.
14868 lt_cv_dlopen=dlopen
14869 lt_cv_dlopen_libs=
14870 lt_cv_dlopen_self=no
14871 ;;
14872
14873 *)
14874 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14875 if test "x$ac_cv_func_shl_load" = xyes
14876 then :
14877 lt_cv_dlopen=shl_load
14878 else case e in #(
14879 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14880 printf %s "checking for shl_load in -ldld... " >&6; }
14881 if test ${ac_cv_lib_dld_shl_load+y}
14882 then :
14883 printf %s "(cached) " >&6
14884 else case e in #(
14885 e) ac_check_lib_save_LIBS=$LIBS
14886 LIBS="-ldld $LIBS"
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14889
14890 /* Override any GCC internal prototype to avoid an error.
14891 Use char because int might match the return type of a GCC
14892 builtin and then its argument prototype would still apply.
14893 The 'extern "C"' is for builds by C++ compilers;
14894 although this is not generally supported in C code supporting it here
14895 has little cost and some practical benefit (sr 110532). */
14896 #ifdef __cplusplus
14897 extern "C"
14898 #endif
14899 char shl_load (void);
14900 int
14901 main (void)
14902 {
14903 return shl_load ();
14904 ;
14905 return 0;
14906 }
14907 _ACEOF
14908 if ac_fn_c_try_link "$LINENO"
14909 then :
14910 ac_cv_lib_dld_shl_load=yes
14911 else case e in #(
14912 e) ac_cv_lib_dld_shl_load=no ;;
14913 esac
14914 fi
14915 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14916 conftest$ac_exeext conftest.$ac_ext
14917 LIBS=$ac_check_lib_save_LIBS ;;
14918 esac
14919 fi
14920 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14921 printf '%s\n' "$ac_cv_lib_dld_shl_load" >&6; }
14922 if test "x$ac_cv_lib_dld_shl_load" = xyes
14923 then :
14924 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14925 else case e in #(
14926 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14927 if test "x$ac_cv_func_dlopen" = xyes
14928 then :
14929 lt_cv_dlopen=dlopen
14930 else case e in #(
14931 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14932 printf %s "checking for dlopen in -ldl... " >&6; }
14933 if test ${ac_cv_lib_dl_dlopen+y}
14934 then :
14935 printf %s "(cached) " >&6
14936 else case e in #(
14937 e) ac_check_lib_save_LIBS=$LIBS
14938 LIBS="-ldl $LIBS"
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941
14942 /* Override any GCC internal prototype to avoid an error.
14943 Use char because int might match the return type of a GCC
14944 builtin and then its argument prototype would still apply.
14945 The 'extern "C"' is for builds by C++ compilers;
14946 although this is not generally supported in C code supporting it here
14947 has little cost and some practical benefit (sr 110532). */
14948 #ifdef __cplusplus
14949 extern "C"
14950 #endif
14951 char dlopen (void);
14952 int
14953 main (void)
14954 {
14955 return dlopen ();
14956 ;
14957 return 0;
14958 }
14959 _ACEOF
14960 if ac_fn_c_try_link "$LINENO"
14961 then :
14962 ac_cv_lib_dl_dlopen=yes
14963 else case e in #(
14964 e) ac_cv_lib_dl_dlopen=no ;;
14965 esac
14966 fi
14967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14968 conftest$ac_exeext conftest.$ac_ext
14969 LIBS=$ac_check_lib_save_LIBS ;;
14970 esac
14971 fi
14972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14973 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
14974 if test "x$ac_cv_lib_dl_dlopen" = xyes
14975 then :
14976 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14977 else case e in #(
14978 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14979 printf %s "checking for dlopen in -lsvld... " >&6; }
14980 if test ${ac_cv_lib_svld_dlopen+y}
14981 then :
14982 printf %s "(cached) " >&6
14983 else case e in #(
14984 e) ac_check_lib_save_LIBS=$LIBS
14985 LIBS="-lsvld $LIBS"
14986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14987 /* end confdefs.h. */
14988
14989 /* Override any GCC internal prototype to avoid an error.
14990 Use char because int might match the return type of a GCC
14991 builtin and then its argument prototype would still apply.
14992 The 'extern "C"' is for builds by C++ compilers;
14993 although this is not generally supported in C code supporting it here
14994 has little cost and some practical benefit (sr 110532). */
14995 #ifdef __cplusplus
14996 extern "C"
14997 #endif
14998 char dlopen (void);
14999 int
15000 main (void)
15001 {
15002 return dlopen ();
15003 ;
15004 return 0;
15005 }
15006 _ACEOF
15007 if ac_fn_c_try_link "$LINENO"
15008 then :
15009 ac_cv_lib_svld_dlopen=yes
15010 else case e in #(
15011 e) ac_cv_lib_svld_dlopen=no ;;
15012 esac
15013 fi
15014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15015 conftest$ac_exeext conftest.$ac_ext
15016 LIBS=$ac_check_lib_save_LIBS ;;
15017 esac
15018 fi
15019 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15020 printf '%s\n' "$ac_cv_lib_svld_dlopen" >&6; }
15021 if test "x$ac_cv_lib_svld_dlopen" = xyes
15022 then :
15023 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15024 else case e in #(
15025 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15026 printf %s "checking for dld_link in -ldld... " >&6; }
15027 if test ${ac_cv_lib_dld_dld_link+y}
15028 then :
15029 printf %s "(cached) " >&6
15030 else case e in #(
15031 e) ac_check_lib_save_LIBS=$LIBS
15032 LIBS="-ldld $LIBS"
15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15035
15036 /* Override any GCC internal prototype to avoid an error.
15037 Use char because int might match the return type of a GCC
15038 builtin and then its argument prototype would still apply.
15039 The 'extern "C"' is for builds by C++ compilers;
15040 although this is not generally supported in C code supporting it here
15041 has little cost and some practical benefit (sr 110532). */
15042 #ifdef __cplusplus
15043 extern "C"
15044 #endif
15045 char dld_link (void);
15046 int
15047 main (void)
15048 {
15049 return dld_link ();
15050 ;
15051 return 0;
15052 }
15053 _ACEOF
15054 if ac_fn_c_try_link "$LINENO"
15055 then :
15056 ac_cv_lib_dld_dld_link=yes
15057 else case e in #(
15058 e) ac_cv_lib_dld_dld_link=no ;;
15059 esac
15060 fi
15061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15062 conftest$ac_exeext conftest.$ac_ext
15063 LIBS=$ac_check_lib_save_LIBS ;;
15064 esac
15065 fi
15066 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15067 printf '%s\n' "$ac_cv_lib_dld_dld_link" >&6; }
15068 if test "x$ac_cv_lib_dld_dld_link" = xyes
15069 then :
15070 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15071 fi
15072
15073 ;;
15074 esac
15075 fi
15076
15077 ;;
15078 esac
15079 fi
15080
15081 ;;
15082 esac
15083 fi
15084
15085 ;;
15086 esac
15087 fi
15088
15089 ;;
15090 esac
15091 fi
15092
15093 ;;
15094 esac
15095
15096 if test no = "$lt_cv_dlopen"; then
15097 enable_dlopen=no
15098 else
15099 enable_dlopen=yes
15100 fi
15101
15102 case $lt_cv_dlopen in
15103 dlopen)
15104 save_CPPFLAGS=$CPPFLAGS
15105 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15106
15107 save_LDFLAGS=$LDFLAGS
15108 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15109
15110 save_LIBS=$LIBS
15111 LIBS="$lt_cv_dlopen_libs $LIBS"
15112
15113 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15114 printf %s "checking whether a program can dlopen itself... " >&6; }
15115 if test ${lt_cv_dlopen_self+y}
15116 then :
15117 printf %s "(cached) " >&6
15118 else case e in #(
15119 e) if test yes = "$cross_compiling"; then :
15120 lt_cv_dlopen_self=cross
15121 else
15122 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15123 lt_status=$lt_dlunknown
15124 cat > conftest.$ac_ext <<_LT_EOF
15125 #line $LINENO "configure"
15126 #include "confdefs.h"
15127
15128 #if HAVE_DLFCN_H
15129 #include <dlfcn.h>
15130 #endif
15131
15132 #include <stdio.h>
15133
15134 #ifdef RTLD_GLOBAL
15135 # define LT_DLGLOBAL RTLD_GLOBAL
15136 #else
15137 # ifdef DL_GLOBAL
15138 # define LT_DLGLOBAL DL_GLOBAL
15139 # else
15140 # define LT_DLGLOBAL 0
15141 # endif
15142 #endif
15143
15144 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15145 find out it does not work in some platform. */
15146 #ifndef LT_DLLAZY_OR_NOW
15147 # ifdef RTLD_LAZY
15148 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15149 # else
15150 # ifdef DL_LAZY
15151 # define LT_DLLAZY_OR_NOW DL_LAZY
15152 # else
15153 # ifdef RTLD_NOW
15154 # define LT_DLLAZY_OR_NOW RTLD_NOW
15155 # else
15156 # ifdef DL_NOW
15157 # define LT_DLLAZY_OR_NOW DL_NOW
15158 # else
15159 # define LT_DLLAZY_OR_NOW 0
15160 # endif
15161 # endif
15162 # endif
15163 # endif
15164 #endif
15165
15166 /* When -fvisibility=hidden is used, assume the code has been annotated
15167 correspondingly for the symbols needed. */
15168 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15169 int fnord (void) __attribute__((visibility("default")));
15170 #endif
15171
15172 int fnord (void) { return 42; }
15173 int main (void)
15174 {
15175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15176 int status = $lt_dlunknown;
15177
15178 if (self)
15179 {
15180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15181 else
15182 {
15183 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15184 else puts (dlerror ());
15185 }
15186 /* dlclose (self); */
15187 }
15188 else
15189 puts (dlerror ());
15190
15191 return status;
15192 }
15193 _LT_EOF
15194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15195 (eval $ac_link) 2>&5
15196 ac_status=$?
15197 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15198 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15199 (./conftest; exit; ) >&5 2>/dev/null
15200 lt_status=$?
15201 case x$lt_status in
15202 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15203 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15204 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15205 esac
15206 else :
15207 # compilation failed
15208 lt_cv_dlopen_self=no
15209 fi
15210 fi
15211 rm -fr conftest*
15212
15213 ;;
15214 esac
15215 fi
15216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15217 printf '%s\n' "$lt_cv_dlopen_self" >&6; }
15218
15219 if test yes = "$lt_cv_dlopen_self"; then
15220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15221 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15222 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15223 if test ${lt_cv_dlopen_self_static+y}
15224 then :
15225 printf %s "(cached) " >&6
15226 else case e in #(
15227 e) if test yes = "$cross_compiling"; then :
15228 lt_cv_dlopen_self_static=cross
15229 else
15230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15231 lt_status=$lt_dlunknown
15232 cat > conftest.$ac_ext <<_LT_EOF
15233 #line $LINENO "configure"
15234 #include "confdefs.h"
15235
15236 #if HAVE_DLFCN_H
15237 #include <dlfcn.h>
15238 #endif
15239
15240 #include <stdio.h>
15241
15242 #ifdef RTLD_GLOBAL
15243 # define LT_DLGLOBAL RTLD_GLOBAL
15244 #else
15245 # ifdef DL_GLOBAL
15246 # define LT_DLGLOBAL DL_GLOBAL
15247 # else
15248 # define LT_DLGLOBAL 0
15249 # endif
15250 #endif
15251
15252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15253 find out it does not work in some platform. */
15254 #ifndef LT_DLLAZY_OR_NOW
15255 # ifdef RTLD_LAZY
15256 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15257 # else
15258 # ifdef DL_LAZY
15259 # define LT_DLLAZY_OR_NOW DL_LAZY
15260 # else
15261 # ifdef RTLD_NOW
15262 # define LT_DLLAZY_OR_NOW RTLD_NOW
15263 # else
15264 # ifdef DL_NOW
15265 # define LT_DLLAZY_OR_NOW DL_NOW
15266 # else
15267 # define LT_DLLAZY_OR_NOW 0
15268 # endif
15269 # endif
15270 # endif
15271 # endif
15272 #endif
15273
15274 /* When -fvisibility=hidden is used, assume the code has been annotated
15275 correspondingly for the symbols needed. */
15276 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15277 int fnord (void) __attribute__((visibility("default")));
15278 #endif
15279
15280 int fnord (void) { return 42; }
15281 int main (void)
15282 {
15283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15284 int status = $lt_dlunknown;
15285
15286 if (self)
15287 {
15288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15289 else
15290 {
15291 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15292 else puts (dlerror ());
15293 }
15294 /* dlclose (self); */
15295 }
15296 else
15297 puts (dlerror ());
15298
15299 return status;
15300 }
15301 _LT_EOF
15302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15303 (eval $ac_link) 2>&5
15304 ac_status=$?
15305 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15306 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15307 (./conftest; exit; ) >&5 2>/dev/null
15308 lt_status=$?
15309 case x$lt_status in
15310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15312 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15313 esac
15314 else :
15315 # compilation failed
15316 lt_cv_dlopen_self_static=no
15317 fi
15318 fi
15319 rm -fr conftest*
15320
15321 ;;
15322 esac
15323 fi
15324 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15325 printf '%s\n' "$lt_cv_dlopen_self_static" >&6; }
15326 fi
15327
15328 CPPFLAGS=$save_CPPFLAGS
15329 LDFLAGS=$save_LDFLAGS
15330 LIBS=$save_LIBS
15331 ;;
15332 esac
15333
15334 case $lt_cv_dlopen_self in
15335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15336 *) enable_dlopen_self=unknown ;;
15337 esac
15338
15339 case $lt_cv_dlopen_self_static in
15340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15341 *) enable_dlopen_self_static=unknown ;;
15342 esac
15343 fi
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361 striplib=
15362 old_striplib=
15363 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15364 printf %s "checking whether stripping libraries is possible... " >&6; }
15365 if test -z "$STRIP"; then
15366 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15367 printf '%s\n' "no" >&6; }
15368 else
15369 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15370 old_striplib="$STRIP --strip-debug"
15371 striplib="$STRIP --strip-unneeded"
15372 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15373 printf '%s\n' "yes" >&6; }
15374 else
15375 case $host_os in
15376 darwin*)
15377 # FIXME - insert some real tests, host_os isn't really good enough
15378 striplib="$STRIP -x"
15379 old_striplib="$STRIP -S"
15380 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15381 printf '%s\n' "yes" >&6; }
15382 ;;
15383 freebsd*)
15384 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15385 old_striplib="$STRIP --strip-debug"
15386 striplib="$STRIP --strip-unneeded"
15387 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15388 printf '%s\n' "yes" >&6; }
15389 else
15390 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15391 printf '%s\n' "no" >&6; }
15392 fi
15393 ;;
15394 *)
15395 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15396 printf '%s\n' "no" >&6; }
15397 ;;
15398 esac
15399 fi
15400 fi
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413 # Report what library types will actually be built
15414 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15415 printf %s "checking if libtool supports shared libraries... " >&6; }
15416 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15417 printf '%s\n' "$can_build_shared" >&6; }
15418
15419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15420 printf %s "checking whether to build shared libraries... " >&6; }
15421 test no = "$can_build_shared" && enable_shared=no
15422
15423 # On AIX, shared libraries and static libraries use the same namespace, and
15424 # are all built from PIC.
15425 case $host_os in
15426 aix3*)
15427 test yes = "$enable_shared" && enable_static=no
15428 if test -n "$RANLIB"; then
15429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15430 postinstall_cmds='$RANLIB $lib'
15431 fi
15432 ;;
15433
15434 aix[4-9]*)
15435 if test ia64 != "$host_cpu"; then
15436 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15437 yes,aix,yes) ;; # shared object as lib.so file only
15438 yes,svr4,*) ;; # shared object as lib.so archive member only
15439 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15440 esac
15441 fi
15442 ;;
15443 esac
15444 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15445 printf '%s\n' "$enable_shared" >&6; }
15446
15447 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15448 printf %s "checking whether to build static libraries... " >&6; }
15449 # Make sure either enable_shared or enable_static is yes.
15450 test yes = "$enable_shared" || enable_static=yes
15451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15452 printf '%s\n' "$enable_static" >&6; }
15453
15454
15455
15456
15457 fi
15458 ac_ext=c
15459 ac_cpp='$CPP $CPPFLAGS'
15460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15463
15464 CC=$lt_save_CC
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480 ac_config_commands="$ac_config_commands libtool"
15481
15482
15483
15484
15485 # Only expand once:
15486
15487
15488
15489 if (test "$USE_MAINTAINER_MODE" = "yes"); then
15490 # Extract the first word of "lcov", so it can be a program name with args.
15491 set dummy lcov; ac_word=$2
15492 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15493 printf %s "checking for $ac_word... " >&6; }
15494 if test ${ac_cv_prog_enable_coverage+y}
15495 then :
15496 printf %s "(cached) " >&6
15497 else case e in #(
15498 e) if test -n "$enable_coverage"; then
15499 ac_cv_prog_enable_coverage="$enable_coverage" # Let the user override the test.
15500 else
15501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15502 for as_dir in $PATH
15503 do
15504 IFS=$as_save_IFS
15505 case $as_dir in #(((
15506 '') as_dir=./ ;;
15507 */) ;;
15508 *) as_dir=$as_dir/ ;;
15509 esac
15510 for ac_exec_ext in '' $ac_executable_extensions; do
15511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15512 ac_cv_prog_enable_coverage="yes"
15513 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15514 break 2
15515 fi
15516 done
15517 done
15518 IFS=$as_save_IFS
15519
15520 test -z "$ac_cv_prog_enable_coverage" && ac_cv_prog_enable_coverage="no"
15521 fi ;;
15522 esac
15523 fi
15524 enable_coverage=$ac_cv_prog_enable_coverage
15525 if test -n "$enable_coverage"; then
15526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_coverage" >&5
15527 printf '%s\n' "$enable_coverage" >&6; }
15528 else
15529 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15530 printf '%s\n' "no" >&6; }
15531 fi
15532
15533
15534 # Extract the first word of "dbus-run-session", so it can be a program name with args.
15535 set dummy dbus-run-session; ac_word=$2
15536 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15537 printf %s "checking for $ac_word... " >&6; }
15538 if test ${ac_cv_prog_enable_dbus_run_session+y}
15539 then :
15540 printf %s "(cached) " >&6
15541 else case e in #(
15542 e) if test -n "$enable_dbus_run_session"; then
15543 ac_cv_prog_enable_dbus_run_session="$enable_dbus_run_session" # Let the user override the test.
15544 else
15545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15546 for as_dir in $PATH
15547 do
15548 IFS=$as_save_IFS
15549 case $as_dir in #(((
15550 '') as_dir=./ ;;
15551 */) ;;
15552 *) as_dir=$as_dir/ ;;
15553 esac
15554 for ac_exec_ext in '' $ac_executable_extensions; do
15555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15556 ac_cv_prog_enable_dbus_run_session="yes"
15557 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15558 break 2
15559 fi
15560 done
15561 done
15562 IFS=$as_save_IFS
15563
15564 fi ;;
15565 esac
15566 fi
15567 enable_dbus_run_session=$ac_cv_prog_enable_dbus_run_session
15568 if test -n "$enable_dbus_run_session"; then
15569 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_dbus_run_session" >&5
15570 printf '%s\n' "$enable_dbus_run_session" >&6; }
15571 else
15572 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15573 printf '%s\n' "no" >&6; }
15574 fi
15575
15576
15577 # Extract the first word of "valgrind", so it can be a program name with args.
15578 set dummy valgrind; ac_word=$2
15579 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15580 printf %s "checking for $ac_word... " >&6; }
15581 if test ${ac_cv_prog_enable_valgrind+y}
15582 then :
15583 printf %s "(cached) " >&6
15584 else case e in #(
15585 e) if test -n "$enable_valgrind"; then
15586 ac_cv_prog_enable_valgrind="$enable_valgrind" # Let the user override the test.
15587 else
15588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15589 for as_dir in $PATH
15590 do
15591 IFS=$as_save_IFS
15592 case $as_dir in #(((
15593 '') as_dir=./ ;;
15594 */) ;;
15595 *) as_dir=$as_dir/ ;;
15596 esac
15597 for ac_exec_ext in '' $ac_executable_extensions; do
15598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15599 ac_cv_prog_enable_valgrind="yes"
15600 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15601 break 2
15602 fi
15603 done
15604 done
15605 IFS=$as_save_IFS
15606
15607 fi ;;
15608 esac
15609 fi
15610 enable_valgrind=$ac_cv_prog_enable_valgrind
15611 if test -n "$enable_valgrind"; then
15612 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_valgrind" >&5
15613 printf '%s\n' "$enable_valgrind" >&6; }
15614 else
15615 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15616 printf '%s\n' "no" >&6; }
15617 fi
15618
15619
15620 ac_fn_c_check_header_compile "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
15621 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes
15622 then :
15623 printf '%s\n' "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
15624
15625 fi
15626
15627 fi
15628 if test "${enable_coverage}" = "yes"; then
15629 COVERAGE_TRUE=
15630 COVERAGE_FALSE='#'
15631 else
15632 COVERAGE_TRUE='#'
15633 COVERAGE_FALSE=
15634 fi
15635
15636 if test "${enable_dbus_run_session}" = "yes"; then
15637 DBUS_RUN_SESSION_TRUE=
15638 DBUS_RUN_SESSION_FALSE='#'
15639 else
15640 DBUS_RUN_SESSION_TRUE='#'
15641 DBUS_RUN_SESSION_FALSE=
15642 fi
15643
15644
15645
15646 misc_cflags=""
15647 misc_ldflags=""
15648 # Check whether --enable-optimization was given.
15649 if test ${enable_optimization+y}
15650 then :
15651 enableval=$enable_optimization;
15652 if (test "${enableval}" = "no"); then
15653 misc_cflags="$misc_cflags -O0"
15654 fi
15655
15656 fi
15657
15658 # Check whether --enable-asan was given.
15659 if test ${enable_asan+y}
15660 then :
15661 enableval=$enable_asan;
15662 save_LIBS=$LIBS
15663 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for _init in -lasan" >&5
15664 printf %s "checking for _init in -lasan... " >&6; }
15665 if test ${ac_cv_lib_asan__init+y}
15666 then :
15667 printf %s "(cached) " >&6
15668 else case e in #(
15669 e) ac_check_lib_save_LIBS=$LIBS
15670 LIBS="-lasan $LIBS"
15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15673
15674 /* Override any GCC internal prototype to avoid an error.
15675 Use char because int might match the return type of a GCC
15676 builtin and then its argument prototype would still apply.
15677 The 'extern "C"' is for builds by C++ compilers;
15678 although this is not generally supported in C code supporting it here
15679 has little cost and some practical benefit (sr 110532). */
15680 #ifdef __cplusplus
15681 extern "C"
15682 #endif
15683 char _init (void);
15684 int
15685 main (void)
15686 {
15687 return _init ();
15688 ;
15689 return 0;
15690 }
15691 _ACEOF
15692 if ac_fn_c_try_link "$LINENO"
15693 then :
15694 ac_cv_lib_asan__init=yes
15695 else case e in #(
15696 e) ac_cv_lib_asan__init=no ;;
15697 esac
15698 fi
15699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15700 conftest$ac_exeext conftest.$ac_ext
15701 LIBS=$ac_check_lib_save_LIBS ;;
15702 esac
15703 fi
15704 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asan__init" >&5
15705 printf '%s\n' "$ac_cv_lib_asan__init" >&6; }
15706 if test "x$ac_cv_lib_asan__init" = xyes
15707 then :
15708 printf '%s\n' "#define HAVE_LIBASAN 1" >>confdefs.h
15709
15710 LIBS="-lasan $LIBS"
15711
15712 fi
15713
15714 LIBS=$save_LIBS
15715 if (test "${enableval}" = "yes" &&
15716 test "${ac_cv_lib_asan__init}" = "yes" &&
15717 test "${ac_cv_prog_cc_asan}" = "yes"); then
15718 misc_cflags="$misc_cflags -fsanitize=address";
15719 misc_ldflags="$misc_ldflags -fsanitize=address"
15720 ASAN_LIB=${ac_cv_lib_asan__init}
15721
15722 fi
15723
15724 fi
15725
15726 # Check whether --enable-lsan was given.
15727 if test ${enable_lsan+y}
15728 then :
15729 enableval=$enable_lsan;
15730 save_LIBS=$LIBS
15731 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for _init in -llsan" >&5
15732 printf %s "checking for _init in -llsan... " >&6; }
15733 if test ${ac_cv_lib_lsan__init+y}
15734 then :
15735 printf %s "(cached) " >&6
15736 else case e in #(
15737 e) ac_check_lib_save_LIBS=$LIBS
15738 LIBS="-llsan $LIBS"
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741
15742 /* Override any GCC internal prototype to avoid an error.
15743 Use char because int might match the return type of a GCC
15744 builtin and then its argument prototype would still apply.
15745 The 'extern "C"' is for builds by C++ compilers;
15746 although this is not generally supported in C code supporting it here
15747 has little cost and some practical benefit (sr 110532). */
15748 #ifdef __cplusplus
15749 extern "C"
15750 #endif
15751 char _init (void);
15752 int
15753 main (void)
15754 {
15755 return _init ();
15756 ;
15757 return 0;
15758 }
15759 _ACEOF
15760 if ac_fn_c_try_link "$LINENO"
15761 then :
15762 ac_cv_lib_lsan__init=yes
15763 else case e in #(
15764 e) ac_cv_lib_lsan__init=no ;;
15765 esac
15766 fi
15767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15768 conftest$ac_exeext conftest.$ac_ext
15769 LIBS=$ac_check_lib_save_LIBS ;;
15770 esac
15771 fi
15772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lsan__init" >&5
15773 printf '%s\n' "$ac_cv_lib_lsan__init" >&6; }
15774 if test "x$ac_cv_lib_lsan__init" = xyes
15775 then :
15776 printf '%s\n' "#define HAVE_LIBLSAN 1" >>confdefs.h
15777
15778 LIBS="-llsan $LIBS"
15779
15780 fi
15781
15782 LIBS=$save_LIBS
15783 if (test "${enableval}" = "yes" &&
15784 test "${ac_cv_lib_lsan__init}" = "yes" &&
15785 test "${ac_cv_prog_cc_lsan}" = "yes"); then
15786 misc_cflags="$misc_cflags -fsanitize=leak";
15787 misc_ldflags="$misc_ldflags -fsanitize=leak"
15788 ASAN_LIB=${ac_cv_lib_lsan__init}
15789
15790 fi
15791
15792 fi
15793
15794 # Check whether --enable-ubsan was given.
15795 if test ${enable_ubsan+y}
15796 then :
15797 enableval=$enable_ubsan;
15798 save_LIBS=$LIBS
15799 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for _init in -lubsan" >&5
15800 printf %s "checking for _init in -lubsan... " >&6; }
15801 if test ${ac_cv_lib_ubsan__init+y}
15802 then :
15803 printf %s "(cached) " >&6
15804 else case e in #(
15805 e) ac_check_lib_save_LIBS=$LIBS
15806 LIBS="-lubsan $LIBS"
15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15808 /* end confdefs.h. */
15809
15810 /* Override any GCC internal prototype to avoid an error.
15811 Use char because int might match the return type of a GCC
15812 builtin and then its argument prototype would still apply.
15813 The 'extern "C"' is for builds by C++ compilers;
15814 although this is not generally supported in C code supporting it here
15815 has little cost and some practical benefit (sr 110532). */
15816 #ifdef __cplusplus
15817 extern "C"
15818 #endif
15819 char _init (void);
15820 int
15821 main (void)
15822 {
15823 return _init ();
15824 ;
15825 return 0;
15826 }
15827 _ACEOF
15828 if ac_fn_c_try_link "$LINENO"
15829 then :
15830 ac_cv_lib_ubsan__init=yes
15831 else case e in #(
15832 e) ac_cv_lib_ubsan__init=no ;;
15833 esac
15834 fi
15835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15836 conftest$ac_exeext conftest.$ac_ext
15837 LIBS=$ac_check_lib_save_LIBS ;;
15838 esac
15839 fi
15840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ubsan__init" >&5
15841 printf '%s\n' "$ac_cv_lib_ubsan__init" >&6; }
15842 if test "x$ac_cv_lib_ubsan__init" = xyes
15843 then :
15844 printf '%s\n' "#define HAVE_LIBUBSAN 1" >>confdefs.h
15845
15846 LIBS="-lubsan $LIBS"
15847
15848 fi
15849
15850 LIBS=$save_LIBS
15851 if (test "${enableval}" = "yes" &&
15852 test "${ac_cv_lib_ubsan__init}" = "yes" &&
15853 test "${ac_cv_prog_cc_ubsan}" = "yes"); then
15854 misc_cflags="$misc_cflags -fsanitize=undefined";
15855 misc_ldflags="$misc_ldflags -fsanitize=undefined";
15856 fi
15857
15858 fi
15859
15860 # Check whether --enable-debug was given.
15861 if test ${enable_debug+y}
15862 then :
15863 enableval=$enable_debug;
15864 if (test "${enableval}" = "yes" &&
15865 test "${ac_cv_prog_cc_g}" = "yes"); then
15866 misc_cflags="$misc_cflags -g"
15867 fi
15868
15869 fi
15870
15871 # Check whether --enable-pie was given.
15872 if test ${enable_pie+y}
15873 then :
15874 enableval=$enable_pie;
15875 if (test "${enableval}" = "yes" &&
15876 test "${ac_cv_prog_cc_pie}" = "yes"); then
15877 misc_cflags="$misc_cflags -fPIC"
15878 misc_ldflags="$misc_ldflags -pie -Wl,-z,now"
15879 fi
15880
15881 fi
15882
15883 if (test "$enable_coverage" = "yes"); then
15884 misc_cflags="$misc_cflags --coverage"
15885 misc_ldflags="$misc_ldflags --coverage"
15886 fi
15887 if (test "$USE_MAINTAINER_MODE" = "yes"); then
15888 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -D_FORTIFY_SOURCE=3" >&5
15889 printf %s "checking whether ${CC-cc} accepts -D_FORTIFY_SOURCE=3... " >&6; }
15890 if test ${ac_cv_prog_cc_fortify_source_3+y}
15891 then :
15892 printf %s "(cached) " >&6
15893 else case e in #(
15894 e)
15895 echo '#include <errno.h>' > fortify.c
15896 if test -z "`${CC-cc} ${CFLAGS} ${misc_cflags} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -c fortify.c 2>&1`"; then
15897 ac_cv_prog_cc_fortify_source_3=yes
15898 else
15899 ac_cv_prog_cc_fortify_source_3=no
15900 fi
15901 rm -f fortify.c fortify.o
15902 ;;
15903 esac
15904 fi
15905 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_fortify_source_3" >&5
15906 printf '%s\n' "$ac_cv_prog_cc_fortify_source_3" >&6; }
15907 if test "${ac_cv_prog_cc_fortify_source_3}" = "yes"; then
15908 misc_cflags="$misc_cflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3"
15909 fi
15910 fi
15911 misc_cflags="$misc_cflags -ffunction-sections -fdata-sections"
15912 misc_ldflags="$misc_ldflags -Wl,--gc-sections"
15913 MISC_CFLAGS=$misc_cflags
15914
15915 MISC_LDFLAGS=$misc_ldflags
15916
15917
15918
15919 if test "${enable_valgrind}" = "yes" &&
15920 test "$ASAN_LIB" != "yes" && test "LSAN_LIB" != "yes"; then
15921 VALGRIND_TRUE=
15922 VALGRIND_FALSE='#'
15923 else
15924 VALGRIND_TRUE='#'
15925 VALGRIND_FALSE=
15926 fi
15927
15928
15929 # Check whether --enable-threads was given.
15930 if test ${enable_threads+y}
15931 then :
15932 enableval=$enable_threads; enable_threads=${enableval}
15933 fi
15934
15935
15936 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
15937 if test "x$ac_cv_func_explicit_bzero" = xyes
15938 then :
15939 printf '%s\n' "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
15940
15941 fi
15942
15943
15944 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
15945 if test "x$ac_cv_func_getrandom" = xyes
15946 then :
15947 printf '%s\n' "#define HAVE_GETRANDOM 1" >>confdefs.h
15948
15949 fi
15950
15951
15952 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
15953 if test "x$ac_cv_func_rawmemchr" = xyes
15954 then :
15955 printf '%s\n' "#define HAVE_RAWMEMCHR 1" >>confdefs.h
15956
15957 fi
15958
15959
15960 ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
15961 if test "x$ac_cv_func_signalfd" = xyes
15962 then :
15963 dummy=yes
15964 else case e in #(
15965 e) as_fn_error $? "signalfd support is required" "$LINENO" 5 ;;
15966 esac
15967 fi
15968
15969
15970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15971 printf %s "checking for clock_gettime in -lrt... " >&6; }
15972 if test ${ac_cv_lib_rt_clock_gettime+y}
15973 then :
15974 printf %s "(cached) " >&6
15975 else case e in #(
15976 e) ac_check_lib_save_LIBS=$LIBS
15977 LIBS="-lrt $LIBS"
15978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15979 /* end confdefs.h. */
15980
15981 /* Override any GCC internal prototype to avoid an error.
15982 Use char because int might match the return type of a GCC
15983 builtin and then its argument prototype would still apply.
15984 The 'extern "C"' is for builds by C++ compilers;
15985 although this is not generally supported in C code supporting it here
15986 has little cost and some practical benefit (sr 110532). */
15987 #ifdef __cplusplus
15988 extern "C"
15989 #endif
15990 char clock_gettime (void);
15991 int
15992 main (void)
15993 {
15994 return clock_gettime ();
15995 ;
15996 return 0;
15997 }
15998 _ACEOF
15999 if ac_fn_c_try_link "$LINENO"
16000 then :
16001 ac_cv_lib_rt_clock_gettime=yes
16002 else case e in #(
16003 e) ac_cv_lib_rt_clock_gettime=no ;;
16004 esac
16005 fi
16006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16007 conftest$ac_exeext conftest.$ac_ext
16008 LIBS=$ac_check_lib_save_LIBS ;;
16009 esac
16010 fi
16011 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16012 printf '%s\n' "$ac_cv_lib_rt_clock_gettime" >&6; }
16013 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
16014 then :
16015 dummy=yes
16016 else case e in #(
16017 e) as_fn_error $? "realtime clock support is required" "$LINENO" 5 ;;
16018 esac
16019 fi
16020
16021
16022 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16023 printf %s "checking for pthread_create in -lpthread... " >&6; }
16024 if test ${ac_cv_lib_pthread_pthread_create+y}
16025 then :
16026 printf %s "(cached) " >&6
16027 else case e in #(
16028 e) ac_check_lib_save_LIBS=$LIBS
16029 LIBS="-lpthread $LIBS"
16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16032
16033 /* Override any GCC internal prototype to avoid an error.
16034 Use char because int might match the return type of a GCC
16035 builtin and then its argument prototype would still apply.
16036 The 'extern "C"' is for builds by C++ compilers;
16037 although this is not generally supported in C code supporting it here
16038 has little cost and some practical benefit (sr 110532). */
16039 #ifdef __cplusplus
16040 extern "C"
16041 #endif
16042 char pthread_create (void);
16043 int
16044 main (void)
16045 {
16046 return pthread_create ();
16047 ;
16048 return 0;
16049 }
16050 _ACEOF
16051 if ac_fn_c_try_link "$LINENO"
16052 then :
16053 ac_cv_lib_pthread_pthread_create=yes
16054 else case e in #(
16055 e) ac_cv_lib_pthread_pthread_create=no ;;
16056 esac
16057 fi
16058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16059 conftest$ac_exeext conftest.$ac_ext
16060 LIBS=$ac_check_lib_save_LIBS ;;
16061 esac
16062 fi
16063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16064 printf '%s\n' "$ac_cv_lib_pthread_pthread_create" >&6; }
16065 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
16066 then :
16067 dummy=yes
16068 else case e in #(
16069 e) as_fn_error $? "posix thread support is required" "$LINENO" 5 ;;
16070 esac
16071 fi
16072
16073
16074 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16075 printf %s "checking for dlopen in -ldl... " >&6; }
16076 if test ${ac_cv_lib_dl_dlopen+y}
16077 then :
16078 printf %s "(cached) " >&6
16079 else case e in #(
16080 e) ac_check_lib_save_LIBS=$LIBS
16081 LIBS="-ldl $LIBS"
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084
16085 /* Override any GCC internal prototype to avoid an error.
16086 Use char because int might match the return type of a GCC
16087 builtin and then its argument prototype would still apply.
16088 The 'extern "C"' is for builds by C++ compilers;
16089 although this is not generally supported in C code supporting it here
16090 has little cost and some practical benefit (sr 110532). */
16091 #ifdef __cplusplus
16092 extern "C"
16093 #endif
16094 char dlopen (void);
16095 int
16096 main (void)
16097 {
16098 return dlopen ();
16099 ;
16100 return 0;
16101 }
16102 _ACEOF
16103 if ac_fn_c_try_link "$LINENO"
16104 then :
16105 ac_cv_lib_dl_dlopen=yes
16106 else case e in #(
16107 e) ac_cv_lib_dl_dlopen=no ;;
16108 esac
16109 fi
16110 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16111 conftest$ac_exeext conftest.$ac_ext
16112 LIBS=$ac_check_lib_save_LIBS ;;
16113 esac
16114 fi
16115 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16116 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
16117 if test "x$ac_cv_lib_dl_dlopen" = xyes
16118 then :
16119 dummy=yes
16120 else case e in #(
16121 e) as_fn_error $? "dynamic linking loader is required" "$LINENO" 5 ;;
16122 esac
16123 fi
16124
16125
16126 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
16127 if test "x$ac_cv_header_stdarg_h" = xyes
16128 then :
16129 printf '%s\n' "#define HAVE_STDARG_H 1" >>confdefs.h
16130
16131 fi
16132 ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
16133 if test "x$ac_cv_header_stdio_h" = xyes
16134 then :
16135 printf '%s\n' "#define HAVE_STDIO_H 1" >>confdefs.h
16136
16137 fi
16138 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
16139 if test "x$ac_cv_header_string_h" = xyes
16140 then :
16141 printf '%s\n' "#define HAVE_STRING_H 1" >>confdefs.h
16142
16143 fi
16144 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
16145 if test "x$ac_cv_header_linux_types_h" = xyes
16146 then :
16147 printf '%s\n' "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
16148
16149 fi
16150 ac_fn_c_check_header_compile "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default"
16151 if test "x$ac_cv_header_linux_if_alg_h" = xyes
16152 then :
16153 printf '%s\n' "#define HAVE_LINUX_IF_ALG_H 1" >>confdefs.h
16154
16155 fi
16156 ac_fn_c_check_header_compile "$LINENO" "linux/uinput.h" "ac_cv_header_linux_uinput_h" "$ac_includes_default"
16157 if test "x$ac_cv_header_linux_uinput_h" = xyes
16158 then :
16159 printf '%s\n' "#define HAVE_LINUX_UINPUT_H 1" >>confdefs.h
16160
16161 fi
16162 ac_fn_c_check_header_compile "$LINENO" "linux/uhid.h" "ac_cv_header_linux_uhid_h" "$ac_includes_default"
16163 if test "x$ac_cv_header_linux_uhid_h" = xyes
16164 then :
16165 printf '%s\n' "#define HAVE_LINUX_UHID_H 1" >>confdefs.h
16166
16167 fi
16168 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
16169 if test "x$ac_cv_header_sys_random_h" = xyes
16170 then :
16171 printf '%s\n' "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
16172
16173 fi
16174
16175
16176 # basename may be only available in libgen.h with the POSIX behavior,
16177 # not desired here
16178 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5
16179 printf %s "checking for $CC options to detect undeclared functions... " >&6; }
16180 if test ${ac_cv_c_undeclared_builtin_options+y}
16181 then :
16182 printf %s "(cached) " >&6
16183 else case e in #(
16184 e) ac_save_CFLAGS=$CFLAGS
16185 ac_cv_c_undeclared_builtin_options='cannot detect'
16186 for ac_arg in '' -fno-builtin; do
16187 CFLAGS="$ac_save_CFLAGS $ac_arg"
16188 # This test program should *not* compile successfully.
16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190 /* end confdefs.h. */
16191
16192 int
16193 main (void)
16194 {
16195 (void) strchr;
16196 ;
16197 return 0;
16198 }
16199 _ACEOF
16200 if ac_fn_c_try_compile "$LINENO"
16201 then :
16202
16203 else case e in #(
16204 e) # This test program should compile successfully.
16205 # No library function is consistently available on
16206 # freestanding implementations, so test against a dummy
16207 # declaration. Include always-available headers on the
16208 # off chance that they somehow elicit warnings.
16209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210 /* end confdefs.h. */
16211 #include <float.h>
16212 #include <limits.h>
16213 #include <stdarg.h>
16214 #include <stddef.h>
16215 extern void ac_decl (int, char *);
16216
16217 int
16218 main (void)
16219 {
16220 (void) ac_decl (0, (char *) 0);
16221 (void) ac_decl;
16222
16223 ;
16224 return 0;
16225 }
16226 _ACEOF
16227 if ac_fn_c_try_compile "$LINENO"
16228 then :
16229 if test x"$ac_arg" = x
16230 then :
16231 ac_cv_c_undeclared_builtin_options='none needed'
16232 else case e in #(
16233 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
16234 esac
16235 fi
16236 break
16237 fi
16238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16239 esac
16240 fi
16241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16242 done
16243 CFLAGS=$ac_save_CFLAGS
16244 ;;
16245 esac
16246 fi
16247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16248 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }
16249 case $ac_cv_c_undeclared_builtin_options in #(
16250 'cannot detect') :
16251 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16252 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
16253 as_fn_error $? "cannot make $CC report undeclared builtins
16254 See 'config.log' for more details" "$LINENO" 5; } ;; #(
16255 'none needed') :
16256 ac_c_undeclared_builtin_options='' ;; #(
16257 *) :
16258 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
16259 esac
16260
16261 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5
16262 printf %s "checking for $CC options to ignore future-version functions... " >&6; }
16263 if test ${ac_cv_c_future_darwin_options+y}
16264 then :
16265 printf %s "(cached) " >&6
16266 else case e in #(
16267 e) ac_compile_saved="$ac_compile"
16268 ac_compile="$ac_compile -Werror=unguarded-availability-new"
16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h. */
16271 #if ! (defined __APPLE__ && defined __MACH__)
16272 #error "-Werror=unguarded-availability-new not needed here"
16273 #endif
16274
16275 int
16276 main (void)
16277 {
16278
16279 ;
16280 return 0;
16281 }
16282 _ACEOF
16283 if ac_fn_c_try_compile "$LINENO"
16284 then :
16285 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'
16286 else case e in #(
16287 e) ac_cv_c_future_darwin_options='none needed' ;;
16288 esac
16289 fi
16290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16291 ac_compile="$ac_compile_saved"
16292 ;;
16293 esac
16294 fi
16295 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5
16296 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }
16297 case $ac_cv_c_future_darwin_options in #(
16298 'none needed') :
16299 ac_c_future_darwin_options='' ;; #(
16300 *) :
16301 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;
16302 esac
16303
16304 ac_fn_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "#define _GNU_SOURCE 1
16305 #include <string.h>
16306
16307 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
16308 if test "x$ac_cv_have_decl_basename" = xyes
16309 then :
16310 ac_have_decl=1
16311 else case e in #(
16312 e) ac_have_decl=0 ;;
16313 esac
16314 fi
16315 printf '%s\n' "#define HAVE_DECL_BASENAME $ac_have_decl" >>confdefs.h
16316 if test $ac_have_decl = 1
16317 then :
16318
16319 else case e in #(
16320 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: GNU basename extension not found" >&5
16321 printf '%s\n' "$as_me: WARNING: GNU basename extension not found" >&2;} ;;
16322 esac
16323 fi
16324
16325
16326
16327
16328 pkg_failed=no
16329 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.36" >&5
16330 printf %s "checking for glib-2.0 >= 2.36... " >&6; }
16331
16332 if test -n "$GLIB_CFLAGS"; then
16333 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
16334 elif test -n "$PKG_CONFIG"; then
16335 if test -n "$PKG_CONFIG" && \
16336 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.36\""; } >&5
16337 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.36") 2>&5
16338 ac_status=$?
16339 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16340 test $ac_status = 0; }; then
16341 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.36" 2>/dev/null`
16342 test "x$?" != "x0" && pkg_failed=yes
16343 else
16344 pkg_failed=yes
16345 fi
16346 else
16347 pkg_failed=untried
16348 fi
16349 if test -n "$GLIB_LIBS"; then
16350 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
16351 elif test -n "$PKG_CONFIG"; then
16352 if test -n "$PKG_CONFIG" && \
16353 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.36\""; } >&5
16354 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.36") 2>&5
16355 ac_status=$?
16356 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16357 test $ac_status = 0; }; then
16358 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.36" 2>/dev/null`
16359 test "x$?" != "x0" && pkg_failed=yes
16360 else
16361 pkg_failed=yes
16362 fi
16363 else
16364 pkg_failed=untried
16365 fi
16366
16367
16368
16369 if test $pkg_failed = yes; then
16370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
16371 printf '%s\n' "no" >&6; }
16372
16373 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16374 _pkg_short_errors_supported=yes
16375 else
16376 _pkg_short_errors_supported=no
16377 fi
16378 if test $_pkg_short_errors_supported = yes; then
16379 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.36" 2>&1`
16380 else
16381 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.36" 2>&1`
16382 fi
16383 # Put the nasty error message in config.log where it belongs
16384 echo "$GLIB_PKG_ERRORS" >&5
16385
16386 as_fn_error $? "Package requirements (glib-2.0 >= 2.36) were not met:
16387
16388 $GLIB_PKG_ERRORS
16389
16390 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16391 installed software in a non-standard prefix.
16392
16393 Alternatively, you may set the environment variables GLIB_CFLAGS
16394 and GLIB_LIBS to avoid the need to call pkg-config.
16395 See the pkg-config man page for more details." "$LINENO" 5
16396 elif test $pkg_failed = untried; then
16397 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
16398 printf '%s\n' "no" >&6; }
16399 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16400 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
16401 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16402 is in your PATH or set the PKG_CONFIG environment variable to the full
16403 path to pkg-config.
16404
16405 Alternatively, you may set the environment variables GLIB_CFLAGS
16406 and GLIB_LIBS to avoid the need to call pkg-config.
16407 See the pkg-config man page for more details.
16408
16409 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16410 See 'config.log' for more details" "$LINENO" 5; }
16411 else
16412 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
16413 GLIB_LIBS=$pkg_cv_GLIB_LIBS
16414 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16415 printf '%s\n' "yes" >&6; }
16416
16417 fi
16418
16419 pkg_failed=no
16420 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.10" >&5
16421 printf %s "checking for dbus-1 >= 1.10... " >&6; }
16422
16423 if test -n "$DBUS_CFLAGS"; then
16424 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16425 elif test -n "$PKG_CONFIG"; then
16426 if test -n "$PKG_CONFIG" && \
16427 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.10\""; } >&5
16428 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.10") 2>&5
16429 ac_status=$?
16430 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16431 test $ac_status = 0; }; then
16432 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.10" 2>/dev/null`
16433 test "x$?" != "x0" && pkg_failed=yes
16434 else
16435 pkg_failed=yes
16436 fi
16437 else
16438 pkg_failed=untried
16439 fi
16440 if test -n "$DBUS_LIBS"; then
16441 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16442 elif test -n "$PKG_CONFIG"; then
16443 if test -n "$PKG_CONFIG" && \
16444 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.10\""; } >&5
16445 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.10") 2>&5
16446 ac_status=$?
16447 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16448 test $ac_status = 0; }; then
16449 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.10" 2>/dev/null`
16450 test "x$?" != "x0" && pkg_failed=yes
16451 else
16452 pkg_failed=yes
16453 fi
16454 else
16455 pkg_failed=untried
16456 fi
16457
16458
16459
16460 if test $pkg_failed = yes; then
16461 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
16462 printf '%s\n' "no" >&6; }
16463
16464 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16465 _pkg_short_errors_supported=yes
16466 else
16467 _pkg_short_errors_supported=no
16468 fi
16469 if test $_pkg_short_errors_supported = yes; then
16470 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.10" 2>&1`
16471 else
16472 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.10" 2>&1`
16473 fi
16474 # Put the nasty error message in config.log where it belongs
16475 echo "$DBUS_PKG_ERRORS" >&5
16476
16477 as_fn_error $? "Package requirements (dbus-1 >= 1.10) were not met:
16478
16479 $DBUS_PKG_ERRORS
16480
16481 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16482 installed software in a non-standard prefix.
16483
16484 Alternatively, you may set the environment variables DBUS_CFLAGS
16485 and DBUS_LIBS to avoid the need to call pkg-config.
16486 See the pkg-config man page for more details." "$LINENO" 5
16487 elif test $pkg_failed = untried; then
16488 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
16489 printf '%s\n' "no" >&6; }
16490 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16491 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
16492 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16493 is in your PATH or set the PKG_CONFIG environment variable to the full
16494 path to pkg-config.
16495
16496 Alternatively, you may set the environment variables DBUS_CFLAGS
16497 and DBUS_LIBS to avoid the need to call pkg-config.
16498 See the pkg-config man page for more details.
16499
16500 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16501 See 'config.log' for more details" "$LINENO" 5; }
16502 else
16503 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16504 DBUS_LIBS=$pkg_cv_DBUS_LIBS
16505 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16506 printf '%s\n' "yes" >&6; }
16507
16508 fi
16509
16510
16511 # Check whether --with-dbusconfdir was given.
16512 if test ${with_dbusconfdir+y}
16513 then :
16514 withval=$with_dbusconfdir; path_dbusconfdir=${withval}
16515 fi
16516
16517 if (test -z "${path_dbusconfdir}"); then
16518 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking D-Bus configuration directory" >&5
16519 printf %s "checking D-Bus configuration directory... " >&6; }
16520 path_dbusconfdir="`$PKG_CONFIG --variable=datadir dbus-1`"
16521 if (test -z "${path_dbusconfdir}"); then
16522 as_fn_error $? "D-Bus configuration directory is required" "$LINENO" 5
16523 fi
16524 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${path_dbusconfdir}" >&5
16525 printf '%s\n' "${path_dbusconfdir}" >&6; }
16526 fi
16527 DBUS_CONFDIR=${path_dbusconfdir}
16528
16529
16530
16531 # Check whether --with-dbussystembusdir was given.
16532 if test ${with_dbussystembusdir+y}
16533 then :
16534 withval=$with_dbussystembusdir; path_dbussystembusdir=${withval}
16535 fi
16536
16537 if (test -z "${path_dbussystembusdir}"); then
16538 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking D-Bus system bus services dir" >&5
16539 printf %s "checking D-Bus system bus services dir... " >&6; }
16540 path_dbussystembusdir="`$PKG_CONFIG --variable=system_bus_services_dir dbus-1`"
16541 if (test -z "${path_dbussystembusdir}"); then
16542 as_fn_error $? "D-Bus system bus services directory is required" "$LINENO" 5
16543 fi
16544 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${path_dbussystembusdir}" >&5
16545 printf '%s\n' "${path_dbussystembusdir}" >&6; }
16546 fi
16547 DBUS_SYSTEMBUSDIR=${path_dbussystembusdir}
16548
16549
16550
16551 # Check whether --with-dbussessionbusdir was given.
16552 if test ${with_dbussessionbusdir+y}
16553 then :
16554 withval=$with_dbussessionbusdir; path_dbussessionbusdir=${withval}
16555 fi
16556
16557 if (test -z "${path_dbussessionbusdir}"); then
16558 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking D-Bus session bus services dir" >&5
16559 printf %s "checking D-Bus session bus services dir... " >&6; }
16560 path_dbussessionbusdir="`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`"
16561 if (test -z "${path_dbussessionbusdir}"); then
16562 as_fn_error $? "D-Bus session bus services directory is required" "$LINENO" 5
16563 fi
16564 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${path_dbussessionbusdir}" >&5
16565 printf '%s\n' "${path_dbussessionbusdir}" >&6; }
16566 fi
16567 DBUS_SESSIONBUSDIR=${path_dbussessionbusdir}
16568
16569
16570
16571 # Check whether --with-zsh-completion-dir was given.
16572 if test ${with_zsh_completion_dir+y}
16573 then :
16574 withval=$with_zsh_completion_dir; path_zshcompletiondir=${withval}
16575 else case e in #(
16576 e) path_zshcompletiondir="yes" ;;
16577 esac
16578 fi
16579
16580
16581 if (test "${path_zshcompletiondir}" = "yes"); then
16582 path_zshcompletiondir="$datarootdir/zsh/site-functions"
16583 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${path_zshcompletiondir}" >&5
16584 printf '%s\n' "${path_zshcompletiondir}" >&6; }
16585 fi
16586 ZSH_COMPLETIONDIR=${path_zshcompletiondir}
16587
16588 if test "${path_zshcompletiondir}" != "no"; then
16589 ZSH_COMPLETIONS_TRUE=
16590 ZSH_COMPLETIONS_FALSE='#'
16591 else
16592 ZSH_COMPLETIONS_TRUE='#'
16593 ZSH_COMPLETIONS_FALSE=
16594 fi
16595
16596
16597 # Check whether --enable-backtrace was given.
16598 if test ${enable_backtrace+y}
16599 then :
16600 enableval=$enable_backtrace; enable_backtrace=${enableval}
16601 fi
16602
16603
16604 if (test "${enable_backtrace}" = "yes"); then
16605 ac_fn_c_check_header_compile "$LINENO" "elfutils/libdwfl.h" "ac_cv_header_elfutils_libdwfl_h" "$ac_includes_default"
16606 if test "x$ac_cv_header_elfutils_libdwfl_h" = xyes
16607 then :
16608 dummy=yes
16609 else case e in #(
16610 e) as_fn_error $? "elfutils support is required" "$LINENO" 5 ;;
16611 esac
16612 fi
16613
16614
16615 printf '%s\n' "#define HAVE_BACKTRACE_SUPPORT 1" >>confdefs.h
16616
16617 BACKTRACE_CFLAGS=""
16618 BACKTRACE_LIBS="-ldw"
16619
16620
16621 fi
16622
16623 # Check whether --enable-library was given.
16624 if test ${enable_library+y}
16625 then :
16626 enableval=$enable_library; enable_library=${enableval}
16627 fi
16628
16629 if test "${enable_library}" = "yes"; then
16630 LIBRARY_TRUE=
16631 LIBRARY_FALSE='#'
16632 else
16633 LIBRARY_TRUE='#'
16634 LIBRARY_FALSE=
16635 fi
16636
16637
16638 # Check whether --enable-test was given.
16639 if test ${enable_test+y}
16640 then :
16641 enableval=$enable_test; enable_test=${enableval}
16642 fi
16643
16644 if test "${enable_test}" = "yes"; then
16645 TEST_TRUE=
16646 TEST_FALSE='#'
16647 else
16648 TEST_TRUE='#'
16649 TEST_FALSE=
16650 fi
16651
16652
16653 # Check whether --enable-nfc was given.
16654 if test ${enable_nfc+y}
16655 then :
16656 enableval=$enable_nfc; enable_nfc=${enableval}
16657 fi
16658
16659 if test "${enable_nfc}" = "yes"; then
16660 NFC_TRUE=
16661 NFC_FALSE='#'
16662 else
16663 NFC_TRUE='#'
16664 NFC_FALSE=
16665 fi
16666
16667
16668 # Check whether --enable-a2dp was given.
16669 if test ${enable_a2dp+y}
16670 then :
16671 enableval=$enable_a2dp; enable_a2dp=${enableval}
16672 fi
16673
16674 if test "${enable_a2dp}" != "no"; then
16675 A2DP_TRUE=
16676 A2DP_FALSE='#'
16677 else
16678 A2DP_TRUE='#'
16679 A2DP_FALSE=
16680 fi
16681
16682 if test "${enable_a2dp}" != "no"; then
16683
16684 printf '%s\n' "#define HAVE_A2DP 1" >>confdefs.h
16685
16686 fi
16687
16688 # Check whether --enable-avrcp was given.
16689 if test ${enable_avrcp+y}
16690 then :
16691 enableval=$enable_avrcp; enable_avrcp=${enableval}
16692 fi
16693
16694 if test "${enable_avrcp}" != "no"; then
16695 AVRCP_TRUE=
16696 AVRCP_FALSE='#'
16697 else
16698 AVRCP_TRUE='#'
16699 AVRCP_FALSE=
16700 fi
16701
16702 if test "${enable_avrcp}" != "no"; then
16703
16704 printf '%s\n' "#define HAVE_AVRCP 1" >>confdefs.h
16705
16706 fi
16707
16708 # Check whether --enable-network was given.
16709 if test ${enable_network+y}
16710 then :
16711 enableval=$enable_network; enable_network=${enableval}
16712 fi
16713
16714 if test "${enable_network}" != "no"; then
16715 NETWORK_TRUE=
16716 NETWORK_FALSE='#'
16717 else
16718 NETWORK_TRUE='#'
16719 NETWORK_FALSE=
16720 fi
16721
16722
16723 # Check whether --enable-hid was given.
16724 if test ${enable_hid+y}
16725 then :
16726 enableval=$enable_hid; enable_hid=${enableval}
16727 fi
16728
16729 if test "${enable_hid}" != "no"; then
16730 HID_TRUE=
16731 HID_FALSE='#'
16732 else
16733 HID_TRUE='#'
16734 HID_FALSE=
16735 fi
16736
16737
16738 # Check whether --enable-hog was given.
16739 if test ${enable_hog+y}
16740 then :
16741 enableval=$enable_hog; enable_hog=${enableval}
16742 fi
16743
16744 if test "${enable_hog}" != "no"; then
16745 HOG_TRUE=
16746 HOG_FALSE='#'
16747 else
16748 HOG_TRUE='#'
16749 HOG_FALSE=
16750 fi
16751
16752
16753 # Check whether --enable-bap was given.
16754 if test ${enable_bap+y}
16755 then :
16756 enableval=$enable_bap; enable_bap=${enableval}
16757 fi
16758
16759 if test "${enable_bap}" != "no"; then
16760 BAP_TRUE=
16761 BAP_FALSE='#'
16762 else
16763 BAP_TRUE='#'
16764 BAP_FALSE=
16765 fi
16766
16767
16768 # Check whether --enable-bass was given.
16769 if test ${enable_bass+y}
16770 then :
16771 enableval=$enable_bass; enable_bass=${enableval}
16772 fi
16773
16774 if test "${enable_bass}" != "no"; then
16775 BASS_TRUE=
16776 BASS_FALSE='#'
16777 else
16778 BASS_TRUE='#'
16779 BASS_FALSE=
16780 fi
16781
16782
16783 # Check whether --enable-mcp was given.
16784 if test ${enable_mcp+y}
16785 then :
16786 enableval=$enable_mcp; enable_mcp=${enableval}
16787 fi
16788
16789 if test "${enable_mcp}" != "no"; then
16790 MCP_TRUE=
16791 MCP_FALSE='#'
16792 else
16793 MCP_TRUE='#'
16794 MCP_FALSE=
16795 fi
16796
16797
16798 # Check whether --enable-ccp was given.
16799 if test ${enable_ccp+y}
16800 then :
16801 enableval=$enable_ccp; enable_ccp=${enableval}
16802 fi
16803
16804 if test "${enable_ccp}" != "no"; then
16805 CCP_TRUE=
16806 CCP_FALSE='#'
16807 else
16808 CCP_TRUE='#'
16809 CCP_FALSE=
16810 fi
16811
16812
16813 # Check whether --enable-vcp was given.
16814 if test ${enable_vcp+y}
16815 then :
16816 enableval=$enable_vcp; enable_vcp=${enableval}
16817 fi
16818
16819 if test "${enable_vcp}" != "no"; then
16820 VCP_TRUE=
16821 VCP_FALSE='#'
16822 else
16823 VCP_TRUE='#'
16824 VCP_FALSE=
16825 fi
16826
16827 if test "${enable_vcp}" != "no"; then
16828
16829 printf '%s\n' "#define HAVE_VCP 1" >>confdefs.h
16830
16831 fi
16832
16833 # Check whether --enable-micp was given.
16834 if test ${enable_micp+y}
16835 then :
16836 enableval=$enable_micp; enable_micp=${enableval}
16837 fi
16838
16839 if test "${enable_micp}" != "no"; then
16840 MICP_TRUE=
16841 MICP_FALSE='#'
16842 else
16843 MICP_TRUE='#'
16844 MICP_FALSE=
16845 fi
16846
16847
16848 # Check whether --enable-csip was given.
16849 if test ${enable_csip+y}
16850 then :
16851 enableval=$enable_csip; enable_csip=${enableval}
16852 fi
16853
16854 if test "${enable_csip}" != "no"; then
16855 CSIP_TRUE=
16856 CSIP_FALSE='#'
16857 else
16858 CSIP_TRUE='#'
16859 CSIP_FALSE=
16860 fi
16861
16862
16863 # Check whether --enable-tmap was given.
16864 if test ${enable_tmap+y}
16865 then :
16866 enableval=$enable_tmap; enable_tmap=${enableval}
16867 fi
16868
16869 if test "${enable_tmap}" != "no"; then
16870 TMAP_TRUE=
16871 TMAP_FALSE='#'
16872 else
16873 TMAP_TRUE='#'
16874 TMAP_FALSE=
16875 fi
16876
16877 if test "${enable_tmap}" != "no"; then
16878
16879 printf '%s\n' "#define HAVE_TMAP 1" >>confdefs.h
16880
16881 fi
16882
16883 # Check whether --enable-gmap was given.
16884 if test ${enable_gmap+y}
16885 then :
16886 enableval=$enable_gmap; enable_gmap=${enableval}
16887 fi
16888
16889 if test "${enable_gmap}" != "no"; then
16890 GMAP_TRUE=
16891 GMAP_FALSE='#'
16892 else
16893 GMAP_TRUE='#'
16894 GMAP_FALSE=
16895 fi
16896
16897 if test "${enable_gmap}" != "no"; then
16898
16899 printf '%s\n' "#define HAVE_GMAP 1" >>confdefs.h
16900
16901 fi
16902
16903 # Check whether --enable-asha was given.
16904 if test ${enable_asha+y}
16905 then :
16906 enableval=$enable_asha; enable_asha=${enableval}
16907 fi
16908
16909 if test "${enable_asha}" != "no"; then
16910 ASHA_TRUE=
16911 ASHA_FALSE='#'
16912 else
16913 ASHA_TRUE='#'
16914 ASHA_FALSE=
16915 fi
16916
16917 if test "${enable_asha}" != "no"; then
16918
16919 printf '%s\n' "#define HAVE_ASHA 1" >>confdefs.h
16920
16921 fi
16922
16923 # Check whether --enable-hfp was given.
16924 if test ${enable_hfp+y}
16925 then :
16926 enableval=$enable_hfp; enable_hfp=${enableval}
16927 fi
16928
16929 if test "${enable_hfp}" != "no"; then
16930 HFP_TRUE=
16931 HFP_FALSE='#'
16932 else
16933 HFP_TRUE='#'
16934 HFP_FALSE=
16935 fi
16936
16937 if test "${enable_hfp}" != "no"; then
16938
16939 printf '%s\n' "#define HAVE_HFP 1" >>confdefs.h
16940
16941 fi
16942
16943 # Check whether --enable-tools was given.
16944 if test ${enable_tools+y}
16945 then :
16946 enableval=$enable_tools; enable_tools=${enableval}
16947 fi
16948
16949 if test "${enable_tools}" != "no"; then
16950 TOOLS_TRUE=
16951 TOOLS_FALSE='#'
16952 else
16953 TOOLS_TRUE='#'
16954 TOOLS_FALSE=
16955 fi
16956
16957
16958 # Check whether --enable-monitor was given.
16959 if test ${enable_monitor+y}
16960 then :
16961 enableval=$enable_monitor; enable_monitor=${enableval}
16962 fi
16963
16964 if test "${enable_monitor}" != "no"; then
16965 MONITOR_TRUE=
16966 MONITOR_FALSE='#'
16967 else
16968 MONITOR_TRUE='#'
16969 MONITOR_FALSE=
16970 fi
16971
16972
16973 # Check whether --enable-udev was given.
16974 if test ${enable_udev+y}
16975 then :
16976 enableval=$enable_udev; enable_udev=${enableval}
16977 fi
16978
16979 if (test "${enable_udev}" != "no"); then
16980
16981 pkg_failed=no
16982 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libudev >= 196" >&5
16983 printf %s "checking for libudev >= 196... " >&6; }
16984
16985 if test -n "$UDEV_CFLAGS"; then
16986 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
16987 elif test -n "$PKG_CONFIG"; then
16988 if test -n "$PKG_CONFIG" && \
16989 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 196\""; } >&5
16990 ($PKG_CONFIG --exists --print-errors "libudev >= 196") 2>&5
16991 ac_status=$?
16992 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16993 test $ac_status = 0; }; then
16994 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 196" 2>/dev/null`
16995 test "x$?" != "x0" && pkg_failed=yes
16996 else
16997 pkg_failed=yes
16998 fi
16999 else
17000 pkg_failed=untried
17001 fi
17002 if test -n "$UDEV_LIBS"; then
17003 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
17004 elif test -n "$PKG_CONFIG"; then
17005 if test -n "$PKG_CONFIG" && \
17006 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 196\""; } >&5
17007 ($PKG_CONFIG --exists --print-errors "libudev >= 196") 2>&5
17008 ac_status=$?
17009 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17010 test $ac_status = 0; }; then
17011 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 196" 2>/dev/null`
17012 test "x$?" != "x0" && pkg_failed=yes
17013 else
17014 pkg_failed=yes
17015 fi
17016 else
17017 pkg_failed=untried
17018 fi
17019
17020
17021
17022 if test $pkg_failed = yes; then
17023 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024 printf '%s\n' "no" >&6; }
17025
17026 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17027 _pkg_short_errors_supported=yes
17028 else
17029 _pkg_short_errors_supported=no
17030 fi
17031 if test $_pkg_short_errors_supported = yes; then
17032 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 196" 2>&1`
17033 else
17034 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 196" 2>&1`
17035 fi
17036 # Put the nasty error message in config.log where it belongs
17037 echo "$UDEV_PKG_ERRORS" >&5
17038
17039 as_fn_error $? "Package requirements (libudev >= 196) were not met:
17040
17041 $UDEV_PKG_ERRORS
17042
17043 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17044 installed software in a non-standard prefix.
17045
17046 Alternatively, you may set the environment variables UDEV_CFLAGS
17047 and UDEV_LIBS to avoid the need to call pkg-config.
17048 See the pkg-config man page for more details." "$LINENO" 5
17049 elif test $pkg_failed = untried; then
17050 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17051 printf '%s\n' "no" >&6; }
17052 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17053 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
17054 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17055 is in your PATH or set the PKG_CONFIG environment variable to the full
17056 path to pkg-config.
17057
17058 Alternatively, you may set the environment variables UDEV_CFLAGS
17059 and UDEV_LIBS to avoid the need to call pkg-config.
17060 See the pkg-config man page for more details.
17061
17062 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17063 See 'config.log' for more details" "$LINENO" 5; }
17064 else
17065 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
17066 UDEV_LIBS=$pkg_cv_UDEV_LIBS
17067 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17068 printf '%s\n' "yes" >&6; }
17069
17070 fi
17071
17072 printf '%s\n' "#define HAVE_UDEV 1" >>confdefs.h
17073
17074 fi
17075
17076
17077 # Check whether --with-udevdir was given.
17078 if test ${with_udevdir+y}
17079 then :
17080 withval=$with_udevdir; path_udevdir=${withval}
17081 fi
17082
17083 if (test "${enable_udev}" != "no" && test -z "${path_udevdir}"); then
17084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking udev directory" >&5
17085 printf %s "checking udev directory... " >&6; }
17086 path_udevdir="`$PKG_CONFIG --variable=udevdir udev`"
17087 if (test -z "${path_udevdir}"); then
17088 as_fn_error $? "udev directory is required" "$LINENO" 5
17089 fi
17090 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${path_udevdir}" >&5
17091 printf '%s\n' "${path_udevdir}" >&6; }
17092 fi
17093 UDEV_DIR=${path_udevdir}
17094
17095
17096 # Check whether --enable-cups was given.
17097 if test ${enable_cups+y}
17098 then :
17099 enableval=$enable_cups; enable_cups=${enableval}
17100 fi
17101
17102 if test "${enable_cups}" != "no"; then
17103 CUPS_TRUE=
17104 CUPS_FALSE='#'
17105 else
17106 CUPS_TRUE='#'
17107 CUPS_FALSE=
17108 fi
17109
17110 if (test "${enable_cups}" != "no"); then
17111 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking cups directory" >&5
17112 printf %s "checking cups directory... " >&6; }
17113 cups_serverbin=`$PKG_CONFIG cups --variable=cups_serverbin`
17114 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${cups_serverbin}" >&5
17115 printf '%s\n' "${cups_serverbin}" >&6; }
17116 fi
17117 if test "${cups_serverbin}" != ""; then
17118 CUPS_SERVERBIN_TRUE=
17119 CUPS_SERVERBIN_FALSE='#'
17120 else
17121 CUPS_SERVERBIN_TRUE='#'
17122 CUPS_SERVERBIN_FALSE=
17123 fi
17124
17125 if test "${cups_serverbin}" != ""
17126 then :
17127
17128 CUPS_SERVERBIN=${cups_serverbin}
17129
17130
17131 fi
17132
17133 # Check whether --enable-mesh was given.
17134 if test ${enable_mesh+y}
17135 then :
17136 enableval=$enable_mesh; enable_mesh=${enableval}
17137 fi
17138
17139 if test "${enable_mesh}" = "yes"; then
17140 MESH_TRUE=
17141 MESH_FALSE='#'
17142 else
17143 MESH_TRUE='#'
17144 MESH_FALSE=
17145 fi
17146
17147
17148 if (test "${enable_mesh}" = "yes"); then
17149
17150 pkg_failed=no
17151 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.13" >&5
17152 printf %s "checking for json-c >= 0.13... " >&6; }
17153
17154 if test -n "$JSONC_CFLAGS"; then
17155 pkg_cv_JSONC_CFLAGS="$JSONC_CFLAGS"
17156 elif test -n "$PKG_CONFIG"; then
17157 if test -n "$PKG_CONFIG" && \
17158 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.13\""; } >&5
17159 ($PKG_CONFIG --exists --print-errors "json-c >= 0.13") 2>&5
17160 ac_status=$?
17161 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17162 test $ac_status = 0; }; then
17163 pkg_cv_JSONC_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.13" 2>/dev/null`
17164 test "x$?" != "x0" && pkg_failed=yes
17165 else
17166 pkg_failed=yes
17167 fi
17168 else
17169 pkg_failed=untried
17170 fi
17171 if test -n "$JSONC_LIBS"; then
17172 pkg_cv_JSONC_LIBS="$JSONC_LIBS"
17173 elif test -n "$PKG_CONFIG"; then
17174 if test -n "$PKG_CONFIG" && \
17175 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.13\""; } >&5
17176 ($PKG_CONFIG --exists --print-errors "json-c >= 0.13") 2>&5
17177 ac_status=$?
17178 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17179 test $ac_status = 0; }; then
17180 pkg_cv_JSONC_LIBS=`$PKG_CONFIG --libs "json-c >= 0.13" 2>/dev/null`
17181 test "x$?" != "x0" && pkg_failed=yes
17182 else
17183 pkg_failed=yes
17184 fi
17185 else
17186 pkg_failed=untried
17187 fi
17188
17189
17190
17191 if test $pkg_failed = yes; then
17192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17193 printf '%s\n' "no" >&6; }
17194
17195 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17196 _pkg_short_errors_supported=yes
17197 else
17198 _pkg_short_errors_supported=no
17199 fi
17200 if test $_pkg_short_errors_supported = yes; then
17201 JSONC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.13" 2>&1`
17202 else
17203 JSONC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.13" 2>&1`
17204 fi
17205 # Put the nasty error message in config.log where it belongs
17206 echo "$JSONC_PKG_ERRORS" >&5
17207
17208 as_fn_error $? "Package requirements (json-c >= 0.13) were not met:
17209
17210 $JSONC_PKG_ERRORS
17211
17212 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17213 installed software in a non-standard prefix.
17214
17215 Alternatively, you may set the environment variables JSONC_CFLAGS
17216 and JSONC_LIBS to avoid the need to call pkg-config.
17217 See the pkg-config man page for more details." "$LINENO" 5
17218 elif test $pkg_failed = untried; then
17219 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17220 printf '%s\n' "no" >&6; }
17221 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17222 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
17223 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17224 is in your PATH or set the PKG_CONFIG environment variable to the full
17225 path to pkg-config.
17226
17227 Alternatively, you may set the environment variables JSONC_CFLAGS
17228 and JSONC_LIBS to avoid the need to call pkg-config.
17229 See the pkg-config man page for more details.
17230
17231 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17232 See 'config.log' for more details" "$LINENO" 5; }
17233 else
17234 JSONC_CFLAGS=$pkg_cv_JSONC_CFLAGS
17235 JSONC_LIBS=$pkg_cv_JSONC_LIBS
17236 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17237 printf '%s\n' "yes" >&6; }
17238
17239 fi
17240 fi
17241
17242 # Check whether --enable-midi was given.
17243 if test ${enable_midi+y}
17244 then :
17245 enableval=$enable_midi; enable_midi=${enableval}
17246 fi
17247
17248 if test "${enable_midi}" = "yes"; then
17249 MIDI_TRUE=
17250 MIDI_FALSE='#'
17251 else
17252 MIDI_TRUE='#'
17253 MIDI_FALSE=
17254 fi
17255
17256
17257 if (test "${enable_midi}" = "yes"); then
17258
17259 pkg_failed=no
17260 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for alsa" >&5
17261 printf %s "checking for alsa... " >&6; }
17262
17263 if test -n "$ALSA_CFLAGS"; then
17264 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
17265 elif test -n "$PKG_CONFIG"; then
17266 if test -n "$PKG_CONFIG" && \
17267 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
17268 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
17269 ac_status=$?
17270 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17271 test $ac_status = 0; }; then
17272 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
17273 test "x$?" != "x0" && pkg_failed=yes
17274 else
17275 pkg_failed=yes
17276 fi
17277 else
17278 pkg_failed=untried
17279 fi
17280 if test -n "$ALSA_LIBS"; then
17281 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
17282 elif test -n "$PKG_CONFIG"; then
17283 if test -n "$PKG_CONFIG" && \
17284 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
17285 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
17286 ac_status=$?
17287 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17288 test $ac_status = 0; }; then
17289 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
17290 test "x$?" != "x0" && pkg_failed=yes
17291 else
17292 pkg_failed=yes
17293 fi
17294 else
17295 pkg_failed=untried
17296 fi
17297
17298
17299
17300 if test $pkg_failed = yes; then
17301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17302 printf '%s\n' "no" >&6; }
17303
17304 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17305 _pkg_short_errors_supported=yes
17306 else
17307 _pkg_short_errors_supported=no
17308 fi
17309 if test $_pkg_short_errors_supported = yes; then
17310 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa" 2>&1`
17311 else
17312 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa" 2>&1`
17313 fi
17314 # Put the nasty error message in config.log where it belongs
17315 echo "$ALSA_PKG_ERRORS" >&5
17316
17317 as_fn_error $? "Package requirements (alsa) were not met:
17318
17319 $ALSA_PKG_ERRORS
17320
17321 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17322 installed software in a non-standard prefix.
17323
17324 Alternatively, you may set the environment variables ALSA_CFLAGS
17325 and ALSA_LIBS to avoid the need to call pkg-config.
17326 See the pkg-config man page for more details." "$LINENO" 5
17327 elif test $pkg_failed = untried; then
17328 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17329 printf '%s\n' "no" >&6; }
17330 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17331 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
17332 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17333 is in your PATH or set the PKG_CONFIG environment variable to the full
17334 path to pkg-config.
17335
17336 Alternatively, you may set the environment variables ALSA_CFLAGS
17337 and ALSA_LIBS to avoid the need to call pkg-config.
17338 See the pkg-config man page for more details.
17339
17340 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17341 See 'config.log' for more details" "$LINENO" 5; }
17342 else
17343 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
17344 ALSA_LIBS=$pkg_cv_ALSA_LIBS
17345 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17346 printf '%s\n' "yes" >&6; }
17347
17348 fi
17349 fi
17350
17351 # Check whether --enable-obex was given.
17352 if test ${enable_obex+y}
17353 then :
17354 enableval=$enable_obex; enable_obex=${enableval}
17355 fi
17356
17357 if (test "${enable_obex}" != "no"); then
17358
17359 pkg_failed=no
17360 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libicalvcal >= 4.0.0" >&5
17361 printf %s "checking for libicalvcal >= 4.0.0... " >&6; }
17362
17363 if test -n "$ICAL_CFLAGS"; then
17364 pkg_cv_ICAL_CFLAGS="$ICAL_CFLAGS"
17365 elif test -n "$PKG_CONFIG"; then
17366 if test -n "$PKG_CONFIG" && \
17367 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libicalvcal >= 4.0.0\""; } >&5
17368 ($PKG_CONFIG --exists --print-errors "libicalvcal >= 4.0.0") 2>&5
17369 ac_status=$?
17370 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17371 test $ac_status = 0; }; then
17372 pkg_cv_ICAL_CFLAGS=`$PKG_CONFIG --cflags "libicalvcal >= 4.0.0" 2>/dev/null`
17373 test "x$?" != "x0" && pkg_failed=yes
17374 else
17375 pkg_failed=yes
17376 fi
17377 else
17378 pkg_failed=untried
17379 fi
17380 if test -n "$ICAL_LIBS"; then
17381 pkg_cv_ICAL_LIBS="$ICAL_LIBS"
17382 elif test -n "$PKG_CONFIG"; then
17383 if test -n "$PKG_CONFIG" && \
17384 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libicalvcal >= 4.0.0\""; } >&5
17385 ($PKG_CONFIG --exists --print-errors "libicalvcal >= 4.0.0") 2>&5
17386 ac_status=$?
17387 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17388 test $ac_status = 0; }; then
17389 pkg_cv_ICAL_LIBS=`$PKG_CONFIG --libs "libicalvcal >= 4.0.0" 2>/dev/null`
17390 test "x$?" != "x0" && pkg_failed=yes
17391 else
17392 pkg_failed=yes
17393 fi
17394 else
17395 pkg_failed=untried
17396 fi
17397
17398
17399
17400 if test $pkg_failed = yes; then
17401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17402 printf '%s\n' "no" >&6; }
17403
17404 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17405 _pkg_short_errors_supported=yes
17406 else
17407 _pkg_short_errors_supported=no
17408 fi
17409 if test $_pkg_short_errors_supported = yes; then
17410 ICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libicalvcal >= 4.0.0" 2>&1`
17411 else
17412 ICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libicalvcal >= 4.0.0" 2>&1`
17413 fi
17414 # Put the nasty error message in config.log where it belongs
17415 echo "$ICAL_PKG_ERRORS" >&5
17416
17417
17418 pkg_failed=no
17419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libical" >&5
17420 printf %s "checking for libical... " >&6; }
17421
17422 if test -n "$ICAL_CFLAGS"; then
17423 pkg_cv_ICAL_CFLAGS="$ICAL_CFLAGS"
17424 elif test -n "$PKG_CONFIG"; then
17425 if test -n "$PKG_CONFIG" && \
17426 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
17427 ($PKG_CONFIG --exists --print-errors "libical") 2>&5
17428 ac_status=$?
17429 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17430 test $ac_status = 0; }; then
17431 pkg_cv_ICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
17432 test "x$?" != "x0" && pkg_failed=yes
17433 else
17434 pkg_failed=yes
17435 fi
17436 else
17437 pkg_failed=untried
17438 fi
17439 if test -n "$ICAL_LIBS"; then
17440 pkg_cv_ICAL_LIBS="$ICAL_LIBS"
17441 elif test -n "$PKG_CONFIG"; then
17442 if test -n "$PKG_CONFIG" && \
17443 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
17444 ($PKG_CONFIG --exists --print-errors "libical") 2>&5
17445 ac_status=$?
17446 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17447 test $ac_status = 0; }; then
17448 pkg_cv_ICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
17449 test "x$?" != "x0" && pkg_failed=yes
17450 else
17451 pkg_failed=yes
17452 fi
17453 else
17454 pkg_failed=untried
17455 fi
17456
17457
17458
17459 if test $pkg_failed = yes; then
17460 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17461 printf '%s\n' "no" >&6; }
17462
17463 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17464 _pkg_short_errors_supported=yes
17465 else
17466 _pkg_short_errors_supported=no
17467 fi
17468 if test $_pkg_short_errors_supported = yes; then
17469 ICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical" 2>&1`
17470 else
17471 ICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical" 2>&1`
17472 fi
17473 # Put the nasty error message in config.log where it belongs
17474 echo "$ICAL_PKG_ERRORS" >&5
17475
17476 as_fn_error $? "Package requirements (libical) were not met:
17477
17478 $ICAL_PKG_ERRORS
17479
17480 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17481 installed software in a non-standard prefix.
17482
17483 Alternatively, you may set the environment variables ICAL_CFLAGS
17484 and ICAL_LIBS to avoid the need to call pkg-config.
17485 See the pkg-config man page for more details." "$LINENO" 5
17486 elif test $pkg_failed = untried; then
17487 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17488 printf '%s\n' "no" >&6; }
17489 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17490 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
17491 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17492 is in your PATH or set the PKG_CONFIG environment variable to the full
17493 path to pkg-config.
17494
17495 Alternatively, you may set the environment variables ICAL_CFLAGS
17496 and ICAL_LIBS to avoid the need to call pkg-config.
17497 See the pkg-config man page for more details.
17498
17499 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17500 See 'config.log' for more details" "$LINENO" 5; }
17501 else
17502 ICAL_CFLAGS=$pkg_cv_ICAL_CFLAGS
17503 ICAL_LIBS=$pkg_cv_ICAL_LIBS
17504 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17505 printf '%s\n' "yes" >&6; }
17506
17507 fi
17508
17509 elif test $pkg_failed = untried; then
17510 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17511 printf '%s\n' "no" >&6; }
17512
17513 pkg_failed=no
17514 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libical" >&5
17515 printf %s "checking for libical... " >&6; }
17516
17517 if test -n "$ICAL_CFLAGS"; then
17518 pkg_cv_ICAL_CFLAGS="$ICAL_CFLAGS"
17519 elif test -n "$PKG_CONFIG"; then
17520 if test -n "$PKG_CONFIG" && \
17521 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
17522 ($PKG_CONFIG --exists --print-errors "libical") 2>&5
17523 ac_status=$?
17524 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17525 test $ac_status = 0; }; then
17526 pkg_cv_ICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
17527 test "x$?" != "x0" && pkg_failed=yes
17528 else
17529 pkg_failed=yes
17530 fi
17531 else
17532 pkg_failed=untried
17533 fi
17534 if test -n "$ICAL_LIBS"; then
17535 pkg_cv_ICAL_LIBS="$ICAL_LIBS"
17536 elif test -n "$PKG_CONFIG"; then
17537 if test -n "$PKG_CONFIG" && \
17538 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
17539 ($PKG_CONFIG --exists --print-errors "libical") 2>&5
17540 ac_status=$?
17541 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17542 test $ac_status = 0; }; then
17543 pkg_cv_ICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
17544 test "x$?" != "x0" && pkg_failed=yes
17545 else
17546 pkg_failed=yes
17547 fi
17548 else
17549 pkg_failed=untried
17550 fi
17551
17552
17553
17554 if test $pkg_failed = yes; then
17555 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17556 printf '%s\n' "no" >&6; }
17557
17558 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17559 _pkg_short_errors_supported=yes
17560 else
17561 _pkg_short_errors_supported=no
17562 fi
17563 if test $_pkg_short_errors_supported = yes; then
17564 ICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical" 2>&1`
17565 else
17566 ICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical" 2>&1`
17567 fi
17568 # Put the nasty error message in config.log where it belongs
17569 echo "$ICAL_PKG_ERRORS" >&5
17570
17571 as_fn_error $? "Package requirements (libical) were not met:
17572
17573 $ICAL_PKG_ERRORS
17574
17575 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17576 installed software in a non-standard prefix.
17577
17578 Alternatively, you may set the environment variables ICAL_CFLAGS
17579 and ICAL_LIBS to avoid the need to call pkg-config.
17580 See the pkg-config man page for more details." "$LINENO" 5
17581 elif test $pkg_failed = untried; then
17582 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17583 printf '%s\n' "no" >&6; }
17584 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17585 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
17586 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17587 is in your PATH or set the PKG_CONFIG environment variable to the full
17588 path to pkg-config.
17589
17590 Alternatively, you may set the environment variables ICAL_CFLAGS
17591 and ICAL_LIBS to avoid the need to call pkg-config.
17592 See the pkg-config man page for more details.
17593
17594 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17595 See 'config.log' for more details" "$LINENO" 5; }
17596 else
17597 ICAL_CFLAGS=$pkg_cv_ICAL_CFLAGS
17598 ICAL_LIBS=$pkg_cv_ICAL_LIBS
17599 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17600 printf '%s\n' "yes" >&6; }
17601
17602 fi
17603
17604 else
17605 ICAL_CFLAGS=$pkg_cv_ICAL_CFLAGS
17606 ICAL_LIBS=$pkg_cv_ICAL_LIBS
17607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17608 printf '%s\n' "yes" >&6; }
17609
17610 fi
17611 fi
17612 if test "${enable_obex}" != "no"; then
17613 OBEX_TRUE=
17614 OBEX_FALSE='#'
17615 else
17616 OBEX_TRUE='#'
17617 OBEX_FALSE=
17618 fi
17619
17620
17621 # Check whether --enable-btpclient was given.
17622 if test ${enable_btpclient+y}
17623 then :
17624 enableval=$enable_btpclient; enable_btpclient=${enableval}
17625 fi
17626
17627 if test "${enable_btpclient}" = "yes"; then
17628 BTPCLIENT_TRUE=
17629 BTPCLIENT_FALSE='#'
17630 else
17631 BTPCLIENT_TRUE='#'
17632 BTPCLIENT_FALSE=
17633 fi
17634
17635
17636 # Check whether --enable-external_ell was given.
17637 if test ${enable_external_ell+y}
17638 then :
17639 enableval=$enable_external_ell; enable_external_ell=${enableval}
17640 fi
17641
17642 if (test "${enable_external_ell}" = "yes"); then
17643
17644 pkg_failed=no
17645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ell >= 0.39" >&5
17646 printf %s "checking for ell >= 0.39... " >&6; }
17647
17648 if test -n "$ELL_CFLAGS"; then
17649 pkg_cv_ELL_CFLAGS="$ELL_CFLAGS"
17650 elif test -n "$PKG_CONFIG"; then
17651 if test -n "$PKG_CONFIG" && \
17652 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ell >= 0.39\""; } >&5
17653 ($PKG_CONFIG --exists --print-errors "ell >= 0.39") 2>&5
17654 ac_status=$?
17655 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17656 test $ac_status = 0; }; then
17657 pkg_cv_ELL_CFLAGS=`$PKG_CONFIG --cflags "ell >= 0.39" 2>/dev/null`
17658 test "x$?" != "x0" && pkg_failed=yes
17659 else
17660 pkg_failed=yes
17661 fi
17662 else
17663 pkg_failed=untried
17664 fi
17665 if test -n "$ELL_LIBS"; then
17666 pkg_cv_ELL_LIBS="$ELL_LIBS"
17667 elif test -n "$PKG_CONFIG"; then
17668 if test -n "$PKG_CONFIG" && \
17669 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ell >= 0.39\""; } >&5
17670 ($PKG_CONFIG --exists --print-errors "ell >= 0.39") 2>&5
17671 ac_status=$?
17672 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17673 test $ac_status = 0; }; then
17674 pkg_cv_ELL_LIBS=`$PKG_CONFIG --libs "ell >= 0.39" 2>/dev/null`
17675 test "x$?" != "x0" && pkg_failed=yes
17676 else
17677 pkg_failed=yes
17678 fi
17679 else
17680 pkg_failed=untried
17681 fi
17682
17683
17684
17685 if test $pkg_failed = yes; then
17686 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17687 printf '%s\n' "no" >&6; }
17688
17689 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17690 _pkg_short_errors_supported=yes
17691 else
17692 _pkg_short_errors_supported=no
17693 fi
17694 if test $_pkg_short_errors_supported = yes; then
17695 ELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ell >= 0.39" 2>&1`
17696 else
17697 ELL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ell >= 0.39" 2>&1`
17698 fi
17699 # Put the nasty error message in config.log where it belongs
17700 echo "$ELL_PKG_ERRORS" >&5
17701
17702 as_fn_error $? "Package requirements (ell >= 0.39) were not met:
17703
17704 $ELL_PKG_ERRORS
17705
17706 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17707 installed software in a non-standard prefix.
17708
17709 Alternatively, you may set the environment variables ELL_CFLAGS
17710 and ELL_LIBS to avoid the need to call pkg-config.
17711 See the pkg-config man page for more details." "$LINENO" 5
17712 elif test $pkg_failed = untried; then
17713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714 printf '%s\n' "no" >&6; }
17715 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17716 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
17717 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17718 is in your PATH or set the PKG_CONFIG environment variable to the full
17719 path to pkg-config.
17720
17721 Alternatively, you may set the environment variables ELL_CFLAGS
17722 and ELL_LIBS to avoid the need to call pkg-config.
17723 See the pkg-config man page for more details.
17724
17725 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17726 See 'config.log' for more details" "$LINENO" 5; }
17727 else
17728 ELL_CFLAGS=$pkg_cv_ELL_CFLAGS
17729 ELL_LIBS=$pkg_cv_ELL_LIBS
17730 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17731 printf '%s\n' "yes" >&6; }
17732
17733 fi
17734 fi
17735 if (test "${enable_external_ell}" != "yes" &&
17736 (test "${enable_btpclient}" = "yes" || test "${enable_mesh}" = "yes")); then
17737 if (test ! -f ${srcdir}/ell/ell.h) &&
17738 (test ! -f ${srcdir}/../ell/ell/ell.h); then
17739 as_fn_error $? "ELL source is required or use --enable-external-ell" "$LINENO" 5
17740 fi
17741 fi
17742 if test "${enable_external_ell}" = "yes" ||
17743 (test "${enable_btpclient}" != "yes" &&
17744 test "${enable_mesh}" != "yes"); then
17745 EXTERNAL_ELL_TRUE=
17746 EXTERNAL_ELL_FALSE='#'
17747 else
17748 EXTERNAL_ELL_TRUE='#'
17749 EXTERNAL_ELL_FALSE=
17750 fi
17751
17752 if test "${enable_btpclient}" = "yes" ||
17753 test "${enable_mesh}" = "yes"; then
17754 LIBSHARED_ELL_TRUE=
17755 LIBSHARED_ELL_FALSE='#'
17756 else
17757 LIBSHARED_ELL_TRUE='#'
17758 LIBSHARED_ELL_FALSE=
17759 fi
17760
17761
17762 # Check whether --enable-client was given.
17763 if test ${enable_client+y}
17764 then :
17765 enableval=$enable_client; enable_client=${enableval}
17766 fi
17767
17768 if test "${enable_client}" != "no"; then
17769 CLIENT_TRUE=
17770 CLIENT_FALSE='#'
17771 else
17772 CLIENT_TRUE='#'
17773 CLIENT_FALSE=
17774 fi
17775
17776
17777 if (test "${enable_client}" != "no" || test "${enable_mesh}" = "yes"); then
17778 for ac_header in readline/readline.h
17779 do :
17780 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
17781 if test "x$ac_cv_header_readline_readline_h" = xyes
17782 then :
17783 printf '%s\n' "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
17784 enable_readline=yes
17785 else case e in #(
17786 e) as_fn_error $? "readline header files are required" "$LINENO" 5 ;;
17787 esac
17788 fi
17789
17790 done
17791 fi
17792 if test "${enable_readline}" = "yes"; then
17793 READLINE_TRUE=
17794 READLINE_FALSE='#'
17795 else
17796 READLINE_TRUE='#'
17797 READLINE_FALSE=
17798 fi
17799
17800
17801 # Check whether --enable-systemd was given.
17802 if test ${enable_systemd+y}
17803 then :
17804 enableval=$enable_systemd; enable_systemd=${enableval}
17805 fi
17806
17807 if test "${enable_systemd}" != "no"; then
17808 SYSTEMD_TRUE=
17809 SYSTEMD_FALSE='#'
17810 else
17811 SYSTEMD_TRUE='#'
17812 SYSTEMD_FALSE=
17813 fi
17814
17815
17816
17817 # Check whether --with-systemdsystemunitdir was given.
17818 if test ${with_systemdsystemunitdir+y}
17819 then :
17820 withval=$with_systemdsystemunitdir; path_systemunitdir=${withval}
17821 fi
17822
17823 if (test "${enable_systemd}" != "no" && test -z "${path_systemunitdir}"); then
17824 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking systemd system unit dir" >&5
17825 printf %s "checking systemd system unit dir... " >&6; }
17826 path_systemunitdir="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
17827 if (test -z "${path_systemunitdir}"); then
17828 as_fn_error $? "systemd system unit directory is required" "$LINENO" 5
17829 fi
17830 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${path_systemunitdir}" >&5
17831 printf '%s\n' "${path_systemunitdir}" >&6; }
17832 fi
17833 SYSTEMD_SYSTEMUNITDIR=${path_systemunitdir}
17834
17835
17836
17837 # Check whether --with-systemduserunitdir was given.
17838 if test ${with_systemduserunitdir+y}
17839 then :
17840 withval=$with_systemduserunitdir; path_userunitdir=${withval}
17841 fi
17842
17843 if (test "${enable_systemd}" != "no" && test -z "${path_userunitdir}"); then
17844 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking systemd user unit dir" >&5
17845 printf %s "checking systemd user unit dir... " >&6; }
17846 path_userunitdir="`$PKG_CONFIG --variable=systemduserunitdir systemd`"
17847 if (test -z "${path_userunitdir}"); then
17848 as_fn_error $? "systemd user unit directory is required" "$LINENO" 5
17849 fi
17850 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${path_userunitdir}" >&5
17851 printf '%s\n' "${path_userunitdir}" >&6; }
17852 fi
17853 SYSTEMD_USERUNITDIR=${path_userunitdir}
17854
17855
17856 # Check whether --enable-datafiles was given.
17857 if test ${enable_datafiles+y}
17858 then :
17859 enableval=$enable_datafiles; enable_datafiles=${enableval}
17860 fi
17861
17862 if test "${enable_datafiles}" != "no"; then
17863 DATAFILES_TRUE=
17864 DATAFILES_FALSE='#'
17865 else
17866 DATAFILES_TRUE='#'
17867 DATAFILES_FALSE=
17868 fi
17869
17870
17871 # Check whether --enable-manpages was given.
17872 if test ${enable_manpages+y}
17873 then :
17874 enableval=$enable_manpages; enable_manpages=${enableval}
17875 fi
17876
17877 if (test "${enable_manpages}" != "no"); then
17878 for ac_prog in rst2man rst2man.py
17879 do
17880 # Extract the first word of "$ac_prog", so it can be a program name with args.
17881 set dummy $ac_prog; ac_word=$2
17882 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17883 printf %s "checking for $ac_word... " >&6; }
17884 if test ${ac_cv_prog_RST2MAN+y}
17885 then :
17886 printf %s "(cached) " >&6
17887 else case e in #(
17888 e) if test -n "$RST2MAN"; then
17889 ac_cv_prog_RST2MAN="$RST2MAN" # Let the user override the test.
17890 else
17891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17892 for as_dir in $PATH
17893 do
17894 IFS=$as_save_IFS
17895 case $as_dir in #(((
17896 '') as_dir=./ ;;
17897 */) ;;
17898 *) as_dir=$as_dir/ ;;
17899 esac
17900 for ac_exec_ext in '' $ac_executable_extensions; do
17901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17902 ac_cv_prog_RST2MAN="$ac_prog"
17903 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17904 break 2
17905 fi
17906 done
17907 done
17908 IFS=$as_save_IFS
17909
17910 fi ;;
17911 esac
17912 fi
17913 RST2MAN=$ac_cv_prog_RST2MAN
17914 if test -n "$RST2MAN"; then
17915 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
17916 printf '%s\n' "$RST2MAN" >&6; }
17917 else
17918 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17919 printf '%s\n' "no" >&6; }
17920 fi
17921
17922
17923 test -n "$RST2MAN" && break
17924 done
17925 test -n "$RST2MAN" || RST2MAN=""no""
17926
17927 if (test "${RST2MAN}" = "no" ); then
17928 as_fn_error $? "rst2man is required" "$LINENO" 5
17929 fi
17930 fi
17931 if test "${enable_manpages}" != "no"; then
17932 MANPAGES_TRUE=
17933 MANPAGES_FALSE='#'
17934 else
17935 MANPAGES_TRUE='#'
17936 MANPAGES_FALSE=
17937 fi
17938
17939 if test "${enable_manpages}" != "no" &&
17940 test "${RST2MAN}" != "no"; then
17941 RUN_RST2MAN_TRUE=
17942 RUN_RST2MAN_FALSE='#'
17943 else
17944 RUN_RST2MAN_TRUE='#'
17945 RUN_RST2MAN_FALSE=
17946 fi
17947
17948
17949 # Check whether --enable-testing was given.
17950 if test ${enable_testing+y}
17951 then :
17952 enableval=$enable_testing; enable_testing=${enableval}
17953 fi
17954
17955 if test "${enable_testing}" = "yes"; then
17956 TESTING_TRUE=
17957 TESTING_FALSE='#'
17958 else
17959 TESTING_TRUE='#'
17960 TESTING_FALSE=
17961 fi
17962
17963
17964 if (test "${enable_testing}" = "yes"); then
17965 ac_fn_check_decl "$LINENO" "SOF_TIMESTAMPING_TX_COMPLETION" "ac_cv_have_decl_SOF_TIMESTAMPING_TX_COMPLETION" "#include <time.h>
17966 #include <linux/errqueue.h>
17967 #include <linux/net_tstamp.h>
17968 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
17969 if test "x$ac_cv_have_decl_SOF_TIMESTAMPING_TX_COMPLETION" = xyes
17970 then :
17971 ac_have_decl=1
17972 else case e in #(
17973 e) ac_have_decl=0 ;;
17974 esac
17975 fi
17976 printf '%s\n' "#define HAVE_DECL_SOF_TIMESTAMPING_TX_COMPLETION $ac_have_decl" >>confdefs.h
17977 ac_fn_check_decl "$LINENO" "SCM_TSTAMP_COMPLETION" "ac_cv_have_decl_SCM_TSTAMP_COMPLETION" "#include <time.h>
17978 #include <linux/errqueue.h>
17979 #include <linux/net_tstamp.h>
17980 " "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
17981 if test "x$ac_cv_have_decl_SCM_TSTAMP_COMPLETION" = xyes
17982 then :
17983 ac_have_decl=1
17984 else case e in #(
17985 e) ac_have_decl=0 ;;
17986 esac
17987 fi
17988 printf '%s\n' "#define HAVE_DECL_SCM_TSTAMP_COMPLETION $ac_have_decl" >>confdefs.h
17989
17990 fi
17991
17992 # Check whether --enable-experimental was given.
17993 if test ${enable_experimental+y}
17994 then :
17995 enableval=$enable_experimental; enable_experimental=${enableval}
17996 fi
17997
17998 if test "${enable_experimental}" = "yes"; then
17999 EXPERIMENTAL_TRUE=
18000 EXPERIMENTAL_FALSE='#'
18001 else
18002 EXPERIMENTAL_TRUE='#'
18003 EXPERIMENTAL_FALSE=
18004 fi
18005
18006
18007 # Check whether --enable-deprecated was given.
18008 if test ${enable_deprecated+y}
18009 then :
18010 enableval=$enable_deprecated; enable_deprecated=${enableval}
18011 fi
18012
18013 if test "${enable_deprecated}" = "yes"; then
18014 DEPRECATED_TRUE=
18015 DEPRECATED_FALSE='#'
18016 else
18017 DEPRECATED_TRUE='#'
18018 DEPRECATED_FALSE=
18019 fi
18020
18021
18022 # Check whether --enable-external-plugins was given.
18023 if test ${enable_external_plugins+y}
18024 then :
18025 enableval=$enable_external_plugins; enable_external_plugins=${enableval}
18026 fi
18027
18028 if test "${enable_external_plugins}" = "yes"; then
18029 EXTERNAL_PLUGINS_TRUE=
18030 EXTERNAL_PLUGINS_FALSE='#'
18031 else
18032 EXTERNAL_PLUGINS_TRUE='#'
18033 EXTERNAL_PLUGINS_FALSE=
18034 fi
18035
18036 if (test "${enable_external_plugins}" = "yes"); then
18037
18038 printf '%s\n' "#define EXTERNAL_PLUGINS 1" >>confdefs.h
18039
18040 else
18041
18042 printf '%s\n' "#define EXTERNAL_PLUGINS 0" >>confdefs.h
18043
18044 fi
18045
18046 # Check whether --enable-sixaxis was given.
18047 if test ${enable_sixaxis+y}
18048 then :
18049 enableval=$enable_sixaxis; enable_sixaxis=${enableval}
18050 fi
18051
18052 if test "${enable_sixaxis}" = "yes" &&
18053 test "${enable_udev}" != "no"; then
18054 SIXAXIS_TRUE=
18055 SIXAXIS_FALSE='#'
18056 else
18057 SIXAXIS_TRUE='#'
18058 SIXAXIS_FALSE=
18059 fi
18060
18061
18062 # Check whether --enable-hid2hci was given.
18063 if test ${enable_hid2hci+y}
18064 then :
18065 enableval=$enable_hid2hci; enable_hid2hci=${enableval}
18066 fi
18067
18068 if test "${enable_hid2hci}" = "yes" &&
18069 test "${enable_udev}" != "no"; then
18070 HID2HCI_TRUE=
18071 HID2HCI_FALSE='#'
18072 else
18073 HID2HCI_TRUE='#'
18074 HID2HCI_FALSE=
18075 fi
18076
18077
18078 # Check whether --enable-logger was given.
18079 if test ${enable_logger+y}
18080 then :
18081 enableval=$enable_logger; enable_logger=${enableval}
18082 fi
18083
18084 if test "${enable_logger}" = "yes"; then
18085 LOGGER_TRUE=
18086 LOGGER_FALSE='#'
18087 else
18088 LOGGER_TRUE='#'
18089 LOGGER_FALSE=
18090 fi
18091
18092
18093 # Check whether --enable-admin was given.
18094 if test ${enable_admin+y}
18095 then :
18096 enableval=$enable_admin; enable_admin=${enableval}
18097 fi
18098
18099 if test "${enable_admin}" = "yes"; then
18100 ADMIN_TRUE=
18101 ADMIN_FALSE='#'
18102 else
18103 ADMIN_TRUE='#'
18104 ADMIN_FALSE=
18105 fi
18106
18107
18108 if (test "${prefix}" = "NONE"); then
18109 if (test "$localstatedir" = '${prefix}/var'); then
18110 localstatedir='/var'
18111
18112 fi
18113
18114 prefix="${ac_default_prefix}"
18115 fi
18116
18117 if (test "${exec_prefix}" = "NONE"); then
18118 # exec_prefix defaults to prefix, although our manual handling of the
18119 # latter (above) confuses autoconf. Manually set the exec_prefix.
18120 exec_prefix="${prefix}"
18121 fi
18122
18123 # Expand any variables containing relative references like ${prefix} and co.
18124 #
18125 # Otherwise we'll end up with literal references in the final binaries or
18126 # manuals, which is not something we really want.
18127 #
18128 pkgbindir="${bindir}"
18129 if (test "$bindir" = '${exec_prefix}/bin'); then
18130 pkgbindir="${exec_prefix}/bin"
18131 else
18132 pkgbindir="${bindir}"
18133 fi
18134 PKGBINDIR="${pkgbindir}"
18135
18136
18137 if (test "$libexecdir" = '${exec_prefix}/libexec'); then
18138 pkglibexecdir="${exec_prefix}/libexec/bluetooth"
18139 else
18140 pkglibexecdir="${libexecdir}/bluetooth"
18141 fi
18142 PKGLIBEXECDIR="${pkglibexecdir}"
18143
18144
18145 if (test "$localstatedir" = '${prefix}/var'); then
18146 storagedir="${prefix}/var/lib/bluetooth"
18147 else
18148 storagedir="${localstatedir}/lib/bluetooth"
18149 fi
18150
18151 cat >>confdefs.h <<_ACEOF
18152 #define STORAGEDIR "${storagedir}"
18153 _ACEOF
18154
18155
18156 if (test "$sysconfdir" = '${prefix}/etc'); then
18157 configdir="${prefix}/etc/bluetooth"
18158 else
18159 configdir="${sysconfdir}/bluetooth"
18160 fi
18161
18162 cat >>confdefs.h <<_ACEOF
18163 #define CONFIGDIR "${configdir}"
18164 _ACEOF
18165
18166 CONFIGDIR="${configdir}"
18167
18168
18169
18170 cat >>confdefs.h <<_ACEOF
18171 #define MESH_STORAGEDIR "${storagedir}/mesh"
18172 _ACEOF
18173
18174 MESH_STORAGEDIR="${storagedir}/mesh"
18175
18176
18177
18178 # Check whether --with-phonebook was given.
18179 if test ${with_phonebook+y}
18180 then :
18181 withval=$with_phonebook; plugin_phonebook=${withval}
18182 fi
18183
18184 if (test -z "${plugin_phonebook}"); then
18185 plugin_phonebook=dummy
18186 fi
18187
18188 if (test "${plugin_phonebook}" = "ebook"); then
18189
18190 pkg_failed=no
18191 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libebook-1.2 >= 3.3" >&5
18192 printf %s "checking for libebook-1.2 >= 3.3... " >&6; }
18193
18194 if test -n "$LIBEBOOK_CFLAGS"; then
18195 pkg_cv_LIBEBOOK_CFLAGS="$LIBEBOOK_CFLAGS"
18196 elif test -n "$PKG_CONFIG"; then
18197 if test -n "$PKG_CONFIG" && \
18198 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
18199 ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
18200 ac_status=$?
18201 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18202 test $ac_status = 0; }; then
18203 pkg_cv_LIBEBOOK_CFLAGS=`$PKG_CONFIG --cflags "libebook-1.2 >= 3.3" 2>/dev/null`
18204 test "x$?" != "x0" && pkg_failed=yes
18205 else
18206 pkg_failed=yes
18207 fi
18208 else
18209 pkg_failed=untried
18210 fi
18211 if test -n "$LIBEBOOK_LIBS"; then
18212 pkg_cv_LIBEBOOK_LIBS="$LIBEBOOK_LIBS"
18213 elif test -n "$PKG_CONFIG"; then
18214 if test -n "$PKG_CONFIG" && \
18215 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libebook-1.2 >= 3.3\""; } >&5
18216 ($PKG_CONFIG --exists --print-errors "libebook-1.2 >= 3.3") 2>&5
18217 ac_status=$?
18218 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18219 test $ac_status = 0; }; then
18220 pkg_cv_LIBEBOOK_LIBS=`$PKG_CONFIG --libs "libebook-1.2 >= 3.3" 2>/dev/null`
18221 test "x$?" != "x0" && pkg_failed=yes
18222 else
18223 pkg_failed=yes
18224 fi
18225 else
18226 pkg_failed=untried
18227 fi
18228
18229
18230
18231 if test $pkg_failed = yes; then
18232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
18233 printf '%s\n' "no" >&6; }
18234
18235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18236 _pkg_short_errors_supported=yes
18237 else
18238 _pkg_short_errors_supported=no
18239 fi
18240 if test $_pkg_short_errors_supported = yes; then
18241 LIBEBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libebook-1.2 >= 3.3" 2>&1`
18242 else
18243 LIBEBOOK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libebook-1.2 >= 3.3" 2>&1`
18244 fi
18245 # Put the nasty error message in config.log where it belongs
18246 echo "$LIBEBOOK_PKG_ERRORS" >&5
18247
18248 as_fn_error $? "Package requirements (libebook-1.2 >= 3.3) were not met:
18249
18250 $LIBEBOOK_PKG_ERRORS
18251
18252 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18253 installed software in a non-standard prefix.
18254
18255 Alternatively, you may set the environment variables LIBEBOOK_CFLAGS
18256 and LIBEBOOK_LIBS to avoid the need to call pkg-config.
18257 See the pkg-config man page for more details." "$LINENO" 5
18258 elif test $pkg_failed = untried; then
18259 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
18260 printf '%s\n' "no" >&6; }
18261 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18262 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
18263 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18264 is in your PATH or set the PKG_CONFIG environment variable to the full
18265 path to pkg-config.
18266
18267 Alternatively, you may set the environment variables LIBEBOOK_CFLAGS
18268 and LIBEBOOK_LIBS to avoid the need to call pkg-config.
18269 See the pkg-config man page for more details.
18270
18271 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18272 See 'config.log' for more details" "$LINENO" 5; }
18273 else
18274 LIBEBOOK_CFLAGS=$pkg_cv_LIBEBOOK_CFLAGS
18275 LIBEBOOK_LIBS=$pkg_cv_LIBEBOOK_LIBS
18276 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18277 printf '%s\n' "yes" >&6; }
18278
18279 fi
18280
18281 pkg_failed=no
18282 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libedataserver-1.2 >= 3.3" >&5
18283 printf %s "checking for libedataserver-1.2 >= 3.3... " >&6; }
18284
18285 if test -n "$LIBEDATESERVER_CFLAGS"; then
18286 pkg_cv_LIBEDATESERVER_CFLAGS="$LIBEDATESERVER_CFLAGS"
18287 elif test -n "$PKG_CONFIG"; then
18288 if test -n "$PKG_CONFIG" && \
18289 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2 >= 3.3\""; } >&5
18290 ($PKG_CONFIG --exists --print-errors "libedataserver-1.2 >= 3.3") 2>&5
18291 ac_status=$?
18292 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18293 test $ac_status = 0; }; then
18294 pkg_cv_LIBEDATESERVER_CFLAGS=`$PKG_CONFIG --cflags "libedataserver-1.2 >= 3.3" 2>/dev/null`
18295 test "x$?" != "x0" && pkg_failed=yes
18296 else
18297 pkg_failed=yes
18298 fi
18299 else
18300 pkg_failed=untried
18301 fi
18302 if test -n "$LIBEDATESERVER_LIBS"; then
18303 pkg_cv_LIBEDATESERVER_LIBS="$LIBEDATESERVER_LIBS"
18304 elif test -n "$PKG_CONFIG"; then
18305 if test -n "$PKG_CONFIG" && \
18306 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedataserver-1.2 >= 3.3\""; } >&5
18307 ($PKG_CONFIG --exists --print-errors "libedataserver-1.2 >= 3.3") 2>&5
18308 ac_status=$?
18309 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18310 test $ac_status = 0; }; then
18311 pkg_cv_LIBEDATESERVER_LIBS=`$PKG_CONFIG --libs "libedataserver-1.2 >= 3.3" 2>/dev/null`
18312 test "x$?" != "x0" && pkg_failed=yes
18313 else
18314 pkg_failed=yes
18315 fi
18316 else
18317 pkg_failed=untried
18318 fi
18319
18320
18321
18322 if test $pkg_failed = yes; then
18323 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
18324 printf '%s\n' "no" >&6; }
18325
18326 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18327 _pkg_short_errors_supported=yes
18328 else
18329 _pkg_short_errors_supported=no
18330 fi
18331 if test $_pkg_short_errors_supported = yes; then
18332 LIBEDATESERVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedataserver-1.2 >= 3.3" 2>&1`
18333 else
18334 LIBEDATESERVER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedataserver-1.2 >= 3.3" 2>&1`
18335 fi
18336 # Put the nasty error message in config.log where it belongs
18337 echo "$LIBEDATESERVER_PKG_ERRORS" >&5
18338
18339 as_fn_error $? "Package requirements (libedataserver-1.2 >= 3.3) were not met:
18340
18341 $LIBEDATESERVER_PKG_ERRORS
18342
18343 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18344 installed software in a non-standard prefix.
18345
18346 Alternatively, you may set the environment variables LIBEDATESERVER_CFLAGS
18347 and LIBEDATESERVER_LIBS to avoid the need to call pkg-config.
18348 See the pkg-config man page for more details." "$LINENO" 5
18349 elif test $pkg_failed = untried; then
18350 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
18351 printf '%s\n' "no" >&6; }
18352 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18353 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
18354 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18355 is in your PATH or set the PKG_CONFIG environment variable to the full
18356 path to pkg-config.
18357
18358 Alternatively, you may set the environment variables LIBEDATESERVER_CFLAGS
18359 and LIBEDATESERVER_LIBS to avoid the need to call pkg-config.
18360 See the pkg-config man page for more details.
18361
18362 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18363 See 'config.log' for more details" "$LINENO" 5; }
18364 else
18365 LIBEDATESERVER_CFLAGS=$pkg_cv_LIBEDATESERVER_CFLAGS
18366 LIBEDATESERVER_LIBS=$pkg_cv_LIBEDATESERVER_LIBS
18367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18368 printf '%s\n' "yes" >&6; }
18369
18370 fi
18371 fi
18372 PLUGIN_PHONEBOOK=${plugin_phonebook}
18373
18374
18375 ac_config_files="$ac_config_files lib/bluez.pc Makefile doc/bluetooth-meshd.rst mesh/bluetooth-mesh.service obexd/src/obex.service obexd/src/org.bluez.obex.service doc/bluetoothd.rst src/bluetooth.service tools/bluetooth-logger.service tools/mpris-proxy.service"
18376
18377 cat >confcache <<\_ACEOF
18378 # This file is a shell script that caches the results of configure
18379 # tests run on this system so they can be shared between configure
18380 # scripts and configure runs, see configure's option --config-cache.
18381 # It is not useful on other systems. If it contains results you don't
18382 # want to keep, you may remove or edit it.
18383 #
18384 # config.status only pays attention to the cache file if you give it
18385 # the --recheck option to rerun configure.
18386 #
18387 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
18388 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
18389 # following values.
18390
18391 _ACEOF
18392
18393 ac_cache_dump |
18394 sed '
18395 /^ac_cv_env_/b end
18396 t clear
18397 :clear
18398 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
18399 t end
18400 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18401 :end' >>confcache
18402 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18403 if test -w "$cache_file"; then
18404 if test "x$cache_file" != "x/dev/null"; then
18405 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18406 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
18407 if test ! -f "$cache_file" || test -h "$cache_file"; then
18408 cat confcache >"$cache_file"
18409 else
18410 case $cache_file in #(
18411 */* | ?:*)
18412 mv -f confcache "$cache_file"$$ &&
18413 mv -f "$cache_file"$$ "$cache_file" ;; #(
18414 *)
18415 mv -f confcache "$cache_file" ;;
18416 esac
18417 fi
18418 fi
18419 else
18420 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18421 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
18422 fi
18423 fi
18424 rm -f confcache
18425
18426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18427 # Let make expand exec_prefix.
18428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18429
18430 DEFS=-DHAVE_CONFIG_H
18431
18432 ac_libobjs=
18433 ac_ltlibobjs=
18434 U=
18435 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18436 # 1. Remove the extension, and $U if already installed.
18437 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18438 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
18439 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18440 # will be set to the directory where LIBOBJS objects are built.
18441 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18442 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18443 done
18444 LIBOBJS=$ac_libobjs
18445
18446 LTLIBOBJS=$ac_ltlibobjs
18447
18448
18449 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18450 printf %s "checking that generated files are newer than configure... " >&6; }
18451 if test -n "$am_sleep_pid"; then
18452 # Hide warnings about reused PIDs.
18453 wait $am_sleep_pid 2>/dev/null
18454 fi
18455 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
18456 printf '%s\n' "done" >&6; }
18457 case $enable_silent_rules in # (((
18458 yes) AM_DEFAULT_VERBOSITY=0;;
18459 no) AM_DEFAULT_VERBOSITY=1;;
18460 esac
18461 if test $am_cv_make_support_nested_variables = yes; then
18462 AM_V='$(V)'
18463 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18464 else
18465 AM_V=$AM_DEFAULT_VERBOSITY
18466 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18467 fi
18468
18469 if test -n "$EXEEXT"; then
18470 am__EXEEXT_TRUE=
18471 am__EXEEXT_FALSE='#'
18472 else
18473 am__EXEEXT_TRUE='#'
18474 am__EXEEXT_FALSE=
18475 fi
18476
18477 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18478 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18480 fi
18481 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18482 as_fn_error $? "conditional \"AMDEP\" was never defined.
18483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18484 fi
18485 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18486 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18488 fi
18489 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18490 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18492 fi
18493 if test -z "${COVERAGE_TRUE}" && test -z "${COVERAGE_FALSE}"; then
18494 as_fn_error $? "conditional \"COVERAGE\" was never defined.
18495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18496 fi
18497 if test -z "${DBUS_RUN_SESSION_TRUE}" && test -z "${DBUS_RUN_SESSION_FALSE}"; then
18498 as_fn_error $? "conditional \"DBUS_RUN_SESSION\" was never defined.
18499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18500 fi
18501 if test -z "${VALGRIND_TRUE}" && test -z "${VALGRIND_FALSE}"; then
18502 as_fn_error $? "conditional \"VALGRIND\" was never defined.
18503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18504 fi
18505 if test -z "${ZSH_COMPLETIONS_TRUE}" && test -z "${ZSH_COMPLETIONS_FALSE}"; then
18506 as_fn_error $? "conditional \"ZSH_COMPLETIONS\" was never defined.
18507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18508 fi
18509 if test -z "${LIBRARY_TRUE}" && test -z "${LIBRARY_FALSE}"; then
18510 as_fn_error $? "conditional \"LIBRARY\" was never defined.
18511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18512 fi
18513 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
18514 as_fn_error $? "conditional \"TEST\" was never defined.
18515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18516 fi
18517 if test -z "${NFC_TRUE}" && test -z "${NFC_FALSE}"; then
18518 as_fn_error $? "conditional \"NFC\" was never defined.
18519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18520 fi
18521 if test -z "${A2DP_TRUE}" && test -z "${A2DP_FALSE}"; then
18522 as_fn_error $? "conditional \"A2DP\" was never defined.
18523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18524 fi
18525 if test -z "${AVRCP_TRUE}" && test -z "${AVRCP_FALSE}"; then
18526 as_fn_error $? "conditional \"AVRCP\" was never defined.
18527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18528 fi
18529 if test -z "${NETWORK_TRUE}" && test -z "${NETWORK_FALSE}"; then
18530 as_fn_error $? "conditional \"NETWORK\" was never defined.
18531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18532 fi
18533 if test -z "${HID_TRUE}" && test -z "${HID_FALSE}"; then
18534 as_fn_error $? "conditional \"HID\" was never defined.
18535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18536 fi
18537 if test -z "${HOG_TRUE}" && test -z "${HOG_FALSE}"; then
18538 as_fn_error $? "conditional \"HOG\" was never defined.
18539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18540 fi
18541 if test -z "${BAP_TRUE}" && test -z "${BAP_FALSE}"; then
18542 as_fn_error $? "conditional \"BAP\" was never defined.
18543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18544 fi
18545 if test -z "${BASS_TRUE}" && test -z "${BASS_FALSE}"; then
18546 as_fn_error $? "conditional \"BASS\" was never defined.
18547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18548 fi
18549 if test -z "${MCP_TRUE}" && test -z "${MCP_FALSE}"; then
18550 as_fn_error $? "conditional \"MCP\" was never defined.
18551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18552 fi
18553 if test -z "${CCP_TRUE}" && test -z "${CCP_FALSE}"; then
18554 as_fn_error $? "conditional \"CCP\" was never defined.
18555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18556 fi
18557 if test -z "${VCP_TRUE}" && test -z "${VCP_FALSE}"; then
18558 as_fn_error $? "conditional \"VCP\" was never defined.
18559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18560 fi
18561 if test -z "${MICP_TRUE}" && test -z "${MICP_FALSE}"; then
18562 as_fn_error $? "conditional \"MICP\" was never defined.
18563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18564 fi
18565 if test -z "${CSIP_TRUE}" && test -z "${CSIP_FALSE}"; then
18566 as_fn_error $? "conditional \"CSIP\" was never defined.
18567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18568 fi
18569 if test -z "${TMAP_TRUE}" && test -z "${TMAP_FALSE}"; then
18570 as_fn_error $? "conditional \"TMAP\" was never defined.
18571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18572 fi
18573 if test -z "${GMAP_TRUE}" && test -z "${GMAP_FALSE}"; then
18574 as_fn_error $? "conditional \"GMAP\" was never defined.
18575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18576 fi
18577 if test -z "${ASHA_TRUE}" && test -z "${ASHA_FALSE}"; then
18578 as_fn_error $? "conditional \"ASHA\" was never defined.
18579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18580 fi
18581 if test -z "${HFP_TRUE}" && test -z "${HFP_FALSE}"; then
18582 as_fn_error $? "conditional \"HFP\" was never defined.
18583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18584 fi
18585 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
18586 as_fn_error $? "conditional \"TOOLS\" was never defined.
18587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18588 fi
18589 if test -z "${MONITOR_TRUE}" && test -z "${MONITOR_FALSE}"; then
18590 as_fn_error $? "conditional \"MONITOR\" was never defined.
18591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18592 fi
18593 if test -z "${CUPS_TRUE}" && test -z "${CUPS_FALSE}"; then
18594 as_fn_error $? "conditional \"CUPS\" was never defined.
18595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18596 fi
18597 if test -z "${CUPS_SERVERBIN_TRUE}" && test -z "${CUPS_SERVERBIN_FALSE}"; then
18598 as_fn_error $? "conditional \"CUPS_SERVERBIN\" was never defined.
18599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18600 fi
18601 if test -z "${MESH_TRUE}" && test -z "${MESH_FALSE}"; then
18602 as_fn_error $? "conditional \"MESH\" was never defined.
18603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18604 fi
18605 if test -z "${MIDI_TRUE}" && test -z "${MIDI_FALSE}"; then
18606 as_fn_error $? "conditional \"MIDI\" was never defined.
18607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18608 fi
18609 if test -z "${OBEX_TRUE}" && test -z "${OBEX_FALSE}"; then
18610 as_fn_error $? "conditional \"OBEX\" was never defined.
18611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18612 fi
18613 if test -z "${BTPCLIENT_TRUE}" && test -z "${BTPCLIENT_FALSE}"; then
18614 as_fn_error $? "conditional \"BTPCLIENT\" was never defined.
18615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18616 fi
18617 if test -z "${EXTERNAL_ELL_TRUE}" && test -z "${EXTERNAL_ELL_FALSE}"; then
18618 as_fn_error $? "conditional \"EXTERNAL_ELL\" was never defined.
18619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18620 fi
18621 if test -z "${LIBSHARED_ELL_TRUE}" && test -z "${LIBSHARED_ELL_FALSE}"; then
18622 as_fn_error $? "conditional \"LIBSHARED_ELL\" was never defined.
18623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18624 fi
18625 if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
18626 as_fn_error $? "conditional \"CLIENT\" was never defined.
18627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18628 fi
18629 if test -z "${READLINE_TRUE}" && test -z "${READLINE_FALSE}"; then
18630 as_fn_error $? "conditional \"READLINE\" was never defined.
18631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18632 fi
18633 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
18634 as_fn_error $? "conditional \"SYSTEMD\" was never defined.
18635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18636 fi
18637 if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
18638 as_fn_error $? "conditional \"DATAFILES\" was never defined.
18639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18640 fi
18641 if test -z "${MANPAGES_TRUE}" && test -z "${MANPAGES_FALSE}"; then
18642 as_fn_error $? "conditional \"MANPAGES\" was never defined.
18643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18644 fi
18645 if test -z "${RUN_RST2MAN_TRUE}" && test -z "${RUN_RST2MAN_FALSE}"; then
18646 as_fn_error $? "conditional \"RUN_RST2MAN\" was never defined.
18647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18648 fi
18649 if test -z "${TESTING_TRUE}" && test -z "${TESTING_FALSE}"; then
18650 as_fn_error $? "conditional \"TESTING\" was never defined.
18651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18652 fi
18653 if test -z "${EXPERIMENTAL_TRUE}" && test -z "${EXPERIMENTAL_FALSE}"; then
18654 as_fn_error $? "conditional \"EXPERIMENTAL\" was never defined.
18655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18656 fi
18657 if test -z "${DEPRECATED_TRUE}" && test -z "${DEPRECATED_FALSE}"; then
18658 as_fn_error $? "conditional \"DEPRECATED\" was never defined.
18659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18660 fi
18661 if test -z "${EXTERNAL_PLUGINS_TRUE}" && test -z "${EXTERNAL_PLUGINS_FALSE}"; then
18662 as_fn_error $? "conditional \"EXTERNAL_PLUGINS\" was never defined.
18663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18664 fi
18665 if test -z "${SIXAXIS_TRUE}" && test -z "${SIXAXIS_FALSE}"; then
18666 as_fn_error $? "conditional \"SIXAXIS\" was never defined.
18667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18668 fi
18669 if test -z "${HID2HCI_TRUE}" && test -z "${HID2HCI_FALSE}"; then
18670 as_fn_error $? "conditional \"HID2HCI\" was never defined.
18671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18672 fi
18673 if test -z "${LOGGER_TRUE}" && test -z "${LOGGER_FALSE}"; then
18674 as_fn_error $? "conditional \"LOGGER\" was never defined.
18675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18676 fi
18677 if test -z "${ADMIN_TRUE}" && test -z "${ADMIN_FALSE}"; then
18678 as_fn_error $? "conditional \"ADMIN\" was never defined.
18679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18680 fi
18681
18682 : "${CONFIG_STATUS=./config.status}"
18683 case $CONFIG_STATUS in #(
18684 -*) :
18685 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
18686 */*) :
18687 ;; #(
18688 *) :
18689 CONFIG_STATUS=./$CONFIG_STATUS ;;
18690 esac
18691
18692 ac_write_fail=0
18693 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
18694 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18695 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
18696 as_write_fail=0
18697 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
18698 #! $SHELL
18699 # Generated by $as_me.
18700 # Run this file to recreate the current configuration.
18701 # Compiler output produced by configure, useful for debugging
18702 # configure, is in config.log if it exists.
18703
18704 debug=false
18705 ac_cs_recheck=false
18706 ac_cs_silent=false
18707
18708 SHELL=\${CONFIG_SHELL-$SHELL}
18709 export SHELL
18710 _ASEOF
18711 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
18712 ## -------------------- ##
18713 ## M4sh Initialization. ##
18714 ## -------------------- ##
18715
18716 # Be more Bourne compatible
18717 DUALCASE=1; export DUALCASE # for MKS sh
18718 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
18719 then :
18720 emulate sh
18721 NULLCMD=:
18722 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18723 # contradicts POSIX and common usage. Disable this.
18724 alias -g '${1+"$@"}'='"$@"'
18725 setopt NO_GLOB_SUBST
18726 else case e in #(
18727 e) case `(set -o) 2>/dev/null` in #(
18728 *posix*) :
18729 set -o posix ;; #(
18730 *) :
18731 ;;
18732 esac ;;
18733 esac
18734 fi
18735
18736
18737
18738 # Reset variables that may have inherited troublesome values from
18739 # the environment.
18740
18741 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18742 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18743 # side effect of setting IFS to empty, thus disabling word splitting.)
18744 # Quoting is to prevent editors from complaining about space-tab.
18745 as_nl='
18746 '
18747 export as_nl
18748 IFS=" "" $as_nl"
18749
18750 PS1='$ '
18751 PS2='> '
18752 PS4='+ '
18753
18754 # Ensure predictable behavior from utilities with locale-dependent output.
18755 LC_ALL=C
18756 export LC_ALL
18757 LANGUAGE=C
18758 export LANGUAGE
18759
18760 # We cannot yet rely on "unset" to work, but we need these variables
18761 # to be unset--not just set to an empty or harmless value--now, to
18762 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
18763 # also avoids known problems related to "unset" and subshell syntax
18764 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
18765 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
18766 do eval test \${$as_var+y} \
18767 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18768 done
18769
18770 # Ensure that fds 0, 1, and 2 are open.
18771 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
18772 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
18773 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
18774
18775 # The user is always right.
18776 if ${PATH_SEPARATOR+false} :; then
18777 PATH_SEPARATOR=:
18778 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18779 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18780 PATH_SEPARATOR=';'
18781 }
18782 fi
18783
18784
18785 # Find who we are. Look in the path if we contain no directory separator.
18786 as_myself=
18787 case $0 in #((
18788 *[\\/]* ) as_myself=$0 ;;
18789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18790 for as_dir in $PATH
18791 do
18792 IFS=$as_save_IFS
18793 case $as_dir in #(((
18794 '') as_dir=./ ;;
18795 */) ;;
18796 *) as_dir=$as_dir/ ;;
18797 esac
18798 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
18799 done
18800 IFS=$as_save_IFS
18801
18802 ;;
18803 esac
18804 # We did not find ourselves, most probably we were run as 'sh COMMAND'
18805 # in which case we are not to be found in the path.
18806 if test "x$as_myself" = x; then
18807 as_myself=$0
18808 fi
18809 if test ! -f "$as_myself"; then
18810 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18811 exit 1
18812 fi
18813
18814
18815
18816 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18817 # ----------------------------------------
18818 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18819 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18820 # script with STATUS, using 1 if that was 0.
18821 as_fn_error ()
18822 {
18823 as_status=$1; test $as_status -eq 0 && as_status=1
18824 if test "$4"; then
18825 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18826 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18827 fi
18828 printf '%s\n' "$as_me: error: $2" >&2
18829 as_fn_exit $as_status
18830 } # as_fn_error
18831
18832
18833 # as_fn_set_status STATUS
18834 # -----------------------
18835 # Set $? to STATUS, without forking.
18836 as_fn_set_status ()
18837 {
18838 return $1
18839 } # as_fn_set_status
18840
18841 # as_fn_exit STATUS
18842 # -----------------
18843 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18844 as_fn_exit ()
18845 {
18846 set +e
18847 as_fn_set_status $1
18848 exit $1
18849 } # as_fn_exit
18850
18851 # as_fn_unset VAR
18852 # ---------------
18853 # Portably unset VAR.
18854 as_fn_unset ()
18855 {
18856 { eval $1=; unset $1;}
18857 }
18858 as_unset=as_fn_unset
18859
18860 # as_fn_append VAR VALUE
18861 # ----------------------
18862 # Append the text in VALUE to the end of the definition contained in VAR. Take
18863 # advantage of any shell optimizations that allow amortized linear growth over
18864 # repeated appends, instead of the typical quadratic growth present in naive
18865 # implementations.
18866 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18867 then :
18868 eval 'as_fn_append ()
18869 {
18870 eval $1+=\$2
18871 }'
18872 else case e in #(
18873 e) as_fn_append ()
18874 {
18875 eval $1=\$$1\$2
18876 } ;;
18877 esac
18878 fi # as_fn_append
18879
18880 # as_fn_arith ARG...
18881 # ------------------
18882 # Perform arithmetic evaluation on the ARGs, and store the result in the
18883 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18884 # must be portable across $(()) and expr.
18885 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18886 then :
18887 eval 'as_fn_arith ()
18888 {
18889 as_val=$(( $* ))
18890 }'
18891 else case e in #(
18892 e) as_fn_arith ()
18893 {
18894 as_val=`expr "$@" || test $? -eq 1`
18895 } ;;
18896 esac
18897 fi # as_fn_arith
18898
18899
18900 if expr a : '\(a\)' >/dev/null 2>&1 &&
18901 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18902 as_expr=expr
18903 else
18904 as_expr=false
18905 fi
18906
18907 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18908 as_basename=basename
18909 else
18910 as_basename=false
18911 fi
18912
18913 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18914 as_dirname=dirname
18915 else
18916 as_dirname=false
18917 fi
18918
18919 as_me=`$as_basename -- "$0" ||
18920 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18921 X"$0" : 'X\(//\)$' \| \
18922 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18923 printf '%s\n' X/"$0" |
18924 sed '/^.*\/\([^/][^/]*\)\/*$/{
18925 s//\1/
18926 q
18927 }
18928 /^X\/\(\/\/\)$/{
18929 s//\1/
18930 q
18931 }
18932 /^X\/\(\/\).*/{
18933 s//\1/
18934 q
18935 }
18936 s/.*/./; q'`
18937
18938 # Avoid depending upon Character Ranges.
18939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18942 as_cr_digits='0123456789'
18943 as_cr_alnum=$as_cr_Letters$as_cr_digits
18944
18945 rm -f conf$$ conf$$.exe conf$$.file
18946 if test -d conf$$.dir; then
18947 rm -f conf$$.dir/conf$$.file
18948 else
18949 rm -f conf$$.dir
18950 mkdir conf$$.dir 2>/dev/null
18951 fi
18952 if (echo >conf$$.file) 2>/dev/null; then
18953 if ln -s conf$$.file conf$$ 2>/dev/null; then
18954 as_ln_s='ln -s'
18955 # ... but there are two gotchas:
18956 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
18957 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
18958 # In both cases, we have to default to 'cp -pR'.
18959 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18960 as_ln_s='cp -pR'
18961 elif ln conf$$.file conf$$ 2>/dev/null; then
18962 as_ln_s=ln
18963 else
18964 as_ln_s='cp -pR'
18965 fi
18966 else
18967 as_ln_s='cp -pR'
18968 fi
18969 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18970 rmdir conf$$.dir 2>/dev/null
18971
18972
18973 # as_fn_mkdir_p
18974 # -------------
18975 # Create "$as_dir" as a directory, including parents if necessary.
18976 as_fn_mkdir_p ()
18977 {
18978
18979 case $as_dir in #(
18980 -*) as_dir=./$as_dir;;
18981 esac
18982 test -d "$as_dir" || eval $as_mkdir_p || {
18983 as_dirs=
18984 while :; do
18985 case $as_dir in #(
18986 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18987 *) as_qdir=$as_dir;;
18988 esac
18989 as_dirs="'$as_qdir' $as_dirs"
18990 as_dir=`$as_dirname -- "$as_dir" ||
18991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18992 X"$as_dir" : 'X\(//\)[^/]' \| \
18993 X"$as_dir" : 'X\(//\)$' \| \
18994 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18995 printf '%s\n' X"$as_dir" |
18996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18997 s//\1/
18998 q
18999 }
19000 /^X\(\/\/\)[^/].*/{
19001 s//\1/
19002 q
19003 }
19004 /^X\(\/\/\)$/{
19005 s//\1/
19006 q
19007 }
19008 /^X\(\/\).*/{
19009 s//\1/
19010 q
19011 }
19012 s/.*/./; q'`
19013 test -d "$as_dir" && break
19014 done
19015 test -z "$as_dirs" || eval "mkdir $as_dirs"
19016 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19017
19018
19019 } # as_fn_mkdir_p
19020 if mkdir -p . 2>/dev/null; then
19021 as_mkdir_p='mkdir -p "$as_dir"'
19022 else
19023 test -d ./-p && rmdir ./-p
19024 as_mkdir_p=false
19025 fi
19026
19027
19028 # as_fn_executable_p FILE
19029 # -----------------------
19030 # Test if FILE is an executable regular file.
19031 as_fn_executable_p ()
19032 {
19033 test -f "$1" && test -x "$1"
19034 } # as_fn_executable_p
19035 as_test_x='test -x'
19036 as_executable_p=as_fn_executable_p
19037
19038 # Sed expression to map a string onto a valid CPP name.
19039 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19040 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
19041
19042 # Sed expression to map a string onto a valid variable name.
19043 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19044 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
19045
19046
19047 exec 6>&1
19048 ## ------------------------------------- ##
19049 ## Main body of "$CONFIG_STATUS" script. ##
19050 ## ------------------------------------- ##
19051 _ASEOF
19052 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
19053
19054 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
19055 # Save the log message, to keep $0 and so on meaningful, and to
19056 # report actual input values of CONFIG_FILES etc. instead of their
19057 # values after options handling.
19058 ac_log="
19059 This file was extended by bluez $as_me 5.87, which was
19060 generated by GNU Autoconf 2.73. Invocation command line was
19061
19062 CONFIG_FILES = $CONFIG_FILES
19063 CONFIG_HEADERS = $CONFIG_HEADERS
19064 CONFIG_LINKS = $CONFIG_LINKS
19065 CONFIG_COMMANDS = $CONFIG_COMMANDS
19066 $ $0 $@
19067
19068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19069 "
19070
19071 _ACEOF
19072
19073 case $ac_config_files in *"
19074 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19075 esac
19076
19077 case $ac_config_headers in *"
19078 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19079 esac
19080
19081
19082 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
19083 # Files that config.status was made for.
19084 config_files="$ac_config_files"
19085 config_headers="$ac_config_headers"
19086 config_commands="$ac_config_commands"
19087
19088 _ACEOF
19089
19090 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
19091 ac_cs_usage="\
19092 '$as_me' instantiates files and other configuration actions
19093 from templates according to the current configuration. Unless the files
19094 and actions are specified as TAGs, all are instantiated by default.
19095
19096 Usage: $0 [OPTION]... [TAG]...
19097
19098 -h, --help print this help, then exit
19099 -V, --version print version number and configuration settings, then exit
19100 --config print configuration, then exit
19101 -q, --quiet, --silent
19102 do not print progress messages
19103 -d, --debug don't remove temporary files
19104 --recheck update $as_me by reconfiguring in the same conditions
19105 --file=FILE[:TEMPLATE]
19106 instantiate the configuration file FILE
19107 --header=FILE[:TEMPLATE]
19108 instantiate the configuration header FILE
19109
19110 Configuration files:
19111 $config_files
19112
19113 Configuration headers:
19114 $config_headers
19115
19116 Configuration commands:
19117 $config_commands
19118
19119 Report bugs to the package provider."
19120
19121 _ACEOF
19122 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
19123 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19124 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
19125 ac_cs_config='$ac_cs_config_escaped'
19126 ac_cs_version="\\
19127 bluez config.status 5.87
19128 configured by $0, generated by GNU Autoconf 2.73,
19129 with options \\"\$ac_cs_config\\"
19130
19131 Copyright (C) 2026 Free Software Foundation, Inc.
19132 This config.status script is free software; the Free Software Foundation
19133 gives unlimited permission to copy, distribute and modify it."
19134
19135 ac_pwd='$ac_pwd'
19136 srcdir='$srcdir'
19137 INSTALL='$INSTALL'
19138 MKDIR_P='$MKDIR_P'
19139 AWK='$AWK'
19140 test -n "\$AWK" || {
19141 awk '' </dev/null ||
19142 as_fn_error \$? "try installing gawk"
19143 AWK=awk
19144 }
19145 _ACEOF
19146
19147 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
19148 # The default lists apply if the user does not specify any file.
19149 ac_need_defaults=:
19150 while test $# != 0
19151 do
19152 case $1 in
19153 --*=?*)
19154 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19155 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19156 ac_shift=:
19157 ;;
19158 --*=)
19159 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19160 ac_optarg=
19161 ac_shift=:
19162 ;;
19163 *)
19164 ac_option=$1
19165 ac_optarg=$2
19166 ac_shift=shift
19167 ;;
19168 esac
19169
19170 case $ac_option in
19171 # Handling of the options.
19172 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19173 ac_cs_recheck=: ;;
19174 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19175 printf '%s\n' "$ac_cs_version"; exit ;;
19176 --config | --confi | --conf | --con | --co | --c )
19177 printf '%s\n' "$ac_cs_config"; exit ;;
19178 --debug | --debu | --deb | --de | --d | -d )
19179 debug=: ;;
19180 --file | --fil | --fi | --f )
19181 $ac_shift
19182 case $ac_optarg in
19183 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19184 '') as_fn_error $? "missing file argument" ;;
19185 esac
19186 as_fn_append CONFIG_FILES " '$ac_optarg'"
19187 ac_need_defaults=false;;
19188 --header | --heade | --head | --hea )
19189 $ac_shift
19190 case $ac_optarg in
19191 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19192 esac
19193 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19194 ac_need_defaults=false;;
19195 --he | --h)
19196 # Conflict between --help and --header
19197 as_fn_error $? "ambiguous option: '$1'
19198 Try '$0 --help' for more information.";;
19199 --help | --hel | -h )
19200 printf '%s\n' "$ac_cs_usage"; exit ;;
19201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19202 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19203 ac_cs_silent=: ;;
19204
19205 # This is an error.
19206 -*) as_fn_error $? "unrecognized option: '$1'
19207 Try '$0 --help' for more information." ;;
19208
19209 *) as_fn_append ac_config_targets " $1"
19210 ac_need_defaults=false ;;
19211
19212 esac
19213 shift
19214 done
19215
19216 ac_configure_extra_args=
19217
19218 if $ac_cs_silent; then
19219 exec 6>/dev/null
19220 ac_configure_extra_args="$ac_configure_extra_args --silent"
19221 fi
19222
19223 _ACEOF
19224 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
19225 if \$ac_cs_recheck; then
19226 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19227 shift
19228 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
19229 CONFIG_SHELL='$SHELL'
19230 export CONFIG_SHELL
19231 exec "\$@"
19232 fi
19233
19234 _ACEOF
19235 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
19236 exec 5>>config.log
19237 {
19238 echo
19239 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19240 ## Running $as_me. ##
19241 _ASBOX
19242 printf '%s\n' "$ac_log"
19243 } >&5
19244
19245 _ACEOF
19246 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
19247 #
19248 # INIT-COMMANDS
19249 #
19250 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19251
19252
19253 # The HP-UX ksh and POSIX shell print the target directory to stdout
19254 # if CDPATH is set.
19255 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19256
19257 sed_quote_subst='$sed_quote_subst'
19258 double_quote_subst='$double_quote_subst'
19259 delay_variable_subst='$delay_variable_subst'
19260 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19261 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19262 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19263 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19264 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19265 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19266 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19267 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19268 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19269 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19270 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19271 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19272 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19273 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19274 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19275 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19276 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19277 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19278 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19279 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19280 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19281 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19282 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19283 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19284 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19285 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19286 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19287 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19288 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19289 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19290 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19291 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19292 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19293 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19294 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
19295 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19296 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19297 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19298 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19299 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19300 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19301 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19302 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19303 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
19304 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19305 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19306 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19307 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19308 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19309 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19310 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19311 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19312 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19313 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19314 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19315 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19316 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19317 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19318 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19319 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19320 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"`'
19321 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19322 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19323 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19324 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19325 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19326 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19327 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19328 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19329 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19330 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19331 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19332 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19333 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19334 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19335 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19336 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19337 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19338 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19339 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19340 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19341 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19342 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19343 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19344 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19345 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19346 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19347 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19348 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19349 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19350 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19351 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19352 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19353 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19354 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19355 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19356 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19357 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19358 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19359 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19360 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19361 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19362 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19363 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19364 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19365 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19366 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19367 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19368 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19369 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19370 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19371 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19372 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19373 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19374 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19375 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19376 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19377 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19378 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19379 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19380 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19381 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19382 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19383 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19384 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19385 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19386 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19387 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19388 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19389 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19390 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19391 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19392 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19393 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19394 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19395 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19396 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19397
19398 LTCC='$LTCC'
19399 LTCFLAGS='$LTCFLAGS'
19400 compiler='$compiler_DEFAULT'
19401
19402 # A function that is used when there is no print builtin or printf.
19403 func_fallback_echo ()
19404 {
19405 eval 'cat <<_LTECHO_EOF
19406 \$1
19407 _LTECHO_EOF'
19408 }
19409
19410 # Quote evaled strings.
19411 for var in SHELL \
19412 ECHO \
19413 PATH_SEPARATOR \
19414 SED \
19415 GREP \
19416 EGREP \
19417 FGREP \
19418 LD \
19419 NM \
19420 LN_S \
19421 lt_SP2NL \
19422 lt_NL2SP \
19423 reload_flag \
19424 FILECMD \
19425 OBJDUMP \
19426 deplibs_check_method \
19427 file_magic_cmd \
19428 file_magic_glob \
19429 want_nocaseglob \
19430 DLLTOOL \
19431 sharedlib_from_linklib_cmd \
19432 AR \
19433 archiver_list_spec \
19434 STRIP \
19435 RANLIB \
19436 CC \
19437 CFLAGS \
19438 compiler \
19439 lt_cv_sys_global_symbol_pipe \
19440 lt_cv_sys_global_symbol_to_cdecl \
19441 lt_cv_sys_global_symbol_to_import \
19442 lt_cv_sys_global_symbol_to_c_name_address \
19443 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19444 lt_cv_nm_interface \
19445 nm_file_list_spec \
19446 lt_cv_truncate_bin \
19447 lt_prog_compiler_no_builtin_flag \
19448 lt_prog_compiler_pic \
19449 lt_prog_compiler_wl \
19450 lt_prog_compiler_static \
19451 lt_cv_prog_compiler_c_o \
19452 need_locks \
19453 MANIFEST_TOOL \
19454 DSYMUTIL \
19455 NMEDIT \
19456 LIPO \
19457 OTOOL \
19458 OTOOL64 \
19459 shrext_cmds \
19460 export_dynamic_flag_spec \
19461 whole_archive_flag_spec \
19462 compiler_needs_object \
19463 with_gnu_ld \
19464 allow_undefined_flag \
19465 no_undefined_flag \
19466 hardcode_libdir_flag_spec \
19467 hardcode_libdir_separator \
19468 exclude_expsyms \
19469 include_expsyms \
19470 file_list_spec \
19471 variables_saved_for_relink \
19472 libname_spec \
19473 library_names_spec \
19474 soname_spec \
19475 install_override_mode \
19476 finish_eval \
19477 old_striplib \
19478 striplib; do
19479 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19480 *[\\\\\\\`\\"\\\$]*)
19481 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19482 ;;
19483 *)
19484 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19485 ;;
19486 esac
19487 done
19488
19489 # Double-quote double-evaled strings.
19490 for var in reload_cmds \
19491 old_postinstall_cmds \
19492 old_postuninstall_cmds \
19493 old_archive_cmds \
19494 extract_expsyms_cmds \
19495 old_archive_from_new_cmds \
19496 old_archive_from_expsyms_cmds \
19497 archive_cmds \
19498 archive_expsym_cmds \
19499 module_cmds \
19500 module_expsym_cmds \
19501 export_symbols_cmds \
19502 prelink_cmds \
19503 postlink_cmds \
19504 postinstall_cmds \
19505 postuninstall_cmds \
19506 finish_cmds \
19507 sys_lib_search_path_spec \
19508 configure_time_dlsearch_path \
19509 configure_time_lt_sys_library_path; do
19510 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19511 *[\\\\\\\`\\"\\\$]*)
19512 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19513 ;;
19514 *)
19515 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19516 ;;
19517 esac
19518 done
19519
19520 ac_aux_dir='$ac_aux_dir'
19521
19522 # See if we are running on zsh, and set the options that allow our
19523 # commands through without removal of \ escapes INIT.
19524 if test -n "\${ZSH_VERSION+set}"; then
19525 setopt NO_GLOB_SUBST
19526 fi
19527
19528
19529 PACKAGE='$PACKAGE'
19530 VERSION='$VERSION'
19531 RM='$RM'
19532 ofile='$ofile'
19533
19534
19535
19536
19537 _ACEOF
19538
19539 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
19540
19541 # Handling of arguments.
19542 for ac_config_target in $ac_config_targets
19543 do
19544 case $ac_config_target in
19545 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19546 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19547 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19548 "lib/bluez.pc") CONFIG_FILES="$CONFIG_FILES lib/bluez.pc" ;;
19549 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19550 "doc/bluetooth-meshd.rst") CONFIG_FILES="$CONFIG_FILES doc/bluetooth-meshd.rst" ;;
19551 "mesh/bluetooth-mesh.service") CONFIG_FILES="$CONFIG_FILES mesh/bluetooth-mesh.service" ;;
19552 "obexd/src/obex.service") CONFIG_FILES="$CONFIG_FILES obexd/src/obex.service" ;;
19553 "obexd/src/org.bluez.obex.service") CONFIG_FILES="$CONFIG_FILES obexd/src/org.bluez.obex.service" ;;
19554 "doc/bluetoothd.rst") CONFIG_FILES="$CONFIG_FILES doc/bluetoothd.rst" ;;
19555 "src/bluetooth.service") CONFIG_FILES="$CONFIG_FILES src/bluetooth.service" ;;
19556 "tools/bluetooth-logger.service") CONFIG_FILES="$CONFIG_FILES tools/bluetooth-logger.service" ;;
19557 "tools/mpris-proxy.service") CONFIG_FILES="$CONFIG_FILES tools/mpris-proxy.service" ;;
19558
19559 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
19560 esac
19561 done
19562
19563
19564 # If the user did not use the arguments to specify the items to instantiate,
19565 # then the envvar interface is used. Set only those that are not.
19566 # We use the long form for the default assignment because of an extremely
19567 # bizarre bug on SunOS 4.1.3.
19568 if $ac_need_defaults; then
19569 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
19570 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
19571 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
19572 fi
19573
19574 # Have a temporary directory for convenience. Make it in the build tree
19575 # simply because there is no reason against having it here, and in addition,
19576 # creating and moving files from /tmp can sometimes cause problems.
19577 # Hook for its removal unless debugging.
19578 # Note that there is a small window in which the directory will not be cleaned:
19579 # after its creation but before its name has been assigned to '$tmp'.
19580 $debug ||
19581 {
19582 tmp= ac_tmp=
19583 trap 'exit_status=$?
19584 : "${ac_tmp:=$tmp}"
19585 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19586 ' 0
19587 trap 'as_fn_exit 1' 1 2 13 15
19588 }
19589 # Create a (secure) tmp directory for tmp files.
19590
19591 {
19592 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19593 test -d "$tmp"
19594 } ||
19595 {
19596 tmp=./conf$$-$RANDOM
19597 (umask 077 && mkdir "$tmp")
19598 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19599 ac_tmp=$tmp
19600
19601 # Set up the scripts for CONFIG_FILES section.
19602 # No need to generate them if there are no CONFIG_FILES.
19603 # This happens for instance with './config.status config.h'.
19604 if test -n "$CONFIG_FILES"; then
19605
19606
19607 ac_cr=`echo X | tr X '\015'`
19608 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19609 # But we know of no other shell where ac_cr would be empty at this
19610 # point, so we can use a bashism as a fallback.
19611 if test "x$ac_cr" = x; then
19612 eval ac_cr=\$\'\\r\'
19613 fi
19614 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19615 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19616 ac_cs_awk_cr='\\r'
19617 else
19618 ac_cs_awk_cr=$ac_cr
19619 fi
19620
19621 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19622 _ACEOF
19623
19624
19625 {
19626 echo "cat >conf$$subs.awk <<_ACEOF" &&
19627 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19628 echo "_ACEOF"
19629 } >conf$$subs.sh ||
19630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19631 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
19632 ac_delim='%!_!# '
19633 for ac_last_try in false false false false false :; do
19634 . ./conf$$subs.sh ||
19635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19636
19637 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
19638 if test $ac_delim_n = $ac_delim_num; then
19639 break
19640 elif $ac_last_try; then
19641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19642 else
19643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19644 fi
19645 done
19646 rm -f conf$$subs.sh
19647
19648 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
19649 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19650 _ACEOF
19651 sed -n '
19652 h
19653 s/^/S["/; s/!.*/"]=/
19654 p
19655 g
19656 s/^[^!]*!//
19657 :repl
19658 t repl
19659 s/'"$ac_delim"'$//
19660 t delim
19661 :nl
19662 h
19663 s/\(.\{148\}\)..*/\1/
19664 t more1
19665 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19666 p
19667 n
19668 b repl
19669 :more1
19670 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19671 p
19672 g
19673 s/.\{148\}//
19674 t nl
19675 :delim
19676 h
19677 s/\(.\{148\}\)..*/\1/
19678 t more2
19679 s/["\\]/\\&/g; s/^/"/; s/$/"/
19680 p
19681 b
19682 :more2
19683 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19684 p
19685 g
19686 s/.\{148\}//
19687 t delim
19688 ' <conf$$subs.awk | sed '
19689 /^[^""]/{
19690 N
19691 s/\n//
19692 }
19693 ' >>"$CONFIG_STATUS" || ac_write_fail=1
19694 rm -f conf$$subs.awk
19695 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
19696 _ACAWK
19697 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19698 for (key in S) S_is_set[key] = 1
19699 FS = ""
19700
19701 }
19702 {
19703 line = $ 0
19704 nfields = split(line, field, "@")
19705 substed = 0
19706 len = length(field[1])
19707 for (i = 2; i < nfields; i++) {
19708 key = field[i]
19709 keylen = length(key)
19710 if (S_is_set[key]) {
19711 value = S[key]
19712 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19713 len += length(value) + length(field[++i])
19714 substed = 1
19715 } else
19716 len += 1 + keylen
19717 }
19718
19719 print line
19720 }
19721
19722 _ACAWK
19723 _ACEOF
19724 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
19725 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19726 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19727 else
19728 cat
19729 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19730 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19731 _ACEOF
19732
19733 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19734 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19735 # trailing colons and then remove the whole line if VPATH becomes empty
19736 # (actually we leave an empty line to preserve line numbers).
19737 if test "x$srcdir" = x.; then
19738 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19739 h
19740 s///
19741 s/^/:/
19742 s/[ ]*$/:/
19743 s/:\$(srcdir):/:/g
19744 s/:\${srcdir}:/:/g
19745 s/:@srcdir@:/:/g
19746 s/^:*//
19747 s/:*$//
19748 x
19749 s/\(=[ ]*\).*/\1/
19750 G
19751 s/\n//
19752 s/^[^=]*=[ ]*$//
19753 }'
19754 fi
19755
19756 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
19757 fi # test -n "$CONFIG_FILES"
19758
19759 # Set up the scripts for CONFIG_HEADERS section.
19760 # No need to generate them if there are no CONFIG_HEADERS.
19761 # This happens for instance with './config.status Makefile'.
19762 if test -n "$CONFIG_HEADERS"; then
19763 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19764 BEGIN {
19765 _ACEOF
19766
19767 # Transform confdefs.h into an awk script 'defines.awk', embedded as
19768 # here-document in config.status, that substitutes the proper values into
19769 # config.h.in to produce config.h.
19770
19771 # Create a delimiter string that does not exist in confdefs.h, to ease
19772 # handling of long lines.
19773 ac_delim='%!_!# '
19774 for ac_last_try in false false :; do
19775 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19776 if test -z "$ac_tt"; then
19777 break
19778 elif $ac_last_try; then
19779 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19780 else
19781 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19782 fi
19783 done
19784
19785 # For the awk script, D is an array of macro values keyed by name,
19786 # likewise P contains macro parameters if any. Preserve backslash
19787 # newline sequences.
19788
19789 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19790 sed -n '
19791 s/.\{148\}/&'"$ac_delim"'/g
19792 t rset
19793 :rset
19794 s/^[ ]*#[ ]*define[ ][ ]*/ /
19795 t def
19796 d
19797 :def
19798 s/\\$//
19799 t bsnl
19800 s/["\\]/\\&/g
19801 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19802 D["\1"]=" \3"/p
19803 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19804 d
19805 :bsnl
19806 s/["\\]/\\&/g
19807 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19808 D["\1"]=" \3\\\\\\n"\\/p
19809 t cont
19810 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19811 t cont
19812 d
19813 :cont
19814 n
19815 s/.\{148\}/&'"$ac_delim"'/g
19816 t clear
19817 :clear
19818 s/\\$//
19819 t bsnlc
19820 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19821 d
19822 :bsnlc
19823 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19824 b cont
19825 ' <confdefs.h | sed '
19826 s/'"$ac_delim"'/"\\\
19827 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
19828
19829 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
19830 for (key in D) D_is_set[key] = 1
19831 FS = ""
19832 }
19833 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19834 line = \$ 0
19835 split(line, arg, " ")
19836 if (arg[1] == "#") {
19837 defundef = arg[2]
19838 mac1 = arg[3]
19839 } else {
19840 defundef = substr(arg[1], 2)
19841 mac1 = arg[2]
19842 }
19843 split(mac1, mac2, "(") #)
19844 macro = mac2[1]
19845 prefix = substr(line, 1, index(line, defundef) - 1)
19846 if (D_is_set[macro]) {
19847 suffix = P[macro] D[macro]
19848 while (suffix ~ /[\t ]$/) {
19849 suffix = substr(suffix, 1, length(suffix) - 1)
19850 }
19851 # Preserve the white space surrounding the "#".
19852 print prefix "define", macro suffix
19853 next
19854 } else {
19855 # Replace #undef with comments. This is necessary, for example,
19856 # in the case of _POSIX_SOURCE, which is predefined and required
19857 # on some systems where configure will not decide to define it.
19858 if (defundef == "undef") {
19859 print "/*", prefix defundef, macro, "*/"
19860 next
19861 }
19862 }
19863 }
19864 { print }
19865 _ACAWK
19866 _ACEOF
19867 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
19868 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19869 fi # test -n "$CONFIG_HEADERS"
19870
19871
19872 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19873 shift
19874 for ac_tag
19875 do
19876 case $ac_tag in
19877 :[FHLC]) ac_mode=$ac_tag; continue;;
19878 esac
19879 case $ac_mode$ac_tag in
19880 :[FHL]*:*);;
19881 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
19882 :[FH]-) ac_tag=-:-;;
19883 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19884 esac
19885 ac_save_IFS=$IFS
19886 IFS=:
19887 set x $ac_tag
19888 IFS=$ac_save_IFS
19889 shift
19890 ac_file=$1
19891 shift
19892
19893 case $ac_mode in
19894 :L) ac_source=$1;;
19895 :[FH])
19896 ac_file_inputs=
19897 for ac_f
19898 do
19899 case $ac_f in
19900 -) ac_f="$ac_tmp/stdin";;
19901 *) # Look for the file first in the build tree, then in the source tree
19902 # (if the path is not absolute). The absolute path cannot be DOS-style,
19903 # because $ac_f cannot contain ':'.
19904 test -f "$ac_f" ||
19905 case $ac_f in
19906 [\\/$]*) false;;
19907 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19908 esac ||
19909 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
19910 esac
19911 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19912 as_fn_append ac_file_inputs " '$ac_f'"
19913 done
19914
19915 # Let's still pretend it is 'configure' which instantiates (i.e., don't
19916 # use $as_me), people would be surprised to read:
19917 # /* config.h. Generated by config.status. */
19918 configure_input='Generated from '`
19919 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19920 `' by configure.'
19921 if test x"$ac_file" != x-; then
19922 configure_input="$ac_file. $configure_input"
19923 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19924 printf '%s\n' "$as_me: creating $ac_file" >&6;}
19925 fi
19926 # Neutralize special characters interpreted by sed in replacement strings.
19927 case $configure_input in #(
19928 *\&* | *\|* | *\\* )
19929 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
19930 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19931 *) ac_sed_conf_input=$configure_input;;
19932 esac
19933
19934 case $ac_tag in
19935 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19937 esac
19938 ;;
19939 esac
19940
19941 ac_dir=`$as_dirname -- "$ac_file" ||
19942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19943 X"$ac_file" : 'X\(//\)[^/]' \| \
19944 X"$ac_file" : 'X\(//\)$' \| \
19945 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19946 printf '%s\n' X"$ac_file" |
19947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19948 s//\1/
19949 q
19950 }
19951 /^X\(\/\/\)[^/].*/{
19952 s//\1/
19953 q
19954 }
19955 /^X\(\/\/\)$/{
19956 s//\1/
19957 q
19958 }
19959 /^X\(\/\).*/{
19960 s//\1/
19961 q
19962 }
19963 s/.*/./; q'`
19964 as_dir="$ac_dir"; as_fn_mkdir_p
19965 ac_builddir=.
19966
19967 case "$ac_dir" in
19968 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19969 *)
19970 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
19971 # A ".." for each directory in $ac_dir_suffix.
19972 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19973 case $ac_top_builddir_sub in
19974 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19975 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19976 esac ;;
19977 esac
19978 ac_abs_top_builddir=$ac_pwd
19979 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19980 # for backward compatibility:
19981 ac_top_builddir=$ac_top_build_prefix
19982
19983 case $srcdir in
19984 .) # We are building in place.
19985 ac_srcdir=.
19986 ac_top_srcdir=$ac_top_builddir_sub
19987 ac_abs_top_srcdir=$ac_pwd ;;
19988 [\\/]* | ?:[\\/]* ) # Absolute name.
19989 ac_srcdir=$srcdir$ac_dir_suffix;
19990 ac_top_srcdir=$srcdir
19991 ac_abs_top_srcdir=$srcdir ;;
19992 *) # Relative name.
19993 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19994 ac_top_srcdir=$ac_top_build_prefix$srcdir
19995 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19996 esac
19997 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19998
19999
20000 case $ac_mode in
20001 :F)
20002 #
20003 # CONFIG_FILE
20004 #
20005
20006 case $INSTALL in
20007 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20008 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20009 esac
20010 ac_MKDIR_P=$MKDIR_P
20011 case $MKDIR_P in
20012 [\\/$]* | ?:[\\/]* ) ;;
20013 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20014 esac
20015 _ACEOF
20016
20017 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
20018 # If the template does not know about datarootdir, expand it.
20019 # FIXME: This hack should be removed a few years after 2.60.
20020 ac_datarootdir_hack=; ac_datarootdir_seen=
20021 ac_sed_dataroot='
20022 /datarootdir/ {
20023 p
20024 q
20025 }
20026 /@datadir@/p
20027 /@docdir@/p
20028 /@infodir@/p
20029 /@localedir@/p
20030 /@mandir@/p'
20031 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20032 *datarootdir*) ac_datarootdir_seen=yes;;
20033 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20034 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20035 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20036 _ACEOF
20037 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
20038 ac_datarootdir_hack='
20039 s&@datadir@&$datadir&g
20040 s&@docdir@&$docdir&g
20041 s&@infodir@&$infodir&g
20042 s&@localedir@&$localedir&g
20043 s&@mandir@&$mandir&g
20044 s&\\\${datarootdir}&$datarootdir&g' ;;
20045 esac
20046 _ACEOF
20047
20048 # Neutralize VPATH when '$srcdir' = '.'.
20049 # Shell code in configure.ac might set extrasub.
20050 # FIXME: do we really want to maintain this feature?
20051 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
20052 ac_sed_extra="$ac_vpsub
20053 $extrasub
20054 _ACEOF
20055 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
20056 :t
20057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20058 s|@configure_input@|$ac_sed_conf_input|;t t
20059 s&@top_builddir@&$ac_top_builddir_sub&;t t
20060 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20061 s&@srcdir@&$ac_srcdir&;t t
20062 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20063 s&@top_srcdir@&$ac_top_srcdir&;t t
20064 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20065 s&@builddir@&$ac_builddir&;t t
20066 s&@abs_builddir@&$ac_abs_builddir&;t t
20067 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20068 s&@INSTALL@&$ac_INSTALL&;t t
20069 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20070 $ac_datarootdir_hack
20071 "
20072 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20073 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20074
20075 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20076 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20078 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20079 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
20080 which seems to be undefined. Please make sure it is defined" >&5
20081 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
20082 which seems to be undefined. Please make sure it is defined" >&2;}
20083
20084 rm -f "$ac_tmp/stdin"
20085 case $ac_file in
20086 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20087 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20088 esac \
20089 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20090 ;;
20091 :H)
20092 #
20093 # CONFIG_HEADER
20094 #
20095 if test x"$ac_file" != x-; then
20096 {
20097 printf '%s\n' "/* $configure_input */" >&1 \
20098 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20099 } >"$ac_tmp/config.h" \
20100 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20101 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20103 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
20104 else
20105 rm -f "$ac_file"
20106 mv "$ac_tmp/config.h" "$ac_file" \
20107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20108 fi
20109 else
20110 printf '%s\n' "/* $configure_input */" >&1 \
20111 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20112 || as_fn_error $? "could not create -" "$LINENO" 5
20113 fi
20114 # Compute "$ac_file"'s index in $config_headers.
20115 _am_arg="$ac_file"
20116 _am_stamp_count=1
20117 for _am_header in $config_headers :; do
20118 case $_am_header in
20119 $_am_arg | $_am_arg:* )
20120 break ;;
20121 * )
20122 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20123 esac
20124 done
20125 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20126 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20127 X"$_am_arg" : 'X\(//\)[^/]' \| \
20128 X"$_am_arg" : 'X\(//\)$' \| \
20129 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20130 printf '%s\n' X"$_am_arg" |
20131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20132 s//\1/
20133 q
20134 }
20135 /^X\(\/\/\)[^/].*/{
20136 s//\1/
20137 q
20138 }
20139 /^X\(\/\/\)$/{
20140 s//\1/
20141 q
20142 }
20143 /^X\(\/\).*/{
20144 s//\1/
20145 q
20146 }
20147 s/.*/./; q'`/stamp-h$_am_stamp_count
20148 ;;
20149
20150 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20151 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
20152 ;;
20153 esac
20154
20155
20156 case $ac_file$ac_mode in
20157 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20158 # Older Autoconf quotes --file arguments for eval, but not when files
20159 # are listed without --file. Let's play safe and only enable the eval
20160 # if we detect the quoting.
20161 # TODO: see whether this extra hack can be removed once we start
20162 # requiring Autoconf 2.70 or later.
20163 case $CONFIG_FILES in #(
20164 *\'*) :
20165 eval set x "$CONFIG_FILES" ;; #(
20166 *) :
20167 set x $CONFIG_FILES ;; #(
20168 *) :
20169 ;;
20170 esac
20171 shift
20172 # Used to flag and report bootstrapping failures.
20173 am_rc=0
20174 for am_mf
20175 do
20176 # Strip MF so we end up with the name of the file.
20177 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
20178 # Check whether this is an Automake generated Makefile which includes
20179 # dependency-tracking related rules and includes.
20180 # Grep'ing the whole file directly is not great: AIX grep has a line
20181 # limit of 2048, but all sed's we know have understand at least 4000.
20182 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20183 || continue
20184 am_dirpart=`$as_dirname -- "$am_mf" ||
20185 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20186 X"$am_mf" : 'X\(//\)[^/]' \| \
20187 X"$am_mf" : 'X\(//\)$' \| \
20188 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20189 printf '%s\n' X"$am_mf" |
20190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20191 s//\1/
20192 q
20193 }
20194 /^X\(\/\/\)[^/].*/{
20195 s//\1/
20196 q
20197 }
20198 /^X\(\/\/\)$/{
20199 s//\1/
20200 q
20201 }
20202 /^X\(\/\).*/{
20203 s//\1/
20204 q
20205 }
20206 s/.*/./; q'`
20207 am_filepart=`$as_basename -- "$am_mf" ||
20208 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20209 X"$am_mf" : 'X\(//\)$' \| \
20210 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20211 printf '%s\n' X/"$am_mf" |
20212 sed '/^.*\/\([^/][^/]*\)\/*$/{
20213 s//\1/
20214 q
20215 }
20216 /^X\/\(\/\/\)$/{
20217 s//\1/
20218 q
20219 }
20220 /^X\/\(\/\).*/{
20221 s//\1/
20222 q
20223 }
20224 s/.*/./; q'`
20225 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20226 && sed -e '/# am--include-marker/d' "$am_filepart" \
20227 | $MAKE -f - am--depfiles" >&5
20228 (cd "$am_dirpart" \
20229 && sed -e '/# am--include-marker/d' "$am_filepart" \
20230 | $MAKE -f - am--depfiles) >&5 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } || am_rc=$?
20234 done
20235 if test $am_rc -ne 0; then
20236 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20237 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
20238 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20239 for automatic dependency tracking. If GNU make was not used, consider
20240 re-running the configure script with MAKE=\"gmake\" (or whatever is
20241 necessary). You can also try re-running configure with the
20242 '--disable-dependency-tracking' option to at least be able to build
20243 the package (albeit without support for automatic dependency tracking).
20244 See 'config.log' for more details" "$LINENO" 5; }
20245 fi
20246 { am_dirpart=; unset am_dirpart;}
20247 { am_filepart=; unset am_filepart;}
20248 { am_mf=; unset am_mf;}
20249 { am_rc=; unset am_rc;}
20250 rm -f conftest-deps.mk
20251 }
20252 ;;
20253 "libtool":C)
20254
20255 # See if we are running on zsh, and set the options that allow our
20256 # commands through without removal of \ escapes.
20257 if test -n "${ZSH_VERSION+set}"; then
20258 setopt NO_GLOB_SUBST
20259 fi
20260
20261 cfgfile=${ofile}T
20262 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20263 $RM "$cfgfile"
20264
20265 cat <<_LT_EOF >> "$cfgfile"
20266 #! $SHELL
20267 # Generated automatically by $as_me ($PACKAGE) $VERSION
20268 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20269
20270 # Provide generalized library-building support services.
20271 # Written by Gordon Matzigkeit, 1996
20272
20273 # Copyright (C) 2024 Free Software Foundation, Inc.
20274 # This is free software; see the source for copying conditions. There is NO
20275 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20276
20277 # GNU Libtool is free software; you can redistribute it and/or modify
20278 # it under the terms of the GNU General Public License as published by
20279 # the Free Software Foundation; either version 2 of the License, or
20280 # (at your option) any later version.
20281 #
20282 # As a special exception to the GNU General Public License, if you
20283 # distribute this file as part of a program or library that is built
20284 # using GNU Libtool, you may include this file under the same
20285 # distribution terms that you use for the rest of that program.
20286 #
20287 # GNU Libtool is distributed in the hope that it will be useful, but
20288 # WITHOUT ANY WARRANTY; without even the implied warranty of
20289 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20290 # GNU General Public License for more details.
20291 #
20292 # You should have received a copy of the GNU General Public License
20293 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20294
20295
20296 # The names of the tagged configurations supported by this script.
20297 available_tags=''
20298
20299 # Configured defaults for sys_lib_dlsearch_path munging.
20300 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20301
20302 # ### BEGIN LIBTOOL CONFIG
20303
20304 # Which release of libtool.m4 was used?
20305 macro_version=$macro_version
20306 macro_revision=$macro_revision
20307
20308 # Whether or not to build static libraries.
20309 build_old_libs=$enable_static
20310
20311 # Whether or not to build shared libraries.
20312 build_libtool_libs=$enable_shared
20313
20314 # What type of objects to build.
20315 pic_mode=$pic_mode
20316
20317 # Whether or not to optimize for fast installation.
20318 fast_install=$enable_fast_install
20319
20320 # Shared archive member basename,for filename based shared library versioning on AIX.
20321 shared_archive_member_spec=$shared_archive_member_spec
20322
20323 # Shell to use when invoking shell scripts.
20324 SHELL=$lt_SHELL
20325
20326 # An echo program that protects backslashes.
20327 ECHO=$lt_ECHO
20328
20329 # The PATH separator for the build system.
20330 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20331
20332 # The host system.
20333 host_alias=$host_alias
20334 host=$host
20335 host_os=$host_os
20336
20337 # The build system.
20338 build_alias=$build_alias
20339 build=$build
20340 build_os=$build_os
20341
20342 # A sed program that does not truncate output.
20343 SED=$lt_SED
20344
20345 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20346 Xsed="\$SED -e 1s/^X//"
20347
20348 # A grep program that handles long lines.
20349 GREP=$lt_GREP
20350
20351 # An ERE matcher.
20352 EGREP=$lt_EGREP
20353
20354 # A literal string matcher.
20355 FGREP=$lt_FGREP
20356
20357 # A BSD- or MS-compatible name lister.
20358 NM=$lt_NM
20359
20360 # Whether we need soft or hard links.
20361 LN_S=$lt_LN_S
20362
20363 # What is the maximum length of a command?
20364 max_cmd_len=$max_cmd_len
20365
20366 # Object file suffix (normally "o").
20367 objext=$ac_objext
20368
20369 # Executable file suffix (normally "").
20370 exeext=$exeext
20371
20372 # whether the shell understands "unset".
20373 lt_unset=$lt_unset
20374
20375 # turn spaces into newlines.
20376 SP2NL=$lt_lt_SP2NL
20377
20378 # turn newlines into spaces.
20379 NL2SP=$lt_lt_NL2SP
20380
20381 # convert \$build file names to \$host format.
20382 to_host_file_cmd=$lt_cv_to_host_file_cmd
20383
20384 # convert \$build files to toolchain format.
20385 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20386
20387 # A file(cmd) program that detects file types.
20388 FILECMD=$lt_FILECMD
20389
20390 # An object symbol dumper.
20391 OBJDUMP=$lt_OBJDUMP
20392
20393 # Method to check whether dependent libraries are shared objects.
20394 deplibs_check_method=$lt_deplibs_check_method
20395
20396 # Command to use when deplibs_check_method = "file_magic".
20397 file_magic_cmd=$lt_file_magic_cmd
20398
20399 # How to find potential files when deplibs_check_method = "file_magic".
20400 file_magic_glob=$lt_file_magic_glob
20401
20402 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20403 want_nocaseglob=$lt_want_nocaseglob
20404
20405 # DLL creation program.
20406 DLLTOOL=$lt_DLLTOOL
20407
20408 # Command to associate shared and link libraries.
20409 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20410
20411 # The archiver.
20412 AR=$lt_AR
20413
20414 # Flags to create an archive (by configure).
20415 lt_ar_flags=$lt_ar_flags
20416
20417 # Flags to create an archive.
20418 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
20419
20420 # How to feed a file listing to the archiver.
20421 archiver_list_spec=$lt_archiver_list_spec
20422
20423 # A symbol stripping program.
20424 STRIP=$lt_STRIP
20425
20426 # Commands used to install an old-style archive.
20427 RANLIB=$lt_RANLIB
20428 old_postinstall_cmds=$lt_old_postinstall_cmds
20429 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20430
20431 # Whether to use a lock for old archive extraction.
20432 lock_old_archive_extraction=$lock_old_archive_extraction
20433
20434 # A C compiler.
20435 LTCC=$lt_CC
20436
20437 # LTCC compiler flags.
20438 LTCFLAGS=$lt_CFLAGS
20439
20440 # Take the output of nm and produce a listing of raw symbols and C names.
20441 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20442
20443 # Transform the output of nm in a proper C declaration.
20444 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20445
20446 # Transform the output of nm into a list of symbols to manually relocate.
20447 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20448
20449 # Transform the output of nm in a C name address pair.
20450 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20451
20452 # Transform the output of nm in a C name address pair when lib prefix is needed.
20453 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20454
20455 # The name lister interface.
20456 nm_interface=$lt_lt_cv_nm_interface
20457
20458 # Specify filename containing input files for \$NM.
20459 nm_file_list_spec=$lt_nm_file_list_spec
20460
20461 # The root where to search for dependent libraries,and where our libraries should be installed.
20462 lt_sysroot=$lt_sysroot
20463
20464 # Command to truncate a binary pipe.
20465 lt_truncate_bin=$lt_lt_cv_truncate_bin
20466
20467 # The name of the directory that contains temporary libtool files.
20468 objdir=$objdir
20469
20470 # Used to examine libraries when file_magic_cmd begins with "file".
20471 MAGIC_CMD=$MAGIC_CMD
20472
20473 # Must we lock files when doing compilation?
20474 need_locks=$lt_need_locks
20475
20476 # Manifest tool.
20477 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20478
20479 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20480 DSYMUTIL=$lt_DSYMUTIL
20481
20482 # Tool to change global to local symbols on Mac OS X.
20483 NMEDIT=$lt_NMEDIT
20484
20485 # Tool to manipulate fat objects and archives on Mac OS X.
20486 LIPO=$lt_LIPO
20487
20488 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20489 OTOOL=$lt_OTOOL
20490
20491 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20492 OTOOL64=$lt_OTOOL64
20493
20494 # Old archive suffix (normally "a").
20495 libext=$libext
20496
20497 # Shared library suffix (normally ".so").
20498 shrext_cmds=$lt_shrext_cmds
20499
20500 # The commands to extract the exported symbol list from a shared archive.
20501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20502
20503 # Variables whose values should be saved in libtool wrapper scripts and
20504 # restored at link time.
20505 variables_saved_for_relink=$lt_variables_saved_for_relink
20506
20507 # Do we need the "lib" prefix for modules?
20508 need_lib_prefix=$need_lib_prefix
20509
20510 # Do we need a version for libraries?
20511 need_version=$need_version
20512
20513 # Library versioning type.
20514 version_type=$version_type
20515
20516 # Shared library runtime path variable.
20517 runpath_var=$runpath_var
20518
20519 # Shared library path variable.
20520 shlibpath_var=$shlibpath_var
20521
20522 # Is shlibpath searched before the hard-coded library search path?
20523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20524
20525 # Format of library name prefix.
20526 libname_spec=$lt_libname_spec
20527
20528 # List of archive names. First name is the real one, the rest are links.
20529 # The last name is the one that the linker finds with -lNAME
20530 library_names_spec=$lt_library_names_spec
20531
20532 # The coded name of the library, if different from the real name.
20533 soname_spec=$lt_soname_spec
20534
20535 # Permission mode override for installation of shared libraries.
20536 install_override_mode=$lt_install_override_mode
20537
20538 # Command to use after installation of a shared archive.
20539 postinstall_cmds=$lt_postinstall_cmds
20540
20541 # Command to use after uninstallation of a shared archive.
20542 postuninstall_cmds=$lt_postuninstall_cmds
20543
20544 # Commands used to finish a libtool library installation in a directory.
20545 finish_cmds=$lt_finish_cmds
20546
20547 # As "finish_cmds", except a single script fragment to be evaled but
20548 # not shown.
20549 finish_eval=$lt_finish_eval
20550
20551 # Whether we should hardcode library paths into libraries.
20552 hardcode_into_libs=$hardcode_into_libs
20553
20554 # Compile-time system search path for libraries.
20555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20556
20557 # Detected run-time system search path for libraries.
20558 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20559
20560 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20561 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20562
20563 # Whether dlopen is supported.
20564 dlopen_support=$enable_dlopen
20565
20566 # Whether dlopen of programs is supported.
20567 dlopen_self=$enable_dlopen_self
20568
20569 # Whether dlopen of statically linked programs is supported.
20570 dlopen_self_static=$enable_dlopen_self_static
20571
20572 # Commands to strip libraries.
20573 old_striplib=$lt_old_striplib
20574 striplib=$lt_striplib
20575
20576
20577 # The linker used to build libraries.
20578 LD=$lt_LD
20579
20580 # How to create reloadable object files.
20581 reload_flag=$lt_reload_flag
20582 reload_cmds=$lt_reload_cmds
20583
20584 # Commands used to build an old-style archive.
20585 old_archive_cmds=$lt_old_archive_cmds
20586
20587 # A language specific compiler.
20588 CC=$lt_compiler
20589
20590 # Is the compiler the GNU compiler?
20591 with_gcc=$GCC
20592
20593 # Compiler flag to turn off builtin functions.
20594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20595
20596 # Additional compiler flags for building library objects.
20597 pic_flag=$lt_lt_prog_compiler_pic
20598
20599 # How to pass a linker flag through the compiler.
20600 wl=$lt_lt_prog_compiler_wl
20601
20602 # Compiler flag to prevent dynamic linking.
20603 link_static_flag=$lt_lt_prog_compiler_static
20604
20605 # Does compiler simultaneously support -c and -o options?
20606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20607
20608 # Whether or not to add -lc for building shared libraries.
20609 build_libtool_need_lc=$archive_cmds_need_lc
20610
20611 # Whether or not to disallow shared libs when runtime libs are static.
20612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20613
20614 # Compiler flag to allow reflexive dlopens.
20615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20616
20617 # Compiler flag to generate shared objects directly from archives.
20618 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20619
20620 # Whether the compiler copes with passing no objects directly.
20621 compiler_needs_object=$lt_compiler_needs_object
20622
20623 # Create an old-style archive from a shared archive.
20624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20625
20626 # Create a temporary old-style archive to link instead of a shared archive.
20627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20628
20629 # Commands used to build a shared archive.
20630 archive_cmds=$lt_archive_cmds
20631 archive_expsym_cmds=$lt_archive_expsym_cmds
20632
20633 # Commands used to build a loadable module if different from building
20634 # a shared archive.
20635 module_cmds=$lt_module_cmds
20636 module_expsym_cmds=$lt_module_expsym_cmds
20637
20638 # Whether we are building with GNU ld or not.
20639 with_gnu_ld=$lt_with_gnu_ld
20640
20641 # Flag that allows shared libraries with undefined symbols to be built.
20642 allow_undefined_flag=$lt_allow_undefined_flag
20643
20644 # Flag that enforces no undefined symbols.
20645 no_undefined_flag=$lt_no_undefined_flag
20646
20647 # Flag to hardcode \$libdir into a binary during linking.
20648 # This must work even if \$libdir does not exist
20649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20650
20651 # Whether we need a single "-rpath" flag with a separated argument.
20652 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20653
20654 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20655 # DIR into the resulting binary.
20656 hardcode_direct=$hardcode_direct
20657
20658 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20659 # DIR into the resulting binary and the resulting library dependency is
20660 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
20661 # library is relocated.
20662 hardcode_direct_absolute=$hardcode_direct_absolute
20663
20664 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20665 # into the resulting binary.
20666 hardcode_minus_L=$hardcode_minus_L
20667
20668 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20669 # into the resulting binary.
20670 hardcode_shlibpath_var=$hardcode_shlibpath_var
20671
20672 # Set to "yes" if building a shared library automatically hardcodes DIR
20673 # into the library and all subsequent libraries and executables linked
20674 # against it.
20675 hardcode_automatic=$hardcode_automatic
20676
20677 # Set to yes if linker adds runtime paths of dependent libraries
20678 # to runtime path list.
20679 inherit_rpath=$inherit_rpath
20680
20681 # Whether libtool must link a program against all its dependency libraries.
20682 link_all_deplibs=$link_all_deplibs
20683
20684 # Set to "yes" if exported symbols are required.
20685 always_export_symbols=$always_export_symbols
20686
20687 # The commands to list exported symbols.
20688 export_symbols_cmds=$lt_export_symbols_cmds
20689
20690 # Symbols that should not be listed in the preloaded symbols.
20691 exclude_expsyms=$lt_exclude_expsyms
20692
20693 # Symbols that must always be exported.
20694 include_expsyms=$lt_include_expsyms
20695
20696 # Commands necessary for linking programs (against libraries) with templates.
20697 prelink_cmds=$lt_prelink_cmds
20698
20699 # Commands necessary for finishing linking programs.
20700 postlink_cmds=$lt_postlink_cmds
20701
20702 # Specify filename containing input files.
20703 file_list_spec=$lt_file_list_spec
20704
20705 # How to hardcode a shared library path into an executable.
20706 hardcode_action=$hardcode_action
20707
20708 # ### END LIBTOOL CONFIG
20709
20710 _LT_EOF
20711
20712 cat <<'_LT_EOF' >> "$cfgfile"
20713
20714 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20715
20716 # func_munge_path_list VARIABLE PATH
20717 # -----------------------------------
20718 # VARIABLE is name of variable containing _space_ separated list of
20719 # directories to be munged by the contents of PATH, which is string
20720 # having a format:
20721 # "DIR[:DIR]:"
20722 # string "DIR[ DIR]" will be prepended to VARIABLE
20723 # ":DIR[:DIR]"
20724 # string "DIR[ DIR]" will be appended to VARIABLE
20725 # "DIRP[:DIRP]::[DIRA:]DIRA"
20726 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20727 # "DIRA[ DIRA]" will be appended to VARIABLE
20728 # "DIR[:DIR]"
20729 # VARIABLE will be replaced by "DIR[ DIR]"
20730 func_munge_path_list ()
20731 {
20732 case x$2 in
20733 x)
20734 ;;
20735 *:)
20736 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20737 ;;
20738 x:*)
20739 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20740 ;;
20741 *::*)
20742 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20743 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20744 ;;
20745 *)
20746 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20747 ;;
20748 esac
20749 }
20750
20751
20752 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20753 func_cc_basename ()
20754 {
20755 for cc_temp in $*""; do
20756 case $cc_temp in
20757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20759 \-*) ;;
20760 *) break;;
20761 esac
20762 done
20763 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20764 }
20765
20766
20767 # ### END FUNCTIONS SHARED WITH CONFIGURE
20768
20769 _LT_EOF
20770
20771 case $host_os in
20772 aix3*)
20773 cat <<\_LT_EOF >> "$cfgfile"
20774 # AIX sometimes has problems with the GCC collect2 program. For some
20775 # reason, if we set the COLLECT_NAMES environment variable, the problems
20776 # vanish in a puff of smoke.
20777 if test set != "${COLLECT_NAMES+set}"; then
20778 COLLECT_NAMES=
20779 export COLLECT_NAMES
20780 fi
20781 _LT_EOF
20782 ;;
20783 esac
20784
20785
20786
20787 ltmain=$ac_aux_dir/ltmain.sh
20788
20789
20790 # We use sed instead of cat because bash on DJGPP gets confused if
20791 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20792 # text mode, it properly converts lines to CR/LF. This bash problem
20793 # is reportedly fixed, but why not run on old versions too?
20794 $SED '$q' "$ltmain" >> "$cfgfile" \
20795 || (rm -f "$cfgfile"; exit 1)
20796
20797 mv -f "$cfgfile" "$ofile" ||
20798 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20799 chmod +x "$ofile"
20800
20801 ;;
20802
20803 esac
20804 done # for ac_tag
20805
20806
20807 as_fn_exit 0
20808 _ACEOF
20809 ac_clean_CONFIG_STATUS=
20810
20811 test $ac_write_fail = 0 ||
20812 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20813
20814
20815 # configure is writing to config.log, and then calls config.status.
20816 # config.status does its own redirection, appending to config.log.
20817 # Unfortunately, on DOS this fails, as config.log is still kept open
20818 # by configure, so config.status won't be able to write to it; its
20819 # output is simply discarded. So we exec the FD to /dev/null,
20820 # effectively closing config.log, so it can be properly (re)opened and
20821 # appended to by config.status. When coming back to configure, we
20822 # need to make the FD available again.
20823 if test "$no_create" != yes; then
20824 ac_cs_success=:
20825 case $CONFIG_STATUS in #(
20826 -*) :
20827 ac_no_opts=-- ;; #(
20828 *) :
20829 ac_no_opts= ;;
20830 esac
20831 ac_config_status_args=
20832 test "$silent" = yes &&
20833 ac_config_status_args="$ac_config_status_args --quiet"
20834 exec 5>/dev/null
20835 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
20836 ac_cs_success=false
20837 exec 5>>config.log
20838 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20839 # would make configure fail if this is the last instruction.
20840 $ac_cs_success || as_fn_exit 1
20841 fi
20842 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20843 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20844 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20845 fi
20846
20847