Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for udisks 2.11.1.
4 #
5 # Report bugs to <https://storaged-project.github.io>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: https://storaged-project.github.io about your system,
283 $0: including any error possibly output before this
284 $0: message. Then install a modern shell, or manually run
285 $0: the script under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='udisks'
616 PACKAGE_TARNAME='udisks'
617 PACKAGE_VERSION='2.11.1'
618 PACKAGE_STRING='udisks 2.11.1'
619 PACKAGE_BUGREPORT='https://storaged-project.github.io'
620 PACKAGE_URL=''
621
622 ac_unique_file="src"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 gt_needs=
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 GETTEXT_PACKAGE
661 POSUB
662 LTLIBINTL
663 LIBINTL
664 INTLLIBS
665 LTLIBICONV
666 LIBICONV
667 INTL_MACOSX_LIBS
668 CPP
669 XGETTEXT_EXTRA_OPTIONS
670 MSGMERGE
671 XGETTEXT_015
672 XGETTEXT
673 GMSGFMT_015
674 MSGFMT_015
675 GMSGFMT
676 MSGFMT
677 GETTEXT_MACRO_VERSION
678 USE_NLS
679 HAVE_LSM_FALSE
680 HAVE_LSM_TRUE
681 LIBCONFIG_LIBS
682 LIBCONFIG_CFLAGS
683 LIBLSM_LIBS
684 LIBLSM_CFLAGS
685 HAVE_BTRFS_FALSE
686 HAVE_BTRFS_TRUE
687 BUILD_ISCSI_SESSION_OBJECT_FALSE
688 BUILD_ISCSI_SESSION_OBJECT_TRUE
689 HAVE_ISCSI_FALSE
690 HAVE_ISCSI_TRUE
691 ISCSI_LIBS
692 HAVE_LVM2_FALSE
693 HAVE_LVM2_TRUE
694 HAVE_ACL_FALSE
695 HAVE_ACL_TRUE
696 ACL_LIBS
697 ACL_CFLAGS
698 modprobedir
699 modloaddir
700 tmpfilesdir
701 HAVE_SYSTEMD_FALSE
702 HAVE_SYSTEMD_TRUE
703 systemdsystemunitdir
704 udevdir
705 HAVE_LIBELOGIND_FALSE
706 HAVE_LIBELOGIND_TRUE
707 HAVE_LIBSYSTEMD_LOGIN_FALSE
708 HAVE_LIBSYSTEMD_LOGIN_TRUE
709 HAVE_SMART_FALSE
710 HAVE_SMART_TRUE
711 HAVE_LIBELOGIND
712 LIBELOGIND_LIBS
713 LIBELOGIND_CFLAGS
714 HAVE_LIBSYSTEMD_LOGIN
715 LIBSYSTEMD_LOGIN_LIBS
716 LIBSYSTEMD_LOGIN_CFLAGS
717 LIBUUID_LIBS
718 LIBUUID_CFLAGS
719 LIBMOUNT_LIBS
720 LIBMOUNT_CFLAGS
721 LIBBLKID_LIBS
722 LIBBLKID_CFLAGS
723 BLOCKDEV_LIBS
724 BLOCKDEV_CFLAGS
725 GMODULE_LIBS
726 GMODULE_CFLAGS
727 HAVE_UDEV_257
728 UDEV_LIBS
729 UDEV_CFLAGS
730 GUDEV_LIBS
731 GUDEV_CFLAGS
732 POLKIT_AGENT_1_LIBS
733 POLKIT_AGENT_1_CFLAGS
734 POLKIT_GOBJECT_1_LIBS
735 POLKIT_GOBJECT_1_CFLAGS
736 GIO_LIBS
737 GIO_CFLAGS
738 GLIB_LIBS
739 GLIB_CFLAGS
740 HAVE_FHS_MEDIA_FALSE
741 HAVE_FHS_MEDIA_TRUE
742 HAVE_INTROSPECTION_FALSE
743 HAVE_INTROSPECTION_TRUE
744 INTROSPECTION_MAKEFILE
745 INTROSPECTION_LIBS
746 INTROSPECTION_CFLAGS
747 INTROSPECTION_TYPELIBDIR
748 INTROSPECTION_GIRDIR
749 INTROSPECTION_GENERATE
750 INTROSPECTION_COMPILER
751 INTROSPECTION_SCANNER
752 _GI_EXP_LIBDIR
753 _GI_EXP_DATADIR
754 ENABLE_DAEMON_FALSE
755 ENABLE_DAEMON_TRUE
756 ENABLE_MAN_FALSE
757 ENABLE_MAN_TRUE
758 XSLTPROC
759 GTK_DOC_USE_REBASE_FALSE
760 GTK_DOC_USE_REBASE_TRUE
761 GTK_DOC_USE_LIBTOOL_FALSE
762 GTK_DOC_USE_LIBTOOL_TRUE
763 GTK_DOC_BUILD_PDF_FALSE
764 GTK_DOC_BUILD_PDF_TRUE
765 GTK_DOC_BUILD_HTML_FALSE
766 GTK_DOC_BUILD_HTML_TRUE
767 ENABLE_GTK_DOC_FALSE
768 ENABLE_GTK_DOC_TRUE
769 HAVE_GTK_DOC_FALSE
770 HAVE_GTK_DOC_TRUE
771 GTKDOC_DEPS_LIBS
772 GTKDOC_DEPS_CFLAGS
773 HTML_DIR
774 GTKDOC_MKPDF
775 GTKDOC_REBASE
776 GTKDOC_CHECK_PATH
777 GTKDOC_CHECK
778 PKG_CONFIG_LIBDIR
779 PKG_CONFIG_PATH
780 PKG_CONFIG
781 BASH
782 LT_SYS_LIBRARY_PATH
783 OTOOL64
784 OTOOL
785 LIPO
786 NMEDIT
787 DSYMUTIL
788 MANIFEST_TOOL
789 RANLIB
790 ac_ct_AR
791 AR
792 DLLTOOL
793 OBJDUMP
794 FILECMD
795 LN_S
796 NM
797 ac_ct_DUMPBIN
798 DUMPBIN
799 LD
800 FGREP
801 EGREP
802 GREP
803 SED
804 host_os
805 host_vendor
806 host_cpu
807 host
808 build_os
809 build_vendor
810 build_cpu
811 build
812 LIBTOOL
813 am__fastdepCC_FALSE
814 am__fastdepCC_TRUE
815 CCDEPMODE
816 am__nodep
817 AMDEPBACKSLASH
818 AMDEP_FALSE
819 AMDEP_TRUE
820 am__include
821 DEPDIR
822 OBJEXT
823 EXEEXT
824 ac_ct_CC
825 CPPFLAGS
826 LDFLAGS
827 CFLAGS
828 CC
829 MAINT
830 MAINTAINER_MODE_FALSE
831 MAINTAINER_MODE_TRUE
832 am__xargs_n
833 am__rm_f_notfound
834 AM_BACKSLASH
835 AM_DEFAULT_VERBOSITY
836 AM_DEFAULT_V
837 AM_V
838 CSCOPE
839 ETAGS
840 CTAGS
841 am__untar
842 am__tar
843 AMTAR
844 am__leading_dot
845 SET_MAKE
846 AWK
847 mkdir_p
848 MKDIR_P
849 INSTALL_STRIP_PROGRAM
850 STRIP
851 install_sh
852 MAKEINFO
853 AUTOHEADER
854 AUTOMAKE
855 AUTOCONF
856 ACLOCAL
857 VERSION
858 PACKAGE
859 CYGPATH_W
860 am__isrc
861 INSTALL_DATA
862 INSTALL_SCRIPT
863 INSTALL_PROGRAM
864 UDISKS_VERSION
865 UDISKS_MICRO_VERSION
866 UDISKS_MINOR_VERSION
867 UDISKS_MAJOR_VERSION
868 target_alias
869 host_alias
870 build_alias
871 LIBS
872 ECHO_T
873 ECHO_N
874 ECHO_C
875 DEFS
876 mandir
877 localedir
878 libdir
879 psdir
880 pdfdir
881 dvidir
882 htmldir
883 infodir
884 docdir
885 oldincludedir
886 includedir
887 runstatedir
888 localstatedir
889 sharedstatedir
890 sysconfdir
891 datadir
892 datarootdir
893 libexecdir
894 sbindir
895 bindir
896 program_transform_name
897 prefix
898 exec_prefix
899 PACKAGE_URL
900 PACKAGE_BUGREPORT
901 PACKAGE_STRING
902 PACKAGE_VERSION
903 PACKAGE_TARNAME
904 PACKAGE_NAME
905 PATH_SEPARATOR
906 SHELL
907 am__quote'
908 ac_subst_files=''
909 ac_user_opts='
910 enable_option_checking
911 enable_silent_rules
912 enable_maintainer_mode
913 enable_debug
914 enable_dependency_tracking
915 enable_shared
916 enable_static
917 enable_pic
918 with_pic
919 enable_fast_install
920 enable_aix_soname
921 with_aix_soname
922 with_gnu_ld
923 with_sysroot
924 enable_libtool_lock
925 with_html_dir
926 enable_gtk_doc
927 enable_gtk_doc_html
928 enable_gtk_doc_pdf
929 enable_man
930 enable_daemon
931 enable_introspection
932 enable_fhs_media
933 with_udevdir
934 with_systemdsystemunitdir
935 with_tmpfilesdir
936 with_modloaddir
937 with_modprobedir
938 enable_acl
939 enable_lvm2
940 enable_iscsi
941 enable_btrfs
942 enable_lsm
943 enable_smart
944 enable_nls
945 enable_rpath
946 with_libiconv_prefix
947 with_libintl_prefix
948 '
949 ac_precious_vars='build_alias
950 host_alias
951 target_alias
952 CC
953 CFLAGS
954 LDFLAGS
955 LIBS
956 CPPFLAGS
957 LT_SYS_LIBRARY_PATH
958 PKG_CONFIG
959 PKG_CONFIG_PATH
960 PKG_CONFIG_LIBDIR
961 GTKDOC_DEPS_CFLAGS
962 GTKDOC_DEPS_LIBS
963 GLIB_CFLAGS
964 GLIB_LIBS
965 GIO_CFLAGS
966 GIO_LIBS
967 POLKIT_GOBJECT_1_CFLAGS
968 POLKIT_GOBJECT_1_LIBS
969 POLKIT_AGENT_1_CFLAGS
970 POLKIT_AGENT_1_LIBS
971 GUDEV_CFLAGS
972 GUDEV_LIBS
973 UDEV_CFLAGS
974 UDEV_LIBS
975 GMODULE_CFLAGS
976 GMODULE_LIBS
977 BLOCKDEV_CFLAGS
978 BLOCKDEV_LIBS
979 LIBBLKID_CFLAGS
980 LIBBLKID_LIBS
981 LIBMOUNT_CFLAGS
982 LIBMOUNT_LIBS
983 LIBUUID_CFLAGS
984 LIBUUID_LIBS
985 LIBSYSTEMD_LOGIN_CFLAGS
986 LIBSYSTEMD_LOGIN_LIBS
987 LIBELOGIND_CFLAGS
988 LIBELOGIND_LIBS
989 LIBLSM_CFLAGS
990 LIBLSM_LIBS
991 LIBCONFIG_CFLAGS
992 LIBCONFIG_LIBS
993 CPP'
994
995
996 # Initialize some variables set by options.
997 ac_init_help=
998 ac_init_version=false
999 ac_unrecognized_opts=
1000 ac_unrecognized_sep=
1001 # The variables have the same names as the options, with
1002 # dashes changed to underlines.
1003 cache_file=/dev/null
1004 exec_prefix=NONE
1005 no_create=
1006 no_recursion=
1007 prefix=NONE
1008 program_prefix=NONE
1009 program_suffix=NONE
1010 program_transform_name=s,x,x,
1011 silent=
1012 site=
1013 srcdir=
1014 verbose=
1015 x_includes=NONE
1016 x_libraries=NONE
1017
1018 # Installation directory options.
1019 # These are left unexpanded so users can "make install exec_prefix=/foo"
1020 # and all the variables that are supposed to be based on exec_prefix
1021 # by default will actually change.
1022 # Use braces instead of parens because sh, perl, etc. also accept them.
1023 # (The list follows the same order as the GNU Coding Standards.)
1024 bindir='${exec_prefix}/bin'
1025 sbindir='${exec_prefix}/sbin'
1026 libexecdir='${exec_prefix}/libexec'
1027 datarootdir='${prefix}/share'
1028 datadir='${datarootdir}'
1029 sysconfdir='${prefix}/etc'
1030 sharedstatedir='${prefix}/com'
1031 localstatedir='${prefix}/var'
1032 runstatedir='${localstatedir}/run'
1033 includedir='${prefix}/include'
1034 oldincludedir='/usr/include'
1035 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1036 infodir='${datarootdir}/info'
1037 htmldir='${docdir}'
1038 dvidir='${docdir}'
1039 pdfdir='${docdir}'
1040 psdir='${docdir}'
1041 libdir='${exec_prefix}/lib'
1042 localedir='${datarootdir}/locale'
1043 mandir='${datarootdir}/man'
1044
1045 ac_prev=
1046 ac_dashdash=
1047 for ac_option
1048 do
1049 # If the previous option needs an argument, assign it.
1050 if test -n "$ac_prev"; then
1051 eval $ac_prev=\$ac_option
1052 ac_prev=
1053 continue
1054 fi
1055
1056 case $ac_option in
1057 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1058 *=) ac_optarg= ;;
1059 *) ac_optarg=yes ;;
1060 esac
1061
1062 case $ac_dashdash$ac_option in
1063 --)
1064 ac_dashdash=yes ;;
1065
1066 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1067 ac_prev=bindir ;;
1068 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1069 bindir=$ac_optarg ;;
1070
1071 -build | --build | --buil | --bui | --bu)
1072 ac_prev=build_alias ;;
1073 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1074 build_alias=$ac_optarg ;;
1075
1076 -cache-file | --cache-file | --cache-fil | --cache-fi \
1077 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1078 ac_prev=cache_file ;;
1079 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1080 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1081 cache_file=$ac_optarg ;;
1082
1083 --config-cache | -C)
1084 cache_file=config.cache ;;
1085
1086 -datadir | --datadir | --datadi | --datad)
1087 ac_prev=datadir ;;
1088 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1089 datadir=$ac_optarg ;;
1090
1091 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1092 | --dataroo | --dataro | --datar)
1093 ac_prev=datarootdir ;;
1094 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1095 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1096 datarootdir=$ac_optarg ;;
1097
1098 -disable-* | --disable-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error $? "invalid feature name: '$ac_useropt'"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107 "enable_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval enable_$ac_useropt=no ;;
1113
1114 -docdir | --docdir | --docdi | --doc | --do)
1115 ac_prev=docdir ;;
1116 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1117 docdir=$ac_optarg ;;
1118
1119 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1120 ac_prev=dvidir ;;
1121 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1122 dvidir=$ac_optarg ;;
1123
1124 -enable-* | --enable-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid feature name: '$ac_useropt'"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133 "enable_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval enable_$ac_useropt=\$ac_optarg ;;
1139
1140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1142 | --exec | --exe | --ex)
1143 ac_prev=exec_prefix ;;
1144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1146 | --exec=* | --exe=* | --ex=*)
1147 exec_prefix=$ac_optarg ;;
1148
1149 -gas | --gas | --ga | --g)
1150 # Obsolete; use --with-gas.
1151 with_gas=yes ;;
1152
1153 -help | --help | --hel | --he | -h)
1154 ac_init_help=long ;;
1155 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1156 ac_init_help=recursive ;;
1157 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1158 ac_init_help=short ;;
1159
1160 -host | --host | --hos | --ho)
1161 ac_prev=host_alias ;;
1162 -host=* | --host=* | --hos=* | --ho=*)
1163 host_alias=$ac_optarg ;;
1164
1165 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1166 ac_prev=htmldir ;;
1167 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1168 | --ht=*)
1169 htmldir=$ac_optarg ;;
1170
1171 -includedir | --includedir | --includedi | --included | --include \
1172 | --includ | --inclu | --incl | --inc)
1173 ac_prev=includedir ;;
1174 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1175 | --includ=* | --inclu=* | --incl=* | --inc=*)
1176 includedir=$ac_optarg ;;
1177
1178 -infodir | --infodir | --infodi | --infod | --info | --inf)
1179 ac_prev=infodir ;;
1180 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1181 infodir=$ac_optarg ;;
1182
1183 -libdir | --libdir | --libdi | --libd)
1184 ac_prev=libdir ;;
1185 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1186 libdir=$ac_optarg ;;
1187
1188 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1189 | --libexe | --libex | --libe)
1190 ac_prev=libexecdir ;;
1191 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1192 | --libexe=* | --libex=* | --libe=*)
1193 libexecdir=$ac_optarg ;;
1194
1195 -localedir | --localedir | --localedi | --localed | --locale)
1196 ac_prev=localedir ;;
1197 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1198 localedir=$ac_optarg ;;
1199
1200 -localstatedir | --localstatedir | --localstatedi | --localstated \
1201 | --localstate | --localstat | --localsta | --localst | --locals)
1202 ac_prev=localstatedir ;;
1203 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1204 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1205 localstatedir=$ac_optarg ;;
1206
1207 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1208 ac_prev=mandir ;;
1209 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1210 mandir=$ac_optarg ;;
1211
1212 -nfp | --nfp | --nf)
1213 # Obsolete; use --without-fp.
1214 with_fp=no ;;
1215
1216 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1217 | --no-cr | --no-c | -n)
1218 no_create=yes ;;
1219
1220 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1221 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1222 no_recursion=yes ;;
1223
1224 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1225 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1226 | --oldin | --oldi | --old | --ol | --o)
1227 ac_prev=oldincludedir ;;
1228 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1229 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1230 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1231 oldincludedir=$ac_optarg ;;
1232
1233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1234 ac_prev=prefix ;;
1235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1236 prefix=$ac_optarg ;;
1237
1238 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1239 | --program-pre | --program-pr | --program-p)
1240 ac_prev=program_prefix ;;
1241 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1242 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1243 program_prefix=$ac_optarg ;;
1244
1245 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1246 | --program-suf | --program-su | --program-s)
1247 ac_prev=program_suffix ;;
1248 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1249 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1250 program_suffix=$ac_optarg ;;
1251
1252 -program-transform-name | --program-transform-name \
1253 | --program-transform-nam | --program-transform-na \
1254 | --program-transform-n | --program-transform- \
1255 | --program-transform | --program-transfor \
1256 | --program-transfo | --program-transf \
1257 | --program-trans | --program-tran \
1258 | --progr-tra | --program-tr | --program-t)
1259 ac_prev=program_transform_name ;;
1260 -program-transform-name=* | --program-transform-name=* \
1261 | --program-transform-nam=* | --program-transform-na=* \
1262 | --program-transform-n=* | --program-transform-=* \
1263 | --program-transform=* | --program-transfor=* \
1264 | --program-transfo=* | --program-transf=* \
1265 | --program-trans=* | --program-tran=* \
1266 | --progr-tra=* | --program-tr=* | --program-t=*)
1267 program_transform_name=$ac_optarg ;;
1268
1269 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1270 ac_prev=pdfdir ;;
1271 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1272 pdfdir=$ac_optarg ;;
1273
1274 -psdir | --psdir | --psdi | --psd | --ps)
1275 ac_prev=psdir ;;
1276 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1277 psdir=$ac_optarg ;;
1278
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 silent=yes ;;
1282
1283 -runstatedir | --runstatedir | --runstatedi | --runstated \
1284 | --runstate | --runstat | --runsta | --runst | --runs \
1285 | --run | --ru | --r)
1286 ac_prev=runstatedir ;;
1287 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1288 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1289 | --run=* | --ru=* | --r=*)
1290 runstatedir=$ac_optarg ;;
1291
1292 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1293 ac_prev=sbindir ;;
1294 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1295 | --sbi=* | --sb=*)
1296 sbindir=$ac_optarg ;;
1297
1298 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1299 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1300 | --sharedst | --shareds | --shared | --share | --shar \
1301 | --sha | --sh)
1302 ac_prev=sharedstatedir ;;
1303 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1304 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1305 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1306 | --sha=* | --sh=*)
1307 sharedstatedir=$ac_optarg ;;
1308
1309 -site | --site | --sit)
1310 ac_prev=site ;;
1311 -site=* | --site=* | --sit=*)
1312 site=$ac_optarg ;;
1313
1314 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1315 ac_prev=srcdir ;;
1316 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1317 srcdir=$ac_optarg ;;
1318
1319 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1320 | --syscon | --sysco | --sysc | --sys | --sy)
1321 ac_prev=sysconfdir ;;
1322 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1323 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1324 sysconfdir=$ac_optarg ;;
1325
1326 -target | --target | --targe | --targ | --tar | --ta | --t)
1327 ac_prev=target_alias ;;
1328 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1329 target_alias=$ac_optarg ;;
1330
1331 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1332 verbose=yes ;;
1333
1334 -version | --version | --versio | --versi | --vers | -V)
1335 ac_init_version=: ;;
1336
1337 -with-* | --with-*)
1338 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1341 as_fn_error $? "invalid package name: '$ac_useropt'"
1342 ac_useropt_orig=$ac_useropt
1343 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1344 case $ac_user_opts in
1345 *"
1346 "with_$ac_useropt"
1347 "*) ;;
1348 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1349 ac_unrecognized_sep=', ';;
1350 esac
1351 eval with_$ac_useropt=\$ac_optarg ;;
1352
1353 -without-* | --without-*)
1354 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1355 # Reject names that are not valid shell variable names.
1356 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1357 as_fn_error $? "invalid package name: '$ac_useropt'"
1358 ac_useropt_orig=$ac_useropt
1359 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1360 case $ac_user_opts in
1361 *"
1362 "with_$ac_useropt"
1363 "*) ;;
1364 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1365 ac_unrecognized_sep=', ';;
1366 esac
1367 eval with_$ac_useropt=no ;;
1368
1369 --x)
1370 # Obsolete; use --with-x.
1371 with_x=yes ;;
1372
1373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1374 | --x-incl | --x-inc | --x-in | --x-i)
1375 ac_prev=x_includes ;;
1376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1378 x_includes=$ac_optarg ;;
1379
1380 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1382 ac_prev=x_libraries ;;
1383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1385 x_libraries=$ac_optarg ;;
1386
1387 -*) as_fn_error $? "unrecognized option: '$ac_option'
1388 Try '$0 --help' for more information"
1389 ;;
1390
1391 *=*)
1392 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1393 # Reject names that are not valid shell variable names.
1394 case $ac_envvar in #(
1395 '' | [0-9]* | *[!_$as_cr_alnum]* )
1396 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1397 esac
1398 eval $ac_envvar=\$ac_optarg
1399 export $ac_envvar ;;
1400
1401 *)
1402 # FIXME: should be removed in autoconf 3.0.
1403 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1404 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1405 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1406 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1407 ;;
1408
1409 esac
1410 done
1411
1412 if test -n "$ac_prev"; then
1413 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1414 as_fn_error $? "missing argument to $ac_option"
1415 fi
1416
1417 if test -n "$ac_unrecognized_opts"; then
1418 case $enable_option_checking in
1419 no) ;;
1420 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1421 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422 esac
1423 fi
1424
1425 # Check all directory arguments for consistency.
1426 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427 datadir sysconfdir sharedstatedir localstatedir includedir \
1428 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429 libdir localedir mandir runstatedir
1430 do
1431 eval ac_val=\$$ac_var
1432 # Remove trailing slashes.
1433 case $ac_val in
1434 */ )
1435 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436 eval $ac_var=\$ac_val;;
1437 esac
1438 # Be sure to have absolute directory names.
1439 case $ac_val in
1440 [\\/$]* | ?:[\\/]* ) continue;;
1441 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442 esac
1443 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1444 done
1445
1446 # There might be people who depend on the old broken behavior: '$host'
1447 # used to hold the argument of --host etc.
1448 # FIXME: To remove some day.
1449 build=$build_alias
1450 host=$host_alias
1451 target=$target_alias
1452
1453 # FIXME: To remove some day.
1454 if test "x$host_alias" != x; then
1455 if test "x$build_alias" = x; then
1456 cross_compiling=maybe
1457 elif test "x$build_alias" != "x$host_alias"; then
1458 cross_compiling=yes
1459 fi
1460 fi
1461
1462 ac_tool_prefix=
1463 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1464
1465 test "$silent" = yes && exec 6>/dev/null
1466
1467
1468 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1469 ac_ls_di=`ls -di .` &&
1470 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1471 as_fn_error $? "working directory cannot be determined"
1472 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1473 as_fn_error $? "pwd does not report name of working directory"
1474
1475
1476 # Find the source files, if location was not specified.
1477 if test -z "$srcdir"; then
1478 ac_srcdir_defaulted=yes
1479 # Try the directory containing this script, then the parent directory.
1480 ac_confdir=`$as_dirname -- "$as_myself" ||
1481 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1482 X"$as_myself" : 'X\(//\)[^/]' \| \
1483 X"$as_myself" : 'X\(//\)$' \| \
1484 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1485 printf "%s\n" X"$as_myself" |
1486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1487 s//\1/
1488 q
1489 }
1490 /^X\(\/\/\)[^/].*/{
1491 s//\1/
1492 q
1493 }
1494 /^X\(\/\/\)$/{
1495 s//\1/
1496 q
1497 }
1498 /^X\(\/\).*/{
1499 s//\1/
1500 q
1501 }
1502 s/.*/./; q'`
1503 srcdir=$ac_confdir
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1505 srcdir=..
1506 fi
1507 else
1508 ac_srcdir_defaulted=no
1509 fi
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1511 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1512 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1513 fi
1514 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1515 ac_abs_confdir=`(
1516 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1517 pwd)`
1518 # When building in place, set srcdir=.
1519 if test "$ac_abs_confdir" = "$ac_pwd"; then
1520 srcdir=.
1521 fi
1522 # Remove unnecessary trailing slashes from srcdir.
1523 # Double slashes in file names in object file debugging info
1524 # mess up M-x gdb in Emacs.
1525 case $srcdir in
1526 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1527 esac
1528 for ac_var in $ac_precious_vars; do
1529 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_env_${ac_var}_value=\$${ac_var}
1531 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1532 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1533 done
1534
1535 #
1536 # Report the --help message.
1537 #
1538 if test "$ac_init_help" = "long"; then
1539 # Omit some internal or obsolete options to make the list less imposing.
1540 # This message is too long to be a string in the A/UX 3.1 sh.
1541 cat <<_ACEOF
1542 'configure' configures udisks 2.11.1 to adapt to many kinds of systems.
1543
1544 Usage: $0 [OPTION]... [VAR=VALUE]...
1545
1546 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1547 VAR=VALUE. See below for descriptions of some of the useful variables.
1548
1549 Defaults for the options are specified in brackets.
1550
1551 Configuration:
1552 -h, --help display this help and exit
1553 --help=short display options specific to this package
1554 --help=recursive display the short help of all the included packages
1555 -V, --version display version information and exit
1556 -q, --quiet, --silent do not print 'checking ...' messages
1557 --cache-file=FILE cache test results in FILE [disabled]
1558 -C, --config-cache alias for '--cache-file=config.cache'
1559 -n, --no-create do not create output files
1560 --srcdir=DIR find the sources in DIR [configure dir or '..']
1561
1562 Installation directories:
1563 --prefix=PREFIX install architecture-independent files in PREFIX
1564 [$ac_default_prefix]
1565 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1566 [PREFIX]
1567
1568 By default, 'make install' will install all the files in
1569 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1570 an installation prefix other than '$ac_default_prefix' using '--prefix',
1571 for instance '--prefix=\$HOME'.
1572
1573 For better control, use the options below.
1574
1575 Fine tuning of the installation directories:
1576 --bindir=DIR user executables [EPREFIX/bin]
1577 --sbindir=DIR system admin executables [EPREFIX/sbin]
1578 --libexecdir=DIR program executables [EPREFIX/libexec]
1579 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1580 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1581 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1582 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1583 --libdir=DIR object code libraries [EPREFIX/lib]
1584 --includedir=DIR C header files [PREFIX/include]
1585 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1586 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1587 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1588 --infodir=DIR info documentation [DATAROOTDIR/info]
1589 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1590 --mandir=DIR man documentation [DATAROOTDIR/man]
1591 --docdir=DIR documentation root [DATAROOTDIR/doc/udisks]
1592 --htmldir=DIR html documentation [DOCDIR]
1593 --dvidir=DIR dvi documentation [DOCDIR]
1594 --pdfdir=DIR pdf documentation [DOCDIR]
1595 --psdir=DIR ps documentation [DOCDIR]
1596 _ACEOF
1597
1598 cat <<\_ACEOF
1599
1600 Program names:
1601 --program-prefix=PREFIX prepend PREFIX to installed program names
1602 --program-suffix=SUFFIX append SUFFIX to installed program names
1603 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1604
1605 System types:
1606 --build=BUILD configure for building on BUILD [guessed]
1607 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1608 _ACEOF
1609 fi
1610
1611 if test -n "$ac_init_help"; then
1612 case $ac_init_help in
1613 short | recursive ) echo "Configuration of udisks 2.11.1:";;
1614 esac
1615 cat <<\_ACEOF
1616
1617 Optional Features:
1618 --disable-option-checking ignore unrecognized --enable/--with options
1619 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1620 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1621 --enable-silent-rules less verbose build output (undo: "make V=1")
1622 --disable-silent-rules verbose build output (undo: "make V=0")
1623 --enable-maintainer-mode
1624 enable make rules and dependencies not useful (and
1625 sometimes confusing) to the casual installer
1626 --enable-debug=[yes/info/profile/no]
1627 compile with debugging
1628 --enable-dependency-tracking
1629 do not reject slow dependency extractors
1630 --disable-dependency-tracking
1631 speeds up one-time build
1632 --enable-shared[=PKGS] build shared libraries [default=yes]
1633 --enable-static[=PKGS] build static libraries [default=yes]
1634 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1635 both]
1636 --enable-fast-install[=PKGS]
1637 optimize for fast installation [default=yes]
1638 --enable-aix-soname=aix|svr4|both
1639 shared library versioning (aka "SONAME") variant to
1640 provide on AIX, [default=aix].
1641 --disable-libtool-lock avoid locking (might break parallel builds)
1642 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1643 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1644 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1645 --enable-man generate man pages [default=auto]
1646 --enable-daemon build udisks daemon [default=yes]
1647 --enable-introspection=[no/auto/yes]
1648 Enable introspection for this build
1649 --enable-fhs-media Mount devices in /media instead of /run/media
1650 [default=no]
1651 --disable-acl disable acl support
1652 --enable-lvm2 enable LVM2 support
1653 --enable-iscsi enable iSCSI support
1654 --enable-btrfs enable BTRFS support
1655 --enable-lsm enable LibStorageMgmt support
1656 --disable-smart disable ATA SMART support
1657 --disable-nls do not use Native Language Support
1658 --disable-rpath do not hardcode runtime library paths
1659
1660 Optional Packages:
1661 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1662 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1663 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1664 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1665 compiler's sysroot if not specified).
1666 --with-html-dir=PATH path to installed docs
1667 --with-udevdir=DIR Directory for udev
1668 --with-systemdsystemunitdir=DIR
1669 Directory for systemd service files
1670 --with-tmpfilesdir=DIR Directory for configuring creation of files at boot
1671 --with-modloaddir=DIR Directory for configuring kernel modules to load at
1672 boot
1673 --with-modprobedir=DIR Directory for modprobe configuration
1674 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1675 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1676 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1677 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1678 --without-libintl-prefix don't search for libintl in includedir and libdir
1679
1680 Some influential environment variables:
1681 CC C compiler command
1682 CFLAGS C compiler flags
1683 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1684 nonstandard directory <lib dir>
1685 LIBS libraries to pass to the linker, e.g. -l<library>
1686 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1687 you have headers in a nonstandard directory <include dir>
1688 LT_SYS_LIBRARY_PATH
1689 User-defined run-time library search path.
1690 PKG_CONFIG path to pkg-config utility
1691 PKG_CONFIG_PATH
1692 directories to add to pkg-config's search path
1693 PKG_CONFIG_LIBDIR
1694 path overriding pkg-config's built-in search path
1695 GTKDOC_DEPS_CFLAGS
1696 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1697 GTKDOC_DEPS_LIBS
1698 linker flags for GTKDOC_DEPS, overriding pkg-config
1699 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1700 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1701 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1702 GIO_LIBS linker flags for GIO, overriding pkg-config
1703 POLKIT_GOBJECT_1_CFLAGS
1704 C compiler flags for POLKIT_GOBJECT_1, overriding pkg-config
1705 POLKIT_GOBJECT_1_LIBS
1706 linker flags for POLKIT_GOBJECT_1, overriding pkg-config
1707 POLKIT_AGENT_1_CFLAGS
1708 C compiler flags for POLKIT_AGENT_1, overriding pkg-config
1709 POLKIT_AGENT_1_LIBS
1710 linker flags for POLKIT_AGENT_1, overriding pkg-config
1711 GUDEV_CFLAGS
1712 C compiler flags for GUDEV, overriding pkg-config
1713 GUDEV_LIBS linker flags for GUDEV, overriding pkg-config
1714 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1715 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1716 GMODULE_CFLAGS
1717 C compiler flags for GMODULE, overriding pkg-config
1718 GMODULE_LIBS
1719 linker flags for GMODULE, overriding pkg-config
1720 BLOCKDEV_CFLAGS
1721 C compiler flags for BLOCKDEV, overriding pkg-config
1722 BLOCKDEV_LIBS
1723 linker flags for BLOCKDEV, overriding pkg-config
1724 LIBBLKID_CFLAGS
1725 C compiler flags for LIBBLKID, overriding pkg-config
1726 LIBBLKID_LIBS
1727 linker flags for LIBBLKID, overriding pkg-config
1728 LIBMOUNT_CFLAGS
1729 C compiler flags for LIBMOUNT, overriding pkg-config
1730 LIBMOUNT_LIBS
1731 linker flags for LIBMOUNT, overriding pkg-config
1732 LIBUUID_CFLAGS
1733 C compiler flags for LIBUUID, overriding pkg-config
1734 LIBUUID_LIBS
1735 linker flags for LIBUUID, overriding pkg-config
1736 LIBSYSTEMD_LOGIN_CFLAGS
1737 C compiler flags for LIBSYSTEMD_LOGIN, overriding pkg-config
1738 LIBSYSTEMD_LOGIN_LIBS
1739 linker flags for LIBSYSTEMD_LOGIN, overriding pkg-config
1740 LIBELOGIND_CFLAGS
1741 C compiler flags for LIBELOGIND, overriding pkg-config
1742 LIBELOGIND_LIBS
1743 linker flags for LIBELOGIND, overriding pkg-config
1744 LIBLSM_CFLAGS
1745 C compiler flags for LIBLSM, overriding pkg-config
1746 LIBLSM_LIBS linker flags for LIBLSM, overriding pkg-config
1747 LIBCONFIG_CFLAGS
1748 C compiler flags for LIBCONFIG, overriding pkg-config
1749 LIBCONFIG_LIBS
1750 linker flags for LIBCONFIG, overriding pkg-config
1751 CPP C preprocessor
1752
1753 Use these variables to override the choices made by 'configure' or to help
1754 it to find libraries and programs with nonstandard names/locations.
1755
1756 Report bugs to <https://storaged-project.github.io>.
1757 _ACEOF
1758 ac_status=$?
1759 fi
1760
1761 if test "$ac_init_help" = "recursive"; then
1762 # If there are subdirs, report their specific --help.
1763 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1764 test -d "$ac_dir" ||
1765 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1766 continue
1767 ac_builddir=.
1768
1769 case "$ac_dir" in
1770 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1771 *)
1772 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1773 # A ".." for each directory in $ac_dir_suffix.
1774 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1775 case $ac_top_builddir_sub in
1776 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1777 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1778 esac ;;
1779 esac
1780 ac_abs_top_builddir=$ac_pwd
1781 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1782 # for backward compatibility:
1783 ac_top_builddir=$ac_top_build_prefix
1784
1785 case $srcdir in
1786 .) # We are building in place.
1787 ac_srcdir=.
1788 ac_top_srcdir=$ac_top_builddir_sub
1789 ac_abs_top_srcdir=$ac_pwd ;;
1790 [\\/]* | ?:[\\/]* ) # Absolute name.
1791 ac_srcdir=$srcdir$ac_dir_suffix;
1792 ac_top_srcdir=$srcdir
1793 ac_abs_top_srcdir=$srcdir ;;
1794 *) # Relative name.
1795 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1796 ac_top_srcdir=$ac_top_build_prefix$srcdir
1797 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1798 esac
1799 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1800
1801 cd "$ac_dir" || { ac_status=$?; continue; }
1802 # Check for configure.gnu first; this name is used for a wrapper for
1803 # Metaconfig's "Configure" on case-insensitive file systems.
1804 if test -f "$ac_srcdir/configure.gnu"; then
1805 echo &&
1806 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1807 elif test -f "$ac_srcdir/configure"; then
1808 echo &&
1809 $SHELL "$ac_srcdir/configure" --help=recursive
1810 else
1811 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1812 fi || ac_status=$?
1813 cd "$ac_pwd" || { ac_status=$?; break; }
1814 done
1815 fi
1816
1817 test -n "$ac_init_help" && exit $ac_status
1818 if $ac_init_version; then
1819 cat <<\_ACEOF
1820 udisks configure 2.11.1
1821 generated by GNU Autoconf 2.72
1822
1823 Copyright (C) 2023 Free Software Foundation, Inc.
1824 This configure script is free software; the Free Software Foundation
1825 gives unlimited permission to copy, distribute and modify it.
1826 _ACEOF
1827 exit
1828 fi
1829
1830 ## ------------------------ ##
1831 ## Autoconf initialization. ##
1832 ## ------------------------ ##
1833
1834 # ac_fn_c_try_compile LINENO
1835 # --------------------------
1836 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_compile ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest.beam
1841 if { { ac_try="$ac_compile"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 printf "%s\n" "$ac_try_echo"; } >&5
1848 (eval "$ac_compile") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest.$ac_objext
1860 then :
1861 ac_retval=0
1862 else case e in #(
1863 e) printf "%s\n" "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1 ;;
1867 esac
1868 fi
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
1871
1872 } # ac_fn_c_try_compile
1873
1874 # ac_fn_c_try_link LINENO
1875 # -----------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_c_try_link ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1881 if { { ac_try="$ac_link"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 printf "%s\n" "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1894 fi
1895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest$ac_exeext && {
1900 test "$cross_compiling" = yes ||
1901 test -x conftest$ac_exeext
1902 }
1903 then :
1904 ac_retval=0
1905 else case e in #(
1906 e) printf "%s\n" "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1 ;;
1910 esac
1911 fi
1912 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1913 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1914 # interfere with the next link command; also delete a directory that is
1915 # left behind by Apple's compiler. We do this before executing the actions.
1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 as_fn_set_status $ac_retval
1919
1920 } # ac_fn_c_try_link
1921
1922 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1923 # -------------------------------------------------------
1924 # Tests whether HEADER exists and can be compiled using the include files in
1925 # INCLUDES, setting the cache variable VAR accordingly.
1926 ac_fn_c_check_header_compile ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 printf %s "checking for $2... " >&6; }
1931 if eval test \${$3+y}
1932 then :
1933 printf %s "(cached) " >&6
1934 else case e in #(
1935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 $4
1938 #include <$2>
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"
1941 then :
1942 eval "$3=yes"
1943 else case e in #(
1944 e) eval "$3=no" ;;
1945 esac
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1948 esac
1949 fi
1950 eval ac_res=\$$3
1951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 printf "%s\n" "$ac_res" >&6; }
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954
1955 } # ac_fn_c_check_header_compile
1956
1957 # ac_fn_c_check_func LINENO FUNC VAR
1958 # ----------------------------------
1959 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1960 ac_fn_c_check_func ()
1961 {
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 printf %s "checking for $2... " >&6; }
1965 if eval test \${$3+y}
1966 then :
1967 printf %s "(cached) " >&6
1968 else case e in #(
1969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1971 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1973 #define $2 innocuous_$2
1974
1975 /* System header to define __stub macros and hopefully few prototypes,
1976 which can conflict with char $2 (void); below. */
1977
1978 #include <limits.h>
1979 #undef $2
1980
1981 /* Override any GCC internal prototype to avoid an error.
1982 Use char because int might match the return type of a GCC
1983 builtin and then its argument prototype would still apply. */
1984 #ifdef __cplusplus
1985 extern "C"
1986 #endif
1987 char $2 (void);
1988 /* The GNU C library defines this for functions which it implements
1989 to always fail with ENOSYS. Some functions are actually named
1990 something starting with __ and the normal name is an alias. */
1991 #if defined __stub_$2 || defined __stub___$2
1992 choke me
1993 #endif
1994
1995 int
1996 main (void)
1997 {
1998 return $2 ();
1999 ;
2000 return 0;
2001 }
2002 _ACEOF
2003 if ac_fn_c_try_link "$LINENO"
2004 then :
2005 eval "$3=yes"
2006 else case e in #(
2007 e) eval "$3=no" ;;
2008 esac
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2011 conftest$ac_exeext conftest.$ac_ext ;;
2012 esac
2013 fi
2014 eval ac_res=\$$3
2015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 printf "%s\n" "$ac_res" >&6; }
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019 } # ac_fn_c_check_func
2020
2021 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2022 # ------------------------------------------------------------------
2023 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2024 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2025 ac_fn_check_decl ()
2026 {
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 as_decl_name=`echo $2|sed 's/ *(.*//'`
2029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2030 printf %s "checking whether $as_decl_name is declared... " >&6; }
2031 if eval test \${$3+y}
2032 then :
2033 printf %s "(cached) " >&6
2034 else case e in #(
2035 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2036 eval ac_save_FLAGS=\$$6
2037 as_fn_append $6 " $5"
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 $4
2041 int
2042 main (void)
2043 {
2044 #ifndef $as_decl_name
2045 #ifdef __cplusplus
2046 (void) $as_decl_use;
2047 #else
2048 (void) $as_decl_name;
2049 #endif
2050 #endif
2051
2052 ;
2053 return 0;
2054 }
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"
2057 then :
2058 eval "$3=yes"
2059 else case e in #(
2060 e) eval "$3=no" ;;
2061 esac
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2064 eval $6=\$ac_save_FLAGS
2065 ;;
2066 esac
2067 fi
2068 eval ac_res=\$$3
2069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 printf "%s\n" "$ac_res" >&6; }
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072
2073 } # ac_fn_check_decl
2074
2075 # ac_fn_c_try_cpp LINENO
2076 # ----------------------
2077 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_c_try_cpp ()
2079 {
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 if { { ac_try="$ac_cpp conftest.$ac_ext"
2082 case "(($ac_try" in
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2085 esac
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 printf "%s\n" "$ac_try_echo"; } >&5
2088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2089 ac_status=$?
2090 if test -s conftest.err; then
2091 grep -v '^ *+' conftest.err >conftest.er1
2092 cat conftest.er1 >&5
2093 mv -f conftest.er1 conftest.err
2094 fi
2095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; } > conftest.i && {
2097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2098 test ! -s conftest.err
2099 }
2100 then :
2101 ac_retval=0
2102 else case e in #(
2103 e) printf "%s\n" "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2105
2106 ac_retval=1 ;;
2107 esac
2108 fi
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 as_fn_set_status $ac_retval
2111
2112 } # ac_fn_c_try_cpp
2113
2114 # ac_fn_c_try_run LINENO
2115 # ----------------------
2116 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2117 # executables *can* be run.
2118 ac_fn_c_try_run ()
2119 {
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 if { { ac_try="$ac_link"
2122 case "(($ac_try" in
2123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124 *) ac_try_echo=$ac_try;;
2125 esac
2126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127 printf "%s\n" "$ac_try_echo"; } >&5
2128 (eval "$ac_link") 2>&5
2129 ac_status=$?
2130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2132 { { case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135 esac
2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 printf "%s\n" "$ac_try_echo"; } >&5
2138 (eval "$ac_try") 2>&5
2139 ac_status=$?
2140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141 test $ac_status = 0; }; }
2142 then :
2143 ac_retval=0
2144 else case e in #(
2145 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2146 printf "%s\n" "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.$ac_ext >&5
2148
2149 ac_retval=$ac_status ;;
2150 esac
2151 fi
2152 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154 as_fn_set_status $ac_retval
2155
2156 } # ac_fn_c_try_run
2157 ac_configure_args_raw=
2158 for ac_arg
2159 do
2160 case $ac_arg in
2161 *\'*)
2162 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2163 esac
2164 as_fn_append ac_configure_args_raw " '$ac_arg'"
2165 done
2166
2167 case $ac_configure_args_raw in
2168 *$as_nl*)
2169 ac_safe_unquote= ;;
2170 *)
2171 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2172 ac_unsafe_a="$ac_unsafe_z#~"
2173 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2174 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2175 esac
2176
2177 cat >config.log <<_ACEOF
2178 This file contains any messages produced by compilers while
2179 running configure, to aid debugging if configure makes a mistake.
2180
2181 It was created by udisks $as_me 2.11.1, which was
2182 generated by GNU Autoconf 2.72. Invocation command line was
2183
2184 $ $0$ac_configure_args_raw
2185
2186 _ACEOF
2187 exec 5>>config.log
2188 {
2189 cat <<_ASUNAME
2190 ## --------- ##
2191 ## Platform. ##
2192 ## --------- ##
2193
2194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2199
2200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2202
2203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2206 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2210
2211 _ASUNAME
2212
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH
2215 do
2216 IFS=$as_save_IFS
2217 case $as_dir in #(((
2218 '') as_dir=./ ;;
2219 */) ;;
2220 *) as_dir=$as_dir/ ;;
2221 esac
2222 printf "%s\n" "PATH: $as_dir"
2223 done
2224 IFS=$as_save_IFS
2225
2226 } >&5
2227
2228 cat >&5 <<_ACEOF
2229
2230
2231 ## ----------- ##
2232 ## Core tests. ##
2233 ## ----------- ##
2234
2235 _ACEOF
2236
2237
2238 # Keep a trace of the command line.
2239 # Strip out --no-create and --no-recursion so they do not pile up.
2240 # Strip out --silent because we don't want to record it for future runs.
2241 # Also quote any args containing shell meta-characters.
2242 # Make two passes to allow for proper duplicate-argument suppression.
2243 ac_configure_args=
2244 ac_configure_args0=
2245 ac_configure_args1=
2246 ac_must_keep_next=false
2247 for ac_pass in 1 2
2248 do
2249 for ac_arg
2250 do
2251 case $ac_arg in
2252 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2254 | -silent | --silent | --silen | --sile | --sil)
2255 continue ;;
2256 *\'*)
2257 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2258 esac
2259 case $ac_pass in
2260 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2261 2)
2262 as_fn_append ac_configure_args1 " '$ac_arg'"
2263 if test $ac_must_keep_next = true; then
2264 ac_must_keep_next=false # Got value, back to normal.
2265 else
2266 case $ac_arg in
2267 *=* | --config-cache | -C | -disable-* | --disable-* \
2268 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2269 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2270 | -with-* | --with-* | -without-* | --without-* | --x)
2271 case "$ac_configure_args0 " in
2272 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2273 esac
2274 ;;
2275 -* ) ac_must_keep_next=true ;;
2276 esac
2277 fi
2278 as_fn_append ac_configure_args " '$ac_arg'"
2279 ;;
2280 esac
2281 done
2282 done
2283 { ac_configure_args0=; unset ac_configure_args0;}
2284 { ac_configure_args1=; unset ac_configure_args1;}
2285
2286 # When interrupted or exit'd, cleanup temporary files, and complete
2287 # config.log. We remove comments because anyway the quotes in there
2288 # would cause problems or look ugly.
2289 # WARNING: Use '\'' to represent an apostrophe within the trap.
2290 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2291 trap 'exit_status=$?
2292 # Sanitize IFS.
2293 IFS=" "" $as_nl"
2294 # Save into config.log some information that might help in debugging.
2295 {
2296 echo
2297
2298 printf "%s\n" "## ---------------- ##
2299 ## Cache variables. ##
2300 ## ---------------- ##"
2301 echo
2302 # The following way of writing the cache mishandles newlines in values,
2303 (
2304 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2305 eval ac_val=\$$ac_var
2306 case $ac_val in #(
2307 *${as_nl}*)
2308 case $ac_var in #(
2309 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2310 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2311 esac
2312 case $ac_var in #(
2313 _ | IFS | as_nl) ;; #(
2314 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2315 *) { eval $ac_var=; unset $ac_var;} ;;
2316 esac ;;
2317 esac
2318 done
2319 (set) 2>&1 |
2320 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2321 *${as_nl}ac_space=\ *)
2322 sed -n \
2323 "s/'\''/'\''\\\\'\'''\''/g;
2324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2325 ;; #(
2326 *)
2327 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2328 ;;
2329 esac |
2330 sort
2331 )
2332 echo
2333
2334 printf "%s\n" "## ----------------- ##
2335 ## Output variables. ##
2336 ## ----------------- ##"
2337 echo
2338 for ac_var in $ac_subst_vars
2339 do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 printf "%s\n" "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2347
2348 if test -n "$ac_subst_files"; then
2349 printf "%s\n" "## ------------------- ##
2350 ## File substitutions. ##
2351 ## ------------------- ##"
2352 echo
2353 for ac_var in $ac_subst_files
2354 do
2355 eval ac_val=\$$ac_var
2356 case $ac_val in
2357 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2358 esac
2359 printf "%s\n" "$ac_var='\''$ac_val'\''"
2360 done | sort
2361 echo
2362 fi
2363
2364 if test -s confdefs.h; then
2365 printf "%s\n" "## ----------- ##
2366 ## confdefs.h. ##
2367 ## ----------- ##"
2368 echo
2369 cat confdefs.h
2370 echo
2371 fi
2372 test "$ac_signal" != 0 &&
2373 printf "%s\n" "$as_me: caught signal $ac_signal"
2374 printf "%s\n" "$as_me: exit $exit_status"
2375 } >&5
2376 rm -f core *.core core.conftest.* &&
2377 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2378 exit $exit_status
2379 ' 0
2380 for ac_signal in 1 2 13 15; do
2381 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2382 done
2383 ac_signal=0
2384
2385 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2386 rm -f -r conftest* confdefs.h
2387
2388 printf "%s\n" "/* confdefs.h */" > confdefs.h
2389
2390 # Predefined preprocessor variables.
2391
2392 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2393
2394 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2395
2396 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2397
2398 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2399
2400 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2401
2402 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2403
2404
2405 # Let the site file select an alternate cache file if it wants to.
2406 # Prefer an explicitly selected file to automatically selected ones.
2407 if test -n "$CONFIG_SITE"; then
2408 ac_site_files="$CONFIG_SITE"
2409 elif test "x$prefix" != xNONE; then
2410 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2411 else
2412 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2413 fi
2414
2415 for ac_site_file in $ac_site_files
2416 do
2417 case $ac_site_file in #(
2418 */*) :
2419 ;; #(
2420 *) :
2421 ac_site_file=./$ac_site_file ;;
2422 esac
2423 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2425 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2426 sed 's/^/| /' "$ac_site_file" >&5
2427 . "$ac_site_file" \
2428 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2429 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2430 as_fn_error $? "failed to load site script $ac_site_file
2431 See 'config.log' for more details" "$LINENO" 5; }
2432 fi
2433 done
2434
2435 if test -r "$cache_file"; then
2436 # Some versions of bash will fail to source /dev/null (special files
2437 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2438 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2440 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2441 case $cache_file in
2442 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2443 *) . "./$cache_file";;
2444 esac
2445 fi
2446 else
2447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2448 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2449 >$cache_file
2450 fi
2451
2452 # Test code for whether the C compiler supports C89 (global declarations)
2453 ac_c_conftest_c89_globals='
2454 /* Does the compiler advertise C89 conformance?
2455 Do not test the value of __STDC__, because some compilers set it to 0
2456 while being otherwise adequately conformant. */
2457 #if !defined __STDC__
2458 # error "Compiler does not advertise C89 conformance"
2459 #endif
2460
2461 #include <stddef.h>
2462 #include <stdarg.h>
2463 struct stat;
2464 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2465 struct buf { int x; };
2466 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2467 static char *e (char **p, int i)
2468 {
2469 return p[i];
2470 }
2471 static char *f (char * (*g) (char **, int), char **p, ...)
2472 {
2473 char *s;
2474 va_list v;
2475 va_start (v,p);
2476 s = g (p, va_arg (v,int));
2477 va_end (v);
2478 return s;
2479 }
2480
2481 /* C89 style stringification. */
2482 #define noexpand_stringify(a) #a
2483 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2484
2485 /* C89 style token pasting. Exercises some of the corner cases that
2486 e.g. old MSVC gets wrong, but not very hard. */
2487 #define noexpand_concat(a,b) a##b
2488 #define expand_concat(a,b) noexpand_concat(a,b)
2489 extern int vA;
2490 extern int vbee;
2491 #define aye A
2492 #define bee B
2493 int *pvA = &expand_concat(v,aye);
2494 int *pvbee = &noexpand_concat(v,bee);
2495
2496 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2497 function prototypes and stuff, but not \xHH hex character constants.
2498 These do not provoke an error unfortunately, instead are silently treated
2499 as an "x". The following induces an error, until -std is added to get
2500 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2501 array size at least. It is necessary to write \x00 == 0 to get something
2502 that is true only with -std. */
2503 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2504
2505 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2506 inside strings and character constants. */
2507 #define FOO(x) '\''x'\''
2508 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2509
2510 int test (int i, double x);
2511 struct s1 {int (*f) (int a);};
2512 struct s2 {int (*f) (double a);};
2513 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2514 int, int);'
2515
2516 # Test code for whether the C compiler supports C89 (body of main).
2517 ac_c_conftest_c89_main='
2518 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2519 '
2520
2521 # Test code for whether the C compiler supports C99 (global declarations)
2522 ac_c_conftest_c99_globals='
2523 /* Does the compiler advertise C99 conformance? */
2524 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2525 # error "Compiler does not advertise C99 conformance"
2526 #endif
2527
2528 // See if C++-style comments work.
2529
2530 #include <stdbool.h>
2531 extern int puts (const char *);
2532 extern int printf (const char *, ...);
2533 extern int dprintf (int, const char *, ...);
2534 extern void *malloc (size_t);
2535 extern void free (void *);
2536
2537 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2538 // dprintf is used instead of fprintf to avoid needing to declare
2539 // FILE and stderr.
2540 #define debug(...) dprintf (2, __VA_ARGS__)
2541 #define showlist(...) puts (#__VA_ARGS__)
2542 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2543 static void
2544 test_varargs_macros (void)
2545 {
2546 int x = 1234;
2547 int y = 5678;
2548 debug ("Flag");
2549 debug ("X = %d\n", x);
2550 showlist (The first, second, and third items.);
2551 report (x>y, "x is %d but y is %d", x, y);
2552 }
2553
2554 // Check long long types.
2555 #define BIG64 18446744073709551615ull
2556 #define BIG32 4294967295ul
2557 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2558 #if !BIG_OK
2559 #error "your preprocessor is broken"
2560 #endif
2561 #if BIG_OK
2562 #else
2563 #error "your preprocessor is broken"
2564 #endif
2565 static long long int bignum = -9223372036854775807LL;
2566 static unsigned long long int ubignum = BIG64;
2567
2568 struct incomplete_array
2569 {
2570 int datasize;
2571 double data[];
2572 };
2573
2574 struct named_init {
2575 int number;
2576 const wchar_t *name;
2577 double average;
2578 };
2579
2580 typedef const char *ccp;
2581
2582 static inline int
2583 test_restrict (ccp restrict text)
2584 {
2585 // Iterate through items via the restricted pointer.
2586 // Also check for declarations in for loops.
2587 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2588 continue;
2589 return 0;
2590 }
2591
2592 // Check varargs and va_copy.
2593 static bool
2594 test_varargs (const char *format, ...)
2595 {
2596 va_list args;
2597 va_start (args, format);
2598 va_list args_copy;
2599 va_copy (args_copy, args);
2600
2601 const char *str = "";
2602 int number = 0;
2603 float fnumber = 0;
2604
2605 while (*format)
2606 {
2607 switch (*format++)
2608 {
2609 case '\''s'\'': // string
2610 str = va_arg (args_copy, const char *);
2611 break;
2612 case '\''d'\'': // int
2613 number = va_arg (args_copy, int);
2614 break;
2615 case '\''f'\'': // float
2616 fnumber = va_arg (args_copy, double);
2617 break;
2618 default:
2619 break;
2620 }
2621 }
2622 va_end (args_copy);
2623 va_end (args);
2624
2625 return *str && number && fnumber;
2626 }
2627 '
2628
2629 # Test code for whether the C compiler supports C99 (body of main).
2630 ac_c_conftest_c99_main='
2631 // Check bool.
2632 _Bool success = false;
2633 success |= (argc != 0);
2634
2635 // Check restrict.
2636 if (test_restrict ("String literal") == 0)
2637 success = true;
2638 char *restrict newvar = "Another string";
2639
2640 // Check varargs.
2641 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2642 test_varargs_macros ();
2643
2644 // Check flexible array members.
2645 struct incomplete_array *ia =
2646 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2647 ia->datasize = 10;
2648 for (int i = 0; i < ia->datasize; ++i)
2649 ia->data[i] = i * 1.234;
2650 // Work around memory leak warnings.
2651 free (ia);
2652
2653 // Check named initializers.
2654 struct named_init ni = {
2655 .number = 34,
2656 .name = L"Test wide string",
2657 .average = 543.34343,
2658 };
2659
2660 ni.number = 58;
2661
2662 int dynamic_array[ni.number];
2663 dynamic_array[0] = argv[0][0];
2664 dynamic_array[ni.number - 1] = 543;
2665
2666 // work around unused variable warnings
2667 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2668 || dynamic_array[ni.number - 1] != 543);
2669 '
2670
2671 # Test code for whether the C compiler supports C11 (global declarations)
2672 ac_c_conftest_c11_globals='
2673 /* Does the compiler advertise C11 conformance? */
2674 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2675 # error "Compiler does not advertise C11 conformance"
2676 #endif
2677
2678 // Check _Alignas.
2679 char _Alignas (double) aligned_as_double;
2680 char _Alignas (0) no_special_alignment;
2681 extern char aligned_as_int;
2682 char _Alignas (0) _Alignas (int) aligned_as_int;
2683
2684 // Check _Alignof.
2685 enum
2686 {
2687 int_alignment = _Alignof (int),
2688 int_array_alignment = _Alignof (int[100]),
2689 char_alignment = _Alignof (char)
2690 };
2691 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2692
2693 // Check _Noreturn.
2694 int _Noreturn does_not_return (void) { for (;;) continue; }
2695
2696 // Check _Static_assert.
2697 struct test_static_assert
2698 {
2699 int x;
2700 _Static_assert (sizeof (int) <= sizeof (long int),
2701 "_Static_assert does not work in struct");
2702 long int y;
2703 };
2704
2705 // Check UTF-8 literals.
2706 #define u8 syntax error!
2707 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2708
2709 // Check duplicate typedefs.
2710 typedef long *long_ptr;
2711 typedef long int *long_ptr;
2712 typedef long_ptr long_ptr;
2713
2714 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2715 struct anonymous
2716 {
2717 union {
2718 struct { int i; int j; };
2719 struct { int k; long int l; } w;
2720 };
2721 int m;
2722 } v1;
2723 '
2724
2725 # Test code for whether the C compiler supports C11 (body of main).
2726 ac_c_conftest_c11_main='
2727 _Static_assert ((offsetof (struct anonymous, i)
2728 == offsetof (struct anonymous, w.k)),
2729 "Anonymous union alignment botch");
2730 v1.i = 2;
2731 v1.w.k = 5;
2732 ok |= v1.i != 5;
2733 '
2734
2735 # Test code for whether the C compiler supports C11 (complete).
2736 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2737 ${ac_c_conftest_c99_globals}
2738 ${ac_c_conftest_c11_globals}
2739
2740 int
2741 main (int argc, char **argv)
2742 {
2743 int ok = 0;
2744 ${ac_c_conftest_c89_main}
2745 ${ac_c_conftest_c99_main}
2746 ${ac_c_conftest_c11_main}
2747 return ok;
2748 }
2749 "
2750
2751 # Test code for whether the C compiler supports C99 (complete).
2752 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2753 ${ac_c_conftest_c99_globals}
2754
2755 int
2756 main (int argc, char **argv)
2757 {
2758 int ok = 0;
2759 ${ac_c_conftest_c89_main}
2760 ${ac_c_conftest_c99_main}
2761 return ok;
2762 }
2763 "
2764
2765 # Test code for whether the C compiler supports C89 (complete).
2766 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2767
2768 int
2769 main (int argc, char **argv)
2770 {
2771 int ok = 0;
2772 ${ac_c_conftest_c89_main}
2773 return ok;
2774 }
2775 "
2776
2777 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2778 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2779 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2780 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2781 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2782 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2783 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2784 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2785 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2786 gt_needs="$gt_needs "
2787
2788 # Auxiliary files required by this configure script.
2789 ac_aux_files="config.rpath config.guess config.sub ltmain.sh compile missing install-sh"
2790
2791 # Locations in which to look for auxiliary files.
2792 ac_aux_dir_candidates="${srcdir}/build-aux"
2793
2794 # Search for a directory containing all of the required auxiliary files,
2795 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2796 # If we don't find one directory that contains all the files we need,
2797 # we report the set of missing files from the *first* directory in
2798 # $ac_aux_dir_candidates and give up.
2799 ac_missing_aux_files=""
2800 ac_first_candidate=:
2801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 as_found=false
2804 for as_dir in $ac_aux_dir_candidates
2805 do
2806 IFS=$as_save_IFS
2807 case $as_dir in #(((
2808 '') as_dir=./ ;;
2809 */) ;;
2810 *) as_dir=$as_dir/ ;;
2811 esac
2812 as_found=:
2813
2814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2815 ac_aux_dir_found=yes
2816 ac_install_sh=
2817 for ac_aux in $ac_aux_files
2818 do
2819 # As a special case, if "install-sh" is required, that requirement
2820 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2821 # and $ac_install_sh is set appropriately for whichever one is found.
2822 if test x"$ac_aux" = x"install-sh"
2823 then
2824 if test -f "${as_dir}install-sh"; then
2825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2826 ac_install_sh="${as_dir}install-sh -c"
2827 elif test -f "${as_dir}install.sh"; then
2828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2829 ac_install_sh="${as_dir}install.sh -c"
2830 elif test -f "${as_dir}shtool"; then
2831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2832 ac_install_sh="${as_dir}shtool install -c"
2833 else
2834 ac_aux_dir_found=no
2835 if $ac_first_candidate; then
2836 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2837 else
2838 break
2839 fi
2840 fi
2841 else
2842 if test -f "${as_dir}${ac_aux}"; then
2843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2844 else
2845 ac_aux_dir_found=no
2846 if $ac_first_candidate; then
2847 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2848 else
2849 break
2850 fi
2851 fi
2852 fi
2853 done
2854 if test "$ac_aux_dir_found" = yes; then
2855 ac_aux_dir="$as_dir"
2856 break
2857 fi
2858 ac_first_candidate=false
2859
2860 as_found=false
2861 done
2862 IFS=$as_save_IFS
2863 if $as_found
2864 then :
2865
2866 else case e in #(
2867 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2868 esac
2869 fi
2870
2871
2872 # These three variables are undocumented and unsupported,
2873 # and are intended to be withdrawn in a future Autoconf release.
2874 # They can cause serious problems if a builder's source tree is in a directory
2875 # whose full name contains unusual characters.
2876 if test -f "${ac_aux_dir}config.guess"; then
2877 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2878 fi
2879 if test -f "${ac_aux_dir}config.sub"; then
2880 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2881 fi
2882 if test -f "$ac_aux_dir/configure"; then
2883 ac_configure="$SHELL ${ac_aux_dir}configure"
2884 fi
2885
2886 # Check that the precious variables saved in the cache have kept the same
2887 # value.
2888 ac_cache_corrupted=false
2889 for ac_var in $ac_precious_vars; do
2890 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2891 eval ac_new_set=\$ac_env_${ac_var}_set
2892 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2893 eval ac_new_val=\$ac_env_${ac_var}_value
2894 case $ac_old_set,$ac_new_set in
2895 set,)
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2897 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2898 ac_cache_corrupted=: ;;
2899 ,set)
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2901 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2902 ac_cache_corrupted=: ;;
2903 ,);;
2904 *)
2905 if test "x$ac_old_val" != "x$ac_new_val"; then
2906 # differences in whitespace do not lead to failure.
2907 ac_old_val_w=`echo x $ac_old_val`
2908 ac_new_val_w=`echo x $ac_new_val`
2909 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2911 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2912 ac_cache_corrupted=:
2913 else
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2915 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2916 eval $ac_var=\$ac_old_val
2917 fi
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2919 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2921 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2922 fi;;
2923 esac
2924 # Pass precious variables to config.status.
2925 if test "$ac_new_set" = set; then
2926 case $ac_new_val in
2927 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2928 *) ac_arg=$ac_var=$ac_new_val ;;
2929 esac
2930 case " $ac_configure_args " in
2931 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2932 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2933 esac
2934 fi
2935 done
2936 if $ac_cache_corrupted; then
2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2938 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2940 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2941 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2942 and start over" "$LINENO" 5
2943 fi
2944 ## -------------------- ##
2945 ## Main body of script. ##
2946 ## -------------------- ##
2947
2948 ac_ext=c
2949 ac_cpp='$CPP $CPPFLAGS'
2950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953
2954
2955
2956 UDISKS_MAJOR_VERSION=2
2957 UDISKS_MINOR_VERSION=11
2958 UDISKS_MICRO_VERSION=1
2959 UDISKS_VERSION=2.11.1
2960
2961
2962
2963
2964
2965
2966
2967 ac_config_headers="$ac_config_headers config.h"
2968
2969
2970
2971 am__api_version='1.18'
2972
2973
2974
2975 # Find a good install program. We prefer a C program (faster),
2976 # so one script is as good as another. But avoid the broken or
2977 # incompatible versions:
2978 # SysV /etc/install, /usr/sbin/install
2979 # SunOS /usr/etc/install
2980 # IRIX /sbin/install
2981 # AIX /bin/install
2982 # AmigaOS /C/install, which installs bootblocks on floppy discs
2983 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2984 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2985 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2986 # OS/2's system install, which has a completely different semantic
2987 # ./install, which can be erroneously created by make from ./install.sh.
2988 # Reject install programs that cannot install multiple files.
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2990 printf %s "checking for a BSD-compatible install... " >&6; }
2991 if test -z "$INSTALL"; then
2992 if test ${ac_cv_path_install+y}
2993 then :
2994 printf %s "(cached) " >&6
2995 else case e in #(
2996 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999 IFS=$as_save_IFS
3000 case $as_dir in #(((
3001 '') as_dir=./ ;;
3002 */) ;;
3003 *) as_dir=$as_dir/ ;;
3004 esac
3005 # Account for fact that we put trailing slashes in our PATH walk.
3006 case $as_dir in #((
3007 ./ | /[cC]/* | \
3008 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3009 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3010 /usr/ucb/* ) ;;
3011 *)
3012 # OSF1 and SCO ODT 3.0 have their own names for install.
3013 # Don't use installbsd from OSF since it installs stuff as root
3014 # by default.
3015 for ac_prog in ginstall scoinst install; do
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3018 if test $ac_prog = install &&
3019 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3020 # AIX install. It has an incompatible calling convention.
3021 :
3022 elif test $ac_prog = install &&
3023 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3024 # program-specific install script used by HP pwplus--don't use.
3025 :
3026 else
3027 rm -rf conftest.one conftest.two conftest.dir
3028 echo one > conftest.one
3029 echo two > conftest.two
3030 mkdir conftest.dir
3031 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3032 test -s conftest.one && test -s conftest.two &&
3033 test -s conftest.dir/conftest.one &&
3034 test -s conftest.dir/conftest.two
3035 then
3036 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3037 break 3
3038 fi
3039 fi
3040 fi
3041 done
3042 done
3043 ;;
3044 esac
3045
3046 done
3047 IFS=$as_save_IFS
3048
3049 rm -rf conftest.one conftest.two conftest.dir
3050 ;;
3051 esac
3052 fi
3053 if test ${ac_cv_path_install+y}; then
3054 INSTALL=$ac_cv_path_install
3055 else
3056 # As a last resort, use the slow shell script. Don't cache a
3057 # value for INSTALL within a source directory, because that will
3058 # break other packages using the cache if that directory is
3059 # removed, or if the value is a relative name.
3060 INSTALL=$ac_install_sh
3061 fi
3062 fi
3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3064 printf "%s\n" "$INSTALL" >&6; }
3065
3066 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3067 # It thinks the first close brace ends the variable substitution.
3068 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3069
3070 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3071
3072 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3073
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3075 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3076 if test ${am_cv_sleep_fractional_seconds+y}
3077 then :
3078 printf %s "(cached) " >&6
3079 else case e in #(
3080 e) if sleep 0.001 2>/dev/null
3081 then :
3082 am_cv_sleep_fractional_seconds=yes
3083 else case e in #(
3084 e) am_cv_sleep_fractional_seconds=no ;;
3085 esac
3086 fi
3087 ;;
3088 esac
3089 fi
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3091 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3092
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3094 printf %s "checking filesystem timestamp resolution... " >&6; }
3095 if test ${am_cv_filesystem_timestamp_resolution+y}
3096 then :
3097 printf %s "(cached) " >&6
3098 else case e in #(
3099 e) # Default to the worst case.
3100 am_cv_filesystem_timestamp_resolution=2
3101
3102 # Only try to go finer than 1 sec if sleep can do it.
3103 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3104 # - 1 sec is not much of a win compared to 2 sec, and
3105 # - it takes 2 seconds to perform the test whether 1 sec works.
3106 #
3107 # Instead, just use the default 2s on platforms that have 1s resolution,
3108 # accept the extra 1s delay when using $sleep in the Automake tests, in
3109 # exchange for not incurring the 2s delay for running the test for all
3110 # packages.
3111 #
3112 am_try_resolutions=
3113 if test "$am_cv_sleep_fractional_seconds" = yes; then
3114 # Even a millisecond often causes a bunch of false positives,
3115 # so just try a hundredth of a second. The time saved between .001 and
3116 # .01 is not terribly consequential.
3117 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3118 fi
3119
3120 # In order to catch current-generation FAT out, we must *modify* files
3121 # that already exist; the *creation* timestamp is finer. Use names
3122 # that make ls -t sort them differently when they have equal
3123 # timestamps than when they have distinct timestamps, keeping
3124 # in mind that ls -t prints the *newest* file first.
3125 rm -f conftest.ts?
3126 : > conftest.ts1
3127 : > conftest.ts2
3128 : > conftest.ts3
3129
3130 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3131 # clobber the current shell's arguments. (Outer-level square brackets
3132 # are removed by m4; they're present so that m4 does not expand
3133 # <dollar><star>; be careful, easy to get confused.)
3134 if (
3135 set X `ls -t conftest.ts[12]` &&
3136 {
3137 test "$*" != "X conftest.ts1 conftest.ts2" ||
3138 test "$*" != "X conftest.ts2 conftest.ts1";
3139 }
3140 ); then :; else
3141 # If neither matched, then we have a broken ls. This can happen
3142 # if, for instance, CONFIG_SHELL is bash and it inherits a
3143 # broken ls alias from the environment. This has actually
3144 # happened. Such a system could not be considered "sane".
3145 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3146 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3147 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3148 as_fn_error $? "ls -t produces unexpected output.
3149 Make sure there is not a broken ls alias in your environment.
3150 See 'config.log' for more details" "$LINENO" 5; }
3151 fi
3152
3153 for am_try_res in $am_try_resolutions; do
3154 # Any one fine-grained sleep might happen to cross the boundary
3155 # between two values of a coarser actual resolution, but if we do
3156 # two fine-grained sleeps in a row, at least one of them will fall
3157 # entirely within a coarse interval.
3158 echo alpha > conftest.ts1
3159 sleep $am_try_res
3160 echo beta > conftest.ts2
3161 sleep $am_try_res
3162 echo gamma > conftest.ts3
3163
3164 # We assume that 'ls -t' will make use of high-resolution
3165 # timestamps if the operating system supports them at all.
3166 if (set X `ls -t conftest.ts?` &&
3167 test "$2" = conftest.ts3 &&
3168 test "$3" = conftest.ts2 &&
3169 test "$4" = conftest.ts1); then
3170 #
3171 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3172 # because we don't need to test make.
3173 make_ok=true
3174 if test $am_try_res != 1; then
3175 # But if we've succeeded so far with a subsecond resolution, we
3176 # have one more thing to check: make. It can happen that
3177 # everything else supports the subsecond mtimes, but make doesn't;
3178 # notably on macOS, which ships make 3.81 from 2006 (the last one
3179 # released under GPLv2). https://bugs.gnu.org/68808
3180 #
3181 # We test $MAKE if it is defined in the environment, else "make".
3182 # It might get overridden later, but our hope is that in practice
3183 # it does not matter: it is the system "make" which is (by far)
3184 # the most likely to be broken, whereas if the user overrides it,
3185 # probably they did so with a better, or at least not worse, make.
3186 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3187 #
3188 # Create a Makefile (real tab character here):
3189 rm -f conftest.mk
3190 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3191 echo ' touch conftest.ts2' >>conftest.mk
3192 #
3193 # Now, running
3194 # touch conftest.ts1; touch conftest.ts2; make
3195 # should touch ts1 because ts2 is newer. This could happen by luck,
3196 # but most often, it will fail if make's support is insufficient. So
3197 # test for several consecutive successes.
3198 #
3199 # (We reuse conftest.ts[12] because we still want to modify existing
3200 # files, not create new ones, per above.)
3201 n=0
3202 make=${MAKE-make}
3203 until test $n -eq 3; do
3204 echo one > conftest.ts1
3205 sleep $am_try_res
3206 echo two > conftest.ts2 # ts2 should now be newer than ts1
3207 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3208 make_ok=false
3209 break # out of $n loop
3210 fi
3211 n=`expr $n + 1`
3212 done
3213 fi
3214 #
3215 if $make_ok; then
3216 # Everything we know to check worked out, so call this resolution good.
3217 am_cv_filesystem_timestamp_resolution=$am_try_res
3218 break # out of $am_try_res loop
3219 fi
3220 # Otherwise, we'll go on to check the next resolution.
3221 fi
3222 done
3223 rm -f conftest.ts?
3224 # (end _am_filesystem_timestamp_resolution)
3225 ;;
3226 esac
3227 fi
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3229 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3230
3231 # This check should not be cached, as it may vary across builds of
3232 # different projects.
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3234 printf %s "checking whether build environment is sane... " >&6; }
3235 # Reject unsafe characters in $srcdir or the absolute working directory
3236 # name. Accept space and tab only in the latter.
3237 am_lf='
3238 '
3239 case `pwd` in
3240 *[\\\"\#\$\&\'\`$am_lf]*)
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 printf "%s\n" "no" >&6; }
3243 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3244 esac
3245 case $srcdir in
3246 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 printf "%s\n" "no" >&6; }
3249 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3250 esac
3251
3252 # Do 'set' in a subshell so we don't clobber the current shell's
3253 # arguments. Must try -L first in case configure is actually a
3254 # symlink; some systems play weird games with the mod time of symlinks
3255 # (eg FreeBSD returns the mod time of the symlink's containing
3256 # directory).
3257 am_build_env_is_sane=no
3258 am_has_slept=no
3259 rm -f conftest.file
3260 for am_try in 1 2; do
3261 echo "timestamp, slept: $am_has_slept" > conftest.file
3262 if (
3263 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3264 if test "$*" = "X"; then
3265 # -L didn't work.
3266 set X `ls -t "$srcdir/configure" conftest.file`
3267 fi
3268 test "$2" = conftest.file
3269 ); then
3270 am_build_env_is_sane=yes
3271 break
3272 fi
3273 # Just in case.
3274 sleep "$am_cv_filesystem_timestamp_resolution"
3275 am_has_slept=yes
3276 done
3277
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3279 printf "%s\n" "$am_build_env_is_sane" >&6; }
3280 if test "$am_build_env_is_sane" = no; then
3281 as_fn_error $? "newly created file is older than distributed files!
3282 Check your system clock" "$LINENO" 5
3283 fi
3284
3285 # If we didn't sleep, we still need to ensure time stamps of config.status and
3286 # generated files are strictly newer.
3287 am_sleep_pid=
3288 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3289 then :
3290
3291 else case e in #(
3292 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3293 am_sleep_pid=$!
3294 ;;
3295 esac
3296 fi
3297
3298 rm -f conftest.file
3299
3300 test "$program_prefix" != NONE &&
3301 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3302 # Use a double $ so make ignores it.
3303 test "$program_suffix" != NONE &&
3304 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3305 # Double any \ or $.
3306 # By default was 's,x,x', remove it if useless.
3307 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3308 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3309
3310
3311 # Expand $ac_aux_dir to an absolute path.
3312 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3313
3314
3315 if test x"${MISSING+set}" != xset; then
3316 MISSING="\${SHELL} '$am_aux_dir/missing'"
3317 fi
3318 # Use eval to expand $SHELL
3319 if eval "$MISSING --is-lightweight"; then
3320 am_missing_run="$MISSING "
3321 else
3322 am_missing_run=
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3324 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3325 fi
3326
3327 if test x"${install_sh+set}" != xset; then
3328 case $am_aux_dir in
3329 *\ * | *\ *)
3330 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3331 *)
3332 install_sh="\${SHELL} $am_aux_dir/install-sh"
3333 esac
3334 fi
3335
3336 # Installed binaries are usually stripped using 'strip' when the user
3337 # run "make install-strip". However 'strip' might not be the right
3338 # tool to use in cross-compilation environments, therefore Automake
3339 # will honor the 'STRIP' environment variable to overrule this program.
3340 if test "$cross_compiling" != no; then
3341 if test -n "$ac_tool_prefix"; then
3342 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}strip; ac_word=$2
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 printf %s "checking for $ac_word... " >&6; }
3346 if test ${ac_cv_prog_STRIP+y}
3347 then :
3348 printf %s "(cached) " >&6
3349 else case e in #(
3350 e) if test -n "$STRIP"; then
3351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356 IFS=$as_save_IFS
3357 case $as_dir in #(((
3358 '') as_dir=./ ;;
3359 */) ;;
3360 *) as_dir=$as_dir/ ;;
3361 esac
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3366 break 2
3367 fi
3368 done
3369 done
3370 IFS=$as_save_IFS
3371
3372 fi ;;
3373 esac
3374 fi
3375 STRIP=$ac_cv_prog_STRIP
3376 if test -n "$STRIP"; then
3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3378 printf "%s\n" "$STRIP" >&6; }
3379 else
3380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 printf "%s\n" "no" >&6; }
3382 fi
3383
3384
3385 fi
3386 if test -z "$ac_cv_prog_STRIP"; then
3387 ac_ct_STRIP=$STRIP
3388 # Extract the first word of "strip", so it can be a program name with args.
3389 set dummy strip; ac_word=$2
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 printf %s "checking for $ac_word... " >&6; }
3392 if test ${ac_cv_prog_ac_ct_STRIP+y}
3393 then :
3394 printf %s "(cached) " >&6
3395 else case e in #(
3396 e) if test -n "$ac_ct_STRIP"; then
3397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402 IFS=$as_save_IFS
3403 case $as_dir in #(((
3404 '') as_dir=./ ;;
3405 */) ;;
3406 *) as_dir=$as_dir/ ;;
3407 esac
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_ac_ct_STRIP="strip"
3411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414 done
3415 done
3416 IFS=$as_save_IFS
3417
3418 fi ;;
3419 esac
3420 fi
3421 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3422 if test -n "$ac_ct_STRIP"; then
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3424 printf "%s\n" "$ac_ct_STRIP" >&6; }
3425 else
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 printf "%s\n" "no" >&6; }
3428 fi
3429
3430 if test "x$ac_ct_STRIP" = x; then
3431 STRIP=":"
3432 else
3433 case $cross_compiling:$ac_tool_warned in
3434 yes:)
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3436 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3437 ac_tool_warned=yes ;;
3438 esac
3439 STRIP=$ac_ct_STRIP
3440 fi
3441 else
3442 STRIP="$ac_cv_prog_STRIP"
3443 fi
3444
3445 fi
3446 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3447
3448
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3450 printf %s "checking for a race-free mkdir -p... " >&6; }
3451 if test -z "$MKDIR_P"; then
3452 if test ${ac_cv_path_mkdir+y}
3453 then :
3454 printf %s "(cached) " >&6
3455 else case e in #(
3456 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3458 do
3459 IFS=$as_save_IFS
3460 case $as_dir in #(((
3461 '') as_dir=./ ;;
3462 */) ;;
3463 *) as_dir=$as_dir/ ;;
3464 esac
3465 for ac_prog in mkdir gmkdir; do
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3468 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3469 'mkdir ('*'coreutils) '* | \
3470 *'BusyBox '* | \
3471 'mkdir (fileutils) '4.1*)
3472 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3473 break 3;;
3474 esac
3475 done
3476 done
3477 done
3478 IFS=$as_save_IFS
3479 ;;
3480 esac
3481 fi
3482
3483 test -d ./--version && rmdir ./--version
3484 if test ${ac_cv_path_mkdir+y}; then
3485 MKDIR_P="$ac_cv_path_mkdir -p"
3486 else
3487 # As a last resort, use plain mkdir -p,
3488 # in the hope it doesn't have the bugs of ancient mkdir.
3489 MKDIR_P='mkdir -p'
3490 fi
3491 fi
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3493 printf "%s\n" "$MKDIR_P" >&6; }
3494
3495 for ac_prog in gawk mawk nawk awk
3496 do
3497 # Extract the first word of "$ac_prog", so it can be a program name with args.
3498 set dummy $ac_prog; ac_word=$2
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 printf %s "checking for $ac_word... " >&6; }
3501 if test ${ac_cv_prog_AWK+y}
3502 then :
3503 printf %s "(cached) " >&6
3504 else case e in #(
3505 e) if test -n "$AWK"; then
3506 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511 IFS=$as_save_IFS
3512 case $as_dir in #(((
3513 '') as_dir=./ ;;
3514 */) ;;
3515 *) as_dir=$as_dir/ ;;
3516 esac
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_AWK="$ac_prog"
3520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3521 break 2
3522 fi
3523 done
3524 done
3525 IFS=$as_save_IFS
3526
3527 fi ;;
3528 esac
3529 fi
3530 AWK=$ac_cv_prog_AWK
3531 if test -n "$AWK"; then
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3533 printf "%s\n" "$AWK" >&6; }
3534 else
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 printf "%s\n" "no" >&6; }
3537 fi
3538
3539
3540 test -n "$AWK" && break
3541 done
3542
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3544 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3545 set x ${MAKE-make}
3546 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3547 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3548 then :
3549 printf %s "(cached) " >&6
3550 else case e in #(
3551 e) cat >conftest.make <<\_ACEOF
3552 SHELL = /bin/sh
3553 all:
3554 @echo '@@@%%%=$(MAKE)=@@@%%%'
3555 _ACEOF
3556 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3557 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3558 *@@@%%%=?*=@@@%%%*)
3559 eval ac_cv_prog_make_${ac_make}_set=yes;;
3560 *)
3561 eval ac_cv_prog_make_${ac_make}_set=no;;
3562 esac
3563 rm -f conftest.make ;;
3564 esac
3565 fi
3566 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3568 printf "%s\n" "yes" >&6; }
3569 SET_MAKE=
3570 else
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 printf "%s\n" "no" >&6; }
3573 SET_MAKE="MAKE=${MAKE-make}"
3574 fi
3575
3576 rm -rf .tst 2>/dev/null
3577 mkdir .tst 2>/dev/null
3578 if test -d .tst; then
3579 am__leading_dot=.
3580 else
3581 am__leading_dot=_
3582 fi
3583 rmdir .tst 2>/dev/null
3584
3585 AM_DEFAULT_VERBOSITY=1
3586 # Check whether --enable-silent-rules was given.
3587 if test ${enable_silent_rules+y}
3588 then :
3589 enableval=$enable_silent_rules;
3590 fi
3591
3592 am_make=${MAKE-make}
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3594 printf %s "checking whether $am_make supports nested variables... " >&6; }
3595 if test ${am_cv_make_support_nested_variables+y}
3596 then :
3597 printf %s "(cached) " >&6
3598 else case e in #(
3599 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3600 BAR0=false
3601 BAR1=true
3602 V=1
3603 am__doit:
3604 @$(TRUE)
3605 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3606 am_cv_make_support_nested_variables=yes
3607 else
3608 am_cv_make_support_nested_variables=no
3609 fi ;;
3610 esac
3611 fi
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3613 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3614 AM_BACKSLASH='\'
3615
3616 am__rm_f_notfound=
3617 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3618 then :
3619
3620 else case e in #(
3621 e) am__rm_f_notfound='""' ;;
3622 esac
3623 fi
3624
3625
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3627 printf %s "checking xargs -n works... " >&6; }
3628 if test ${am_cv_xargs_n_works+y}
3629 then :
3630 printf %s "(cached) " >&6
3631 else case e in #(
3632 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3633 3"
3634 then :
3635 am_cv_xargs_n_works=yes
3636 else case e in #(
3637 e) am_cv_xargs_n_works=no ;;
3638 esac
3639 fi ;;
3640 esac
3641 fi
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3643 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3644 if test "$am_cv_xargs_n_works" = yes
3645 then :
3646 am__xargs_n='xargs -n'
3647 else case e in #(
3648 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3649 ;;
3650 esac
3651 fi
3652
3653 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3654 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3655 # is not polluted with repeated "-I."
3656 am__isrc=' -I$(srcdir)'
3657 # test to see if srcdir already configured
3658 if test -f $srcdir/config.status; then
3659 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3660 fi
3661 fi
3662
3663 # test whether we have cygpath
3664 if test -z "$CYGPATH_W"; then
3665 if (cygpath --version) >/dev/null 2>/dev/null; then
3666 CYGPATH_W='cygpath -w'
3667 else
3668 CYGPATH_W=echo
3669 fi
3670 fi
3671
3672
3673 # Define the identity of the package.
3674 PACKAGE='udisks'
3675 VERSION='2.11.1'
3676
3677
3678 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3679
3680
3681 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3682
3683 # Some tools Automake needs.
3684
3685 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3686
3687
3688 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3689
3690
3691 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3692
3693
3694 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3695
3696
3697 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3698
3699 # For better backward compatibility. To be removed once Automake 1.9.x
3700 # dies out for good. For more background, see:
3701 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3702 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3703 mkdir_p='$(MKDIR_P)'
3704
3705 # We need awk for the "check" target (and possibly the TAP driver). The
3706 # system "awk" is bad on some platforms.
3707 # Always define AMTAR for backward compatibility. Yes, it's still used
3708 # in the wild :-( We should find a proper way to deprecate it ...
3709 AMTAR='$${TAR-tar}'
3710
3711
3712 # We'll loop over all known methods to create a tar archive until one works.
3713 _am_tools='gnutar plaintar pax cpio none'
3714
3715 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3716 # There is notably a 21 bits limit for the UID and the GID. In fact,
3717 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3718 # and bug#13588).
3719 am_max_uid=2097151 # 2^21 - 1
3720 am_max_gid=$am_max_uid
3721 # The $UID and $GID variables are not portable, so we need to resort
3722 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3723 # below are definitely unexpected, so allow the users to see them
3724 # (that is, avoid stderr redirection).
3725 am_uid=`id -u || echo unknown`
3726 am_gid=`id -g || echo unknown`
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3728 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3729 if test x$am_uid = xunknown; then
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3731 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3732 elif test $am_uid -le $am_max_uid; then
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3734 printf "%s\n" "yes" >&6; }
3735 else
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 printf "%s\n" "no" >&6; }
3738 _am_tools=none
3739 fi
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3741 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3742 if test x$gm_gid = xunknown; then
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3744 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3745 elif test $am_gid -le $am_max_gid; then
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3747 printf "%s\n" "yes" >&6; }
3748 else
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 printf "%s\n" "no" >&6; }
3751 _am_tools=none
3752 fi
3753
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3755 printf %s "checking how to create a ustar tar archive... " >&6; }
3756
3757 # Go ahead even if we have the value already cached. We do so because we
3758 # need to set the values for the 'am__tar' and 'am__untar' variables.
3759 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3760
3761 for _am_tool in $_am_tools; do
3762 case $_am_tool in
3763 gnutar)
3764 for _am_tar in tar gnutar gtar; do
3765 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3766 ($_am_tar --version) >&5 2>&5
3767 ac_status=$?
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } && break
3770 done
3771 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3772 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3773 am__untar="$_am_tar -xf -"
3774 ;;
3775 plaintar)
3776 # Must skip GNU tar: if it does not support --format= it doesn't create
3777 # ustar tarball either.
3778 (tar --version) >/dev/null 2>&1 && continue
3779 am__tar='tar chf - "$$tardir"'
3780 am__tar_='tar chf - "$tardir"'
3781 am__untar='tar xf -'
3782 ;;
3783 pax)
3784 am__tar='pax -L -x ustar -w "$$tardir"'
3785 am__tar_='pax -L -x ustar -w "$tardir"'
3786 am__untar='pax -r'
3787 ;;
3788 cpio)
3789 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3790 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3791 am__untar='cpio -i -H ustar -d'
3792 ;;
3793 none)
3794 am__tar=false
3795 am__tar_=false
3796 am__untar=false
3797 ;;
3798 esac
3799
3800 # If the value was cached, stop now. We just wanted to have am__tar
3801 # and am__untar set.
3802 test -n "${am_cv_prog_tar_ustar}" && break
3803
3804 # tar/untar a dummy directory, and stop if the command works.
3805 rm -rf conftest.dir
3806 mkdir conftest.dir
3807 echo GrepMe > conftest.dir/file
3808 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3809 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }
3813 rm -rf conftest.dir
3814 if test -s conftest.tar; then
3815 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3816 ($am__untar <conftest.tar) >&5 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }
3820 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3821 (cat conftest.dir/file) >&5 2>&5
3822 ac_status=$?
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }
3825 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3826 fi
3827 done
3828 rm -rf conftest.dir
3829
3830 if test ${am_cv_prog_tar_ustar+y}
3831 then :
3832 printf %s "(cached) " >&6
3833 else case e in #(
3834 e) am_cv_prog_tar_ustar=$_am_tool ;;
3835 esac
3836 fi
3837
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3839 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3840
3841
3842
3843
3844
3845 # Variables for tags utilities; see am/tags.am
3846 if test -z "$CTAGS"; then
3847 CTAGS=ctags
3848 fi
3849
3850 if test -z "$ETAGS"; then
3851 ETAGS=etags
3852 fi
3853
3854 if test -z "$CSCOPE"; then
3855 CSCOPE=cscope
3856 fi
3857
3858
3859
3860
3861
3862
3863
3864
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3866 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3867 # Check whether --enable-maintainer-mode was given.
3868 if test ${enable_maintainer_mode+y}
3869 then :
3870 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3871 else case e in #(
3872 e) USE_MAINTAINER_MODE=no ;;
3873 esac
3874 fi
3875
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3877 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3878 if test $USE_MAINTAINER_MODE = yes; then
3879 MAINTAINER_MODE_TRUE=
3880 MAINTAINER_MODE_FALSE='#'
3881 else
3882 MAINTAINER_MODE_TRUE='#'
3883 MAINTAINER_MODE_FALSE=
3884 fi
3885
3886 MAINT=$MAINTAINER_MODE_TRUE
3887
3888
3889
3890 AM_DEFAULT_VERBOSITY=0
3891
3892
3893
3894
3895
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
3897 printf %s "checking whether to enable debugging... " >&6; }
3898
3899 ax_enable_debug_default=no
3900 ax_enable_debug_is_release=$ax_is_release
3901
3902 # If this is a release, override the default.
3903 if test "$ax_enable_debug_is_release" = "yes"
3904 then :
3905 ax_enable_debug_default="no"
3906 fi
3907
3908
3909
3910
3911 # Check whether --enable-debug was given.
3912 if test ${enable_debug+y}
3913 then :
3914 enableval=$enable_debug;
3915 else case e in #(
3916 e) enable_debug=$ax_enable_debug_default ;;
3917 esac
3918 fi
3919
3920
3921 # empty mean debug yes
3922 if test "x$enable_debug" = "x"
3923 then :
3924 enable_debug="yes"
3925 fi
3926
3927 # case of debug
3928 case $enable_debug in #(
3929 yes) :
3930
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3932 printf "%s\n" "yes" >&6; }
3933 CFLAGS="${CFLAGS} -g -O0"
3934 CXXFLAGS="${CXXFLAGS} -g -O0"
3935 FFLAGS="${FFLAGS} -g -O0"
3936 FCFLAGS="${FCFLAGS} -g -O0"
3937 OBJCFLAGS="${OBJCFLAGS} -g -O0"
3938 ;; #(
3939 info) :
3940
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: info" >&5
3942 printf "%s\n" "info" >&6; }
3943 CFLAGS="${CFLAGS} -g"
3944 CXXFLAGS="${CXXFLAGS} -g"
3945 FFLAGS="${FFLAGS} -g"
3946 FCFLAGS="${FCFLAGS} -g"
3947 OBJCFLAGS="${OBJCFLAGS} -g"
3948 ;; #(
3949 profile) :
3950
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: profile" >&5
3952 printf "%s\n" "profile" >&6; }
3953 CFLAGS="${CFLAGS} -g -pg"
3954 CXXFLAGS="${CXXFLAGS} -g -pg"
3955 FFLAGS="${FFLAGS} -g -pg"
3956 FCFLAGS="${FCFLAGS} -g -pg"
3957 OBJCFLAGS="${OBJCFLAGS} -g -pg"
3958 LDFLAGS="${LDFLAGS} -pg"
3959 ;; #(
3960 *) :
3961
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 printf "%s\n" "no" >&6; }
3964 if test "x${CFLAGS+set}" != "xset"
3965 then :
3966 CFLAGS=""
3967 fi
3968 if test "x${CXXFLAGS+set}" != "xset"
3969 then :
3970 CXXFLAGS=""
3971 fi
3972 if test "x${FFLAGS+set}" != "xset"
3973 then :
3974 FFLAGS=""
3975 fi
3976 if test "x${FCFLAGS+set}" != "xset"
3977 then :
3978 FCFLAGS=""
3979 fi
3980 if test "x${OBJCFLAGS+set}" != "xset"
3981 then :
3982 OBJCFLAGS=""
3983 fi
3984 ;;
3985 esac
3986
3987 if test "x$enable_debug" = "xyes"
3988 then :
3989
3990 printf "%s\n" "#define DEBUG /**/" >>confdefs.h
3991
3992 else case e in #(
3993 e)
3994 printf "%s\n" "#define NDEBUG /**/" >>confdefs.h
3995 ;;
3996 esac
3997 fi
3998 ax_enable_debug=$enable_debug
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010 ac_ext=c
4011 ac_cpp='$CPP $CPPFLAGS'
4012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015 if test -n "$ac_tool_prefix"; then
4016 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4017 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 printf %s "checking for $ac_word... " >&6; }
4020 if test ${ac_cv_prog_CC+y}
4021 then :
4022 printf %s "(cached) " >&6
4023 else case e in #(
4024 e) if test -n "$CC"; then
4025 ac_cv_prog_CC="$CC" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030 IFS=$as_save_IFS
4031 case $as_dir in #(((
4032 '') as_dir=./ ;;
4033 */) ;;
4034 *) as_dir=$as_dir/ ;;
4035 esac
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4040 break 2
4041 fi
4042 done
4043 done
4044 IFS=$as_save_IFS
4045
4046 fi ;;
4047 esac
4048 fi
4049 CC=$ac_cv_prog_CC
4050 if test -n "$CC"; then
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4052 printf "%s\n" "$CC" >&6; }
4053 else
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 printf "%s\n" "no" >&6; }
4056 fi
4057
4058
4059 fi
4060 if test -z "$ac_cv_prog_CC"; then
4061 ac_ct_CC=$CC
4062 # Extract the first word of "gcc", so it can be a program name with args.
4063 set dummy gcc; ac_word=$2
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 printf %s "checking for $ac_word... " >&6; }
4066 if test ${ac_cv_prog_ac_ct_CC+y}
4067 then :
4068 printf %s "(cached) " >&6
4069 else case e in #(
4070 e) if test -n "$ac_ct_CC"; then
4071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4075 do
4076 IFS=$as_save_IFS
4077 case $as_dir in #(((
4078 '') as_dir=./ ;;
4079 */) ;;
4080 *) as_dir=$as_dir/ ;;
4081 esac
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4084 ac_cv_prog_ac_ct_CC="gcc"
4085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4086 break 2
4087 fi
4088 done
4089 done
4090 IFS=$as_save_IFS
4091
4092 fi ;;
4093 esac
4094 fi
4095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4096 if test -n "$ac_ct_CC"; then
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4098 printf "%s\n" "$ac_ct_CC" >&6; }
4099 else
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 printf "%s\n" "no" >&6; }
4102 fi
4103
4104 if test "x$ac_ct_CC" = x; then
4105 CC=""
4106 else
4107 case $cross_compiling:$ac_tool_warned in
4108 yes:)
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4110 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4111 ac_tool_warned=yes ;;
4112 esac
4113 CC=$ac_ct_CC
4114 fi
4115 else
4116 CC="$ac_cv_prog_CC"
4117 fi
4118
4119 if test -z "$CC"; then
4120 if test -n "$ac_tool_prefix"; then
4121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4122 set dummy ${ac_tool_prefix}cc; ac_word=$2
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 printf %s "checking for $ac_word... " >&6; }
4125 if test ${ac_cv_prog_CC+y}
4126 then :
4127 printf %s "(cached) " >&6
4128 else case e in #(
4129 e) if test -n "$CC"; then
4130 ac_cv_prog_CC="$CC" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135 IFS=$as_save_IFS
4136 case $as_dir in #(((
4137 '') as_dir=./ ;;
4138 */) ;;
4139 *) as_dir=$as_dir/ ;;
4140 esac
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4143 ac_cv_prog_CC="${ac_tool_prefix}cc"
4144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4145 break 2
4146 fi
4147 done
4148 done
4149 IFS=$as_save_IFS
4150
4151 fi ;;
4152 esac
4153 fi
4154 CC=$ac_cv_prog_CC
4155 if test -n "$CC"; then
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4157 printf "%s\n" "$CC" >&6; }
4158 else
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 printf "%s\n" "no" >&6; }
4161 fi
4162
4163
4164 fi
4165 fi
4166 if test -z "$CC"; then
4167 # Extract the first word of "cc", so it can be a program name with args.
4168 set dummy cc; ac_word=$2
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 printf %s "checking for $ac_word... " >&6; }
4171 if test ${ac_cv_prog_CC+y}
4172 then :
4173 printf %s "(cached) " >&6
4174 else case e in #(
4175 e) if test -n "$CC"; then
4176 ac_cv_prog_CC="$CC" # Let the user override the test.
4177 else
4178 ac_prog_rejected=no
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182 IFS=$as_save_IFS
4183 case $as_dir in #(((
4184 '') as_dir=./ ;;
4185 */) ;;
4186 *) as_dir=$as_dir/ ;;
4187 esac
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4190 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4191 ac_prog_rejected=yes
4192 continue
4193 fi
4194 ac_cv_prog_CC="cc"
4195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4196 break 2
4197 fi
4198 done
4199 done
4200 IFS=$as_save_IFS
4201
4202 if test $ac_prog_rejected = yes; then
4203 # We found a bogon in the path, so make sure we never use it.
4204 set dummy $ac_cv_prog_CC
4205 shift
4206 if test $# != 0; then
4207 # We chose a different compiler from the bogus one.
4208 # However, it has the same basename, so the bogon will be chosen
4209 # first if we set CC to just the basename; use the full file name.
4210 shift
4211 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4212 fi
4213 fi
4214 fi ;;
4215 esac
4216 fi
4217 CC=$ac_cv_prog_CC
4218 if test -n "$CC"; then
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4220 printf "%s\n" "$CC" >&6; }
4221 else
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 printf "%s\n" "no" >&6; }
4224 fi
4225
4226
4227 fi
4228 if test -z "$CC"; then
4229 if test -n "$ac_tool_prefix"; then
4230 for ac_prog in cl.exe
4231 do
4232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4233 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 printf %s "checking for $ac_word... " >&6; }
4236 if test ${ac_cv_prog_CC+y}
4237 then :
4238 printf %s "(cached) " >&6
4239 else case e in #(
4240 e) if test -n "$CC"; then
4241 ac_cv_prog_CC="$CC" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246 IFS=$as_save_IFS
4247 case $as_dir in #(((
4248 '') as_dir=./ ;;
4249 */) ;;
4250 *) as_dir=$as_dir/ ;;
4251 esac
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4254 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4256 break 2
4257 fi
4258 done
4259 done
4260 IFS=$as_save_IFS
4261
4262 fi ;;
4263 esac
4264 fi
4265 CC=$ac_cv_prog_CC
4266 if test -n "$CC"; then
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4268 printf "%s\n" "$CC" >&6; }
4269 else
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 printf "%s\n" "no" >&6; }
4272 fi
4273
4274
4275 test -n "$CC" && break
4276 done
4277 fi
4278 if test -z "$CC"; then
4279 ac_ct_CC=$CC
4280 for ac_prog in cl.exe
4281 do
4282 # Extract the first word of "$ac_prog", so it can be a program name with args.
4283 set dummy $ac_prog; ac_word=$2
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 printf %s "checking for $ac_word... " >&6; }
4286 if test ${ac_cv_prog_ac_ct_CC+y}
4287 then :
4288 printf %s "(cached) " >&6
4289 else case e in #(
4290 e) if test -n "$ac_ct_CC"; then
4291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296 IFS=$as_save_IFS
4297 case $as_dir in #(((
4298 '') as_dir=./ ;;
4299 */) ;;
4300 *) as_dir=$as_dir/ ;;
4301 esac
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4304 ac_cv_prog_ac_ct_CC="$ac_prog"
4305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4306 break 2
4307 fi
4308 done
4309 done
4310 IFS=$as_save_IFS
4311
4312 fi ;;
4313 esac
4314 fi
4315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4316 if test -n "$ac_ct_CC"; then
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4318 printf "%s\n" "$ac_ct_CC" >&6; }
4319 else
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 printf "%s\n" "no" >&6; }
4322 fi
4323
4324
4325 test -n "$ac_ct_CC" && break
4326 done
4327
4328 if test "x$ac_ct_CC" = x; then
4329 CC=""
4330 else
4331 case $cross_compiling:$ac_tool_warned in
4332 yes:)
4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4334 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4335 ac_tool_warned=yes ;;
4336 esac
4337 CC=$ac_ct_CC
4338 fi
4339 fi
4340
4341 fi
4342 if test -z "$CC"; then
4343 if test -n "$ac_tool_prefix"; then
4344 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4345 set dummy ${ac_tool_prefix}clang; ac_word=$2
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347 printf %s "checking for $ac_word... " >&6; }
4348 if test ${ac_cv_prog_CC+y}
4349 then :
4350 printf %s "(cached) " >&6
4351 else case e in #(
4352 e) if test -n "$CC"; then
4353 ac_cv_prog_CC="$CC" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358 IFS=$as_save_IFS
4359 case $as_dir in #(((
4360 '') as_dir=./ ;;
4361 */) ;;
4362 *) as_dir=$as_dir/ ;;
4363 esac
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_CC="${ac_tool_prefix}clang"
4367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4368 break 2
4369 fi
4370 done
4371 done
4372 IFS=$as_save_IFS
4373
4374 fi ;;
4375 esac
4376 fi
4377 CC=$ac_cv_prog_CC
4378 if test -n "$CC"; then
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4380 printf "%s\n" "$CC" >&6; }
4381 else
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 printf "%s\n" "no" >&6; }
4384 fi
4385
4386
4387 fi
4388 if test -z "$ac_cv_prog_CC"; then
4389 ac_ct_CC=$CC
4390 # Extract the first word of "clang", so it can be a program name with args.
4391 set dummy clang; ac_word=$2
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393 printf %s "checking for $ac_word... " >&6; }
4394 if test ${ac_cv_prog_ac_ct_CC+y}
4395 then :
4396 printf %s "(cached) " >&6
4397 else case e in #(
4398 e) if test -n "$ac_ct_CC"; then
4399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404 IFS=$as_save_IFS
4405 case $as_dir in #(((
4406 '') as_dir=./ ;;
4407 */) ;;
4408 *) as_dir=$as_dir/ ;;
4409 esac
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4412 ac_cv_prog_ac_ct_CC="clang"
4413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 fi ;;
4421 esac
4422 fi
4423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4424 if test -n "$ac_ct_CC"; then
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4426 printf "%s\n" "$ac_ct_CC" >&6; }
4427 else
4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 printf "%s\n" "no" >&6; }
4430 fi
4431
4432 if test "x$ac_ct_CC" = x; then
4433 CC=""
4434 else
4435 case $cross_compiling:$ac_tool_warned in
4436 yes:)
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4438 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4439 ac_tool_warned=yes ;;
4440 esac
4441 CC=$ac_ct_CC
4442 fi
4443 else
4444 CC="$ac_cv_prog_CC"
4445 fi
4446
4447 fi
4448
4449
4450 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4451 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4452 as_fn_error $? "no acceptable C compiler found in \$PATH
4453 See 'config.log' for more details" "$LINENO" 5; }
4454
4455 # Provide some information about the compiler.
4456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4457 set X $ac_compile
4458 ac_compiler=$2
4459 for ac_option in --version -v -V -qversion -version; do
4460 { { ac_try="$ac_compiler $ac_option >&5"
4461 case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464 esac
4465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4466 printf "%s\n" "$ac_try_echo"; } >&5
4467 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4468 ac_status=$?
4469 if test -s conftest.err; then
4470 sed '10a\
4471 ... rest of stderr output deleted ...
4472 10q' conftest.err >conftest.er1
4473 cat conftest.er1 >&5
4474 fi
4475 rm -f conftest.er1 conftest.err
4476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477 test $ac_status = 0; }
4478 done
4479
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4482
4483 int
4484 main (void)
4485 {
4486
4487 ;
4488 return 0;
4489 }
4490 _ACEOF
4491 ac_clean_files_save=$ac_clean_files
4492 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4493 # Try to create an executable without -o first, disregard a.out.
4494 # It will help us diagnose broken compilers, and finding out an intuition
4495 # of exeext.
4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4497 printf %s "checking whether the C compiler works... " >&6; }
4498 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4499
4500 # The possible output files:
4501 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4502
4503 ac_rmfiles=
4504 for ac_file in $ac_files
4505 do
4506 case $ac_file in
4507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4508 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4509 esac
4510 done
4511 rm -f $ac_rmfiles
4512
4513 if { { ac_try="$ac_link_default"
4514 case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517 esac
4518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4519 printf "%s\n" "$ac_try_echo"; } >&5
4520 (eval "$ac_link_default") 2>&5
4521 ac_status=$?
4522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4523 test $ac_status = 0; }
4524 then :
4525 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4526 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4527 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4528 # so that the user can short-circuit this test for compilers unknown to
4529 # Autoconf.
4530 for ac_file in $ac_files ''
4531 do
4532 test -f "$ac_file" || continue
4533 case $ac_file in
4534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4535 ;;
4536 [ab].out )
4537 # We found the default executable, but exeext='' is most
4538 # certainly right.
4539 break;;
4540 *.* )
4541 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4542 then :; else
4543 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4544 fi
4545 # We set ac_cv_exeext here because the later test for it is not
4546 # safe: cross compilers may not add the suffix if given an '-o'
4547 # argument, so we may need to know it at that point already.
4548 # Even if this section looks crufty: it has the advantage of
4549 # actually working.
4550 break;;
4551 * )
4552 break;;
4553 esac
4554 done
4555 test "$ac_cv_exeext" = no && ac_cv_exeext=
4556
4557 else case e in #(
4558 e) ac_file='' ;;
4559 esac
4560 fi
4561 if test -z "$ac_file"
4562 then :
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 printf "%s\n" "no" >&6; }
4565 printf "%s\n" "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4567
4568 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4569 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4570 as_fn_error 77 "C compiler cannot create executables
4571 See 'config.log' for more details" "$LINENO" 5; }
4572 else case e in #(
4573 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4574 printf "%s\n" "yes" >&6; } ;;
4575 esac
4576 fi
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4578 printf %s "checking for C compiler default output file name... " >&6; }
4579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4580 printf "%s\n" "$ac_file" >&6; }
4581 ac_exeext=$ac_cv_exeext
4582
4583 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4584 ac_clean_files=$ac_clean_files_save
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4586 printf %s "checking for suffix of executables... " >&6; }
4587 if { { ac_try="$ac_link"
4588 case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591 esac
4592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4593 printf "%s\n" "$ac_try_echo"; } >&5
4594 (eval "$ac_link") 2>&5
4595 ac_status=$?
4596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597 test $ac_status = 0; }
4598 then :
4599 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4600 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4601 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4602 # 'rm'.
4603 for ac_file in conftest.exe conftest conftest.*; do
4604 test -f "$ac_file" || continue
4605 case $ac_file in
4606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4607 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4608 break;;
4609 * ) break;;
4610 esac
4611 done
4612 else case e in #(
4613 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4614 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4615 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4616 See 'config.log' for more details" "$LINENO" 5; } ;;
4617 esac
4618 fi
4619 rm -f conftest conftest$ac_cv_exeext
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4621 printf "%s\n" "$ac_cv_exeext" >&6; }
4622
4623 rm -f conftest.$ac_ext
4624 EXEEXT=$ac_cv_exeext
4625 ac_exeext=$EXEEXT
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628 #include <stdio.h>
4629 int
4630 main (void)
4631 {
4632 FILE *f = fopen ("conftest.out", "w");
4633 if (!f)
4634 return 1;
4635 return ferror (f) || fclose (f) != 0;
4636
4637 ;
4638 return 0;
4639 }
4640 _ACEOF
4641 ac_clean_files="$ac_clean_files conftest.out"
4642 # Check that the compiler produces executables we can run. If not, either
4643 # the compiler is broken, or we cross compile.
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4645 printf %s "checking whether we are cross compiling... " >&6; }
4646 if test "$cross_compiling" != yes; then
4647 { { ac_try="$ac_link"
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") 2>&5
4655 ac_status=$?
4656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657 test $ac_status = 0; }
4658 if { ac_try='./conftest$ac_cv_exeext'
4659 { { case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4662 esac
4663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4664 printf "%s\n" "$ac_try_echo"; } >&5
4665 (eval "$ac_try") 2>&5
4666 ac_status=$?
4667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4668 test $ac_status = 0; }; }; then
4669 cross_compiling=no
4670 else
4671 if test "$cross_compiling" = maybe; then
4672 cross_compiling=yes
4673 else
4674 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4675 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4676 as_fn_error 77 "cannot run C compiled programs.
4677 If you meant to cross compile, use '--host'.
4678 See 'config.log' for more details" "$LINENO" 5; }
4679 fi
4680 fi
4681 fi
4682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4683 printf "%s\n" "$cross_compiling" >&6; }
4684
4685 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4686 conftest.o conftest.obj conftest.out
4687 ac_clean_files=$ac_clean_files_save
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4689 printf %s "checking for suffix of object files... " >&6; }
4690 if test ${ac_cv_objext+y}
4691 then :
4692 printf %s "(cached) " >&6
4693 else case e in #(
4694 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696
4697 int
4698 main (void)
4699 {
4700
4701 ;
4702 return 0;
4703 }
4704 _ACEOF
4705 rm -f conftest.o conftest.obj
4706 if { { ac_try="$ac_compile"
4707 case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710 esac
4711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712 printf "%s\n" "$ac_try_echo"; } >&5
4713 (eval "$ac_compile") 2>&5
4714 ac_status=$?
4715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716 test $ac_status = 0; }
4717 then :
4718 for ac_file in conftest.o conftest.obj conftest.*; do
4719 test -f "$ac_file" || continue;
4720 case $ac_file in
4721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4723 break;;
4724 esac
4725 done
4726 else case e in #(
4727 e) printf "%s\n" "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4731 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4732 as_fn_error $? "cannot compute suffix of object files: cannot compile
4733 See 'config.log' for more details" "$LINENO" 5; } ;;
4734 esac
4735 fi
4736 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4737 esac
4738 fi
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4740 printf "%s\n" "$ac_cv_objext" >&6; }
4741 OBJEXT=$ac_cv_objext
4742 ac_objext=$OBJEXT
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4744 printf %s "checking whether the compiler supports GNU C... " >&6; }
4745 if test ${ac_cv_c_compiler_gnu+y}
4746 then :
4747 printf %s "(cached) " >&6
4748 else case e in #(
4749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4751
4752 int
4753 main (void)
4754 {
4755 #ifndef __GNUC__
4756 choke me
4757 #endif
4758
4759 ;
4760 return 0;
4761 }
4762 _ACEOF
4763 if ac_fn_c_try_compile "$LINENO"
4764 then :
4765 ac_compiler_gnu=yes
4766 else case e in #(
4767 e) ac_compiler_gnu=no ;;
4768 esac
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4772 ;;
4773 esac
4774 fi
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4776 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778
4779 if test $ac_compiler_gnu = yes; then
4780 GCC=yes
4781 else
4782 GCC=
4783 fi
4784 ac_test_CFLAGS=${CFLAGS+y}
4785 ac_save_CFLAGS=$CFLAGS
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4787 printf %s "checking whether $CC accepts -g... " >&6; }
4788 if test ${ac_cv_prog_cc_g+y}
4789 then :
4790 printf %s "(cached) " >&6
4791 else case e in #(
4792 e) ac_save_c_werror_flag=$ac_c_werror_flag
4793 ac_c_werror_flag=yes
4794 ac_cv_prog_cc_g=no
4795 CFLAGS="-g"
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798
4799 int
4800 main (void)
4801 {
4802
4803 ;
4804 return 0;
4805 }
4806 _ACEOF
4807 if ac_fn_c_try_compile "$LINENO"
4808 then :
4809 ac_cv_prog_cc_g=yes
4810 else case e in #(
4811 e) CFLAGS=""
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814
4815 int
4816 main (void)
4817 {
4818
4819 ;
4820 return 0;
4821 }
4822 _ACEOF
4823 if ac_fn_c_try_compile "$LINENO"
4824 then :
4825
4826 else case e in #(
4827 e) ac_c_werror_flag=$ac_save_c_werror_flag
4828 CFLAGS="-g"
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831
4832 int
4833 main (void)
4834 {
4835
4836 ;
4837 return 0;
4838 }
4839 _ACEOF
4840 if ac_fn_c_try_compile "$LINENO"
4841 then :
4842 ac_cv_prog_cc_g=yes
4843 fi
4844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4845 esac
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4848 esac
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4851 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4852 esac
4853 fi
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4855 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4856 if test $ac_test_CFLAGS; then
4857 CFLAGS=$ac_save_CFLAGS
4858 elif test $ac_cv_prog_cc_g = yes; then
4859 if test "$GCC" = yes; then
4860 CFLAGS="-g -O2"
4861 else
4862 CFLAGS="-g"
4863 fi
4864 else
4865 if test "$GCC" = yes; then
4866 CFLAGS="-O2"
4867 else
4868 CFLAGS=
4869 fi
4870 fi
4871 ac_prog_cc_stdc=no
4872 if test x$ac_prog_cc_stdc = xno
4873 then :
4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4875 printf %s "checking for $CC option to enable C11 features... " >&6; }
4876 if test ${ac_cv_prog_cc_c11+y}
4877 then :
4878 printf %s "(cached) " >&6
4879 else case e in #(
4880 e) ac_cv_prog_cc_c11=no
4881 ac_save_CC=$CC
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884 $ac_c_conftest_c11_program
4885 _ACEOF
4886 for ac_arg in '' -std=gnu11
4887 do
4888 CC="$ac_save_CC $ac_arg"
4889 if ac_fn_c_try_compile "$LINENO"
4890 then :
4891 ac_cv_prog_cc_c11=$ac_arg
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext conftest.beam
4894 test "x$ac_cv_prog_cc_c11" != "xno" && break
4895 done
4896 rm -f conftest.$ac_ext
4897 CC=$ac_save_CC ;;
4898 esac
4899 fi
4900
4901 if test "x$ac_cv_prog_cc_c11" = xno
4902 then :
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4904 printf "%s\n" "unsupported" >&6; }
4905 else case e in #(
4906 e) if test "x$ac_cv_prog_cc_c11" = x
4907 then :
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4909 printf "%s\n" "none needed" >&6; }
4910 else case e in #(
4911 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4912 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4913 CC="$CC $ac_cv_prog_cc_c11" ;;
4914 esac
4915 fi
4916 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4917 ac_prog_cc_stdc=c11 ;;
4918 esac
4919 fi
4920 fi
4921 if test x$ac_prog_cc_stdc = xno
4922 then :
4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4924 printf %s "checking for $CC option to enable C99 features... " >&6; }
4925 if test ${ac_cv_prog_cc_c99+y}
4926 then :
4927 printf %s "(cached) " >&6
4928 else case e in #(
4929 e) ac_cv_prog_cc_c99=no
4930 ac_save_CC=$CC
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933 $ac_c_conftest_c99_program
4934 _ACEOF
4935 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4936 do
4937 CC="$ac_save_CC $ac_arg"
4938 if ac_fn_c_try_compile "$LINENO"
4939 then :
4940 ac_cv_prog_cc_c99=$ac_arg
4941 fi
4942 rm -f core conftest.err conftest.$ac_objext conftest.beam
4943 test "x$ac_cv_prog_cc_c99" != "xno" && break
4944 done
4945 rm -f conftest.$ac_ext
4946 CC=$ac_save_CC ;;
4947 esac
4948 fi
4949
4950 if test "x$ac_cv_prog_cc_c99" = xno
4951 then :
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4953 printf "%s\n" "unsupported" >&6; }
4954 else case e in #(
4955 e) if test "x$ac_cv_prog_cc_c99" = x
4956 then :
4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4958 printf "%s\n" "none needed" >&6; }
4959 else case e in #(
4960 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4961 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4962 CC="$CC $ac_cv_prog_cc_c99" ;;
4963 esac
4964 fi
4965 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4966 ac_prog_cc_stdc=c99 ;;
4967 esac
4968 fi
4969 fi
4970 if test x$ac_prog_cc_stdc = xno
4971 then :
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4973 printf %s "checking for $CC option to enable C89 features... " >&6; }
4974 if test ${ac_cv_prog_cc_c89+y}
4975 then :
4976 printf %s "(cached) " >&6
4977 else case e in #(
4978 e) ac_cv_prog_cc_c89=no
4979 ac_save_CC=$CC
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4982 $ac_c_conftest_c89_program
4983 _ACEOF
4984 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4985 do
4986 CC="$ac_save_CC $ac_arg"
4987 if ac_fn_c_try_compile "$LINENO"
4988 then :
4989 ac_cv_prog_cc_c89=$ac_arg
4990 fi
4991 rm -f core conftest.err conftest.$ac_objext conftest.beam
4992 test "x$ac_cv_prog_cc_c89" != "xno" && break
4993 done
4994 rm -f conftest.$ac_ext
4995 CC=$ac_save_CC ;;
4996 esac
4997 fi
4998
4999 if test "x$ac_cv_prog_cc_c89" = xno
5000 then :
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5002 printf "%s\n" "unsupported" >&6; }
5003 else case e in #(
5004 e) if test "x$ac_cv_prog_cc_c89" = x
5005 then :
5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5007 printf "%s\n" "none needed" >&6; }
5008 else case e in #(
5009 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5010 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5011 CC="$CC $ac_cv_prog_cc_c89" ;;
5012 esac
5013 fi
5014 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5015 ac_prog_cc_stdc=c89 ;;
5016 esac
5017 fi
5018 fi
5019
5020 ac_ext=c
5021 ac_cpp='$CPP $CPPFLAGS'
5022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5025
5026
5027 ac_ext=c
5028 ac_cpp='$CPP $CPPFLAGS'
5029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5033 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5034 if test ${am_cv_prog_cc_c_o+y}
5035 then :
5036 printf %s "(cached) " >&6
5037 else case e in #(
5038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040
5041 int
5042 main (void)
5043 {
5044
5045 ;
5046 return 0;
5047 }
5048 _ACEOF
5049 # Make sure it works both with $CC and with simple cc.
5050 # Following AC_PROG_CC_C_O, we do the test twice because some
5051 # compilers refuse to overwrite an existing .o file with -o,
5052 # though they will create one.
5053 am_cv_prog_cc_c_o=yes
5054 for am_i in 1 2; do
5055 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5056 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } \
5060 && test -f conftest2.$ac_objext; then
5061 : OK
5062 else
5063 am_cv_prog_cc_c_o=no
5064 break
5065 fi
5066 done
5067 # aligned with autoconf, so not including core; see bug#72225.
5068 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5069 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5070 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5071 unset am_i ;;
5072 esac
5073 fi
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5075 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5076 if test "$am_cv_prog_cc_c_o" != yes; then
5077 # Losing compiler, so override with the script.
5078 # FIXME: It is wrong to rewrite CC.
5079 # But if we don't then we get into trouble of one sort or another.
5080 # A longer-term fix would be to have automake use am__CC in this case,
5081 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5082 CC="$am_aux_dir/compile $CC"
5083 fi
5084 ac_ext=c
5085 ac_cpp='$CPP $CPPFLAGS'
5086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089
5090 DEPDIR="${am__leading_dot}deps"
5091
5092 ac_config_commands="$ac_config_commands depfiles"
5093
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5095 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5096 cat > confinc.mk << 'END'
5097 am__doit:
5098 @echo this is the am__doit target >confinc.out
5099 .PHONY: am__doit
5100 END
5101 am__include="#"
5102 am__quote=
5103 # BSD make does it like this.
5104 echo '.include "confinc.mk" # ignored' > confmf.BSD
5105 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5106 echo 'include confinc.mk # ignored' > confmf.GNU
5107 _am_result=no
5108 for s in GNU BSD; do
5109 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5110 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }
5114 case $?:`cat confinc.out 2>/dev/null` in #(
5115 '0:this is the am__doit target') :
5116 case $s in #(
5117 BSD) :
5118 am__include='.include' am__quote='"' ;; #(
5119 *) :
5120 am__include='include' am__quote='' ;;
5121 esac ;; #(
5122 *) :
5123 ;;
5124 esac
5125 if test "$am__include" != "#"; then
5126 _am_result="yes ($s style)"
5127 break
5128 fi
5129 done
5130 rm -f confinc.* confmf.*
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5132 printf "%s\n" "${_am_result}" >&6; }
5133
5134 # Check whether --enable-dependency-tracking was given.
5135 if test ${enable_dependency_tracking+y}
5136 then :
5137 enableval=$enable_dependency_tracking;
5138 fi
5139
5140 if test "x$enable_dependency_tracking" != xno; then
5141 am_depcomp="$ac_aux_dir/depcomp"
5142 AMDEPBACKSLASH='\'
5143 am__nodep='_no'
5144 fi
5145 if test "x$enable_dependency_tracking" != xno; then
5146 AMDEP_TRUE=
5147 AMDEP_FALSE='#'
5148 else
5149 AMDEP_TRUE='#'
5150 AMDEP_FALSE=
5151 fi
5152
5153
5154
5155 depcc="$CC" am_compiler_list=
5156
5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5158 printf %s "checking dependency style of $depcc... " >&6; }
5159 if test ${am_cv_CC_dependencies_compiler_type+y}
5160 then :
5161 printf %s "(cached) " >&6
5162 else case e in #(
5163 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5164 # We make a subdir and do the tests there. Otherwise we can end up
5165 # making bogus files that we don't know about and never remove. For
5166 # instance it was reported that on HP-UX the gcc test will end up
5167 # making a dummy file named 'D' -- because '-MD' means "put the output
5168 # in D".
5169 rm -rf conftest.dir
5170 mkdir conftest.dir
5171 # Copy depcomp to subdir because otherwise we won't find it if we're
5172 # using a relative directory.
5173 cp "$am_depcomp" conftest.dir
5174 cd conftest.dir
5175 # We will build objects and dependencies in a subdirectory because
5176 # it helps to detect inapplicable dependency modes. For instance
5177 # both Tru64's cc and ICC support -MD to output dependencies as a
5178 # side effect of compilation, but ICC will put the dependencies in
5179 # the current directory while Tru64 will put them in the object
5180 # directory.
5181 mkdir sub
5182
5183 am_cv_CC_dependencies_compiler_type=none
5184 if test "$am_compiler_list" = ""; then
5185 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5186 fi
5187 am__universal=false
5188 case " $depcc " in #(
5189 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5190 esac
5191
5192 for depmode in $am_compiler_list; do
5193 # Setup a source with many dependencies, because some compilers
5194 # like to wrap large dependency lists on column 80 (with \), and
5195 # we should not choose a depcomp mode which is confused by this.
5196 #
5197 # We need to recreate these files for each test, as the compiler may
5198 # overwrite some of them when testing with obscure command lines.
5199 # This happens at least with the AIX C compiler.
5200 : > sub/conftest.c
5201 for i in 1 2 3 4 5 6; do
5202 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5203 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5204 # Solaris 10 /bin/sh.
5205 echo '/* dummy */' > sub/conftst$i.h
5206 done
5207 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5208
5209 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5210 # mode. It turns out that the SunPro C++ compiler does not properly
5211 # handle '-M -o', and we need to detect this. Also, some Intel
5212 # versions had trouble with output in subdirs.
5213 am__obj=sub/conftest.${OBJEXT-o}
5214 am__minus_obj="-o $am__obj"
5215 case $depmode in
5216 gcc)
5217 # This depmode causes a compiler race in universal mode.
5218 test "$am__universal" = false || continue
5219 ;;
5220 nosideeffect)
5221 # After this tag, mechanisms are not by side-effect, so they'll
5222 # only be used when explicitly requested.
5223 if test "x$enable_dependency_tracking" = xyes; then
5224 continue
5225 else
5226 break
5227 fi
5228 ;;
5229 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5230 # This compiler won't grok '-c -o', but also, the minuso test has
5231 # not run yet. These depmodes are late enough in the game, and
5232 # so weak that their functioning should not be impacted.
5233 am__obj=conftest.${OBJEXT-o}
5234 am__minus_obj=
5235 ;;
5236 none) break ;;
5237 esac
5238 if depmode=$depmode \
5239 source=sub/conftest.c object=$am__obj \
5240 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5241 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5242 >/dev/null 2>conftest.err &&
5243 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5244 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5245 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5246 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5247 # icc doesn't choke on unknown options, it will just issue warnings
5248 # or remarks (even with -Werror). So we grep stderr for any message
5249 # that says an option was ignored or not supported.
5250 # When given -MP, icc 7.0 and 7.1 complain thus:
5251 # icc: Command line warning: ignoring option '-M'; no argument required
5252 # The diagnosis changed in icc 8.0:
5253 # icc: Command line remark: option '-MP' not supported
5254 if (grep 'ignoring option' conftest.err ||
5255 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5256 am_cv_CC_dependencies_compiler_type=$depmode
5257 break
5258 fi
5259 fi
5260 done
5261
5262 cd ..
5263 rm -rf conftest.dir
5264 else
5265 am_cv_CC_dependencies_compiler_type=none
5266 fi
5267 ;;
5268 esac
5269 fi
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5271 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5272 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5273
5274 if
5275 test "x$enable_dependency_tracking" != xno \
5276 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5277 am__fastdepCC_TRUE=
5278 am__fastdepCC_FALSE='#'
5279 else
5280 am__fastdepCC_TRUE='#'
5281 am__fastdepCC_FALSE=
5282 fi
5283
5284
5285
5286 case `pwd` in
5287 *\ * | *\ *)
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5289 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5290 esac
5291
5292
5293
5294 macro_version='2.5.4'
5295 macro_revision='2.5.4'
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310 ltmain=$ac_aux_dir/ltmain.sh
5311
5312
5313
5314 # Make sure we can run config.sub.
5315 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5316 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5317
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5319 printf %s "checking build system type... " >&6; }
5320 if test ${ac_cv_build+y}
5321 then :
5322 printf %s "(cached) " >&6
5323 else case e in #(
5324 e) ac_build_alias=$build_alias
5325 test "x$ac_build_alias" = x &&
5326 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5327 test "x$ac_build_alias" = x &&
5328 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5329 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5330 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5331 ;;
5332 esac
5333 fi
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5335 printf "%s\n" "$ac_cv_build" >&6; }
5336 case $ac_cv_build in
5337 *-*-*) ;;
5338 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5339 esac
5340 build=$ac_cv_build
5341 ac_save_IFS=$IFS; IFS='-'
5342 set x $ac_cv_build
5343 shift
5344 build_cpu=$1
5345 build_vendor=$2
5346 shift; shift
5347 # Remember, the first character of IFS is used to create $*,
5348 # except with old shells:
5349 build_os=$*
5350 IFS=$ac_save_IFS
5351 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5352
5353
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5355 printf %s "checking host system type... " >&6; }
5356 if test ${ac_cv_host+y}
5357 then :
5358 printf %s "(cached) " >&6
5359 else case e in #(
5360 e) if test "x$host_alias" = x; then
5361 ac_cv_host=$ac_cv_build
5362 else
5363 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5364 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5365 fi
5366 ;;
5367 esac
5368 fi
5369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5370 printf "%s\n" "$ac_cv_host" >&6; }
5371 case $ac_cv_host in
5372 *-*-*) ;;
5373 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5374 esac
5375 host=$ac_cv_host
5376 ac_save_IFS=$IFS; IFS='-'
5377 set x $ac_cv_host
5378 shift
5379 host_cpu=$1
5380 host_vendor=$2
5381 shift; shift
5382 # Remember, the first character of IFS is used to create $*,
5383 # except with old shells:
5384 host_os=$*
5385 IFS=$ac_save_IFS
5386 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5387
5388
5389 # Backslashify metacharacters that are still active within
5390 # double-quoted strings.
5391 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5392
5393 # Same as above, but do not quote variable references.
5394 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5395
5396 # Sed substitution to delay expansion of an escaped shell variable in a
5397 # double_quote_subst'ed string.
5398 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5399
5400 # Sed substitution to delay expansion of an escaped single quote.
5401 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5402
5403 # Sed substitution to avoid accidental globbing in evaled expressions
5404 no_glob_subst='s/\*/\\\*/g'
5405
5406 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5407 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5408 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5409
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5411 printf %s "checking how to print strings... " >&6; }
5412 # Test print first, because it will be a builtin if present.
5413 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5414 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5415 ECHO='print -r --'
5416 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5417 ECHO='printf %s\n'
5418 else
5419 # Use this function as a fallback that always works.
5420 func_fallback_echo ()
5421 {
5422 eval 'cat <<_LTECHO_EOF
5423 $1
5424 _LTECHO_EOF'
5425 }
5426 ECHO='func_fallback_echo'
5427 fi
5428
5429 # func_echo_all arg...
5430 # Invoke $ECHO with all args, space-separated.
5431 func_echo_all ()
5432 {
5433 $ECHO ""
5434 }
5435
5436 case $ECHO in
5437 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5438 printf "%s\n" "printf" >&6; } ;;
5439 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5440 printf "%s\n" "print -r" >&6; } ;;
5441 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5442 printf "%s\n" "cat" >&6; } ;;
5443 esac
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5459 printf %s "checking for a sed that does not truncate output... " >&6; }
5460 if test ${ac_cv_path_SED+y}
5461 then :
5462 printf %s "(cached) " >&6
5463 else case e in #(
5464 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5465 for ac_i in 1 2 3 4 5 6 7; do
5466 ac_script="$ac_script$as_nl$ac_script"
5467 done
5468 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5469 { ac_script=; unset ac_script;}
5470 if test -z "$SED"; then
5471 ac_path_SED_found=false
5472 # Loop through the user's path and test for each of PROGNAME-LIST
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476 IFS=$as_save_IFS
5477 case $as_dir in #(((
5478 '') as_dir=./ ;;
5479 */) ;;
5480 *) as_dir=$as_dir/ ;;
5481 esac
5482 for ac_prog in sed gsed
5483 do
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5486 as_fn_executable_p "$ac_path_SED" || continue
5487 # Check for GNU ac_path_SED and select it if it is found.
5488 # Check for GNU $ac_path_SED
5489 case `"$ac_path_SED" --version 2>&1` in #(
5490 *GNU*)
5491 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5492 #(
5493 *)
5494 ac_count=0
5495 printf %s 0123456789 >"conftest.in"
5496 while :
5497 do
5498 cat "conftest.in" "conftest.in" >"conftest.tmp"
5499 mv "conftest.tmp" "conftest.in"
5500 cp "conftest.in" "conftest.nl"
5501 printf "%s\n" '' >> "conftest.nl"
5502 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5504 as_fn_arith $ac_count + 1 && ac_count=$as_val
5505 if test $ac_count -gt ${ac_path_SED_max-0}; then
5506 # Best one so far, save it but keep looking for a better one
5507 ac_cv_path_SED="$ac_path_SED"
5508 ac_path_SED_max=$ac_count
5509 fi
5510 # 10*(2^10) chars as input seems more than enough
5511 test $ac_count -gt 10 && break
5512 done
5513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5514 esac
5515
5516 $ac_path_SED_found && break 3
5517 done
5518 done
5519 done
5520 IFS=$as_save_IFS
5521 if test -z "$ac_cv_path_SED"; then
5522 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5523 fi
5524 else
5525 ac_cv_path_SED=$SED
5526 fi
5527 ;;
5528 esac
5529 fi
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5531 printf "%s\n" "$ac_cv_path_SED" >&6; }
5532 SED="$ac_cv_path_SED"
5533 rm -f conftest.sed
5534
5535 test -z "$SED" && SED=sed
5536 Xsed="$SED -e 1s/^X//"
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5549 printf %s "checking for grep that handles long lines and -e... " >&6; }
5550 if test ${ac_cv_path_GREP+y}
5551 then :
5552 printf %s "(cached) " >&6
5553 else case e in #(
5554 e) if test -z "$GREP"; then
5555 ac_path_GREP_found=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5559 do
5560 IFS=$as_save_IFS
5561 case $as_dir in #(((
5562 '') as_dir=./ ;;
5563 */) ;;
5564 *) as_dir=$as_dir/ ;;
5565 esac
5566 for ac_prog in grep ggrep
5567 do
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5570 as_fn_executable_p "$ac_path_GREP" || continue
5571 # Check for GNU ac_path_GREP and select it if it is found.
5572 # Check for GNU $ac_path_GREP
5573 case `"$ac_path_GREP" --version 2>&1` in #(
5574 *GNU*)
5575 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5576 #(
5577 *)
5578 ac_count=0
5579 printf %s 0123456789 >"conftest.in"
5580 while :
5581 do
5582 cat "conftest.in" "conftest.in" >"conftest.tmp"
5583 mv "conftest.tmp" "conftest.in"
5584 cp "conftest.in" "conftest.nl"
5585 printf "%s\n" 'GREP' >> "conftest.nl"
5586 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5588 as_fn_arith $ac_count + 1 && ac_count=$as_val
5589 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5590 # Best one so far, save it but keep looking for a better one
5591 ac_cv_path_GREP="$ac_path_GREP"
5592 ac_path_GREP_max=$ac_count
5593 fi
5594 # 10*(2^10) chars as input seems more than enough
5595 test $ac_count -gt 10 && break
5596 done
5597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5598 esac
5599
5600 $ac_path_GREP_found && break 3
5601 done
5602 done
5603 done
5604 IFS=$as_save_IFS
5605 if test -z "$ac_cv_path_GREP"; then
5606 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5607 fi
5608 else
5609 ac_cv_path_GREP=$GREP
5610 fi
5611 ;;
5612 esac
5613 fi
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5615 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5616 GREP="$ac_cv_path_GREP"
5617
5618
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5620 printf %s "checking for egrep... " >&6; }
5621 if test ${ac_cv_path_EGREP+y}
5622 then :
5623 printf %s "(cached) " >&6
5624 else case e in #(
5625 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5626 then ac_cv_path_EGREP="$GREP -E"
5627 else
5628 if test -z "$EGREP"; then
5629 ac_path_EGREP_found=false
5630 # Loop through the user's path and test for each of PROGNAME-LIST
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5633 do
5634 IFS=$as_save_IFS
5635 case $as_dir in #(((
5636 '') as_dir=./ ;;
5637 */) ;;
5638 *) as_dir=$as_dir/ ;;
5639 esac
5640 for ac_prog in egrep
5641 do
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5644 as_fn_executable_p "$ac_path_EGREP" || continue
5645 # Check for GNU ac_path_EGREP and select it if it is found.
5646 # Check for GNU $ac_path_EGREP
5647 case `"$ac_path_EGREP" --version 2>&1` in #(
5648 *GNU*)
5649 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5650 #(
5651 *)
5652 ac_count=0
5653 printf %s 0123456789 >"conftest.in"
5654 while :
5655 do
5656 cat "conftest.in" "conftest.in" >"conftest.tmp"
5657 mv "conftest.tmp" "conftest.in"
5658 cp "conftest.in" "conftest.nl"
5659 printf "%s\n" 'EGREP' >> "conftest.nl"
5660 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5662 as_fn_arith $ac_count + 1 && ac_count=$as_val
5663 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5664 # Best one so far, save it but keep looking for a better one
5665 ac_cv_path_EGREP="$ac_path_EGREP"
5666 ac_path_EGREP_max=$ac_count
5667 fi
5668 # 10*(2^10) chars as input seems more than enough
5669 test $ac_count -gt 10 && break
5670 done
5671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5672 esac
5673
5674 $ac_path_EGREP_found && break 3
5675 done
5676 done
5677 done
5678 IFS=$as_save_IFS
5679 if test -z "$ac_cv_path_EGREP"; then
5680 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5681 fi
5682 else
5683 ac_cv_path_EGREP=$EGREP
5684 fi
5685
5686 fi ;;
5687 esac
5688 fi
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5690 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5691 EGREP="$ac_cv_path_EGREP"
5692
5693 EGREP_TRADITIONAL=$EGREP
5694 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5695
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5697 printf %s "checking for fgrep... " >&6; }
5698 if test ${ac_cv_path_FGREP+y}
5699 then :
5700 printf %s "(cached) " >&6
5701 else case e in #(
5702 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5703 then ac_cv_path_FGREP="$GREP -F"
5704 else
5705 if test -z "$FGREP"; then
5706 ac_path_FGREP_found=false
5707 # Loop through the user's path and test for each of PROGNAME-LIST
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5710 do
5711 IFS=$as_save_IFS
5712 case $as_dir in #(((
5713 '') as_dir=./ ;;
5714 */) ;;
5715 *) as_dir=$as_dir/ ;;
5716 esac
5717 for ac_prog in fgrep
5718 do
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5721 as_fn_executable_p "$ac_path_FGREP" || continue
5722 # Check for GNU ac_path_FGREP and select it if it is found.
5723 # Check for GNU $ac_path_FGREP
5724 case `"$ac_path_FGREP" --version 2>&1` in #(
5725 *GNU*)
5726 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5727 #(
5728 *)
5729 ac_count=0
5730 printf %s 0123456789 >"conftest.in"
5731 while :
5732 do
5733 cat "conftest.in" "conftest.in" >"conftest.tmp"
5734 mv "conftest.tmp" "conftest.in"
5735 cp "conftest.in" "conftest.nl"
5736 printf "%s\n" 'FGREP' >> "conftest.nl"
5737 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5739 as_fn_arith $ac_count + 1 && ac_count=$as_val
5740 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5741 # Best one so far, save it but keep looking for a better one
5742 ac_cv_path_FGREP="$ac_path_FGREP"
5743 ac_path_FGREP_max=$ac_count
5744 fi
5745 # 10*(2^10) chars as input seems more than enough
5746 test $ac_count -gt 10 && break
5747 done
5748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5749 esac
5750
5751 $ac_path_FGREP_found && break 3
5752 done
5753 done
5754 done
5755 IFS=$as_save_IFS
5756 if test -z "$ac_cv_path_FGREP"; then
5757 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5758 fi
5759 else
5760 ac_cv_path_FGREP=$FGREP
5761 fi
5762
5763 fi ;;
5764 esac
5765 fi
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5767 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5768 FGREP="$ac_cv_path_FGREP"
5769
5770
5771 test -z "$GREP" && GREP=grep
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791 # Check whether --with-gnu-ld was given.
5792 if test ${with_gnu_ld+y}
5793 then :
5794 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5795 else case e in #(
5796 e) with_gnu_ld=no ;;
5797 esac
5798 fi
5799
5800 ac_prog=ld
5801 if test yes = "$GCC"; then
5802 # Check if gcc -print-prog-name=ld gives a path.
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5804 printf %s "checking for ld used by $CC... " >&6; }
5805 case $host in
5806 *-*-mingw* | *-*-windows*)
5807 # gcc leaves a trailing carriage return, which upsets mingw
5808 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5809 *)
5810 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5811 esac
5812 case $ac_prog in
5813 # Accept absolute paths.
5814 [\\/]* | ?:[\\/]*)
5815 re_direlt='/[^/][^/]*/\.\./'
5816 # Canonicalize the pathname of ld
5817 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5818 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5819 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5820 done
5821 test -z "$LD" && LD=$ac_prog
5822 ;;
5823 "")
5824 # If it fails, then pretend we aren't using GCC.
5825 ac_prog=ld
5826 ;;
5827 *)
5828 # If it is relative, then search for the first ld in PATH.
5829 with_gnu_ld=unknown
5830 ;;
5831 esac
5832 elif test yes = "$with_gnu_ld"; then
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5834 printf %s "checking for GNU ld... " >&6; }
5835 else
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5837 printf %s "checking for non-GNU ld... " >&6; }
5838 fi
5839 if test ${lt_cv_path_LD+y}
5840 then :
5841 printf %s "(cached) " >&6
5842 else case e in #(
5843 e) if test -z "$LD"; then
5844 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5845 for ac_dir in $PATH; do
5846 IFS=$lt_save_ifs
5847 test -z "$ac_dir" && ac_dir=.
5848 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5849 lt_cv_path_LD=$ac_dir/$ac_prog
5850 # Check to see if the program is GNU ld. I'd rather use --version,
5851 # but apparently some variants of GNU ld only accept -v.
5852 # Break only if it was the GNU/non-GNU ld that we prefer.
5853 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5854 *GNU* | *'with BFD'*)
5855 test no != "$with_gnu_ld" && break
5856 ;;
5857 *)
5858 test yes != "$with_gnu_ld" && break
5859 ;;
5860 esac
5861 fi
5862 done
5863 IFS=$lt_save_ifs
5864 else
5865 lt_cv_path_LD=$LD # Let the user override the test with a path.
5866 fi ;;
5867 esac
5868 fi
5869
5870 LD=$lt_cv_path_LD
5871 if test -n "$LD"; then
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5873 printf "%s\n" "$LD" >&6; }
5874 else
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 printf "%s\n" "no" >&6; }
5877 fi
5878 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5880 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5881 if test ${lt_cv_prog_gnu_ld+y}
5882 then :
5883 printf %s "(cached) " >&6
5884 else case e in #(
5885 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5886 case `$LD -v 2>&1 </dev/null` in
5887 *GNU* | *'with BFD'*)
5888 lt_cv_prog_gnu_ld=yes
5889 ;;
5890 *)
5891 lt_cv_prog_gnu_ld=no
5892 ;;
5893 esac ;;
5894 esac
5895 fi
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5897 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5898 with_gnu_ld=$lt_cv_prog_gnu_ld
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5909 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5910 if test ${lt_cv_path_NM+y}
5911 then :
5912 printf %s "(cached) " >&6
5913 else case e in #(
5914 e) if test -n "$NM"; then
5915 # Let the user override the test.
5916 lt_cv_path_NM=$NM
5917 else
5918 lt_nm_to_check=${ac_tool_prefix}nm
5919 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5920 lt_nm_to_check="$lt_nm_to_check nm"
5921 fi
5922 for lt_tmp_nm in $lt_nm_to_check; do
5923 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5924 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5925 IFS=$lt_save_ifs
5926 test -z "$ac_dir" && ac_dir=.
5927 tmp_nm=$ac_dir/$lt_tmp_nm
5928 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5929 # Check to see if the nm accepts a BSD-compat flag.
5930 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5931 # nm: unknown option "B" ignored
5932 # Tru64's nm complains that /dev/null is an invalid object file
5933 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5934 case $build_os in
5935 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5936 *) lt_bad_file=/dev/null ;;
5937 esac
5938 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5939 *$lt_bad_file* | *'Invalid file or object type'*)
5940 lt_cv_path_NM="$tmp_nm -B"
5941 break 2
5942 ;;
5943 *)
5944 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5945 */dev/null*)
5946 lt_cv_path_NM="$tmp_nm -p"
5947 break 2
5948 ;;
5949 *)
5950 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5951 continue # so that we can try to find one that supports BSD flags
5952 ;;
5953 esac
5954 ;;
5955 esac
5956 fi
5957 done
5958 IFS=$lt_save_ifs
5959 done
5960 : ${lt_cv_path_NM=no}
5961 fi ;;
5962 esac
5963 fi
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5965 printf "%s\n" "$lt_cv_path_NM" >&6; }
5966 if test no != "$lt_cv_path_NM"; then
5967 NM=$lt_cv_path_NM
5968 else
5969 # Didn't find any BSD compatible name lister, look for dumpbin.
5970 if test -n "$DUMPBIN"; then :
5971 # Let the user override the test.
5972 else
5973 if test -n "$ac_tool_prefix"; then
5974 for ac_prog in dumpbin "link -dump"
5975 do
5976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979 printf %s "checking for $ac_word... " >&6; }
5980 if test ${ac_cv_prog_DUMPBIN+y}
5981 then :
5982 printf %s "(cached) " >&6
5983 else case e in #(
5984 e) if test -n "$DUMPBIN"; then
5985 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990 IFS=$as_save_IFS
5991 case $as_dir in #(((
5992 '') as_dir=./ ;;
5993 */) ;;
5994 *) as_dir=$as_dir/ ;;
5995 esac
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6000 break 2
6001 fi
6002 done
6003 done
6004 IFS=$as_save_IFS
6005
6006 fi ;;
6007 esac
6008 fi
6009 DUMPBIN=$ac_cv_prog_DUMPBIN
6010 if test -n "$DUMPBIN"; then
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6012 printf "%s\n" "$DUMPBIN" >&6; }
6013 else
6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 printf "%s\n" "no" >&6; }
6016 fi
6017
6018
6019 test -n "$DUMPBIN" && break
6020 done
6021 fi
6022 if test -z "$DUMPBIN"; then
6023 ac_ct_DUMPBIN=$DUMPBIN
6024 for ac_prog in dumpbin "link -dump"
6025 do
6026 # Extract the first word of "$ac_prog", so it can be a program name with args.
6027 set dummy $ac_prog; ac_word=$2
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 printf %s "checking for $ac_word... " >&6; }
6030 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6031 then :
6032 printf %s "(cached) " >&6
6033 else case e in #(
6034 e) if test -n "$ac_ct_DUMPBIN"; then
6035 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040 IFS=$as_save_IFS
6041 case $as_dir in #(((
6042 '') as_dir=./ ;;
6043 */) ;;
6044 *) as_dir=$as_dir/ ;;
6045 esac
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6048 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052 done
6053 done
6054 IFS=$as_save_IFS
6055
6056 fi ;;
6057 esac
6058 fi
6059 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6060 if test -n "$ac_ct_DUMPBIN"; then
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6062 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6063 else
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 printf "%s\n" "no" >&6; }
6066 fi
6067
6068
6069 test -n "$ac_ct_DUMPBIN" && break
6070 done
6071
6072 if test "x$ac_ct_DUMPBIN" = x; then
6073 DUMPBIN=":"
6074 else
6075 case $cross_compiling:$ac_tool_warned in
6076 yes:)
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6078 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6079 ac_tool_warned=yes ;;
6080 esac
6081 DUMPBIN=$ac_ct_DUMPBIN
6082 fi
6083 fi
6084
6085 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6086 *COFF*)
6087 DUMPBIN="$DUMPBIN -symbols -headers"
6088 ;;
6089 *)
6090 DUMPBIN=:
6091 ;;
6092 esac
6093 fi
6094
6095 if test : != "$DUMPBIN"; then
6096 NM=$DUMPBIN
6097 fi
6098 fi
6099 test -z "$NM" && NM=nm
6100
6101
6102
6103
6104
6105
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6107 printf %s "checking the name lister ($NM) interface... " >&6; }
6108 if test ${lt_cv_nm_interface+y}
6109 then :
6110 printf %s "(cached) " >&6
6111 else case e in #(
6112 e) lt_cv_nm_interface="BSD nm"
6113 echo "int some_variable = 0;" > conftest.$ac_ext
6114 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6115 (eval "$ac_compile" 2>conftest.err)
6116 cat conftest.err >&5
6117 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6118 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6119 cat conftest.err >&5
6120 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6121 cat conftest.out >&5
6122 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6123 lt_cv_nm_interface="MS dumpbin"
6124 fi
6125 rm -f conftest* ;;
6126 esac
6127 fi
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6129 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6130
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6132 printf %s "checking whether ln -s works... " >&6; }
6133 LN_S=$as_ln_s
6134 if test "$LN_S" = "ln -s"; then
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6136 printf "%s\n" "yes" >&6; }
6137 else
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6139 printf "%s\n" "no, using $LN_S" >&6; }
6140 fi
6141
6142 # find the maximum length of command line arguments
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6144 printf %s "checking the maximum length of command line arguments... " >&6; }
6145 if test ${lt_cv_sys_max_cmd_len+y}
6146 then :
6147 printf %s "(cached) " >&6
6148 else case e in #(
6149 e) i=0
6150 teststring=ABCD
6151
6152 case $build_os in
6153 msdosdjgpp*)
6154 # On DJGPP, this test can blow up pretty badly due to problems in libc
6155 # (any single argument exceeding 2000 bytes causes a buffer overrun
6156 # during glob expansion). Even if it were fixed, the result of this
6157 # check would be larger than it should be.
6158 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6159 ;;
6160
6161 gnu* | ironclad*)
6162 # Under GNU Hurd and Ironclad, this test is not required because there
6163 # is no limit to the length of command line arguments.
6164 # Libtool will interpret -1 as no limit whatsoever
6165 lt_cv_sys_max_cmd_len=-1;
6166 ;;
6167
6168 cygwin* | mingw* | windows* | cegcc*)
6169 # On Win9x/ME, this test blows up -- it succeeds, but takes
6170 # about 5 minutes as the teststring grows exponentially.
6171 # Worse, since 9x/ME are not pre-emptively multitasking,
6172 # you end up with a "frozen" computer, even though with patience
6173 # the test eventually succeeds (with a max line length of 256k).
6174 # Instead, let's just punt: use the minimum linelength reported by
6175 # all of the supported platforms: 8192 (on NT/2K/XP).
6176 lt_cv_sys_max_cmd_len=8192;
6177 ;;
6178
6179 mint*)
6180 # On MiNT this can take a long time and run out of memory.
6181 lt_cv_sys_max_cmd_len=8192;
6182 ;;
6183
6184 amigaos*)
6185 # On AmigaOS with pdksh, this test takes hours, literally.
6186 # So we just punt and use a minimum line length of 8192.
6187 lt_cv_sys_max_cmd_len=8192;
6188 ;;
6189
6190 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6191 # This has been around since 386BSD, at least. Likely further.
6192 if test -x /sbin/sysctl; then
6193 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6194 elif test -x /usr/sbin/sysctl; then
6195 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6196 else
6197 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6198 fi
6199 # And add a safety zone
6200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6202 ;;
6203
6204 interix*)
6205 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6206 lt_cv_sys_max_cmd_len=196608
6207 ;;
6208
6209 os2*)
6210 # The test takes a long time on OS/2.
6211 lt_cv_sys_max_cmd_len=8192
6212 ;;
6213
6214 osf*)
6215 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6216 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6217 # nice to cause kernel panics so lets avoid the loop below.
6218 # First set a reasonable default.
6219 lt_cv_sys_max_cmd_len=16384
6220 #
6221 if test -x /sbin/sysconfig; then
6222 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6223 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6224 esac
6225 fi
6226 ;;
6227 sco3.2v5*)
6228 lt_cv_sys_max_cmd_len=102400
6229 ;;
6230 sysv5* | sco5v6* | sysv4.2uw2*)
6231 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6232 if test -n "$kargmax"; then
6233 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6234 else
6235 lt_cv_sys_max_cmd_len=32768
6236 fi
6237 ;;
6238 *)
6239 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6240 if test -n "$lt_cv_sys_max_cmd_len" && \
6241 test undefined != "$lt_cv_sys_max_cmd_len"; then
6242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6244 else
6245 # Make teststring a little bigger before we do anything with it.
6246 # a 1K string should be a reasonable start.
6247 for i in 1 2 3 4 5 6 7 8; do
6248 teststring=$teststring$teststring
6249 done
6250 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6251 # If test is not a shell built-in, we'll probably end up computing a
6252 # maximum length that is only half of the actual maximum length, but
6253 # we can't tell.
6254 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6255 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6256 test 17 != "$i" # 1/2 MB should be enough
6257 do
6258 i=`expr $i + 1`
6259 teststring=$teststring$teststring
6260 done
6261 # Only check the string length outside the loop.
6262 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6263 teststring=
6264 # Add a significant safety factor because C++ compilers can tack on
6265 # massive amounts of additional arguments before passing them to the
6266 # linker. It appears as though 1/2 is a usable value.
6267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6268 fi
6269 ;;
6270 esac
6271 ;;
6272 esac
6273 fi
6274
6275 if test -n "$lt_cv_sys_max_cmd_len"; then
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6277 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6278 else
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6280 printf "%s\n" "none" >&6; }
6281 fi
6282 max_cmd_len=$lt_cv_sys_max_cmd_len
6283
6284
6285
6286
6287
6288
6289 : ${CP="cp -f"}
6290 : ${MV="mv -f"}
6291 : ${RM="rm -f"}
6292
6293 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6294 lt_unset=unset
6295 else
6296 lt_unset=false
6297 fi
6298
6299
6300
6301
6302
6303 # test EBCDIC or ASCII
6304 case `echo X|tr X '\101'` in
6305 A) # ASCII based system
6306 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6307 lt_SP2NL='tr \040 \012'
6308 lt_NL2SP='tr \015\012 \040\040'
6309 ;;
6310 *) # EBCDIC based system
6311 lt_SP2NL='tr \100 \n'
6312 lt_NL2SP='tr \r\n \100\100'
6313 ;;
6314 esac
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6325 printf %s "checking how to convert $build file names to $host format... " >&6; }
6326 if test ${lt_cv_to_host_file_cmd+y}
6327 then :
6328 printf %s "(cached) " >&6
6329 else case e in #(
6330 e) case $host in
6331 *-*-mingw* )
6332 case $build in
6333 *-*-mingw* | *-*-windows* ) # actually msys
6334 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6335 ;;
6336 *-*-cygwin* )
6337 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6338 ;;
6339 * ) # otherwise, assume *nix
6340 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6341 ;;
6342 esac
6343 ;;
6344 *-*-cygwin* )
6345 case $build in
6346 *-*-mingw* | *-*-windows* ) # actually msys
6347 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6348 ;;
6349 *-*-cygwin* )
6350 lt_cv_to_host_file_cmd=func_convert_file_noop
6351 ;;
6352 * ) # otherwise, assume *nix
6353 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6354 ;;
6355 esac
6356 ;;
6357 * ) # unhandled hosts (and "normal" native builds)
6358 lt_cv_to_host_file_cmd=func_convert_file_noop
6359 ;;
6360 esac
6361 ;;
6362 esac
6363 fi
6364
6365 to_host_file_cmd=$lt_cv_to_host_file_cmd
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6367 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6368
6369
6370
6371
6372
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6374 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6375 if test ${lt_cv_to_tool_file_cmd+y}
6376 then :
6377 printf %s "(cached) " >&6
6378 else case e in #(
6379 e) #assume ordinary cross tools, or native build.
6380 lt_cv_to_tool_file_cmd=func_convert_file_noop
6381 case $host in
6382 *-*-mingw* | *-*-windows* )
6383 case $build in
6384 *-*-mingw* | *-*-windows* ) # actually msys
6385 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6386 ;;
6387 esac
6388 ;;
6389 esac
6390 ;;
6391 esac
6392 fi
6393
6394 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6396 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6397
6398
6399
6400
6401
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6403 printf %s "checking for $LD option to reload object files... " >&6; }
6404 if test ${lt_cv_ld_reload_flag+y}
6405 then :
6406 printf %s "(cached) " >&6
6407 else case e in #(
6408 e) lt_cv_ld_reload_flag='-r' ;;
6409 esac
6410 fi
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6412 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6413 reload_flag=$lt_cv_ld_reload_flag
6414 case $reload_flag in
6415 "" | " "*) ;;
6416 *) reload_flag=" $reload_flag" ;;
6417 esac
6418 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6419 case $host_os in
6420 cygwin* | mingw* | windows* | pw32* | cegcc*)
6421 if test yes != "$GCC"; then
6422 reload_cmds=false
6423 fi
6424 ;;
6425 darwin*)
6426 if test yes = "$GCC"; then
6427 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6428 else
6429 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6430 fi
6431 ;;
6432 esac
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 # Extract the first word of "file", so it can be a program name with args.
6443 set dummy file; ac_word=$2
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 printf %s "checking for $ac_word... " >&6; }
6446 if test ${ac_cv_prog_FILECMD+y}
6447 then :
6448 printf %s "(cached) " >&6
6449 else case e in #(
6450 e) if test -n "$FILECMD"; then
6451 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456 IFS=$as_save_IFS
6457 case $as_dir in #(((
6458 '') as_dir=./ ;;
6459 */) ;;
6460 *) as_dir=$as_dir/ ;;
6461 esac
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6464 ac_cv_prog_FILECMD="file"
6465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6473 fi ;;
6474 esac
6475 fi
6476 FILECMD=$ac_cv_prog_FILECMD
6477 if test -n "$FILECMD"; then
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6479 printf "%s\n" "$FILECMD" >&6; }
6480 else
6481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 printf "%s\n" "no" >&6; }
6483 fi
6484
6485
6486
6487
6488
6489
6490
6491
6492 if test -n "$ac_tool_prefix"; then
6493 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6494 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 printf %s "checking for $ac_word... " >&6; }
6497 if test ${ac_cv_prog_OBJDUMP+y}
6498 then :
6499 printf %s "(cached) " >&6
6500 else case e in #(
6501 e) if test -n "$OBJDUMP"; then
6502 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507 IFS=$as_save_IFS
6508 case $as_dir in #(((
6509 '') as_dir=./ ;;
6510 */) ;;
6511 *) as_dir=$as_dir/ ;;
6512 esac
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6517 break 2
6518 fi
6519 done
6520 done
6521 IFS=$as_save_IFS
6522
6523 fi ;;
6524 esac
6525 fi
6526 OBJDUMP=$ac_cv_prog_OBJDUMP
6527 if test -n "$OBJDUMP"; then
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6529 printf "%s\n" "$OBJDUMP" >&6; }
6530 else
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 printf "%s\n" "no" >&6; }
6533 fi
6534
6535
6536 fi
6537 if test -z "$ac_cv_prog_OBJDUMP"; then
6538 ac_ct_OBJDUMP=$OBJDUMP
6539 # Extract the first word of "objdump", so it can be a program name with args.
6540 set dummy objdump; ac_word=$2
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 printf %s "checking for $ac_word... " >&6; }
6543 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6544 then :
6545 printf %s "(cached) " >&6
6546 else case e in #(
6547 e) if test -n "$ac_ct_OBJDUMP"; then
6548 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553 IFS=$as_save_IFS
6554 case $as_dir in #(((
6555 '') as_dir=./ ;;
6556 */) ;;
6557 *) as_dir=$as_dir/ ;;
6558 esac
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6563 break 2
6564 fi
6565 done
6566 done
6567 IFS=$as_save_IFS
6568
6569 fi ;;
6570 esac
6571 fi
6572 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6573 if test -n "$ac_ct_OBJDUMP"; then
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6575 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6576 else
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 printf "%s\n" "no" >&6; }
6579 fi
6580
6581 if test "x$ac_ct_OBJDUMP" = x; then
6582 OBJDUMP="false"
6583 else
6584 case $cross_compiling:$ac_tool_warned in
6585 yes:)
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6589 esac
6590 OBJDUMP=$ac_ct_OBJDUMP
6591 fi
6592 else
6593 OBJDUMP="$ac_cv_prog_OBJDUMP"
6594 fi
6595
6596 test -z "$OBJDUMP" && OBJDUMP=objdump
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6607 printf %s "checking how to recognize dependent libraries... " >&6; }
6608 if test ${lt_cv_deplibs_check_method+y}
6609 then :
6610 printf %s "(cached) " >&6
6611 else case e in #(
6612 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6613 lt_cv_file_magic_test_file=
6614 lt_cv_deplibs_check_method='unknown'
6615 # Need to set the preceding variable on all platforms that support
6616 # interlibrary dependencies.
6617 # 'none' -- dependencies not supported.
6618 # 'unknown' -- same as none, but documents that we really don't know.
6619 # 'pass_all' -- all dependencies passed with no checks.
6620 # 'file_magic [[regex]]' -- check by looking for files in library path
6621 # that responds to the $file_magic_cmd with a given extended regex.
6622 # If you have 'file' or equivalent on your system and you're not sure
6623 # whether 'pass_all' will *always* work, you probably want this one.
6624
6625 case $host_os in
6626 aix[4-9]*)
6627 lt_cv_deplibs_check_method=pass_all
6628 ;;
6629
6630 beos*)
6631 lt_cv_deplibs_check_method=pass_all
6632 ;;
6633
6634 bsdi[45]*)
6635 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6636 lt_cv_file_magic_cmd='$FILECMD -L'
6637 lt_cv_file_magic_test_file=/shlib/libc.so
6638 ;;
6639
6640 cygwin*)
6641 # func_win32_libid is a shell function defined in ltmain.sh
6642 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6643 lt_cv_file_magic_cmd='func_win32_libid'
6644 ;;
6645
6646 mingw* | windows* | pw32*)
6647 # Base MSYS/MinGW do not provide the 'file' command needed by
6648 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6649 # unless we find 'file', for example because we are cross-compiling.
6650 if ( file / ) >/dev/null 2>&1; then
6651 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6652 lt_cv_file_magic_cmd='func_win32_libid'
6653 else
6654 # Keep this pattern in sync with the one in func_win32_libid.
6655 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6656 lt_cv_file_magic_cmd='$OBJDUMP -f'
6657 fi
6658 ;;
6659
6660 cegcc*)
6661 # use the weaker test based on 'objdump'. See mingw*.
6662 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6663 lt_cv_file_magic_cmd='$OBJDUMP -f'
6664 ;;
6665
6666 darwin* | rhapsody*)
6667 lt_cv_deplibs_check_method=pass_all
6668 ;;
6669
6670 freebsd* | dragonfly* | midnightbsd*)
6671 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6672 case $host_cpu in
6673 i*86 )
6674 # Not sure whether the presence of OpenBSD here was a mistake.
6675 # Let's accept both of them until this is cleared up.
6676 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6677 lt_cv_file_magic_cmd=$FILECMD
6678 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6679 ;;
6680 esac
6681 else
6682 lt_cv_deplibs_check_method=pass_all
6683 fi
6684 ;;
6685
6686 haiku*)
6687 lt_cv_deplibs_check_method=pass_all
6688 ;;
6689
6690 hpux10.20* | hpux11*)
6691 lt_cv_file_magic_cmd=$FILECMD
6692 case $host_cpu in
6693 ia64*)
6694 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6695 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6696 ;;
6697 hppa*64*)
6698 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]'
6699 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6700 ;;
6701 *)
6702 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6703 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6704 ;;
6705 esac
6706 ;;
6707
6708 interix[3-9]*)
6709 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6711 ;;
6712
6713 irix5* | irix6* | nonstopux*)
6714 case $LD in
6715 *-32|*"-32 ") libmagic=32-bit;;
6716 *-n32|*"-n32 ") libmagic=N32;;
6717 *-64|*"-64 ") libmagic=64-bit;;
6718 *) libmagic=never-match;;
6719 esac
6720 lt_cv_deplibs_check_method=pass_all
6721 ;;
6722
6723 # This must be glibc/ELF.
6724 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6725 lt_cv_deplibs_check_method=pass_all
6726 ;;
6727
6728 *-mlibc)
6729 lt_cv_deplibs_check_method=pass_all
6730 ;;
6731
6732 netbsd* | netbsdelf*-gnu)
6733 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6735 else
6736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6737 fi
6738 ;;
6739
6740 newos6*)
6741 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6742 lt_cv_file_magic_cmd=$FILECMD
6743 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6744 ;;
6745
6746 *nto* | *qnx*)
6747 lt_cv_deplibs_check_method=pass_all
6748 ;;
6749
6750 openbsd*)
6751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6753 else
6754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6755 fi
6756 ;;
6757
6758 osf3* | osf4* | osf5*)
6759 lt_cv_deplibs_check_method=pass_all
6760 ;;
6761
6762 rdos*)
6763 lt_cv_deplibs_check_method=pass_all
6764 ;;
6765
6766 serenity*)
6767 lt_cv_deplibs_check_method=pass_all
6768 ;;
6769
6770 solaris*)
6771 lt_cv_deplibs_check_method=pass_all
6772 ;;
6773
6774 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6775 lt_cv_deplibs_check_method=pass_all
6776 ;;
6777
6778 sysv4 | sysv4.3*)
6779 case $host_vendor in
6780 motorola)
6781 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]'
6782 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6783 ;;
6784 ncr)
6785 lt_cv_deplibs_check_method=pass_all
6786 ;;
6787 sequent)
6788 lt_cv_file_magic_cmd='/bin/file'
6789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6790 ;;
6791 sni)
6792 lt_cv_file_magic_cmd='/bin/file'
6793 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6794 lt_cv_file_magic_test_file=/lib/libc.so
6795 ;;
6796 siemens)
6797 lt_cv_deplibs_check_method=pass_all
6798 ;;
6799 pc)
6800 lt_cv_deplibs_check_method=pass_all
6801 ;;
6802 esac
6803 ;;
6804
6805 tpf*)
6806 lt_cv_deplibs_check_method=pass_all
6807 ;;
6808 os2*)
6809 lt_cv_deplibs_check_method=pass_all
6810 ;;
6811 esac
6812 ;;
6813 esac
6814 fi
6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6816 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6817
6818 file_magic_glob=
6819 want_nocaseglob=no
6820 if test "$build" = "$host"; then
6821 case $host_os in
6822 mingw* | windows* | pw32*)
6823 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6824 want_nocaseglob=yes
6825 else
6826 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6827 fi
6828 ;;
6829 esac
6830 fi
6831
6832 file_magic_cmd=$lt_cv_file_magic_cmd
6833 deplibs_check_method=$lt_cv_deplibs_check_method
6834 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857 if test -n "$ac_tool_prefix"; then
6858 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6859 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 printf %s "checking for $ac_word... " >&6; }
6862 if test ${ac_cv_prog_DLLTOOL+y}
6863 then :
6864 printf %s "(cached) " >&6
6865 else case e in #(
6866 e) if test -n "$DLLTOOL"; then
6867 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872 IFS=$as_save_IFS
6873 case $as_dir in #(((
6874 '') as_dir=./ ;;
6875 */) ;;
6876 *) as_dir=$as_dir/ ;;
6877 esac
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6880 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884 done
6885 done
6886 IFS=$as_save_IFS
6887
6888 fi ;;
6889 esac
6890 fi
6891 DLLTOOL=$ac_cv_prog_DLLTOOL
6892 if test -n "$DLLTOOL"; then
6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6894 printf "%s\n" "$DLLTOOL" >&6; }
6895 else
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 printf "%s\n" "no" >&6; }
6898 fi
6899
6900
6901 fi
6902 if test -z "$ac_cv_prog_DLLTOOL"; then
6903 ac_ct_DLLTOOL=$DLLTOOL
6904 # Extract the first word of "dlltool", so it can be a program name with args.
6905 set dummy dlltool; ac_word=$2
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 printf %s "checking for $ac_word... " >&6; }
6908 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6909 then :
6910 printf %s "(cached) " >&6
6911 else case e in #(
6912 e) if test -n "$ac_ct_DLLTOOL"; then
6913 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918 IFS=$as_save_IFS
6919 case $as_dir in #(((
6920 '') as_dir=./ ;;
6921 */) ;;
6922 *) as_dir=$as_dir/ ;;
6923 esac
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6926 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930 done
6931 done
6932 IFS=$as_save_IFS
6933
6934 fi ;;
6935 esac
6936 fi
6937 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6938 if test -n "$ac_ct_DLLTOOL"; then
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6940 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6941 else
6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 printf "%s\n" "no" >&6; }
6944 fi
6945
6946 if test "x$ac_ct_DLLTOOL" = x; then
6947 DLLTOOL="false"
6948 else
6949 case $cross_compiling:$ac_tool_warned in
6950 yes:)
6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953 ac_tool_warned=yes ;;
6954 esac
6955 DLLTOOL=$ac_ct_DLLTOOL
6956 fi
6957 else
6958 DLLTOOL="$ac_cv_prog_DLLTOOL"
6959 fi
6960
6961 test -z "$DLLTOOL" && DLLTOOL=dlltool
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6973 printf %s "checking how to associate runtime and link libraries... " >&6; }
6974 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6975 then :
6976 printf %s "(cached) " >&6
6977 else case e in #(
6978 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6979
6980 case $host_os in
6981 cygwin* | mingw* | windows* | pw32* | cegcc*)
6982 # two different shell functions defined in ltmain.sh;
6983 # decide which one to use based on capabilities of $DLLTOOL
6984 case `$DLLTOOL --help 2>&1` in
6985 *--identify-strict*)
6986 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6987 ;;
6988 *)
6989 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6990 ;;
6991 esac
6992 ;;
6993 *)
6994 # fallback: assume linklib IS sharedlib
6995 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6996 ;;
6997 esac
6998 ;;
6999 esac
7000 fi
7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7002 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7003 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7004 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7005
7006
7007
7008
7009
7010
7011
7012
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7015 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 printf %s "checking for $ac_word... " >&6; }
7018 if test ${ac_cv_prog_RANLIB+y}
7019 then :
7020 printf %s "(cached) " >&6
7021 else case e in #(
7022 e) if test -n "$RANLIB"; then
7023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028 IFS=$as_save_IFS
7029 case $as_dir in #(((
7030 '') as_dir=./ ;;
7031 */) ;;
7032 *) as_dir=$as_dir/ ;;
7033 esac
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044 fi ;;
7045 esac
7046 fi
7047 RANLIB=$ac_cv_prog_RANLIB
7048 if test -n "$RANLIB"; then
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7050 printf "%s\n" "$RANLIB" >&6; }
7051 else
7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 printf "%s\n" "no" >&6; }
7054 fi
7055
7056
7057 fi
7058 if test -z "$ac_cv_prog_RANLIB"; then
7059 ac_ct_RANLIB=$RANLIB
7060 # Extract the first word of "ranlib", so it can be a program name with args.
7061 set dummy ranlib; ac_word=$2
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 printf %s "checking for $ac_word... " >&6; }
7064 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7065 then :
7066 printf %s "(cached) " >&6
7067 else case e in #(
7068 e) if test -n "$ac_ct_RANLIB"; then
7069 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074 IFS=$as_save_IFS
7075 case $as_dir in #(((
7076 '') as_dir=./ ;;
7077 */) ;;
7078 *) as_dir=$as_dir/ ;;
7079 esac
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_ac_ct_RANLIB="ranlib"
7083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086 done
7087 done
7088 IFS=$as_save_IFS
7089
7090 fi ;;
7091 esac
7092 fi
7093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7094 if test -n "$ac_ct_RANLIB"; then
7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7096 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7097 else
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 printf "%s\n" "no" >&6; }
7100 fi
7101
7102 if test "x$ac_ct_RANLIB" = x; then
7103 RANLIB=":"
7104 else
7105 case $cross_compiling:$ac_tool_warned in
7106 yes:)
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109 ac_tool_warned=yes ;;
7110 esac
7111 RANLIB=$ac_ct_RANLIB
7112 fi
7113 else
7114 RANLIB="$ac_cv_prog_RANLIB"
7115 fi
7116
7117 if test -n "$ac_tool_prefix"; then
7118 for ac_prog in ar
7119 do
7120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 printf %s "checking for $ac_word... " >&6; }
7124 if test ${ac_cv_prog_AR+y}
7125 then :
7126 printf %s "(cached) " >&6
7127 else case e in #(
7128 e) if test -n "$AR"; then
7129 ac_cv_prog_AR="$AR" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134 IFS=$as_save_IFS
7135 case $as_dir in #(((
7136 '') as_dir=./ ;;
7137 */) ;;
7138 *) as_dir=$as_dir/ ;;
7139 esac
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7142 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi ;;
7151 esac
7152 fi
7153 AR=$ac_cv_prog_AR
7154 if test -n "$AR"; then
7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7156 printf "%s\n" "$AR" >&6; }
7157 else
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 printf "%s\n" "no" >&6; }
7160 fi
7161
7162
7163 test -n "$AR" && break
7164 done
7165 fi
7166 if test -z "$AR"; then
7167 ac_ct_AR=$AR
7168 for ac_prog in ar
7169 do
7170 # Extract the first word of "$ac_prog", so it can be a program name with args.
7171 set dummy $ac_prog; ac_word=$2
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 printf %s "checking for $ac_word... " >&6; }
7174 if test ${ac_cv_prog_ac_ct_AR+y}
7175 then :
7176 printf %s "(cached) " >&6
7177 else case e in #(
7178 e) if test -n "$ac_ct_AR"; then
7179 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184 IFS=$as_save_IFS
7185 case $as_dir in #(((
7186 '') as_dir=./ ;;
7187 */) ;;
7188 *) as_dir=$as_dir/ ;;
7189 esac
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_ac_ct_AR="$ac_prog"
7193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7194 break 2
7195 fi
7196 done
7197 done
7198 IFS=$as_save_IFS
7199
7200 fi ;;
7201 esac
7202 fi
7203 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7204 if test -n "$ac_ct_AR"; then
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7206 printf "%s\n" "$ac_ct_AR" >&6; }
7207 else
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 printf "%s\n" "no" >&6; }
7210 fi
7211
7212
7213 test -n "$ac_ct_AR" && break
7214 done
7215
7216 if test "x$ac_ct_AR" = x; then
7217 AR="false"
7218 else
7219 case $cross_compiling:$ac_tool_warned in
7220 yes:)
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7222 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7223 ac_tool_warned=yes ;;
7224 esac
7225 AR=$ac_ct_AR
7226 fi
7227 fi
7228
7229 : ${AR=ar}
7230
7231
7232
7233
7234
7235
7236 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7237 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7238 # higher priority because that's what people were doing historically (setting
7239 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7240 # variable obsoleted/removed.
7241
7242 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7243 lt_ar_flags=$AR_FLAGS
7244
7245
7246
7247
7248
7249
7250 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7251 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7252
7253
7254
7255
7256
7257
7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7259 printf %s "checking for archiver @FILE support... " >&6; }
7260 if test ${lt_cv_ar_at_file+y}
7261 then :
7262 printf %s "(cached) " >&6
7263 else case e in #(
7264 e) lt_cv_ar_at_file=no
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267
7268 int
7269 main (void)
7270 {
7271
7272 ;
7273 return 0;
7274 }
7275 _ACEOF
7276 if ac_fn_c_try_compile "$LINENO"
7277 then :
7278 echo conftest.$ac_objext > conftest.lst
7279 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7281 (eval $lt_ar_try) 2>&5
7282 ac_status=$?
7283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7284 test $ac_status = 0; }
7285 if test 0 -eq "$ac_status"; then
7286 # Ensure the archiver fails upon bogus file names.
7287 rm -f conftest.$ac_objext libconftest.a
7288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7289 (eval $lt_ar_try) 2>&5
7290 ac_status=$?
7291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7292 test $ac_status = 0; }
7293 if test 0 -ne "$ac_status"; then
7294 lt_cv_ar_at_file=@
7295 fi
7296 fi
7297 rm -f conftest.* libconftest.a
7298
7299 fi
7300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7301 ;;
7302 esac
7303 fi
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7305 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7306
7307 if test no = "$lt_cv_ar_at_file"; then
7308 archiver_list_spec=
7309 else
7310 archiver_list_spec=$lt_cv_ar_at_file
7311 fi
7312
7313
7314
7315
7316
7317
7318
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7321 set dummy ${ac_tool_prefix}strip; ac_word=$2
7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 printf %s "checking for $ac_word... " >&6; }
7324 if test ${ac_cv_prog_STRIP+y}
7325 then :
7326 printf %s "(cached) " >&6
7327 else case e in #(
7328 e) if test -n "$STRIP"; then
7329 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334 IFS=$as_save_IFS
7335 case $as_dir in #(((
7336 '') as_dir=./ ;;
7337 */) ;;
7338 *) as_dir=$as_dir/ ;;
7339 esac
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7342 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7344 break 2
7345 fi
7346 done
7347 done
7348 IFS=$as_save_IFS
7349
7350 fi ;;
7351 esac
7352 fi
7353 STRIP=$ac_cv_prog_STRIP
7354 if test -n "$STRIP"; then
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7356 printf "%s\n" "$STRIP" >&6; }
7357 else
7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 printf "%s\n" "no" >&6; }
7360 fi
7361
7362
7363 fi
7364 if test -z "$ac_cv_prog_STRIP"; then
7365 ac_ct_STRIP=$STRIP
7366 # Extract the first word of "strip", so it can be a program name with args.
7367 set dummy strip; ac_word=$2
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369 printf %s "checking for $ac_word... " >&6; }
7370 if test ${ac_cv_prog_ac_ct_STRIP+y}
7371 then :
7372 printf %s "(cached) " >&6
7373 else case e in #(
7374 e) if test -n "$ac_ct_STRIP"; then
7375 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380 IFS=$as_save_IFS
7381 case $as_dir in #(((
7382 '') as_dir=./ ;;
7383 */) ;;
7384 *) as_dir=$as_dir/ ;;
7385 esac
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7388 ac_cv_prog_ac_ct_STRIP="strip"
7389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7390 break 2
7391 fi
7392 done
7393 done
7394 IFS=$as_save_IFS
7395
7396 fi ;;
7397 esac
7398 fi
7399 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7400 if test -n "$ac_ct_STRIP"; then
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7402 printf "%s\n" "$ac_ct_STRIP" >&6; }
7403 else
7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 printf "%s\n" "no" >&6; }
7406 fi
7407
7408 if test "x$ac_ct_STRIP" = x; then
7409 STRIP=":"
7410 else
7411 case $cross_compiling:$ac_tool_warned in
7412 yes:)
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415 ac_tool_warned=yes ;;
7416 esac
7417 STRIP=$ac_ct_STRIP
7418 fi
7419 else
7420 STRIP="$ac_cv_prog_STRIP"
7421 fi
7422
7423 test -z "$STRIP" && STRIP=:
7424
7425
7426
7427
7428
7429
7430
7431 test -z "$RANLIB" && RANLIB=:
7432
7433
7434
7435
7436
7437
7438 # Determine commands to create old-style static archives.
7439 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7440 old_postinstall_cmds='chmod 644 $oldlib'
7441 old_postuninstall_cmds=
7442
7443 if test -n "$RANLIB"; then
7444 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7445 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7446 fi
7447
7448 case $host_os in
7449 darwin*)
7450 lock_old_archive_extraction=yes ;;
7451 *)
7452 lock_old_archive_extraction=no ;;
7453 esac
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493 # If no C compiler was specified, use CC.
7494 LTCC=${LTCC-"$CC"}
7495
7496 # If no C compiler flags were specified, use CFLAGS.
7497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7498
7499 # Allow CC to be a program name with arguments.
7500 compiler=$CC
7501
7502
7503 # Check for command to grab the raw symbol name followed by C symbol from nm.
7504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7505 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7506 if test ${lt_cv_sys_global_symbol_pipe+y}
7507 then :
7508 printf %s "(cached) " >&6
7509 else case e in #(
7510 e)
7511 # These are sane defaults that work on at least a few old systems.
7512 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7513
7514 # Character class describing NM global symbol codes.
7515 symcode='[BCDEGRST]'
7516
7517 # Regexp to match symbols that can be accessed directly from C.
7518 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7519
7520 # Define system-specific variables.
7521 case $host_os in
7522 aix*)
7523 symcode='[BCDT]'
7524 ;;
7525 cygwin* | mingw* | windows* | pw32* | cegcc*)
7526 symcode='[ABCDGISTW]'
7527 ;;
7528 hpux*)
7529 if test ia64 = "$host_cpu"; then
7530 symcode='[ABCDEGRST]'
7531 fi
7532 ;;
7533 irix* | nonstopux*)
7534 symcode='[BCDEGRST]'
7535 ;;
7536 osf*)
7537 symcode='[BCDEGQRST]'
7538 ;;
7539 solaris*)
7540 symcode='[BCDRT]'
7541 ;;
7542 sco3.2v5*)
7543 symcode='[DT]'
7544 ;;
7545 sysv4.2uw2*)
7546 symcode='[DT]'
7547 ;;
7548 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7549 symcode='[ABDT]'
7550 ;;
7551 sysv4)
7552 symcode='[DFNSTU]'
7553 ;;
7554 esac
7555
7556 # If we're using GNU nm, then use its standard symbol codes.
7557 case `$NM -V 2>&1` in
7558 *GNU* | *'with BFD'*)
7559 symcode='[ABCDGIRSTW]' ;;
7560 esac
7561
7562 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7563 # Gets list of data symbols to import.
7564 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7565 # Adjust the below global symbol transforms to fixup imported variables.
7566 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7567 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7568 lt_c_name_lib_hook="\
7569 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7570 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7571 else
7572 # Disable hooks by default.
7573 lt_cv_sys_global_symbol_to_import=
7574 lt_cdecl_hook=
7575 lt_c_name_hook=
7576 lt_c_name_lib_hook=
7577 fi
7578
7579 # Transform an extracted symbol line into a proper C declaration.
7580 # Some systems (esp. on ia64) link data and code symbols differently,
7581 # so use this general approach.
7582 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7583 $lt_cdecl_hook\
7584 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7585 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7586
7587 # Transform an extracted symbol line into symbol name and symbol address
7588 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7589 $lt_c_name_hook\
7590 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7591 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7592
7593 # Transform an extracted symbol line into symbol name with lib prefix and
7594 # symbol address.
7595 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7596 $lt_c_name_lib_hook\
7597 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7598 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7599 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7600
7601 # Handle CRLF in mingw tool chain
7602 opt_cr=
7603 case $build_os in
7604 mingw* | windows*)
7605 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7606 ;;
7607 esac
7608
7609 # Try without a prefix underscore, then with it.
7610 for ac_symprfx in "" "_"; do
7611
7612 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7613 symxfrm="\\1 $ac_symprfx\\2 \\2"
7614
7615 # Write the raw and C identifiers.
7616 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7617 # Fake it for dumpbin and say T for any non-static function,
7618 # D for any global variable and I for any imported variable.
7619 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7620 # which start with @ or ?.
7621 lt_cv_sys_global_symbol_pipe="$AWK '"\
7622 " {last_section=section; section=\$ 3};"\
7623 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7624 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7625 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7626 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7627 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7628 " \$ 0!~/External *\|/{next};"\
7629 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7630 " {if(hide[section]) next};"\
7631 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7632 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7633 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7634 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7635 " ' prfx=^$ac_symprfx"
7636 else
7637 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7638 fi
7639 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7640
7641 # Check to see that the pipe works correctly.
7642 pipe_works=no
7643
7644 rm -f conftest*
7645 cat > conftest.$ac_ext <<_LT_EOF
7646 #ifdef __cplusplus
7647 extern "C" {
7648 #endif
7649 char nm_test_var;
7650 void nm_test_func(void);
7651 void nm_test_func(void){}
7652 #ifdef __cplusplus
7653 }
7654 #endif
7655 int main(void){nm_test_var='a';nm_test_func();return(0);}
7656 _LT_EOF
7657
7658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7659 (eval $ac_compile) 2>&5
7660 ac_status=$?
7661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7662 test $ac_status = 0; }; then
7663 # Now try to grab the symbols.
7664 nlist=conftest.nm
7665 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7666 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7667 # Try sorting and uniquifying the output.
7668 if sort "$nlist" | uniq > "$nlist"T; then
7669 mv -f "$nlist"T "$nlist"
7670 else
7671 rm -f "$nlist"T
7672 fi
7673
7674 # Make sure that we snagged all the symbols we need.
7675 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7676 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7677 cat <<_LT_EOF > conftest.$ac_ext
7678 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7679 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7680 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7681 relocations are performed -- see ld's documentation on pseudo-relocs. */
7682 # define LT_DLSYM_CONST
7683 #elif defined __osf__
7684 /* This system does not cope well with relocations in const data. */
7685 # define LT_DLSYM_CONST
7686 #else
7687 # define LT_DLSYM_CONST const
7688 #endif
7689
7690 #ifdef __cplusplus
7691 extern "C" {
7692 #endif
7693
7694 _LT_EOF
7695 # Now generate the symbol file.
7696 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7697
7698 cat <<_LT_EOF >> conftest.$ac_ext
7699
7700 /* The mapping between symbol names and symbols. */
7701 LT_DLSYM_CONST struct {
7702 const char *name;
7703 void *address;
7704 }
7705 lt__PROGRAM__LTX_preloaded_symbols[] =
7706 {
7707 { "@PROGRAM@", (void *) 0 },
7708 _LT_EOF
7709 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7710 cat <<\_LT_EOF >> conftest.$ac_ext
7711 {0, (void *) 0}
7712 };
7713
7714 /* This works around a problem in FreeBSD linker */
7715 #ifdef FREEBSD_WORKAROUND
7716 static const void *lt_preloaded_setup() {
7717 return lt__PROGRAM__LTX_preloaded_symbols;
7718 }
7719 #endif
7720
7721 #ifdef __cplusplus
7722 }
7723 #endif
7724 _LT_EOF
7725 # Now try linking the two files.
7726 mv conftest.$ac_objext conftstm.$ac_objext
7727 lt_globsym_save_LIBS=$LIBS
7728 lt_globsym_save_CFLAGS=$CFLAGS
7729 LIBS=conftstm.$ac_objext
7730 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7732 (eval $ac_link) 2>&5
7733 ac_status=$?
7734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7735 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7736 pipe_works=yes
7737 fi
7738 LIBS=$lt_globsym_save_LIBS
7739 CFLAGS=$lt_globsym_save_CFLAGS
7740 else
7741 echo "cannot find nm_test_func in $nlist" >&5
7742 fi
7743 else
7744 echo "cannot find nm_test_var in $nlist" >&5
7745 fi
7746 else
7747 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7748 fi
7749 else
7750 echo "$progname: failed program was:" >&5
7751 cat conftest.$ac_ext >&5
7752 fi
7753 rm -rf conftest* conftst*
7754
7755 # Do not use the global_symbol_pipe unless it works.
7756 if test yes = "$pipe_works"; then
7757 break
7758 else
7759 lt_cv_sys_global_symbol_pipe=
7760 fi
7761 done
7762 ;;
7763 esac
7764 fi
7765
7766 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7767 lt_cv_sys_global_symbol_to_cdecl=
7768 fi
7769 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7771 printf "%s\n" "failed" >&6; }
7772 else
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7774 printf "%s\n" "ok" >&6; }
7775 fi
7776
7777 # Response file support.
7778 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7779 nm_file_list_spec='@'
7780 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7781 nm_file_list_spec='@'
7782 fi
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7821 printf %s "checking for sysroot... " >&6; }
7822
7823 # Check whether --with-sysroot was given.
7824 if test ${with_sysroot+y}
7825 then :
7826 withval=$with_sysroot;
7827 else case e in #(
7828 e) with_sysroot=no ;;
7829 esac
7830 fi
7831
7832
7833 lt_sysroot=
7834 case $with_sysroot in #(
7835 yes)
7836 if test yes = "$GCC"; then
7837 # Trim trailing / since we'll always append absolute paths and we want
7838 # to avoid //, if only for less confusing output for the user.
7839 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7840 fi
7841 ;; #(
7842 /*)
7843 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7844 ;; #(
7845 no|'')
7846 ;; #(
7847 *)
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7849 printf "%s\n" "$with_sysroot" >&6; }
7850 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7851 ;;
7852 esac
7853
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7855 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7856
7857
7858
7859
7860
7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7862 printf %s "checking for a working dd... " >&6; }
7863 if test ${ac_cv_path_lt_DD+y}
7864 then :
7865 printf %s "(cached) " >&6
7866 else case e in #(
7867 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7868 cat conftest.i conftest.i >conftest2.i
7869 : ${lt_DD:=$DD}
7870 if test -z "$lt_DD"; then
7871 ac_path_lt_DD_found=false
7872 # Loop through the user's path and test for each of PROGNAME-LIST
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876 IFS=$as_save_IFS
7877 case $as_dir in #(((
7878 '') as_dir=./ ;;
7879 */) ;;
7880 *) as_dir=$as_dir/ ;;
7881 esac
7882 for ac_prog in dd
7883 do
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7886 as_fn_executable_p "$ac_path_lt_DD" || continue
7887 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7888 cmp -s conftest.i conftest.out \
7889 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7890 fi
7891 $ac_path_lt_DD_found && break 3
7892 done
7893 done
7894 done
7895 IFS=$as_save_IFS
7896 if test -z "$ac_cv_path_lt_DD"; then
7897 :
7898 fi
7899 else
7900 ac_cv_path_lt_DD=$lt_DD
7901 fi
7902
7903 rm -f conftest.i conftest2.i conftest.out ;;
7904 esac
7905 fi
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7907 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7908
7909
7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7911 printf %s "checking how to truncate binary pipes... " >&6; }
7912 if test ${lt_cv_truncate_bin+y}
7913 then :
7914 printf %s "(cached) " >&6
7915 else case e in #(
7916 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7917 cat conftest.i conftest.i >conftest2.i
7918 lt_cv_truncate_bin=
7919 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7920 cmp -s conftest.i conftest.out \
7921 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7922 fi
7923 rm -f conftest.i conftest2.i conftest.out
7924 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7925 esac
7926 fi
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7928 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7929
7930
7931
7932
7933
7934
7935
7936 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7937 func_cc_basename ()
7938 {
7939 for cc_temp in $*""; do
7940 case $cc_temp in
7941 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7942 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7943 \-*) ;;
7944 *) break;;
7945 esac
7946 done
7947 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7948 }
7949
7950 # Check whether --enable-libtool-lock was given.
7951 if test ${enable_libtool_lock+y}
7952 then :
7953 enableval=$enable_libtool_lock;
7954 fi
7955
7956 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7957
7958 # Some flags need to be propagated to the compiler or linker for good
7959 # libtool support.
7960 case $host in
7961 ia64-*-hpux*)
7962 # Find out what ABI is being produced by ac_compile, and set mode
7963 # options accordingly.
7964 echo 'int i;' > conftest.$ac_ext
7965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7966 (eval $ac_compile) 2>&5
7967 ac_status=$?
7968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7969 test $ac_status = 0; }; then
7970 case `$FILECMD conftest.$ac_objext` in
7971 *ELF-32*)
7972 HPUX_IA64_MODE=32
7973 ;;
7974 *ELF-64*)
7975 HPUX_IA64_MODE=64
7976 ;;
7977 esac
7978 fi
7979 rm -rf conftest*
7980 ;;
7981 *-*-irix6*)
7982 # Find out what ABI is being produced by ac_compile, and set linker
7983 # options accordingly.
7984 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7986 (eval $ac_compile) 2>&5
7987 ac_status=$?
7988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7989 test $ac_status = 0; }; then
7990 if test yes = "$lt_cv_prog_gnu_ld"; then
7991 case `$FILECMD conftest.$ac_objext` in
7992 *32-bit*)
7993 LD="${LD-ld} -melf32bsmip"
7994 ;;
7995 *N32*)
7996 LD="${LD-ld} -melf32bmipn32"
7997 ;;
7998 *64-bit*)
7999 LD="${LD-ld} -melf64bmip"
8000 ;;
8001 esac
8002 else
8003 case `$FILECMD conftest.$ac_objext` in
8004 *32-bit*)
8005 LD="${LD-ld} -32"
8006 ;;
8007 *N32*)
8008 LD="${LD-ld} -n32"
8009 ;;
8010 *64-bit*)
8011 LD="${LD-ld} -64"
8012 ;;
8013 esac
8014 fi
8015 fi
8016 rm -rf conftest*
8017 ;;
8018
8019 mips64*-*linux*)
8020 # Find out what ABI is being produced by ac_compile, and set linker
8021 # options accordingly.
8022 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8024 (eval $ac_compile) 2>&5
8025 ac_status=$?
8026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8027 test $ac_status = 0; }; then
8028 emul=elf
8029 case `$FILECMD conftest.$ac_objext` in
8030 *32-bit*)
8031 emul="${emul}32"
8032 ;;
8033 *64-bit*)
8034 emul="${emul}64"
8035 ;;
8036 esac
8037 case `$FILECMD conftest.$ac_objext` in
8038 *MSB*)
8039 emul="${emul}btsmip"
8040 ;;
8041 *LSB*)
8042 emul="${emul}ltsmip"
8043 ;;
8044 esac
8045 case `$FILECMD conftest.$ac_objext` in
8046 *N32*)
8047 emul="${emul}n32"
8048 ;;
8049 esac
8050 LD="${LD-ld} -m $emul"
8051 fi
8052 rm -rf conftest*
8053 ;;
8054
8055 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8056 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8057 # Find out what ABI is being produced by ac_compile, and set linker
8058 # options accordingly. Note that the listed cases only cover the
8059 # situations where additional linker options are needed (such as when
8060 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8061 # vice versa); the common cases where no linker options are needed do
8062 # not appear in the list.
8063 echo 'int i;' > conftest.$ac_ext
8064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8065 (eval $ac_compile) 2>&5
8066 ac_status=$?
8067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8068 test $ac_status = 0; }; then
8069 case `$FILECMD conftest.o` in
8070 *32-bit*)
8071 case $host in
8072 x86_64-*kfreebsd*-gnu)
8073 LD="${LD-ld} -m elf_i386_fbsd"
8074 ;;
8075 x86_64-*linux*|x86_64-gnu*)
8076 case `$FILECMD conftest.o` in
8077 *x86-64*)
8078 LD="${LD-ld} -m elf32_x86_64"
8079 ;;
8080 *)
8081 LD="${LD-ld} -m elf_i386"
8082 ;;
8083 esac
8084 ;;
8085 powerpc64le-*linux*)
8086 LD="${LD-ld} -m elf32lppclinux"
8087 ;;
8088 powerpc64-*linux*)
8089 LD="${LD-ld} -m elf32ppclinux"
8090 ;;
8091 s390x-*linux*)
8092 LD="${LD-ld} -m elf_s390"
8093 ;;
8094 sparc64-*linux*)
8095 LD="${LD-ld} -m elf32_sparc"
8096 ;;
8097 esac
8098 ;;
8099 *64-bit*)
8100 case $host in
8101 x86_64-*kfreebsd*-gnu)
8102 LD="${LD-ld} -m elf_x86_64_fbsd"
8103 ;;
8104 x86_64-*linux*|x86_64-gnu*)
8105 LD="${LD-ld} -m elf_x86_64"
8106 ;;
8107 powerpcle-*linux*)
8108 LD="${LD-ld} -m elf64lppc"
8109 ;;
8110 powerpc-*linux*)
8111 LD="${LD-ld} -m elf64ppc"
8112 ;;
8113 s390*-*linux*|s390*-*tpf*)
8114 LD="${LD-ld} -m elf64_s390"
8115 ;;
8116 sparc*-*linux*)
8117 LD="${LD-ld} -m elf64_sparc"
8118 ;;
8119 esac
8120 ;;
8121 esac
8122 fi
8123 rm -rf conftest*
8124 ;;
8125
8126 *-*-sco3.2v5*)
8127 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8128 SAVE_CFLAGS=$CFLAGS
8129 CFLAGS="$CFLAGS -belf"
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8131 printf %s "checking whether the C compiler needs -belf... " >&6; }
8132 if test ${lt_cv_cc_needs_belf+y}
8133 then :
8134 printf %s "(cached) " >&6
8135 else case e in #(
8136 e) ac_ext=c
8137 ac_cpp='$CPP $CPPFLAGS'
8138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8141
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8144
8145 int
8146 main (void)
8147 {
8148
8149 ;
8150 return 0;
8151 }
8152 _ACEOF
8153 if ac_fn_c_try_link "$LINENO"
8154 then :
8155 lt_cv_cc_needs_belf=yes
8156 else case e in #(
8157 e) lt_cv_cc_needs_belf=no ;;
8158 esac
8159 fi
8160 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8161 conftest$ac_exeext conftest.$ac_ext
8162 ac_ext=c
8163 ac_cpp='$CPP $CPPFLAGS'
8164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8167 ;;
8168 esac
8169 fi
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8171 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8172 if test yes != "$lt_cv_cc_needs_belf"; then
8173 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8174 CFLAGS=$SAVE_CFLAGS
8175 fi
8176 ;;
8177 *-*solaris*)
8178 # Find out what ABI is being produced by ac_compile, and set linker
8179 # options accordingly.
8180 echo 'int i;' > conftest.$ac_ext
8181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8182 (eval $ac_compile) 2>&5
8183 ac_status=$?
8184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8185 test $ac_status = 0; }; then
8186 case `$FILECMD conftest.o` in
8187 *64-bit*)
8188 case $lt_cv_prog_gnu_ld in
8189 yes*)
8190 case $host in
8191 i?86-*-solaris*|x86_64-*-solaris*)
8192 LD="${LD-ld} -m elf_x86_64"
8193 ;;
8194 sparc*-*-solaris*)
8195 LD="${LD-ld} -m elf64_sparc"
8196 ;;
8197 esac
8198 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8199 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8200 LD=${LD-ld}_sol2
8201 fi
8202 ;;
8203 *)
8204 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8205 LD="${LD-ld} -64"
8206 fi
8207 ;;
8208 esac
8209 ;;
8210 esac
8211 fi
8212 rm -rf conftest*
8213 ;;
8214 esac
8215
8216 need_locks=$enable_libtool_lock
8217
8218 if test -n "$ac_tool_prefix"; then
8219 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8220 set dummy ${ac_tool_prefix}mt; ac_word=$2
8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 printf %s "checking for $ac_word... " >&6; }
8223 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8224 then :
8225 printf %s "(cached) " >&6
8226 else case e in #(
8227 e) if test -n "$MANIFEST_TOOL"; then
8228 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8229 else
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 for as_dir in $PATH
8232 do
8233 IFS=$as_save_IFS
8234 case $as_dir in #(((
8235 '') as_dir=./ ;;
8236 */) ;;
8237 *) as_dir=$as_dir/ ;;
8238 esac
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245 done
8246 done
8247 IFS=$as_save_IFS
8248
8249 fi ;;
8250 esac
8251 fi
8252 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8253 if test -n "$MANIFEST_TOOL"; then
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8255 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8256 else
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 printf "%s\n" "no" >&6; }
8259 fi
8260
8261
8262 fi
8263 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8264 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8265 # Extract the first word of "mt", so it can be a program name with args.
8266 set dummy mt; ac_word=$2
8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 printf %s "checking for $ac_word... " >&6; }
8269 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8270 then :
8271 printf %s "(cached) " >&6
8272 else case e in #(
8273 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8274 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8278 do
8279 IFS=$as_save_IFS
8280 case $as_dir in #(((
8281 '') as_dir=./ ;;
8282 */) ;;
8283 *) as_dir=$as_dir/ ;;
8284 esac
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291 done
8292 done
8293 IFS=$as_save_IFS
8294
8295 fi ;;
8296 esac
8297 fi
8298 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8299 if test -n "$ac_ct_MANIFEST_TOOL"; then
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8301 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8302 else
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 printf "%s\n" "no" >&6; }
8305 fi
8306
8307 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8308 MANIFEST_TOOL=":"
8309 else
8310 case $cross_compiling:$ac_tool_warned in
8311 yes:)
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8313 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8314 ac_tool_warned=yes ;;
8315 esac
8316 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8317 fi
8318 else
8319 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8320 fi
8321
8322 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8324 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8325 if test ${lt_cv_path_manifest_tool+y}
8326 then :
8327 printf %s "(cached) " >&6
8328 else case e in #(
8329 e) lt_cv_path_manifest_tool=no
8330 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8331 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8332 cat conftest.err >&5
8333 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8334 lt_cv_path_manifest_tool=yes
8335 fi
8336 rm -f conftest* ;;
8337 esac
8338 fi
8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8340 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8341 if test yes != "$lt_cv_path_manifest_tool"; then
8342 MANIFEST_TOOL=:
8343 fi
8344
8345
8346
8347
8348
8349
8350 case $host_os in
8351 rhapsody* | darwin*)
8352 if test -n "$ac_tool_prefix"; then
8353 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8354 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 printf %s "checking for $ac_word... " >&6; }
8357 if test ${ac_cv_prog_DSYMUTIL+y}
8358 then :
8359 printf %s "(cached) " >&6
8360 else case e in #(
8361 e) if test -n "$DSYMUTIL"; then
8362 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367 IFS=$as_save_IFS
8368 case $as_dir in #(((
8369 '') as_dir=./ ;;
8370 */) ;;
8371 *) as_dir=$as_dir/ ;;
8372 esac
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8375 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8377 break 2
8378 fi
8379 done
8380 done
8381 IFS=$as_save_IFS
8382
8383 fi ;;
8384 esac
8385 fi
8386 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8387 if test -n "$DSYMUTIL"; then
8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8389 printf "%s\n" "$DSYMUTIL" >&6; }
8390 else
8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 printf "%s\n" "no" >&6; }
8393 fi
8394
8395
8396 fi
8397 if test -z "$ac_cv_prog_DSYMUTIL"; then
8398 ac_ct_DSYMUTIL=$DSYMUTIL
8399 # Extract the first word of "dsymutil", so it can be a program name with args.
8400 set dummy dsymutil; ac_word=$2
8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 printf %s "checking for $ac_word... " >&6; }
8403 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8404 then :
8405 printf %s "(cached) " >&6
8406 else case e in #(
8407 e) if test -n "$ac_ct_DSYMUTIL"; then
8408 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413 IFS=$as_save_IFS
8414 case $as_dir in #(((
8415 '') as_dir=./ ;;
8416 */) ;;
8417 *) as_dir=$as_dir/ ;;
8418 esac
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8421 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8423 break 2
8424 fi
8425 done
8426 done
8427 IFS=$as_save_IFS
8428
8429 fi ;;
8430 esac
8431 fi
8432 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8433 if test -n "$ac_ct_DSYMUTIL"; then
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8435 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8436 else
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 printf "%s\n" "no" >&6; }
8439 fi
8440
8441 if test "x$ac_ct_DSYMUTIL" = x; then
8442 DSYMUTIL=":"
8443 else
8444 case $cross_compiling:$ac_tool_warned in
8445 yes:)
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8447 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8448 ac_tool_warned=yes ;;
8449 esac
8450 DSYMUTIL=$ac_ct_DSYMUTIL
8451 fi
8452 else
8453 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8454 fi
8455
8456 if test -n "$ac_tool_prefix"; then
8457 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8458 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8460 printf %s "checking for $ac_word... " >&6; }
8461 if test ${ac_cv_prog_NMEDIT+y}
8462 then :
8463 printf %s "(cached) " >&6
8464 else case e in #(
8465 e) if test -n "$NMEDIT"; then
8466 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8467 else
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 for as_dir in $PATH
8470 do
8471 IFS=$as_save_IFS
8472 case $as_dir in #(((
8473 '') as_dir=./ ;;
8474 */) ;;
8475 *) as_dir=$as_dir/ ;;
8476 esac
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8479 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8481 break 2
8482 fi
8483 done
8484 done
8485 IFS=$as_save_IFS
8486
8487 fi ;;
8488 esac
8489 fi
8490 NMEDIT=$ac_cv_prog_NMEDIT
8491 if test -n "$NMEDIT"; then
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8493 printf "%s\n" "$NMEDIT" >&6; }
8494 else
8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8496 printf "%s\n" "no" >&6; }
8497 fi
8498
8499
8500 fi
8501 if test -z "$ac_cv_prog_NMEDIT"; then
8502 ac_ct_NMEDIT=$NMEDIT
8503 # Extract the first word of "nmedit", so it can be a program name with args.
8504 set dummy nmedit; ac_word=$2
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506 printf %s "checking for $ac_word... " >&6; }
8507 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8508 then :
8509 printf %s "(cached) " >&6
8510 else case e in #(
8511 e) if test -n "$ac_ct_NMEDIT"; then
8512 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8516 do
8517 IFS=$as_save_IFS
8518 case $as_dir in #(((
8519 '') as_dir=./ ;;
8520 */) ;;
8521 *) as_dir=$as_dir/ ;;
8522 esac
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8525 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8527 break 2
8528 fi
8529 done
8530 done
8531 IFS=$as_save_IFS
8532
8533 fi ;;
8534 esac
8535 fi
8536 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8537 if test -n "$ac_ct_NMEDIT"; then
8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8539 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8540 else
8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 printf "%s\n" "no" >&6; }
8543 fi
8544
8545 if test "x$ac_ct_NMEDIT" = x; then
8546 NMEDIT=":"
8547 else
8548 case $cross_compiling:$ac_tool_warned in
8549 yes:)
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8551 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8552 ac_tool_warned=yes ;;
8553 esac
8554 NMEDIT=$ac_ct_NMEDIT
8555 fi
8556 else
8557 NMEDIT="$ac_cv_prog_NMEDIT"
8558 fi
8559
8560 if test -n "$ac_tool_prefix"; then
8561 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8562 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 printf %s "checking for $ac_word... " >&6; }
8565 if test ${ac_cv_prog_LIPO+y}
8566 then :
8567 printf %s "(cached) " >&6
8568 else case e in #(
8569 e) if test -n "$LIPO"; then
8570 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8571 else
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 for as_dir in $PATH
8574 do
8575 IFS=$as_save_IFS
8576 case $as_dir in #(((
8577 '') as_dir=./ ;;
8578 */) ;;
8579 *) as_dir=$as_dir/ ;;
8580 esac
8581 for ac_exec_ext in '' $ac_executable_extensions; do
8582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8583 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8585 break 2
8586 fi
8587 done
8588 done
8589 IFS=$as_save_IFS
8590
8591 fi ;;
8592 esac
8593 fi
8594 LIPO=$ac_cv_prog_LIPO
8595 if test -n "$LIPO"; then
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8597 printf "%s\n" "$LIPO" >&6; }
8598 else
8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600 printf "%s\n" "no" >&6; }
8601 fi
8602
8603
8604 fi
8605 if test -z "$ac_cv_prog_LIPO"; then
8606 ac_ct_LIPO=$LIPO
8607 # Extract the first word of "lipo", so it can be a program name with args.
8608 set dummy lipo; ac_word=$2
8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8610 printf %s "checking for $ac_word... " >&6; }
8611 if test ${ac_cv_prog_ac_ct_LIPO+y}
8612 then :
8613 printf %s "(cached) " >&6
8614 else case e in #(
8615 e) if test -n "$ac_ct_LIPO"; then
8616 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8617 else
8618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619 for as_dir in $PATH
8620 do
8621 IFS=$as_save_IFS
8622 case $as_dir in #(((
8623 '') as_dir=./ ;;
8624 */) ;;
8625 *) as_dir=$as_dir/ ;;
8626 esac
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8629 ac_cv_prog_ac_ct_LIPO="lipo"
8630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8631 break 2
8632 fi
8633 done
8634 done
8635 IFS=$as_save_IFS
8636
8637 fi ;;
8638 esac
8639 fi
8640 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8641 if test -n "$ac_ct_LIPO"; then
8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8643 printf "%s\n" "$ac_ct_LIPO" >&6; }
8644 else
8645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 printf "%s\n" "no" >&6; }
8647 fi
8648
8649 if test "x$ac_ct_LIPO" = x; then
8650 LIPO=":"
8651 else
8652 case $cross_compiling:$ac_tool_warned in
8653 yes:)
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8655 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8656 ac_tool_warned=yes ;;
8657 esac
8658 LIPO=$ac_ct_LIPO
8659 fi
8660 else
8661 LIPO="$ac_cv_prog_LIPO"
8662 fi
8663
8664 if test -n "$ac_tool_prefix"; then
8665 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8666 set dummy ${ac_tool_prefix}otool; ac_word=$2
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668 printf %s "checking for $ac_word... " >&6; }
8669 if test ${ac_cv_prog_OTOOL+y}
8670 then :
8671 printf %s "(cached) " >&6
8672 else case e in #(
8673 e) if test -n "$OTOOL"; then
8674 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8675 else
8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 for as_dir in $PATH
8678 do
8679 IFS=$as_save_IFS
8680 case $as_dir in #(((
8681 '') as_dir=./ ;;
8682 */) ;;
8683 *) as_dir=$as_dir/ ;;
8684 esac
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8687 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8689 break 2
8690 fi
8691 done
8692 done
8693 IFS=$as_save_IFS
8694
8695 fi ;;
8696 esac
8697 fi
8698 OTOOL=$ac_cv_prog_OTOOL
8699 if test -n "$OTOOL"; then
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8701 printf "%s\n" "$OTOOL" >&6; }
8702 else
8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704 printf "%s\n" "no" >&6; }
8705 fi
8706
8707
8708 fi
8709 if test -z "$ac_cv_prog_OTOOL"; then
8710 ac_ct_OTOOL=$OTOOL
8711 # Extract the first word of "otool", so it can be a program name with args.
8712 set dummy otool; ac_word=$2
8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714 printf %s "checking for $ac_word... " >&6; }
8715 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8716 then :
8717 printf %s "(cached) " >&6
8718 else case e in #(
8719 e) if test -n "$ac_ct_OTOOL"; then
8720 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8721 else
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8724 do
8725 IFS=$as_save_IFS
8726 case $as_dir in #(((
8727 '') as_dir=./ ;;
8728 */) ;;
8729 *) as_dir=$as_dir/ ;;
8730 esac
8731 for ac_exec_ext in '' $ac_executable_extensions; do
8732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8733 ac_cv_prog_ac_ct_OTOOL="otool"
8734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8735 break 2
8736 fi
8737 done
8738 done
8739 IFS=$as_save_IFS
8740
8741 fi ;;
8742 esac
8743 fi
8744 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8745 if test -n "$ac_ct_OTOOL"; then
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8747 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8748 else
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8750 printf "%s\n" "no" >&6; }
8751 fi
8752
8753 if test "x$ac_ct_OTOOL" = x; then
8754 OTOOL=":"
8755 else
8756 case $cross_compiling:$ac_tool_warned in
8757 yes:)
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8759 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8760 ac_tool_warned=yes ;;
8761 esac
8762 OTOOL=$ac_ct_OTOOL
8763 fi
8764 else
8765 OTOOL="$ac_cv_prog_OTOOL"
8766 fi
8767
8768 if test -n "$ac_tool_prefix"; then
8769 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8770 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 printf %s "checking for $ac_word... " >&6; }
8773 if test ${ac_cv_prog_OTOOL64+y}
8774 then :
8775 printf %s "(cached) " >&6
8776 else case e in #(
8777 e) if test -n "$OTOOL64"; then
8778 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8779 else
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8782 do
8783 IFS=$as_save_IFS
8784 case $as_dir in #(((
8785 '') as_dir=./ ;;
8786 */) ;;
8787 *) as_dir=$as_dir/ ;;
8788 esac
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8791 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8793 break 2
8794 fi
8795 done
8796 done
8797 IFS=$as_save_IFS
8798
8799 fi ;;
8800 esac
8801 fi
8802 OTOOL64=$ac_cv_prog_OTOOL64
8803 if test -n "$OTOOL64"; then
8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8805 printf "%s\n" "$OTOOL64" >&6; }
8806 else
8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 printf "%s\n" "no" >&6; }
8809 fi
8810
8811
8812 fi
8813 if test -z "$ac_cv_prog_OTOOL64"; then
8814 ac_ct_OTOOL64=$OTOOL64
8815 # Extract the first word of "otool64", so it can be a program name with args.
8816 set dummy otool64; ac_word=$2
8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8818 printf %s "checking for $ac_word... " >&6; }
8819 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8820 then :
8821 printf %s "(cached) " >&6
8822 else case e in #(
8823 e) if test -n "$ac_ct_OTOOL64"; then
8824 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8825 else
8826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827 for as_dir in $PATH
8828 do
8829 IFS=$as_save_IFS
8830 case $as_dir in #(((
8831 '') as_dir=./ ;;
8832 */) ;;
8833 *) as_dir=$as_dir/ ;;
8834 esac
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8837 ac_cv_prog_ac_ct_OTOOL64="otool64"
8838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8839 break 2
8840 fi
8841 done
8842 done
8843 IFS=$as_save_IFS
8844
8845 fi ;;
8846 esac
8847 fi
8848 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8849 if test -n "$ac_ct_OTOOL64"; then
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8851 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8852 else
8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 printf "%s\n" "no" >&6; }
8855 fi
8856
8857 if test "x$ac_ct_OTOOL64" = x; then
8858 OTOOL64=":"
8859 else
8860 case $cross_compiling:$ac_tool_warned in
8861 yes:)
8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8863 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8864 ac_tool_warned=yes ;;
8865 esac
8866 OTOOL64=$ac_ct_OTOOL64
8867 fi
8868 else
8869 OTOOL64="$ac_cv_prog_OTOOL64"
8870 fi
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8899 printf %s "checking for -single_module linker flag... " >&6; }
8900 if test ${lt_cv_apple_cc_single_mod+y}
8901 then :
8902 printf %s "(cached) " >&6
8903 else case e in #(
8904 e) lt_cv_apple_cc_single_mod=no
8905 if test -z "$LT_MULTI_MODULE"; then
8906 # By default we will add the -single_module flag. You can override
8907 # by either setting the environment variable LT_MULTI_MODULE
8908 # non-empty at configure time, or by adding -multi_module to the
8909 # link flags.
8910 rm -rf libconftest.dylib*
8911 echo "int foo(void){return 1;}" > conftest.c
8912 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8913 -dynamiclib -Wl,-single_module conftest.c" >&5
8914 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8915 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8916 _lt_result=$?
8917 # If there is a non-empty error log, and "single_module"
8918 # appears in it, assume the flag caused a linker warning
8919 if test -s conftest.err && $GREP single_module conftest.err; then
8920 cat conftest.err >&5
8921 # Otherwise, if the output was created with a 0 exit code from
8922 # the compiler, it worked.
8923 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8924 lt_cv_apple_cc_single_mod=yes
8925 else
8926 cat conftest.err >&5
8927 fi
8928 rm -rf libconftest.dylib*
8929 rm -f conftest.*
8930 fi ;;
8931 esac
8932 fi
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8934 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8935
8936 # Feature test to disable chained fixups since it is not
8937 # compatible with '-undefined dynamic_lookup'
8938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8939 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8940 if test ${lt_cv_support_no_fixup_chains+y}
8941 then :
8942 printf %s "(cached) " >&6
8943 else case e in #(
8944 e) save_LDFLAGS=$LDFLAGS
8945 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8948
8949 int
8950 main (void)
8951 {
8952
8953 ;
8954 return 0;
8955 }
8956 _ACEOF
8957 if ac_fn_c_try_link "$LINENO"
8958 then :
8959 lt_cv_support_no_fixup_chains=yes
8960 else case e in #(
8961 e) lt_cv_support_no_fixup_chains=no
8962 ;;
8963 esac
8964 fi
8965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8966 conftest$ac_exeext conftest.$ac_ext
8967 LDFLAGS=$save_LDFLAGS
8968
8969 ;;
8970 esac
8971 fi
8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8973 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8974
8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8976 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8977 if test ${lt_cv_ld_exported_symbols_list+y}
8978 then :
8979 printf %s "(cached) " >&6
8980 else case e in #(
8981 e) lt_cv_ld_exported_symbols_list=no
8982 save_LDFLAGS=$LDFLAGS
8983 echo "_main" > conftest.sym
8984 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8987
8988 int
8989 main (void)
8990 {
8991
8992 ;
8993 return 0;
8994 }
8995 _ACEOF
8996 if ac_fn_c_try_link "$LINENO"
8997 then :
8998 lt_cv_ld_exported_symbols_list=yes
8999 else case e in #(
9000 e) lt_cv_ld_exported_symbols_list=no ;;
9001 esac
9002 fi
9003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9004 conftest$ac_exeext conftest.$ac_ext
9005 LDFLAGS=$save_LDFLAGS
9006 ;;
9007 esac
9008 fi
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9010 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9011
9012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9013 printf %s "checking for -force_load linker flag... " >&6; }
9014 if test ${lt_cv_ld_force_load+y}
9015 then :
9016 printf %s "(cached) " >&6
9017 else case e in #(
9018 e) lt_cv_ld_force_load=no
9019 cat > conftest.c << _LT_EOF
9020 int forced_loaded() { return 2;}
9021 _LT_EOF
9022 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9023 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9024 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9025 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9026 echo "$RANLIB libconftest.a" >&5
9027 $RANLIB libconftest.a 2>&5
9028 cat > conftest.c << _LT_EOF
9029 int main(void) { return 0;}
9030 _LT_EOF
9031 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9032 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9033 _lt_result=$?
9034 if test -s conftest.err && $GREP force_load conftest.err; then
9035 cat conftest.err >&5
9036 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9037 lt_cv_ld_force_load=yes
9038 else
9039 cat conftest.err >&5
9040 fi
9041 rm -f conftest.err libconftest.a conftest conftest.c
9042 rm -rf conftest.dSYM
9043 ;;
9044 esac
9045 fi
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9047 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9048 case $host_os in
9049 rhapsody* | darwin1.[012])
9050 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9051 darwin1.*)
9052 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9053 darwin*)
9054 case $MACOSX_DEPLOYMENT_TARGET,$host in
9055 10.[012],*|,*powerpc*-darwin[5-8]*)
9056 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9057 *)
9058 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9059 if test yes = "$lt_cv_support_no_fixup_chains"; then
9060 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9061 fi
9062 ;;
9063 esac
9064 ;;
9065 esac
9066 if test yes = "$lt_cv_apple_cc_single_mod"; then
9067 _lt_dar_single_mod='$single_module'
9068 fi
9069 _lt_dar_needs_single_mod=no
9070 case $host_os in
9071 rhapsody* | darwin1.*)
9072 _lt_dar_needs_single_mod=yes ;;
9073 darwin*)
9074 # When targeting Mac OS X 10.4 (darwin 8) or later,
9075 # -single_module is the default and -multi_module is unsupported.
9076 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9077 # target any OS version that needs -single_module.
9078 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9079 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9080 _lt_dar_needs_single_mod=yes ;;
9081 esac
9082 ;;
9083 esac
9084 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9085 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9086 else
9087 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9088 fi
9089 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9090 _lt_dsymutil='~$DSYMUTIL $lib || :'
9091 else
9092 _lt_dsymutil=
9093 fi
9094 ;;
9095 esac
9096
9097 # func_munge_path_list VARIABLE PATH
9098 # -----------------------------------
9099 # VARIABLE is name of variable containing _space_ separated list of
9100 # directories to be munged by the contents of PATH, which is string
9101 # having a format:
9102 # "DIR[:DIR]:"
9103 # string "DIR[ DIR]" will be prepended to VARIABLE
9104 # ":DIR[:DIR]"
9105 # string "DIR[ DIR]" will be appended to VARIABLE
9106 # "DIRP[:DIRP]::[DIRA:]DIRA"
9107 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9108 # "DIRA[ DIRA]" will be appended to VARIABLE
9109 # "DIR[:DIR]"
9110 # VARIABLE will be replaced by "DIR[ DIR]"
9111 func_munge_path_list ()
9112 {
9113 case x$2 in
9114 x)
9115 ;;
9116 *:)
9117 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9118 ;;
9119 x:*)
9120 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9121 ;;
9122 *::*)
9123 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9124 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9125 ;;
9126 *)
9127 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9128 ;;
9129 esac
9130 }
9131
9132 ac_header= ac_cache=
9133 for ac_item in $ac_header_c_list
9134 do
9135 if test $ac_cache; then
9136 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9137 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9138 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9139 fi
9140 ac_header= ac_cache=
9141 elif test $ac_header; then
9142 ac_cache=$ac_item
9143 else
9144 ac_header=$ac_item
9145 fi
9146 done
9147
9148
9149
9150
9151
9152
9153
9154
9155 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9156 then :
9157
9158 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9159
9160 fi
9161 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9162 "
9163 if test "x$ac_cv_header_dlfcn_h" = xyes
9164 then :
9165 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9166
9167 fi
9168
9169
9170
9171
9172
9173 # Set options
9174
9175
9176
9177 enable_dlopen=no
9178
9179
9180 enable_win32_dll=no
9181
9182
9183 # Check whether --enable-shared was given.
9184 if test ${enable_shared+y}
9185 then :
9186 enableval=$enable_shared; p=${PACKAGE-default}
9187 case $enableval in
9188 yes) enable_shared=yes ;;
9189 no) enable_shared=no ;;
9190 *)
9191 enable_shared=no
9192 # Look at the argument we got. We use all the common list separators.
9193 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9194 for pkg in $enableval; do
9195 IFS=$lt_save_ifs
9196 if test "X$pkg" = "X$p"; then
9197 enable_shared=yes
9198 fi
9199 done
9200 IFS=$lt_save_ifs
9201 ;;
9202 esac
9203 else case e in #(
9204 e) enable_shared=yes ;;
9205 esac
9206 fi
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216 # Check whether --enable-static was given.
9217 if test ${enable_static+y}
9218 then :
9219 enableval=$enable_static; p=${PACKAGE-default}
9220 case $enableval in
9221 yes) enable_static=yes ;;
9222 no) enable_static=no ;;
9223 *)
9224 enable_static=no
9225 # Look at the argument we got. We use all the common list separators.
9226 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9227 for pkg in $enableval; do
9228 IFS=$lt_save_ifs
9229 if test "X$pkg" = "X$p"; then
9230 enable_static=yes
9231 fi
9232 done
9233 IFS=$lt_save_ifs
9234 ;;
9235 esac
9236 else case e in #(
9237 e) enable_static=yes ;;
9238 esac
9239 fi
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249 # Check whether --enable-pic was given.
9250 if test ${enable_pic+y}
9251 then :
9252 enableval=$enable_pic; lt_p=${PACKAGE-default}
9253 case $enableval in
9254 yes|no) pic_mode=$enableval ;;
9255 *)
9256 pic_mode=default
9257 # Look at the argument we got. We use all the common list separators.
9258 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9259 for lt_pkg in $enableval; do
9260 IFS=$lt_save_ifs
9261 if test "X$lt_pkg" = "X$lt_p"; then
9262 pic_mode=yes
9263 fi
9264 done
9265 IFS=$lt_save_ifs
9266 ;;
9267 esac
9268 else case e in #(
9269 e) # Check whether --with-pic was given.
9270 if test ${with_pic+y}
9271 then :
9272 withval=$with_pic; lt_p=${PACKAGE-default}
9273 case $withval in
9274 yes|no) pic_mode=$withval ;;
9275 *)
9276 pic_mode=default
9277 # Look at the argument we got. We use all the common list separators.
9278 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9279 for lt_pkg in $withval; do
9280 IFS=$lt_save_ifs
9281 if test "X$lt_pkg" = "X$lt_p"; then
9282 pic_mode=yes
9283 fi
9284 done
9285 IFS=$lt_save_ifs
9286 ;;
9287 esac
9288 else case e in #(
9289 e) pic_mode=default ;;
9290 esac
9291 fi
9292
9293 ;;
9294 esac
9295 fi
9296
9297
9298
9299
9300
9301
9302
9303
9304 # Check whether --enable-fast-install was given.
9305 if test ${enable_fast_install+y}
9306 then :
9307 enableval=$enable_fast_install; p=${PACKAGE-default}
9308 case $enableval in
9309 yes) enable_fast_install=yes ;;
9310 no) enable_fast_install=no ;;
9311 *)
9312 enable_fast_install=no
9313 # Look at the argument we got. We use all the common list separators.
9314 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9315 for pkg in $enableval; do
9316 IFS=$lt_save_ifs
9317 if test "X$pkg" = "X$p"; then
9318 enable_fast_install=yes
9319 fi
9320 done
9321 IFS=$lt_save_ifs
9322 ;;
9323 esac
9324 else case e in #(
9325 e) enable_fast_install=yes ;;
9326 esac
9327 fi
9328
9329
9330
9331
9332
9333
9334
9335
9336 shared_archive_member_spec=
9337 case $host,$enable_shared in
9338 power*-*-aix[5-9]*,yes)
9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9340 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9341 # Check whether --enable-aix-soname was given.
9342 if test ${enable_aix_soname+y}
9343 then :
9344 enableval=$enable_aix_soname; case $enableval in
9345 aix|svr4|both)
9346 ;;
9347 *)
9348 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9349 ;;
9350 esac
9351 lt_cv_with_aix_soname=$enable_aix_soname
9352 else case e in #(
9353 e) # Check whether --with-aix-soname was given.
9354 if test ${with_aix_soname+y}
9355 then :
9356 withval=$with_aix_soname; case $withval in
9357 aix|svr4|both)
9358 ;;
9359 *)
9360 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9361 ;;
9362 esac
9363 lt_cv_with_aix_soname=$with_aix_soname
9364 else case e in #(
9365 e) if test ${lt_cv_with_aix_soname+y}
9366 then :
9367 printf %s "(cached) " >&6
9368 else case e in #(
9369 e) lt_cv_with_aix_soname=aix ;;
9370 esac
9371 fi
9372 ;;
9373 esac
9374 fi
9375
9376 enable_aix_soname=$lt_cv_with_aix_soname ;;
9377 esac
9378 fi
9379
9380 with_aix_soname=$enable_aix_soname
9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9382 printf "%s\n" "$with_aix_soname" >&6; }
9383 if test aix != "$with_aix_soname"; then
9384 # For the AIX way of multilib, we name the shared archive member
9385 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9386 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9387 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9388 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9389 if test 64 = "${OBJECT_MODE-32}"; then
9390 shared_archive_member_spec=shr_64
9391 else
9392 shared_archive_member_spec=shr
9393 fi
9394 fi
9395 ;;
9396 *)
9397 with_aix_soname=aix
9398 ;;
9399 esac
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410 # This can be used to rebuild libtool when needed
9411 LIBTOOL_DEPS=$ltmain
9412
9413 # Always use our own libtool.
9414 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445 test -z "$LN_S" && LN_S="ln -s"
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460 if test -n "${ZSH_VERSION+set}"; then
9461 setopt NO_GLOB_SUBST
9462 fi
9463
9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9465 printf %s "checking for objdir... " >&6; }
9466 if test ${lt_cv_objdir+y}
9467 then :
9468 printf %s "(cached) " >&6
9469 else case e in #(
9470 e) rm -f .libs 2>/dev/null
9471 mkdir .libs 2>/dev/null
9472 if test -d .libs; then
9473 lt_cv_objdir=.libs
9474 else
9475 # MS-DOS does not allow filenames that begin with a dot.
9476 lt_cv_objdir=_libs
9477 fi
9478 rmdir .libs 2>/dev/null ;;
9479 esac
9480 fi
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9482 printf "%s\n" "$lt_cv_objdir" >&6; }
9483 objdir=$lt_cv_objdir
9484
9485
9486
9487
9488
9489 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9490
9491
9492
9493
9494 case $host_os in
9495 aix3*)
9496 # AIX sometimes has problems with the GCC collect2 program. For some
9497 # reason, if we set the COLLECT_NAMES environment variable, the problems
9498 # vanish in a puff of smoke.
9499 if test set != "${COLLECT_NAMES+set}"; then
9500 COLLECT_NAMES=
9501 export COLLECT_NAMES
9502 fi
9503 ;;
9504 esac
9505
9506 # Global variables:
9507 ofile=libtool
9508 can_build_shared=yes
9509
9510 # All known linkers require a '.a' archive for static linking (except MSVC and
9511 # ICC, which need '.lib').
9512 libext=a
9513
9514 with_gnu_ld=$lt_cv_prog_gnu_ld
9515
9516 old_CC=$CC
9517 old_CFLAGS=$CFLAGS
9518
9519 # Set sane defaults for various variables
9520 test -z "$CC" && CC=cc
9521 test -z "$LTCC" && LTCC=$CC
9522 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9523 test -z "$LD" && LD=ld
9524 test -z "$ac_objext" && ac_objext=o
9525
9526 func_cc_basename $compiler
9527 cc_basename=$func_cc_basename_result
9528
9529
9530 # Only perform the check for file, if the check method requires it
9531 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9532 case $deplibs_check_method in
9533 file_magic*)
9534 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9536 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9537 if test ${lt_cv_path_MAGIC_CMD+y}
9538 then :
9539 printf %s "(cached) " >&6
9540 else case e in #(
9541 e) case $MAGIC_CMD in
9542 [\\/*] | ?:[\\/]*)
9543 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9544 ;;
9545 *)
9546 lt_save_MAGIC_CMD=$MAGIC_CMD
9547 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9548 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9549 for ac_dir in $ac_dummy; do
9550 IFS=$lt_save_ifs
9551 test -z "$ac_dir" && ac_dir=.
9552 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9553 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9554 if test -n "$file_magic_test_file"; then
9555 case $deplibs_check_method in
9556 "file_magic "*)
9557 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9558 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9559 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9560 $EGREP "$file_magic_regex" > /dev/null; then
9561 :
9562 else
9563 cat <<_LT_EOF 1>&2
9564
9565 *** Warning: the command libtool uses to detect shared libraries,
9566 *** $file_magic_cmd, produces output that libtool cannot recognize.
9567 *** The result is that libtool may fail to recognize shared libraries
9568 *** as such. This will affect the creation of libtool libraries that
9569 *** depend on shared libraries, but programs linked with such libtool
9570 *** libraries will work regardless of this problem. Nevertheless, you
9571 *** may want to report the problem to your system manager and/or to
9572 *** [email protected]
9573
9574 _LT_EOF
9575 fi ;;
9576 esac
9577 fi
9578 break
9579 fi
9580 done
9581 IFS=$lt_save_ifs
9582 MAGIC_CMD=$lt_save_MAGIC_CMD
9583 ;;
9584 esac ;;
9585 esac
9586 fi
9587
9588 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9589 if test -n "$MAGIC_CMD"; then
9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9591 printf "%s\n" "$MAGIC_CMD" >&6; }
9592 else
9593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 printf "%s\n" "no" >&6; }
9595 fi
9596
9597
9598
9599
9600
9601 if test -z "$lt_cv_path_MAGIC_CMD"; then
9602 if test -n "$ac_tool_prefix"; then
9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9604 printf %s "checking for file... " >&6; }
9605 if test ${lt_cv_path_MAGIC_CMD+y}
9606 then :
9607 printf %s "(cached) " >&6
9608 else case e in #(
9609 e) case $MAGIC_CMD in
9610 [\\/*] | ?:[\\/]*)
9611 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9612 ;;
9613 *)
9614 lt_save_MAGIC_CMD=$MAGIC_CMD
9615 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9616 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9617 for ac_dir in $ac_dummy; do
9618 IFS=$lt_save_ifs
9619 test -z "$ac_dir" && ac_dir=.
9620 if test -f "$ac_dir/file"; then
9621 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9622 if test -n "$file_magic_test_file"; then
9623 case $deplibs_check_method in
9624 "file_magic "*)
9625 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9626 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9627 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9628 $EGREP "$file_magic_regex" > /dev/null; then
9629 :
9630 else
9631 cat <<_LT_EOF 1>&2
9632
9633 *** Warning: the command libtool uses to detect shared libraries,
9634 *** $file_magic_cmd, produces output that libtool cannot recognize.
9635 *** The result is that libtool may fail to recognize shared libraries
9636 *** as such. This will affect the creation of libtool libraries that
9637 *** depend on shared libraries, but programs linked with such libtool
9638 *** libraries will work regardless of this problem. Nevertheless, you
9639 *** may want to report the problem to your system manager and/or to
9640 *** [email protected]
9641
9642 _LT_EOF
9643 fi ;;
9644 esac
9645 fi
9646 break
9647 fi
9648 done
9649 IFS=$lt_save_ifs
9650 MAGIC_CMD=$lt_save_MAGIC_CMD
9651 ;;
9652 esac ;;
9653 esac
9654 fi
9655
9656 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9657 if test -n "$MAGIC_CMD"; then
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9659 printf "%s\n" "$MAGIC_CMD" >&6; }
9660 else
9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 printf "%s\n" "no" >&6; }
9663 fi
9664
9665
9666 else
9667 MAGIC_CMD=:
9668 fi
9669 fi
9670
9671 fi
9672 ;;
9673 esac
9674
9675 # Use C for the default configuration in the libtool script
9676
9677 lt_save_CC=$CC
9678 ac_ext=c
9679 ac_cpp='$CPP $CPPFLAGS'
9680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9683
9684
9685 # Source file extension for C test sources.
9686 ac_ext=c
9687
9688 # Object file extension for compiled C test sources.
9689 objext=o
9690 objext=$objext
9691
9692 # Code to be used in simple compile tests
9693 lt_simple_compile_test_code="int some_variable = 0;"
9694
9695 # Code to be used in simple link tests
9696 lt_simple_link_test_code='int main(void){return(0);}'
9697
9698
9699
9700
9701
9702
9703
9704 # If no C compiler was specified, use CC.
9705 LTCC=${LTCC-"$CC"}
9706
9707 # If no C compiler flags were specified, use CFLAGS.
9708 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9709
9710 # Allow CC to be a program name with arguments.
9711 compiler=$CC
9712
9713 # Save the default compiler, since it gets overwritten when the other
9714 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9715 compiler_DEFAULT=$CC
9716
9717 # save warnings/boilerplate of simple test code
9718 ac_outfile=conftest.$ac_objext
9719 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9720 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9721 _lt_compiler_boilerplate=`cat conftest.err`
9722 $RM conftest*
9723
9724 ac_outfile=conftest.$ac_objext
9725 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9726 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9727 _lt_linker_boilerplate=`cat conftest.err`
9728 $RM -r conftest*
9729
9730
9731 ## CAVEAT EMPTOR:
9732 ## There is no encapsulation within the following macros, do not change
9733 ## the running order or otherwise move them around unless you know exactly
9734 ## what you are doing...
9735 if test -n "$compiler"; then
9736
9737 lt_prog_compiler_no_builtin_flag=
9738
9739 if test yes = "$GCC"; then
9740 case $cc_basename in
9741 nvcc*)
9742 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9743 *)
9744 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9745 esac
9746
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9748 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9749 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9750 then :
9751 printf %s "(cached) " >&6
9752 else case e in #(
9753 e) lt_cv_prog_compiler_rtti_exceptions=no
9754 ac_outfile=conftest.$ac_objext
9755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9756 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9757 # Insert the option either (1) after the last *FLAGS variable, or
9758 # (2) before a word containing "conftest.", or (3) at the end.
9759 # Note that $ac_compile itself does not contain backslashes and begins
9760 # with a dollar sign (not a hyphen), so the echo should work correctly.
9761 # The option is referenced via a variable to avoid confusing sed.
9762 lt_compile=`echo "$ac_compile" | $SED \
9763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9765 -e 's:$: $lt_compiler_flag:'`
9766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9767 (eval "$lt_compile" 2>conftest.err)
9768 ac_status=$?
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 if (exit $ac_status) && test -s "$ac_outfile"; then
9772 # The compiler can only warn and ignore the option if not recognized
9773 # So say no if there are warnings other than the usual output.
9774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9777 lt_cv_prog_compiler_rtti_exceptions=yes
9778 fi
9779 fi
9780 $RM conftest*
9781 ;;
9782 esac
9783 fi
9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9785 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9786
9787 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9788 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9789 else
9790 :
9791 fi
9792
9793 fi
9794
9795
9796
9797
9798
9799
9800 lt_prog_compiler_wl=
9801 lt_prog_compiler_pic=
9802 lt_prog_compiler_static=
9803
9804
9805 if test yes = "$GCC"; then
9806 lt_prog_compiler_wl='-Wl,'
9807 lt_prog_compiler_static='-static'
9808
9809 case $host_os in
9810 aix*)
9811 # All AIX code is PIC.
9812 if test ia64 = "$host_cpu"; then
9813 # AIX 5 now supports IA64 processor
9814 lt_prog_compiler_static='-Bstatic'
9815 fi
9816 lt_prog_compiler_pic='-fPIC'
9817 ;;
9818
9819 amigaos*)
9820 case $host_cpu in
9821 powerpc)
9822 # see comment about AmigaOS4 .so support
9823 lt_prog_compiler_pic='-fPIC'
9824 ;;
9825 m68k)
9826 # FIXME: we need at least 68020 code to build shared libraries, but
9827 # adding the '-m68020' flag to GCC prevents building anything better,
9828 # like '-m68040'.
9829 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9830 ;;
9831 esac
9832 ;;
9833
9834 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9835 # PIC is the default for these OSes.
9836 ;;
9837
9838 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9839 # This hack is so that the source file can tell whether it is being
9840 # built for inclusion in a dll (and should export symbols for example).
9841 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9842 # (--disable-auto-import) libraries
9843 lt_prog_compiler_pic='-DDLL_EXPORT'
9844 case $host_os in
9845 os2*)
9846 lt_prog_compiler_static='$wl-static'
9847 ;;
9848 esac
9849 ;;
9850
9851 darwin* | rhapsody*)
9852 # PIC is the default on this platform
9853 # Common symbols not allowed in MH_DYLIB files
9854 lt_prog_compiler_pic='-fno-common'
9855 ;;
9856
9857 haiku*)
9858 # PIC is the default for Haiku.
9859 # The "-static" flag exists, but is broken.
9860 lt_prog_compiler_static=
9861 ;;
9862
9863 hpux*)
9864 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9865 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9866 # sets the default TLS model and affects inlining.
9867 case $host_cpu in
9868 hppa*64*)
9869 # +Z the default
9870 ;;
9871 *)
9872 lt_prog_compiler_pic='-fPIC'
9873 ;;
9874 esac
9875 ;;
9876
9877 interix[3-9]*)
9878 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9879 # Instead, we relocate shared libraries at runtime.
9880 ;;
9881
9882 msdosdjgpp*)
9883 # Just because we use GCC doesn't mean we suddenly get shared libraries
9884 # on systems that don't support them.
9885 lt_prog_compiler_can_build_shared=no
9886 enable_shared=no
9887 ;;
9888
9889 *nto* | *qnx*)
9890 # QNX uses GNU C++, but need to define -shared option too, otherwise
9891 # it will coredump.
9892 lt_prog_compiler_pic='-fPIC -shared'
9893 ;;
9894
9895 sysv4*MP*)
9896 if test -d /usr/nec; then
9897 lt_prog_compiler_pic=-Kconform_pic
9898 fi
9899 ;;
9900
9901 *)
9902 lt_prog_compiler_pic='-fPIC'
9903 ;;
9904 esac
9905
9906 case $cc_basename in
9907 nvcc*) # Cuda Compiler Driver 2.2
9908 lt_prog_compiler_wl='-Xlinker '
9909 if test -n "$lt_prog_compiler_pic"; then
9910 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9911 fi
9912 ;;
9913 esac
9914 else
9915 # PORTME Check for flag to pass linker flags through the system compiler.
9916 case $host_os in
9917 aix*)
9918 lt_prog_compiler_wl='-Wl,'
9919 if test ia64 = "$host_cpu"; then
9920 # AIX 5 now supports IA64 processor
9921 lt_prog_compiler_static='-Bstatic'
9922 else
9923 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9924 fi
9925 ;;
9926
9927 darwin* | rhapsody*)
9928 # PIC is the default on this platform
9929 # Common symbols not allowed in MH_DYLIB files
9930 lt_prog_compiler_pic='-fno-common'
9931 case $cc_basename in
9932 nagfor*)
9933 # NAG Fortran compiler
9934 lt_prog_compiler_wl='-Wl,-Wl,,'
9935 lt_prog_compiler_pic='-PIC'
9936 lt_prog_compiler_static='-Bstatic'
9937 ;;
9938 esac
9939 ;;
9940
9941 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9942 # This hack is so that the source file can tell whether it is being
9943 # built for inclusion in a dll (and should export symbols for example).
9944 lt_prog_compiler_pic='-DDLL_EXPORT'
9945 case $host_os in
9946 os2*)
9947 lt_prog_compiler_static='$wl-static'
9948 ;;
9949 esac
9950 ;;
9951
9952 hpux9* | hpux10* | hpux11*)
9953 lt_prog_compiler_wl='-Wl,'
9954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9955 # not for PA HP-UX.
9956 case $host_cpu in
9957 hppa*64*|ia64*)
9958 # +Z the default
9959 ;;
9960 *)
9961 lt_prog_compiler_pic='+Z'
9962 ;;
9963 esac
9964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9965 lt_prog_compiler_static='$wl-a ${wl}archive'
9966 ;;
9967
9968 irix5* | irix6* | nonstopux*)
9969 lt_prog_compiler_wl='-Wl,'
9970 # PIC (with -KPIC) is the default.
9971 lt_prog_compiler_static='-non_shared'
9972 ;;
9973
9974 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9975 case $cc_basename in
9976 # old Intel for x86_64, which still supported -KPIC.
9977 ecc*)
9978 lt_prog_compiler_wl='-Wl,'
9979 lt_prog_compiler_pic='-KPIC'
9980 lt_prog_compiler_static='-static'
9981 ;;
9982 *flang* | ftn | f18* | f95*)
9983 # Flang compiler.
9984 lt_prog_compiler_wl='-Wl,'
9985 lt_prog_compiler_pic='-fPIC'
9986 lt_prog_compiler_static='-static'
9987 ;;
9988 # icc used to be incompatible with GCC.
9989 # ICC 10 doesn't accept -KPIC any more.
9990 icc* | ifort*)
9991 lt_prog_compiler_wl='-Wl,'
9992 lt_prog_compiler_pic='-fPIC'
9993 lt_prog_compiler_static='-static'
9994 ;;
9995 # Lahey Fortran 8.1.
9996 lf95*)
9997 lt_prog_compiler_wl='-Wl,'
9998 lt_prog_compiler_pic='--shared'
9999 lt_prog_compiler_static='--static'
10000 ;;
10001 nagfor*)
10002 # NAG Fortran compiler
10003 lt_prog_compiler_wl='-Wl,-Wl,,'
10004 lt_prog_compiler_pic='-PIC'
10005 lt_prog_compiler_static='-Bstatic'
10006 ;;
10007 tcc*)
10008 # Fabrice Bellard et al's Tiny C Compiler
10009 lt_prog_compiler_wl='-Wl,'
10010 lt_prog_compiler_pic='-fPIC'
10011 lt_prog_compiler_static='-static'
10012 ;;
10013 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10014 # Portland Group compilers (*not* the Pentium gcc compiler,
10015 # which looks to be a dead project)
10016 lt_prog_compiler_wl='-Wl,'
10017 lt_prog_compiler_pic='-fpic'
10018 lt_prog_compiler_static='-Bstatic'
10019 ;;
10020 ccc*)
10021 lt_prog_compiler_wl='-Wl,'
10022 # All Alpha code is PIC.
10023 lt_prog_compiler_static='-non_shared'
10024 ;;
10025 xl* | bgxl* | bgf* | mpixl*)
10026 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10027 lt_prog_compiler_wl='-Wl,'
10028 lt_prog_compiler_pic='-qpic'
10029 lt_prog_compiler_static='-qstaticlink'
10030 ;;
10031 *)
10032 case `$CC -V 2>&1 | $SED 5q` in
10033 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10034 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10035 lt_prog_compiler_pic='-KPIC'
10036 lt_prog_compiler_static='-Bstatic'
10037 lt_prog_compiler_wl=''
10038 ;;
10039 *Sun\ F* | *Sun*Fortran*)
10040 lt_prog_compiler_pic='-KPIC'
10041 lt_prog_compiler_static='-Bstatic'
10042 lt_prog_compiler_wl='-Qoption ld '
10043 ;;
10044 *Sun\ C*)
10045 # Sun C 5.9
10046 lt_prog_compiler_pic='-KPIC'
10047 lt_prog_compiler_static='-Bstatic'
10048 lt_prog_compiler_wl='-Wl,'
10049 ;;
10050 *Intel*\ [CF]*Compiler*)
10051 lt_prog_compiler_wl='-Wl,'
10052 lt_prog_compiler_pic='-fPIC'
10053 lt_prog_compiler_static='-static'
10054 ;;
10055 *Portland\ Group*)
10056 lt_prog_compiler_wl='-Wl,'
10057 lt_prog_compiler_pic='-fpic'
10058 lt_prog_compiler_static='-Bstatic'
10059 ;;
10060 esac
10061 ;;
10062 esac
10063 ;;
10064
10065 newsos6)
10066 lt_prog_compiler_pic='-KPIC'
10067 lt_prog_compiler_static='-Bstatic'
10068 ;;
10069
10070 *-mlibc)
10071 lt_prog_compiler_wl='-Wl,'
10072 lt_prog_compiler_pic='-fPIC'
10073 lt_prog_compiler_static='-static'
10074 ;;
10075
10076 *nto* | *qnx*)
10077 # QNX uses GNU C++, but need to define -shared option too, otherwise
10078 # it will coredump.
10079 lt_prog_compiler_pic='-fPIC -shared'
10080 ;;
10081
10082 osf3* | osf4* | osf5*)
10083 lt_prog_compiler_wl='-Wl,'
10084 # All OSF/1 code is PIC.
10085 lt_prog_compiler_static='-non_shared'
10086 ;;
10087
10088 rdos*)
10089 lt_prog_compiler_static='-non_shared'
10090 ;;
10091
10092 serenity*)
10093 ;;
10094
10095 solaris*)
10096 lt_prog_compiler_pic='-KPIC'
10097 lt_prog_compiler_static='-Bstatic'
10098 case $cc_basename in
10099 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10100 lt_prog_compiler_wl='-Qoption ld ';;
10101 *)
10102 lt_prog_compiler_wl='-Wl,';;
10103 esac
10104 ;;
10105
10106 sunos4*)
10107 lt_prog_compiler_wl='-Qoption ld '
10108 lt_prog_compiler_pic='-PIC'
10109 lt_prog_compiler_static='-Bstatic'
10110 ;;
10111
10112 sysv4 | sysv4.2uw2* | sysv4.3*)
10113 lt_prog_compiler_wl='-Wl,'
10114 lt_prog_compiler_pic='-KPIC'
10115 lt_prog_compiler_static='-Bstatic'
10116 ;;
10117
10118 sysv4*MP*)
10119 if test -d /usr/nec; then
10120 lt_prog_compiler_pic='-Kconform_pic'
10121 lt_prog_compiler_static='-Bstatic'
10122 fi
10123 ;;
10124
10125 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10126 lt_prog_compiler_wl='-Wl,'
10127 lt_prog_compiler_pic='-KPIC'
10128 lt_prog_compiler_static='-Bstatic'
10129 ;;
10130
10131 unicos*)
10132 lt_prog_compiler_wl='-Wl,'
10133 lt_prog_compiler_can_build_shared=no
10134 ;;
10135
10136 uts4*)
10137 lt_prog_compiler_pic='-pic'
10138 lt_prog_compiler_static='-Bstatic'
10139 ;;
10140
10141 *)
10142 lt_prog_compiler_can_build_shared=no
10143 ;;
10144 esac
10145 fi
10146
10147 case $host_os in
10148 # For platforms that do not support PIC, -DPIC is meaningless:
10149 *djgpp*)
10150 lt_prog_compiler_pic=
10151 ;;
10152 *)
10153 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10154 ;;
10155 esac
10156
10157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10158 printf %s "checking for $compiler option to produce PIC... " >&6; }
10159 if test ${lt_cv_prog_compiler_pic+y}
10160 then :
10161 printf %s "(cached) " >&6
10162 else case e in #(
10163 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10164 esac
10165 fi
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10167 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10168 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10169
10170 #
10171 # Check to make sure the PIC flag actually works.
10172 #
10173 if test -n "$lt_prog_compiler_pic"; then
10174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10175 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10176 if test ${lt_cv_prog_compiler_pic_works+y}
10177 then :
10178 printf %s "(cached) " >&6
10179 else case e in #(
10180 e) lt_cv_prog_compiler_pic_works=no
10181 ac_outfile=conftest.$ac_objext
10182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10183 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10184 # Insert the option either (1) after the last *FLAGS variable, or
10185 # (2) before a word containing "conftest.", or (3) at the end.
10186 # Note that $ac_compile itself does not contain backslashes and begins
10187 # with a dollar sign (not a hyphen), so the echo should work correctly.
10188 # The option is referenced via a variable to avoid confusing sed.
10189 lt_compile=`echo "$ac_compile" | $SED \
10190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10192 -e 's:$: $lt_compiler_flag:'`
10193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10194 (eval "$lt_compile" 2>conftest.err)
10195 ac_status=$?
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 if (exit $ac_status) && test -s "$ac_outfile"; then
10199 # The compiler can only warn and ignore the option if not recognized
10200 # So say no if there are warnings other than the usual output.
10201 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10204 lt_cv_prog_compiler_pic_works=yes
10205 fi
10206 fi
10207 $RM conftest*
10208 ;;
10209 esac
10210 fi
10211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10212 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10213
10214 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10215 case $lt_prog_compiler_pic in
10216 "" | " "*) ;;
10217 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10218 esac
10219 else
10220 lt_prog_compiler_pic=
10221 lt_prog_compiler_can_build_shared=no
10222 fi
10223
10224 fi
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236 #
10237 # Check to make sure the static flag actually works.
10238 #
10239 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10241 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10242 if test ${lt_cv_prog_compiler_static_works+y}
10243 then :
10244 printf %s "(cached) " >&6
10245 else case e in #(
10246 e) lt_cv_prog_compiler_static_works=no
10247 save_LDFLAGS=$LDFLAGS
10248 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10249 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10251 # The linker can only warn and ignore the option if not recognized
10252 # So say no if there are warnings
10253 if test -s conftest.err; then
10254 # Append any errors to the config.log.
10255 cat conftest.err 1>&5
10256 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10258 if diff conftest.exp conftest.er2 >/dev/null; then
10259 lt_cv_prog_compiler_static_works=yes
10260 fi
10261 else
10262 lt_cv_prog_compiler_static_works=yes
10263 fi
10264 fi
10265 $RM -r conftest*
10266 LDFLAGS=$save_LDFLAGS
10267 ;;
10268 esac
10269 fi
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10271 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10272
10273 if test yes = "$lt_cv_prog_compiler_static_works"; then
10274 :
10275 else
10276 lt_prog_compiler_static=
10277 fi
10278
10279
10280
10281
10282
10283
10284
10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10286 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10287 if test ${lt_cv_prog_compiler_c_o+y}
10288 then :
10289 printf %s "(cached) " >&6
10290 else case e in #(
10291 e) lt_cv_prog_compiler_c_o=no
10292 $RM -r conftest 2>/dev/null
10293 mkdir conftest
10294 cd conftest
10295 mkdir out
10296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10297
10298 lt_compiler_flag="-o out/conftest2.$ac_objext"
10299 # Insert the option either (1) after the last *FLAGS variable, or
10300 # (2) before a word containing "conftest.", or (3) at the end.
10301 # Note that $ac_compile itself does not contain backslashes and begins
10302 # with a dollar sign (not a hyphen), so the echo should work correctly.
10303 lt_compile=`echo "$ac_compile" | $SED \
10304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10306 -e 's:$: $lt_compiler_flag:'`
10307 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10308 (eval "$lt_compile" 2>out/conftest.err)
10309 ac_status=$?
10310 cat out/conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10313 then
10314 # The compiler can only warn and ignore the option if not recognized
10315 # So say no if there are warnings
10316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10317 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10318 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10319 lt_cv_prog_compiler_c_o=yes
10320 fi
10321 fi
10322 chmod u+w . 2>&5
10323 $RM conftest*
10324 # SGI C++ compiler will create directory out/ii_files/ for
10325 # template instantiation
10326 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10327 $RM out/* && rmdir out
10328 cd ..
10329 $RM -r conftest
10330 $RM conftest*
10331 ;;
10332 esac
10333 fi
10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10335 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10336
10337
10338
10339
10340
10341
10342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10343 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10344 if test ${lt_cv_prog_compiler_c_o+y}
10345 then :
10346 printf %s "(cached) " >&6
10347 else case e in #(
10348 e) lt_cv_prog_compiler_c_o=no
10349 $RM -r conftest 2>/dev/null
10350 mkdir conftest
10351 cd conftest
10352 mkdir out
10353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10354
10355 lt_compiler_flag="-o out/conftest2.$ac_objext"
10356 # Insert the option either (1) after the last *FLAGS variable, or
10357 # (2) before a word containing "conftest.", or (3) at the end.
10358 # Note that $ac_compile itself does not contain backslashes and begins
10359 # with a dollar sign (not a hyphen), so the echo should work correctly.
10360 lt_compile=`echo "$ac_compile" | $SED \
10361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10363 -e 's:$: $lt_compiler_flag:'`
10364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10365 (eval "$lt_compile" 2>out/conftest.err)
10366 ac_status=$?
10367 cat out/conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10370 then
10371 # The compiler can only warn and ignore the option if not recognized
10372 # So say no if there are warnings
10373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10376 lt_cv_prog_compiler_c_o=yes
10377 fi
10378 fi
10379 chmod u+w . 2>&5
10380 $RM conftest*
10381 # SGI C++ compiler will create directory out/ii_files/ for
10382 # template instantiation
10383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10384 $RM out/* && rmdir out
10385 cd ..
10386 $RM -r conftest
10387 $RM conftest*
10388 ;;
10389 esac
10390 fi
10391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10392 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10393
10394
10395
10396
10397 hard_links=nottested
10398 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10399 # do not overwrite the value of need_locks provided by the user
10400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10401 printf %s "checking if we can lock with hard links... " >&6; }
10402 hard_links=yes
10403 $RM conftest*
10404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10405 touch conftest.a
10406 ln conftest.a conftest.b 2>&5 || hard_links=no
10407 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10409 printf "%s\n" "$hard_links" >&6; }
10410 if test no = "$hard_links"; then
10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10412 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10413 need_locks=warn
10414 fi
10415 else
10416 need_locks=no
10417 fi
10418
10419
10420
10421
10422
10423
10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10425 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10426
10427 runpath_var=
10428 allow_undefined_flag=
10429 always_export_symbols=no
10430 archive_cmds=
10431 archive_expsym_cmds=
10432 compiler_needs_object=no
10433 enable_shared_with_static_runtimes=no
10434 export_dynamic_flag_spec=
10435 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10436 hardcode_automatic=no
10437 hardcode_direct=no
10438 hardcode_direct_absolute=no
10439 hardcode_libdir_flag_spec=
10440 hardcode_libdir_separator=
10441 hardcode_minus_L=no
10442 hardcode_shlibpath_var=unsupported
10443 inherit_rpath=no
10444 link_all_deplibs=unknown
10445 module_cmds=
10446 module_expsym_cmds=
10447 old_archive_from_new_cmds=
10448 old_archive_from_expsyms_cmds=
10449 thread_safe_flag_spec=
10450 whole_archive_flag_spec=
10451 # include_expsyms should be a list of space-separated symbols to be *always*
10452 # included in the symbol list
10453 include_expsyms=
10454 # exclude_expsyms can be an extended regexp of symbols to exclude
10455 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10456 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10457 # as well as any symbol that contains 'd'.
10458 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10459 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10460 # platforms (ab)use it in PIC code, but their linkers get confused if
10461 # the symbol is explicitly referenced. Since portable code cannot
10462 # rely on this symbol name, it's probably fine to never include it in
10463 # preloaded symbol tables.
10464 # Exclude shared library initialization/finalization symbols.
10465 extract_expsyms_cmds=
10466
10467 case $host_os in
10468 cygwin* | mingw* | windows* | pw32* | cegcc*)
10469 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10470 # When not using gcc, we currently assume that we are using
10471 # Microsoft Visual C++ or Intel C++ Compiler.
10472 if test yes != "$GCC"; then
10473 with_gnu_ld=no
10474 fi
10475 ;;
10476 interix*)
10477 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10478 with_gnu_ld=yes
10479 ;;
10480 esac
10481
10482 ld_shlibs=yes
10483
10484 # On some targets, GNU ld is compatible enough with the native linker
10485 # that we're better off using the native interface for both.
10486 lt_use_gnu_ld_interface=no
10487 if test yes = "$with_gnu_ld"; then
10488 case $host_os in
10489 aix*)
10490 # The AIX port of GNU ld has always aspired to compatibility
10491 # with the native linker. However, as the warning in the GNU ld
10492 # block says, versions before 2.19.5* couldn't really create working
10493 # shared libraries, regardless of the interface used.
10494 case `$LD -v 2>&1` in
10495 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10496 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10497 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10498 *)
10499 lt_use_gnu_ld_interface=yes
10500 ;;
10501 esac
10502 ;;
10503 *)
10504 lt_use_gnu_ld_interface=yes
10505 ;;
10506 esac
10507 fi
10508
10509 if test yes = "$lt_use_gnu_ld_interface"; then
10510 # If archive_cmds runs LD, not CC, wlarc should be empty
10511 wlarc='$wl'
10512
10513 # Set some defaults for GNU ld with shared library support. These
10514 # are reset later if shared libraries are not supported. Putting them
10515 # here allows them to be overridden if necessary.
10516 runpath_var=LD_RUN_PATH
10517 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10518 export_dynamic_flag_spec='$wl--export-dynamic'
10519 # ancient GNU ld didn't support --whole-archive et. al.
10520 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10521 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10522 else
10523 whole_archive_flag_spec=
10524 fi
10525 supports_anon_versioning=no
10526 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10527 *GNU\ gold*) supports_anon_versioning=yes ;;
10528 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10529 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10530 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10531 *\ 2.11.*) ;; # other 2.11 versions
10532 *) supports_anon_versioning=yes ;;
10533 esac
10534
10535 # See if GNU ld supports shared libraries.
10536 case $host_os in
10537 aix[3-9]*)
10538 # On AIX/PPC, the GNU linker is very broken
10539 if test ia64 != "$host_cpu"; then
10540 ld_shlibs=no
10541 cat <<_LT_EOF 1>&2
10542
10543 *** Warning: the GNU linker, at least up to release 2.19, is reported
10544 *** to be unable to reliably create shared libraries on AIX.
10545 *** Therefore, libtool is disabling shared libraries support. If you
10546 *** really care for shared libraries, you may want to install binutils
10547 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10548 *** You will then need to restart the configuration process.
10549
10550 _LT_EOF
10551 fi
10552 ;;
10553
10554 amigaos*)
10555 case $host_cpu in
10556 powerpc)
10557 # see comment about AmigaOS4 .so support
10558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10559 archive_expsym_cmds=''
10560 ;;
10561 m68k)
10562 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)'
10563 hardcode_libdir_flag_spec='-L$libdir'
10564 hardcode_minus_L=yes
10565 ;;
10566 esac
10567 ;;
10568
10569 beos*)
10570 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10571 allow_undefined_flag=unsupported
10572 # Joseph Beckenbach <[email protected]> says some releases of gcc
10573 # support --undefined. This deserves some investigation. FIXME
10574 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10575 else
10576 ld_shlibs=no
10577 fi
10578 ;;
10579
10580 cygwin* | mingw* | windows* | pw32* | cegcc*)
10581 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10582 # as there is no search path for DLLs.
10583 hardcode_libdir_flag_spec='-L$libdir'
10584 export_dynamic_flag_spec='$wl--export-all-symbols'
10585 allow_undefined_flag=unsupported
10586 always_export_symbols=no
10587 enable_shared_with_static_runtimes=yes
10588 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'
10589 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10590 file_list_spec='@'
10591
10592 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10594 # If the export-symbols file already is a .def file, use it as
10595 # is; otherwise, prepend EXPORTS...
10596 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10597 cp $export_symbols $output_objdir/$soname.def;
10598 else
10599 echo EXPORTS > $output_objdir/$soname.def;
10600 cat $export_symbols >> $output_objdir/$soname.def;
10601 fi~
10602 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10603 else
10604 ld_shlibs=no
10605 fi
10606 ;;
10607
10608 haiku*)
10609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10610 link_all_deplibs=no
10611 ;;
10612
10613 os2*)
10614 hardcode_libdir_flag_spec='-L$libdir'
10615 hardcode_minus_L=yes
10616 allow_undefined_flag=unsupported
10617 shrext_cmds=.dll
10618 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10619 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10620 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10621 $ECHO EXPORTS >> $output_objdir/$libname.def~
10622 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10623 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10624 emximp -o $lib $output_objdir/$libname.def'
10625 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10626 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10627 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10628 $ECHO EXPORTS >> $output_objdir/$libname.def~
10629 prefix_cmds="$SED"~
10630 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10631 prefix_cmds="$prefix_cmds -e 1d";
10632 fi~
10633 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10634 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10635 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10636 emximp -o $lib $output_objdir/$libname.def'
10637 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10638 enable_shared_with_static_runtimes=yes
10639 file_list_spec='@'
10640 ;;
10641
10642 interix[3-9]*)
10643 hardcode_direct=no
10644 hardcode_shlibpath_var=no
10645 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10646 export_dynamic_flag_spec='$wl-E'
10647 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10648 # Instead, shared libraries are loaded at an image base (0x10000000 by
10649 # default) and relocated if they conflict, which is a slow very memory
10650 # consuming and fragmenting process. To avoid this, we pick a random,
10651 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10652 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10653 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10654 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'
10655 ;;
10656
10657 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10658 tmp_diet=no
10659 if test linux-dietlibc = "$host_os"; then
10660 case $cc_basename in
10661 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10662 esac
10663 fi
10664 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10665 && test no = "$tmp_diet"
10666 then
10667 tmp_addflag=' $pic_flag'
10668 tmp_sharedflag='-shared'
10669 case $cc_basename,$host_cpu in
10670 pgcc*) # Portland Group C compiler
10671 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'
10672 tmp_addflag=' $pic_flag'
10673 ;;
10674 pgf77* | pgf90* | pgf95* | pgfortran*)
10675 # Portland Group f77 and f90 compilers
10676 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'
10677 tmp_addflag=' $pic_flag -Mnomain' ;;
10678 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10679 tmp_addflag=' -i_dynamic' ;;
10680 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10681 tmp_addflag=' -i_dynamic -nofor_main' ;;
10682 ifc* | ifort*) # Intel Fortran compiler
10683 tmp_addflag=' -nofor_main' ;;
10684 lf95*) # Lahey Fortran 8.1
10685 whole_archive_flag_spec=
10686 tmp_sharedflag='--shared' ;;
10687 nagfor*) # NAGFOR 5.3
10688 tmp_sharedflag='-Wl,-shared' ;;
10689 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10690 tmp_sharedflag='-qmkshrobj'
10691 tmp_addflag= ;;
10692 nvcc*) # Cuda Compiler Driver 2.2
10693 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'
10694 compiler_needs_object=yes
10695 ;;
10696 esac
10697 case `$CC -V 2>&1 | $SED 5q` in
10698 *Sun\ C*) # Sun C 5.9
10699 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'
10700 compiler_needs_object=yes
10701 tmp_sharedflag='-G' ;;
10702 *Sun\ F*) # Sun Fortran 8.3
10703 tmp_sharedflag='-G' ;;
10704 esac
10705 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10706
10707 if test yes = "$supports_anon_versioning"; then
10708 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10709 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10710 echo "local: *; };" >> $output_objdir/$libname.ver~
10711 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10712 fi
10713
10714 case $cc_basename in
10715 tcc*)
10716 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10717 export_dynamic_flag_spec='-rdynamic'
10718 ;;
10719 xlf* | bgf* | bgxlf* | mpixlf*)
10720 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10721 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10722 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10723 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10724 if test yes = "$supports_anon_versioning"; then
10725 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10726 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10727 echo "local: *; };" >> $output_objdir/$libname.ver~
10728 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10729 fi
10730 ;;
10731 esac
10732 else
10733 ld_shlibs=no
10734 fi
10735 ;;
10736
10737 *-mlibc)
10738 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10739 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10740 ;;
10741
10742 netbsd* | netbsdelf*-gnu)
10743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10744 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10745 wlarc=
10746 else
10747 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10748 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10749 fi
10750 ;;
10751
10752 solaris*)
10753 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10754 ld_shlibs=no
10755 cat <<_LT_EOF 1>&2
10756
10757 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10758 *** create shared libraries on Solaris systems. Therefore, libtool
10759 *** is disabling shared libraries support. We urge you to upgrade GNU
10760 *** binutils to release 2.9.1 or newer. Another option is to modify
10761 *** your PATH or compiler configuration so that the native linker is
10762 *** used, and then restart.
10763
10764 _LT_EOF
10765 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10767 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10768 else
10769 ld_shlibs=no
10770 fi
10771 ;;
10772
10773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10774 case `$LD -v 2>&1` in
10775 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10776 ld_shlibs=no
10777 cat <<_LT_EOF 1>&2
10778
10779 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10780 *** reliably create shared libraries on SCO systems. Therefore, libtool
10781 *** is disabling shared libraries support. We urge you to upgrade GNU
10782 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10783 *** your PATH or compiler configuration so that the native linker is
10784 *** used, and then restart.
10785
10786 _LT_EOF
10787 ;;
10788 *)
10789 # For security reasons, it is highly recommended that you always
10790 # use absolute paths for naming shared libraries, and exclude the
10791 # DT_RUNPATH tag from executables and libraries. But doing so
10792 # requires that you compile everything twice, which is a pain.
10793 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10794 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10797 else
10798 ld_shlibs=no
10799 fi
10800 ;;
10801 esac
10802 ;;
10803
10804 sunos4*)
10805 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10806 wlarc=
10807 hardcode_direct=yes
10808 hardcode_shlibpath_var=no
10809 ;;
10810
10811 *)
10812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10813 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10814 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10815 else
10816 ld_shlibs=no
10817 fi
10818 ;;
10819 esac
10820
10821 if test no = "$ld_shlibs"; then
10822 runpath_var=
10823 hardcode_libdir_flag_spec=
10824 export_dynamic_flag_spec=
10825 whole_archive_flag_spec=
10826 fi
10827 else
10828 # PORTME fill in a description of your system's linker (not GNU ld)
10829 case $host_os in
10830 aix3*)
10831 allow_undefined_flag=unsupported
10832 always_export_symbols=yes
10833 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'
10834 # Note: this linker hardcodes the directories in LIBPATH if there
10835 # are no directories specified by -L.
10836 hardcode_minus_L=yes
10837 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10838 # Neither direct hardcoding nor static linking is supported with a
10839 # broken collect2.
10840 hardcode_direct=unsupported
10841 fi
10842 ;;
10843
10844 aix[4-9]*)
10845 if test ia64 = "$host_cpu"; then
10846 # On IA64, the linker does run time linking by default, so we don't
10847 # have to do anything special.
10848 aix_use_runtimelinking=no
10849 exp_sym_flag='-Bexport'
10850 no_entry_flag=
10851 else
10852 # If we're using GNU nm, then we don't want the "-C" option.
10853 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10854 # Without the "-l" option, or with the "-B" option, AIX nm treats
10855 # weak defined symbols like other global defined symbols, whereas
10856 # GNU nm marks them as "W".
10857 # While the 'weak' keyword is ignored in the Export File, we need
10858 # it in the Import File for the 'aix-soname' feature, so we have
10859 # to replace the "-B" option with "-P" for AIX nm.
10860 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10861 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'
10862 else
10863 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'
10864 fi
10865 aix_use_runtimelinking=no
10866
10867 # Test if we are trying to use run time linking or normal
10868 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10869 # have runtime linking enabled, and use it for executables.
10870 # For shared libraries, we enable/disable runtime linking
10871 # depending on the kind of the shared library created -
10872 # when "with_aix_soname,aix_use_runtimelinking" is:
10873 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10874 # "aix,yes" lib.so shared, rtl:yes, for executables
10875 # lib.a static archive
10876 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10877 # lib.a(lib.so.V) shared, rtl:no, for executables
10878 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10879 # lib.a(lib.so.V) shared, rtl:no
10880 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10881 # lib.a static archive
10882 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10883 for ld_flag in $LDFLAGS; do
10884 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10885 aix_use_runtimelinking=yes
10886 break
10887 fi
10888 done
10889 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10890 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10891 # so we don't have lib.a shared libs to link our executables.
10892 # We have to force runtime linking in this case.
10893 aix_use_runtimelinking=yes
10894 LDFLAGS="$LDFLAGS -Wl,-brtl"
10895 fi
10896 ;;
10897 esac
10898
10899 exp_sym_flag='-bexport'
10900 no_entry_flag='-bnoentry'
10901 fi
10902
10903 # When large executables or shared objects are built, AIX ld can
10904 # have problems creating the table of contents. If linking a library
10905 # or program results in "error TOC overflow" add -mminimal-toc to
10906 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10907 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10908
10909 archive_cmds=''
10910 hardcode_direct=yes
10911 hardcode_direct_absolute=yes
10912 hardcode_libdir_separator=':'
10913 link_all_deplibs=yes
10914 file_list_spec='$wl-f,'
10915 case $with_aix_soname,$aix_use_runtimelinking in
10916 aix,*) ;; # traditional, no import file
10917 svr4,* | *,yes) # use import file
10918 # The Import File defines what to hardcode.
10919 hardcode_direct=no
10920 hardcode_direct_absolute=no
10921 ;;
10922 esac
10923
10924 if test yes = "$GCC"; then
10925 case $host_os in aix4.[012]|aix4.[012].*)
10926 # We only want to do this on AIX 4.2 and lower, the check
10927 # below for broken collect2 doesn't work under 4.3+
10928 collect2name=`$CC -print-prog-name=collect2`
10929 if test -f "$collect2name" &&
10930 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10931 then
10932 # We have reworked collect2
10933 :
10934 else
10935 # We have old collect2
10936 hardcode_direct=unsupported
10937 # It fails to find uninstalled libraries when the uninstalled
10938 # path is not listed in the libpath. Setting hardcode_minus_L
10939 # to unsupported forces relinking
10940 hardcode_minus_L=yes
10941 hardcode_libdir_flag_spec='-L$libdir'
10942 hardcode_libdir_separator=
10943 fi
10944 ;;
10945 esac
10946 shared_flag='-shared'
10947 if test yes = "$aix_use_runtimelinking"; then
10948 shared_flag="$shared_flag "'$wl-G'
10949 fi
10950 # Need to ensure runtime linking is disabled for the traditional
10951 # shared library, or the linker may eventually find shared libraries
10952 # /with/ Import File - we do not want to mix them.
10953 shared_flag_aix='-shared'
10954 shared_flag_svr4='-shared $wl-G'
10955 else
10956 # not using gcc
10957 if test ia64 = "$host_cpu"; then
10958 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10959 # chokes on -Wl,-G. The following line is correct:
10960 shared_flag='-G'
10961 else
10962 if test yes = "$aix_use_runtimelinking"; then
10963 shared_flag='$wl-G'
10964 else
10965 shared_flag='$wl-bM:SRE'
10966 fi
10967 shared_flag_aix='$wl-bM:SRE'
10968 shared_flag_svr4='$wl-G'
10969 fi
10970 fi
10971
10972 export_dynamic_flag_spec='$wl-bexpall'
10973 # It seems that -bexpall does not export symbols beginning with
10974 # underscore (_), so it is better to generate a list of symbols to export.
10975 always_export_symbols=yes
10976 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10977 # Warning - without using the other runtime loading flags (-brtl),
10978 # -berok will link without error, but may produce a broken library.
10979 allow_undefined_flag='-berok'
10980 # Determine the default libpath from the value encoded in an
10981 # empty executable.
10982 if test set = "${lt_cv_aix_libpath+set}"; then
10983 aix_libpath=$lt_cv_aix_libpath
10984 else
10985 if test ${lt_cv_aix_libpath_+y}
10986 then :
10987 printf %s "(cached) " >&6
10988 else case e in #(
10989 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991
10992 int
10993 main (void)
10994 {
10995
10996 ;
10997 return 0;
10998 }
10999 _ACEOF
11000 if ac_fn_c_try_link "$LINENO"
11001 then :
11002
11003 lt_aix_libpath_sed='
11004 /Import File Strings/,/^$/ {
11005 /^0/ {
11006 s/^0 *\([^ ]*\) *$/\1/
11007 p
11008 }
11009 }'
11010 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11011 # Check for a 64-bit object if we didn't find anything.
11012 if test -z "$lt_cv_aix_libpath_"; then
11013 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11014 fi
11015 fi
11016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11017 conftest$ac_exeext conftest.$ac_ext
11018 if test -z "$lt_cv_aix_libpath_"; then
11019 lt_cv_aix_libpath_=/usr/lib:/lib
11020 fi
11021 ;;
11022 esac
11023 fi
11024
11025 aix_libpath=$lt_cv_aix_libpath_
11026 fi
11027
11028 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11029 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
11030 else
11031 if test ia64 = "$host_cpu"; then
11032 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11033 allow_undefined_flag="-z nodefs"
11034 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"
11035 else
11036 # Determine the default libpath from the value encoded in an
11037 # empty executable.
11038 if test set = "${lt_cv_aix_libpath+set}"; then
11039 aix_libpath=$lt_cv_aix_libpath
11040 else
11041 if test ${lt_cv_aix_libpath_+y}
11042 then :
11043 printf %s "(cached) " >&6
11044 else case e in #(
11045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11047
11048 int
11049 main (void)
11050 {
11051
11052 ;
11053 return 0;
11054 }
11055 _ACEOF
11056 if ac_fn_c_try_link "$LINENO"
11057 then :
11058
11059 lt_aix_libpath_sed='
11060 /Import File Strings/,/^$/ {
11061 /^0/ {
11062 s/^0 *\([^ ]*\) *$/\1/
11063 p
11064 }
11065 }'
11066 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11067 # Check for a 64-bit object if we didn't find anything.
11068 if test -z "$lt_cv_aix_libpath_"; then
11069 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11070 fi
11071 fi
11072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11073 conftest$ac_exeext conftest.$ac_ext
11074 if test -z "$lt_cv_aix_libpath_"; then
11075 lt_cv_aix_libpath_=/usr/lib:/lib
11076 fi
11077 ;;
11078 esac
11079 fi
11080
11081 aix_libpath=$lt_cv_aix_libpath_
11082 fi
11083
11084 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11085 # Warning - without using the other run time loading flags,
11086 # -berok will link without error, but may produce a broken library.
11087 no_undefined_flag=' $wl-bernotok'
11088 allow_undefined_flag=' $wl-berok'
11089 if test yes = "$with_gnu_ld"; then
11090 # We only use this code for GNU lds that support --whole-archive.
11091 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11092 else
11093 # Exported symbols can be pulled into shared objects from archives
11094 whole_archive_flag_spec='$convenience'
11095 fi
11096 archive_cmds_need_lc=yes
11097 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11098 # -brtl affects multiple linker settings, -berok does not and is overridden later
11099 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11100 if test svr4 != "$with_aix_soname"; then
11101 # This is similar to how AIX traditionally builds its shared libraries.
11102 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'
11103 fi
11104 if test aix != "$with_aix_soname"; then
11105 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'
11106 else
11107 # used by -dlpreopen to get the symbols
11108 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11109 fi
11110 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11111 fi
11112 fi
11113 ;;
11114
11115 amigaos*)
11116 case $host_cpu in
11117 powerpc)
11118 # see comment about AmigaOS4 .so support
11119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11120 archive_expsym_cmds=''
11121 ;;
11122 m68k)
11123 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)'
11124 hardcode_libdir_flag_spec='-L$libdir'
11125 hardcode_minus_L=yes
11126 ;;
11127 esac
11128 ;;
11129
11130 bsdi[45]*)
11131 export_dynamic_flag_spec=-rdynamic
11132 ;;
11133
11134 cygwin* | mingw* | windows* | pw32* | cegcc*)
11135 # When not using gcc, we currently assume that we are using
11136 # Microsoft Visual C++ or Intel C++ Compiler.
11137 # hardcode_libdir_flag_spec is actually meaningless, as there is
11138 # no search path for DLLs.
11139 case $cc_basename in
11140 cl* | icl*)
11141 # Native MSVC or ICC
11142 hardcode_libdir_flag_spec=' '
11143 allow_undefined_flag=unsupported
11144 always_export_symbols=yes
11145 file_list_spec='@'
11146 # Tell ltmain to make .lib files, not .a files.
11147 libext=lib
11148 # Tell ltmain to make .dll files, not .so files.
11149 shrext_cmds=.dll
11150 # FIXME: Setting linknames here is a bad hack.
11151 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11152 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11153 cp "$export_symbols" "$output_objdir/$soname.def";
11154 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11155 else
11156 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11157 fi~
11158 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11159 linknames='
11160 # The linker will not automatically build a static lib if we build a DLL.
11161 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11162 enable_shared_with_static_runtimes=yes
11163 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11164 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11165 # Don't use ranlib
11166 old_postinstall_cmds='chmod 644 $oldlib'
11167 postlink_cmds='lt_outputfile="@OUTPUT@"~
11168 lt_tool_outputfile="@TOOL_OUTPUT@"~
11169 case $lt_outputfile in
11170 *.exe|*.EXE) ;;
11171 *)
11172 lt_outputfile=$lt_outputfile.exe
11173 lt_tool_outputfile=$lt_tool_outputfile.exe
11174 ;;
11175 esac~
11176 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11177 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11178 $RM "$lt_outputfile.manifest";
11179 fi'
11180 ;;
11181 *)
11182 # Assume MSVC and ICC wrapper
11183 hardcode_libdir_flag_spec=' '
11184 allow_undefined_flag=unsupported
11185 # Tell ltmain to make .lib files, not .a files.
11186 libext=lib
11187 # Tell ltmain to make .dll files, not .so files.
11188 shrext_cmds=.dll
11189 # FIXME: Setting linknames here is a bad hack.
11190 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11191 # The linker will automatically build a .lib file if we build a DLL.
11192 old_archive_from_new_cmds='true'
11193 # FIXME: Should let the user specify the lib program.
11194 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11195 enable_shared_with_static_runtimes=yes
11196 ;;
11197 esac
11198 ;;
11199
11200 darwin* | rhapsody*)
11201
11202
11203 archive_cmds_need_lc=no
11204 hardcode_direct=no
11205 hardcode_automatic=yes
11206 hardcode_shlibpath_var=unsupported
11207 if test yes = "$lt_cv_ld_force_load"; then
11208 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\"`'
11209
11210 else
11211 whole_archive_flag_spec=''
11212 fi
11213 link_all_deplibs=yes
11214 allow_undefined_flag=$_lt_dar_allow_undefined
11215 case $cc_basename in
11216 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11217 *) _lt_dar_can_shared=$GCC ;;
11218 esac
11219 if test yes = "$_lt_dar_can_shared"; then
11220 output_verbose_link_cmd=func_echo_all
11221 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11222 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11223 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"
11224 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"
11225
11226 else
11227 ld_shlibs=no
11228 fi
11229
11230 ;;
11231
11232 dgux*)
11233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11234 hardcode_libdir_flag_spec='-L$libdir'
11235 hardcode_shlibpath_var=no
11236 ;;
11237
11238 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11239 # support. Future versions do this automatically, but an explicit c++rt0.o
11240 # does not break anything, and helps significantly (at the cost of a little
11241 # extra space).
11242 freebsd2.2*)
11243 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11244 hardcode_libdir_flag_spec='-R$libdir'
11245 hardcode_direct=yes
11246 hardcode_shlibpath_var=no
11247 ;;
11248
11249 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11250 freebsd2.*)
11251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11252 hardcode_direct=yes
11253 hardcode_minus_L=yes
11254 hardcode_shlibpath_var=no
11255 ;;
11256
11257 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11258 freebsd* | dragonfly* | midnightbsd*)
11259 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11260 hardcode_libdir_flag_spec='-R$libdir'
11261 hardcode_direct=yes
11262 hardcode_shlibpath_var=no
11263 ;;
11264
11265 hpux9*)
11266 if test yes = "$GCC"; then
11267 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'
11268 else
11269 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'
11270 fi
11271 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11272 hardcode_libdir_separator=:
11273 hardcode_direct=yes
11274
11275 # hardcode_minus_L: Not really in the search PATH,
11276 # but as the default location of the library.
11277 hardcode_minus_L=yes
11278 export_dynamic_flag_spec='$wl-E'
11279 ;;
11280
11281 hpux10*)
11282 if test yes,no = "$GCC,$with_gnu_ld"; then
11283 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11284 else
11285 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11286 fi
11287 if test no = "$with_gnu_ld"; then
11288 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11289 hardcode_libdir_separator=:
11290 hardcode_direct=yes
11291 hardcode_direct_absolute=yes
11292 export_dynamic_flag_spec='$wl-E'
11293 # hardcode_minus_L: Not really in the search PATH,
11294 # but as the default location of the library.
11295 hardcode_minus_L=yes
11296 fi
11297 ;;
11298
11299 hpux11*)
11300 if test yes,no = "$GCC,$with_gnu_ld"; then
11301 case $host_cpu in
11302 hppa*64*)
11303 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11304 ;;
11305 ia64*)
11306 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11307 ;;
11308 *)
11309 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11310 ;;
11311 esac
11312 else
11313 case $host_cpu in
11314 hppa*64*)
11315 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11316 ;;
11317 ia64*)
11318 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11319 ;;
11320 *)
11321
11322 # Older versions of the 11.00 compiler do not understand -b yet
11323 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11325 printf %s "checking if $CC understands -b... " >&6; }
11326 if test ${lt_cv_prog_compiler__b+y}
11327 then :
11328 printf %s "(cached) " >&6
11329 else case e in #(
11330 e) lt_cv_prog_compiler__b=no
11331 save_LDFLAGS=$LDFLAGS
11332 LDFLAGS="$LDFLAGS -b"
11333 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11334 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11335 # The linker can only warn and ignore the option if not recognized
11336 # So say no if there are warnings
11337 if test -s conftest.err; then
11338 # Append any errors to the config.log.
11339 cat conftest.err 1>&5
11340 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11342 if diff conftest.exp conftest.er2 >/dev/null; then
11343 lt_cv_prog_compiler__b=yes
11344 fi
11345 else
11346 lt_cv_prog_compiler__b=yes
11347 fi
11348 fi
11349 $RM -r conftest*
11350 LDFLAGS=$save_LDFLAGS
11351 ;;
11352 esac
11353 fi
11354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11355 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11356
11357 if test yes = "$lt_cv_prog_compiler__b"; then
11358 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11359 else
11360 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11361 fi
11362
11363 ;;
11364 esac
11365 fi
11366 if test no = "$with_gnu_ld"; then
11367 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11368 hardcode_libdir_separator=:
11369
11370 case $host_cpu in
11371 hppa*64*|ia64*)
11372 hardcode_direct=no
11373 hardcode_shlibpath_var=no
11374 ;;
11375 *)
11376 hardcode_direct=yes
11377 hardcode_direct_absolute=yes
11378 export_dynamic_flag_spec='$wl-E'
11379
11380 # hardcode_minus_L: Not really in the search PATH,
11381 # but as the default location of the library.
11382 hardcode_minus_L=yes
11383 ;;
11384 esac
11385 fi
11386 ;;
11387
11388 irix5* | irix6* | nonstopux*)
11389 if test yes = "$GCC"; then
11390 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'
11391 # Try to use the -exported_symbol ld option, if it does not
11392 # work, assume that -exports_file does not work either and
11393 # implicitly export all symbols.
11394 # This should be the same for all languages, so no per-tag cache variable.
11395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11396 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11397 if test ${lt_cv_irix_exported_symbol+y}
11398 then :
11399 printf %s "(cached) " >&6
11400 else case e in #(
11401 e) save_LDFLAGS=$LDFLAGS
11402 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11405 int foo (void) { return 0; }
11406 _ACEOF
11407 if ac_fn_c_try_link "$LINENO"
11408 then :
11409 lt_cv_irix_exported_symbol=yes
11410 else case e in #(
11411 e) lt_cv_irix_exported_symbol=no ;;
11412 esac
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11415 conftest$ac_exeext conftest.$ac_ext
11416 LDFLAGS=$save_LDFLAGS ;;
11417 esac
11418 fi
11419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11420 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11421 if test yes = "$lt_cv_irix_exported_symbol"; then
11422 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'
11423 fi
11424 else
11425 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'
11426 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'
11427 fi
11428 archive_cmds_need_lc='no'
11429 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11430 hardcode_libdir_separator=:
11431 inherit_rpath=yes
11432 link_all_deplibs=yes
11433 ;;
11434
11435 linux*)
11436 case $cc_basename in
11437 tcc*)
11438 # Fabrice Bellard et al's Tiny C Compiler
11439 ld_shlibs=yes
11440 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11441 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11442 ;;
11443 esac
11444 ;;
11445
11446 *-mlibc)
11447 ;;
11448
11449 netbsd* | netbsdelf*-gnu)
11450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11451 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11452 else
11453 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11454 fi
11455 hardcode_libdir_flag_spec='-R$libdir'
11456 hardcode_direct=yes
11457 hardcode_shlibpath_var=no
11458 ;;
11459
11460 newsos6)
11461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11462 hardcode_direct=yes
11463 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11464 hardcode_libdir_separator=:
11465 hardcode_shlibpath_var=no
11466 ;;
11467
11468 *nto* | *qnx*)
11469 ;;
11470
11471 openbsd*)
11472 if test -f /usr/libexec/ld.so; then
11473 hardcode_direct=yes
11474 hardcode_shlibpath_var=no
11475 hardcode_direct_absolute=yes
11476 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11478 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11479 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11480 export_dynamic_flag_spec='$wl-E'
11481 else
11482 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11483 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11484 fi
11485 else
11486 ld_shlibs=no
11487 fi
11488 ;;
11489
11490 os2*)
11491 hardcode_libdir_flag_spec='-L$libdir'
11492 hardcode_minus_L=yes
11493 allow_undefined_flag=unsupported
11494 shrext_cmds=.dll
11495 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11496 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11497 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11498 $ECHO EXPORTS >> $output_objdir/$libname.def~
11499 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11500 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11501 emximp -o $lib $output_objdir/$libname.def'
11502 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11503 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11504 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11505 $ECHO EXPORTS >> $output_objdir/$libname.def~
11506 prefix_cmds="$SED"~
11507 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11508 prefix_cmds="$prefix_cmds -e 1d";
11509 fi~
11510 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11511 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11512 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11513 emximp -o $lib $output_objdir/$libname.def'
11514 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11515 enable_shared_with_static_runtimes=yes
11516 file_list_spec='@'
11517 ;;
11518
11519 osf3*)
11520 if test yes = "$GCC"; then
11521 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11522 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'
11523 else
11524 allow_undefined_flag=' -expect_unresolved \*'
11525 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'
11526 fi
11527 archive_cmds_need_lc='no'
11528 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11529 hardcode_libdir_separator=:
11530 ;;
11531
11532 osf4* | osf5*) # as osf3* with the addition of -msym flag
11533 if test yes = "$GCC"; then
11534 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11535 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'
11536 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11537 else
11538 allow_undefined_flag=' -expect_unresolved \*'
11539 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'
11540 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~
11541 $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'
11542
11543 # Both c and cxx compiler support -rpath directly
11544 hardcode_libdir_flag_spec='-rpath $libdir'
11545 fi
11546 archive_cmds_need_lc='no'
11547 hardcode_libdir_separator=:
11548 ;;
11549
11550 serenity*)
11551 ;;
11552
11553 solaris*)
11554 no_undefined_flag=' -z defs'
11555 if test yes = "$GCC"; then
11556 wlarc='$wl'
11557 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11558 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11559 $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'
11560 else
11561 case `$CC -V 2>&1` in
11562 *"Compilers 5.0"*)
11563 wlarc=''
11564 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11565 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11566 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11567 ;;
11568 *)
11569 wlarc='$wl'
11570 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11571 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11572 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11573 ;;
11574 esac
11575 fi
11576 hardcode_libdir_flag_spec='-R$libdir'
11577 hardcode_shlibpath_var=no
11578 case $host_os in
11579 solaris2.[0-5] | solaris2.[0-5].*) ;;
11580 *)
11581 # The compiler driver will combine and reorder linker options,
11582 # but understands '-z linker_flag'. GCC discards it without '$wl',
11583 # but is careful enough not to reorder.
11584 # Supported since Solaris 2.6 (maybe 2.5.1?)
11585 if test yes = "$GCC"; then
11586 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11587 else
11588 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11589 fi
11590 ;;
11591 esac
11592 link_all_deplibs=yes
11593 ;;
11594
11595 sunos4*)
11596 if test sequent = "$host_vendor"; then
11597 # Use $CC to link under sequent, because it throws in some extra .o
11598 # files that make .init and .fini sections work.
11599 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11600 else
11601 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11602 fi
11603 hardcode_libdir_flag_spec='-L$libdir'
11604 hardcode_direct=yes
11605 hardcode_minus_L=yes
11606 hardcode_shlibpath_var=no
11607 ;;
11608
11609 sysv4)
11610 case $host_vendor in
11611 sni)
11612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11613 hardcode_direct=yes # is this really true???
11614 ;;
11615 siemens)
11616 ## LD is ld it makes a PLAMLIB
11617 ## CC just makes a GrossModule.
11618 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11619 reload_cmds='$CC -r -o $output$reload_objs'
11620 hardcode_direct=no
11621 ;;
11622 motorola)
11623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11624 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11625 ;;
11626 esac
11627 runpath_var='LD_RUN_PATH'
11628 hardcode_shlibpath_var=no
11629 ;;
11630
11631 sysv4.3*)
11632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11633 hardcode_shlibpath_var=no
11634 export_dynamic_flag_spec='-Bexport'
11635 ;;
11636
11637 sysv4*MP*)
11638 if test -d /usr/nec; then
11639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11640 hardcode_shlibpath_var=no
11641 runpath_var=LD_RUN_PATH
11642 hardcode_runpath_var=yes
11643 ld_shlibs=yes
11644 fi
11645 ;;
11646
11647 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11648 no_undefined_flag='$wl-z,text'
11649 archive_cmds_need_lc=no
11650 hardcode_shlibpath_var=no
11651 runpath_var='LD_RUN_PATH'
11652
11653 if test yes = "$GCC"; then
11654 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11655 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11656 else
11657 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11658 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11659 fi
11660 ;;
11661
11662 sysv5* | sco3.2v5* | sco5v6*)
11663 # Note: We CANNOT use -z defs as we might desire, because we do not
11664 # link with -lc, and that would cause any symbols used from libc to
11665 # always be unresolved, which means just about no library would
11666 # ever link correctly. If we're not using GNU ld we use -z text
11667 # though, which does catch some bad symbols but isn't as heavy-handed
11668 # as -z defs.
11669 no_undefined_flag='$wl-z,text'
11670 allow_undefined_flag='$wl-z,nodefs'
11671 archive_cmds_need_lc=no
11672 hardcode_shlibpath_var=no
11673 hardcode_libdir_flag_spec='$wl-R,$libdir'
11674 hardcode_libdir_separator=':'
11675 link_all_deplibs=yes
11676 export_dynamic_flag_spec='$wl-Bexport'
11677 runpath_var='LD_RUN_PATH'
11678
11679 if test yes = "$GCC"; then
11680 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11681 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11682 else
11683 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11684 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11685 fi
11686 ;;
11687
11688 uts4*)
11689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11690 hardcode_libdir_flag_spec='-L$libdir'
11691 hardcode_shlibpath_var=no
11692 ;;
11693
11694 *)
11695 ld_shlibs=no
11696 ;;
11697 esac
11698
11699 if test sni = "$host_vendor"; then
11700 case $host in
11701 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11702 export_dynamic_flag_spec='$wl-Blargedynsym'
11703 ;;
11704 esac
11705 fi
11706 fi
11707
11708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11709 printf "%s\n" "$ld_shlibs" >&6; }
11710 test no = "$ld_shlibs" && can_build_shared=no
11711
11712 with_gnu_ld=$with_gnu_ld
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728 #
11729 # Do we need to explicitly link libc?
11730 #
11731 case "x$archive_cmds_need_lc" in
11732 x|xyes)
11733 # Assume -lc should be added
11734 archive_cmds_need_lc=yes
11735
11736 if test yes,yes = "$GCC,$enable_shared"; then
11737 case $archive_cmds in
11738 *'~'*)
11739 # FIXME: we may have to deal with multi-command sequences.
11740 ;;
11741 '$CC '*)
11742 # Test whether the compiler implicitly links with -lc since on some
11743 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11744 # to ld, don't add -lc before -lgcc.
11745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11746 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11747 if test ${lt_cv_archive_cmds_need_lc+y}
11748 then :
11749 printf %s "(cached) " >&6
11750 else case e in #(
11751 e) $RM conftest*
11752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11753
11754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11755 (eval $ac_compile) 2>&5
11756 ac_status=$?
11757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11758 test $ac_status = 0; } 2>conftest.err; then
11759 soname=conftest
11760 lib=conftest
11761 libobjs=conftest.$ac_objext
11762 deplibs=
11763 wl=$lt_prog_compiler_wl
11764 pic_flag=$lt_prog_compiler_pic
11765 compiler_flags=-v
11766 linker_flags=-v
11767 verstring=
11768 output_objdir=.
11769 libname=conftest
11770 lt_save_allow_undefined_flag=$allow_undefined_flag
11771 allow_undefined_flag=
11772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11773 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11774 ac_status=$?
11775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11776 test $ac_status = 0; }
11777 then
11778 lt_cv_archive_cmds_need_lc=no
11779 else
11780 lt_cv_archive_cmds_need_lc=yes
11781 fi
11782 allow_undefined_flag=$lt_save_allow_undefined_flag
11783 else
11784 cat conftest.err 1>&5
11785 fi
11786 $RM conftest*
11787 ;;
11788 esac
11789 fi
11790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11791 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11792 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11793 ;;
11794 esac
11795 fi
11796 ;;
11797 esac
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11951 printf %s "checking dynamic linker characteristics... " >&6; }
11952
11953 if test yes = "$GCC"; then
11954 case $host_os in
11955 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11956 *) lt_awk_arg='/^libraries:/' ;;
11957 esac
11958 case $host_os in
11959 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11960 *) lt_sed_strip_eq='s|=/|/|g' ;;
11961 esac
11962 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11963 case $lt_search_path_spec in
11964 *\;*)
11965 # if the path contains ";" then we assume it to be the separator
11966 # otherwise default to the standard path separator (i.e. ":") - it is
11967 # assumed that no part of a normal pathname contains ";" but that should
11968 # okay in the real world where ";" in dirpaths is itself problematic.
11969 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11970 ;;
11971 *)
11972 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11973 ;;
11974 esac
11975 # Ok, now we have the path, separated by spaces, we can step through it
11976 # and add multilib dir if necessary...
11977 lt_tmp_lt_search_path_spec=
11978 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11979 # ...but if some path component already ends with the multilib dir we assume
11980 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11981 case "$lt_multi_os_dir; $lt_search_path_spec " in
11982 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11983 lt_multi_os_dir=
11984 ;;
11985 esac
11986 for lt_sys_path in $lt_search_path_spec; do
11987 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11988 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11989 elif test -n "$lt_multi_os_dir"; then
11990 test -d "$lt_sys_path" && \
11991 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11992 fi
11993 done
11994 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11995 BEGIN {RS = " "; FS = "/|\n";} {
11996 lt_foo = "";
11997 lt_count = 0;
11998 for (lt_i = NF; lt_i > 0; lt_i--) {
11999 if ($lt_i != "" && $lt_i != ".") {
12000 if ($lt_i == "..") {
12001 lt_count++;
12002 } else {
12003 if (lt_count == 0) {
12004 lt_foo = "/" $lt_i lt_foo;
12005 } else {
12006 lt_count--;
12007 }
12008 }
12009 }
12010 }
12011 if (lt_foo != "") { lt_freq[lt_foo]++; }
12012 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12013 }'`
12014 # AWK program above erroneously prepends '/' to C:/dos/paths
12015 # for these hosts.
12016 case $host_os in
12017 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12018 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12019 esac
12020 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12021 else
12022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12023 fi
12024 library_names_spec=
12025 libname_spec='lib$name'
12026 soname_spec=
12027 shrext_cmds=.so
12028 postinstall_cmds=
12029 postuninstall_cmds=
12030 finish_cmds=
12031 finish_eval=
12032 shlibpath_var=
12033 shlibpath_overrides_runpath=unknown
12034 version_type=none
12035 dynamic_linker="$host_os ld.so"
12036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12037 need_lib_prefix=unknown
12038 hardcode_into_libs=no
12039
12040 # when you set need_version to no, make sure it does not cause -set_version
12041 # flags to be left without arguments
12042 need_version=unknown
12043
12044
12045
12046 case $host_os in
12047 aix3*)
12048 version_type=linux # correct to gnu/linux during the next big refactor
12049 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12050 shlibpath_var=LIBPATH
12051
12052 # AIX 3 has no versioning support, so we append a major version to the name.
12053 soname_spec='$libname$release$shared_ext$major'
12054 ;;
12055
12056 aix[4-9]*)
12057 version_type=linux # correct to gnu/linux during the next big refactor
12058 need_lib_prefix=no
12059 need_version=no
12060 hardcode_into_libs=yes
12061 if test ia64 = "$host_cpu"; then
12062 # AIX 5 supports IA64
12063 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12064 shlibpath_var=LD_LIBRARY_PATH
12065 else
12066 # With GCC up to 2.95.x, collect2 would create an import file
12067 # for dependence libraries. The import file would start with
12068 # the line '#! .'. This would cause the generated library to
12069 # depend on '.', always an invalid library. This was fixed in
12070 # development snapshots of GCC prior to 3.0.
12071 case $host_os in
12072 aix4 | aix4.[01] | aix4.[01].*)
12073 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12074 echo ' yes '
12075 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12076 :
12077 else
12078 can_build_shared=no
12079 fi
12080 ;;
12081 esac
12082 # Using Import Files as archive members, it is possible to support
12083 # filename-based versioning of shared library archives on AIX. While
12084 # this would work for both with and without runtime linking, it will
12085 # prevent static linking of such archives. So we do filename-based
12086 # shared library versioning with .so extension only, which is used
12087 # when both runtime linking and shared linking is enabled.
12088 # Unfortunately, runtime linking may impact performance, so we do
12089 # not want this to be the default eventually. Also, we use the
12090 # versioned .so libs for executables only if there is the -brtl
12091 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12092 # To allow for filename-based versioning support, we need to create
12093 # libNAME.so.V as an archive file, containing:
12094 # *) an Import File, referring to the versioned filename of the
12095 # archive as well as the shared archive member, telling the
12096 # bitwidth (32 or 64) of that shared object, and providing the
12097 # list of exported symbols of that shared object, eventually
12098 # decorated with the 'weak' keyword
12099 # *) the shared object with the F_LOADONLY flag set, to really avoid
12100 # it being seen by the linker.
12101 # At run time we better use the real file rather than another symlink,
12102 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12103
12104 case $with_aix_soname,$aix_use_runtimelinking in
12105 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12106 # soname into executable. Probably we can add versioning support to
12107 # collect2, so additional links can be useful in future.
12108 aix,yes) # traditional libtool
12109 dynamic_linker='AIX unversionable lib.so'
12110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12111 # instead of lib<name>.a to let people know that these are not
12112 # typical AIX shared libraries.
12113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12114 ;;
12115 aix,no) # traditional AIX only
12116 dynamic_linker='AIX lib.a(lib.so.V)'
12117 # We preserve .a as extension for shared libraries through AIX4.2
12118 # and later when we are not doing run time linking.
12119 library_names_spec='$libname$release.a $libname.a'
12120 soname_spec='$libname$release$shared_ext$major'
12121 ;;
12122 svr4,*) # full svr4 only
12123 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12124 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12125 # We do not specify a path in Import Files, so LIBPATH fires.
12126 shlibpath_overrides_runpath=yes
12127 ;;
12128 *,yes) # both, prefer svr4
12129 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12130 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12131 # unpreferred sharedlib libNAME.a needs extra handling
12132 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"'
12133 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"'
12134 # We do not specify a path in Import Files, so LIBPATH fires.
12135 shlibpath_overrides_runpath=yes
12136 ;;
12137 *,no) # both, prefer aix
12138 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12139 library_names_spec='$libname$release.a $libname.a'
12140 soname_spec='$libname$release$shared_ext$major'
12141 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12142 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)'
12143 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"'
12144 ;;
12145 esac
12146 shlibpath_var=LIBPATH
12147 fi
12148 ;;
12149
12150 amigaos*)
12151 case $host_cpu in
12152 powerpc)
12153 # Since July 2007 AmigaOS4 officially supports .so libraries.
12154 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12156 ;;
12157 m68k)
12158 library_names_spec='$libname.ixlibrary $libname.a'
12159 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12160 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'
12161 ;;
12162 esac
12163 ;;
12164
12165 beos*)
12166 library_names_spec='$libname$shared_ext'
12167 dynamic_linker="$host_os ld.so"
12168 shlibpath_var=LIBRARY_PATH
12169 ;;
12170
12171 bsdi[45]*)
12172 version_type=linux # correct to gnu/linux during the next big refactor
12173 need_version=no
12174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12175 soname_spec='$libname$release$shared_ext$major'
12176 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12177 shlibpath_var=LD_LIBRARY_PATH
12178 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12179 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12180 # the default ld.so.conf also contains /usr/contrib/lib and
12181 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12182 # libtool to hard-code these into programs
12183 ;;
12184
12185 cygwin* | mingw* | windows* | pw32* | cegcc*)
12186 version_type=windows
12187 shrext_cmds=.dll
12188 need_version=no
12189 need_lib_prefix=no
12190
12191 case $GCC,$cc_basename in
12192 yes,*)
12193 # gcc
12194 library_names_spec='$libname.dll.a'
12195 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12196 # If user builds GCC with multilib enabled,
12197 # it should just install on $(libdir)
12198 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12199 if test xyes = x"$multilib"; then
12200 postinstall_cmds='base_file=`basename \$file`~
12201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12202 dldir=$destdir/`dirname \$dlpath`~
12203 $install_prog $dir/$dlname $destdir/$dlname~
12204 chmod a+x $destdir/$dlname~
12205 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12206 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12207 fi'
12208 else
12209 postinstall_cmds='base_file=`basename \$file`~
12210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12211 dldir=$destdir/`dirname \$dlpath`~
12212 test -d \$dldir || mkdir -p \$dldir~
12213 $install_prog $dir/$dlname \$dldir/$dlname~
12214 chmod a+x \$dldir/$dlname~
12215 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12216 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12217 fi'
12218 fi
12219 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12220 dlpath=$dir/\$dldll~
12221 $RM \$dlpath'
12222 shlibpath_overrides_runpath=yes
12223
12224 case $host_os in
12225 cygwin*)
12226 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12227 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12228
12229 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12230 ;;
12231 mingw* | windows* | cegcc*)
12232 # MinGW DLLs use traditional 'lib' prefix
12233 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12234 ;;
12235 pw32*)
12236 # pw32 DLLs use 'pw' prefix rather than 'lib'
12237 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12238 ;;
12239 esac
12240 dynamic_linker='Win32 ld.exe'
12241 ;;
12242
12243 *,cl* | *,icl*)
12244 # Native MSVC or ICC
12245 libname_spec='$name'
12246 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12247 library_names_spec='$libname.dll.lib'
12248
12249 case $build_os in
12250 mingw* | windows*)
12251 sys_lib_search_path_spec=
12252 lt_save_ifs=$IFS
12253 IFS=';'
12254 for lt_path in $LIB
12255 do
12256 IFS=$lt_save_ifs
12257 # Let DOS variable expansion print the short 8.3 style file name.
12258 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12259 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12260 done
12261 IFS=$lt_save_ifs
12262 # Convert to MSYS style.
12263 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12264 ;;
12265 cygwin*)
12266 # Convert to unix form, then to dos form, then back to unix form
12267 # but this time dos style (no spaces!) so that the unix form looks
12268 # like /cygdrive/c/PROGRA~1:/cygdr...
12269 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12270 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12271 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12272 ;;
12273 *)
12274 sys_lib_search_path_spec=$LIB
12275 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12276 # It is most probably a Windows format PATH.
12277 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12278 else
12279 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12280 fi
12281 # FIXME: find the short name or the path components, as spaces are
12282 # common. (e.g. "Program Files" -> "PROGRA~1")
12283 ;;
12284 esac
12285
12286 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12287 postinstall_cmds='base_file=`basename \$file`~
12288 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12289 dldir=$destdir/`dirname \$dlpath`~
12290 test -d \$dldir || mkdir -p \$dldir~
12291 $install_prog $dir/$dlname \$dldir/$dlname'
12292 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12293 dlpath=$dir/\$dldll~
12294 $RM \$dlpath'
12295 shlibpath_overrides_runpath=yes
12296 dynamic_linker='Win32 link.exe'
12297 ;;
12298
12299 *)
12300 # Assume MSVC and ICC wrapper
12301 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12302 dynamic_linker='Win32 ld.exe'
12303 ;;
12304 esac
12305 # FIXME: first we should search . and the directory the executable is in
12306 shlibpath_var=PATH
12307 ;;
12308
12309 darwin* | rhapsody*)
12310 dynamic_linker="$host_os dyld"
12311 version_type=darwin
12312 need_lib_prefix=no
12313 need_version=no
12314 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12315 soname_spec='$libname$release$major$shared_ext'
12316 shlibpath_overrides_runpath=yes
12317 shlibpath_var=DYLD_LIBRARY_PATH
12318 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12319
12320 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12321 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12322 ;;
12323
12324 dgux*)
12325 version_type=linux # correct to gnu/linux during the next big refactor
12326 need_lib_prefix=no
12327 need_version=no
12328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12329 soname_spec='$libname$release$shared_ext$major'
12330 shlibpath_var=LD_LIBRARY_PATH
12331 ;;
12332
12333 freebsd* | dragonfly* | midnightbsd*)
12334 # DragonFly does not have aout. When/if they implement a new
12335 # versioning mechanism, adjust this.
12336 if test -x /usr/bin/objformat; then
12337 objformat=`/usr/bin/objformat`
12338 else
12339 case $host_os in
12340 freebsd[23].*) objformat=aout ;;
12341 *) objformat=elf ;;
12342 esac
12343 fi
12344 version_type=freebsd-$objformat
12345 case $version_type in
12346 freebsd-elf*)
12347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12348 soname_spec='$libname$release$shared_ext$major'
12349 need_version=no
12350 need_lib_prefix=no
12351 ;;
12352 freebsd-*)
12353 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12354 need_version=yes
12355 ;;
12356 esac
12357 case $host_cpu in
12358 powerpc64)
12359 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12360 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12363 int test_pointer_size[sizeof (void *) - 5];
12364
12365 _ACEOF
12366 if ac_fn_c_try_compile "$LINENO"
12367 then :
12368 shlibpath_var=LD_LIBRARY_PATH
12369 else case e in #(
12370 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12371 esac
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12374 ;;
12375 *)
12376 shlibpath_var=LD_LIBRARY_PATH
12377 ;;
12378 esac
12379 case $host_os in
12380 freebsd2.*)
12381 shlibpath_overrides_runpath=yes
12382 ;;
12383 freebsd3.[01]* | freebsdelf3.[01]*)
12384 shlibpath_overrides_runpath=yes
12385 hardcode_into_libs=yes
12386 ;;
12387 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12388 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12389 shlibpath_overrides_runpath=no
12390 hardcode_into_libs=yes
12391 ;;
12392 *) # from 4.6 on, and DragonFly
12393 shlibpath_overrides_runpath=yes
12394 hardcode_into_libs=yes
12395 ;;
12396 esac
12397 ;;
12398
12399 haiku*)
12400 version_type=linux # correct to gnu/linux during the next big refactor
12401 need_lib_prefix=no
12402 need_version=no
12403 dynamic_linker="$host_os runtime_loader"
12404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12405 soname_spec='$libname$release$shared_ext$major'
12406 shlibpath_var=LIBRARY_PATH
12407 shlibpath_overrides_runpath=no
12408 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12409 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12410 hardcode_into_libs=no
12411 ;;
12412
12413 hpux9* | hpux10* | hpux11*)
12414 # Give a soname corresponding to the major version so that dld.sl refuses to
12415 # link against other versions.
12416 version_type=sunos
12417 need_lib_prefix=no
12418 need_version=no
12419 case $host_cpu in
12420 ia64*)
12421 shrext_cmds='.so'
12422 hardcode_into_libs=yes
12423 dynamic_linker="$host_os dld.so"
12424 shlibpath_var=LD_LIBRARY_PATH
12425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12426 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12427 soname_spec='$libname$release$shared_ext$major'
12428 if test 32 = "$HPUX_IA64_MODE"; then
12429 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12430 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12431 else
12432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12433 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12434 fi
12435 ;;
12436 hppa*64*)
12437 shrext_cmds='.sl'
12438 hardcode_into_libs=yes
12439 dynamic_linker="$host_os dld.sl"
12440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12443 soname_spec='$libname$release$shared_ext$major'
12444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12446 ;;
12447 *)
12448 shrext_cmds='.sl'
12449 dynamic_linker="$host_os dld.sl"
12450 shlibpath_var=SHLIB_PATH
12451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12453 soname_spec='$libname$release$shared_ext$major'
12454 ;;
12455 esac
12456 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12457 postinstall_cmds='chmod 555 $lib'
12458 # or fails outright, so override atomically:
12459 install_override_mode=555
12460 ;;
12461
12462 interix[3-9]*)
12463 version_type=linux # correct to gnu/linux during the next big refactor
12464 need_lib_prefix=no
12465 need_version=no
12466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12467 soname_spec='$libname$release$shared_ext$major'
12468 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12469 shlibpath_var=LD_LIBRARY_PATH
12470 shlibpath_overrides_runpath=no
12471 hardcode_into_libs=yes
12472 ;;
12473
12474 irix5* | irix6* | nonstopux*)
12475 case $host_os in
12476 nonstopux*) version_type=nonstopux ;;
12477 *)
12478 if test yes = "$lt_cv_prog_gnu_ld"; then
12479 version_type=linux # correct to gnu/linux during the next big refactor
12480 else
12481 version_type=irix
12482 fi ;;
12483 esac
12484 need_lib_prefix=no
12485 need_version=no
12486 soname_spec='$libname$release$shared_ext$major'
12487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12488 case $host_os in
12489 irix5* | nonstopux*)
12490 libsuff= shlibsuff=
12491 ;;
12492 *)
12493 case $LD in # libtool.m4 will add one of these switches to LD
12494 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12495 libsuff= shlibsuff= libmagic=32-bit;;
12496 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12497 libsuff=32 shlibsuff=N32 libmagic=N32;;
12498 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12499 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12500 *) libsuff= shlibsuff= libmagic=never-match;;
12501 esac
12502 ;;
12503 esac
12504 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12505 shlibpath_overrides_runpath=no
12506 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12507 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12508 hardcode_into_libs=yes
12509 ;;
12510
12511 # No shared lib support for Linux oldld, aout, or coff.
12512 linux*oldld* | linux*aout* | linux*coff*)
12513 dynamic_linker=no
12514 ;;
12515
12516 linux*android*)
12517 version_type=none # Android doesn't support versioned libraries.
12518 need_lib_prefix=no
12519 need_version=no
12520 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12521 soname_spec='$libname$release$shared_ext'
12522 finish_cmds=
12523 shlibpath_var=LD_LIBRARY_PATH
12524 shlibpath_overrides_runpath=yes
12525
12526 # This implies no fast_install, which is unacceptable.
12527 # Some rework will be needed to allow for fast_install
12528 # before this can be enabled.
12529 hardcode_into_libs=yes
12530
12531 dynamic_linker='Android linker'
12532 # -rpath works at least for libraries that are not overridden by
12533 # libraries installed in system locations.
12534 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12535 ;;
12536
12537 # This must be glibc/ELF.
12538 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12539 version_type=linux # correct to gnu/linux during the next big refactor
12540 need_lib_prefix=no
12541 need_version=no
12542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12543 soname_spec='$libname$release$shared_ext$major'
12544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12545 shlibpath_var=LD_LIBRARY_PATH
12546 shlibpath_overrides_runpath=no
12547
12548 # Some binutils ld are patched to set DT_RUNPATH
12549 if test ${lt_cv_shlibpath_overrides_runpath+y}
12550 then :
12551 printf %s "(cached) " >&6
12552 else case e in #(
12553 e) lt_cv_shlibpath_overrides_runpath=no
12554 save_LDFLAGS=$LDFLAGS
12555 save_libdir=$libdir
12556 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12557 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560
12561 int
12562 main (void)
12563 {
12564
12565 ;
12566 return 0;
12567 }
12568 _ACEOF
12569 if ac_fn_c_try_link "$LINENO"
12570 then :
12571 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12572 then :
12573 lt_cv_shlibpath_overrides_runpath=yes
12574 fi
12575 fi
12576 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12577 conftest$ac_exeext conftest.$ac_ext
12578 LDFLAGS=$save_LDFLAGS
12579 libdir=$save_libdir
12580 ;;
12581 esac
12582 fi
12583
12584 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12585
12586 # This implies no fast_install, which is unacceptable.
12587 # Some rework will be needed to allow for fast_install
12588 # before this can be enabled.
12589 hardcode_into_libs=yes
12590
12591 # Add ABI-specific directories to the system library path.
12592 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12593
12594 # Ideally, we could use ldconfig to report *all* directories which are
12595 # searched for libraries, however this is still not possible. Aside from not
12596 # being certain /sbin/ldconfig is available, command
12597 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12598 # even though it is searched at run-time. Try to do the best guess by
12599 # appending ld.so.conf contents (and includes) to the search path.
12600 if test -f /etc/ld.so.conf; then
12601 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' ' '`
12602 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12603 fi
12604
12605 # We used to test for /lib/ld.so.1 and disable shared libraries on
12606 # powerpc, because MkLinux only supported shared libraries with the
12607 # GNU dynamic linker. Since this was broken with cross compilers,
12608 # most powerpc-linux boxes support dynamic linking these days and
12609 # people can always --disable-shared, the test was removed, and we
12610 # assume the GNU/Linux dynamic linker is in use.
12611 dynamic_linker='GNU/Linux ld.so'
12612 ;;
12613
12614 netbsdelf*-gnu)
12615 version_type=linux
12616 need_lib_prefix=no
12617 need_version=no
12618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12619 soname_spec='$libname$release$shared_ext$major'
12620 shlibpath_var=LD_LIBRARY_PATH
12621 shlibpath_overrides_runpath=no
12622 hardcode_into_libs=yes
12623 dynamic_linker='NetBSD ld.elf_so'
12624 ;;
12625
12626 netbsd*)
12627 version_type=sunos
12628 need_lib_prefix=no
12629 need_version=no
12630 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12631 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12633 dynamic_linker='NetBSD (a.out) ld.so'
12634 else
12635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12636 soname_spec='$libname$release$shared_ext$major'
12637 dynamic_linker='NetBSD ld.elf_so'
12638 fi
12639 shlibpath_var=LD_LIBRARY_PATH
12640 shlibpath_overrides_runpath=yes
12641 hardcode_into_libs=yes
12642 ;;
12643
12644 *-mlibc)
12645 version_type=linux # correct to gnu/linux during the next big refactor
12646 need_lib_prefix=no
12647 need_version=no
12648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12649 soname_spec='$libname$release$shared_ext$major'
12650 dynamic_linker='mlibc ld.so'
12651 shlibpath_var=LD_LIBRARY_PATH
12652 shlibpath_overrides_runpath=no
12653 hardcode_into_libs=yes
12654 ;;
12655
12656 newsos6)
12657 version_type=linux # correct to gnu/linux during the next big refactor
12658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12659 shlibpath_var=LD_LIBRARY_PATH
12660 shlibpath_overrides_runpath=yes
12661 ;;
12662
12663 *nto* | *qnx*)
12664 version_type=qnx
12665 need_lib_prefix=no
12666 need_version=no
12667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12668 soname_spec='$libname$release$shared_ext$major'
12669 shlibpath_var=LD_LIBRARY_PATH
12670 shlibpath_overrides_runpath=no
12671 hardcode_into_libs=yes
12672 dynamic_linker='ldqnx.so'
12673 ;;
12674
12675 openbsd*)
12676 version_type=sunos
12677 sys_lib_dlsearch_path_spec=/usr/lib
12678 need_lib_prefix=no
12679 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12680 need_version=no
12681 else
12682 need_version=yes
12683 fi
12684 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12686 shlibpath_var=LD_LIBRARY_PATH
12687 shlibpath_overrides_runpath=yes
12688 ;;
12689
12690 os2*)
12691 libname_spec='$name'
12692 version_type=windows
12693 shrext_cmds=.dll
12694 need_version=no
12695 need_lib_prefix=no
12696 # OS/2 can only load a DLL with a base name of 8 characters or less.
12697 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12698 v=$($ECHO $release$versuffix | tr -d .-);
12699 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12700 $ECHO $n$v`$shared_ext'
12701 library_names_spec='${libname}_dll.$libext'
12702 dynamic_linker='OS/2 ld.exe'
12703 shlibpath_var=BEGINLIBPATH
12704 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12706 postinstall_cmds='base_file=`basename \$file`~
12707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12708 dldir=$destdir/`dirname \$dlpath`~
12709 test -d \$dldir || mkdir -p \$dldir~
12710 $install_prog $dir/$dlname \$dldir/$dlname~
12711 chmod a+x \$dldir/$dlname~
12712 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12713 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12714 fi'
12715 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12716 dlpath=$dir/\$dldll~
12717 $RM \$dlpath'
12718 ;;
12719
12720 osf3* | osf4* | osf5*)
12721 version_type=osf
12722 need_lib_prefix=no
12723 need_version=no
12724 soname_spec='$libname$release$shared_ext$major'
12725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12726 shlibpath_var=LD_LIBRARY_PATH
12727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12729 ;;
12730
12731 rdos*)
12732 dynamic_linker=no
12733 ;;
12734
12735 serenity*)
12736 version_type=linux # correct to gnu/linux during the next big refactor
12737 need_lib_prefix=no
12738 need_version=no
12739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12740 soname_spec='$libname$release$shared_ext$major'
12741 shlibpath_var=LD_LIBRARY_PATH
12742 shlibpath_overrides_runpath=no
12743 dynamic_linker='SerenityOS LibELF'
12744 ;;
12745
12746 solaris*)
12747 version_type=linux # correct to gnu/linux during the next big refactor
12748 need_lib_prefix=no
12749 need_version=no
12750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12751 soname_spec='$libname$release$shared_ext$major'
12752 shlibpath_var=LD_LIBRARY_PATH
12753 shlibpath_overrides_runpath=yes
12754 hardcode_into_libs=yes
12755 # ldd complains unless libraries are executable
12756 postinstall_cmds='chmod +x $lib'
12757 ;;
12758
12759 sunos4*)
12760 version_type=sunos
12761 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12763 shlibpath_var=LD_LIBRARY_PATH
12764 shlibpath_overrides_runpath=yes
12765 if test yes = "$with_gnu_ld"; then
12766 need_lib_prefix=no
12767 fi
12768 need_version=yes
12769 ;;
12770
12771 sysv4 | sysv4.3*)
12772 version_type=linux # correct to gnu/linux during the next big refactor
12773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12774 soname_spec='$libname$release$shared_ext$major'
12775 shlibpath_var=LD_LIBRARY_PATH
12776 case $host_vendor in
12777 sni)
12778 shlibpath_overrides_runpath=no
12779 need_lib_prefix=no
12780 runpath_var=LD_RUN_PATH
12781 ;;
12782 siemens)
12783 need_lib_prefix=no
12784 ;;
12785 motorola)
12786 need_lib_prefix=no
12787 need_version=no
12788 shlibpath_overrides_runpath=no
12789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12790 ;;
12791 esac
12792 ;;
12793
12794 sysv4*MP*)
12795 if test -d /usr/nec; then
12796 version_type=linux # correct to gnu/linux during the next big refactor
12797 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12798 soname_spec='$libname$shared_ext.$major'
12799 shlibpath_var=LD_LIBRARY_PATH
12800 fi
12801 ;;
12802
12803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12804 version_type=sco
12805 need_lib_prefix=no
12806 need_version=no
12807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12808 soname_spec='$libname$release$shared_ext$major'
12809 shlibpath_var=LD_LIBRARY_PATH
12810 shlibpath_overrides_runpath=yes
12811 hardcode_into_libs=yes
12812 if test yes = "$with_gnu_ld"; then
12813 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12814 else
12815 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12816 case $host_os in
12817 sco3.2v5*)
12818 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12819 ;;
12820 esac
12821 fi
12822 sys_lib_dlsearch_path_spec='/usr/lib'
12823 ;;
12824
12825 tpf*)
12826 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12827 version_type=linux # correct to gnu/linux during the next big refactor
12828 need_lib_prefix=no
12829 need_version=no
12830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12831 shlibpath_var=LD_LIBRARY_PATH
12832 shlibpath_overrides_runpath=no
12833 hardcode_into_libs=yes
12834 ;;
12835
12836 uts4*)
12837 version_type=linux # correct to gnu/linux during the next big refactor
12838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12839 soname_spec='$libname$release$shared_ext$major'
12840 shlibpath_var=LD_LIBRARY_PATH
12841 ;;
12842
12843 emscripten*)
12844 version_type=none
12845 need_lib_prefix=no
12846 need_version=no
12847 library_names_spec='$libname$release$shared_ext'
12848 soname_spec='$libname$release$shared_ext'
12849 finish_cmds=
12850 dynamic_linker="Emscripten linker"
12851 lt_prog_compiler_wl=
12852 lt_prog_compiler_pic=
12853 lt_prog_compiler_static=
12854
12855
12856 if test yes = "$GCC"; then
12857 lt_prog_compiler_wl='-Wl,'
12858 lt_prog_compiler_static='-static'
12859
12860 case $host_os in
12861 aix*)
12862 # All AIX code is PIC.
12863 if test ia64 = "$host_cpu"; then
12864 # AIX 5 now supports IA64 processor
12865 lt_prog_compiler_static='-Bstatic'
12866 fi
12867 lt_prog_compiler_pic='-fPIC'
12868 ;;
12869
12870 amigaos*)
12871 case $host_cpu in
12872 powerpc)
12873 # see comment about AmigaOS4 .so support
12874 lt_prog_compiler_pic='-fPIC'
12875 ;;
12876 m68k)
12877 # FIXME: we need at least 68020 code to build shared libraries, but
12878 # adding the '-m68020' flag to GCC prevents building anything better,
12879 # like '-m68040'.
12880 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12881 ;;
12882 esac
12883 ;;
12884
12885 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12886 # PIC is the default for these OSes.
12887 ;;
12888
12889 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12890 # This hack is so that the source file can tell whether it is being
12891 # built for inclusion in a dll (and should export symbols for example).
12892 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12893 # (--disable-auto-import) libraries
12894 lt_prog_compiler_pic='-DDLL_EXPORT'
12895 case $host_os in
12896 os2*)
12897 lt_prog_compiler_static='$wl-static'
12898 ;;
12899 esac
12900 ;;
12901
12902 darwin* | rhapsody*)
12903 # PIC is the default on this platform
12904 # Common symbols not allowed in MH_DYLIB files
12905 lt_prog_compiler_pic='-fno-common'
12906 ;;
12907
12908 haiku*)
12909 # PIC is the default for Haiku.
12910 # The "-static" flag exists, but is broken.
12911 lt_prog_compiler_static=
12912 ;;
12913
12914 hpux*)
12915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12917 # sets the default TLS model and affects inlining.
12918 case $host_cpu in
12919 hppa*64*)
12920 # +Z the default
12921 ;;
12922 *)
12923 lt_prog_compiler_pic='-fPIC'
12924 ;;
12925 esac
12926 ;;
12927
12928 interix[3-9]*)
12929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12930 # Instead, we relocate shared libraries at runtime.
12931 ;;
12932
12933 msdosdjgpp*)
12934 # Just because we use GCC doesn't mean we suddenly get shared libraries
12935 # on systems that don't support them.
12936 lt_prog_compiler_can_build_shared=no
12937 enable_shared=no
12938 ;;
12939
12940 *nto* | *qnx*)
12941 # QNX uses GNU C++, but need to define -shared option too, otherwise
12942 # it will coredump.
12943 lt_prog_compiler_pic='-fPIC -shared'
12944 ;;
12945
12946 sysv4*MP*)
12947 if test -d /usr/nec; then
12948 lt_prog_compiler_pic=-Kconform_pic
12949 fi
12950 ;;
12951
12952 *)
12953 lt_prog_compiler_pic='-fPIC'
12954 ;;
12955 esac
12956
12957 case $cc_basename in
12958 nvcc*) # Cuda Compiler Driver 2.2
12959 lt_prog_compiler_wl='-Xlinker '
12960 if test -n "$lt_prog_compiler_pic"; then
12961 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12962 fi
12963 ;;
12964 esac
12965 else
12966 # PORTME Check for flag to pass linker flags through the system compiler.
12967 case $host_os in
12968 aix*)
12969 lt_prog_compiler_wl='-Wl,'
12970 if test ia64 = "$host_cpu"; then
12971 # AIX 5 now supports IA64 processor
12972 lt_prog_compiler_static='-Bstatic'
12973 else
12974 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12975 fi
12976 ;;
12977
12978 darwin* | rhapsody*)
12979 # PIC is the default on this platform
12980 # Common symbols not allowed in MH_DYLIB files
12981 lt_prog_compiler_pic='-fno-common'
12982 case $cc_basename in
12983 nagfor*)
12984 # NAG Fortran compiler
12985 lt_prog_compiler_wl='-Wl,-Wl,,'
12986 lt_prog_compiler_pic='-PIC'
12987 lt_prog_compiler_static='-Bstatic'
12988 ;;
12989 esac
12990 ;;
12991
12992 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12993 # This hack is so that the source file can tell whether it is being
12994 # built for inclusion in a dll (and should export symbols for example).
12995 lt_prog_compiler_pic='-DDLL_EXPORT'
12996 case $host_os in
12997 os2*)
12998 lt_prog_compiler_static='$wl-static'
12999 ;;
13000 esac
13001 ;;
13002
13003 hpux9* | hpux10* | hpux11*)
13004 lt_prog_compiler_wl='-Wl,'
13005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13006 # not for PA HP-UX.
13007 case $host_cpu in
13008 hppa*64*|ia64*)
13009 # +Z the default
13010 ;;
13011 *)
13012 lt_prog_compiler_pic='+Z'
13013 ;;
13014 esac
13015 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13016 lt_prog_compiler_static='$wl-a ${wl}archive'
13017 ;;
13018
13019 irix5* | irix6* | nonstopux*)
13020 lt_prog_compiler_wl='-Wl,'
13021 # PIC (with -KPIC) is the default.
13022 lt_prog_compiler_static='-non_shared'
13023 ;;
13024
13025 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13026 case $cc_basename in
13027 # old Intel for x86_64, which still supported -KPIC.
13028 ecc*)
13029 lt_prog_compiler_wl='-Wl,'
13030 lt_prog_compiler_pic='-KPIC'
13031 lt_prog_compiler_static='-static'
13032 ;;
13033 *flang* | ftn | f18* | f95*)
13034 # Flang compiler.
13035 lt_prog_compiler_wl='-Wl,'
13036 lt_prog_compiler_pic='-fPIC'
13037 lt_prog_compiler_static='-static'
13038 ;;
13039 # icc used to be incompatible with GCC.
13040 # ICC 10 doesn't accept -KPIC any more.
13041 icc* | ifort*)
13042 lt_prog_compiler_wl='-Wl,'
13043 lt_prog_compiler_pic='-fPIC'
13044 lt_prog_compiler_static='-static'
13045 ;;
13046 # Lahey Fortran 8.1.
13047 lf95*)
13048 lt_prog_compiler_wl='-Wl,'
13049 lt_prog_compiler_pic='--shared'
13050 lt_prog_compiler_static='--static'
13051 ;;
13052 nagfor*)
13053 # NAG Fortran compiler
13054 lt_prog_compiler_wl='-Wl,-Wl,,'
13055 lt_prog_compiler_pic='-PIC'
13056 lt_prog_compiler_static='-Bstatic'
13057 ;;
13058 tcc*)
13059 # Fabrice Bellard et al's Tiny C Compiler
13060 lt_prog_compiler_wl='-Wl,'
13061 lt_prog_compiler_pic='-fPIC'
13062 lt_prog_compiler_static='-static'
13063 ;;
13064 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13065 # Portland Group compilers (*not* the Pentium gcc compiler,
13066 # which looks to be a dead project)
13067 lt_prog_compiler_wl='-Wl,'
13068 lt_prog_compiler_pic='-fpic'
13069 lt_prog_compiler_static='-Bstatic'
13070 ;;
13071 ccc*)
13072 lt_prog_compiler_wl='-Wl,'
13073 # All Alpha code is PIC.
13074 lt_prog_compiler_static='-non_shared'
13075 ;;
13076 xl* | bgxl* | bgf* | mpixl*)
13077 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13078 lt_prog_compiler_wl='-Wl,'
13079 lt_prog_compiler_pic='-qpic'
13080 lt_prog_compiler_static='-qstaticlink'
13081 ;;
13082 *)
13083 case `$CC -V 2>&1 | $SED 5q` in
13084 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13085 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13086 lt_prog_compiler_pic='-KPIC'
13087 lt_prog_compiler_static='-Bstatic'
13088 lt_prog_compiler_wl=''
13089 ;;
13090 *Sun\ F* | *Sun*Fortran*)
13091 lt_prog_compiler_pic='-KPIC'
13092 lt_prog_compiler_static='-Bstatic'
13093 lt_prog_compiler_wl='-Qoption ld '
13094 ;;
13095 *Sun\ C*)
13096 # Sun C 5.9
13097 lt_prog_compiler_pic='-KPIC'
13098 lt_prog_compiler_static='-Bstatic'
13099 lt_prog_compiler_wl='-Wl,'
13100 ;;
13101 *Intel*\ [CF]*Compiler*)
13102 lt_prog_compiler_wl='-Wl,'
13103 lt_prog_compiler_pic='-fPIC'
13104 lt_prog_compiler_static='-static'
13105 ;;
13106 *Portland\ Group*)
13107 lt_prog_compiler_wl='-Wl,'
13108 lt_prog_compiler_pic='-fpic'
13109 lt_prog_compiler_static='-Bstatic'
13110 ;;
13111 esac
13112 ;;
13113 esac
13114 ;;
13115
13116 newsos6)
13117 lt_prog_compiler_pic='-KPIC'
13118 lt_prog_compiler_static='-Bstatic'
13119 ;;
13120
13121 *-mlibc)
13122 lt_prog_compiler_wl='-Wl,'
13123 lt_prog_compiler_pic='-fPIC'
13124 lt_prog_compiler_static='-static'
13125 ;;
13126
13127 *nto* | *qnx*)
13128 # QNX uses GNU C++, but need to define -shared option too, otherwise
13129 # it will coredump.
13130 lt_prog_compiler_pic='-fPIC -shared'
13131 ;;
13132
13133 osf3* | osf4* | osf5*)
13134 lt_prog_compiler_wl='-Wl,'
13135 # All OSF/1 code is PIC.
13136 lt_prog_compiler_static='-non_shared'
13137 ;;
13138
13139 rdos*)
13140 lt_prog_compiler_static='-non_shared'
13141 ;;
13142
13143 serenity*)
13144 ;;
13145
13146 solaris*)
13147 lt_prog_compiler_pic='-KPIC'
13148 lt_prog_compiler_static='-Bstatic'
13149 case $cc_basename in
13150 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13151 lt_prog_compiler_wl='-Qoption ld ';;
13152 *)
13153 lt_prog_compiler_wl='-Wl,';;
13154 esac
13155 ;;
13156
13157 sunos4*)
13158 lt_prog_compiler_wl='-Qoption ld '
13159 lt_prog_compiler_pic='-PIC'
13160 lt_prog_compiler_static='-Bstatic'
13161 ;;
13162
13163 sysv4 | sysv4.2uw2* | sysv4.3*)
13164 lt_prog_compiler_wl='-Wl,'
13165 lt_prog_compiler_pic='-KPIC'
13166 lt_prog_compiler_static='-Bstatic'
13167 ;;
13168
13169 sysv4*MP*)
13170 if test -d /usr/nec; then
13171 lt_prog_compiler_pic='-Kconform_pic'
13172 lt_prog_compiler_static='-Bstatic'
13173 fi
13174 ;;
13175
13176 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13177 lt_prog_compiler_wl='-Wl,'
13178 lt_prog_compiler_pic='-KPIC'
13179 lt_prog_compiler_static='-Bstatic'
13180 ;;
13181
13182 unicos*)
13183 lt_prog_compiler_wl='-Wl,'
13184 lt_prog_compiler_can_build_shared=no
13185 ;;
13186
13187 uts4*)
13188 lt_prog_compiler_pic='-pic'
13189 lt_prog_compiler_static='-Bstatic'
13190 ;;
13191
13192 *)
13193 lt_prog_compiler_can_build_shared=no
13194 ;;
13195 esac
13196 fi
13197
13198 case $host_os in
13199 # For platforms that do not support PIC, -DPIC is meaningless:
13200 *djgpp*)
13201 lt_prog_compiler_pic=
13202 ;;
13203 *)
13204 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13205 ;;
13206 esac
13207
13208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13209 printf %s "checking for $compiler option to produce PIC... " >&6; }
13210 if test ${lt_cv_prog_compiler_pic+y}
13211 then :
13212 printf %s "(cached) " >&6
13213 else case e in #(
13214 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13215 esac
13216 fi
13217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13218 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13219 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13220
13221 #
13222 # Check to make sure the PIC flag actually works.
13223 #
13224 if test -n "$lt_prog_compiler_pic"; then
13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13226 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13227 if test ${lt_cv_prog_compiler_pic_works+y}
13228 then :
13229 printf %s "(cached) " >&6
13230 else case e in #(
13231 e) lt_cv_prog_compiler_pic_works=no
13232 ac_outfile=conftest.$ac_objext
13233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13234 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13235 # Insert the option either (1) after the last *FLAGS variable, or
13236 # (2) before a word containing "conftest.", or (3) at the end.
13237 # Note that $ac_compile itself does not contain backslashes and begins
13238 # with a dollar sign (not a hyphen), so the echo should work correctly.
13239 # The option is referenced via a variable to avoid confusing sed.
13240 lt_compile=`echo "$ac_compile" | $SED \
13241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13243 -e 's:$: $lt_compiler_flag:'`
13244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13245 (eval "$lt_compile" 2>conftest.err)
13246 ac_status=$?
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 if (exit $ac_status) && test -s "$ac_outfile"; then
13250 # The compiler can only warn and ignore the option if not recognized
13251 # So say no if there are warnings other than the usual output.
13252 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13255 lt_cv_prog_compiler_pic_works=yes
13256 fi
13257 fi
13258 $RM conftest*
13259 ;;
13260 esac
13261 fi
13262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13263 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13264
13265 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13266 case $lt_prog_compiler_pic in
13267 "" | " "*) ;;
13268 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13269 esac
13270 else
13271 lt_prog_compiler_pic=
13272 lt_prog_compiler_can_build_shared=no
13273 fi
13274
13275 fi
13276
13277
13278
13279
13280
13281 #
13282 # Check to make sure the static flag actually works.
13283 #
13284 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13286 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13287 if test ${lt_cv_prog_compiler_static_works+y}
13288 then :
13289 printf %s "(cached) " >&6
13290 else case e in #(
13291 e) lt_cv_prog_compiler_static_works=no
13292 save_LDFLAGS=$LDFLAGS
13293 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13294 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13296 # The linker can only warn and ignore the option if not recognized
13297 # So say no if there are warnings
13298 if test -s conftest.err; then
13299 # Append any errors to the config.log.
13300 cat conftest.err 1>&5
13301 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13303 if diff conftest.exp conftest.er2 >/dev/null; then
13304 lt_cv_prog_compiler_static_works=yes
13305 fi
13306 else
13307 lt_cv_prog_compiler_static_works=yes
13308 fi
13309 fi
13310 $RM -r conftest*
13311 LDFLAGS=$save_LDFLAGS
13312 ;;
13313 esac
13314 fi
13315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13316 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13317
13318 if test yes = "$lt_cv_prog_compiler_static_works"; then
13319 :
13320 else
13321 lt_prog_compiler_static=
13322 fi
13323
13324
13325
13326 ='-fPIC'
13327 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13328 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'
13329 archive_cmds_need_lc=no
13330 no_undefined_flag=
13331 ;;
13332
13333 *)
13334 dynamic_linker=no
13335 ;;
13336 esac
13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13338 printf "%s\n" "$dynamic_linker" >&6; }
13339 test no = "$dynamic_linker" && can_build_shared=no
13340
13341 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13342 if test yes = "$GCC"; then
13343 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13344 fi
13345
13346 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13347 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13348 fi
13349
13350 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13351 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13352 fi
13353
13354 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13355 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13356
13357 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13358 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13359
13360 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13361 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13460 printf %s "checking how to hardcode library paths into programs... " >&6; }
13461 hardcode_action=
13462 if test -n "$hardcode_libdir_flag_spec" ||
13463 test -n "$runpath_var" ||
13464 test yes = "$hardcode_automatic"; then
13465
13466 # We can hardcode non-existent directories.
13467 if test no != "$hardcode_direct" &&
13468 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13469 # have to relink, otherwise we might link with an installed library
13470 # when we should be linking with a yet-to-be-installed one
13471 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13472 test no != "$hardcode_minus_L"; then
13473 # Linking always hardcodes the temporary library directory.
13474 hardcode_action=relink
13475 else
13476 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13477 hardcode_action=immediate
13478 fi
13479 else
13480 # We cannot hardcode anything, or else we can only hardcode existing
13481 # directories.
13482 hardcode_action=unsupported
13483 fi
13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13485 printf "%s\n" "$hardcode_action" >&6; }
13486
13487 if test relink = "$hardcode_action" ||
13488 test yes = "$inherit_rpath"; then
13489 # Fast installation is not supported
13490 enable_fast_install=no
13491 elif test yes = "$shlibpath_overrides_runpath" ||
13492 test no = "$enable_shared"; then
13493 # Fast installation is not necessary
13494 enable_fast_install=needless
13495 fi
13496
13497
13498
13499
13500
13501
13502 if test yes != "$enable_dlopen"; then
13503 enable_dlopen=unknown
13504 enable_dlopen_self=unknown
13505 enable_dlopen_self_static=unknown
13506 else
13507 lt_cv_dlopen=no
13508 lt_cv_dlopen_libs=
13509
13510 case $host_os in
13511 beos*)
13512 lt_cv_dlopen=load_add_on
13513 lt_cv_dlopen_libs=
13514 lt_cv_dlopen_self=yes
13515 ;;
13516
13517 mingw* | windows* | pw32* | cegcc*)
13518 lt_cv_dlopen=LoadLibrary
13519 lt_cv_dlopen_libs=
13520 ;;
13521
13522 cygwin*)
13523 lt_cv_dlopen=dlopen
13524 lt_cv_dlopen_libs=
13525 ;;
13526
13527 darwin*)
13528 # if libdl is installed we need to link against it
13529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13530 printf %s "checking for dlopen in -ldl... " >&6; }
13531 if test ${ac_cv_lib_dl_dlopen+y}
13532 then :
13533 printf %s "(cached) " >&6
13534 else case e in #(
13535 e) ac_check_lib_save_LIBS=$LIBS
13536 LIBS="-ldl $LIBS"
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13539
13540 /* Override any GCC internal prototype to avoid an error.
13541 Use char because int might match the return type of a GCC
13542 builtin and then its argument prototype would still apply.
13543 The 'extern "C"' is for builds by C++ compilers;
13544 although this is not generally supported in C code supporting it here
13545 has little cost and some practical benefit (sr 110532). */
13546 #ifdef __cplusplus
13547 extern "C"
13548 #endif
13549 char dlopen (void);
13550 int
13551 main (void)
13552 {
13553 return dlopen ();
13554 ;
13555 return 0;
13556 }
13557 _ACEOF
13558 if ac_fn_c_try_link "$LINENO"
13559 then :
13560 ac_cv_lib_dl_dlopen=yes
13561 else case e in #(
13562 e) ac_cv_lib_dl_dlopen=no ;;
13563 esac
13564 fi
13565 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13566 conftest$ac_exeext conftest.$ac_ext
13567 LIBS=$ac_check_lib_save_LIBS ;;
13568 esac
13569 fi
13570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13571 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13572 if test "x$ac_cv_lib_dl_dlopen" = xyes
13573 then :
13574 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13575 else case e in #(
13576 e)
13577 lt_cv_dlopen=dyld
13578 lt_cv_dlopen_libs=
13579 lt_cv_dlopen_self=yes
13580 ;;
13581 esac
13582 fi
13583
13584 ;;
13585
13586 tpf*)
13587 # Don't try to run any link tests for TPF. We know it's impossible
13588 # because TPF is a cross-compiler, and we know how we open DSOs.
13589 lt_cv_dlopen=dlopen
13590 lt_cv_dlopen_libs=
13591 lt_cv_dlopen_self=no
13592 ;;
13593
13594 *)
13595 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13596 if test "x$ac_cv_func_shl_load" = xyes
13597 then :
13598 lt_cv_dlopen=shl_load
13599 else case e in #(
13600 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13601 printf %s "checking for shl_load in -ldld... " >&6; }
13602 if test ${ac_cv_lib_dld_shl_load+y}
13603 then :
13604 printf %s "(cached) " >&6
13605 else case e in #(
13606 e) ac_check_lib_save_LIBS=$LIBS
13607 LIBS="-ldld $LIBS"
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13610
13611 /* Override any GCC internal prototype to avoid an error.
13612 Use char because int might match the return type of a GCC
13613 builtin and then its argument prototype would still apply.
13614 The 'extern "C"' is for builds by C++ compilers;
13615 although this is not generally supported in C code supporting it here
13616 has little cost and some practical benefit (sr 110532). */
13617 #ifdef __cplusplus
13618 extern "C"
13619 #endif
13620 char shl_load (void);
13621 int
13622 main (void)
13623 {
13624 return shl_load ();
13625 ;
13626 return 0;
13627 }
13628 _ACEOF
13629 if ac_fn_c_try_link "$LINENO"
13630 then :
13631 ac_cv_lib_dld_shl_load=yes
13632 else case e in #(
13633 e) ac_cv_lib_dld_shl_load=no ;;
13634 esac
13635 fi
13636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13637 conftest$ac_exeext conftest.$ac_ext
13638 LIBS=$ac_check_lib_save_LIBS ;;
13639 esac
13640 fi
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13642 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13643 if test "x$ac_cv_lib_dld_shl_load" = xyes
13644 then :
13645 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13646 else case e in #(
13647 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13648 if test "x$ac_cv_func_dlopen" = xyes
13649 then :
13650 lt_cv_dlopen=dlopen
13651 else case e in #(
13652 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13653 printf %s "checking for dlopen in -ldl... " >&6; }
13654 if test ${ac_cv_lib_dl_dlopen+y}
13655 then :
13656 printf %s "(cached) " >&6
13657 else case e in #(
13658 e) ac_check_lib_save_LIBS=$LIBS
13659 LIBS="-ldl $LIBS"
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662
13663 /* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply.
13666 The 'extern "C"' is for builds by C++ compilers;
13667 although this is not generally supported in C code supporting it here
13668 has little cost and some practical benefit (sr 110532). */
13669 #ifdef __cplusplus
13670 extern "C"
13671 #endif
13672 char dlopen (void);
13673 int
13674 main (void)
13675 {
13676 return dlopen ();
13677 ;
13678 return 0;
13679 }
13680 _ACEOF
13681 if ac_fn_c_try_link "$LINENO"
13682 then :
13683 ac_cv_lib_dl_dlopen=yes
13684 else case e in #(
13685 e) ac_cv_lib_dl_dlopen=no ;;
13686 esac
13687 fi
13688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13689 conftest$ac_exeext conftest.$ac_ext
13690 LIBS=$ac_check_lib_save_LIBS ;;
13691 esac
13692 fi
13693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13694 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13695 if test "x$ac_cv_lib_dl_dlopen" = xyes
13696 then :
13697 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13698 else case e in #(
13699 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13700 printf %s "checking for dlopen in -lsvld... " >&6; }
13701 if test ${ac_cv_lib_svld_dlopen+y}
13702 then :
13703 printf %s "(cached) " >&6
13704 else case e in #(
13705 e) ac_check_lib_save_LIBS=$LIBS
13706 LIBS="-lsvld $LIBS"
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13709
13710 /* Override any GCC internal prototype to avoid an error.
13711 Use char because int might match the return type of a GCC
13712 builtin and then its argument prototype would still apply.
13713 The 'extern "C"' is for builds by C++ compilers;
13714 although this is not generally supported in C code supporting it here
13715 has little cost and some practical benefit (sr 110532). */
13716 #ifdef __cplusplus
13717 extern "C"
13718 #endif
13719 char dlopen (void);
13720 int
13721 main (void)
13722 {
13723 return dlopen ();
13724 ;
13725 return 0;
13726 }
13727 _ACEOF
13728 if ac_fn_c_try_link "$LINENO"
13729 then :
13730 ac_cv_lib_svld_dlopen=yes
13731 else case e in #(
13732 e) ac_cv_lib_svld_dlopen=no ;;
13733 esac
13734 fi
13735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13736 conftest$ac_exeext conftest.$ac_ext
13737 LIBS=$ac_check_lib_save_LIBS ;;
13738 esac
13739 fi
13740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13741 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13742 if test "x$ac_cv_lib_svld_dlopen" = xyes
13743 then :
13744 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13745 else case e in #(
13746 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13747 printf %s "checking for dld_link in -ldld... " >&6; }
13748 if test ${ac_cv_lib_dld_dld_link+y}
13749 then :
13750 printf %s "(cached) " >&6
13751 else case e in #(
13752 e) ac_check_lib_save_LIBS=$LIBS
13753 LIBS="-ldld $LIBS"
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13756
13757 /* Override any GCC internal prototype to avoid an error.
13758 Use char because int might match the return type of a GCC
13759 builtin and then its argument prototype would still apply.
13760 The 'extern "C"' is for builds by C++ compilers;
13761 although this is not generally supported in C code supporting it here
13762 has little cost and some practical benefit (sr 110532). */
13763 #ifdef __cplusplus
13764 extern "C"
13765 #endif
13766 char dld_link (void);
13767 int
13768 main (void)
13769 {
13770 return dld_link ();
13771 ;
13772 return 0;
13773 }
13774 _ACEOF
13775 if ac_fn_c_try_link "$LINENO"
13776 then :
13777 ac_cv_lib_dld_dld_link=yes
13778 else case e in #(
13779 e) ac_cv_lib_dld_dld_link=no ;;
13780 esac
13781 fi
13782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13783 conftest$ac_exeext conftest.$ac_ext
13784 LIBS=$ac_check_lib_save_LIBS ;;
13785 esac
13786 fi
13787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13788 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13789 if test "x$ac_cv_lib_dld_dld_link" = xyes
13790 then :
13791 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13792 fi
13793
13794 ;;
13795 esac
13796 fi
13797
13798 ;;
13799 esac
13800 fi
13801
13802 ;;
13803 esac
13804 fi
13805
13806 ;;
13807 esac
13808 fi
13809
13810 ;;
13811 esac
13812 fi
13813
13814 ;;
13815 esac
13816
13817 if test no = "$lt_cv_dlopen"; then
13818 enable_dlopen=no
13819 else
13820 enable_dlopen=yes
13821 fi
13822
13823 case $lt_cv_dlopen in
13824 dlopen)
13825 save_CPPFLAGS=$CPPFLAGS
13826 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13827
13828 save_LDFLAGS=$LDFLAGS
13829 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13830
13831 save_LIBS=$LIBS
13832 LIBS="$lt_cv_dlopen_libs $LIBS"
13833
13834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13835 printf %s "checking whether a program can dlopen itself... " >&6; }
13836 if test ${lt_cv_dlopen_self+y}
13837 then :
13838 printf %s "(cached) " >&6
13839 else case e in #(
13840 e) if test yes = "$cross_compiling"; then :
13841 lt_cv_dlopen_self=cross
13842 else
13843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13844 lt_status=$lt_dlunknown
13845 cat > conftest.$ac_ext <<_LT_EOF
13846 #line $LINENO "configure"
13847 #include "confdefs.h"
13848
13849 #if HAVE_DLFCN_H
13850 #include <dlfcn.h>
13851 #endif
13852
13853 #include <stdio.h>
13854
13855 #ifdef RTLD_GLOBAL
13856 # define LT_DLGLOBAL RTLD_GLOBAL
13857 #else
13858 # ifdef DL_GLOBAL
13859 # define LT_DLGLOBAL DL_GLOBAL
13860 # else
13861 # define LT_DLGLOBAL 0
13862 # endif
13863 #endif
13864
13865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13866 find out it does not work in some platform. */
13867 #ifndef LT_DLLAZY_OR_NOW
13868 # ifdef RTLD_LAZY
13869 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13870 # else
13871 # ifdef DL_LAZY
13872 # define LT_DLLAZY_OR_NOW DL_LAZY
13873 # else
13874 # ifdef RTLD_NOW
13875 # define LT_DLLAZY_OR_NOW RTLD_NOW
13876 # else
13877 # ifdef DL_NOW
13878 # define LT_DLLAZY_OR_NOW DL_NOW
13879 # else
13880 # define LT_DLLAZY_OR_NOW 0
13881 # endif
13882 # endif
13883 # endif
13884 # endif
13885 #endif
13886
13887 /* When -fvisibility=hidden is used, assume the code has been annotated
13888 correspondingly for the symbols needed. */
13889 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13890 int fnord (void) __attribute__((visibility("default")));
13891 #endif
13892
13893 int fnord (void) { return 42; }
13894 int main (void)
13895 {
13896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13897 int status = $lt_dlunknown;
13898
13899 if (self)
13900 {
13901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13902 else
13903 {
13904 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13905 else puts (dlerror ());
13906 }
13907 /* dlclose (self); */
13908 }
13909 else
13910 puts (dlerror ());
13911
13912 return status;
13913 }
13914 _LT_EOF
13915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13916 (eval $ac_link) 2>&5
13917 ac_status=$?
13918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13919 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13920 (./conftest; exit; ) >&5 2>/dev/null
13921 lt_status=$?
13922 case x$lt_status in
13923 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13924 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13925 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13926 esac
13927 else :
13928 # compilation failed
13929 lt_cv_dlopen_self=no
13930 fi
13931 fi
13932 rm -fr conftest*
13933
13934 ;;
13935 esac
13936 fi
13937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13938 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13939
13940 if test yes = "$lt_cv_dlopen_self"; then
13941 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13943 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13944 if test ${lt_cv_dlopen_self_static+y}
13945 then :
13946 printf %s "(cached) " >&6
13947 else case e in #(
13948 e) if test yes = "$cross_compiling"; then :
13949 lt_cv_dlopen_self_static=cross
13950 else
13951 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13952 lt_status=$lt_dlunknown
13953 cat > conftest.$ac_ext <<_LT_EOF
13954 #line $LINENO "configure"
13955 #include "confdefs.h"
13956
13957 #if HAVE_DLFCN_H
13958 #include <dlfcn.h>
13959 #endif
13960
13961 #include <stdio.h>
13962
13963 #ifdef RTLD_GLOBAL
13964 # define LT_DLGLOBAL RTLD_GLOBAL
13965 #else
13966 # ifdef DL_GLOBAL
13967 # define LT_DLGLOBAL DL_GLOBAL
13968 # else
13969 # define LT_DLGLOBAL 0
13970 # endif
13971 #endif
13972
13973 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13974 find out it does not work in some platform. */
13975 #ifndef LT_DLLAZY_OR_NOW
13976 # ifdef RTLD_LAZY
13977 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13978 # else
13979 # ifdef DL_LAZY
13980 # define LT_DLLAZY_OR_NOW DL_LAZY
13981 # else
13982 # ifdef RTLD_NOW
13983 # define LT_DLLAZY_OR_NOW RTLD_NOW
13984 # else
13985 # ifdef DL_NOW
13986 # define LT_DLLAZY_OR_NOW DL_NOW
13987 # else
13988 # define LT_DLLAZY_OR_NOW 0
13989 # endif
13990 # endif
13991 # endif
13992 # endif
13993 #endif
13994
13995 /* When -fvisibility=hidden is used, assume the code has been annotated
13996 correspondingly for the symbols needed. */
13997 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13998 int fnord (void) __attribute__((visibility("default")));
13999 #endif
14000
14001 int fnord (void) { return 42; }
14002 int main (void)
14003 {
14004 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14005 int status = $lt_dlunknown;
14006
14007 if (self)
14008 {
14009 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14010 else
14011 {
14012 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14013 else puts (dlerror ());
14014 }
14015 /* dlclose (self); */
14016 }
14017 else
14018 puts (dlerror ());
14019
14020 return status;
14021 }
14022 _LT_EOF
14023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14024 (eval $ac_link) 2>&5
14025 ac_status=$?
14026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14027 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14028 (./conftest; exit; ) >&5 2>/dev/null
14029 lt_status=$?
14030 case x$lt_status in
14031 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14032 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14033 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14034 esac
14035 else :
14036 # compilation failed
14037 lt_cv_dlopen_self_static=no
14038 fi
14039 fi
14040 rm -fr conftest*
14041
14042 ;;
14043 esac
14044 fi
14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14046 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14047 fi
14048
14049 CPPFLAGS=$save_CPPFLAGS
14050 LDFLAGS=$save_LDFLAGS
14051 LIBS=$save_LIBS
14052 ;;
14053 esac
14054
14055 case $lt_cv_dlopen_self in
14056 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14057 *) enable_dlopen_self=unknown ;;
14058 esac
14059
14060 case $lt_cv_dlopen_self_static in
14061 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14062 *) enable_dlopen_self_static=unknown ;;
14063 esac
14064 fi
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082 striplib=
14083 old_striplib=
14084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14085 printf %s "checking whether stripping libraries is possible... " >&6; }
14086 if test -z "$STRIP"; then
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088 printf "%s\n" "no" >&6; }
14089 else
14090 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14091 old_striplib="$STRIP --strip-debug"
14092 striplib="$STRIP --strip-unneeded"
14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14094 printf "%s\n" "yes" >&6; }
14095 else
14096 case $host_os in
14097 darwin*)
14098 # FIXME - insert some real tests, host_os isn't really good enough
14099 striplib="$STRIP -x"
14100 old_striplib="$STRIP -S"
14101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14102 printf "%s\n" "yes" >&6; }
14103 ;;
14104 freebsd*)
14105 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14106 old_striplib="$STRIP --strip-debug"
14107 striplib="$STRIP --strip-unneeded"
14108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14109 printf "%s\n" "yes" >&6; }
14110 else
14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14112 printf "%s\n" "no" >&6; }
14113 fi
14114 ;;
14115 *)
14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14117 printf "%s\n" "no" >&6; }
14118 ;;
14119 esac
14120 fi
14121 fi
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134 # Report what library types will actually be built
14135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14136 printf %s "checking if libtool supports shared libraries... " >&6; }
14137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14138 printf "%s\n" "$can_build_shared" >&6; }
14139
14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14141 printf %s "checking whether to build shared libraries... " >&6; }
14142 test no = "$can_build_shared" && enable_shared=no
14143
14144 # On AIX, shared libraries and static libraries use the same namespace, and
14145 # are all built from PIC.
14146 case $host_os in
14147 aix3*)
14148 test yes = "$enable_shared" && enable_static=no
14149 if test -n "$RANLIB"; then
14150 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14151 postinstall_cmds='$RANLIB $lib'
14152 fi
14153 ;;
14154
14155 aix[4-9]*)
14156 if test ia64 != "$host_cpu"; then
14157 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14158 yes,aix,yes) ;; # shared object as lib.so file only
14159 yes,svr4,*) ;; # shared object as lib.so archive member only
14160 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14161 esac
14162 fi
14163 ;;
14164 esac
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14166 printf "%s\n" "$enable_shared" >&6; }
14167
14168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14169 printf %s "checking whether to build static libraries... " >&6; }
14170 # Make sure either enable_shared or enable_static is yes.
14171 test yes = "$enable_shared" || enable_static=yes
14172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14173 printf "%s\n" "$enable_static" >&6; }
14174
14175
14176
14177
14178 fi
14179 ac_ext=c
14180 ac_cpp='$CPP $CPPFLAGS'
14181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14184
14185 CC=$lt_save_CC
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201 ac_config_commands="$ac_config_commands libtool"
14202
14203
14204
14205
14206 # Only expand once:
14207
14208
14209
14210 # Extract the first word of "bash", so it can be a program name with args.
14211 set dummy bash; ac_word=$2
14212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14213 printf %s "checking for $ac_word... " >&6; }
14214 if test ${ac_cv_path_BASH+y}
14215 then :
14216 printf %s "(cached) " >&6
14217 else case e in #(
14218 e) case $BASH in
14219 [\\/]* | ?:[\\/]*)
14220 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
14221 ;;
14222 *)
14223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224 for as_dir in $PATH
14225 do
14226 IFS=$as_save_IFS
14227 case $as_dir in #(((
14228 '') as_dir=./ ;;
14229 */) ;;
14230 *) as_dir=$as_dir/ ;;
14231 esac
14232 for ac_exec_ext in '' $ac_executable_extensions; do
14233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14234 ac_cv_path_BASH="$as_dir$ac_word$ac_exec_ext"
14235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14236 break 2
14237 fi
14238 done
14239 done
14240 IFS=$as_save_IFS
14241
14242 ;;
14243 esac ;;
14244 esac
14245 fi
14246 BASH=$ac_cv_path_BASH
14247 if test -n "$BASH"; then
14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
14249 printf "%s\n" "$BASH" >&6; }
14250 else
14251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14252 printf "%s\n" "no" >&6; }
14253 fi
14254
14255
14256 if test -z "$BASH"; then
14257 as_fn_error $? "bash is required to run Makefile" "$LINENO" 5
14258 fi
14259
14260 # Compilation
14261 #
14262
14263
14264 for flag in \
14265 -Wall \
14266 -W \
14267 -Wextra \
14268 -Wcast-align \
14269 -Wdeclaration-after-statement \
14270 -Wendif-labels \
14271 -Werror=format-security \
14272 -Werror=implicit-function-declaration \
14273 -Werror=overflow \
14274 -Wformat-nonliteral \
14275 -Wformat=2 \
14276 -Wimplicit \
14277 -Winit-self \
14278 -Wmissing-declarations \
14279 -Wmissing-format-attribute \
14280 -Wmissing-include-dirs \
14281 -Wmissing-noreturn \
14282 -Wmissing-prototypes \
14283 -Wnested-externs \
14284 -Wno-inline \
14285 -Wno-long-long \
14286 -Wno-missing-field-initializers \
14287 -Wno-overlength-strings \
14288 -Wno-switch-enum \
14289 -Wno-unused-parameter \
14290 -Wno-unused-result \
14291 -Wold-style-definition \
14292 -Wpacked \
14293 -Wpointer-arith \
14294 -Wshadow \
14295 -Wsign-compare \
14296 -Wstrict-aliasing=2 \
14297 -Wstrict-prototypes \
14298 -Wundef \
14299 -Wuninitialized \
14300 -Wvla \
14301 -Wwrite-strings \
14302 -fdata-sections \
14303 -fdiagnostics-show-option \
14304 -ffast-math \
14305 -ffunction-sections \
14306 -fno-common \
14307 -fno-strict-aliasing \
14308 -D_LARGEFILE64_SOURCE \
14309 -D_FILE_OFFSET_BITS=64 \
14310 ; do
14311
14312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
14313 printf %s "checking if $CC supports $flag flag... " >&6; }
14314 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | sed "$as_sed_sh"`; eval test \${$as_var+y}; }
14315 then :
14316 printf %s "(cached) " >&6
14317 else case e in #(
14318 e)
14319 if { as_var=`printf "%s\n" "cc_cv_cflags_$flag" | sed "$as_sed_sh"`; eval test \${$as_var+y}; }
14320 then :
14321 printf %s "(cached) " >&6
14322 else case e in #(
14323 e) ac_save_CFLAGS="$CFLAGS"
14324 CFLAGS="$CFLAGS $flag"
14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14327 int a;
14328 _ACEOF
14329 if ac_fn_c_try_compile "$LINENO"
14330 then :
14331 eval "`printf "%s\n" "cc_cv_cflags_$flag" | sed "$as_sed_sh"`='yes'"
14332 else case e in #(
14333 e) eval "`printf "%s\n" "cc_cv_cflags_$flag" | sed "$as_sed_sh"`='no'" ;;
14334 esac
14335 fi
14336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14337 CFLAGS="$ac_save_CFLAGS"
14338 ;;
14339 esac
14340 fi
14341
14342
14343 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | sed "$as_sed_sh"` = xyes
14344 then :
14345
14346 fi
14347 ;;
14348 esac
14349 fi
14350 eval ac_res=\$`printf "%s\n" "cc_cv_cflags_$flag" | sed "$as_sed_sh"`
14351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14352 printf "%s\n" "$ac_res" >&6; }
14353
14354 if eval test x$`printf "%s\n" "cc_cv_cflags_$flag" | sed "$as_sed_sh"` = xyes
14355 then :
14356 CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag";
14357 fi
14358
14359 done
14360
14361
14362 if test -z "$enable_modules"; then
14363 enable_modules=no
14364 fi
14365 if test -z "$enable_available_modules"; then
14366 enable_available_modules=no
14367 fi
14368
14369
14370
14371
14372
14373
14374
14375
14376 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14377 if test -n "$ac_tool_prefix"; then
14378 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14379 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14381 printf %s "checking for $ac_word... " >&6; }
14382 if test ${ac_cv_path_PKG_CONFIG+y}
14383 then :
14384 printf %s "(cached) " >&6
14385 else case e in #(
14386 e) case $PKG_CONFIG in
14387 [\\/]* | ?:[\\/]*)
14388 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14389 ;;
14390 *)
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14393 do
14394 IFS=$as_save_IFS
14395 case $as_dir in #(((
14396 '') as_dir=./ ;;
14397 */) ;;
14398 *) as_dir=$as_dir/ ;;
14399 esac
14400 for ac_exec_ext in '' $ac_executable_extensions; do
14401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14402 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14404 break 2
14405 fi
14406 done
14407 done
14408 IFS=$as_save_IFS
14409
14410 ;;
14411 esac ;;
14412 esac
14413 fi
14414 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14415 if test -n "$PKG_CONFIG"; then
14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14417 printf "%s\n" "$PKG_CONFIG" >&6; }
14418 else
14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14420 printf "%s\n" "no" >&6; }
14421 fi
14422
14423
14424 fi
14425 if test -z "$ac_cv_path_PKG_CONFIG"; then
14426 ac_pt_PKG_CONFIG=$PKG_CONFIG
14427 # Extract the first word of "pkg-config", so it can be a program name with args.
14428 set dummy pkg-config; ac_word=$2
14429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14430 printf %s "checking for $ac_word... " >&6; }
14431 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14432 then :
14433 printf %s "(cached) " >&6
14434 else case e in #(
14435 e) case $ac_pt_PKG_CONFIG in
14436 [\\/]* | ?:[\\/]*)
14437 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14438 ;;
14439 *)
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14442 do
14443 IFS=$as_save_IFS
14444 case $as_dir in #(((
14445 '') as_dir=./ ;;
14446 */) ;;
14447 *) as_dir=$as_dir/ ;;
14448 esac
14449 for ac_exec_ext in '' $ac_executable_extensions; do
14450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14451 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14453 break 2
14454 fi
14455 done
14456 done
14457 IFS=$as_save_IFS
14458
14459 ;;
14460 esac ;;
14461 esac
14462 fi
14463 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14464 if test -n "$ac_pt_PKG_CONFIG"; then
14465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14466 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14467 else
14468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469 printf "%s\n" "no" >&6; }
14470 fi
14471
14472 if test "x$ac_pt_PKG_CONFIG" = x; then
14473 PKG_CONFIG=""
14474 else
14475 case $cross_compiling:$ac_tool_warned in
14476 yes:)
14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14478 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14479 ac_tool_warned=yes ;;
14480 esac
14481 PKG_CONFIG=$ac_pt_PKG_CONFIG
14482 fi
14483 else
14484 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14485 fi
14486
14487 fi
14488 if test -n "$PKG_CONFIG"; then
14489 _pkg_min_version=0.9.0
14490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14491 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14492 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14494 printf "%s\n" "yes" >&6; }
14495 else
14496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 printf "%s\n" "no" >&6; }
14498 PKG_CONFIG=""
14499 fi
14500 fi
14501 if test -z "$PKG_CONFIG"; then
14502 as_fn_error $? "pkg-config not found" "$LINENO" 5
14503 fi
14504
14505
14506
14507 gtk_doc_requires="gtk-doc >= 1.3"
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
14509 printf %s "checking for gtk-doc... " >&6; }
14510 if test -n "$PKG_CONFIG" && \
14511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
14512 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
14513 ac_status=$?
14514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14515 test $ac_status = 0; }; then
14516 have_gtk_doc=yes
14517 else
14518 have_gtk_doc=no
14519 fi
14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
14521 printf "%s\n" "$have_gtk_doc" >&6; }
14522
14523 if test "$have_gtk_doc" = "no"; then
14524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
14525 You will not be able to create source packages with 'make dist'
14526 because $gtk_doc_requires is not found." >&5
14527 printf "%s\n" "$as_me: WARNING:
14528 You will not be able to create source packages with 'make dist'
14529 because $gtk_doc_requires is not found." >&2;}
14530 fi
14531
14532 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14533 set dummy gtkdoc-check; ac_word=$2
14534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14535 printf %s "checking for $ac_word... " >&6; }
14536 if test ${ac_cv_prog_GTKDOC_CHECK+y}
14537 then :
14538 printf %s "(cached) " >&6
14539 else case e in #(
14540 e) if test -n "$GTKDOC_CHECK"; then
14541 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
14542 else
14543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14544 for as_dir in $PATH
14545 do
14546 IFS=$as_save_IFS
14547 case $as_dir in #(((
14548 '') as_dir=./ ;;
14549 */) ;;
14550 *) as_dir=$as_dir/ ;;
14551 esac
14552 for ac_exec_ext in '' $ac_executable_extensions; do
14553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14554 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
14555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14556 break 2
14557 fi
14558 done
14559 done
14560 IFS=$as_save_IFS
14561
14562 fi ;;
14563 esac
14564 fi
14565 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
14566 if test -n "$GTKDOC_CHECK"; then
14567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
14568 printf "%s\n" "$GTKDOC_CHECK" >&6; }
14569 else
14570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14571 printf "%s\n" "no" >&6; }
14572 fi
14573
14574
14575 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14576 set dummy gtkdoc-check; ac_word=$2
14577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14578 printf %s "checking for $ac_word... " >&6; }
14579 if test ${ac_cv_path_GTKDOC_CHECK_PATH+y}
14580 then :
14581 printf %s "(cached) " >&6
14582 else case e in #(
14583 e) case $GTKDOC_CHECK_PATH in
14584 [\\/]* | ?:[\\/]*)
14585 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
14586 ;;
14587 *)
14588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14589 for as_dir in $PATH
14590 do
14591 IFS=$as_save_IFS
14592 case $as_dir in #(((
14593 '') as_dir=./ ;;
14594 */) ;;
14595 *) as_dir=$as_dir/ ;;
14596 esac
14597 for ac_exec_ext in '' $ac_executable_extensions; do
14598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14599 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir$ac_word$ac_exec_ext"
14600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14601 break 2
14602 fi
14603 done
14604 done
14605 IFS=$as_save_IFS
14606
14607 ;;
14608 esac ;;
14609 esac
14610 fi
14611 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
14612 if test -n "$GTKDOC_CHECK_PATH"; then
14613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
14614 printf "%s\n" "$GTKDOC_CHECK_PATH" >&6; }
14615 else
14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14617 printf "%s\n" "no" >&6; }
14618 fi
14619
14620
14621 for ac_prog in gtkdoc-rebase
14622 do
14623 # Extract the first word of "$ac_prog", so it can be a program name with args.
14624 set dummy $ac_prog; ac_word=$2
14625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14626 printf %s "checking for $ac_word... " >&6; }
14627 if test ${ac_cv_path_GTKDOC_REBASE+y}
14628 then :
14629 printf %s "(cached) " >&6
14630 else case e in #(
14631 e) case $GTKDOC_REBASE in
14632 [\\/]* | ?:[\\/]*)
14633 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
14634 ;;
14635 *)
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 for as_dir in $PATH
14638 do
14639 IFS=$as_save_IFS
14640 case $as_dir in #(((
14641 '') as_dir=./ ;;
14642 */) ;;
14643 *) as_dir=$as_dir/ ;;
14644 esac
14645 for ac_exec_ext in '' $ac_executable_extensions; do
14646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14647 ac_cv_path_GTKDOC_REBASE="$as_dir$ac_word$ac_exec_ext"
14648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14649 break 2
14650 fi
14651 done
14652 done
14653 IFS=$as_save_IFS
14654
14655 ;;
14656 esac ;;
14657 esac
14658 fi
14659 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
14660 if test -n "$GTKDOC_REBASE"; then
14661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
14662 printf "%s\n" "$GTKDOC_REBASE" >&6; }
14663 else
14664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14665 printf "%s\n" "no" >&6; }
14666 fi
14667
14668
14669 test -n "$GTKDOC_REBASE" && break
14670 done
14671 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
14672
14673 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
14674 set dummy gtkdoc-mkpdf; ac_word=$2
14675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14676 printf %s "checking for $ac_word... " >&6; }
14677 if test ${ac_cv_path_GTKDOC_MKPDF+y}
14678 then :
14679 printf %s "(cached) " >&6
14680 else case e in #(
14681 e) case $GTKDOC_MKPDF in
14682 [\\/]* | ?:[\\/]*)
14683 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
14684 ;;
14685 *)
14686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14687 for as_dir in $PATH
14688 do
14689 IFS=$as_save_IFS
14690 case $as_dir in #(((
14691 '') as_dir=./ ;;
14692 */) ;;
14693 *) as_dir=$as_dir/ ;;
14694 esac
14695 for ac_exec_ext in '' $ac_executable_extensions; do
14696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14697 ac_cv_path_GTKDOC_MKPDF="$as_dir$ac_word$ac_exec_ext"
14698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14699 break 2
14700 fi
14701 done
14702 done
14703 IFS=$as_save_IFS
14704
14705 ;;
14706 esac ;;
14707 esac
14708 fi
14709 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
14710 if test -n "$GTKDOC_MKPDF"; then
14711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
14712 printf "%s\n" "$GTKDOC_MKPDF" >&6; }
14713 else
14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14715 printf "%s\n" "no" >&6; }
14716 fi
14717
14718
14719
14720
14721 # Check whether --with-html-dir was given.
14722 if test ${with_html_dir+y}
14723 then :
14724 withval=$with_html_dir;
14725 else case e in #(
14726 e) with_html_dir='${datadir}/gtk-doc/html' ;;
14727 esac
14728 fi
14729
14730 HTML_DIR="$with_html_dir"
14731
14732
14733 # Check whether --enable-gtk-doc was given.
14734 if test ${enable_gtk_doc+y}
14735 then :
14736 enableval=$enable_gtk_doc;
14737 else case e in #(
14738 e) enable_gtk_doc=no ;;
14739 esac
14740 fi
14741
14742
14743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
14744 printf %s "checking whether to build gtk-doc documentation... " >&6; }
14745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
14746 printf "%s\n" "$enable_gtk_doc" >&6; }
14747
14748 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
14749 as_fn_error $? "
14750 You must have $gtk_doc_requires installed to build documentation for
14751 $PACKAGE_NAME. Please install gtk-doc or disable building the
14752 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
14753 fi
14754
14755 if test "x$PACKAGE_NAME" != "xglib"; then
14756
14757 pkg_failed=no
14758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" >&5
14759 printf %s "checking for glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0... " >&6; }
14760
14761 if test -n "$GTKDOC_DEPS_CFLAGS"; then
14762 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
14763 elif test -n "$PKG_CONFIG"; then
14764 if test -n "$PKG_CONFIG" && \
14765 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
14766 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
14767 ac_status=$?
14768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14769 test $ac_status = 0; }; then
14770 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
14771 test "x$?" != "x0" && pkg_failed=yes
14772 else
14773 pkg_failed=yes
14774 fi
14775 else
14776 pkg_failed=untried
14777 fi
14778 if test -n "$GTKDOC_DEPS_LIBS"; then
14779 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
14780 elif test -n "$PKG_CONFIG"; then
14781 if test -n "$PKG_CONFIG" && \
14782 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
14783 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
14784 ac_status=$?
14785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14786 test $ac_status = 0; }; then
14787 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
14788 test "x$?" != "x0" && pkg_failed=yes
14789 else
14790 pkg_failed=yes
14791 fi
14792 else
14793 pkg_failed=untried
14794 fi
14795
14796
14797
14798 if test $pkg_failed = yes; then
14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14800 printf "%s\n" "no" >&6; }
14801
14802 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14803 _pkg_short_errors_supported=yes
14804 else
14805 _pkg_short_errors_supported=no
14806 fi
14807 if test $_pkg_short_errors_supported = yes; then
14808 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
14809 else
14810 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
14811 fi
14812 # Put the nasty error message in config.log where it belongs
14813 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
14814
14815 :
14816 elif test $pkg_failed = untried; then
14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14818 printf "%s\n" "no" >&6; }
14819 :
14820 else
14821 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
14822 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14824 printf "%s\n" "yes" >&6; }
14825
14826 fi
14827 fi
14828
14829 # Check whether --enable-gtk-doc-html was given.
14830 if test ${enable_gtk_doc_html+y}
14831 then :
14832 enableval=$enable_gtk_doc_html;
14833 else case e in #(
14834 e) enable_gtk_doc_html=yes ;;
14835 esac
14836 fi
14837
14838 # Check whether --enable-gtk-doc-pdf was given.
14839 if test ${enable_gtk_doc_pdf+y}
14840 then :
14841 enableval=$enable_gtk_doc_pdf;
14842 else case e in #(
14843 e) enable_gtk_doc_pdf=no ;;
14844 esac
14845 fi
14846
14847
14848 if test -z "$GTKDOC_MKPDF"; then
14849 enable_gtk_doc_pdf=no
14850 fi
14851
14852 if test -z "$AM_DEFAULT_VERBOSITY"; then
14853 AM_DEFAULT_VERBOSITY=1
14854 fi
14855
14856
14857 if test x$have_gtk_doc = xyes; then
14858 HAVE_GTK_DOC_TRUE=
14859 HAVE_GTK_DOC_FALSE='#'
14860 else
14861 HAVE_GTK_DOC_TRUE='#'
14862 HAVE_GTK_DOC_FALSE=
14863 fi
14864
14865 if test x$enable_gtk_doc = xyes; then
14866 ENABLE_GTK_DOC_TRUE=
14867 ENABLE_GTK_DOC_FALSE='#'
14868 else
14869 ENABLE_GTK_DOC_TRUE='#'
14870 ENABLE_GTK_DOC_FALSE=
14871 fi
14872
14873 if test x$enable_gtk_doc_html = xyes; then
14874 GTK_DOC_BUILD_HTML_TRUE=
14875 GTK_DOC_BUILD_HTML_FALSE='#'
14876 else
14877 GTK_DOC_BUILD_HTML_TRUE='#'
14878 GTK_DOC_BUILD_HTML_FALSE=
14879 fi
14880
14881 if test x$enable_gtk_doc_pdf = xyes; then
14882 GTK_DOC_BUILD_PDF_TRUE=
14883 GTK_DOC_BUILD_PDF_FALSE='#'
14884 else
14885 GTK_DOC_BUILD_PDF_TRUE='#'
14886 GTK_DOC_BUILD_PDF_FALSE=
14887 fi
14888
14889 if test -n "$LIBTOOL"; then
14890 GTK_DOC_USE_LIBTOOL_TRUE=
14891 GTK_DOC_USE_LIBTOOL_FALSE='#'
14892 else
14893 GTK_DOC_USE_LIBTOOL_TRUE='#'
14894 GTK_DOC_USE_LIBTOOL_FALSE=
14895 fi
14896
14897 if test -n "$GTKDOC_REBASE"; then
14898 GTK_DOC_USE_REBASE_TRUE=
14899 GTK_DOC_USE_REBASE_FALSE='#'
14900 else
14901 GTK_DOC_USE_REBASE_TRUE='#'
14902 GTK_DOC_USE_REBASE_FALSE=
14903 fi
14904
14905
14906
14907 # Check whether --enable-man was given.
14908 if test ${enable_man+y}
14909 then :
14910 enableval=$enable_man;
14911 else case e in #(
14912 e) enable_man=maybe ;;
14913 esac
14914 fi
14915
14916 if test "$enable_man" != no
14917 then :
14918
14919 # Extract the first word of "xsltproc", so it can be a program name with args.
14920 set dummy xsltproc; ac_word=$2
14921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14922 printf %s "checking for $ac_word... " >&6; }
14923 if test ${ac_cv_path_XSLTPROC+y}
14924 then :
14925 printf %s "(cached) " >&6
14926 else case e in #(
14927 e) case $XSLTPROC in
14928 [\\/]* | ?:[\\/]*)
14929 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
14930 ;;
14931 *)
14932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14933 for as_dir in $PATH
14934 do
14935 IFS=$as_save_IFS
14936 case $as_dir in #(((
14937 '') as_dir=./ ;;
14938 */) ;;
14939 *) as_dir=$as_dir/ ;;
14940 esac
14941 for ac_exec_ext in '' $ac_executable_extensions; do
14942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14943 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
14944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14945 break 2
14946 fi
14947 done
14948 done
14949 IFS=$as_save_IFS
14950
14951 ;;
14952 esac ;;
14953 esac
14954 fi
14955 XSLTPROC=$ac_cv_path_XSLTPROC
14956 if test -n "$XSLTPROC"; then
14957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
14958 printf "%s\n" "$XSLTPROC" >&6; }
14959 else
14960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14961 printf "%s\n" "no" >&6; }
14962 fi
14963
14964
14965 if test -z "$XSLTPROC"
14966 then :
14967
14968 if test "$enable_man" = yes
14969 then :
14970
14971 as_fn_error $? "xsltproc is required for --enable-man" "$LINENO" 5
14972
14973 fi
14974 enable_man=no
14975
14976 fi
14977 enable_man=yes
14978
14979 fi
14980 if test "$enable_man" != no; then
14981 ENABLE_MAN_TRUE=
14982 ENABLE_MAN_FALSE='#'
14983 else
14984 ENABLE_MAN_TRUE='#'
14985 ENABLE_MAN_FALSE=
14986 fi
14987
14988
14989 # Check whether --enable-daemon was given.
14990 if test ${enable_daemon+y}
14991 then :
14992 enableval=$enable_daemon;
14993 else case e in #(
14994 e) enable_daemon=yes ;;
14995 esac
14996 fi
14997
14998 if test "$enable_daemon" != no; then
14999 ENABLE_DAEMON_TRUE=
15000 ENABLE_DAEMON_FALSE='#'
15001 else
15002 ENABLE_DAEMON_TRUE='#'
15003 ENABLE_DAEMON_FALSE=
15004 fi
15005
15006
15007 # GObject-introspection
15008 found_introspection=no
15009
15010
15011
15012 # Check whether --enable-introspection was given.
15013 if test ${enable_introspection+y}
15014 then :
15015 enableval=$enable_introspection;
15016 else case e in #(
15017 e) enable_introspection=auto ;;
15018 esac
15019 fi
15020
15021
15022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
15023 printf %s "checking for gobject-introspection... " >&6; }
15024
15025 case $enable_introspection in #(
15026 no) :
15027 found_introspection="no (disabled, use --enable-introspection to enable)"
15028 ;; #(
15029 yes) :
15030 if test -n "$PKG_CONFIG" && \
15031 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
15032 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
15033 ac_status=$?
15034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15035 test $ac_status = 0; }; then
15036 :
15037 else
15038 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
15039 fi
15040 if test -n "$PKG_CONFIG" && \
15041 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.2\""; } >&5
15042 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.2") 2>&5
15043 ac_status=$?
15044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15045 test $ac_status = 0; }; then
15046 found_introspection=yes
15047 else
15048 as_fn_error $? "You need to have gobject-introspection >= 0.6.2 installed to build udisks" "$LINENO" 5
15049 fi
15050 ;; #(
15051 auto) :
15052 if test -n "$PKG_CONFIG" && \
15053 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.2\""; } >&5
15054 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.2") 2>&5
15055 ac_status=$?
15056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15057 test $ac_status = 0; }; then
15058 found_introspection=yes
15059 else
15060 found_introspection=no
15061 fi
15062 enable_introspection=$found_introspection
15063 ;; #(
15064 *) :
15065 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
15066 ;;
15067 esac
15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
15069 printf "%s\n" "$found_introspection" >&6; }
15070
15071
15072 EXP_VAR=_GI_EXP_DATADIR
15073 FROM_VAR="$datadir"
15074
15075 prefix_save=$prefix
15076 exec_prefix_save=$exec_prefix
15077
15078 if test "x$prefix" = "xNONE"; then
15079 prefix="$ac_default_prefix"
15080 fi
15081 if test "x$exec_prefix" = "xNONE"; then
15082 exec_prefix=$prefix
15083 fi
15084
15085 full_var="$FROM_VAR"
15086 while true; do
15087 new_full_var="`eval echo $full_var`"
15088 if test "x$new_full_var" = "x$full_var"; then break; fi
15089 full_var=$new_full_var
15090 done
15091
15092 full_var=$new_full_var
15093 _GI_EXP_DATADIR="$full_var"
15094
15095
15096 prefix=$prefix_save
15097 exec_prefix=$exec_prefix_save
15098
15099
15100 EXP_VAR=_GI_EXP_LIBDIR
15101 FROM_VAR="$libdir"
15102
15103 prefix_save=$prefix
15104 exec_prefix_save=$exec_prefix
15105
15106 if test "x$prefix" = "xNONE"; then
15107 prefix="$ac_default_prefix"
15108 fi
15109 if test "x$exec_prefix" = "xNONE"; then
15110 exec_prefix=$prefix
15111 fi
15112
15113 full_var="$FROM_VAR"
15114 while true; do
15115 new_full_var="`eval echo $full_var`"
15116 if test "x$new_full_var" = "x$full_var"; then break; fi
15117 full_var=$new_full_var
15118 done
15119
15120 full_var=$new_full_var
15121 _GI_EXP_LIBDIR="$full_var"
15122
15123
15124 prefix=$prefix_save
15125 exec_prefix=$exec_prefix_save
15126
15127
15128 INTROSPECTION_SCANNER=
15129 INTROSPECTION_COMPILER=
15130 INTROSPECTION_GENERATE=
15131 INTROSPECTION_GIRDIR=
15132 INTROSPECTION_TYPELIBDIR=
15133 if test "x$found_introspection" = "xyes"; then
15134 INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
15135 INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
15136 INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
15137 INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=datadir="${_GI_EXP_DATADIR}" --variable=girdir gobject-introspection-1.0`
15138 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --define-variable=libdir="${_GI_EXP_LIBDIR}" --variable=typelibdir gobject-introspection-1.0)"
15139 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
15140 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
15141 INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
15142 fi
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152 if test "x$found_introspection" = "xyes"; then
15153 HAVE_INTROSPECTION_TRUE=
15154 HAVE_INTROSPECTION_FALSE='#'
15155 else
15156 HAVE_INTROSPECTION_TRUE='#'
15157 HAVE_INTROSPECTION_FALSE=
15158 fi
15159
15160
15161
15162
15163 # Behavior
15164 #
15165
15166 fhs_media=no
15167 # Check whether --enable-fhs-media was given.
15168 if test ${enable_fhs_media+y}
15169 then :
15170 enableval=$enable_fhs_media; if test "x$enable_fhs_media" == "xyes"
15171 then :
15172 fhs_media=yes
15173 fi
15174 else case e in #(
15175 e) fhs_media=no ;;
15176 esac
15177 fi
15178
15179 if test "x$fhs_media" = "xyes"; then
15180 HAVE_FHS_MEDIA_TRUE=
15181 HAVE_FHS_MEDIA_FALSE='#'
15182 else
15183 HAVE_FHS_MEDIA_TRUE='#'
15184 HAVE_FHS_MEDIA_FALSE=
15185 fi
15186
15187 if test "x$fhs_media" = "xyes"; then
15188
15189 printf "%s\n" "#define HAVE_FHS_MEDIA 1" >>confdefs.h
15190
15191 fi
15192
15193 # Libraries
15194 #
15195
15196
15197 pkg_failed=no
15198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.68" >&5
15199 printf %s "checking for glib-2.0 >= 2.68... " >&6; }
15200
15201 if test -n "$GLIB_CFLAGS"; then
15202 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
15203 elif test -n "$PKG_CONFIG"; then
15204 if test -n "$PKG_CONFIG" && \
15205 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.68\""; } >&5
15206 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.68") 2>&5
15207 ac_status=$?
15208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15209 test $ac_status = 0; }; then
15210 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.68" 2>/dev/null`
15211 test "x$?" != "x0" && pkg_failed=yes
15212 else
15213 pkg_failed=yes
15214 fi
15215 else
15216 pkg_failed=untried
15217 fi
15218 if test -n "$GLIB_LIBS"; then
15219 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
15220 elif test -n "$PKG_CONFIG"; then
15221 if test -n "$PKG_CONFIG" && \
15222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.68\""; } >&5
15223 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.68") 2>&5
15224 ac_status=$?
15225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15226 test $ac_status = 0; }; then
15227 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.68" 2>/dev/null`
15228 test "x$?" != "x0" && pkg_failed=yes
15229 else
15230 pkg_failed=yes
15231 fi
15232 else
15233 pkg_failed=untried
15234 fi
15235
15236
15237
15238 if test $pkg_failed = yes; then
15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15240 printf "%s\n" "no" >&6; }
15241
15242 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15243 _pkg_short_errors_supported=yes
15244 else
15245 _pkg_short_errors_supported=no
15246 fi
15247 if test $_pkg_short_errors_supported = yes; then
15248 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.68" 2>&1`
15249 else
15250 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.68" 2>&1`
15251 fi
15252 # Put the nasty error message in config.log where it belongs
15253 echo "$GLIB_PKG_ERRORS" >&5
15254
15255 as_fn_error $? "Package requirements (glib-2.0 >= 2.68) were not met:
15256
15257 $GLIB_PKG_ERRORS
15258
15259 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15260 installed software in a non-standard prefix.
15261
15262 Alternatively, you may set the environment variables GLIB_CFLAGS
15263 and GLIB_LIBS to avoid the need to call pkg-config.
15264 See the pkg-config man page for more details." "$LINENO" 5
15265 elif test $pkg_failed = untried; then
15266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15267 printf "%s\n" "no" >&6; }
15268 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15269 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15270 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15271 is in your PATH or set the PKG_CONFIG environment variable to the full
15272 path to pkg-config.
15273
15274 Alternatively, you may set the environment variables GLIB_CFLAGS
15275 and GLIB_LIBS to avoid the need to call pkg-config.
15276 See the pkg-config man page for more details.
15277
15278 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15279 See 'config.log' for more details" "$LINENO" 5; }
15280 else
15281 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
15282 GLIB_LIBS=$pkg_cv_GLIB_LIBS
15283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15284 printf "%s\n" "yes" >&6; }
15285
15286 fi
15287
15288
15289
15290
15291 pkg_failed=no
15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gio-unix-2.0 >= 2.50" >&5
15293 printf %s "checking for gio-unix-2.0 >= 2.50... " >&6; }
15294
15295 if test -n "$GIO_CFLAGS"; then
15296 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
15297 elif test -n "$PKG_CONFIG"; then
15298 if test -n "$PKG_CONFIG" && \
15299 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0 >= 2.50\""; } >&5
15300 ($PKG_CONFIG --exists --print-errors "gio-unix-2.0 >= 2.50") 2>&5
15301 ac_status=$?
15302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15303 test $ac_status = 0; }; then
15304 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-unix-2.0 >= 2.50" 2>/dev/null`
15305 test "x$?" != "x0" && pkg_failed=yes
15306 else
15307 pkg_failed=yes
15308 fi
15309 else
15310 pkg_failed=untried
15311 fi
15312 if test -n "$GIO_LIBS"; then
15313 pkg_cv_GIO_LIBS="$GIO_LIBS"
15314 elif test -n "$PKG_CONFIG"; then
15315 if test -n "$PKG_CONFIG" && \
15316 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0 >= 2.50\""; } >&5
15317 ($PKG_CONFIG --exists --print-errors "gio-unix-2.0 >= 2.50") 2>&5
15318 ac_status=$?
15319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15320 test $ac_status = 0; }; then
15321 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-unix-2.0 >= 2.50" 2>/dev/null`
15322 test "x$?" != "x0" && pkg_failed=yes
15323 else
15324 pkg_failed=yes
15325 fi
15326 else
15327 pkg_failed=untried
15328 fi
15329
15330
15331
15332 if test $pkg_failed = yes; then
15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15334 printf "%s\n" "no" >&6; }
15335
15336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15337 _pkg_short_errors_supported=yes
15338 else
15339 _pkg_short_errors_supported=no
15340 fi
15341 if test $_pkg_short_errors_supported = yes; then
15342 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-unix-2.0 >= 2.50" 2>&1`
15343 else
15344 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-unix-2.0 >= 2.50" 2>&1`
15345 fi
15346 # Put the nasty error message in config.log where it belongs
15347 echo "$GIO_PKG_ERRORS" >&5
15348
15349 as_fn_error $? "Package requirements (gio-unix-2.0 >= 2.50) were not met:
15350
15351 $GIO_PKG_ERRORS
15352
15353 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15354 installed software in a non-standard prefix.
15355
15356 Alternatively, you may set the environment variables GIO_CFLAGS
15357 and GIO_LIBS to avoid the need to call pkg-config.
15358 See the pkg-config man page for more details." "$LINENO" 5
15359 elif test $pkg_failed = untried; then
15360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15361 printf "%s\n" "no" >&6; }
15362 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15363 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15364 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15365 is in your PATH or set the PKG_CONFIG environment variable to the full
15366 path to pkg-config.
15367
15368 Alternatively, you may set the environment variables GIO_CFLAGS
15369 and GIO_LIBS to avoid the need to call pkg-config.
15370 See the pkg-config man page for more details.
15371
15372 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15373 See 'config.log' for more details" "$LINENO" 5; }
15374 else
15375 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
15376 GIO_LIBS=$pkg_cv_GIO_LIBS
15377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15378 printf "%s\n" "yes" >&6; }
15379
15380 fi
15381
15382
15383
15384
15385 pkg_failed=no
15386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for polkit-gobject-1 >= 0.102" >&5
15387 printf %s "checking for polkit-gobject-1 >= 0.102... " >&6; }
15388
15389 if test -n "$POLKIT_GOBJECT_1_CFLAGS"; then
15390 pkg_cv_POLKIT_GOBJECT_1_CFLAGS="$POLKIT_GOBJECT_1_CFLAGS"
15391 elif test -n "$PKG_CONFIG"; then
15392 if test -n "$PKG_CONFIG" && \
15393 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"polkit-gobject-1 >= 0.102\""; } >&5
15394 ($PKG_CONFIG --exists --print-errors "polkit-gobject-1 >= 0.102") 2>&5
15395 ac_status=$?
15396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15397 test $ac_status = 0; }; then
15398 pkg_cv_POLKIT_GOBJECT_1_CFLAGS=`$PKG_CONFIG --cflags "polkit-gobject-1 >= 0.102" 2>/dev/null`
15399 test "x$?" != "x0" && pkg_failed=yes
15400 else
15401 pkg_failed=yes
15402 fi
15403 else
15404 pkg_failed=untried
15405 fi
15406 if test -n "$POLKIT_GOBJECT_1_LIBS"; then
15407 pkg_cv_POLKIT_GOBJECT_1_LIBS="$POLKIT_GOBJECT_1_LIBS"
15408 elif test -n "$PKG_CONFIG"; then
15409 if test -n "$PKG_CONFIG" && \
15410 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"polkit-gobject-1 >= 0.102\""; } >&5
15411 ($PKG_CONFIG --exists --print-errors "polkit-gobject-1 >= 0.102") 2>&5
15412 ac_status=$?
15413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15414 test $ac_status = 0; }; then
15415 pkg_cv_POLKIT_GOBJECT_1_LIBS=`$PKG_CONFIG --libs "polkit-gobject-1 >= 0.102" 2>/dev/null`
15416 test "x$?" != "x0" && pkg_failed=yes
15417 else
15418 pkg_failed=yes
15419 fi
15420 else
15421 pkg_failed=untried
15422 fi
15423
15424
15425
15426 if test $pkg_failed = yes; then
15427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15428 printf "%s\n" "no" >&6; }
15429
15430 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15431 _pkg_short_errors_supported=yes
15432 else
15433 _pkg_short_errors_supported=no
15434 fi
15435 if test $_pkg_short_errors_supported = yes; then
15436 POLKIT_GOBJECT_1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "polkit-gobject-1 >= 0.102" 2>&1`
15437 else
15438 POLKIT_GOBJECT_1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "polkit-gobject-1 >= 0.102" 2>&1`
15439 fi
15440 # Put the nasty error message in config.log where it belongs
15441 echo "$POLKIT_GOBJECT_1_PKG_ERRORS" >&5
15442
15443 as_fn_error $? "Package requirements (polkit-gobject-1 >= 0.102) were not met:
15444
15445 $POLKIT_GOBJECT_1_PKG_ERRORS
15446
15447 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15448 installed software in a non-standard prefix.
15449
15450 Alternatively, you may set the environment variables POLKIT_GOBJECT_1_CFLAGS
15451 and POLKIT_GOBJECT_1_LIBS to avoid the need to call pkg-config.
15452 See the pkg-config man page for more details." "$LINENO" 5
15453 elif test $pkg_failed = untried; then
15454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15455 printf "%s\n" "no" >&6; }
15456 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15457 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15458 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15459 is in your PATH or set the PKG_CONFIG environment variable to the full
15460 path to pkg-config.
15461
15462 Alternatively, you may set the environment variables POLKIT_GOBJECT_1_CFLAGS
15463 and POLKIT_GOBJECT_1_LIBS to avoid the need to call pkg-config.
15464 See the pkg-config man page for more details.
15465
15466 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15467 See 'config.log' for more details" "$LINENO" 5; }
15468 else
15469 POLKIT_GOBJECT_1_CFLAGS=$pkg_cv_POLKIT_GOBJECT_1_CFLAGS
15470 POLKIT_GOBJECT_1_LIBS=$pkg_cv_POLKIT_GOBJECT_1_LIBS
15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15472 printf "%s\n" "yes" >&6; }
15473
15474 fi
15475
15476
15477
15478
15479 pkg_failed=no
15480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for polkit-agent-1 >= 0.102" >&5
15481 printf %s "checking for polkit-agent-1 >= 0.102... " >&6; }
15482
15483 if test -n "$POLKIT_AGENT_1_CFLAGS"; then
15484 pkg_cv_POLKIT_AGENT_1_CFLAGS="$POLKIT_AGENT_1_CFLAGS"
15485 elif test -n "$PKG_CONFIG"; then
15486 if test -n "$PKG_CONFIG" && \
15487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"polkit-agent-1 >= 0.102\""; } >&5
15488 ($PKG_CONFIG --exists --print-errors "polkit-agent-1 >= 0.102") 2>&5
15489 ac_status=$?
15490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15491 test $ac_status = 0; }; then
15492 pkg_cv_POLKIT_AGENT_1_CFLAGS=`$PKG_CONFIG --cflags "polkit-agent-1 >= 0.102" 2>/dev/null`
15493 test "x$?" != "x0" && pkg_failed=yes
15494 else
15495 pkg_failed=yes
15496 fi
15497 else
15498 pkg_failed=untried
15499 fi
15500 if test -n "$POLKIT_AGENT_1_LIBS"; then
15501 pkg_cv_POLKIT_AGENT_1_LIBS="$POLKIT_AGENT_1_LIBS"
15502 elif test -n "$PKG_CONFIG"; then
15503 if test -n "$PKG_CONFIG" && \
15504 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"polkit-agent-1 >= 0.102\""; } >&5
15505 ($PKG_CONFIG --exists --print-errors "polkit-agent-1 >= 0.102") 2>&5
15506 ac_status=$?
15507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15508 test $ac_status = 0; }; then
15509 pkg_cv_POLKIT_AGENT_1_LIBS=`$PKG_CONFIG --libs "polkit-agent-1 >= 0.102" 2>/dev/null`
15510 test "x$?" != "x0" && pkg_failed=yes
15511 else
15512 pkg_failed=yes
15513 fi
15514 else
15515 pkg_failed=untried
15516 fi
15517
15518
15519
15520 if test $pkg_failed = yes; then
15521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15522 printf "%s\n" "no" >&6; }
15523
15524 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15525 _pkg_short_errors_supported=yes
15526 else
15527 _pkg_short_errors_supported=no
15528 fi
15529 if test $_pkg_short_errors_supported = yes; then
15530 POLKIT_AGENT_1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "polkit-agent-1 >= 0.102" 2>&1`
15531 else
15532 POLKIT_AGENT_1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "polkit-agent-1 >= 0.102" 2>&1`
15533 fi
15534 # Put the nasty error message in config.log where it belongs
15535 echo "$POLKIT_AGENT_1_PKG_ERRORS" >&5
15536
15537 as_fn_error $? "Package requirements (polkit-agent-1 >= 0.102) were not met:
15538
15539 $POLKIT_AGENT_1_PKG_ERRORS
15540
15541 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15542 installed software in a non-standard prefix.
15543
15544 Alternatively, you may set the environment variables POLKIT_AGENT_1_CFLAGS
15545 and POLKIT_AGENT_1_LIBS to avoid the need to call pkg-config.
15546 See the pkg-config man page for more details." "$LINENO" 5
15547 elif test $pkg_failed = untried; then
15548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15549 printf "%s\n" "no" >&6; }
15550 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15551 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15552 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15553 is in your PATH or set the PKG_CONFIG environment variable to the full
15554 path to pkg-config.
15555
15556 Alternatively, you may set the environment variables POLKIT_AGENT_1_CFLAGS
15557 and POLKIT_AGENT_1_LIBS to avoid the need to call pkg-config.
15558 See the pkg-config man page for more details.
15559
15560 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15561 See 'config.log' for more details" "$LINENO" 5; }
15562 else
15563 POLKIT_AGENT_1_CFLAGS=$pkg_cv_POLKIT_AGENT_1_CFLAGS
15564 POLKIT_AGENT_1_LIBS=$pkg_cv_POLKIT_AGENT_1_LIBS
15565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15566 printf "%s\n" "yes" >&6; }
15567
15568 fi
15569
15570
15571
15572 if test "x$enable_daemon" = "xyes"; then
15573
15574 pkg_failed=no
15575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gudev-1.0 >= 165" >&5
15576 printf %s "checking for gudev-1.0 >= 165... " >&6; }
15577
15578 if test -n "$GUDEV_CFLAGS"; then
15579 pkg_cv_GUDEV_CFLAGS="$GUDEV_CFLAGS"
15580 elif test -n "$PKG_CONFIG"; then
15581 if test -n "$PKG_CONFIG" && \
15582 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0 >= 165\""; } >&5
15583 ($PKG_CONFIG --exists --print-errors "gudev-1.0 >= 165") 2>&5
15584 ac_status=$?
15585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15586 test $ac_status = 0; }; then
15587 pkg_cv_GUDEV_CFLAGS=`$PKG_CONFIG --cflags "gudev-1.0 >= 165" 2>/dev/null`
15588 test "x$?" != "x0" && pkg_failed=yes
15589 else
15590 pkg_failed=yes
15591 fi
15592 else
15593 pkg_failed=untried
15594 fi
15595 if test -n "$GUDEV_LIBS"; then
15596 pkg_cv_GUDEV_LIBS="$GUDEV_LIBS"
15597 elif test -n "$PKG_CONFIG"; then
15598 if test -n "$PKG_CONFIG" && \
15599 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0 >= 165\""; } >&5
15600 ($PKG_CONFIG --exists --print-errors "gudev-1.0 >= 165") 2>&5
15601 ac_status=$?
15602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15603 test $ac_status = 0; }; then
15604 pkg_cv_GUDEV_LIBS=`$PKG_CONFIG --libs "gudev-1.0 >= 165" 2>/dev/null`
15605 test "x$?" != "x0" && pkg_failed=yes
15606 else
15607 pkg_failed=yes
15608 fi
15609 else
15610 pkg_failed=untried
15611 fi
15612
15613
15614
15615 if test $pkg_failed = yes; then
15616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617 printf "%s\n" "no" >&6; }
15618
15619 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15620 _pkg_short_errors_supported=yes
15621 else
15622 _pkg_short_errors_supported=no
15623 fi
15624 if test $_pkg_short_errors_supported = yes; then
15625 GUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gudev-1.0 >= 165" 2>&1`
15626 else
15627 GUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gudev-1.0 >= 165" 2>&1`
15628 fi
15629 # Put the nasty error message in config.log where it belongs
15630 echo "$GUDEV_PKG_ERRORS" >&5
15631
15632 as_fn_error $? "Package requirements (gudev-1.0 >= 165) were not met:
15633
15634 $GUDEV_PKG_ERRORS
15635
15636 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15637 installed software in a non-standard prefix.
15638
15639 Alternatively, you may set the environment variables GUDEV_CFLAGS
15640 and GUDEV_LIBS to avoid the need to call pkg-config.
15641 See the pkg-config man page for more details." "$LINENO" 5
15642 elif test $pkg_failed = untried; then
15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15644 printf "%s\n" "no" >&6; }
15645 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15646 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15647 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15648 is in your PATH or set the PKG_CONFIG environment variable to the full
15649 path to pkg-config.
15650
15651 Alternatively, you may set the environment variables GUDEV_CFLAGS
15652 and GUDEV_LIBS to avoid the need to call pkg-config.
15653 See the pkg-config man page for more details.
15654
15655 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15656 See 'config.log' for more details" "$LINENO" 5; }
15657 else
15658 GUDEV_CFLAGS=$pkg_cv_GUDEV_CFLAGS
15659 GUDEV_LIBS=$pkg_cv_GUDEV_LIBS
15660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15661 printf "%s\n" "yes" >&6; }
15662
15663 fi
15664
15665
15666
15667
15668 pkg_failed=no
15669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev >= 257" >&5
15670 printf %s "checking for udev >= 257... " >&6; }
15671
15672 if test -n "$UDEV_CFLAGS"; then
15673 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
15674 elif test -n "$PKG_CONFIG"; then
15675 if test -n "$PKG_CONFIG" && \
15676 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev >= 257\""; } >&5
15677 ($PKG_CONFIG --exists --print-errors "udev >= 257") 2>&5
15678 ac_status=$?
15679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15680 test $ac_status = 0; }; then
15681 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "udev >= 257" 2>/dev/null`
15682 test "x$?" != "x0" && pkg_failed=yes
15683 else
15684 pkg_failed=yes
15685 fi
15686 else
15687 pkg_failed=untried
15688 fi
15689 if test -n "$UDEV_LIBS"; then
15690 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
15691 elif test -n "$PKG_CONFIG"; then
15692 if test -n "$PKG_CONFIG" && \
15693 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev >= 257\""; } >&5
15694 ($PKG_CONFIG --exists --print-errors "udev >= 257") 2>&5
15695 ac_status=$?
15696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15697 test $ac_status = 0; }; then
15698 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "udev >= 257" 2>/dev/null`
15699 test "x$?" != "x0" && pkg_failed=yes
15700 else
15701 pkg_failed=yes
15702 fi
15703 else
15704 pkg_failed=untried
15705 fi
15706
15707
15708
15709 if test $pkg_failed = yes; then
15710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15711 printf "%s\n" "no" >&6; }
15712
15713 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15714 _pkg_short_errors_supported=yes
15715 else
15716 _pkg_short_errors_supported=no
15717 fi
15718 if test $_pkg_short_errors_supported = yes; then
15719 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev >= 257" 2>&1`
15720 else
15721 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev >= 257" 2>&1`
15722 fi
15723 # Put the nasty error message in config.log where it belongs
15724 echo "$UDEV_PKG_ERRORS" >&5
15725
15726 have_udev_257=no
15727 elif test $pkg_failed = untried; then
15728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15729 printf "%s\n" "no" >&6; }
15730 have_udev_257=no
15731 else
15732 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
15733 UDEV_LIBS=$pkg_cv_UDEV_LIBS
15734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15735 printf "%s\n" "yes" >&6; }
15736 have_udev_257=yes
15737 fi
15738 if test "x$have_udev_257" = "xyes"; then
15739
15740 printf "%s\n" "#define HAVE_UDEV_257 1" >>confdefs.h
15741
15742 fi
15743
15744
15745
15746 pkg_failed=no
15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmodule-2.0" >&5
15748 printf %s "checking for gmodule-2.0... " >&6; }
15749
15750 if test -n "$GMODULE_CFLAGS"; then
15751 pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
15752 elif test -n "$PKG_CONFIG"; then
15753 if test -n "$PKG_CONFIG" && \
15754 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
15755 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
15756 ac_status=$?
15757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15758 test $ac_status = 0; }; then
15759 pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
15760 test "x$?" != "x0" && pkg_failed=yes
15761 else
15762 pkg_failed=yes
15763 fi
15764 else
15765 pkg_failed=untried
15766 fi
15767 if test -n "$GMODULE_LIBS"; then
15768 pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
15769 elif test -n "$PKG_CONFIG"; then
15770 if test -n "$PKG_CONFIG" && \
15771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
15772 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
15773 ac_status=$?
15774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15775 test $ac_status = 0; }; then
15776 pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
15777 test "x$?" != "x0" && pkg_failed=yes
15778 else
15779 pkg_failed=yes
15780 fi
15781 else
15782 pkg_failed=untried
15783 fi
15784
15785
15786
15787 if test $pkg_failed = yes; then
15788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15789 printf "%s\n" "no" >&6; }
15790
15791 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15792 _pkg_short_errors_supported=yes
15793 else
15794 _pkg_short_errors_supported=no
15795 fi
15796 if test $_pkg_short_errors_supported = yes; then
15797 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1`
15798 else
15799 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1`
15800 fi
15801 # Put the nasty error message in config.log where it belongs
15802 echo "$GMODULE_PKG_ERRORS" >&5
15803
15804 as_fn_error $? "Package requirements (gmodule-2.0) were not met:
15805
15806 $GMODULE_PKG_ERRORS
15807
15808 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15809 installed software in a non-standard prefix.
15810
15811 Alternatively, you may set the environment variables GMODULE_CFLAGS
15812 and GMODULE_LIBS to avoid the need to call pkg-config.
15813 See the pkg-config man page for more details." "$LINENO" 5
15814 elif test $pkg_failed = untried; then
15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 printf "%s\n" "no" >&6; }
15817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15818 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15819 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15820 is in your PATH or set the PKG_CONFIG environment variable to the full
15821 path to pkg-config.
15822
15823 Alternatively, you may set the environment variables GMODULE_CFLAGS
15824 and GMODULE_LIBS to avoid the need to call pkg-config.
15825 See the pkg-config man page for more details.
15826
15827 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15828 See 'config.log' for more details" "$LINENO" 5; }
15829 else
15830 GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
15831 GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
15832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15833 printf "%s\n" "yes" >&6; }
15834
15835 fi
15836
15837
15838
15839
15840 pkg_failed=no
15841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blockdev >= 3.4" >&5
15842 printf %s "checking for blockdev >= 3.4... " >&6; }
15843
15844 if test -n "$BLOCKDEV_CFLAGS"; then
15845 pkg_cv_BLOCKDEV_CFLAGS="$BLOCKDEV_CFLAGS"
15846 elif test -n "$PKG_CONFIG"; then
15847 if test -n "$PKG_CONFIG" && \
15848 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blockdev >= 3.4\""; } >&5
15849 ($PKG_CONFIG --exists --print-errors "blockdev >= 3.4") 2>&5
15850 ac_status=$?
15851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15852 test $ac_status = 0; }; then
15853 pkg_cv_BLOCKDEV_CFLAGS=`$PKG_CONFIG --cflags "blockdev >= 3.4" 2>/dev/null`
15854 test "x$?" != "x0" && pkg_failed=yes
15855 else
15856 pkg_failed=yes
15857 fi
15858 else
15859 pkg_failed=untried
15860 fi
15861 if test -n "$BLOCKDEV_LIBS"; then
15862 pkg_cv_BLOCKDEV_LIBS="$BLOCKDEV_LIBS"
15863 elif test -n "$PKG_CONFIG"; then
15864 if test -n "$PKG_CONFIG" && \
15865 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blockdev >= 3.4\""; } >&5
15866 ($PKG_CONFIG --exists --print-errors "blockdev >= 3.4") 2>&5
15867 ac_status=$?
15868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15869 test $ac_status = 0; }; then
15870 pkg_cv_BLOCKDEV_LIBS=`$PKG_CONFIG --libs "blockdev >= 3.4" 2>/dev/null`
15871 test "x$?" != "x0" && pkg_failed=yes
15872 else
15873 pkg_failed=yes
15874 fi
15875 else
15876 pkg_failed=untried
15877 fi
15878
15879
15880
15881 if test $pkg_failed = yes; then
15882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883 printf "%s\n" "no" >&6; }
15884
15885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15886 _pkg_short_errors_supported=yes
15887 else
15888 _pkg_short_errors_supported=no
15889 fi
15890 if test $_pkg_short_errors_supported = yes; then
15891 BLOCKDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blockdev >= 3.4" 2>&1`
15892 else
15893 BLOCKDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blockdev >= 3.4" 2>&1`
15894 fi
15895 # Put the nasty error message in config.log where it belongs
15896 echo "$BLOCKDEV_PKG_ERRORS" >&5
15897
15898 as_fn_error $? "Package requirements (blockdev >= 3.4) were not met:
15899
15900 $BLOCKDEV_PKG_ERRORS
15901
15902 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15903 installed software in a non-standard prefix.
15904
15905 Alternatively, you may set the environment variables BLOCKDEV_CFLAGS
15906 and BLOCKDEV_LIBS to avoid the need to call pkg-config.
15907 See the pkg-config man page for more details." "$LINENO" 5
15908 elif test $pkg_failed = untried; then
15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15910 printf "%s\n" "no" >&6; }
15911 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15912 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15913 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15914 is in your PATH or set the PKG_CONFIG environment variable to the full
15915 path to pkg-config.
15916
15917 Alternatively, you may set the environment variables BLOCKDEV_CFLAGS
15918 and BLOCKDEV_LIBS to avoid the need to call pkg-config.
15919 See the pkg-config man page for more details.
15920
15921 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15922 See 'config.log' for more details" "$LINENO" 5; }
15923 else
15924 BLOCKDEV_CFLAGS=$pkg_cv_BLOCKDEV_CFLAGS
15925 BLOCKDEV_LIBS=$pkg_cv_BLOCKDEV_LIBS
15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15927 printf "%s\n" "yes" >&6; }
15928
15929 fi
15930
15931
15932
15933
15934 pkg_failed=no
15935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid" >&5
15936 printf %s "checking for blkid... " >&6; }
15937
15938 if test -n "$LIBBLKID_CFLAGS"; then
15939 pkg_cv_LIBBLKID_CFLAGS="$LIBBLKID_CFLAGS"
15940 elif test -n "$PKG_CONFIG"; then
15941 if test -n "$PKG_CONFIG" && \
15942 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
15943 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
15944 ac_status=$?
15945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15946 test $ac_status = 0; }; then
15947 pkg_cv_LIBBLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid" 2>/dev/null`
15948 test "x$?" != "x0" && pkg_failed=yes
15949 else
15950 pkg_failed=yes
15951 fi
15952 else
15953 pkg_failed=untried
15954 fi
15955 if test -n "$LIBBLKID_LIBS"; then
15956 pkg_cv_LIBBLKID_LIBS="$LIBBLKID_LIBS"
15957 elif test -n "$PKG_CONFIG"; then
15958 if test -n "$PKG_CONFIG" && \
15959 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
15960 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
15961 ac_status=$?
15962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15963 test $ac_status = 0; }; then
15964 pkg_cv_LIBBLKID_LIBS=`$PKG_CONFIG --libs "blkid" 2>/dev/null`
15965 test "x$?" != "x0" && pkg_failed=yes
15966 else
15967 pkg_failed=yes
15968 fi
15969 else
15970 pkg_failed=untried
15971 fi
15972
15973
15974
15975 if test $pkg_failed = yes; then
15976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15977 printf "%s\n" "no" >&6; }
15978
15979 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15980 _pkg_short_errors_supported=yes
15981 else
15982 _pkg_short_errors_supported=no
15983 fi
15984 if test $_pkg_short_errors_supported = yes; then
15985 LIBBLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid" 2>&1`
15986 else
15987 LIBBLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid" 2>&1`
15988 fi
15989 # Put the nasty error message in config.log where it belongs
15990 echo "$LIBBLKID_PKG_ERRORS" >&5
15991
15992 as_fn_error $? "Package requirements (blkid) were not met:
15993
15994 $LIBBLKID_PKG_ERRORS
15995
15996 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15997 installed software in a non-standard prefix.
15998
15999 Alternatively, you may set the environment variables LIBBLKID_CFLAGS
16000 and LIBBLKID_LIBS to avoid the need to call pkg-config.
16001 See the pkg-config man page for more details." "$LINENO" 5
16002 elif test $pkg_failed = untried; then
16003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16004 printf "%s\n" "no" >&6; }
16005 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16006 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16007 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16008 is in your PATH or set the PKG_CONFIG environment variable to the full
16009 path to pkg-config.
16010
16011 Alternatively, you may set the environment variables LIBBLKID_CFLAGS
16012 and LIBBLKID_LIBS to avoid the need to call pkg-config.
16013 See the pkg-config man page for more details.
16014
16015 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16016 See 'config.log' for more details" "$LINENO" 5; }
16017 else
16018 LIBBLKID_CFLAGS=$pkg_cv_LIBBLKID_CFLAGS
16019 LIBBLKID_LIBS=$pkg_cv_LIBBLKID_LIBS
16020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16021 printf "%s\n" "yes" >&6; }
16022
16023 fi
16024
16025
16026
16027
16028 pkg_failed=no
16029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount >= 2.30" >&5
16030 printf %s "checking for mount >= 2.30... " >&6; }
16031
16032 if test -n "$LIBMOUNT_CFLAGS"; then
16033 pkg_cv_LIBMOUNT_CFLAGS="$LIBMOUNT_CFLAGS"
16034 elif test -n "$PKG_CONFIG"; then
16035 if test -n "$PKG_CONFIG" && \
16036 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mount >= 2.30\""; } >&5
16037 ($PKG_CONFIG --exists --print-errors "mount >= 2.30") 2>&5
16038 ac_status=$?
16039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16040 test $ac_status = 0; }; then
16041 pkg_cv_LIBMOUNT_CFLAGS=`$PKG_CONFIG --cflags "mount >= 2.30" 2>/dev/null`
16042 test "x$?" != "x0" && pkg_failed=yes
16043 else
16044 pkg_failed=yes
16045 fi
16046 else
16047 pkg_failed=untried
16048 fi
16049 if test -n "$LIBMOUNT_LIBS"; then
16050 pkg_cv_LIBMOUNT_LIBS="$LIBMOUNT_LIBS"
16051 elif test -n "$PKG_CONFIG"; then
16052 if test -n "$PKG_CONFIG" && \
16053 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mount >= 2.30\""; } >&5
16054 ($PKG_CONFIG --exists --print-errors "mount >= 2.30") 2>&5
16055 ac_status=$?
16056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16057 test $ac_status = 0; }; then
16058 pkg_cv_LIBMOUNT_LIBS=`$PKG_CONFIG --libs "mount >= 2.30" 2>/dev/null`
16059 test "x$?" != "x0" && pkg_failed=yes
16060 else
16061 pkg_failed=yes
16062 fi
16063 else
16064 pkg_failed=untried
16065 fi
16066
16067
16068
16069 if test $pkg_failed = yes; then
16070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16071 printf "%s\n" "no" >&6; }
16072
16073 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16074 _pkg_short_errors_supported=yes
16075 else
16076 _pkg_short_errors_supported=no
16077 fi
16078 if test $_pkg_short_errors_supported = yes; then
16079 LIBMOUNT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mount >= 2.30" 2>&1`
16080 else
16081 LIBMOUNT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mount >= 2.30" 2>&1`
16082 fi
16083 # Put the nasty error message in config.log where it belongs
16084 echo "$LIBMOUNT_PKG_ERRORS" >&5
16085
16086 as_fn_error $? "Package requirements (mount >= 2.30) were not met:
16087
16088 $LIBMOUNT_PKG_ERRORS
16089
16090 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16091 installed software in a non-standard prefix.
16092
16093 Alternatively, you may set the environment variables LIBMOUNT_CFLAGS
16094 and LIBMOUNT_LIBS to avoid the need to call pkg-config.
16095 See the pkg-config man page for more details." "$LINENO" 5
16096 elif test $pkg_failed = untried; then
16097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16098 printf "%s\n" "no" >&6; }
16099 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16100 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16101 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16102 is in your PATH or set the PKG_CONFIG environment variable to the full
16103 path to pkg-config.
16104
16105 Alternatively, you may set the environment variables LIBMOUNT_CFLAGS
16106 and LIBMOUNT_LIBS to avoid the need to call pkg-config.
16107 See the pkg-config man page for more details.
16108
16109 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16110 See 'config.log' for more details" "$LINENO" 5; }
16111 else
16112 LIBMOUNT_CFLAGS=$pkg_cv_LIBMOUNT_CFLAGS
16113 LIBMOUNT_LIBS=$pkg_cv_LIBMOUNT_LIBS
16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16115 printf "%s\n" "yes" >&6; }
16116
16117 fi
16118
16119
16120
16121
16122 pkg_failed=no
16123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid" >&5
16124 printf %s "checking for uuid... " >&6; }
16125
16126 if test -n "$LIBUUID_CFLAGS"; then
16127 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS"
16128 elif test -n "$PKG_CONFIG"; then
16129 if test -n "$PKG_CONFIG" && \
16130 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
16131 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
16132 ac_status=$?
16133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16134 test $ac_status = 0; }; then
16135 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
16136 test "x$?" != "x0" && pkg_failed=yes
16137 else
16138 pkg_failed=yes
16139 fi
16140 else
16141 pkg_failed=untried
16142 fi
16143 if test -n "$LIBUUID_LIBS"; then
16144 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS"
16145 elif test -n "$PKG_CONFIG"; then
16146 if test -n "$PKG_CONFIG" && \
16147 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
16148 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
16149 ac_status=$?
16150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16151 test $ac_status = 0; }; then
16152 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
16153 test "x$?" != "x0" && pkg_failed=yes
16154 else
16155 pkg_failed=yes
16156 fi
16157 else
16158 pkg_failed=untried
16159 fi
16160
16161
16162
16163 if test $pkg_failed = yes; then
16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16165 printf "%s\n" "no" >&6; }
16166
16167 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16168 _pkg_short_errors_supported=yes
16169 else
16170 _pkg_short_errors_supported=no
16171 fi
16172 if test $_pkg_short_errors_supported = yes; then
16173 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
16174 else
16175 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
16176 fi
16177 # Put the nasty error message in config.log where it belongs
16178 echo "$LIBUUID_PKG_ERRORS" >&5
16179
16180 as_fn_error $? "Package requirements (uuid) were not met:
16181
16182 $LIBUUID_PKG_ERRORS
16183
16184 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16185 installed software in a non-standard prefix.
16186
16187 Alternatively, you may set the environment variables LIBUUID_CFLAGS
16188 and LIBUUID_LIBS to avoid the need to call pkg-config.
16189 See the pkg-config man page for more details." "$LINENO" 5
16190 elif test $pkg_failed = untried; then
16191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192 printf "%s\n" "no" >&6; }
16193 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16194 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16195 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16196 is in your PATH or set the PKG_CONFIG environment variable to the full
16197 path to pkg-config.
16198
16199 Alternatively, you may set the environment variables LIBUUID_CFLAGS
16200 and LIBUUID_LIBS to avoid the need to call pkg-config.
16201 See the pkg-config man page for more details.
16202
16203 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16204 See 'config.log' for more details" "$LINENO" 5; }
16205 else
16206 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS
16207 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS
16208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16209 printf "%s\n" "yes" >&6; }
16210
16211 fi
16212
16213
16214
16215 # UUID_STR_LEN is only available since util-linux-2.31
16216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16217 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16218 if test ${ac_cv_c_undeclared_builtin_options+y}
16219 then :
16220 printf %s "(cached) " >&6
16221 else case e in #(
16222 e) ac_save_CFLAGS=$CFLAGS
16223 ac_cv_c_undeclared_builtin_options='cannot detect'
16224 for ac_arg in '' -fno-builtin; do
16225 CFLAGS="$ac_save_CFLAGS $ac_arg"
16226 # This test program should *not* compile successfully.
16227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h. */
16229
16230 int
16231 main (void)
16232 {
16233 (void) strchr;
16234 ;
16235 return 0;
16236 }
16237 _ACEOF
16238 if ac_fn_c_try_compile "$LINENO"
16239 then :
16240
16241 else case e in #(
16242 e) # This test program should compile successfully.
16243 # No library function is consistently available on
16244 # freestanding implementations, so test against a dummy
16245 # declaration. Include always-available headers on the
16246 # off chance that they somehow elicit warnings.
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249 #include <float.h>
16250 #include <limits.h>
16251 #include <stdarg.h>
16252 #include <stddef.h>
16253 extern void ac_decl (int, char *);
16254
16255 int
16256 main (void)
16257 {
16258 (void) ac_decl (0, (char *) 0);
16259 (void) ac_decl;
16260
16261 ;
16262 return 0;
16263 }
16264 _ACEOF
16265 if ac_fn_c_try_compile "$LINENO"
16266 then :
16267 if test x"$ac_arg" = x
16268 then :
16269 ac_cv_c_undeclared_builtin_options='none needed'
16270 else case e in #(
16271 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
16272 esac
16273 fi
16274 break
16275 fi
16276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16277 esac
16278 fi
16279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16280 done
16281 CFLAGS=$ac_save_CFLAGS
16282 ;;
16283 esac
16284 fi
16285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16286 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
16287 case $ac_cv_c_undeclared_builtin_options in #(
16288 'cannot detect') :
16289 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16290 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16291 as_fn_error $? "cannot make $CC report undeclared builtins
16292 See 'config.log' for more details" "$LINENO" 5; } ;; #(
16293 'none needed') :
16294 ac_c_undeclared_builtin_options='' ;; #(
16295 *) :
16296 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
16297 esac
16298
16299 ac_fn_check_decl "$LINENO" "UUID_STR_LEN" "ac_cv_have_decl_UUID_STR_LEN" "#include <uuid/uuid.h>
16300 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16301 if test "x$ac_cv_have_decl_UUID_STR_LEN" = xyes
16302 then :
16303
16304 else case e in #(
16305 e)
16306 printf "%s\n" "#define UUID_STR_LEN 37" >>confdefs.h
16307 ;;
16308 esac
16309 fi
16310
16311
16312 pkg_failed=no
16313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd >= 209" >&5
16314 printf %s "checking for libsystemd >= 209... " >&6; }
16315
16316 if test -n "$LIBSYSTEMD_LOGIN_CFLAGS"; then
16317 pkg_cv_LIBSYSTEMD_LOGIN_CFLAGS="$LIBSYSTEMD_LOGIN_CFLAGS"
16318 elif test -n "$PKG_CONFIG"; then
16319 if test -n "$PKG_CONFIG" && \
16320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
16321 ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
16322 ac_status=$?
16323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16324 test $ac_status = 0; }; then
16325 pkg_cv_LIBSYSTEMD_LOGIN_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null`
16326 test "x$?" != "x0" && pkg_failed=yes
16327 else
16328 pkg_failed=yes
16329 fi
16330 else
16331 pkg_failed=untried
16332 fi
16333 if test -n "$LIBSYSTEMD_LOGIN_LIBS"; then
16334 pkg_cv_LIBSYSTEMD_LOGIN_LIBS="$LIBSYSTEMD_LOGIN_LIBS"
16335 elif test -n "$PKG_CONFIG"; then
16336 if test -n "$PKG_CONFIG" && \
16337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
16338 ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
16339 ac_status=$?
16340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16341 test $ac_status = 0; }; then
16342 pkg_cv_LIBSYSTEMD_LOGIN_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null`
16343 test "x$?" != "x0" && pkg_failed=yes
16344 else
16345 pkg_failed=yes
16346 fi
16347 else
16348 pkg_failed=untried
16349 fi
16350
16351
16352
16353 if test $pkg_failed = yes; then
16354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16355 printf "%s\n" "no" >&6; }
16356
16357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16358 _pkg_short_errors_supported=yes
16359 else
16360 _pkg_short_errors_supported=no
16361 fi
16362 if test $_pkg_short_errors_supported = yes; then
16363 LIBSYSTEMD_LOGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
16364 else
16365 LIBSYSTEMD_LOGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
16366 fi
16367 # Put the nasty error message in config.log where it belongs
16368 echo "$LIBSYSTEMD_LOGIN_PKG_ERRORS" >&5
16369
16370
16371 pkg_failed=no
16372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-login >= 44 libsystemd-daemon" >&5
16373 printf %s "checking for libsystemd-login >= 44 libsystemd-daemon... " >&6; }
16374
16375 if test -n "$LIBSYSTEMD_LOGIN_CFLAGS"; then
16376 pkg_cv_LIBSYSTEMD_LOGIN_CFLAGS="$LIBSYSTEMD_LOGIN_CFLAGS"
16377 elif test -n "$PKG_CONFIG"; then
16378 if test -n "$PKG_CONFIG" && \
16379 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login >= 44 libsystemd-daemon\""; } >&5
16380 ($PKG_CONFIG --exists --print-errors "libsystemd-login >= 44 libsystemd-daemon") 2>&5
16381 ac_status=$?
16382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16383 test $ac_status = 0; }; then
16384 pkg_cv_LIBSYSTEMD_LOGIN_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-login >= 44 libsystemd-daemon" 2>/dev/null`
16385 test "x$?" != "x0" && pkg_failed=yes
16386 else
16387 pkg_failed=yes
16388 fi
16389 else
16390 pkg_failed=untried
16391 fi
16392 if test -n "$LIBSYSTEMD_LOGIN_LIBS"; then
16393 pkg_cv_LIBSYSTEMD_LOGIN_LIBS="$LIBSYSTEMD_LOGIN_LIBS"
16394 elif test -n "$PKG_CONFIG"; then
16395 if test -n "$PKG_CONFIG" && \
16396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login >= 44 libsystemd-daemon\""; } >&5
16397 ($PKG_CONFIG --exists --print-errors "libsystemd-login >= 44 libsystemd-daemon") 2>&5
16398 ac_status=$?
16399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16400 test $ac_status = 0; }; then
16401 pkg_cv_LIBSYSTEMD_LOGIN_LIBS=`$PKG_CONFIG --libs "libsystemd-login >= 44 libsystemd-daemon" 2>/dev/null`
16402 test "x$?" != "x0" && pkg_failed=yes
16403 else
16404 pkg_failed=yes
16405 fi
16406 else
16407 pkg_failed=untried
16408 fi
16409
16410
16411
16412 if test $pkg_failed = yes; then
16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16414 printf "%s\n" "no" >&6; }
16415
16416 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16417 _pkg_short_errors_supported=yes
16418 else
16419 _pkg_short_errors_supported=no
16420 fi
16421 if test $_pkg_short_errors_supported = yes; then
16422 LIBSYSTEMD_LOGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-login >= 44 libsystemd-daemon" 2>&1`
16423 else
16424 LIBSYSTEMD_LOGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-login >= 44 libsystemd-daemon" 2>&1`
16425 fi
16426 # Put the nasty error message in config.log where it belongs
16427 echo "$LIBSYSTEMD_LOGIN_PKG_ERRORS" >&5
16428
16429 have_libsystemd_login=no
16430 elif test $pkg_failed = untried; then
16431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16432 printf "%s\n" "no" >&6; }
16433 have_libsystemd_login=no
16434 else
16435 LIBSYSTEMD_LOGIN_CFLAGS=$pkg_cv_LIBSYSTEMD_LOGIN_CFLAGS
16436 LIBSYSTEMD_LOGIN_LIBS=$pkg_cv_LIBSYSTEMD_LOGIN_LIBS
16437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16438 printf "%s\n" "yes" >&6; }
16439 have_libsystemd_login=yes
16440 fi
16441 elif test $pkg_failed = untried; then
16442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16443 printf "%s\n" "no" >&6; }
16444
16445 pkg_failed=no
16446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-login >= 44 libsystemd-daemon" >&5
16447 printf %s "checking for libsystemd-login >= 44 libsystemd-daemon... " >&6; }
16448
16449 if test -n "$LIBSYSTEMD_LOGIN_CFLAGS"; then
16450 pkg_cv_LIBSYSTEMD_LOGIN_CFLAGS="$LIBSYSTEMD_LOGIN_CFLAGS"
16451 elif test -n "$PKG_CONFIG"; then
16452 if test -n "$PKG_CONFIG" && \
16453 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login >= 44 libsystemd-daemon\""; } >&5
16454 ($PKG_CONFIG --exists --print-errors "libsystemd-login >= 44 libsystemd-daemon") 2>&5
16455 ac_status=$?
16456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16457 test $ac_status = 0; }; then
16458 pkg_cv_LIBSYSTEMD_LOGIN_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-login >= 44 libsystemd-daemon" 2>/dev/null`
16459 test "x$?" != "x0" && pkg_failed=yes
16460 else
16461 pkg_failed=yes
16462 fi
16463 else
16464 pkg_failed=untried
16465 fi
16466 if test -n "$LIBSYSTEMD_LOGIN_LIBS"; then
16467 pkg_cv_LIBSYSTEMD_LOGIN_LIBS="$LIBSYSTEMD_LOGIN_LIBS"
16468 elif test -n "$PKG_CONFIG"; then
16469 if test -n "$PKG_CONFIG" && \
16470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login >= 44 libsystemd-daemon\""; } >&5
16471 ($PKG_CONFIG --exists --print-errors "libsystemd-login >= 44 libsystemd-daemon") 2>&5
16472 ac_status=$?
16473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16474 test $ac_status = 0; }; then
16475 pkg_cv_LIBSYSTEMD_LOGIN_LIBS=`$PKG_CONFIG --libs "libsystemd-login >= 44 libsystemd-daemon" 2>/dev/null`
16476 test "x$?" != "x0" && pkg_failed=yes
16477 else
16478 pkg_failed=yes
16479 fi
16480 else
16481 pkg_failed=untried
16482 fi
16483
16484
16485
16486 if test $pkg_failed = yes; then
16487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16488 printf "%s\n" "no" >&6; }
16489
16490 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16491 _pkg_short_errors_supported=yes
16492 else
16493 _pkg_short_errors_supported=no
16494 fi
16495 if test $_pkg_short_errors_supported = yes; then
16496 LIBSYSTEMD_LOGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-login >= 44 libsystemd-daemon" 2>&1`
16497 else
16498 LIBSYSTEMD_LOGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-login >= 44 libsystemd-daemon" 2>&1`
16499 fi
16500 # Put the nasty error message in config.log where it belongs
16501 echo "$LIBSYSTEMD_LOGIN_PKG_ERRORS" >&5
16502
16503 have_libsystemd_login=no
16504 elif test $pkg_failed = untried; then
16505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16506 printf "%s\n" "no" >&6; }
16507 have_libsystemd_login=no
16508 else
16509 LIBSYSTEMD_LOGIN_CFLAGS=$pkg_cv_LIBSYSTEMD_LOGIN_CFLAGS
16510 LIBSYSTEMD_LOGIN_LIBS=$pkg_cv_LIBSYSTEMD_LOGIN_LIBS
16511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16512 printf "%s\n" "yes" >&6; }
16513 have_libsystemd_login=yes
16514 fi
16515 else
16516 LIBSYSTEMD_LOGIN_CFLAGS=$pkg_cv_LIBSYSTEMD_LOGIN_CFLAGS
16517 LIBSYSTEMD_LOGIN_LIBS=$pkg_cv_LIBSYSTEMD_LOGIN_LIBS
16518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16519 printf "%s\n" "yes" >&6; }
16520 have_libsystemd_login=yes
16521 fi
16522 if test "x$have_libsystemd_login" = "xyes"; then
16523
16524 printf "%s\n" "#define HAVE_LIBSYSTEMD_LOGIN 1" >>confdefs.h
16525
16526 fi
16527
16528
16529
16530
16531
16532 pkg_failed=no
16533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libelogind >= 219" >&5
16534 printf %s "checking for libelogind >= 219... " >&6; }
16535
16536 if test -n "$LIBELOGIND_CFLAGS"; then
16537 pkg_cv_LIBELOGIND_CFLAGS="$LIBELOGIND_CFLAGS"
16538 elif test -n "$PKG_CONFIG"; then
16539 if test -n "$PKG_CONFIG" && \
16540 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind >= 219\""; } >&5
16541 ($PKG_CONFIG --exists --print-errors "libelogind >= 219") 2>&5
16542 ac_status=$?
16543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16544 test $ac_status = 0; }; then
16545 pkg_cv_LIBELOGIND_CFLAGS=`$PKG_CONFIG --cflags "libelogind >= 219" 2>/dev/null`
16546 test "x$?" != "x0" && pkg_failed=yes
16547 else
16548 pkg_failed=yes
16549 fi
16550 else
16551 pkg_failed=untried
16552 fi
16553 if test -n "$LIBELOGIND_LIBS"; then
16554 pkg_cv_LIBELOGIND_LIBS="$LIBELOGIND_LIBS"
16555 elif test -n "$PKG_CONFIG"; then
16556 if test -n "$PKG_CONFIG" && \
16557 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind >= 219\""; } >&5
16558 ($PKG_CONFIG --exists --print-errors "libelogind >= 219") 2>&5
16559 ac_status=$?
16560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16561 test $ac_status = 0; }; then
16562 pkg_cv_LIBELOGIND_LIBS=`$PKG_CONFIG --libs "libelogind >= 219" 2>/dev/null`
16563 test "x$?" != "x0" && pkg_failed=yes
16564 else
16565 pkg_failed=yes
16566 fi
16567 else
16568 pkg_failed=untried
16569 fi
16570
16571
16572
16573 if test $pkg_failed = yes; then
16574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16575 printf "%s\n" "no" >&6; }
16576
16577 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16578 _pkg_short_errors_supported=yes
16579 else
16580 _pkg_short_errors_supported=no
16581 fi
16582 if test $_pkg_short_errors_supported = yes; then
16583 LIBELOGIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libelogind >= 219" 2>&1`
16584 else
16585 LIBELOGIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libelogind >= 219" 2>&1`
16586 fi
16587 # Put the nasty error message in config.log where it belongs
16588 echo "$LIBELOGIND_PKG_ERRORS" >&5
16589
16590 have_libelogind=no
16591 elif test $pkg_failed = untried; then
16592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16593 printf "%s\n" "no" >&6; }
16594 have_libelogind=no
16595 else
16596 LIBELOGIND_CFLAGS=$pkg_cv_LIBELOGIND_CFLAGS
16597 LIBELOGIND_LIBS=$pkg_cv_LIBELOGIND_LIBS
16598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16599 printf "%s\n" "yes" >&6; }
16600 have_libelogind=yes
16601 fi
16602 if test "x$have_libelogind" = "xyes"; then
16603
16604 printf "%s\n" "#define HAVE_LIBELOGIND 1" >>confdefs.h
16605
16606 fi
16607
16608
16609
16610 else
16611 have_libsystemd_login=no
16612 have_libelogind=no
16613 if 0; then
16614 HAVE_SMART_TRUE=
16615 HAVE_SMART_FALSE='#'
16616 else
16617 HAVE_SMART_TRUE='#'
16618 HAVE_SMART_FALSE=
16619 fi
16620
16621 fi
16622 if test x$have_libsystemd_login = xyes; then
16623 HAVE_LIBSYSTEMD_LOGIN_TRUE=
16624 HAVE_LIBSYSTEMD_LOGIN_FALSE='#'
16625 else
16626 HAVE_LIBSYSTEMD_LOGIN_TRUE='#'
16627 HAVE_LIBSYSTEMD_LOGIN_FALSE=
16628 fi
16629
16630 if test x$have_libelogind = xyes; then
16631 HAVE_LIBELOGIND_TRUE=
16632 HAVE_LIBELOGIND_FALSE='#'
16633 else
16634 HAVE_LIBELOGIND_TRUE='#'
16635 HAVE_LIBELOGIND_FALSE=
16636 fi
16637
16638
16639 # udevdir
16640
16641 # Check whether --with-udevdir was given.
16642 if test ${with_udevdir+y}
16643 then :
16644 withval=$with_udevdir;
16645 else case e in #(
16646 e) with_udevdir=$($PKG_CONFIG --variable=udevdir udev) ;;
16647 esac
16648 fi
16649
16650 udevdir=$with_udevdir
16651
16652
16653 # systemd
16654
16655 # Check whether --with-systemdsystemunitdir was given.
16656 if test ${with_systemdsystemunitdir+y}
16657 then :
16658 withval=$with_systemdsystemunitdir;
16659 else case e in #(
16660 e) with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) ;;
16661 esac
16662 fi
16663
16664 if test "x$with_systemdsystemunitdir" != "xno"; then
16665 systemdsystemunitdir=$with_systemdsystemunitdir
16666
16667 fi
16668 if test -n "$systemdsystemunitdir"; then
16669 HAVE_SYSTEMD_TRUE=
16670 HAVE_SYSTEMD_FALSE='#'
16671 else
16672 HAVE_SYSTEMD_TRUE='#'
16673 HAVE_SYSTEMD_FALSE=
16674 fi
16675
16676
16677
16678 # Check whether --with-tmpfilesdir was given.
16679 if test ${with_tmpfilesdir+y}
16680 then :
16681 withval=$with_tmpfilesdir;
16682 else case e in #(
16683 e) with_tmpfilesdir=$($PKG_CONFIG --variable=tmpfilesdir systemd) ;;
16684 esac
16685 fi
16686
16687 if test "x$with_tmpfilesdir" != "xno"; then
16688 tmpfilesdir=$with_tmpfilesdir
16689
16690 fi
16691
16692 # kernel modules
16693
16694 # Check whether --with-modloaddir was given.
16695 if test ${with_modloaddir+y}
16696 then :
16697 withval=$with_modloaddir; modloaddir=$withval
16698 else case e in #(
16699 e) modloaddir="$($PKG_CONFIG --variable=modulesloaddir systemd || echo "$prefix/lib/modules-load.d")" ;;
16700 esac
16701 fi
16702
16703 modloaddir=$modloaddir
16704
16705
16706
16707 # Check whether --with-modprobedir was given.
16708 if test ${with_modprobedir+y}
16709 then :
16710 withval=$with_modprobedir; modprobedir=$withval
16711 else case e in #(
16712 e) modprobedir="/usr/lib/modprobe.d" ;;
16713 esac
16714 fi
16715
16716 modprobedir=$modprobedir
16717
16718
16719 have_acl=no
16720 # Check whether --enable-acl was given.
16721 if test ${enable_acl+y}
16722 then :
16723 enableval=$enable_acl;
16724 fi
16725
16726 if test "x$enable_acl" != "xno"; then
16727 for ac_header in sys/acl.h acl/libacl.h
16728 do :
16729 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
16730 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16731 if eval test \"x\$"$as_ac_Header"\" = x"yes"
16732 then :
16733 cat >>confdefs.h <<_ACEOF
16734 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
16735 _ACEOF
16736
16737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
16738 printf %s "checking for acl_get_file in -lacl... " >&6; }
16739 if test ${ac_cv_lib_acl_acl_get_file+y}
16740 then :
16741 printf %s "(cached) " >&6
16742 else case e in #(
16743 e) ac_check_lib_save_LIBS=$LIBS
16744 LIBS="-lacl $LIBS"
16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h. */
16747
16748 /* Override any GCC internal prototype to avoid an error.
16749 Use char because int might match the return type of a GCC
16750 builtin and then its argument prototype would still apply.
16751 The 'extern "C"' is for builds by C++ compilers;
16752 although this is not generally supported in C code supporting it here
16753 has little cost and some practical benefit (sr 110532). */
16754 #ifdef __cplusplus
16755 extern "C"
16756 #endif
16757 char acl_get_file (void);
16758 int
16759 main (void)
16760 {
16761 return acl_get_file ();
16762 ;
16763 return 0;
16764 }
16765 _ACEOF
16766 if ac_fn_c_try_link "$LINENO"
16767 then :
16768 ac_cv_lib_acl_acl_get_file=yes
16769 else case e in #(
16770 e) ac_cv_lib_acl_acl_get_file=no ;;
16771 esac
16772 fi
16773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16774 conftest$ac_exeext conftest.$ac_ext
16775 LIBS=$ac_check_lib_save_LIBS ;;
16776 esac
16777 fi
16778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
16779 printf "%s\n" "$ac_cv_lib_acl_acl_get_file" >&6; }
16780 if test "x$ac_cv_lib_acl_acl_get_file" = xyes
16781 then :
16782
16783 printf "%s\n" "#define HAVE_ACL 1" >>confdefs.h
16784 have_acl=yes
16785 else case e in #(
16786 e) have_acl=no ;;
16787 esac
16788 fi
16789
16790
16791 else case e in #(
16792 e) have_acl=no ;;
16793 esac
16794 fi
16795
16796 done
16797 if test "x$have_acl" = "xyes"; then
16798 ACL_CFLAGS=""
16799 ACL_LIBS="-lacl"
16800 fi
16801
16802
16803 if test "x$have_acl" = xno -a "x$enable_acl" = xyes; then
16804 as_fn_error $? "acl support requested but libraries not found" "$LINENO" 5
16805 fi
16806 fi
16807 if test "$have_acl" = "yes"; then
16808 HAVE_ACL_TRUE=
16809 HAVE_ACL_FALSE='#'
16810 else
16811 HAVE_ACL_TRUE='#'
16812 HAVE_ACL_FALSE=
16813 fi
16814
16815
16816
16817 # LVM2 module
16818 have_lvm2=no
16819 # Check whether --enable-lvm2 was given.
16820 if test ${enable_lvm2+y}
16821 then :
16822 enableval=$enable_lvm2;
16823 fi
16824
16825 if test "x$enable_lvm2" = "xyes" \
16826 -o "x$enable_modules" = "xyes" \
16827 -o "x$enable_available_modules" = "xyes"; then
16828
16829 SAVE_CFLAGS=$CFLAGS
16830 SAVE_LDFLAGS=$LDFLAGS
16831
16832 CFLAGS="$GLIB_CFLAGS"
16833 LDFLAGS="$GLIB_LIBS"
16834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libblockdev-lvm presence" >&5
16835 printf %s "checking libblockdev-lvm presence... " >&6; }
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16838 #include <blockdev/lvm.h>
16839 int
16840 main (void)
16841 {
16842
16843 ;
16844 return 0;
16845 }
16846 _ACEOF
16847 if ac_fn_c_try_compile "$LINENO"
16848 then :
16849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16850 printf "%s\n" "yes" >&6; }
16851 have_lvm2=yes
16852 else case e in #(
16853 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16854 printf "%s\n" "no" >&6; }
16855 have_lvm2=no ;;
16856 esac
16857 fi
16858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16859 CFLAGS=$SAVE_CFLAGS
16860 LDFLAGS=$SAVE_LDFLAGS
16861
16862 if test "x$have_lvm2" = "xno"; then
16863 if test "x$enable_lvm2" = "xyes" -o "x$enable_modules" = "xyes"; then
16864 as_fn_error $? "lvm2 support requested but libraries not found" "$LINENO" 5
16865 fi
16866 fi
16867 fi
16868 if test "$have_lvm2" = "yes"; then
16869 HAVE_LVM2_TRUE=
16870 HAVE_LVM2_FALSE='#'
16871 else
16872 HAVE_LVM2_TRUE='#'
16873 HAVE_LVM2_FALSE=
16874 fi
16875
16876
16877 # iSCSI module
16878 have_iscsi=no
16879 have_libiscsi_session_info="no"
16880 have_libiscsi_session_info_msg=""
16881 # Check whether --enable-iscsi was given.
16882 if test ${enable_iscsi+y}
16883 then :
16884 enableval=$enable_iscsi;
16885 fi
16886
16887 if test "x$enable_iscsi" = "xyes" \
16888 -o "x$enable_modules" = "xyes" \
16889 -o "x$enable_available_modules" = "xyes"; then
16890 # libiscsi.h
16891 ac_fn_c_check_header_compile "$LINENO" "libiscsi.h" "ac_cv_header_libiscsi_h" "$ac_includes_default"
16892 if test "x$ac_cv_header_libiscsi_h" = xyes
16893 then :
16894
16895 printf "%s\n" "#define HAVE_ISCSI 1" >>confdefs.h
16896
16897 have_iscsi=yes
16898 else case e in #(
16899 e) have_iscsi=no ;;
16900 esac
16901 fi
16902
16903 if test "x$have_iscsi" = "xyes"; then
16904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libiscsi.h defines iscsi_err" >&5
16905 printf %s "checking whether libiscsi.h defines iscsi_err... " >&6; }
16906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16907 /* end confdefs.h. */
16908 #include <libiscsi.h>
16909 int
16910 main (void)
16911 {
16912 int err = ISCSI_SUCCESS;
16913 ;
16914 return 0;
16915 }
16916 _ACEOF
16917 if ac_fn_c_try_compile "$LINENO"
16918 then :
16919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16920 printf "%s\n" "yes" >&6; }
16921
16922 printf "%s\n" "#define HAVE_LIBISCSI_ERR 1" >>confdefs.h
16923
16924 else case e in #(
16925 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16926 printf "%s\n" "no" >&6; } ;;
16927 esac
16928 fi
16929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16930 fi
16931
16932 # libiscsi
16933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiscsi_init in -liscsi" >&5
16934 printf %s "checking for libiscsi_init in -liscsi... " >&6; }
16935 if test ${ac_cv_lib_iscsi_libiscsi_init+y}
16936 then :
16937 printf %s "(cached) " >&6
16938 else case e in #(
16939 e) ac_check_lib_save_LIBS=$LIBS
16940 LIBS="-liscsi $LIBS"
16941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h. */
16943
16944 /* Override any GCC internal prototype to avoid an error.
16945 Use char because int might match the return type of a GCC
16946 builtin and then its argument prototype would still apply.
16947 The 'extern "C"' is for builds by C++ compilers;
16948 although this is not generally supported in C code supporting it here
16949 has little cost and some practical benefit (sr 110532). */
16950 #ifdef __cplusplus
16951 extern "C"
16952 #endif
16953 char libiscsi_init (void);
16954 int
16955 main (void)
16956 {
16957 return libiscsi_init ();
16958 ;
16959 return 0;
16960 }
16961 _ACEOF
16962 if ac_fn_c_try_link "$LINENO"
16963 then :
16964 ac_cv_lib_iscsi_libiscsi_init=yes
16965 else case e in #(
16966 e) ac_cv_lib_iscsi_libiscsi_init=no ;;
16967 esac
16968 fi
16969 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16970 conftest$ac_exeext conftest.$ac_ext
16971 LIBS=$ac_check_lib_save_LIBS ;;
16972 esac
16973 fi
16974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iscsi_libiscsi_init" >&5
16975 printf "%s\n" "$ac_cv_lib_iscsi_libiscsi_init" >&6; }
16976 if test "x$ac_cv_lib_iscsi_libiscsi_init" = xyes
16977 then :
16978 ISCSI_LIBS="-liscsi"
16979 else case e in #(
16980 e) have_iscsi="no" ;;
16981 esac
16982 fi
16983
16984 if test "x$have_iscsi" = "xyes"; then
16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiscsi_get_session_info_by_id in -liscsi" >&5
16986 printf %s "checking for libiscsi_get_session_info_by_id in -liscsi... " >&6; }
16987 if test ${ac_cv_lib_iscsi_libiscsi_get_session_info_by_id+y}
16988 then :
16989 printf %s "(cached) " >&6
16990 else case e in #(
16991 e) ac_check_lib_save_LIBS=$LIBS
16992 LIBS="-liscsi $LIBS"
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16995
16996 /* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply.
16999 The 'extern "C"' is for builds by C++ compilers;
17000 although this is not generally supported in C code supporting it here
17001 has little cost and some practical benefit (sr 110532). */
17002 #ifdef __cplusplus
17003 extern "C"
17004 #endif
17005 char libiscsi_get_session_info_by_id (void);
17006 int
17007 main (void)
17008 {
17009 return libiscsi_get_session_info_by_id ();
17010 ;
17011 return 0;
17012 }
17013 _ACEOF
17014 if ac_fn_c_try_link "$LINENO"
17015 then :
17016 ac_cv_lib_iscsi_libiscsi_get_session_info_by_id=yes
17017 else case e in #(
17018 e) ac_cv_lib_iscsi_libiscsi_get_session_info_by_id=no ;;
17019 esac
17020 fi
17021 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17022 conftest$ac_exeext conftest.$ac_ext
17023 LIBS=$ac_check_lib_save_LIBS ;;
17024 esac
17025 fi
17026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iscsi_libiscsi_get_session_info_by_id" >&5
17027 printf "%s\n" "$ac_cv_lib_iscsi_libiscsi_get_session_info_by_id" >&6; }
17028 if test "x$ac_cv_lib_iscsi_libiscsi_get_session_info_by_id" = xyes
17029 then :
17030 have_libiscsi_session_info="yes"
17031 have_libiscsi_session_info_msg=", with iscsi sessions"
17032
17033 printf "%s\n" "#define HAVE_LIBISCSI_GET_SESSION_INFOS 1" >>confdefs.h
17034
17035 else case e in #(
17036 e) have_libiscsi_session_info_msg=", without iscsi sessions" ;;
17037 esac
17038 fi
17039
17040 fi
17041
17042 if test "x$have_iscsi" = "xno"; then
17043 if test "x$enable_iscsi" = "xyes" -o "x$enable_modules" = "xyes"; then
17044 as_fn_error $? "iSCSI support requested but libraries not found" "$LINENO" 5
17045 fi
17046 fi
17047
17048 fi
17049 if test "x$have_iscsi" = "xyes"; then
17050 HAVE_ISCSI_TRUE=
17051 HAVE_ISCSI_FALSE='#'
17052 else
17053 HAVE_ISCSI_TRUE='#'
17054 HAVE_ISCSI_FALSE=
17055 fi
17056
17057 if test "x$have_libiscsi_session_info" = "xyes"; then
17058 BUILD_ISCSI_SESSION_OBJECT_TRUE=
17059 BUILD_ISCSI_SESSION_OBJECT_FALSE='#'
17060 else
17061 BUILD_ISCSI_SESSION_OBJECT_TRUE='#'
17062 BUILD_ISCSI_SESSION_OBJECT_FALSE=
17063 fi
17064
17065
17066 # BTRFS module
17067 have_btrfs=no
17068 # Check whether --enable-btrfs was given.
17069 if test ${enable_btrfs+y}
17070 then :
17071 enableval=$enable_btrfs;
17072 fi
17073
17074 if test "x$enable_btrfs" = "xyes" \
17075 -o "x$enable_modules" = "xyes" \
17076 -o "x$enable_available_modules" = "xyes"; then
17077 # libblockdev
17078 SAVE_CFLAGS=$CFLAGS
17079 SAVE_LDFLAGS=$LDFLAGS
17080 CFLAGS="$GLIB_CFLAGS"
17081 LDFLAGS="$GLIB_LIBS"
17082 # We don't use AC_CHECK_HEADER to avoid these warnings:
17083 # - accepted by the compiler, rejected by the preprocessor!
17084 # - proceeding with the compiler's result
17085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking \"libblockdev-btrfs presence\"" >&5
17086 printf %s "checking \"libblockdev-btrfs presence\"... " >&6; }
17087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088 /* end confdefs.h. */
17089 #include <blockdev/btrfs.h>
17090 int
17091 main (void)
17092 {
17093
17094 ;
17095 return 0;
17096 }
17097 _ACEOF
17098 if ac_fn_c_try_compile "$LINENO"
17099 then :
17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17101 printf "%s\n" "yes" >&6; }
17102
17103 printf "%s\n" "#define HAVE_BTRFS 1" >>confdefs.h
17104
17105 have_btrfs=yes
17106 else case e in #(
17107 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17108 printf "%s\n" "no" >&6; }
17109 have_btrfs=no ;;
17110 esac
17111 fi
17112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17113 CFLAGS=$SAVE_CFLAGS
17114 LDFLAGS=$SAVE_LDFLAGS
17115
17116 if test "x$have_btrfs" = "xno"; then
17117 if test "x$enable_btrfs" = "xyes" -o "x$enable_modules" = "xyes"; then
17118 as_fn_error $? "BTRFS support requested but header or library not found" "$LINENO" 5
17119 fi
17120 fi
17121 fi
17122 if test "x$have_btrfs" = "xyes"; then
17123 HAVE_BTRFS_TRUE=
17124 HAVE_BTRFS_FALSE='#'
17125 else
17126 HAVE_BTRFS_TRUE='#'
17127 HAVE_BTRFS_FALSE=
17128 fi
17129
17130
17131 # LSM module
17132 have_lsm=no
17133 have_libconfig=no
17134 # Check whether --enable-lsm was given.
17135 if test ${enable_lsm+y}
17136 then :
17137 enableval=$enable_lsm;
17138 fi
17139
17140 if test "x$enable_lsm" = "xyes" \
17141 -o "x$enable_modules" = "xyes" \
17142 -o "x$enable_available_modules" = "xyes"; then
17143
17144 pkg_failed=no
17145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstoragemgmt >= 1.3.0" >&5
17146 printf %s "checking for libstoragemgmt >= 1.3.0... " >&6; }
17147
17148 if test -n "$LIBLSM_CFLAGS"; then
17149 pkg_cv_LIBLSM_CFLAGS="$LIBLSM_CFLAGS"
17150 elif test -n "$PKG_CONFIG"; then
17151 if test -n "$PKG_CONFIG" && \
17152 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libstoragemgmt >= 1.3.0\""; } >&5
17153 ($PKG_CONFIG --exists --print-errors "libstoragemgmt >= 1.3.0") 2>&5
17154 ac_status=$?
17155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17156 test $ac_status = 0; }; then
17157 pkg_cv_LIBLSM_CFLAGS=`$PKG_CONFIG --cflags "libstoragemgmt >= 1.3.0" 2>/dev/null`
17158 test "x$?" != "x0" && pkg_failed=yes
17159 else
17160 pkg_failed=yes
17161 fi
17162 else
17163 pkg_failed=untried
17164 fi
17165 if test -n "$LIBLSM_LIBS"; then
17166 pkg_cv_LIBLSM_LIBS="$LIBLSM_LIBS"
17167 elif test -n "$PKG_CONFIG"; then
17168 if test -n "$PKG_CONFIG" && \
17169 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libstoragemgmt >= 1.3.0\""; } >&5
17170 ($PKG_CONFIG --exists --print-errors "libstoragemgmt >= 1.3.0") 2>&5
17171 ac_status=$?
17172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17173 test $ac_status = 0; }; then
17174 pkg_cv_LIBLSM_LIBS=`$PKG_CONFIG --libs "libstoragemgmt >= 1.3.0" 2>/dev/null`
17175 test "x$?" != "x0" && pkg_failed=yes
17176 else
17177 pkg_failed=yes
17178 fi
17179 else
17180 pkg_failed=untried
17181 fi
17182
17183
17184
17185 if test $pkg_failed = yes; then
17186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187 printf "%s\n" "no" >&6; }
17188
17189 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17190 _pkg_short_errors_supported=yes
17191 else
17192 _pkg_short_errors_supported=no
17193 fi
17194 if test $_pkg_short_errors_supported = yes; then
17195 LIBLSM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libstoragemgmt >= 1.3.0" 2>&1`
17196 else
17197 LIBLSM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libstoragemgmt >= 1.3.0" 2>&1`
17198 fi
17199 # Put the nasty error message in config.log where it belongs
17200 echo "$LIBLSM_PKG_ERRORS" >&5
17201
17202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libstoragemgmt 1.3.0 or newer not found." >&5
17203 printf "%s\n" "$as_me: WARNING: libstoragemgmt 1.3.0 or newer not found." >&2;}
17204 have_lsm=no
17205 elif test $pkg_failed = untried; then
17206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17207 printf "%s\n" "no" >&6; }
17208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libstoragemgmt 1.3.0 or newer not found." >&5
17209 printf "%s\n" "$as_me: WARNING: libstoragemgmt 1.3.0 or newer not found." >&2;}
17210 have_lsm=no
17211 else
17212 LIBLSM_CFLAGS=$pkg_cv_LIBLSM_CFLAGS
17213 LIBLSM_LIBS=$pkg_cv_LIBLSM_LIBS
17214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17215 printf "%s\n" "yes" >&6; }
17216
17217 printf "%s\n" "#define HAVE_LSM 1" >>confdefs.h
17218
17219 have_lsm=yes
17220 fi
17221
17222
17223 pkg_failed=no
17224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libconfig >= 1.3.2" >&5
17225 printf %s "checking for libconfig >= 1.3.2... " >&6; }
17226
17227 if test -n "$LIBCONFIG_CFLAGS"; then
17228 pkg_cv_LIBCONFIG_CFLAGS="$LIBCONFIG_CFLAGS"
17229 elif test -n "$PKG_CONFIG"; then
17230 if test -n "$PKG_CONFIG" && \
17231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfig >= 1.3.2\""; } >&5
17232 ($PKG_CONFIG --exists --print-errors "libconfig >= 1.3.2") 2>&5
17233 ac_status=$?
17234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17235 test $ac_status = 0; }; then
17236 pkg_cv_LIBCONFIG_CFLAGS=`$PKG_CONFIG --cflags "libconfig >= 1.3.2" 2>/dev/null`
17237 test "x$?" != "x0" && pkg_failed=yes
17238 else
17239 pkg_failed=yes
17240 fi
17241 else
17242 pkg_failed=untried
17243 fi
17244 if test -n "$LIBCONFIG_LIBS"; then
17245 pkg_cv_LIBCONFIG_LIBS="$LIBCONFIG_LIBS"
17246 elif test -n "$PKG_CONFIG"; then
17247 if test -n "$PKG_CONFIG" && \
17248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfig >= 1.3.2\""; } >&5
17249 ($PKG_CONFIG --exists --print-errors "libconfig >= 1.3.2") 2>&5
17250 ac_status=$?
17251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17252 test $ac_status = 0; }; then
17253 pkg_cv_LIBCONFIG_LIBS=`$PKG_CONFIG --libs "libconfig >= 1.3.2" 2>/dev/null`
17254 test "x$?" != "x0" && pkg_failed=yes
17255 else
17256 pkg_failed=yes
17257 fi
17258 else
17259 pkg_failed=untried
17260 fi
17261
17262
17263
17264 if test $pkg_failed = yes; then
17265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17266 printf "%s\n" "no" >&6; }
17267
17268 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17269 _pkg_short_errors_supported=yes
17270 else
17271 _pkg_short_errors_supported=no
17272 fi
17273 if test $_pkg_short_errors_supported = yes; then
17274 LIBCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libconfig >= 1.3.2" 2>&1`
17275 else
17276 LIBCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libconfig >= 1.3.2" 2>&1`
17277 fi
17278 # Put the nasty error message in config.log where it belongs
17279 echo "$LIBCONFIG_PKG_ERRORS" >&5
17280
17281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libconfig 1.3.2 or newer not found." >&5
17282 printf "%s\n" "$as_me: WARNING: libconfig 1.3.2 or newer not found." >&2;}
17283 have_libconfig=no
17284 elif test $pkg_failed = untried; then
17285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17286 printf "%s\n" "no" >&6; }
17287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libconfig 1.3.2 or newer not found." >&5
17288 printf "%s\n" "$as_me: WARNING: libconfig 1.3.2 or newer not found." >&2;}
17289 have_libconfig=no
17290 else
17291 LIBCONFIG_CFLAGS=$pkg_cv_LIBCONFIG_CFLAGS
17292 LIBCONFIG_LIBS=$pkg_cv_LIBCONFIG_LIBS
17293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17294 printf "%s\n" "yes" >&6; }
17295 have_libconfig=yes
17296 fi
17297
17298 if test "x$have_libconfig" = "xno"; then
17299 have_lsm=no
17300 fi
17301
17302 if test "x$have_lsm" = "xno"; then
17303 if test "x$enable_lsm" = "xyes" -o "x$enable_modules" = "xyes"; then
17304 as_fn_error $? "LibStorageMgmt support requested but libraries not found" "$LINENO" 5
17305 fi
17306 fi
17307 fi
17308 if test "x$have_lsm" = "xyes"; then
17309 HAVE_LSM_TRUE=
17310 HAVE_LSM_FALSE='#'
17311 else
17312 HAVE_LSM_TRUE='#'
17313 HAVE_LSM_FALSE=
17314 fi
17315
17316
17317 have_swap="no"
17318 if test "x$enable_daemon" = "xyes"; then
17319 # libblockdev part
17320 SAVE_CFLAGS=$CFLAGS
17321 SAVE_LDFLAGS=$LDFLAGS
17322
17323 CFLAGS="$GLIB_CFLAGS"
17324 LDFLAGS="$GLIB_LIBS"
17325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libblockdev-part presence" >&5
17326 printf %s "checking libblockdev-part presence... " >&6; }
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17329 #include <blockdev/part.h>
17330 int
17331 main (void)
17332 {
17333
17334 ;
17335 return 0;
17336 }
17337 _ACEOF
17338 if ac_fn_c_try_compile "$LINENO"
17339 then :
17340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17341 printf "%s\n" "yes" >&6; }
17342 have_part=yes
17343 else case e in #(
17344 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17345 printf "%s\n" "no" >&6; }
17346 have_part=no ;;
17347 esac
17348 fi
17349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17350
17351 CFLAGS=$SAVE_CFLAGS
17352 LDFLAGS=$SAVE_LDFLAGS
17353
17354 if test "x$have_part" = "xno"; then
17355 as_fn_error $? "BlockDev part support requested but header or library not found" "$LINENO" 5
17356 fi
17357
17358 # libblockdev loop
17359 SAVE_CFLAGS=$CFLAGS
17360 SAVE_LDFLAGS=$LDFLAGS
17361
17362 CFLAGS="$GLIB_CFLAGS"
17363 LDFLAGS="$GLIB_LIBS"
17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libblockdev-loop presence" >&5
17365 printf %s "checking libblockdev-loop presence... " >&6; }
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17368 #include <blockdev/loop.h>
17369 int
17370 main (void)
17371 {
17372
17373 ;
17374 return 0;
17375 }
17376 _ACEOF
17377 if ac_fn_c_try_compile "$LINENO"
17378 then :
17379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17380 printf "%s\n" "yes" >&6; }
17381 have_loop=yes
17382 else case e in #(
17383 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17384 printf "%s\n" "no" >&6; }
17385 have_loop=no ;;
17386 esac
17387 fi
17388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17389
17390 CFLAGS=$SAVE_CFLAGS
17391 LDFLAGS=$SAVE_LDFLAGS
17392
17393 if test "x$have_loop" = "xno"; then
17394 as_fn_error $? "Loop support requested but header or library not found" "$LINENO" 5
17395 fi
17396
17397 # libblockdev swap
17398 SAVE_CFLAGS=$CFLAGS
17399 SAVE_LDFLAGS=$LDFLAGS
17400
17401 CFLAGS="$GLIB_CFLAGS"
17402 LDFLAGS="$GLIB_LIBS"
17403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libblockdev-swap presence" >&5
17404 printf %s "checking libblockdev-swap presence... " >&6; }
17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17406 /* end confdefs.h. */
17407 #include <blockdev/swap.h>
17408 int
17409 main (void)
17410 {
17411
17412 ;
17413 return 0;
17414 }
17415 _ACEOF
17416 if ac_fn_c_try_compile "$LINENO"
17417 then :
17418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17419 printf "%s\n" "yes" >&6; }
17420 have_swap=yes
17421 else case e in #(
17422 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17423 printf "%s\n" "no" >&6; }
17424 have_swap=no ;;
17425 esac
17426 fi
17427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17428
17429 CFLAGS=$SAVE_CFLAGS
17430 LDFLAGS=$SAVE_LDFLAGS
17431
17432 if test "x$have_swap" = "xno"; then
17433 as_fn_error $? "SWAP support requested but header or library not found" "$LINENO" 5
17434 fi
17435
17436 # libblockdev mdraid
17437 SAVE_CFLAGS=$CFLAGS
17438 SAVE_LDFLAGS=$LDFLAGS
17439
17440 CFLAGS="$GLIB_CFLAGS"
17441 LDFLAGS="$GLIB_LIBS"
17442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libblockdev-mdraid presence" >&5
17443 printf %s "checking libblockdev-mdraid presence... " >&6; }
17444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h. */
17446 #include <blockdev/mdraid.h>
17447 int
17448 main (void)
17449 {
17450
17451 ;
17452 return 0;
17453 }
17454 _ACEOF
17455 if ac_fn_c_try_compile "$LINENO"
17456 then :
17457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17458 printf "%s\n" "yes" >&6; }
17459 have_mdraid=yes
17460 else case e in #(
17461 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17462 printf "%s\n" "no" >&6; }
17463 have_mdraid=no ;;
17464 esac
17465 fi
17466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17467
17468 CFLAGS=$SAVE_CFLAGS
17469 LDFLAGS=$SAVE_LDFLAGS
17470
17471 if test "x$have_mdraid" = "xno"; then
17472 as_fn_error $? "BLOCKDEV MDRAID support requested but header or library not found" "$LINENO" 5
17473 fi
17474
17475 # libblockdev fs
17476 SAVE_CFLAGS=$CFLAGS
17477 SAVE_LDFLAGS=$LDFLAGS
17478
17479 CFLAGS="$GLIB_CFLAGS"
17480 LDFLAGS="$GLIB_LIBS"
17481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libblockdev-fs presence" >&5
17482 printf %s "checking libblockdev-fs presence... " >&6; }
17483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17484 /* end confdefs.h. */
17485 #include <blockdev/fs.h>
17486 int
17487 main (void)
17488 {
17489
17490 ;
17491 return 0;
17492 }
17493 _ACEOF
17494 if ac_fn_c_try_compile "$LINENO"
17495 then :
17496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17497 printf "%s\n" "yes" >&6; }
17498 have_fs=yes
17499 else case e in #(
17500 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17501 printf "%s\n" "no" >&6; }
17502 have_fs=no ;;
17503 esac
17504 fi
17505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17506
17507 CFLAGS=$SAVE_CFLAGS
17508 LDFLAGS=$SAVE_LDFLAGS
17509
17510 if test "x$have_fs" = "xno"; then
17511 as_fn_error $? "BLOCKDEV FS support requested but header or library not found" "$LINENO" 5
17512 fi
17513
17514 # libblockdev crypto
17515 SAVE_CFLAGS=$CFLAGS
17516 SAVE_LDFLAGS=$LDFLAGS
17517
17518 CFLAGS="$GLIB_CFLAGS"
17519 LDFLAGS="$GLIB_LIBS"
17520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libblockdev-crypto presence" >&5
17521 printf %s "checking libblockdev-crypto presence... " >&6; }
17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523 /* end confdefs.h. */
17524 #include <blockdev/crypto.h>
17525 int
17526 main (void)
17527 {
17528
17529 ;
17530 return 0;
17531 }
17532 _ACEOF
17533 if ac_fn_c_try_compile "$LINENO"
17534 then :
17535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17536 printf "%s\n" "yes" >&6; }
17537 have_crypto=yes
17538 else case e in #(
17539 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17540 printf "%s\n" "no" >&6; }
17541 have_crypto=no ;;
17542 esac
17543 fi
17544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17545
17546 CFLAGS=$SAVE_CFLAGS
17547 LDFLAGS=$SAVE_LDFLAGS
17548
17549 if test "x$have_crypto" = "xno"; then
17550 as_fn_error $? "BLOCKDEV CRYPTO support requested but header or library not found" "$LINENO" 5
17551 fi
17552
17553 # libblockdev nvme
17554 SAVE_CFLAGS=$CFLAGS
17555 SAVE_LDFLAGS=$LDFLAGS
17556
17557 CFLAGS="$GLIB_CFLAGS"
17558 LDFLAGS="$GLIB_LIBS"
17559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libblockdev-nvme presence" >&5
17560 printf %s "checking libblockdev-nvme presence... " >&6; }
17561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17562 /* end confdefs.h. */
17563 #include <blockdev/nvme.h>
17564 int
17565 main (void)
17566 {
17567
17568 ;
17569 return 0;
17570 }
17571 _ACEOF
17572 if ac_fn_c_try_compile "$LINENO"
17573 then :
17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17575 printf "%s\n" "yes" >&6; }
17576 have_nvme=yes
17577 else case e in #(
17578 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17579 printf "%s\n" "no" >&6; }
17580 have_nvme=no ;;
17581 esac
17582 fi
17583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17584
17585 CFLAGS=$SAVE_CFLAGS
17586 LDFLAGS=$SAVE_LDFLAGS
17587
17588 if test "x$have_nvme" = "xno"; then
17589 as_fn_error $? "BLOCKDEV NVMe support requested but header or library not found" "$LINENO" 5
17590 fi
17591
17592 # libblockdev smart
17593 have_smart=no
17594 # Check whether --enable-smart was given.
17595 if test ${enable_smart+y}
17596 then :
17597 enableval=$enable_smart;
17598 fi
17599
17600 if test "x$enable_smart" != "xno"; then
17601 SAVE_CFLAGS=$CFLAGS
17602 SAVE_LDFLAGS=$LDFLAGS
17603
17604 CFLAGS="$GLIB_CFLAGS"
17605 LDFLAGS="$GLIB_LIBS"
17606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libblockdev-smart presence" >&5
17607 printf %s "checking libblockdev-smart presence... " >&6; }
17608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17610 #include <blockdev/smart.h>
17611 int
17612 main (void)
17613 {
17614
17615 ;
17616 return 0;
17617 }
17618 _ACEOF
17619 if ac_fn_c_try_compile "$LINENO"
17620 then :
17621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17622 printf "%s\n" "yes" >&6; }
17623
17624 printf "%s\n" "#define HAVE_SMART 1" >>confdefs.h
17625
17626 have_smart=yes
17627 else case e in #(
17628 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17629 printf "%s\n" "no" >&6; }
17630 as_fn_error $? "libblockdev-smart requested but not found." "$LINENO" 5
17631 have_smart=no ;;
17632 esac
17633 fi
17634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17635 CFLAGS=$SAVE_CFLAGS
17636 LDFLAGS=$SAVE_LDFLAGS
17637 fi
17638 if test "$have_smart" = "yes"; then
17639 HAVE_SMART_TRUE=
17640 HAVE_SMART_FALSE='#'
17641 else
17642 HAVE_SMART_TRUE='#'
17643 HAVE_SMART_FALSE=
17644 fi
17645
17646 fi
17647
17648
17649 # Internationalization
17650 #
17651
17652
17653
17654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17655 printf %s "checking whether NLS is requested... " >&6; }
17656 # Check whether --enable-nls was given.
17657 if test ${enable_nls+y}
17658 then :
17659 enableval=$enable_nls; USE_NLS=$enableval
17660 else case e in #(
17661 e) USE_NLS=yes ;;
17662 esac
17663 fi
17664
17665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17666 printf "%s\n" "$USE_NLS" >&6; }
17667
17668
17669
17670
17671 GETTEXT_MACRO_VERSION=0.19
17672
17673
17674
17675
17676 # Prepare PATH_SEPARATOR.
17677 # The user is always right.
17678 if test "${PATH_SEPARATOR+set}" != set; then
17679 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17680 # contains only /bin. Note that ksh looks also at the FPATH variable,
17681 # so we have to set that as well for the test.
17682 PATH_SEPARATOR=:
17683 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17684 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17685 || PATH_SEPARATOR=';'
17686 }
17687 fi
17688
17689 # Find out how to test for executable files. Don't use a zero-byte file,
17690 # as systems may use methods other than mode bits to determine executability.
17691 cat >conf$$.file <<_ASEOF
17692 #! /bin/sh
17693 exit 0
17694 _ASEOF
17695 chmod +x conf$$.file
17696 if test -x conf$$.file >/dev/null 2>&1; then
17697 ac_executable_p="test -x"
17698 else
17699 ac_executable_p="test -f"
17700 fi
17701 rm -f conf$$.file
17702
17703 # Extract the first word of "msgfmt", so it can be a program name with args.
17704 set dummy msgfmt; ac_word=$2
17705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17706 printf %s "checking for $ac_word... " >&6; }
17707 if test ${ac_cv_path_MSGFMT+y}
17708 then :
17709 printf %s "(cached) " >&6
17710 else case e in #(
17711 e) case "$MSGFMT" in
17712 [\\/]* | ?:[\\/]*)
17713 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17714 ;;
17715 *)
17716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17717 for ac_dir in $PATH; do
17718 IFS="$ac_save_IFS"
17719 test -z "$ac_dir" && ac_dir=.
17720 for ac_exec_ext in '' $ac_executable_extensions; do
17721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17722 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17723 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17724 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17725 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17726 break 2
17727 fi
17728 fi
17729 done
17730 done
17731 IFS="$ac_save_IFS"
17732 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17733 ;;
17734 esac ;;
17735 esac
17736 fi
17737 MSGFMT="$ac_cv_path_MSGFMT"
17738 if test "$MSGFMT" != ":"; then
17739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17740 printf "%s\n" "$MSGFMT" >&6; }
17741 else
17742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17743 printf "%s\n" "no" >&6; }
17744 fi
17745
17746 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17747 set dummy gmsgfmt; ac_word=$2
17748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17749 printf %s "checking for $ac_word... " >&6; }
17750 if test ${ac_cv_path_GMSGFMT+y}
17751 then :
17752 printf %s "(cached) " >&6
17753 else case e in #(
17754 e) case $GMSGFMT in
17755 [\\/]* | ?:[\\/]*)
17756 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17757 ;;
17758 *)
17759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17760 for as_dir in $PATH
17761 do
17762 IFS=$as_save_IFS
17763 case $as_dir in #(((
17764 '') as_dir=./ ;;
17765 */) ;;
17766 *) as_dir=$as_dir/ ;;
17767 esac
17768 for ac_exec_ext in '' $ac_executable_extensions; do
17769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17770 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
17771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17772 break 2
17773 fi
17774 done
17775 done
17776 IFS=$as_save_IFS
17777
17778 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17779 ;;
17780 esac ;;
17781 esac
17782 fi
17783 GMSGFMT=$ac_cv_path_GMSGFMT
17784 if test -n "$GMSGFMT"; then
17785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17786 printf "%s\n" "$GMSGFMT" >&6; }
17787 else
17788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17789 printf "%s\n" "no" >&6; }
17790 fi
17791
17792
17793
17794 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17795 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
17796 *) MSGFMT_015=$MSGFMT ;;
17797 esac
17798
17799 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17800 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
17801 *) GMSGFMT_015=$GMSGFMT ;;
17802 esac
17803
17804
17805
17806 # Prepare PATH_SEPARATOR.
17807 # The user is always right.
17808 if test "${PATH_SEPARATOR+set}" != set; then
17809 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17810 # contains only /bin. Note that ksh looks also at the FPATH variable,
17811 # so we have to set that as well for the test.
17812 PATH_SEPARATOR=:
17813 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17814 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17815 || PATH_SEPARATOR=';'
17816 }
17817 fi
17818
17819 # Find out how to test for executable files. Don't use a zero-byte file,
17820 # as systems may use methods other than mode bits to determine executability.
17821 cat >conf$$.file <<_ASEOF
17822 #! /bin/sh
17823 exit 0
17824 _ASEOF
17825 chmod +x conf$$.file
17826 if test -x conf$$.file >/dev/null 2>&1; then
17827 ac_executable_p="test -x"
17828 else
17829 ac_executable_p="test -f"
17830 fi
17831 rm -f conf$$.file
17832
17833 # Extract the first word of "xgettext", so it can be a program name with args.
17834 set dummy xgettext; ac_word=$2
17835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17836 printf %s "checking for $ac_word... " >&6; }
17837 if test ${ac_cv_path_XGETTEXT+y}
17838 then :
17839 printf %s "(cached) " >&6
17840 else case e in #(
17841 e) case "$XGETTEXT" in
17842 [\\/]* | ?:[\\/]*)
17843 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17844 ;;
17845 *)
17846 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17847 for ac_dir in $PATH; do
17848 IFS="$ac_save_IFS"
17849 test -z "$ac_dir" && ac_dir=.
17850 for ac_exec_ext in '' $ac_executable_extensions; do
17851 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17852 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17853 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17854 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17855 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17856 break 2
17857 fi
17858 fi
17859 done
17860 done
17861 IFS="$ac_save_IFS"
17862 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17863 ;;
17864 esac ;;
17865 esac
17866 fi
17867 XGETTEXT="$ac_cv_path_XGETTEXT"
17868 if test "$XGETTEXT" != ":"; then
17869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17870 printf "%s\n" "$XGETTEXT" >&6; }
17871 else
17872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17873 printf "%s\n" "no" >&6; }
17874 fi
17875
17876 rm -f messages.po
17877
17878 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17879 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
17880 *) XGETTEXT_015=$XGETTEXT ;;
17881 esac
17882
17883
17884
17885 # Prepare PATH_SEPARATOR.
17886 # The user is always right.
17887 if test "${PATH_SEPARATOR+set}" != set; then
17888 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17889 # contains only /bin. Note that ksh looks also at the FPATH variable,
17890 # so we have to set that as well for the test.
17891 PATH_SEPARATOR=:
17892 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17893 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17894 || PATH_SEPARATOR=';'
17895 }
17896 fi
17897
17898 # Find out how to test for executable files. Don't use a zero-byte file,
17899 # as systems may use methods other than mode bits to determine executability.
17900 cat >conf$$.file <<_ASEOF
17901 #! /bin/sh
17902 exit 0
17903 _ASEOF
17904 chmod +x conf$$.file
17905 if test -x conf$$.file >/dev/null 2>&1; then
17906 ac_executable_p="test -x"
17907 else
17908 ac_executable_p="test -f"
17909 fi
17910 rm -f conf$$.file
17911
17912 # Extract the first word of "msgmerge", so it can be a program name with args.
17913 set dummy msgmerge; ac_word=$2
17914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17915 printf %s "checking for $ac_word... " >&6; }
17916 if test ${ac_cv_path_MSGMERGE+y}
17917 then :
17918 printf %s "(cached) " >&6
17919 else case e in #(
17920 e) case "$MSGMERGE" in
17921 [\\/]* | ?:[\\/]*)
17922 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17923 ;;
17924 *)
17925 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17926 for ac_dir in $PATH; do
17927 IFS="$ac_save_IFS"
17928 test -z "$ac_dir" && ac_dir=.
17929 for ac_exec_ext in '' $ac_executable_extensions; do
17930 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17931 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17932 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17933 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17934 break 2
17935 fi
17936 fi
17937 done
17938 done
17939 IFS="$ac_save_IFS"
17940 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17941 ;;
17942 esac ;;
17943 esac
17944 fi
17945 MSGMERGE="$ac_cv_path_MSGMERGE"
17946 if test "$MSGMERGE" != ":"; then
17947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17948 printf "%s\n" "$MSGMERGE" >&6; }
17949 else
17950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17951 printf "%s\n" "no" >&6; }
17952 fi
17953
17954
17955 test -n "$localedir" || localedir='${datadir}/locale'
17956
17957
17958 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
17959
17960
17961 ac_config_commands="$ac_config_commands po-directories"
17962
17963
17964
17965 if test "X$prefix" = "XNONE"; then
17966 acl_final_prefix="$ac_default_prefix"
17967 else
17968 acl_final_prefix="$prefix"
17969 fi
17970 if test "X$exec_prefix" = "XNONE"; then
17971 acl_final_exec_prefix='${prefix}'
17972 else
17973 acl_final_exec_prefix="$exec_prefix"
17974 fi
17975 acl_save_prefix="$prefix"
17976 prefix="$acl_final_prefix"
17977 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17978 prefix="$acl_save_prefix"
17979
17980
17981
17982 # Check whether --with-gnu-ld was given.
17983 if test ${with_gnu_ld+y}
17984 then :
17985 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17986 else case e in #(
17987 e) with_gnu_ld=no ;;
17988 esac
17989 fi
17990
17991 # Prepare PATH_SEPARATOR.
17992 # The user is always right.
17993 if test "${PATH_SEPARATOR+set}" != set; then
17994 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17995 # contains only /bin. Note that ksh looks also at the FPATH variable,
17996 # so we have to set that as well for the test.
17997 PATH_SEPARATOR=:
17998 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17999 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18000 || PATH_SEPARATOR=';'
18001 }
18002 fi
18003
18004 ac_prog=ld
18005 if test "$GCC" = yes; then
18006 # Check if gcc -print-prog-name=ld gives a path.
18007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18008 printf %s "checking for ld used by $CC... " >&6; }
18009 case $host in
18010 *-*-mingw*)
18011 # gcc leaves a trailing carriage return which upsets mingw
18012 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18013 *)
18014 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18015 esac
18016 case $ac_prog in
18017 # Accept absolute paths.
18018 [\\/]* | ?:[\\/]*)
18019 re_direlt='/[^/][^/]*/\.\./'
18020 # Canonicalize the pathname of ld
18021 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
18022 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
18023 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18024 done
18025 test -z "$LD" && LD="$ac_prog"
18026 ;;
18027 "")
18028 # If it fails, then pretend we aren't using GCC.
18029 ac_prog=ld
18030 ;;
18031 *)
18032 # If it is relative, then search for the first ld in PATH.
18033 with_gnu_ld=unknown
18034 ;;
18035 esac
18036 elif test "$with_gnu_ld" = yes; then
18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18038 printf %s "checking for GNU ld... " >&6; }
18039 else
18040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18041 printf %s "checking for non-GNU ld... " >&6; }
18042 fi
18043 if test ${acl_cv_path_LD+y}
18044 then :
18045 printf %s "(cached) " >&6
18046 else case e in #(
18047 e) if test -z "$LD"; then
18048 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18049 for ac_dir in $PATH; do
18050 IFS="$acl_save_ifs"
18051 test -z "$ac_dir" && ac_dir=.
18052 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18053 acl_cv_path_LD="$ac_dir/$ac_prog"
18054 # Check to see if the program is GNU ld. I'd rather use --version,
18055 # but apparently some variants of GNU ld only accept -v.
18056 # Break only if it was the GNU/non-GNU ld that we prefer.
18057 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
18058 *GNU* | *'with BFD'*)
18059 test "$with_gnu_ld" != no && break
18060 ;;
18061 *)
18062 test "$with_gnu_ld" != yes && break
18063 ;;
18064 esac
18065 fi
18066 done
18067 IFS="$acl_save_ifs"
18068 else
18069 acl_cv_path_LD="$LD" # Let the user override the test with a path.
18070 fi ;;
18071 esac
18072 fi
18073
18074 LD="$acl_cv_path_LD"
18075 if test -n "$LD"; then
18076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18077 printf "%s\n" "$LD" >&6; }
18078 else
18079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18080 printf "%s\n" "no" >&6; }
18081 fi
18082 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18084 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
18085 if test ${acl_cv_prog_gnu_ld+y}
18086 then :
18087 printf %s "(cached) " >&6
18088 else case e in #(
18089 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
18090 case `$LD -v 2>&1 </dev/null` in
18091 *GNU* | *'with BFD'*)
18092 acl_cv_prog_gnu_ld=yes
18093 ;;
18094 *)
18095 acl_cv_prog_gnu_ld=no
18096 ;;
18097 esac ;;
18098 esac
18099 fi
18100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18101 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
18102 with_gnu_ld=$acl_cv_prog_gnu_ld
18103
18104
18105
18106
18107
18108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18109 printf %s "checking for shared library run path origin... " >&6; }
18110 if test ${acl_cv_rpath+y}
18111 then :
18112 printf %s "(cached) " >&6
18113 else case e in #(
18114 e)
18115 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18116 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18117 . ./conftest.sh
18118 rm -f ./conftest.sh
18119 acl_cv_rpath=done
18120 ;;
18121 esac
18122 fi
18123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18124 printf "%s\n" "$acl_cv_rpath" >&6; }
18125 wl="$acl_cv_wl"
18126 acl_libext="$acl_cv_libext"
18127 acl_shlibext="$acl_cv_shlibext"
18128 acl_libname_spec="$acl_cv_libname_spec"
18129 acl_library_names_spec="$acl_cv_library_names_spec"
18130 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18131 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18132 acl_hardcode_direct="$acl_cv_hardcode_direct"
18133 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18134 # Check whether --enable-rpath was given.
18135 if test ${enable_rpath+y}
18136 then :
18137 enableval=$enable_rpath; :
18138 else case e in #(
18139 e) enable_rpath=yes ;;
18140 esac
18141 fi
18142
18143
18144 ac_ext=c
18145 ac_cpp='$CPP $CPPFLAGS'
18146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
18150 printf %s "checking how to run the C preprocessor... " >&6; }
18151 # On Suns, sometimes $CPP names a directory.
18152 if test -n "$CPP" && test -d "$CPP"; then
18153 CPP=
18154 fi
18155 if test -z "$CPP"; then
18156 if test ${ac_cv_prog_CPP+y}
18157 then :
18158 printf %s "(cached) " >&6
18159 else case e in #(
18160 e) # Double quotes because $CC needs to be expanded
18161 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
18162 do
18163 ac_preproc_ok=false
18164 for ac_c_preproc_warn_flag in '' yes
18165 do
18166 # Use a header file that comes with gcc, so configuring glibc
18167 # with a fresh cross-compiler works.
18168 # On the NeXT, cc -E runs the code through the compiler's parser,
18169 # not just through cpp. "Syntax error" is here to catch this case.
18170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h. */
18172 #include <limits.h>
18173 Syntax error
18174 _ACEOF
18175 if ac_fn_c_try_cpp "$LINENO"
18176 then :
18177
18178 else case e in #(
18179 e) # Broken: fails on valid input.
18180 continue ;;
18181 esac
18182 fi
18183 rm -f conftest.err conftest.i conftest.$ac_ext
18184
18185 # OK, works on sane cases. Now check whether nonexistent headers
18186 # can be detected and how.
18187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18188 /* end confdefs.h. */
18189 #include <ac_nonexistent.h>
18190 _ACEOF
18191 if ac_fn_c_try_cpp "$LINENO"
18192 then :
18193 # Broken: success on invalid input.
18194 continue
18195 else case e in #(
18196 e) # Passes both tests.
18197 ac_preproc_ok=:
18198 break ;;
18199 esac
18200 fi
18201 rm -f conftest.err conftest.i conftest.$ac_ext
18202
18203 done
18204 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18205 rm -f conftest.i conftest.err conftest.$ac_ext
18206 if $ac_preproc_ok
18207 then :
18208 break
18209 fi
18210
18211 done
18212 ac_cv_prog_CPP=$CPP
18213 ;;
18214 esac
18215 fi
18216 CPP=$ac_cv_prog_CPP
18217 else
18218 ac_cv_prog_CPP=$CPP
18219 fi
18220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
18221 printf "%s\n" "$CPP" >&6; }
18222 ac_preproc_ok=false
18223 for ac_c_preproc_warn_flag in '' yes
18224 do
18225 # Use a header file that comes with gcc, so configuring glibc
18226 # with a fresh cross-compiler works.
18227 # On the NeXT, cc -E runs the code through the compiler's parser,
18228 # not just through cpp. "Syntax error" is here to catch this case.
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18231 #include <limits.h>
18232 Syntax error
18233 _ACEOF
18234 if ac_fn_c_try_cpp "$LINENO"
18235 then :
18236
18237 else case e in #(
18238 e) # Broken: fails on valid input.
18239 continue ;;
18240 esac
18241 fi
18242 rm -f conftest.err conftest.i conftest.$ac_ext
18243
18244 # OK, works on sane cases. Now check whether nonexistent headers
18245 # can be detected and how.
18246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h. */
18248 #include <ac_nonexistent.h>
18249 _ACEOF
18250 if ac_fn_c_try_cpp "$LINENO"
18251 then :
18252 # Broken: success on invalid input.
18253 continue
18254 else case e in #(
18255 e) # Passes both tests.
18256 ac_preproc_ok=:
18257 break ;;
18258 esac
18259 fi
18260 rm -f conftest.err conftest.i conftest.$ac_ext
18261
18262 done
18263 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18264 rm -f conftest.i conftest.err conftest.$ac_ext
18265 if $ac_preproc_ok
18266 then :
18267
18268 else case e in #(
18269 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18270 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18271 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
18272 See 'config.log' for more details" "$LINENO" 5; } ;;
18273 esac
18274 fi
18275
18276 ac_ext=c
18277 ac_cpp='$CPP $CPPFLAGS'
18278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18281
18282
18283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
18284 printf %s "checking for egrep -e... " >&6; }
18285 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
18286 then :
18287 printf %s "(cached) " >&6
18288 else case e in #(
18289 e) if test -z "$EGREP_TRADITIONAL"; then
18290 ac_path_EGREP_TRADITIONAL_found=false
18291 # Loop through the user's path and test for each of PROGNAME-LIST
18292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18294 do
18295 IFS=$as_save_IFS
18296 case $as_dir in #(((
18297 '') as_dir=./ ;;
18298 */) ;;
18299 *) as_dir=$as_dir/ ;;
18300 esac
18301 for ac_prog in grep ggrep
18302 do
18303 for ac_exec_ext in '' $ac_executable_extensions; do
18304 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
18305 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
18306 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
18307 # Check for GNU $ac_path_EGREP_TRADITIONAL
18308 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
18309 *GNU*)
18310 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
18311 #(
18312 *)
18313 ac_count=0
18314 printf %s 0123456789 >"conftest.in"
18315 while :
18316 do
18317 cat "conftest.in" "conftest.in" >"conftest.tmp"
18318 mv "conftest.tmp" "conftest.in"
18319 cp "conftest.in" "conftest.nl"
18320 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
18321 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18323 as_fn_arith $ac_count + 1 && ac_count=$as_val
18324 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
18325 # Best one so far, save it but keep looking for a better one
18326 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
18327 ac_path_EGREP_TRADITIONAL_max=$ac_count
18328 fi
18329 # 10*(2^10) chars as input seems more than enough
18330 test $ac_count -gt 10 && break
18331 done
18332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18333 esac
18334
18335 $ac_path_EGREP_TRADITIONAL_found && break 3
18336 done
18337 done
18338 done
18339 IFS=$as_save_IFS
18340 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
18341 :
18342 fi
18343 else
18344 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
18345 fi
18346
18347 if test "$ac_cv_path_EGREP_TRADITIONAL"
18348 then :
18349 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
18350 else case e in #(
18351 e) if test -z "$EGREP_TRADITIONAL"; then
18352 ac_path_EGREP_TRADITIONAL_found=false
18353 # Loop through the user's path and test for each of PROGNAME-LIST
18354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18356 do
18357 IFS=$as_save_IFS
18358 case $as_dir in #(((
18359 '') as_dir=./ ;;
18360 */) ;;
18361 *) as_dir=$as_dir/ ;;
18362 esac
18363 for ac_prog in egrep
18364 do
18365 for ac_exec_ext in '' $ac_executable_extensions; do
18366 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
18367 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
18368 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
18369 # Check for GNU $ac_path_EGREP_TRADITIONAL
18370 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
18371 *GNU*)
18372 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
18373 #(
18374 *)
18375 ac_count=0
18376 printf %s 0123456789 >"conftest.in"
18377 while :
18378 do
18379 cat "conftest.in" "conftest.in" >"conftest.tmp"
18380 mv "conftest.tmp" "conftest.in"
18381 cp "conftest.in" "conftest.nl"
18382 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
18383 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18384 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18385 as_fn_arith $ac_count + 1 && ac_count=$as_val
18386 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
18387 # Best one so far, save it but keep looking for a better one
18388 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
18389 ac_path_EGREP_TRADITIONAL_max=$ac_count
18390 fi
18391 # 10*(2^10) chars as input seems more than enough
18392 test $ac_count -gt 10 && break
18393 done
18394 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18395 esac
18396
18397 $ac_path_EGREP_TRADITIONAL_found && break 3
18398 done
18399 done
18400 done
18401 IFS=$as_save_IFS
18402 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
18403 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
18404 fi
18405 else
18406 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
18407 fi
18408 ;;
18409 esac
18410 fi ;;
18411 esac
18412 fi
18413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
18414 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
18415 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
18416
18417
18418
18419 acl_libdirstem=lib
18420 acl_libdirstem2=
18421 case "$host_os" in
18422 solaris*)
18423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18424 printf %s "checking for 64-bit host... " >&6; }
18425 if test ${gl_cv_solaris_64bit+y}
18426 then :
18427 printf %s "(cached) " >&6
18428 else case e in #(
18429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18430 /* end confdefs.h. */
18431
18432 #ifdef _LP64
18433 sixtyfour bits
18434 #endif
18435
18436 _ACEOF
18437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18438 $EGREP_TRADITIONAL "sixtyfour bits" >/dev/null 2>&1
18439 then :
18440 gl_cv_solaris_64bit=yes
18441 else case e in #(
18442 e) gl_cv_solaris_64bit=no ;;
18443 esac
18444 fi
18445 rm -rf conftest*
18446
18447 ;;
18448 esac
18449 fi
18450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18451 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
18452 if test $gl_cv_solaris_64bit = yes; then
18453 acl_libdirstem=lib/64
18454 case "$host_cpu" in
18455 sparc*) acl_libdirstem2=lib/sparcv9 ;;
18456 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18457 esac
18458 fi
18459 ;;
18460 *)
18461 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18462 if test -n "$searchpath"; then
18463 acl_save_IFS="${IFS= }"; IFS=":"
18464 for searchdir in $searchpath; do
18465 if test -d "$searchdir"; then
18466 case "$searchdir" in
18467 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18468 */../ | */.. )
18469 # Better ignore directories of this form. They are misleading.
18470 ;;
18471 *) searchdir=`cd "$searchdir" && pwd`
18472 case "$searchdir" in
18473 */lib64 ) acl_libdirstem=lib64 ;;
18474 esac ;;
18475 esac
18476 fi
18477 done
18478 IFS="$acl_save_IFS"
18479 fi
18480 ;;
18481 esac
18482 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495 use_additional=yes
18496
18497 acl_save_prefix="$prefix"
18498 prefix="$acl_final_prefix"
18499 acl_save_exec_prefix="$exec_prefix"
18500 exec_prefix="$acl_final_exec_prefix"
18501
18502 eval additional_includedir=\"$includedir\"
18503 eval additional_libdir=\"$libdir\"
18504
18505 exec_prefix="$acl_save_exec_prefix"
18506 prefix="$acl_save_prefix"
18507
18508
18509 # Check whether --with-libiconv-prefix was given.
18510 if test ${with_libiconv_prefix+y}
18511 then :
18512 withval=$with_libiconv_prefix;
18513 if test "X$withval" = "Xno"; then
18514 use_additional=no
18515 else
18516 if test "X$withval" = "X"; then
18517
18518 acl_save_prefix="$prefix"
18519 prefix="$acl_final_prefix"
18520 acl_save_exec_prefix="$exec_prefix"
18521 exec_prefix="$acl_final_exec_prefix"
18522
18523 eval additional_includedir=\"$includedir\"
18524 eval additional_libdir=\"$libdir\"
18525
18526 exec_prefix="$acl_save_exec_prefix"
18527 prefix="$acl_save_prefix"
18528
18529 else
18530 additional_includedir="$withval/include"
18531 additional_libdir="$withval/$acl_libdirstem"
18532 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18533 && ! test -d "$withval/$acl_libdirstem"; then
18534 additional_libdir="$withval/$acl_libdirstem2"
18535 fi
18536 fi
18537 fi
18538
18539 fi
18540
18541 LIBICONV=
18542 LTLIBICONV=
18543 INCICONV=
18544 LIBICONV_PREFIX=
18545 HAVE_LIBICONV=
18546 rpathdirs=
18547 ltrpathdirs=
18548 names_already_handled=
18549 names_next_round='iconv '
18550 while test -n "$names_next_round"; do
18551 names_this_round="$names_next_round"
18552 names_next_round=
18553 for name in $names_this_round; do
18554 already_handled=
18555 for n in $names_already_handled; do
18556 if test "$n" = "$name"; then
18557 already_handled=yes
18558 break
18559 fi
18560 done
18561 if test -z "$already_handled"; then
18562 names_already_handled="$names_already_handled $name"
18563 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18564 eval value=\"\$HAVE_LIB$uppername\"
18565 if test -n "$value"; then
18566 if test "$value" = yes; then
18567 eval value=\"\$LIB$uppername\"
18568 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18569 eval value=\"\$LTLIB$uppername\"
18570 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18571 else
18572 :
18573 fi
18574 else
18575 found_dir=
18576 found_la=
18577 found_so=
18578 found_a=
18579 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18580 if test -n "$acl_shlibext"; then
18581 shrext=".$acl_shlibext" # typically: shrext=.so
18582 else
18583 shrext=
18584 fi
18585 if test $use_additional = yes; then
18586 dir="$additional_libdir"
18587 if test -n "$acl_shlibext"; then
18588 if test -f "$dir/$libname$shrext"; then
18589 found_dir="$dir"
18590 found_so="$dir/$libname$shrext"
18591 else
18592 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18593 ver=`(cd "$dir" && \
18594 for f in "$libname$shrext".*; do echo "$f"; done \
18595 | sed -e "s,^$libname$shrext\\\\.,," \
18596 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18597 | sed 1q ) 2>/dev/null`
18598 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18599 found_dir="$dir"
18600 found_so="$dir/$libname$shrext.$ver"
18601 fi
18602 else
18603 eval library_names=\"$acl_library_names_spec\"
18604 for f in $library_names; do
18605 if test -f "$dir/$f"; then
18606 found_dir="$dir"
18607 found_so="$dir/$f"
18608 break
18609 fi
18610 done
18611 fi
18612 fi
18613 fi
18614 if test "X$found_dir" = "X"; then
18615 if test -f "$dir/$libname.$acl_libext"; then
18616 found_dir="$dir"
18617 found_a="$dir/$libname.$acl_libext"
18618 fi
18619 fi
18620 if test "X$found_dir" != "X"; then
18621 if test -f "$dir/$libname.la"; then
18622 found_la="$dir/$libname.la"
18623 fi
18624 fi
18625 fi
18626 if test "X$found_dir" = "X"; then
18627 for x in $LDFLAGS $LTLIBICONV; do
18628
18629 acl_save_prefix="$prefix"
18630 prefix="$acl_final_prefix"
18631 acl_save_exec_prefix="$exec_prefix"
18632 exec_prefix="$acl_final_exec_prefix"
18633 eval x=\"$x\"
18634 exec_prefix="$acl_save_exec_prefix"
18635 prefix="$acl_save_prefix"
18636
18637 case "$x" in
18638 -L*)
18639 dir=`echo "X$x" | sed -e 's/^X-L//'`
18640 if test -n "$acl_shlibext"; then
18641 if test -f "$dir/$libname$shrext"; then
18642 found_dir="$dir"
18643 found_so="$dir/$libname$shrext"
18644 else
18645 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18646 ver=`(cd "$dir" && \
18647 for f in "$libname$shrext".*; do echo "$f"; done \
18648 | sed -e "s,^$libname$shrext\\\\.,," \
18649 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18650 | sed 1q ) 2>/dev/null`
18651 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18652 found_dir="$dir"
18653 found_so="$dir/$libname$shrext.$ver"
18654 fi
18655 else
18656 eval library_names=\"$acl_library_names_spec\"
18657 for f in $library_names; do
18658 if test -f "$dir/$f"; then
18659 found_dir="$dir"
18660 found_so="$dir/$f"
18661 break
18662 fi
18663 done
18664 fi
18665 fi
18666 fi
18667 if test "X$found_dir" = "X"; then
18668 if test -f "$dir/$libname.$acl_libext"; then
18669 found_dir="$dir"
18670 found_a="$dir/$libname.$acl_libext"
18671 fi
18672 fi
18673 if test "X$found_dir" != "X"; then
18674 if test -f "$dir/$libname.la"; then
18675 found_la="$dir/$libname.la"
18676 fi
18677 fi
18678 ;;
18679 esac
18680 if test "X$found_dir" != "X"; then
18681 break
18682 fi
18683 done
18684 fi
18685 if test "X$found_dir" != "X"; then
18686 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18687 if test "X$found_so" != "X"; then
18688 if test "$enable_rpath" = no \
18689 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18690 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18691 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18692 else
18693 haveit=
18694 for x in $ltrpathdirs; do
18695 if test "X$x" = "X$found_dir"; then
18696 haveit=yes
18697 break
18698 fi
18699 done
18700 if test -z "$haveit"; then
18701 ltrpathdirs="$ltrpathdirs $found_dir"
18702 fi
18703 if test "$acl_hardcode_direct" = yes; then
18704 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18705 else
18706 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18707 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18708 haveit=
18709 for x in $rpathdirs; do
18710 if test "X$x" = "X$found_dir"; then
18711 haveit=yes
18712 break
18713 fi
18714 done
18715 if test -z "$haveit"; then
18716 rpathdirs="$rpathdirs $found_dir"
18717 fi
18718 else
18719 haveit=
18720 for x in $LDFLAGS $LIBICONV; do
18721
18722 acl_save_prefix="$prefix"
18723 prefix="$acl_final_prefix"
18724 acl_save_exec_prefix="$exec_prefix"
18725 exec_prefix="$acl_final_exec_prefix"
18726 eval x=\"$x\"
18727 exec_prefix="$acl_save_exec_prefix"
18728 prefix="$acl_save_prefix"
18729
18730 if test "X$x" = "X-L$found_dir"; then
18731 haveit=yes
18732 break
18733 fi
18734 done
18735 if test -z "$haveit"; then
18736 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18737 fi
18738 if test "$acl_hardcode_minus_L" != no; then
18739 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18740 else
18741 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18742 fi
18743 fi
18744 fi
18745 fi
18746 else
18747 if test "X$found_a" != "X"; then
18748 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18749 else
18750 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18751 fi
18752 fi
18753 additional_includedir=
18754 case "$found_dir" in
18755 */$acl_libdirstem | */$acl_libdirstem/)
18756 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18757 if test "$name" = 'iconv'; then
18758 LIBICONV_PREFIX="$basedir"
18759 fi
18760 additional_includedir="$basedir/include"
18761 ;;
18762 */$acl_libdirstem2 | */$acl_libdirstem2/)
18763 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18764 if test "$name" = 'iconv'; then
18765 LIBICONV_PREFIX="$basedir"
18766 fi
18767 additional_includedir="$basedir/include"
18768 ;;
18769 esac
18770 if test "X$additional_includedir" != "X"; then
18771 if test "X$additional_includedir" != "X/usr/include"; then
18772 haveit=
18773 if test "X$additional_includedir" = "X/usr/local/include"; then
18774 if test -n "$GCC"; then
18775 case $host_os in
18776 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18777 esac
18778 fi
18779 fi
18780 if test -z "$haveit"; then
18781 for x in $CPPFLAGS $INCICONV; do
18782
18783 acl_save_prefix="$prefix"
18784 prefix="$acl_final_prefix"
18785 acl_save_exec_prefix="$exec_prefix"
18786 exec_prefix="$acl_final_exec_prefix"
18787 eval x=\"$x\"
18788 exec_prefix="$acl_save_exec_prefix"
18789 prefix="$acl_save_prefix"
18790
18791 if test "X$x" = "X-I$additional_includedir"; then
18792 haveit=yes
18793 break
18794 fi
18795 done
18796 if test -z "$haveit"; then
18797 if test -d "$additional_includedir"; then
18798 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18799 fi
18800 fi
18801 fi
18802 fi
18803 fi
18804 if test -n "$found_la"; then
18805 save_libdir="$libdir"
18806 case "$found_la" in
18807 */* | *\\*) . "$found_la" ;;
18808 *) . "./$found_la" ;;
18809 esac
18810 libdir="$save_libdir"
18811 for dep in $dependency_libs; do
18812 case "$dep" in
18813 -L*)
18814 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18815 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18816 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18817 haveit=
18818 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18819 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18820 if test -n "$GCC"; then
18821 case $host_os in
18822 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18823 esac
18824 fi
18825 fi
18826 if test -z "$haveit"; then
18827 haveit=
18828 for x in $LDFLAGS $LIBICONV; do
18829
18830 acl_save_prefix="$prefix"
18831 prefix="$acl_final_prefix"
18832 acl_save_exec_prefix="$exec_prefix"
18833 exec_prefix="$acl_final_exec_prefix"
18834 eval x=\"$x\"
18835 exec_prefix="$acl_save_exec_prefix"
18836 prefix="$acl_save_prefix"
18837
18838 if test "X$x" = "X-L$additional_libdir"; then
18839 haveit=yes
18840 break
18841 fi
18842 done
18843 if test -z "$haveit"; then
18844 if test -d "$additional_libdir"; then
18845 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18846 fi
18847 fi
18848 haveit=
18849 for x in $LDFLAGS $LTLIBICONV; do
18850
18851 acl_save_prefix="$prefix"
18852 prefix="$acl_final_prefix"
18853 acl_save_exec_prefix="$exec_prefix"
18854 exec_prefix="$acl_final_exec_prefix"
18855 eval x=\"$x\"
18856 exec_prefix="$acl_save_exec_prefix"
18857 prefix="$acl_save_prefix"
18858
18859 if test "X$x" = "X-L$additional_libdir"; then
18860 haveit=yes
18861 break
18862 fi
18863 done
18864 if test -z "$haveit"; then
18865 if test -d "$additional_libdir"; then
18866 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18867 fi
18868 fi
18869 fi
18870 fi
18871 ;;
18872 -R*)
18873 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18874 if test "$enable_rpath" != no; then
18875 haveit=
18876 for x in $rpathdirs; do
18877 if test "X$x" = "X$dir"; then
18878 haveit=yes
18879 break
18880 fi
18881 done
18882 if test -z "$haveit"; then
18883 rpathdirs="$rpathdirs $dir"
18884 fi
18885 haveit=
18886 for x in $ltrpathdirs; do
18887 if test "X$x" = "X$dir"; then
18888 haveit=yes
18889 break
18890 fi
18891 done
18892 if test -z "$haveit"; then
18893 ltrpathdirs="$ltrpathdirs $dir"
18894 fi
18895 fi
18896 ;;
18897 -l*)
18898 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18899 ;;
18900 *.la)
18901 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18902 ;;
18903 *)
18904 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18905 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18906 ;;
18907 esac
18908 done
18909 fi
18910 else
18911 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18912 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18913 fi
18914 fi
18915 fi
18916 done
18917 done
18918 if test "X$rpathdirs" != "X"; then
18919 if test -n "$acl_hardcode_libdir_separator"; then
18920 alldirs=
18921 for found_dir in $rpathdirs; do
18922 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18923 done
18924 acl_save_libdir="$libdir"
18925 libdir="$alldirs"
18926 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18927 libdir="$acl_save_libdir"
18928 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18929 else
18930 for found_dir in $rpathdirs; do
18931 acl_save_libdir="$libdir"
18932 libdir="$found_dir"
18933 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18934 libdir="$acl_save_libdir"
18935 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18936 done
18937 fi
18938 fi
18939 if test "X$ltrpathdirs" != "X"; then
18940 for found_dir in $ltrpathdirs; do
18941 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18942 done
18943 fi
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18976 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
18977 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
18978 then :
18979 printf %s "(cached) " >&6
18980 else case e in #(
18981 e) gt_save_LIBS="$LIBS"
18982 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18984 /* end confdefs.h. */
18985 #include <CoreFoundation/CFPreferences.h>
18986 int
18987 main (void)
18988 {
18989 CFPreferencesCopyAppValue(NULL, NULL)
18990 ;
18991 return 0;
18992 }
18993 _ACEOF
18994 if ac_fn_c_try_link "$LINENO"
18995 then :
18996 gt_cv_func_CFPreferencesCopyAppValue=yes
18997 else case e in #(
18998 e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
18999 esac
19000 fi
19001 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19002 conftest$ac_exeext conftest.$ac_ext
19003 LIBS="$gt_save_LIBS" ;;
19004 esac
19005 fi
19006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19007 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19008 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19009
19010 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19011
19012 fi
19013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19014 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
19015 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
19016 then :
19017 printf %s "(cached) " >&6
19018 else case e in #(
19019 e) gt_save_LIBS="$LIBS"
19020 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19022 /* end confdefs.h. */
19023 #include <CoreFoundation/CFLocale.h>
19024 int
19025 main (void)
19026 {
19027 CFLocaleCopyCurrent();
19028 ;
19029 return 0;
19030 }
19031 _ACEOF
19032 if ac_fn_c_try_link "$LINENO"
19033 then :
19034 gt_cv_func_CFLocaleCopyCurrent=yes
19035 else case e in #(
19036 e) gt_cv_func_CFLocaleCopyCurrent=no ;;
19037 esac
19038 fi
19039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19040 conftest$ac_exeext conftest.$ac_ext
19041 LIBS="$gt_save_LIBS" ;;
19042 esac
19043 fi
19044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19045 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19046 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19047
19048 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19049
19050 fi
19051 INTL_MACOSX_LIBS=
19052 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19053 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19054 fi
19055
19056
19057
19058
19059
19060
19061 LIBINTL=
19062 LTLIBINTL=
19063 POSUB=
19064
19065 case " $gt_needs " in
19066 *" need-formatstring-macros "*) gt_api_version=3 ;;
19067 *" need-ngettext "*) gt_api_version=2 ;;
19068 *) gt_api_version=1 ;;
19069 esac
19070 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
19071 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
19072
19073 if test "$USE_NLS" = "yes"; then
19074 gt_use_preinstalled_gnugettext=no
19075
19076
19077 if test $gt_api_version -ge 3; then
19078 gt_revision_test_code='
19079 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19080 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
19081 #endif
19082 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
19083 '
19084 else
19085 gt_revision_test_code=
19086 fi
19087 if test $gt_api_version -ge 2; then
19088 gt_expression_test_code=' + * ngettext ("", "", 0)'
19089 else
19090 gt_expression_test_code=
19091 fi
19092
19093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19094 printf %s "checking for GNU gettext in libc... " >&6; }
19095 if eval test \${$gt_func_gnugettext_libc+y}
19096 then :
19097 printf %s "(cached) " >&6
19098 else case e in #(
19099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h. */
19101
19102 #include <libintl.h>
19103 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19104 extern int _nl_msg_cat_cntr;
19105 extern int *_nl_domain_bindings;
19106 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
19107 #else
19108 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
19109 #endif
19110 $gt_revision_test_code
19111
19112 int
19113 main (void)
19114 {
19115
19116 bindtextdomain ("", "");
19117 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
19118
19119 ;
19120 return 0;
19121 }
19122 _ACEOF
19123 if ac_fn_c_try_link "$LINENO"
19124 then :
19125 eval "$gt_func_gnugettext_libc=yes"
19126 else case e in #(
19127 e) eval "$gt_func_gnugettext_libc=no" ;;
19128 esac
19129 fi
19130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19131 conftest$ac_exeext conftest.$ac_ext ;;
19132 esac
19133 fi
19134 eval ac_res=\$$gt_func_gnugettext_libc
19135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19136 printf "%s\n" "$ac_res" >&6; }
19137
19138 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
19139
19140
19141
19142
19143
19144 am_save_CPPFLAGS="$CPPFLAGS"
19145
19146 for element in $INCICONV; do
19147 haveit=
19148 for x in $CPPFLAGS; do
19149
19150 acl_save_prefix="$prefix"
19151 prefix="$acl_final_prefix"
19152 acl_save_exec_prefix="$exec_prefix"
19153 exec_prefix="$acl_final_exec_prefix"
19154 eval x=\"$x\"
19155 exec_prefix="$acl_save_exec_prefix"
19156 prefix="$acl_save_prefix"
19157
19158 if test "X$x" = "X$element"; then
19159 haveit=yes
19160 break
19161 fi
19162 done
19163 if test -z "$haveit"; then
19164 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19165 fi
19166 done
19167
19168
19169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19170 printf %s "checking for iconv... " >&6; }
19171 if test ${am_cv_func_iconv+y}
19172 then :
19173 printf %s "(cached) " >&6
19174 else case e in #(
19175 e)
19176 am_cv_func_iconv="no, consider installing GNU libiconv"
19177 am_cv_lib_iconv=no
19178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19179 /* end confdefs.h. */
19180
19181 #include <stdlib.h>
19182 #include <iconv.h>
19183
19184 int
19185 main (void)
19186 {
19187 iconv_t cd = iconv_open("","");
19188 iconv(cd,NULL,NULL,NULL,NULL);
19189 iconv_close(cd);
19190 ;
19191 return 0;
19192 }
19193 _ACEOF
19194 if ac_fn_c_try_link "$LINENO"
19195 then :
19196 am_cv_func_iconv=yes
19197 fi
19198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19199 conftest$ac_exeext conftest.$ac_ext
19200 if test "$am_cv_func_iconv" != yes; then
19201 am_save_LIBS="$LIBS"
19202 LIBS="$LIBS $LIBICONV"
19203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19204 /* end confdefs.h. */
19205
19206 #include <stdlib.h>
19207 #include <iconv.h>
19208
19209 int
19210 main (void)
19211 {
19212 iconv_t cd = iconv_open("","");
19213 iconv(cd,NULL,NULL,NULL,NULL);
19214 iconv_close(cd);
19215 ;
19216 return 0;
19217 }
19218 _ACEOF
19219 if ac_fn_c_try_link "$LINENO"
19220 then :
19221 am_cv_lib_iconv=yes
19222 am_cv_func_iconv=yes
19223 fi
19224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19225 conftest$ac_exeext conftest.$ac_ext
19226 LIBS="$am_save_LIBS"
19227 fi
19228 ;;
19229 esac
19230 fi
19231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19232 printf "%s\n" "$am_cv_func_iconv" >&6; }
19233 if test "$am_cv_func_iconv" = yes; then
19234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19235 printf %s "checking for working iconv... " >&6; }
19236 if test ${am_cv_func_iconv_works+y}
19237 then :
19238 printf %s "(cached) " >&6
19239 else case e in #(
19240 e)
19241 am_save_LIBS="$LIBS"
19242 if test $am_cv_lib_iconv = yes; then
19243 LIBS="$LIBS $LIBICONV"
19244 fi
19245 am_cv_func_iconv_works=no
19246 for ac_iconv_const in '' 'const'; do
19247 if test "$cross_compiling" = yes
19248 then :
19249 case "$host_os" in
19250 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19251 *) am_cv_func_iconv_works="guessing yes" ;;
19252 esac
19253 else case e in #(
19254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19255 /* end confdefs.h. */
19256
19257 #include <iconv.h>
19258 #include <string.h>
19259
19260 #ifndef ICONV_CONST
19261 # define ICONV_CONST $ac_iconv_const
19262 #endif
19263
19264 int
19265 main (void)
19266 {
19267 int result = 0;
19268 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
19269 returns. */
19270 {
19271 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19272 if (cd_utf8_to_88591 != (iconv_t)(-1))
19273 {
19274 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
19275 char buf[10];
19276 ICONV_CONST char *inptr = input;
19277 size_t inbytesleft = strlen (input);
19278 char *outptr = buf;
19279 size_t outbytesleft = sizeof (buf);
19280 size_t res = iconv (cd_utf8_to_88591,
19281 &inptr, &inbytesleft,
19282 &outptr, &outbytesleft);
19283 if (res == 0)
19284 result |= 1;
19285 iconv_close (cd_utf8_to_88591);
19286 }
19287 }
19288 /* Test against Solaris 10 bug: Failures are not distinguishable from
19289 successful returns. */
19290 {
19291 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
19292 if (cd_ascii_to_88591 != (iconv_t)(-1))
19293 {
19294 static ICONV_CONST char input[] = "\263";
19295 char buf[10];
19296 ICONV_CONST char *inptr = input;
19297 size_t inbytesleft = strlen (input);
19298 char *outptr = buf;
19299 size_t outbytesleft = sizeof (buf);
19300 size_t res = iconv (cd_ascii_to_88591,
19301 &inptr, &inbytesleft,
19302 &outptr, &outbytesleft);
19303 if (res == 0)
19304 result |= 2;
19305 iconv_close (cd_ascii_to_88591);
19306 }
19307 }
19308 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
19309 {
19310 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
19311 if (cd_88591_to_utf8 != (iconv_t)(-1))
19312 {
19313 static ICONV_CONST char input[] = "\304";
19314 static char buf[2] = { (char)0xDE, (char)0xAD };
19315 ICONV_CONST char *inptr = input;
19316 size_t inbytesleft = 1;
19317 char *outptr = buf;
19318 size_t outbytesleft = 1;
19319 size_t res = iconv (cd_88591_to_utf8,
19320 &inptr, &inbytesleft,
19321 &outptr, &outbytesleft);
19322 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
19323 result |= 4;
19324 iconv_close (cd_88591_to_utf8);
19325 }
19326 }
19327 #if 0 /* This bug could be worked around by the caller. */
19328 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
19329 {
19330 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19331 if (cd_88591_to_utf8 != (iconv_t)(-1))
19332 {
19333 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19334 char buf[50];
19335 ICONV_CONST char *inptr = input;
19336 size_t inbytesleft = strlen (input);
19337 char *outptr = buf;
19338 size_t outbytesleft = sizeof (buf);
19339 size_t res = iconv (cd_88591_to_utf8,
19340 &inptr, &inbytesleft,
19341 &outptr, &outbytesleft);
19342 if ((int)res > 0)
19343 result |= 8;
19344 iconv_close (cd_88591_to_utf8);
19345 }
19346 }
19347 #endif
19348 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19349 provided. */
19350 if (/* Try standardized names. */
19351 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
19352 /* Try IRIX, OSF/1 names. */
19353 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
19354 /* Try AIX names. */
19355 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
19356 /* Try HP-UX names. */
19357 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
19358 result |= 16;
19359 return result;
19360
19361 ;
19362 return 0;
19363 }
19364 _ACEOF
19365 if ac_fn_c_try_run "$LINENO"
19366 then :
19367 am_cv_func_iconv_works=yes
19368 fi
19369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19370 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19371 esac
19372 fi
19373
19374 test "$am_cv_func_iconv_works" = no || break
19375 done
19376 LIBS="$am_save_LIBS"
19377 ;;
19378 esac
19379 fi
19380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19381 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
19382 case "$am_cv_func_iconv_works" in
19383 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19384 *) am_func_iconv=yes ;;
19385 esac
19386 else
19387 am_func_iconv=no am_cv_lib_iconv=no
19388 fi
19389 if test "$am_func_iconv" = yes; then
19390
19391 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
19392
19393 fi
19394 if test "$am_cv_lib_iconv" = yes; then
19395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19396 printf %s "checking how to link with libiconv... " >&6; }
19397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19398 printf "%s\n" "$LIBICONV" >&6; }
19399 else
19400 CPPFLAGS="$am_save_CPPFLAGS"
19401 LIBICONV=
19402 LTLIBICONV=
19403 fi
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415 use_additional=yes
19416
19417 acl_save_prefix="$prefix"
19418 prefix="$acl_final_prefix"
19419 acl_save_exec_prefix="$exec_prefix"
19420 exec_prefix="$acl_final_exec_prefix"
19421
19422 eval additional_includedir=\"$includedir\"
19423 eval additional_libdir=\"$libdir\"
19424
19425 exec_prefix="$acl_save_exec_prefix"
19426 prefix="$acl_save_prefix"
19427
19428
19429 # Check whether --with-libintl-prefix was given.
19430 if test ${with_libintl_prefix+y}
19431 then :
19432 withval=$with_libintl_prefix;
19433 if test "X$withval" = "Xno"; then
19434 use_additional=no
19435 else
19436 if test "X$withval" = "X"; then
19437
19438 acl_save_prefix="$prefix"
19439 prefix="$acl_final_prefix"
19440 acl_save_exec_prefix="$exec_prefix"
19441 exec_prefix="$acl_final_exec_prefix"
19442
19443 eval additional_includedir=\"$includedir\"
19444 eval additional_libdir=\"$libdir\"
19445
19446 exec_prefix="$acl_save_exec_prefix"
19447 prefix="$acl_save_prefix"
19448
19449 else
19450 additional_includedir="$withval/include"
19451 additional_libdir="$withval/$acl_libdirstem"
19452 if test "$acl_libdirstem2" != "$acl_libdirstem" \
19453 && ! test -d "$withval/$acl_libdirstem"; then
19454 additional_libdir="$withval/$acl_libdirstem2"
19455 fi
19456 fi
19457 fi
19458
19459 fi
19460
19461 LIBINTL=
19462 LTLIBINTL=
19463 INCINTL=
19464 LIBINTL_PREFIX=
19465 HAVE_LIBINTL=
19466 rpathdirs=
19467 ltrpathdirs=
19468 names_already_handled=
19469 names_next_round='intl '
19470 while test -n "$names_next_round"; do
19471 names_this_round="$names_next_round"
19472 names_next_round=
19473 for name in $names_this_round; do
19474 already_handled=
19475 for n in $names_already_handled; do
19476 if test "$n" = "$name"; then
19477 already_handled=yes
19478 break
19479 fi
19480 done
19481 if test -z "$already_handled"; then
19482 names_already_handled="$names_already_handled $name"
19483 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19484 eval value=\"\$HAVE_LIB$uppername\"
19485 if test -n "$value"; then
19486 if test "$value" = yes; then
19487 eval value=\"\$LIB$uppername\"
19488 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19489 eval value=\"\$LTLIB$uppername\"
19490 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19491 else
19492 :
19493 fi
19494 else
19495 found_dir=
19496 found_la=
19497 found_so=
19498 found_a=
19499 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19500 if test -n "$acl_shlibext"; then
19501 shrext=".$acl_shlibext" # typically: shrext=.so
19502 else
19503 shrext=
19504 fi
19505 if test $use_additional = yes; then
19506 dir="$additional_libdir"
19507 if test -n "$acl_shlibext"; then
19508 if test -f "$dir/$libname$shrext"; then
19509 found_dir="$dir"
19510 found_so="$dir/$libname$shrext"
19511 else
19512 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19513 ver=`(cd "$dir" && \
19514 for f in "$libname$shrext".*; do echo "$f"; done \
19515 | sed -e "s,^$libname$shrext\\\\.,," \
19516 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19517 | sed 1q ) 2>/dev/null`
19518 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19519 found_dir="$dir"
19520 found_so="$dir/$libname$shrext.$ver"
19521 fi
19522 else
19523 eval library_names=\"$acl_library_names_spec\"
19524 for f in $library_names; do
19525 if test -f "$dir/$f"; then
19526 found_dir="$dir"
19527 found_so="$dir/$f"
19528 break
19529 fi
19530 done
19531 fi
19532 fi
19533 fi
19534 if test "X$found_dir" = "X"; then
19535 if test -f "$dir/$libname.$acl_libext"; then
19536 found_dir="$dir"
19537 found_a="$dir/$libname.$acl_libext"
19538 fi
19539 fi
19540 if test "X$found_dir" != "X"; then
19541 if test -f "$dir/$libname.la"; then
19542 found_la="$dir/$libname.la"
19543 fi
19544 fi
19545 fi
19546 if test "X$found_dir" = "X"; then
19547 for x in $LDFLAGS $LTLIBINTL; do
19548
19549 acl_save_prefix="$prefix"
19550 prefix="$acl_final_prefix"
19551 acl_save_exec_prefix="$exec_prefix"
19552 exec_prefix="$acl_final_exec_prefix"
19553 eval x=\"$x\"
19554 exec_prefix="$acl_save_exec_prefix"
19555 prefix="$acl_save_prefix"
19556
19557 case "$x" in
19558 -L*)
19559 dir=`echo "X$x" | sed -e 's/^X-L//'`
19560 if test -n "$acl_shlibext"; then
19561 if test -f "$dir/$libname$shrext"; then
19562 found_dir="$dir"
19563 found_so="$dir/$libname$shrext"
19564 else
19565 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19566 ver=`(cd "$dir" && \
19567 for f in "$libname$shrext".*; do echo "$f"; done \
19568 | sed -e "s,^$libname$shrext\\\\.,," \
19569 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19570 | sed 1q ) 2>/dev/null`
19571 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19572 found_dir="$dir"
19573 found_so="$dir/$libname$shrext.$ver"
19574 fi
19575 else
19576 eval library_names=\"$acl_library_names_spec\"
19577 for f in $library_names; do
19578 if test -f "$dir/$f"; then
19579 found_dir="$dir"
19580 found_so="$dir/$f"
19581 break
19582 fi
19583 done
19584 fi
19585 fi
19586 fi
19587 if test "X$found_dir" = "X"; then
19588 if test -f "$dir/$libname.$acl_libext"; then
19589 found_dir="$dir"
19590 found_a="$dir/$libname.$acl_libext"
19591 fi
19592 fi
19593 if test "X$found_dir" != "X"; then
19594 if test -f "$dir/$libname.la"; then
19595 found_la="$dir/$libname.la"
19596 fi
19597 fi
19598 ;;
19599 esac
19600 if test "X$found_dir" != "X"; then
19601 break
19602 fi
19603 done
19604 fi
19605 if test "X$found_dir" != "X"; then
19606 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19607 if test "X$found_so" != "X"; then
19608 if test "$enable_rpath" = no \
19609 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19610 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19611 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19612 else
19613 haveit=
19614 for x in $ltrpathdirs; do
19615 if test "X$x" = "X$found_dir"; then
19616 haveit=yes
19617 break
19618 fi
19619 done
19620 if test -z "$haveit"; then
19621 ltrpathdirs="$ltrpathdirs $found_dir"
19622 fi
19623 if test "$acl_hardcode_direct" = yes; then
19624 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19625 else
19626 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19627 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19628 haveit=
19629 for x in $rpathdirs; do
19630 if test "X$x" = "X$found_dir"; then
19631 haveit=yes
19632 break
19633 fi
19634 done
19635 if test -z "$haveit"; then
19636 rpathdirs="$rpathdirs $found_dir"
19637 fi
19638 else
19639 haveit=
19640 for x in $LDFLAGS $LIBINTL; do
19641
19642 acl_save_prefix="$prefix"
19643 prefix="$acl_final_prefix"
19644 acl_save_exec_prefix="$exec_prefix"
19645 exec_prefix="$acl_final_exec_prefix"
19646 eval x=\"$x\"
19647 exec_prefix="$acl_save_exec_prefix"
19648 prefix="$acl_save_prefix"
19649
19650 if test "X$x" = "X-L$found_dir"; then
19651 haveit=yes
19652 break
19653 fi
19654 done
19655 if test -z "$haveit"; then
19656 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19657 fi
19658 if test "$acl_hardcode_minus_L" != no; then
19659 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19660 else
19661 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19662 fi
19663 fi
19664 fi
19665 fi
19666 else
19667 if test "X$found_a" != "X"; then
19668 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
19669 else
19670 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
19671 fi
19672 fi
19673 additional_includedir=
19674 case "$found_dir" in
19675 */$acl_libdirstem | */$acl_libdirstem/)
19676 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19677 if test "$name" = 'intl'; then
19678 LIBINTL_PREFIX="$basedir"
19679 fi
19680 additional_includedir="$basedir/include"
19681 ;;
19682 */$acl_libdirstem2 | */$acl_libdirstem2/)
19683 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19684 if test "$name" = 'intl'; then
19685 LIBINTL_PREFIX="$basedir"
19686 fi
19687 additional_includedir="$basedir/include"
19688 ;;
19689 esac
19690 if test "X$additional_includedir" != "X"; then
19691 if test "X$additional_includedir" != "X/usr/include"; then
19692 haveit=
19693 if test "X$additional_includedir" = "X/usr/local/include"; then
19694 if test -n "$GCC"; then
19695 case $host_os in
19696 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19697 esac
19698 fi
19699 fi
19700 if test -z "$haveit"; then
19701 for x in $CPPFLAGS $INCINTL; do
19702
19703 acl_save_prefix="$prefix"
19704 prefix="$acl_final_prefix"
19705 acl_save_exec_prefix="$exec_prefix"
19706 exec_prefix="$acl_final_exec_prefix"
19707 eval x=\"$x\"
19708 exec_prefix="$acl_save_exec_prefix"
19709 prefix="$acl_save_prefix"
19710
19711 if test "X$x" = "X-I$additional_includedir"; then
19712 haveit=yes
19713 break
19714 fi
19715 done
19716 if test -z "$haveit"; then
19717 if test -d "$additional_includedir"; then
19718 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
19719 fi
19720 fi
19721 fi
19722 fi
19723 fi
19724 if test -n "$found_la"; then
19725 save_libdir="$libdir"
19726 case "$found_la" in
19727 */* | *\\*) . "$found_la" ;;
19728 *) . "./$found_la" ;;
19729 esac
19730 libdir="$save_libdir"
19731 for dep in $dependency_libs; do
19732 case "$dep" in
19733 -L*)
19734 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19735 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19736 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19737 haveit=
19738 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19739 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19740 if test -n "$GCC"; then
19741 case $host_os in
19742 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19743 esac
19744 fi
19745 fi
19746 if test -z "$haveit"; then
19747 haveit=
19748 for x in $LDFLAGS $LIBINTL; do
19749
19750 acl_save_prefix="$prefix"
19751 prefix="$acl_final_prefix"
19752 acl_save_exec_prefix="$exec_prefix"
19753 exec_prefix="$acl_final_exec_prefix"
19754 eval x=\"$x\"
19755 exec_prefix="$acl_save_exec_prefix"
19756 prefix="$acl_save_prefix"
19757
19758 if test "X$x" = "X-L$additional_libdir"; then
19759 haveit=yes
19760 break
19761 fi
19762 done
19763 if test -z "$haveit"; then
19764 if test -d "$additional_libdir"; then
19765 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
19766 fi
19767 fi
19768 haveit=
19769 for x in $LDFLAGS $LTLIBINTL; do
19770
19771 acl_save_prefix="$prefix"
19772 prefix="$acl_final_prefix"
19773 acl_save_exec_prefix="$exec_prefix"
19774 exec_prefix="$acl_final_exec_prefix"
19775 eval x=\"$x\"
19776 exec_prefix="$acl_save_exec_prefix"
19777 prefix="$acl_save_prefix"
19778
19779 if test "X$x" = "X-L$additional_libdir"; then
19780 haveit=yes
19781 break
19782 fi
19783 done
19784 if test -z "$haveit"; then
19785 if test -d "$additional_libdir"; then
19786 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
19787 fi
19788 fi
19789 fi
19790 fi
19791 ;;
19792 -R*)
19793 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19794 if test "$enable_rpath" != no; then
19795 haveit=
19796 for x in $rpathdirs; do
19797 if test "X$x" = "X$dir"; then
19798 haveit=yes
19799 break
19800 fi
19801 done
19802 if test -z "$haveit"; then
19803 rpathdirs="$rpathdirs $dir"
19804 fi
19805 haveit=
19806 for x in $ltrpathdirs; do
19807 if test "X$x" = "X$dir"; then
19808 haveit=yes
19809 break
19810 fi
19811 done
19812 if test -z "$haveit"; then
19813 ltrpathdirs="$ltrpathdirs $dir"
19814 fi
19815 fi
19816 ;;
19817 -l*)
19818 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19819 ;;
19820 *.la)
19821 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19822 ;;
19823 *)
19824 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
19825 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
19826 ;;
19827 esac
19828 done
19829 fi
19830 else
19831 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19832 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
19833 fi
19834 fi
19835 fi
19836 done
19837 done
19838 if test "X$rpathdirs" != "X"; then
19839 if test -n "$acl_hardcode_libdir_separator"; then
19840 alldirs=
19841 for found_dir in $rpathdirs; do
19842 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19843 done
19844 acl_save_libdir="$libdir"
19845 libdir="$alldirs"
19846 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19847 libdir="$acl_save_libdir"
19848 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19849 else
19850 for found_dir in $rpathdirs; do
19851 acl_save_libdir="$libdir"
19852 libdir="$found_dir"
19853 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19854 libdir="$acl_save_libdir"
19855 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19856 done
19857 fi
19858 fi
19859 if test "X$ltrpathdirs" != "X"; then
19860 for found_dir in $ltrpathdirs; do
19861 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
19862 done
19863 fi
19864
19865
19866
19867
19868
19869
19870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
19871 printf %s "checking for GNU gettext in libintl... " >&6; }
19872 if eval test \${$gt_func_gnugettext_libintl+y}
19873 then :
19874 printf %s "(cached) " >&6
19875 else case e in #(
19876 e) gt_save_CPPFLAGS="$CPPFLAGS"
19877 CPPFLAGS="$CPPFLAGS $INCINTL"
19878 gt_save_LIBS="$LIBS"
19879 LIBS="$LIBS $LIBINTL"
19880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h. */
19882
19883 #include <libintl.h>
19884 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19885 extern int _nl_msg_cat_cntr;
19886 extern
19887 #ifdef __cplusplus
19888 "C"
19889 #endif
19890 const char *_nl_expand_alias (const char *);
19891 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
19892 #else
19893 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
19894 #endif
19895 $gt_revision_test_code
19896
19897 int
19898 main (void)
19899 {
19900
19901 bindtextdomain ("", "");
19902 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
19903
19904 ;
19905 return 0;
19906 }
19907 _ACEOF
19908 if ac_fn_c_try_link "$LINENO"
19909 then :
19910 eval "$gt_func_gnugettext_libintl=yes"
19911 else case e in #(
19912 e) eval "$gt_func_gnugettext_libintl=no" ;;
19913 esac
19914 fi
19915 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19916 conftest$ac_exeext conftest.$ac_ext
19917 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
19918 LIBS="$LIBS $LIBICONV"
19919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19920 /* end confdefs.h. */
19921
19922 #include <libintl.h>
19923 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19924 extern int _nl_msg_cat_cntr;
19925 extern
19926 #ifdef __cplusplus
19927 "C"
19928 #endif
19929 const char *_nl_expand_alias (const char *);
19930 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
19931 #else
19932 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
19933 #endif
19934 $gt_revision_test_code
19935
19936 int
19937 main (void)
19938 {
19939
19940 bindtextdomain ("", "");
19941 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
19942
19943 ;
19944 return 0;
19945 }
19946 _ACEOF
19947 if ac_fn_c_try_link "$LINENO"
19948 then :
19949 LIBINTL="$LIBINTL $LIBICONV"
19950 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
19951 eval "$gt_func_gnugettext_libintl=yes"
19952
19953 fi
19954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19955 conftest$ac_exeext conftest.$ac_ext
19956 fi
19957 CPPFLAGS="$gt_save_CPPFLAGS"
19958 LIBS="$gt_save_LIBS" ;;
19959 esac
19960 fi
19961 eval ac_res=\$$gt_func_gnugettext_libintl
19962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19963 printf "%s\n" "$ac_res" >&6; }
19964 fi
19965
19966 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
19967 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
19968 && test "$PACKAGE" != gettext-runtime \
19969 && test "$PACKAGE" != gettext-tools; }; then
19970 gt_use_preinstalled_gnugettext=yes
19971 else
19972 LIBINTL=
19973 LTLIBINTL=
19974 INCINTL=
19975 fi
19976
19977
19978
19979 if test -n "$INTL_MACOSX_LIBS"; then
19980 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19981 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19982 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
19983 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
19984 fi
19985 fi
19986
19987 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19988 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19989
19990 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
19991
19992 else
19993 USE_NLS=no
19994 fi
19995 fi
19996
19997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
19998 printf %s "checking whether to use NLS... " >&6; }
19999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20000 printf "%s\n" "$USE_NLS" >&6; }
20001 if test "$USE_NLS" = "yes"; then
20002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20003 printf %s "checking where the gettext function comes from... " >&6; }
20004 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20005 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20006 gt_source="external libintl"
20007 else
20008 gt_source="libc"
20009 fi
20010 else
20011 gt_source="included intl directory"
20012 fi
20013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20014 printf "%s\n" "$gt_source" >&6; }
20015 fi
20016
20017 if test "$USE_NLS" = "yes"; then
20018
20019 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20020 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20022 printf %s "checking how to link with libintl... " >&6; }
20023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20024 printf "%s\n" "$LIBINTL" >&6; }
20025
20026 for element in $INCINTL; do
20027 haveit=
20028 for x in $CPPFLAGS; do
20029
20030 acl_save_prefix="$prefix"
20031 prefix="$acl_final_prefix"
20032 acl_save_exec_prefix="$exec_prefix"
20033 exec_prefix="$acl_final_exec_prefix"
20034 eval x=\"$x\"
20035 exec_prefix="$acl_save_exec_prefix"
20036 prefix="$acl_save_prefix"
20037
20038 if test "X$x" = "X$element"; then
20039 haveit=yes
20040 break
20041 fi
20042 done
20043 if test -z "$haveit"; then
20044 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20045 fi
20046 done
20047
20048 fi
20049
20050
20051 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
20052
20053
20054 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
20055
20056 fi
20057
20058 POSUB=po
20059 fi
20060
20061
20062
20063 INTLLIBS="$LIBINTL"
20064
20065
20066
20067
20068
20069
20070
20071 GETTEXT_PACKAGE=udisks2
20072
20073
20074 printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
20075
20076
20077 # explicit check for msgfmt, needed for polkit files processing
20078 if test -z "$MSGFMT" -o "$MSGFMT" = ":"
20079 then :
20080
20081 as_fn_error $? "msgfmt not found (gettext package)" "$LINENO" 5
20082
20083 fi
20084
20085
20086 printf "%s\n" "#define PROJECT_SYSCONF_DIR \"udisks2\"" >>confdefs.h
20087
20088
20089 printf "%s\n" "#define PACKAGE_NAME_UDISKS2 \"udisks2\"" >>confdefs.h
20090
20091
20092 # Generate
20093 #
20094
20095 if test "x$enable_modules" = "xyes"; then
20096 enable_modules_info=yes
20097 elif test "x$enable_available_modules" = "xyes"; then
20098 enable_modules_info=available
20099 else
20100 enable_modules_info=no
20101 fi
20102
20103 ac_config_files="$ac_config_files Makefile data/Makefile data/tmpfiles.d/Makefile udisks/Makefile udisks/udisks2.conf udisks/udisks2.pc udisks/modules.conf.d/Makefile udisks/modules.conf.d/udisks2_lsm.conf src/Makefile src/tests/Makefile src/tests/dbus-tests/Makefile tools/Makefile modules/Makefile modules/btrfs/Makefile modules/btrfs/data/Makefile modules/btrfs/data/udisks2-btrfs.pc modules/iscsi/Makefile modules/iscsi/data/Makefile modules/iscsi/data/udisks2-iscsi.pc modules/lvm2/Makefile modules/lvm2/data/Makefile modules/lvm2/data/udisks2-lvm2.pc modules/lsm/Makefile modules/lsm/data/Makefile modules/lsm/data/udisks2-lsm.pc doc/Makefile doc/udisks2-docs.xml.in doc/udisks2-sections.txt.in doc/udisks2.types.in doc/version.xml doc/man/Makefile doc/man/udisks.xml doc/man/udisksd.xml doc/man/udisksctl.xml doc/man/umount.udisks2.xml doc/man/udisks2.conf.5.xml.in doc/man/udisks2_lsm.conf.5.xml.in doc/udisks2-docs.xml.daemon.man doc/udisks2-docs.xml.daemon.part doc/udisks2-sections.txt.daemon.sections doc/udisks2.types.daemon doc/udisks2-docs.xml.iscsi.dbus doc/udisks2-docs.xml.iscsi.generated doc/udisks2-sections.txt.iscsi.sections doc/udisks2.types.iscsi doc/udisks2-docs.xml.lsm.man doc/udisks2-docs.xml.lsm.dbus doc/udisks2-docs.xml.lsm.generated doc/udisks2-sections.txt.lsm.sections doc/udisks2.types.lsm doc/udisks2-docs.xml.lvm2.dbus doc/udisks2-docs.xml.lvm2.generated doc/udisks2-sections.txt.lvm2.sections doc/udisks2.types.lvm2 doc/udisks2-docs.xml.btrfs.dbus doc/udisks2-docs.xml.btrfs.generated doc/udisks2-sections.txt.btrfs.sections doc/udisks2.types.btrfs po/Makefile.in"
20104
20105 cat >confcache <<\_ACEOF
20106 # This file is a shell script that caches the results of configure
20107 # tests run on this system so they can be shared between configure
20108 # scripts and configure runs, see configure's option --config-cache.
20109 # It is not useful on other systems. If it contains results you don't
20110 # want to keep, you may remove or edit it.
20111 #
20112 # config.status only pays attention to the cache file if you give it
20113 # the --recheck option to rerun configure.
20114 #
20115 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20116 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20117 # following values.
20118
20119 _ACEOF
20120
20121 # The following way of writing the cache mishandles newlines in values,
20122 # but we know of no workaround that is simple, portable, and efficient.
20123 # So, we kill variables containing newlines.
20124 # Ultrix sh set writes to stderr and can't be redirected directly,
20125 # and sets the high bit in the cache file unless we assign to the vars.
20126 (
20127 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20128 eval ac_val=\$$ac_var
20129 case $ac_val in #(
20130 *${as_nl}*)
20131 case $ac_var in #(
20132 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20133 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20134 esac
20135 case $ac_var in #(
20136 _ | IFS | as_nl) ;; #(
20137 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20138 *) { eval $ac_var=; unset $ac_var;} ;;
20139 esac ;;
20140 esac
20141 done
20142
20143 (set) 2>&1 |
20144 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20145 *${as_nl}ac_space=\ *)
20146 # 'set' does not quote correctly, so add quotes: double-quote
20147 # substitution turns \\\\ into \\, and sed turns \\ into \.
20148 sed -n \
20149 "s/'/'\\\\''/g;
20150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20151 ;; #(
20152 *)
20153 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20155 ;;
20156 esac |
20157 sort
20158 ) |
20159 sed '
20160 /^ac_cv_env_/b end
20161 t clear
20162 :clear
20163 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20164 t end
20165 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20166 :end' >>confcache
20167 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20168 if test -w "$cache_file"; then
20169 if test "x$cache_file" != "x/dev/null"; then
20170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20171 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20172 if test ! -f "$cache_file" || test -h "$cache_file"; then
20173 cat confcache >"$cache_file"
20174 else
20175 case $cache_file in #(
20176 */* | ?:*)
20177 mv -f confcache "$cache_file"$$ &&
20178 mv -f "$cache_file"$$ "$cache_file" ;; #(
20179 *)
20180 mv -f confcache "$cache_file" ;;
20181 esac
20182 fi
20183 fi
20184 else
20185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20186 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20187 fi
20188 fi
20189 rm -f confcache
20190
20191 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20192 # Let make expand exec_prefix.
20193 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20194
20195 DEFS=-DHAVE_CONFIG_H
20196
20197 ac_libobjs=
20198 ac_ltlibobjs=
20199 U=
20200 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20201 # 1. Remove the extension, and $U if already installed.
20202 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20203 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20204 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20205 # will be set to the directory where LIBOBJS objects are built.
20206 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20207 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20208 done
20209 LIBOBJS=$ac_libobjs
20210
20211 LTLIBOBJS=$ac_ltlibobjs
20212
20213
20214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20215 printf %s "checking that generated files are newer than configure... " >&6; }
20216 if test -n "$am_sleep_pid"; then
20217 # Hide warnings about reused PIDs.
20218 wait $am_sleep_pid 2>/dev/null
20219 fi
20220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20221 printf "%s\n" "done" >&6; }
20222 case $enable_silent_rules in # (((
20223 yes) AM_DEFAULT_VERBOSITY=0;;
20224 no) AM_DEFAULT_VERBOSITY=1;;
20225 esac
20226 if test $am_cv_make_support_nested_variables = yes; then
20227 AM_V='$(V)'
20228 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20229 else
20230 AM_V=$AM_DEFAULT_VERBOSITY
20231 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20232 fi
20233
20234 if test -n "$EXEEXT"; then
20235 am__EXEEXT_TRUE=
20236 am__EXEEXT_FALSE='#'
20237 else
20238 am__EXEEXT_TRUE='#'
20239 am__EXEEXT_FALSE=
20240 fi
20241
20242 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20243 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20245 fi
20246 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20247 as_fn_error $? "conditional \"AMDEP\" was never defined.
20248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20249 fi
20250 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20251 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20253 fi
20254 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
20255 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
20256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20257 fi
20258 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
20259 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
20260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20261 fi
20262 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
20263 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
20264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20265 fi
20266 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
20267 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
20268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20269 fi
20270 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
20271 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
20272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20273 fi
20274 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
20275 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
20276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20277 fi
20278 if test -z "${ENABLE_MAN_TRUE}" && test -z "${ENABLE_MAN_FALSE}"; then
20279 as_fn_error $? "conditional \"ENABLE_MAN\" was never defined.
20280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20281 fi
20282 if test -z "${ENABLE_DAEMON_TRUE}" && test -z "${ENABLE_DAEMON_FALSE}"; then
20283 as_fn_error $? "conditional \"ENABLE_DAEMON\" was never defined.
20284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20285 fi
20286 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
20287 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
20288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20289 fi
20290 if test -z "${HAVE_FHS_MEDIA_TRUE}" && test -z "${HAVE_FHS_MEDIA_FALSE}"; then
20291 as_fn_error $? "conditional \"HAVE_FHS_MEDIA\" was never defined.
20292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20293 fi
20294 if test -z "${HAVE_SMART_TRUE}" && test -z "${HAVE_SMART_FALSE}"; then
20295 as_fn_error $? "conditional \"HAVE_SMART\" was never defined.
20296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20297 fi
20298 if test -z "${HAVE_LIBSYSTEMD_LOGIN_TRUE}" && test -z "${HAVE_LIBSYSTEMD_LOGIN_FALSE}"; then
20299 as_fn_error $? "conditional \"HAVE_LIBSYSTEMD_LOGIN\" was never defined.
20300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20301 fi
20302 if test -z "${HAVE_LIBELOGIND_TRUE}" && test -z "${HAVE_LIBELOGIND_FALSE}"; then
20303 as_fn_error $? "conditional \"HAVE_LIBELOGIND\" was never defined.
20304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20305 fi
20306 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
20307 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
20308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20309 fi
20310 if test -z "${HAVE_ACL_TRUE}" && test -z "${HAVE_ACL_FALSE}"; then
20311 as_fn_error $? "conditional \"HAVE_ACL\" was never defined.
20312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20313 fi
20314 if test -z "${HAVE_LVM2_TRUE}" && test -z "${HAVE_LVM2_FALSE}"; then
20315 as_fn_error $? "conditional \"HAVE_LVM2\" was never defined.
20316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20317 fi
20318 if test -z "${HAVE_ISCSI_TRUE}" && test -z "${HAVE_ISCSI_FALSE}"; then
20319 as_fn_error $? "conditional \"HAVE_ISCSI\" was never defined.
20320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20321 fi
20322 if test -z "${BUILD_ISCSI_SESSION_OBJECT_TRUE}" && test -z "${BUILD_ISCSI_SESSION_OBJECT_FALSE}"; then
20323 as_fn_error $? "conditional \"BUILD_ISCSI_SESSION_OBJECT\" was never defined.
20324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20325 fi
20326 if test -z "${HAVE_BTRFS_TRUE}" && test -z "${HAVE_BTRFS_FALSE}"; then
20327 as_fn_error $? "conditional \"HAVE_BTRFS\" was never defined.
20328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20329 fi
20330 if test -z "${HAVE_LSM_TRUE}" && test -z "${HAVE_LSM_FALSE}"; then
20331 as_fn_error $? "conditional \"HAVE_LSM\" was never defined.
20332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20333 fi
20334 if test -z "${HAVE_SMART_TRUE}" && test -z "${HAVE_SMART_FALSE}"; then
20335 as_fn_error $? "conditional \"HAVE_SMART\" was never defined.
20336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20337 fi
20338
20339 : "${CONFIG_STATUS=./config.status}"
20340 ac_write_fail=0
20341 ac_clean_files_save=$ac_clean_files
20342 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20344 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20345 as_write_fail=0
20346 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20347 #! $SHELL
20348 # Generated by $as_me.
20349 # Run this file to recreate the current configuration.
20350 # Compiler output produced by configure, useful for debugging
20351 # configure, is in config.log if it exists.
20352
20353 debug=false
20354 ac_cs_recheck=false
20355 ac_cs_silent=false
20356
20357 SHELL=\${CONFIG_SHELL-$SHELL}
20358 export SHELL
20359 _ASEOF
20360 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20361 ## -------------------- ##
20362 ## M4sh Initialization. ##
20363 ## -------------------- ##
20364
20365 # Be more Bourne compatible
20366 DUALCASE=1; export DUALCASE # for MKS sh
20367 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20368 then :
20369 emulate sh
20370 NULLCMD=:
20371 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20372 # is contrary to our usage. Disable this feature.
20373 alias -g '${1+"$@"}'='"$@"'
20374 setopt NO_GLOB_SUBST
20375 else case e in #(
20376 e) case `(set -o) 2>/dev/null` in #(
20377 *posix*) :
20378 set -o posix ;; #(
20379 *) :
20380 ;;
20381 esac ;;
20382 esac
20383 fi
20384
20385
20386
20387 # Reset variables that may have inherited troublesome values from
20388 # the environment.
20389
20390 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20391 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20392 # side effect of setting IFS to empty, thus disabling word splitting.)
20393 # Quoting is to prevent editors from complaining about space-tab.
20394 as_nl='
20395 '
20396 export as_nl
20397 IFS=" "" $as_nl"
20398
20399 PS1='$ '
20400 PS2='> '
20401 PS4='+ '
20402
20403 # Ensure predictable behavior from utilities with locale-dependent output.
20404 LC_ALL=C
20405 export LC_ALL
20406 LANGUAGE=C
20407 export LANGUAGE
20408
20409 # We cannot yet rely on "unset" to work, but we need these variables
20410 # to be unset--not just set to an empty or harmless value--now, to
20411 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20412 # also avoids known problems related to "unset" and subshell syntax
20413 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20414 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20415 do eval test \${$as_var+y} \
20416 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20417 done
20418
20419 # Ensure that fds 0, 1, and 2 are open.
20420 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20421 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20422 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20423
20424 # The user is always right.
20425 if ${PATH_SEPARATOR+false} :; then
20426 PATH_SEPARATOR=:
20427 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20428 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20429 PATH_SEPARATOR=';'
20430 }
20431 fi
20432
20433
20434 # Find who we are. Look in the path if we contain no directory separator.
20435 as_myself=
20436 case $0 in #((
20437 *[\\/]* ) as_myself=$0 ;;
20438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20439 for as_dir in $PATH
20440 do
20441 IFS=$as_save_IFS
20442 case $as_dir in #(((
20443 '') as_dir=./ ;;
20444 */) ;;
20445 *) as_dir=$as_dir/ ;;
20446 esac
20447 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20448 done
20449 IFS=$as_save_IFS
20450
20451 ;;
20452 esac
20453 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20454 # in which case we are not to be found in the path.
20455 if test "x$as_myself" = x; then
20456 as_myself=$0
20457 fi
20458 if test ! -f "$as_myself"; then
20459 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20460 exit 1
20461 fi
20462
20463
20464
20465 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20466 # ----------------------------------------
20467 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20468 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20469 # script with STATUS, using 1 if that was 0.
20470 as_fn_error ()
20471 {
20472 as_status=$1; test $as_status -eq 0 && as_status=1
20473 if test "$4"; then
20474 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20476 fi
20477 printf "%s\n" "$as_me: error: $2" >&2
20478 as_fn_exit $as_status
20479 } # as_fn_error
20480
20481
20482 # as_fn_set_status STATUS
20483 # -----------------------
20484 # Set $? to STATUS, without forking.
20485 as_fn_set_status ()
20486 {
20487 return $1
20488 } # as_fn_set_status
20489
20490 # as_fn_exit STATUS
20491 # -----------------
20492 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20493 as_fn_exit ()
20494 {
20495 set +e
20496 as_fn_set_status $1
20497 exit $1
20498 } # as_fn_exit
20499
20500 # as_fn_unset VAR
20501 # ---------------
20502 # Portably unset VAR.
20503 as_fn_unset ()
20504 {
20505 { eval $1=; unset $1;}
20506 }
20507 as_unset=as_fn_unset
20508
20509 # as_fn_append VAR VALUE
20510 # ----------------------
20511 # Append the text in VALUE to the end of the definition contained in VAR. Take
20512 # advantage of any shell optimizations that allow amortized linear growth over
20513 # repeated appends, instead of the typical quadratic growth present in naive
20514 # implementations.
20515 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20516 then :
20517 eval 'as_fn_append ()
20518 {
20519 eval $1+=\$2
20520 }'
20521 else case e in #(
20522 e) as_fn_append ()
20523 {
20524 eval $1=\$$1\$2
20525 } ;;
20526 esac
20527 fi # as_fn_append
20528
20529 # as_fn_arith ARG...
20530 # ------------------
20531 # Perform arithmetic evaluation on the ARGs, and store the result in the
20532 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20533 # must be portable across $(()) and expr.
20534 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20535 then :
20536 eval 'as_fn_arith ()
20537 {
20538 as_val=$(( $* ))
20539 }'
20540 else case e in #(
20541 e) as_fn_arith ()
20542 {
20543 as_val=`expr "$@" || test $? -eq 1`
20544 } ;;
20545 esac
20546 fi # as_fn_arith
20547
20548
20549 if expr a : '\(a\)' >/dev/null 2>&1 &&
20550 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20551 as_expr=expr
20552 else
20553 as_expr=false
20554 fi
20555
20556 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20557 as_basename=basename
20558 else
20559 as_basename=false
20560 fi
20561
20562 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20563 as_dirname=dirname
20564 else
20565 as_dirname=false
20566 fi
20567
20568 as_me=`$as_basename -- "$0" ||
20569 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20570 X"$0" : 'X\(//\)$' \| \
20571 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20572 printf "%s\n" X/"$0" |
20573 sed '/^.*\/\([^/][^/]*\)\/*$/{
20574 s//\1/
20575 q
20576 }
20577 /^X\/\(\/\/\)$/{
20578 s//\1/
20579 q
20580 }
20581 /^X\/\(\/\).*/{
20582 s//\1/
20583 q
20584 }
20585 s/.*/./; q'`
20586
20587 # Avoid depending upon Character Ranges.
20588 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20589 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20590 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20591 as_cr_digits='0123456789'
20592 as_cr_alnum=$as_cr_Letters$as_cr_digits
20593
20594
20595 # Determine whether it's possible to make 'echo' print without a newline.
20596 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20597 # for compatibility with existing Makefiles.
20598 ECHO_C= ECHO_N= ECHO_T=
20599 case `echo -n x` in #(((((
20600 -n*)
20601 case `echo 'xy\c'` in
20602 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20603 xy) ECHO_C='\c';;
20604 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20605 ECHO_T=' ';;
20606 esac;;
20607 *)
20608 ECHO_N='-n';;
20609 esac
20610
20611 # For backward compatibility with old third-party macros, we provide
20612 # the shell variables $as_echo and $as_echo_n. New code should use
20613 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20614 as_echo='printf %s\n'
20615 as_echo_n='printf %s'
20616
20617 rm -f conf$$ conf$$.exe conf$$.file
20618 if test -d conf$$.dir; then
20619 rm -f conf$$.dir/conf$$.file
20620 else
20621 rm -f conf$$.dir
20622 mkdir conf$$.dir 2>/dev/null
20623 fi
20624 if (echo >conf$$.file) 2>/dev/null; then
20625 if ln -s conf$$.file conf$$ 2>/dev/null; then
20626 as_ln_s='ln -s'
20627 # ... but there are two gotchas:
20628 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20629 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20630 # In both cases, we have to default to 'cp -pR'.
20631 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20632 as_ln_s='cp -pR'
20633 elif ln conf$$.file conf$$ 2>/dev/null; then
20634 as_ln_s=ln
20635 else
20636 as_ln_s='cp -pR'
20637 fi
20638 else
20639 as_ln_s='cp -pR'
20640 fi
20641 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20642 rmdir conf$$.dir 2>/dev/null
20643
20644
20645 # as_fn_mkdir_p
20646 # -------------
20647 # Create "$as_dir" as a directory, including parents if necessary.
20648 as_fn_mkdir_p ()
20649 {
20650
20651 case $as_dir in #(
20652 -*) as_dir=./$as_dir;;
20653 esac
20654 test -d "$as_dir" || eval $as_mkdir_p || {
20655 as_dirs=
20656 while :; do
20657 case $as_dir in #(
20658 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20659 *) as_qdir=$as_dir;;
20660 esac
20661 as_dirs="'$as_qdir' $as_dirs"
20662 as_dir=`$as_dirname -- "$as_dir" ||
20663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20664 X"$as_dir" : 'X\(//\)[^/]' \| \
20665 X"$as_dir" : 'X\(//\)$' \| \
20666 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20667 printf "%s\n" X"$as_dir" |
20668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20669 s//\1/
20670 q
20671 }
20672 /^X\(\/\/\)[^/].*/{
20673 s//\1/
20674 q
20675 }
20676 /^X\(\/\/\)$/{
20677 s//\1/
20678 q
20679 }
20680 /^X\(\/\).*/{
20681 s//\1/
20682 q
20683 }
20684 s/.*/./; q'`
20685 test -d "$as_dir" && break
20686 done
20687 test -z "$as_dirs" || eval "mkdir $as_dirs"
20688 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20689
20690
20691 } # as_fn_mkdir_p
20692 if mkdir -p . 2>/dev/null; then
20693 as_mkdir_p='mkdir -p "$as_dir"'
20694 else
20695 test -d ./-p && rmdir ./-p
20696 as_mkdir_p=false
20697 fi
20698
20699
20700 # as_fn_executable_p FILE
20701 # -----------------------
20702 # Test if FILE is an executable regular file.
20703 as_fn_executable_p ()
20704 {
20705 test -f "$1" && test -x "$1"
20706 } # as_fn_executable_p
20707 as_test_x='test -x'
20708 as_executable_p=as_fn_executable_p
20709
20710 # Sed expression to map a string onto a valid CPP name.
20711 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20712 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20713
20714 # Sed expression to map a string onto a valid variable name.
20715 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20716 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20717
20718
20719 exec 6>&1
20720 ## ----------------------------------- ##
20721 ## Main body of $CONFIG_STATUS script. ##
20722 ## ----------------------------------- ##
20723 _ASEOF
20724 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20725
20726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20727 # Save the log message, to keep $0 and so on meaningful, and to
20728 # report actual input values of CONFIG_FILES etc. instead of their
20729 # values after options handling.
20730 ac_log="
20731 This file was extended by udisks $as_me 2.11.1, which was
20732 generated by GNU Autoconf 2.72. Invocation command line was
20733
20734 CONFIG_FILES = $CONFIG_FILES
20735 CONFIG_HEADERS = $CONFIG_HEADERS
20736 CONFIG_LINKS = $CONFIG_LINKS
20737 CONFIG_COMMANDS = $CONFIG_COMMANDS
20738 $ $0 $@
20739
20740 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20741 "
20742
20743 _ACEOF
20744
20745 case $ac_config_files in *"
20746 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20747 esac
20748
20749 case $ac_config_headers in *"
20750 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20751 esac
20752
20753
20754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20755 # Files that config.status was made for.
20756 config_files="$ac_config_files"
20757 config_headers="$ac_config_headers"
20758 config_commands="$ac_config_commands"
20759
20760 _ACEOF
20761
20762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20763 ac_cs_usage="\
20764 '$as_me' instantiates files and other configuration actions
20765 from templates according to the current configuration. Unless the files
20766 and actions are specified as TAGs, all are instantiated by default.
20767
20768 Usage: $0 [OPTION]... [TAG]...
20769
20770 -h, --help print this help, then exit
20771 -V, --version print version number and configuration settings, then exit
20772 --config print configuration, then exit
20773 -q, --quiet, --silent
20774 do not print progress messages
20775 -d, --debug don't remove temporary files
20776 --recheck update $as_me by reconfiguring in the same conditions
20777 --file=FILE[:TEMPLATE]
20778 instantiate the configuration file FILE
20779 --header=FILE[:TEMPLATE]
20780 instantiate the configuration header FILE
20781
20782 Configuration files:
20783 $config_files
20784
20785 Configuration headers:
20786 $config_headers
20787
20788 Configuration commands:
20789 $config_commands
20790
20791 Report bugs to <https://storaged-project.github.io>."
20792
20793 _ACEOF
20794 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20795 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20797 ac_cs_config='$ac_cs_config_escaped'
20798 ac_cs_version="\\
20799 udisks config.status 2.11.1
20800 configured by $0, generated by GNU Autoconf 2.72,
20801 with options \\"\$ac_cs_config\\"
20802
20803 Copyright (C) 2023 Free Software Foundation, Inc.
20804 This config.status script is free software; the Free Software Foundation
20805 gives unlimited permission to copy, distribute and modify it."
20806
20807 ac_pwd='$ac_pwd'
20808 srcdir='$srcdir'
20809 INSTALL='$INSTALL'
20810 MKDIR_P='$MKDIR_P'
20811 AWK='$AWK'
20812 test -n "\$AWK" || AWK=awk
20813 _ACEOF
20814
20815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20816 # The default lists apply if the user does not specify any file.
20817 ac_need_defaults=:
20818 while test $# != 0
20819 do
20820 case $1 in
20821 --*=?*)
20822 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20823 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20824 ac_shift=:
20825 ;;
20826 --*=)
20827 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20828 ac_optarg=
20829 ac_shift=:
20830 ;;
20831 *)
20832 ac_option=$1
20833 ac_optarg=$2
20834 ac_shift=shift
20835 ;;
20836 esac
20837
20838 case $ac_option in
20839 # Handling of the options.
20840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20841 ac_cs_recheck=: ;;
20842 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20843 printf "%s\n" "$ac_cs_version"; exit ;;
20844 --config | --confi | --conf | --con | --co | --c )
20845 printf "%s\n" "$ac_cs_config"; exit ;;
20846 --debug | --debu | --deb | --de | --d | -d )
20847 debug=: ;;
20848 --file | --fil | --fi | --f )
20849 $ac_shift
20850 case $ac_optarg in
20851 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20852 '') as_fn_error $? "missing file argument" ;;
20853 esac
20854 as_fn_append CONFIG_FILES " '$ac_optarg'"
20855 ac_need_defaults=false;;
20856 --header | --heade | --head | --hea )
20857 $ac_shift
20858 case $ac_optarg in
20859 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20860 esac
20861 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20862 ac_need_defaults=false;;
20863 --he | --h)
20864 # Conflict between --help and --header
20865 as_fn_error $? "ambiguous option: '$1'
20866 Try '$0 --help' for more information.";;
20867 --help | --hel | -h )
20868 printf "%s\n" "$ac_cs_usage"; exit ;;
20869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20871 ac_cs_silent=: ;;
20872
20873 # This is an error.
20874 -*) as_fn_error $? "unrecognized option: '$1'
20875 Try '$0 --help' for more information." ;;
20876
20877 *) as_fn_append ac_config_targets " $1"
20878 ac_need_defaults=false ;;
20879
20880 esac
20881 shift
20882 done
20883
20884 ac_configure_extra_args=
20885
20886 if $ac_cs_silent; then
20887 exec 6>/dev/null
20888 ac_configure_extra_args="$ac_configure_extra_args --silent"
20889 fi
20890
20891 _ACEOF
20892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20893 if \$ac_cs_recheck; then
20894 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20895 shift
20896 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20897 CONFIG_SHELL='$SHELL'
20898 export CONFIG_SHELL
20899 exec "\$@"
20900 fi
20901
20902 _ACEOF
20903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20904 exec 5>>config.log
20905 {
20906 echo
20907 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20908 ## Running $as_me. ##
20909 _ASBOX
20910 printf "%s\n" "$ac_log"
20911 } >&5
20912
20913 _ACEOF
20914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20915 #
20916 # INIT-COMMANDS
20917 #
20918 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20919
20920
20921 # The HP-UX ksh and POSIX shell print the target directory to stdout
20922 # if CDPATH is set.
20923 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20924
20925 sed_quote_subst='$sed_quote_subst'
20926 double_quote_subst='$double_quote_subst'
20927 delay_variable_subst='$delay_variable_subst'
20928 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20929 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20930 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20931 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20932 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20933 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20934 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20935 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20936 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20937 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20938 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20939 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20940 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20941 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20942 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20943 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20944 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20945 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20946 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20947 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20948 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20949 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20950 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20951 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20952 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20953 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20954 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20955 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20956 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20957 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20958 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20959 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20960 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20961 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20962 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20963 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20964 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20965 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20966 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20967 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20968 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20969 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20970 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20971 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20972 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20973 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20974 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20975 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20976 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20977 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20978 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20979 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20980 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20981 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20982 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20983 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20984 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20985 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20986 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20987 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20988 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"`'
20989 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20990 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20991 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20992 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20993 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20994 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20995 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20996 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20997 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20998 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20999 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21000 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21001 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21002 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21003 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21004 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21005 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21006 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21007 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21008 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21009 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21010 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21011 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21012 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21013 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21014 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21015 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21016 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21017 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21018 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21019 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21020 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21021 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21022 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21023 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21024 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21025 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21026 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21027 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21028 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21029 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21030 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21031 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21032 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21033 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21034 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21035 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21036 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21037 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21038 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21039 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21040 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21041 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21042 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21043 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21044 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21045 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21046 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21047 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21048 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21049 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21050 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21051 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21052 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21053 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21054 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21055 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21056 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21057 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21058 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21059 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21060 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21061 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21062 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21063 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21064 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21065
21066 LTCC='$LTCC'
21067 LTCFLAGS='$LTCFLAGS'
21068 compiler='$compiler_DEFAULT'
21069
21070 # A function that is used when there is no print builtin or printf.
21071 func_fallback_echo ()
21072 {
21073 eval 'cat <<_LTECHO_EOF
21074 \$1
21075 _LTECHO_EOF'
21076 }
21077
21078 # Quote evaled strings.
21079 for var in SHELL \
21080 ECHO \
21081 PATH_SEPARATOR \
21082 SED \
21083 GREP \
21084 EGREP \
21085 FGREP \
21086 LD \
21087 NM \
21088 LN_S \
21089 lt_SP2NL \
21090 lt_NL2SP \
21091 reload_flag \
21092 FILECMD \
21093 OBJDUMP \
21094 deplibs_check_method \
21095 file_magic_cmd \
21096 file_magic_glob \
21097 want_nocaseglob \
21098 DLLTOOL \
21099 sharedlib_from_linklib_cmd \
21100 AR \
21101 archiver_list_spec \
21102 STRIP \
21103 RANLIB \
21104 CC \
21105 CFLAGS \
21106 compiler \
21107 lt_cv_sys_global_symbol_pipe \
21108 lt_cv_sys_global_symbol_to_cdecl \
21109 lt_cv_sys_global_symbol_to_import \
21110 lt_cv_sys_global_symbol_to_c_name_address \
21111 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21112 lt_cv_nm_interface \
21113 nm_file_list_spec \
21114 lt_cv_truncate_bin \
21115 lt_prog_compiler_no_builtin_flag \
21116 lt_prog_compiler_pic \
21117 lt_prog_compiler_wl \
21118 lt_prog_compiler_static \
21119 lt_cv_prog_compiler_c_o \
21120 need_locks \
21121 MANIFEST_TOOL \
21122 DSYMUTIL \
21123 NMEDIT \
21124 LIPO \
21125 OTOOL \
21126 OTOOL64 \
21127 shrext_cmds \
21128 export_dynamic_flag_spec \
21129 whole_archive_flag_spec \
21130 compiler_needs_object \
21131 with_gnu_ld \
21132 allow_undefined_flag \
21133 no_undefined_flag \
21134 hardcode_libdir_flag_spec \
21135 hardcode_libdir_separator \
21136 exclude_expsyms \
21137 include_expsyms \
21138 file_list_spec \
21139 variables_saved_for_relink \
21140 libname_spec \
21141 library_names_spec \
21142 soname_spec \
21143 install_override_mode \
21144 finish_eval \
21145 old_striplib \
21146 striplib; do
21147 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21148 *[\\\\\\\`\\"\\\$]*)
21149 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21150 ;;
21151 *)
21152 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21153 ;;
21154 esac
21155 done
21156
21157 # Double-quote double-evaled strings.
21158 for var in reload_cmds \
21159 old_postinstall_cmds \
21160 old_postuninstall_cmds \
21161 old_archive_cmds \
21162 extract_expsyms_cmds \
21163 old_archive_from_new_cmds \
21164 old_archive_from_expsyms_cmds \
21165 archive_cmds \
21166 archive_expsym_cmds \
21167 module_cmds \
21168 module_expsym_cmds \
21169 export_symbols_cmds \
21170 prelink_cmds \
21171 postlink_cmds \
21172 postinstall_cmds \
21173 postuninstall_cmds \
21174 finish_cmds \
21175 sys_lib_search_path_spec \
21176 configure_time_dlsearch_path \
21177 configure_time_lt_sys_library_path; do
21178 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21179 *[\\\\\\\`\\"\\\$]*)
21180 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21181 ;;
21182 *)
21183 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21184 ;;
21185 esac
21186 done
21187
21188 ac_aux_dir='$ac_aux_dir'
21189
21190 # See if we are running on zsh, and set the options that allow our
21191 # commands through without removal of \ escapes INIT.
21192 if test -n "\${ZSH_VERSION+set}"; then
21193 setopt NO_GLOB_SUBST
21194 fi
21195
21196
21197 PACKAGE='$PACKAGE'
21198 VERSION='$VERSION'
21199 RM='$RM'
21200 ofile='$ofile'
21201
21202
21203
21204 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21205 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21206 # from automake < 1.5.
21207 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21208 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21209 LINGUAS="${LINGUAS-%UNSET%}"
21210
21211
21212 _ACEOF
21213
21214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21215
21216 # Handling of arguments.
21217 for ac_config_target in $ac_config_targets
21218 do
21219 case $ac_config_target in
21220 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21221 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21222 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21223 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21224 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21225 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
21226 "data/tmpfiles.d/Makefile") CONFIG_FILES="$CONFIG_FILES data/tmpfiles.d/Makefile" ;;
21227 "udisks/Makefile") CONFIG_FILES="$CONFIG_FILES udisks/Makefile" ;;
21228 "udisks/udisks2.conf") CONFIG_FILES="$CONFIG_FILES udisks/udisks2.conf" ;;
21229 "udisks/udisks2.pc") CONFIG_FILES="$CONFIG_FILES udisks/udisks2.pc" ;;
21230 "udisks/modules.conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES udisks/modules.conf.d/Makefile" ;;
21231 "udisks/modules.conf.d/udisks2_lsm.conf") CONFIG_FILES="$CONFIG_FILES udisks/modules.conf.d/udisks2_lsm.conf" ;;
21232 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21233 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
21234 "src/tests/dbus-tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/dbus-tests/Makefile" ;;
21235 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21236 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
21237 "modules/btrfs/Makefile") CONFIG_FILES="$CONFIG_FILES modules/btrfs/Makefile" ;;
21238 "modules/btrfs/data/Makefile") CONFIG_FILES="$CONFIG_FILES modules/btrfs/data/Makefile" ;;
21239 "modules/btrfs/data/udisks2-btrfs.pc") CONFIG_FILES="$CONFIG_FILES modules/btrfs/data/udisks2-btrfs.pc" ;;
21240 "modules/iscsi/Makefile") CONFIG_FILES="$CONFIG_FILES modules/iscsi/Makefile" ;;
21241 "modules/iscsi/data/Makefile") CONFIG_FILES="$CONFIG_FILES modules/iscsi/data/Makefile" ;;
21242 "modules/iscsi/data/udisks2-iscsi.pc") CONFIG_FILES="$CONFIG_FILES modules/iscsi/data/udisks2-iscsi.pc" ;;
21243 "modules/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lvm2/Makefile" ;;
21244 "modules/lvm2/data/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lvm2/data/Makefile" ;;
21245 "modules/lvm2/data/udisks2-lvm2.pc") CONFIG_FILES="$CONFIG_FILES modules/lvm2/data/udisks2-lvm2.pc" ;;
21246 "modules/lsm/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lsm/Makefile" ;;
21247 "modules/lsm/data/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lsm/data/Makefile" ;;
21248 "modules/lsm/data/udisks2-lsm.pc") CONFIG_FILES="$CONFIG_FILES modules/lsm/data/udisks2-lsm.pc" ;;
21249 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21250 "doc/udisks2-docs.xml.in") CONFIG_FILES="$CONFIG_FILES doc/udisks2-docs.xml.in" ;;
21251 "doc/udisks2-sections.txt.in") CONFIG_FILES="$CONFIG_FILES doc/udisks2-sections.txt.in" ;;
21252 "doc/udisks2.types.in") CONFIG_FILES="$CONFIG_FILES doc/udisks2.types.in" ;;
21253 "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
21254 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
21255 "doc/man/udisks.xml") CONFIG_FILES="$CONFIG_FILES doc/man/udisks.xml" ;;
21256 "doc/man/udisksd.xml") CONFIG_FILES="$CONFIG_FILES doc/man/udisksd.xml" ;;
21257 "doc/man/udisksctl.xml") CONFIG_FILES="$CONFIG_FILES doc/man/udisksctl.xml" ;;
21258 "doc/man/umount.udisks2.xml") CONFIG_FILES="$CONFIG_FILES doc/man/umount.udisks2.xml" ;;
21259 "doc/man/udisks2.conf.5.xml.in") CONFIG_FILES="$CONFIG_FILES doc/man/udisks2.conf.5.xml.in" ;;
21260 "doc/man/udisks2_lsm.conf.5.xml.in") CONFIG_FILES="$CONFIG_FILES doc/man/udisks2_lsm.conf.5.xml.in" ;;
21261 "doc/udisks2-docs.xml.daemon.man") CONFIG_FILES="$CONFIG_FILES doc/udisks2-docs.xml.daemon.man" ;;
21262 "doc/udisks2-docs.xml.daemon.part") CONFIG_FILES="$CONFIG_FILES doc/udisks2-docs.xml.daemon.part" ;;
21263 "doc/udisks2-sections.txt.daemon.sections") CONFIG_FILES="$CONFIG_FILES doc/udisks2-sections.txt.daemon.sections" ;;
21264 "doc/udisks2.types.daemon") CONFIG_FILES="$CONFIG_FILES doc/udisks2.types.daemon" ;;
21265 "doc/udisks2-docs.xml.iscsi.dbus") CONFIG_FILES="$CONFIG_FILES doc/udisks2-docs.xml.iscsi.dbus" ;;
21266 "doc/udisks2-docs.xml.iscsi.generated") CONFIG_FILES="$CONFIG_FILES doc/udisks2-docs.xml.iscsi.generated" ;;
21267 "doc/udisks2-sections.txt.iscsi.sections") CONFIG_FILES="$CONFIG_FILES doc/udisks2-sections.txt.iscsi.sections" ;;
21268 "doc/udisks2.types.iscsi") CONFIG_FILES="$CONFIG_FILES doc/udisks2.types.iscsi" ;;
21269 "doc/udisks2-docs.xml.lsm.man") CONFIG_FILES="$CONFIG_FILES doc/udisks2-docs.xml.lsm.man" ;;
21270 "doc/udisks2-docs.xml.lsm.dbus") CONFIG_FILES="$CONFIG_FILES doc/udisks2-docs.xml.lsm.dbus" ;;
21271 "doc/udisks2-docs.xml.lsm.generated") CONFIG_FILES="$CONFIG_FILES doc/udisks2-docs.xml.lsm.generated" ;;
21272 "doc/udisks2-sections.txt.lsm.sections") CONFIG_FILES="$CONFIG_FILES doc/udisks2-sections.txt.lsm.sections" ;;
21273 "doc/udisks2.types.lsm") CONFIG_FILES="$CONFIG_FILES doc/udisks2.types.lsm" ;;
21274 "doc/udisks2-docs.xml.lvm2.dbus") CONFIG_FILES="$CONFIG_FILES doc/udisks2-docs.xml.lvm2.dbus" ;;
21275 "doc/udisks2-docs.xml.lvm2.generated") CONFIG_FILES="$CONFIG_FILES doc/udisks2-docs.xml.lvm2.generated" ;;
21276 "doc/udisks2-sections.txt.lvm2.sections") CONFIG_FILES="$CONFIG_FILES doc/udisks2-sections.txt.lvm2.sections" ;;
21277 "doc/udisks2.types.lvm2") CONFIG_FILES="$CONFIG_FILES doc/udisks2.types.lvm2" ;;
21278 "doc/udisks2-docs.xml.btrfs.dbus") CONFIG_FILES="$CONFIG_FILES doc/udisks2-docs.xml.btrfs.dbus" ;;
21279 "doc/udisks2-docs.xml.btrfs.generated") CONFIG_FILES="$CONFIG_FILES doc/udisks2-docs.xml.btrfs.generated" ;;
21280 "doc/udisks2-sections.txt.btrfs.sections") CONFIG_FILES="$CONFIG_FILES doc/udisks2-sections.txt.btrfs.sections" ;;
21281 "doc/udisks2.types.btrfs") CONFIG_FILES="$CONFIG_FILES doc/udisks2.types.btrfs" ;;
21282 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21283
21284 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21285 esac
21286 done
21287
21288
21289 # If the user did not use the arguments to specify the items to instantiate,
21290 # then the envvar interface is used. Set only those that are not.
21291 # We use the long form for the default assignment because of an extremely
21292 # bizarre bug on SunOS 4.1.3.
21293 if $ac_need_defaults; then
21294 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21295 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21296 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21297 fi
21298
21299 # Have a temporary directory for convenience. Make it in the build tree
21300 # simply because there is no reason against having it here, and in addition,
21301 # creating and moving files from /tmp can sometimes cause problems.
21302 # Hook for its removal unless debugging.
21303 # Note that there is a small window in which the directory will not be cleaned:
21304 # after its creation but before its name has been assigned to '$tmp'.
21305 $debug ||
21306 {
21307 tmp= ac_tmp=
21308 trap 'exit_status=$?
21309 : "${ac_tmp:=$tmp}"
21310 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21311 ' 0
21312 trap 'as_fn_exit 1' 1 2 13 15
21313 }
21314 # Create a (secure) tmp directory for tmp files.
21315
21316 {
21317 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21318 test -d "$tmp"
21319 } ||
21320 {
21321 tmp=./conf$$-$RANDOM
21322 (umask 077 && mkdir "$tmp")
21323 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21324 ac_tmp=$tmp
21325
21326 # Set up the scripts for CONFIG_FILES section.
21327 # No need to generate them if there are no CONFIG_FILES.
21328 # This happens for instance with './config.status config.h'.
21329 if test -n "$CONFIG_FILES"; then
21330
21331
21332 ac_cr=`echo X | tr X '\015'`
21333 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21334 # But we know of no other shell where ac_cr would be empty at this
21335 # point, so we can use a bashism as a fallback.
21336 if test "x$ac_cr" = x; then
21337 eval ac_cr=\$\'\\r\'
21338 fi
21339 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21340 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21341 ac_cs_awk_cr='\\r'
21342 else
21343 ac_cs_awk_cr=$ac_cr
21344 fi
21345
21346 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21347 _ACEOF
21348
21349
21350 {
21351 echo "cat >conf$$subs.awk <<_ACEOF" &&
21352 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21353 echo "_ACEOF"
21354 } >conf$$subs.sh ||
21355 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21356 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21357 ac_delim='%!_!# '
21358 for ac_last_try in false false false false false :; do
21359 . ./conf$$subs.sh ||
21360 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21361
21362 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21363 if test $ac_delim_n = $ac_delim_num; then
21364 break
21365 elif $ac_last_try; then
21366 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21367 else
21368 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21369 fi
21370 done
21371 rm -f conf$$subs.sh
21372
21373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21374 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21375 _ACEOF
21376 sed -n '
21377 h
21378 s/^/S["/; s/!.*/"]=/
21379 p
21380 g
21381 s/^[^!]*!//
21382 :repl
21383 t repl
21384 s/'"$ac_delim"'$//
21385 t delim
21386 :nl
21387 h
21388 s/\(.\{148\}\)..*/\1/
21389 t more1
21390 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21391 p
21392 n
21393 b repl
21394 :more1
21395 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21396 p
21397 g
21398 s/.\{148\}//
21399 t nl
21400 :delim
21401 h
21402 s/\(.\{148\}\)..*/\1/
21403 t more2
21404 s/["\\]/\\&/g; s/^/"/; s/$/"/
21405 p
21406 b
21407 :more2
21408 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21409 p
21410 g
21411 s/.\{148\}//
21412 t delim
21413 ' <conf$$subs.awk | sed '
21414 /^[^""]/{
21415 N
21416 s/\n//
21417 }
21418 ' >>$CONFIG_STATUS || ac_write_fail=1
21419 rm -f conf$$subs.awk
21420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21421 _ACAWK
21422 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21423 for (key in S) S_is_set[key] = 1
21424 FS = ""
21425
21426 }
21427 {
21428 line = $ 0
21429 nfields = split(line, field, "@")
21430 substed = 0
21431 len = length(field[1])
21432 for (i = 2; i < nfields; i++) {
21433 key = field[i]
21434 keylen = length(key)
21435 if (S_is_set[key]) {
21436 value = S[key]
21437 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21438 len += length(value) + length(field[++i])
21439 substed = 1
21440 } else
21441 len += 1 + keylen
21442 }
21443
21444 print line
21445 }
21446
21447 _ACAWK
21448 _ACEOF
21449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21450 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21451 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21452 else
21453 cat
21454 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21455 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21456 _ACEOF
21457
21458 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21459 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21460 # trailing colons and then remove the whole line if VPATH becomes empty
21461 # (actually we leave an empty line to preserve line numbers).
21462 if test "x$srcdir" = x.; then
21463 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21464 h
21465 s///
21466 s/^/:/
21467 s/[ ]*$/:/
21468 s/:\$(srcdir):/:/g
21469 s/:\${srcdir}:/:/g
21470 s/:@srcdir@:/:/g
21471 s/^:*//
21472 s/:*$//
21473 x
21474 s/\(=[ ]*\).*/\1/
21475 G
21476 s/\n//
21477 s/^[^=]*=[ ]*$//
21478 }'
21479 fi
21480
21481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21482 fi # test -n "$CONFIG_FILES"
21483
21484 # Set up the scripts for CONFIG_HEADERS section.
21485 # No need to generate them if there are no CONFIG_HEADERS.
21486 # This happens for instance with './config.status Makefile'.
21487 if test -n "$CONFIG_HEADERS"; then
21488 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21489 BEGIN {
21490 _ACEOF
21491
21492 # Transform confdefs.h into an awk script 'defines.awk', embedded as
21493 # here-document in config.status, that substitutes the proper values into
21494 # config.h.in to produce config.h.
21495
21496 # Create a delimiter string that does not exist in confdefs.h, to ease
21497 # handling of long lines.
21498 ac_delim='%!_!# '
21499 for ac_last_try in false false :; do
21500 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21501 if test -z "$ac_tt"; then
21502 break
21503 elif $ac_last_try; then
21504 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21505 else
21506 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21507 fi
21508 done
21509
21510 # For the awk script, D is an array of macro values keyed by name,
21511 # likewise P contains macro parameters if any. Preserve backslash
21512 # newline sequences.
21513
21514 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21515 sed -n '
21516 s/.\{148\}/&'"$ac_delim"'/g
21517 t rset
21518 :rset
21519 s/^[ ]*#[ ]*define[ ][ ]*/ /
21520 t def
21521 d
21522 :def
21523 s/\\$//
21524 t bsnl
21525 s/["\\]/\\&/g
21526 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21527 D["\1"]=" \3"/p
21528 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21529 d
21530 :bsnl
21531 s/["\\]/\\&/g
21532 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21533 D["\1"]=" \3\\\\\\n"\\/p
21534 t cont
21535 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21536 t cont
21537 d
21538 :cont
21539 n
21540 s/.\{148\}/&'"$ac_delim"'/g
21541 t clear
21542 :clear
21543 s/\\$//
21544 t bsnlc
21545 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21546 d
21547 :bsnlc
21548 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21549 b cont
21550 ' <confdefs.h | sed '
21551 s/'"$ac_delim"'/"\\\
21552 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21553
21554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21555 for (key in D) D_is_set[key] = 1
21556 FS = ""
21557 }
21558 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21559 line = \$ 0
21560 split(line, arg, " ")
21561 if (arg[1] == "#") {
21562 defundef = arg[2]
21563 mac1 = arg[3]
21564 } else {
21565 defundef = substr(arg[1], 2)
21566 mac1 = arg[2]
21567 }
21568 split(mac1, mac2, "(") #)
21569 macro = mac2[1]
21570 prefix = substr(line, 1, index(line, defundef) - 1)
21571 if (D_is_set[macro]) {
21572 # Preserve the white space surrounding the "#".
21573 print prefix "define", macro P[macro] D[macro]
21574 next
21575 } else {
21576 # Replace #undef with comments. This is necessary, for example,
21577 # in the case of _POSIX_SOURCE, which is predefined and required
21578 # on some systems where configure will not decide to define it.
21579 if (defundef == "undef") {
21580 print "/*", prefix defundef, macro, "*/"
21581 next
21582 }
21583 }
21584 }
21585 { print }
21586 _ACAWK
21587 _ACEOF
21588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21589 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21590 fi # test -n "$CONFIG_HEADERS"
21591
21592
21593 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21594 shift
21595 for ac_tag
21596 do
21597 case $ac_tag in
21598 :[FHLC]) ac_mode=$ac_tag; continue;;
21599 esac
21600 case $ac_mode$ac_tag in
21601 :[FHL]*:*);;
21602 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21603 :[FH]-) ac_tag=-:-;;
21604 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21605 esac
21606 ac_save_IFS=$IFS
21607 IFS=:
21608 set x $ac_tag
21609 IFS=$ac_save_IFS
21610 shift
21611 ac_file=$1
21612 shift
21613
21614 case $ac_mode in
21615 :L) ac_source=$1;;
21616 :[FH])
21617 ac_file_inputs=
21618 for ac_f
21619 do
21620 case $ac_f in
21621 -) ac_f="$ac_tmp/stdin";;
21622 *) # Look for the file first in the build tree, then in the source tree
21623 # (if the path is not absolute). The absolute path cannot be DOS-style,
21624 # because $ac_f cannot contain ':'.
21625 test -f "$ac_f" ||
21626 case $ac_f in
21627 [\\/$]*) false;;
21628 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21629 esac ||
21630 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21631 esac
21632 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21633 as_fn_append ac_file_inputs " '$ac_f'"
21634 done
21635
21636 # Let's still pretend it is 'configure' which instantiates (i.e., don't
21637 # use $as_me), people would be surprised to read:
21638 # /* config.h. Generated by config.status. */
21639 configure_input='Generated from '`
21640 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21641 `' by configure.'
21642 if test x"$ac_file" != x-; then
21643 configure_input="$ac_file. $configure_input"
21644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21645 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21646 fi
21647 # Neutralize special characters interpreted by sed in replacement strings.
21648 case $configure_input in #(
21649 *\&* | *\|* | *\\* )
21650 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21651 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21652 *) ac_sed_conf_input=$configure_input;;
21653 esac
21654
21655 case $ac_tag in
21656 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21657 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21658 esac
21659 ;;
21660 esac
21661
21662 ac_dir=`$as_dirname -- "$ac_file" ||
21663 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21664 X"$ac_file" : 'X\(//\)[^/]' \| \
21665 X"$ac_file" : 'X\(//\)$' \| \
21666 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21667 printf "%s\n" X"$ac_file" |
21668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21669 s//\1/
21670 q
21671 }
21672 /^X\(\/\/\)[^/].*/{
21673 s//\1/
21674 q
21675 }
21676 /^X\(\/\/\)$/{
21677 s//\1/
21678 q
21679 }
21680 /^X\(\/\).*/{
21681 s//\1/
21682 q
21683 }
21684 s/.*/./; q'`
21685 as_dir="$ac_dir"; as_fn_mkdir_p
21686 ac_builddir=.
21687
21688 case "$ac_dir" in
21689 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21690 *)
21691 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21692 # A ".." for each directory in $ac_dir_suffix.
21693 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21694 case $ac_top_builddir_sub in
21695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21697 esac ;;
21698 esac
21699 ac_abs_top_builddir=$ac_pwd
21700 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21701 # for backward compatibility:
21702 ac_top_builddir=$ac_top_build_prefix
21703
21704 case $srcdir in
21705 .) # We are building in place.
21706 ac_srcdir=.
21707 ac_top_srcdir=$ac_top_builddir_sub
21708 ac_abs_top_srcdir=$ac_pwd ;;
21709 [\\/]* | ?:[\\/]* ) # Absolute name.
21710 ac_srcdir=$srcdir$ac_dir_suffix;
21711 ac_top_srcdir=$srcdir
21712 ac_abs_top_srcdir=$srcdir ;;
21713 *) # Relative name.
21714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21715 ac_top_srcdir=$ac_top_build_prefix$srcdir
21716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21717 esac
21718 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21719
21720
21721 case $ac_mode in
21722 :F)
21723 #
21724 # CONFIG_FILE
21725 #
21726
21727 case $INSTALL in
21728 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21729 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21730 esac
21731 ac_MKDIR_P=$MKDIR_P
21732 case $MKDIR_P in
21733 [\\/$]* | ?:[\\/]* ) ;;
21734 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21735 esac
21736 _ACEOF
21737
21738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21739 # If the template does not know about datarootdir, expand it.
21740 # FIXME: This hack should be removed a few years after 2.60.
21741 ac_datarootdir_hack=; ac_datarootdir_seen=
21742 ac_sed_dataroot='
21743 /datarootdir/ {
21744 p
21745 q
21746 }
21747 /@datadir@/p
21748 /@docdir@/p
21749 /@infodir@/p
21750 /@localedir@/p
21751 /@mandir@/p'
21752 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21753 *datarootdir*) ac_datarootdir_seen=yes;;
21754 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21756 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21757 _ACEOF
21758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21759 ac_datarootdir_hack='
21760 s&@datadir@&$datadir&g
21761 s&@docdir@&$docdir&g
21762 s&@infodir@&$infodir&g
21763 s&@localedir@&$localedir&g
21764 s&@mandir@&$mandir&g
21765 s&\\\${datarootdir}&$datarootdir&g' ;;
21766 esac
21767 _ACEOF
21768
21769 # Neutralize VPATH when '$srcdir' = '.'.
21770 # Shell code in configure.ac might set extrasub.
21771 # FIXME: do we really want to maintain this feature?
21772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21773 ac_sed_extra="$ac_vpsub
21774 $extrasub
21775 _ACEOF
21776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21777 :t
21778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21779 s|@configure_input@|$ac_sed_conf_input|;t t
21780 s&@top_builddir@&$ac_top_builddir_sub&;t t
21781 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21782 s&@srcdir@&$ac_srcdir&;t t
21783 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21784 s&@top_srcdir@&$ac_top_srcdir&;t t
21785 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21786 s&@builddir@&$ac_builddir&;t t
21787 s&@abs_builddir@&$ac_abs_builddir&;t t
21788 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21789 s&@INSTALL@&$ac_INSTALL&;t t
21790 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21791 $ac_datarootdir_hack
21792 "
21793 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21794 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21795
21796 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21797 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21798 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21799 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21801 which seems to be undefined. Please make sure it is defined" >&5
21802 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21803 which seems to be undefined. Please make sure it is defined" >&2;}
21804
21805 rm -f "$ac_tmp/stdin"
21806 case $ac_file in
21807 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21808 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21809 esac \
21810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21811 ;;
21812 :H)
21813 #
21814 # CONFIG_HEADER
21815 #
21816 if test x"$ac_file" != x-; then
21817 {
21818 printf "%s\n" "/* $configure_input */" >&1 \
21819 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21820 } >"$ac_tmp/config.h" \
21821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21822 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21824 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21825 else
21826 rm -f "$ac_file"
21827 mv "$ac_tmp/config.h" "$ac_file" \
21828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21829 fi
21830 else
21831 printf "%s\n" "/* $configure_input */" >&1 \
21832 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21833 || as_fn_error $? "could not create -" "$LINENO" 5
21834 fi
21835 # Compute "$ac_file"'s index in $config_headers.
21836 _am_arg="$ac_file"
21837 _am_stamp_count=1
21838 for _am_header in $config_headers :; do
21839 case $_am_header in
21840 $_am_arg | $_am_arg:* )
21841 break ;;
21842 * )
21843 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21844 esac
21845 done
21846 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21847 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21848 X"$_am_arg" : 'X\(//\)[^/]' \| \
21849 X"$_am_arg" : 'X\(//\)$' \| \
21850 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21851 printf "%s\n" X"$_am_arg" |
21852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21853 s//\1/
21854 q
21855 }
21856 /^X\(\/\/\)[^/].*/{
21857 s//\1/
21858 q
21859 }
21860 /^X\(\/\/\)$/{
21861 s//\1/
21862 q
21863 }
21864 /^X\(\/\).*/{
21865 s//\1/
21866 q
21867 }
21868 s/.*/./; q'`/stamp-h$_am_stamp_count
21869 ;;
21870
21871 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21872 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21873 ;;
21874 esac
21875
21876
21877 case $ac_file$ac_mode in
21878 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21879 # Older Autoconf quotes --file arguments for eval, but not when files
21880 # are listed without --file. Let's play safe and only enable the eval
21881 # if we detect the quoting.
21882 # TODO: see whether this extra hack can be removed once we start
21883 # requiring Autoconf 2.70 or later.
21884 case $CONFIG_FILES in #(
21885 *\'*) :
21886 eval set x "$CONFIG_FILES" ;; #(
21887 *) :
21888 set x $CONFIG_FILES ;; #(
21889 *) :
21890 ;;
21891 esac
21892 shift
21893 # Used to flag and report bootstrapping failures.
21894 am_rc=0
21895 for am_mf
21896 do
21897 # Strip MF so we end up with the name of the file.
21898 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21899 # Check whether this is an Automake generated Makefile which includes
21900 # dependency-tracking related rules and includes.
21901 # Grep'ing the whole file directly is not great: AIX grep has a line
21902 # limit of 2048, but all sed's we know have understand at least 4000.
21903 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21904 || continue
21905 am_dirpart=`$as_dirname -- "$am_mf" ||
21906 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21907 X"$am_mf" : 'X\(//\)[^/]' \| \
21908 X"$am_mf" : 'X\(//\)$' \| \
21909 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21910 printf "%s\n" X"$am_mf" |
21911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21912 s//\1/
21913 q
21914 }
21915 /^X\(\/\/\)[^/].*/{
21916 s//\1/
21917 q
21918 }
21919 /^X\(\/\/\)$/{
21920 s//\1/
21921 q
21922 }
21923 /^X\(\/\).*/{
21924 s//\1/
21925 q
21926 }
21927 s/.*/./; q'`
21928 am_filepart=`$as_basename -- "$am_mf" ||
21929 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21930 X"$am_mf" : 'X\(//\)$' \| \
21931 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21932 printf "%s\n" X/"$am_mf" |
21933 sed '/^.*\/\([^/][^/]*\)\/*$/{
21934 s//\1/
21935 q
21936 }
21937 /^X\/\(\/\/\)$/{
21938 s//\1/
21939 q
21940 }
21941 /^X\/\(\/\).*/{
21942 s//\1/
21943 q
21944 }
21945 s/.*/./; q'`
21946 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21947 && sed -e '/# am--include-marker/d' "$am_filepart" \
21948 | $MAKE -f - am--depfiles" >&5
21949 (cd "$am_dirpart" \
21950 && sed -e '/# am--include-marker/d' "$am_filepart" \
21951 | $MAKE -f - am--depfiles) >&5 2>&5
21952 ac_status=$?
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } || am_rc=$?
21955 done
21956 if test $am_rc -ne 0; then
21957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21958 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21959 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21960 for automatic dependency tracking. If GNU make was not used, consider
21961 re-running the configure script with MAKE=\"gmake\" (or whatever is
21962 necessary). You can also try re-running configure with the
21963 '--disable-dependency-tracking' option to at least be able to build
21964 the package (albeit without support for automatic dependency tracking).
21965 See 'config.log' for more details" "$LINENO" 5; }
21966 fi
21967 { am_dirpart=; unset am_dirpart;}
21968 { am_filepart=; unset am_filepart;}
21969 { am_mf=; unset am_mf;}
21970 { am_rc=; unset am_rc;}
21971 rm -f conftest-deps.mk
21972 }
21973 ;;
21974 "libtool":C)
21975
21976 # See if we are running on zsh, and set the options that allow our
21977 # commands through without removal of \ escapes.
21978 if test -n "${ZSH_VERSION+set}"; then
21979 setopt NO_GLOB_SUBST
21980 fi
21981
21982 cfgfile=${ofile}T
21983 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21984 $RM "$cfgfile"
21985
21986 cat <<_LT_EOF >> "$cfgfile"
21987 #! $SHELL
21988 # Generated automatically by $as_me ($PACKAGE) $VERSION
21989 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21990
21991 # Provide generalized library-building support services.
21992 # Written by Gordon Matzigkeit, 1996
21993
21994 # Copyright (C) 2024 Free Software Foundation, Inc.
21995 # This is free software; see the source for copying conditions. There is NO
21996 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21997
21998 # GNU Libtool is free software; you can redistribute it and/or modify
21999 # it under the terms of the GNU General Public License as published by
22000 # the Free Software Foundation; either version 2 of the License, or
22001 # (at your option) any later version.
22002 #
22003 # As a special exception to the GNU General Public License, if you
22004 # distribute this file as part of a program or library that is built
22005 # using GNU Libtool, you may include this file under the same
22006 # distribution terms that you use for the rest of that program.
22007 #
22008 # GNU Libtool is distributed in the hope that it will be useful, but
22009 # WITHOUT ANY WARRANTY; without even the implied warranty of
22010 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22011 # GNU General Public License for more details.
22012 #
22013 # You should have received a copy of the GNU General Public License
22014 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22015
22016
22017 # The names of the tagged configurations supported by this script.
22018 available_tags=''
22019
22020 # Configured defaults for sys_lib_dlsearch_path munging.
22021 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22022
22023 # ### BEGIN LIBTOOL CONFIG
22024
22025 # Which release of libtool.m4 was used?
22026 macro_version=$macro_version
22027 macro_revision=$macro_revision
22028
22029 # Whether or not to build shared libraries.
22030 build_libtool_libs=$enable_shared
22031
22032 # Whether or not to build static libraries.
22033 build_old_libs=$enable_static
22034
22035 # What type of objects to build.
22036 pic_mode=$pic_mode
22037
22038 # Whether or not to optimize for fast installation.
22039 fast_install=$enable_fast_install
22040
22041 # Shared archive member basename,for filename based shared library versioning on AIX.
22042 shared_archive_member_spec=$shared_archive_member_spec
22043
22044 # Shell to use when invoking shell scripts.
22045 SHELL=$lt_SHELL
22046
22047 # An echo program that protects backslashes.
22048 ECHO=$lt_ECHO
22049
22050 # The PATH separator for the build system.
22051 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22052
22053 # The host system.
22054 host_alias=$host_alias
22055 host=$host
22056 host_os=$host_os
22057
22058 # The build system.
22059 build_alias=$build_alias
22060 build=$build
22061 build_os=$build_os
22062
22063 # A sed program that does not truncate output.
22064 SED=$lt_SED
22065
22066 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22067 Xsed="\$SED -e 1s/^X//"
22068
22069 # A grep program that handles long lines.
22070 GREP=$lt_GREP
22071
22072 # An ERE matcher.
22073 EGREP=$lt_EGREP
22074
22075 # A literal string matcher.
22076 FGREP=$lt_FGREP
22077
22078 # A BSD- or MS-compatible name lister.
22079 NM=$lt_NM
22080
22081 # Whether we need soft or hard links.
22082 LN_S=$lt_LN_S
22083
22084 # What is the maximum length of a command?
22085 max_cmd_len=$max_cmd_len
22086
22087 # Object file suffix (normally "o").
22088 objext=$ac_objext
22089
22090 # Executable file suffix (normally "").
22091 exeext=$exeext
22092
22093 # whether the shell understands "unset".
22094 lt_unset=$lt_unset
22095
22096 # turn spaces into newlines.
22097 SP2NL=$lt_lt_SP2NL
22098
22099 # turn newlines into spaces.
22100 NL2SP=$lt_lt_NL2SP
22101
22102 # convert \$build file names to \$host format.
22103 to_host_file_cmd=$lt_cv_to_host_file_cmd
22104
22105 # convert \$build files to toolchain format.
22106 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22107
22108 # A file(cmd) program that detects file types.
22109 FILECMD=$lt_FILECMD
22110
22111 # An object symbol dumper.
22112 OBJDUMP=$lt_OBJDUMP
22113
22114 # Method to check whether dependent libraries are shared objects.
22115 deplibs_check_method=$lt_deplibs_check_method
22116
22117 # Command to use when deplibs_check_method = "file_magic".
22118 file_magic_cmd=$lt_file_magic_cmd
22119
22120 # How to find potential files when deplibs_check_method = "file_magic".
22121 file_magic_glob=$lt_file_magic_glob
22122
22123 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22124 want_nocaseglob=$lt_want_nocaseglob
22125
22126 # DLL creation program.
22127 DLLTOOL=$lt_DLLTOOL
22128
22129 # Command to associate shared and link libraries.
22130 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22131
22132 # The archiver.
22133 AR=$lt_AR
22134
22135 # Flags to create an archive (by configure).
22136 lt_ar_flags=$lt_ar_flags
22137
22138 # Flags to create an archive.
22139 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22140
22141 # How to feed a file listing to the archiver.
22142 archiver_list_spec=$lt_archiver_list_spec
22143
22144 # A symbol stripping program.
22145 STRIP=$lt_STRIP
22146
22147 # Commands used to install an old-style archive.
22148 RANLIB=$lt_RANLIB
22149 old_postinstall_cmds=$lt_old_postinstall_cmds
22150 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22151
22152 # Whether to use a lock for old archive extraction.
22153 lock_old_archive_extraction=$lock_old_archive_extraction
22154
22155 # A C compiler.
22156 LTCC=$lt_CC
22157
22158 # LTCC compiler flags.
22159 LTCFLAGS=$lt_CFLAGS
22160
22161 # Take the output of nm and produce a listing of raw symbols and C names.
22162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22163
22164 # Transform the output of nm in a proper C declaration.
22165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22166
22167 # Transform the output of nm into a list of symbols to manually relocate.
22168 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22169
22170 # Transform the output of nm in a C name address pair.
22171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22172
22173 # Transform the output of nm in a C name address pair when lib prefix is needed.
22174 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22175
22176 # The name lister interface.
22177 nm_interface=$lt_lt_cv_nm_interface
22178
22179 # Specify filename containing input files for \$NM.
22180 nm_file_list_spec=$lt_nm_file_list_spec
22181
22182 # The root where to search for dependent libraries,and where our libraries should be installed.
22183 lt_sysroot=$lt_sysroot
22184
22185 # Command to truncate a binary pipe.
22186 lt_truncate_bin=$lt_lt_cv_truncate_bin
22187
22188 # The name of the directory that contains temporary libtool files.
22189 objdir=$objdir
22190
22191 # Used to examine libraries when file_magic_cmd begins with "file".
22192 MAGIC_CMD=$MAGIC_CMD
22193
22194 # Must we lock files when doing compilation?
22195 need_locks=$lt_need_locks
22196
22197 # Manifest tool.
22198 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22199
22200 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22201 DSYMUTIL=$lt_DSYMUTIL
22202
22203 # Tool to change global to local symbols on Mac OS X.
22204 NMEDIT=$lt_NMEDIT
22205
22206 # Tool to manipulate fat objects and archives on Mac OS X.
22207 LIPO=$lt_LIPO
22208
22209 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22210 OTOOL=$lt_OTOOL
22211
22212 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22213 OTOOL64=$lt_OTOOL64
22214
22215 # Old archive suffix (normally "a").
22216 libext=$libext
22217
22218 # Shared library suffix (normally ".so").
22219 shrext_cmds=$lt_shrext_cmds
22220
22221 # The commands to extract the exported symbol list from a shared archive.
22222 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22223
22224 # Variables whose values should be saved in libtool wrapper scripts and
22225 # restored at link time.
22226 variables_saved_for_relink=$lt_variables_saved_for_relink
22227
22228 # Do we need the "lib" prefix for modules?
22229 need_lib_prefix=$need_lib_prefix
22230
22231 # Do we need a version for libraries?
22232 need_version=$need_version
22233
22234 # Library versioning type.
22235 version_type=$version_type
22236
22237 # Shared library runtime path variable.
22238 runpath_var=$runpath_var
22239
22240 # Shared library path variable.
22241 shlibpath_var=$shlibpath_var
22242
22243 # Is shlibpath searched before the hard-coded library search path?
22244 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22245
22246 # Format of library name prefix.
22247 libname_spec=$lt_libname_spec
22248
22249 # List of archive names. First name is the real one, the rest are links.
22250 # The last name is the one that the linker finds with -lNAME
22251 library_names_spec=$lt_library_names_spec
22252
22253 # The coded name of the library, if different from the real name.
22254 soname_spec=$lt_soname_spec
22255
22256 # Permission mode override for installation of shared libraries.
22257 install_override_mode=$lt_install_override_mode
22258
22259 # Command to use after installation of a shared archive.
22260 postinstall_cmds=$lt_postinstall_cmds
22261
22262 # Command to use after uninstallation of a shared archive.
22263 postuninstall_cmds=$lt_postuninstall_cmds
22264
22265 # Commands used to finish a libtool library installation in a directory.
22266 finish_cmds=$lt_finish_cmds
22267
22268 # As "finish_cmds", except a single script fragment to be evaled but
22269 # not shown.
22270 finish_eval=$lt_finish_eval
22271
22272 # Whether we should hardcode library paths into libraries.
22273 hardcode_into_libs=$hardcode_into_libs
22274
22275 # Compile-time system search path for libraries.
22276 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22277
22278 # Detected run-time system search path for libraries.
22279 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22280
22281 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22282 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22283
22284 # Whether dlopen is supported.
22285 dlopen_support=$enable_dlopen
22286
22287 # Whether dlopen of programs is supported.
22288 dlopen_self=$enable_dlopen_self
22289
22290 # Whether dlopen of statically linked programs is supported.
22291 dlopen_self_static=$enable_dlopen_self_static
22292
22293 # Commands to strip libraries.
22294 old_striplib=$lt_old_striplib
22295 striplib=$lt_striplib
22296
22297
22298 # The linker used to build libraries.
22299 LD=$lt_LD
22300
22301 # How to create reloadable object files.
22302 reload_flag=$lt_reload_flag
22303 reload_cmds=$lt_reload_cmds
22304
22305 # Commands used to build an old-style archive.
22306 old_archive_cmds=$lt_old_archive_cmds
22307
22308 # A language specific compiler.
22309 CC=$lt_compiler
22310
22311 # Is the compiler the GNU compiler?
22312 with_gcc=$GCC
22313
22314 # Compiler flag to turn off builtin functions.
22315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22316
22317 # Additional compiler flags for building library objects.
22318 pic_flag=$lt_lt_prog_compiler_pic
22319
22320 # How to pass a linker flag through the compiler.
22321 wl=$lt_lt_prog_compiler_wl
22322
22323 # Compiler flag to prevent dynamic linking.
22324 link_static_flag=$lt_lt_prog_compiler_static
22325
22326 # Does compiler simultaneously support -c and -o options?
22327 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22328
22329 # Whether or not to add -lc for building shared libraries.
22330 build_libtool_need_lc=$archive_cmds_need_lc
22331
22332 # Whether or not to disallow shared libs when runtime libs are static.
22333 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22334
22335 # Compiler flag to allow reflexive dlopens.
22336 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22337
22338 # Compiler flag to generate shared objects directly from archives.
22339 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22340
22341 # Whether the compiler copes with passing no objects directly.
22342 compiler_needs_object=$lt_compiler_needs_object
22343
22344 # Create an old-style archive from a shared archive.
22345 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22346
22347 # Create a temporary old-style archive to link instead of a shared archive.
22348 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22349
22350 # Commands used to build a shared archive.
22351 archive_cmds=$lt_archive_cmds
22352 archive_expsym_cmds=$lt_archive_expsym_cmds
22353
22354 # Commands used to build a loadable module if different from building
22355 # a shared archive.
22356 module_cmds=$lt_module_cmds
22357 module_expsym_cmds=$lt_module_expsym_cmds
22358
22359 # Whether we are building with GNU ld or not.
22360 with_gnu_ld=$lt_with_gnu_ld
22361
22362 # Flag that allows shared libraries with undefined symbols to be built.
22363 allow_undefined_flag=$lt_allow_undefined_flag
22364
22365 # Flag that enforces no undefined symbols.
22366 no_undefined_flag=$lt_no_undefined_flag
22367
22368 # Flag to hardcode \$libdir into a binary during linking.
22369 # This must work even if \$libdir does not exist
22370 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22371
22372 # Whether we need a single "-rpath" flag with a separated argument.
22373 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22374
22375 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22376 # DIR into the resulting binary.
22377 hardcode_direct=$hardcode_direct
22378
22379 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22380 # DIR into the resulting binary and the resulting library dependency is
22381 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22382 # library is relocated.
22383 hardcode_direct_absolute=$hardcode_direct_absolute
22384
22385 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22386 # into the resulting binary.
22387 hardcode_minus_L=$hardcode_minus_L
22388
22389 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22390 # into the resulting binary.
22391 hardcode_shlibpath_var=$hardcode_shlibpath_var
22392
22393 # Set to "yes" if building a shared library automatically hardcodes DIR
22394 # into the library and all subsequent libraries and executables linked
22395 # against it.
22396 hardcode_automatic=$hardcode_automatic
22397
22398 # Set to yes if linker adds runtime paths of dependent libraries
22399 # to runtime path list.
22400 inherit_rpath=$inherit_rpath
22401
22402 # Whether libtool must link a program against all its dependency libraries.
22403 link_all_deplibs=$link_all_deplibs
22404
22405 # Set to "yes" if exported symbols are required.
22406 always_export_symbols=$always_export_symbols
22407
22408 # The commands to list exported symbols.
22409 export_symbols_cmds=$lt_export_symbols_cmds
22410
22411 # Symbols that should not be listed in the preloaded symbols.
22412 exclude_expsyms=$lt_exclude_expsyms
22413
22414 # Symbols that must always be exported.
22415 include_expsyms=$lt_include_expsyms
22416
22417 # Commands necessary for linking programs (against libraries) with templates.
22418 prelink_cmds=$lt_prelink_cmds
22419
22420 # Commands necessary for finishing linking programs.
22421 postlink_cmds=$lt_postlink_cmds
22422
22423 # Specify filename containing input files.
22424 file_list_spec=$lt_file_list_spec
22425
22426 # How to hardcode a shared library path into an executable.
22427 hardcode_action=$hardcode_action
22428
22429 # ### END LIBTOOL CONFIG
22430
22431 _LT_EOF
22432
22433 cat <<'_LT_EOF' >> "$cfgfile"
22434
22435 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22436
22437 # func_munge_path_list VARIABLE PATH
22438 # -----------------------------------
22439 # VARIABLE is name of variable containing _space_ separated list of
22440 # directories to be munged by the contents of PATH, which is string
22441 # having a format:
22442 # "DIR[:DIR]:"
22443 # string "DIR[ DIR]" will be prepended to VARIABLE
22444 # ":DIR[:DIR]"
22445 # string "DIR[ DIR]" will be appended to VARIABLE
22446 # "DIRP[:DIRP]::[DIRA:]DIRA"
22447 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22448 # "DIRA[ DIRA]" will be appended to VARIABLE
22449 # "DIR[:DIR]"
22450 # VARIABLE will be replaced by "DIR[ DIR]"
22451 func_munge_path_list ()
22452 {
22453 case x$2 in
22454 x)
22455 ;;
22456 *:)
22457 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22458 ;;
22459 x:*)
22460 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22461 ;;
22462 *::*)
22463 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22464 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22465 ;;
22466 *)
22467 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22468 ;;
22469 esac
22470 }
22471
22472
22473 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22474 func_cc_basename ()
22475 {
22476 for cc_temp in $*""; do
22477 case $cc_temp in
22478 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22479 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22480 \-*) ;;
22481 *) break;;
22482 esac
22483 done
22484 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22485 }
22486
22487
22488 # ### END FUNCTIONS SHARED WITH CONFIGURE
22489
22490 _LT_EOF
22491
22492 case $host_os in
22493 aix3*)
22494 cat <<\_LT_EOF >> "$cfgfile"
22495 # AIX sometimes has problems with the GCC collect2 program. For some
22496 # reason, if we set the COLLECT_NAMES environment variable, the problems
22497 # vanish in a puff of smoke.
22498 if test set != "${COLLECT_NAMES+set}"; then
22499 COLLECT_NAMES=
22500 export COLLECT_NAMES
22501 fi
22502 _LT_EOF
22503 ;;
22504 esac
22505
22506
22507
22508 ltmain=$ac_aux_dir/ltmain.sh
22509
22510
22511 # We use sed instead of cat because bash on DJGPP gets confused if
22512 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22513 # text mode, it properly converts lines to CR/LF. This bash problem
22514 # is reportedly fixed, but why not run on old versions too?
22515 $SED '$q' "$ltmain" >> "$cfgfile" \
22516 || (rm -f "$cfgfile"; exit 1)
22517
22518 mv -f "$cfgfile" "$ofile" ||
22519 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22520 chmod +x "$ofile"
22521
22522 ;;
22523 "po-directories":C)
22524 for ac_file in $CONFIG_FILES; do
22525 # Support "outfile[:infile[:infile...]]"
22526 case "$ac_file" in
22527 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22528 esac
22529 # PO directories have a Makefile.in generated from Makefile.in.in.
22530 case "$ac_file" in */Makefile.in)
22531 # Adjust a relative srcdir.
22532 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22533 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22534 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22535 # In autoconf-2.13 it is called $ac_given_srcdir.
22536 # In autoconf-2.50 it is called $srcdir.
22537 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22538 case "$ac_given_srcdir" in
22539 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22540 /*) top_srcdir="$ac_given_srcdir" ;;
22541 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22542 esac
22543 # Treat a directory as a PO directory if and only if it has a
22544 # POTFILES.in file. This allows packages to have multiple PO
22545 # directories under different names or in different locations.
22546 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22547 rm -f "$ac_dir/POTFILES"
22548 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22549 gt_tab=`printf '\t'`
22550 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22551 POMAKEFILEDEPS="POTFILES.in"
22552 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22553 # on $ac_dir but don't depend on user-specified configuration
22554 # parameters.
22555 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22556 # The LINGUAS file contains the set of available languages.
22557 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22558 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22559 fi
22560 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22561 # Hide the ALL_LINGUAS assignment from automake < 1.5.
22562 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22563 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22564 else
22565 # The set of available languages was given in configure.in.
22566 # Hide the ALL_LINGUAS assignment from automake < 1.5.
22567 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22568 fi
22569 # Compute POFILES
22570 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22571 # Compute UPDATEPOFILES
22572 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22573 # Compute DUMMYPOFILES
22574 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22575 # Compute GMOFILES
22576 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22577 case "$ac_given_srcdir" in
22578 .) srcdirpre= ;;
22579 *) srcdirpre='$(srcdir)/' ;;
22580 esac
22581 POFILES=
22582 UPDATEPOFILES=
22583 DUMMYPOFILES=
22584 GMOFILES=
22585 for lang in $ALL_LINGUAS; do
22586 POFILES="$POFILES $srcdirpre$lang.po"
22587 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22588 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22589 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22590 done
22591 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22592 # environment variable.
22593 INST_LINGUAS=
22594 if test -n "$ALL_LINGUAS"; then
22595 for presentlang in $ALL_LINGUAS; do
22596 useit=no
22597 if test "%UNSET%" != "$LINGUAS"; then
22598 desiredlanguages="$LINGUAS"
22599 else
22600 desiredlanguages="$ALL_LINGUAS"
22601 fi
22602 for desiredlang in $desiredlanguages; do
22603 # Use the presentlang catalog if desiredlang is
22604 # a. equal to presentlang, or
22605 # b. a variant of presentlang (because in this case,
22606 # presentlang can be used as a fallback for messages
22607 # which are not translated in the desiredlang catalog).
22608 case "$desiredlang" in
22609 "$presentlang"*) useit=yes;;
22610 esac
22611 done
22612 if test $useit = yes; then
22613 INST_LINGUAS="$INST_LINGUAS $presentlang"
22614 fi
22615 done
22616 fi
22617 CATALOGS=
22618 if test -n "$INST_LINGUAS"; then
22619 for lang in $INST_LINGUAS; do
22620 CATALOGS="$CATALOGS $lang.gmo"
22621 done
22622 fi
22623 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22624 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22625 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22626 if test -f "$f"; then
22627 case "$f" in
22628 *.orig | *.bak | *~) ;;
22629 *) cat "$f" >> "$ac_dir/Makefile" ;;
22630 esac
22631 fi
22632 done
22633 fi
22634 ;;
22635 esac
22636 done ;;
22637
22638 esac
22639 done # for ac_tag
22640
22641
22642 as_fn_exit 0
22643 _ACEOF
22644 ac_clean_files=$ac_clean_files_save
22645
22646 test $ac_write_fail = 0 ||
22647 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22648
22649
22650 # configure is writing to config.log, and then calls config.status.
22651 # config.status does its own redirection, appending to config.log.
22652 # Unfortunately, on DOS this fails, as config.log is still kept open
22653 # by configure, so config.status won't be able to write to it; its
22654 # output is simply discarded. So we exec the FD to /dev/null,
22655 # effectively closing config.log, so it can be properly (re)opened and
22656 # appended to by config.status. When coming back to configure, we
22657 # need to make the FD available again.
22658 if test "$no_create" != yes; then
22659 ac_cs_success=:
22660 ac_config_status_args=
22661 test "$silent" = yes &&
22662 ac_config_status_args="$ac_config_status_args --quiet"
22663 exec 5>/dev/null
22664 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22665 exec 5>>config.log
22666 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22667 # would make configure fail if this is the last instruction.
22668 $ac_cs_success || as_fn_exit 1
22669 fi
22670 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22672 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22673 fi
22674
22675
22676 echo "
22677 udisks $VERSION
22678 ================
22679
22680 prefix: ${prefix}
22681 libdir: ${libdir}
22682 libexecdir: ${libexecdir}
22683 bindir: ${bindir}
22684 sbindir: ${sbindir}
22685 datadir: ${datadir}
22686 sysconfdir: ${sysconfdir}
22687 localstatedir: ${localstatedir}
22688 docdir: ${docdir}
22689 introspection: ${found_introspection}
22690
22691 udevdir: ${udevdir}
22692 systemdsystemunitdir: ${systemdsystemunitdir}
22693 tmpfilesdir: ${tmpfilesdir}
22694 using libsystemd-login: ${have_libsystemd_login}
22695 using libelogind: ${have_libelogind}
22696 use /media for mounting: ${fhs_media}
22697 acl support: ${have_acl}
22698
22699 compiler: ${CC}
22700 cflags: ${CFLAGS}
22701 cppflags: ${CPPFLAGS}
22702
22703 Maintainer mode: ${USE_MAINTAINER_MODE}
22704 Building api docs: ${enable_gtk_doc}
22705 Building man pages: ${enable_man}
22706
22707 Enable daemon: ${enable_daemon}
22708 Enable modules: ${enable_modules_info}
22709
22710 ATA SMART support: ${have_smart}
22711 BTRFS module: ${have_btrfs}
22712 iSCSI module: ${have_iscsi}${have_libiscsi_session_info_msg}
22713 LVM2 module: ${have_lvm2}
22714 LibStorageMgmt module: ${have_lsm}
22715 "
22716