]> git.proxmox.com Git - systemd.git/blob - configure
Merge branch 'upstream'
[systemd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for systemd 204.
4 #
5 # Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=systemd>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.freedesktop.org/enter_bug.cgi?product=systemd
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='systemd'
593 PACKAGE_TARNAME='systemd'
594 PACKAGE_VERSION='204'
595 PACKAGE_STRING='systemd 204'
596 PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=systemd'
597 PACKAGE_URL='http://www.freedesktop.org/wiki/Software/systemd'
598
599 ac_unique_file="src/core/main.c"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_default_prefix=/usr
637 ac_header_list=
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 LTLIBOBJS
641 rootlibdir
642 rootprefix
643 pamlibdir
644 bashcompletiondir
645 dbusinterfacedir
646 dbussystemservicedir
647 dbussessionservicedir
648 dbuspolicydir
649 ENABLE_TESTS_FALSE
650 ENABLE_TESTS_TRUE
651 ENABLE_GTK_DOC_TESTS_FALSE
652 ENABLE_GTK_DOC_TESTS_TRUE
653 HAVE_SYSV_COMPAT_FALSE
654 HAVE_SYSV_COMPAT_TRUE
655 M4_DEFINES
656 SYSTEM_SYSVRCND_PATH
657 SYSTEM_SYSVINIT_PATH
658 ENABLE_MANPAGES_FALSE
659 ENABLE_MANPAGES_TRUE
660 ENABLE_KEYMAP_FALSE
661 ENABLE_KEYMAP_TRUE
662 INCLUDE_PREFIX
663 ENABLE_GUDEV_FALSE
664 ENABLE_GUDEV_TRUE
665 GLIB_LIBS
666 GLIB_CFLAGS
667 ENABLE_FIRMWARE_FALSE
668 ENABLE_FIRMWARE_TRUE
669 FIRMWARE_PATH
670 HAVE_MYHOSTNAME_FALSE
671 HAVE_MYHOSTNAME_TRUE
672 LIBOBJS
673 TELINIT
674 KBD_SETFONT
675 KBD_LOADKEYS
676 RC_LOCAL_SCRIPT_PATH_STOP
677 RC_LOCAL_SCRIPT_PATH_START
678 ENABLE_EFI_FALSE
679 ENABLE_EFI_TRUE
680 ENABLE_POLKIT_FALSE
681 ENABLE_POLKIT_TRUE
682 ENABLE_COREDUMP_FALSE
683 ENABLE_COREDUMP_TRUE
684 ENABLE_LOCALED_FALSE
685 ENABLE_LOCALED_TRUE
686 ENABLE_TIMEDATED_FALSE
687 ENABLE_TIMEDATED_TRUE
688 ENABLE_HOSTNAMED_FALSE
689 ENABLE_HOSTNAMED_TRUE
690 ENABLE_LOGIND_FALSE
691 ENABLE_LOGIND_TRUE
692 ENABLE_RANDOMSEED_FALSE
693 ENABLE_RANDOMSEED_TRUE
694 ENABLE_QUOTACHECK_FALSE
695 ENABLE_QUOTACHECK_TRUE
696 ENABLE_BOOTCHART_FALSE
697 ENABLE_BOOTCHART_TRUE
698 ENABLE_READAHEAD_FALSE
699 ENABLE_READAHEAD_TRUE
700 ENABLE_VCONSOLE_FALSE
701 ENABLE_VCONSOLE_TRUE
702 ENABLE_BINFMT_FALSE
703 ENABLE_BINFMT_TRUE
704 HAVE_MICROHTTPD_FALSE
705 HAVE_MICROHTTPD_TRUE
706 MICROHTTPD_LIBS
707 MICROHTTPD_CFLAGS
708 HAVE_QRENCODE_FALSE
709 HAVE_QRENCODE_TRUE
710 QRENCODE_LIBS
711 QRENCODE_CFLAGS
712 HAVE_LIBCRYPTSETUP_FALSE
713 HAVE_LIBCRYPTSETUP_TRUE
714 LIBCRYPTSETUP_LIBS
715 LIBCRYPTSETUP_CFLAGS
716 AUDIT_LIBS
717 HAVE_GCRYPT_FALSE
718 HAVE_GCRYPT_TRUE
719 GCRYPT_CFLAGS
720 GCRYPT_LIBS
721 LIBGCRYPT_LIBS
722 LIBGCRYPT_CFLAGS
723 LIBGCRYPT_CONFIG
724 HAVE_XATTR_FALSE
725 HAVE_XATTR_TRUE
726 XATTR_LIBS
727 HAVE_ACL_FALSE
728 HAVE_ACL_TRUE
729 ACL_LIBS
730 HAVE_PAM_FALSE
731 HAVE_PAM_TRUE
732 PAM_LIBS
733 LIBWRAP_LIBS
734 HAVE_XZ_FALSE
735 HAVE_XZ_TRUE
736 XZ_LIBS
737 XZ_CFLAGS
738 DEBUGTTY
739 SUSHELL
740 HAVE_SELINUX_FALSE
741 HAVE_SELINUX_TRUE
742 SELINUX_LIBS
743 SELINUX_CFLAGS
744 CHKCONFIG
745 HAVE_BLKID_FALSE
746 HAVE_BLKID_TRUE
747 BLKID_LIBS
748 BLKID_CFLAGS
749 HAVE_KMOD_FALSE
750 HAVE_KMOD_TRUE
751 KMOD_LIBS
752 KMOD_CFLAGS
753 DBUS_LIBS
754 DBUS_CFLAGS
755 CAP_LIBS
756 HAVE_PYTHON_DEVEL_FALSE
757 HAVE_PYTHON_DEVEL_TRUE
758 SPHINX_BUILD
759 PYTHON_LIBS
760 PYTHON_CFLAGS
761 PYTHON_CONFIG
762 PYTHON_BINARY
763 HAVE_PYTHON_FALSE
764 HAVE_PYTHON_TRUE
765 pkgpyexecdir
766 pyexecdir
767 pkgpythondir
768 pythondir
769 PYTHON_PLATFORM
770 PYTHON_EXEC_PREFIX
771 PYTHON_PREFIX
772 PYTHON_VERSION
773 PYTHON
774 OUR_LDFLAGS
775 OUR_CPPFLAGS
776 OUR_CFLAGS
777 GPERF
778 STRINGS
779 OBJCOPY
780 HAVE_INTROSPECTION_FALSE
781 HAVE_INTROSPECTION_TRUE
782 INTROSPECTION_MAKEFILE
783 INTROSPECTION_LIBS
784 INTROSPECTION_CFLAGS
785 INTROSPECTION_TYPELIBDIR
786 INTROSPECTION_GIRDIR
787 INTROSPECTION_GENERATE
788 INTROSPECTION_COMPILER
789 INTROSPECTION_SCANNER
790 GTK_DOC_USE_REBASE_FALSE
791 GTK_DOC_USE_REBASE_TRUE
792 GTK_DOC_USE_LIBTOOL_FALSE
793 GTK_DOC_USE_LIBTOOL_TRUE
794 GTK_DOC_BUILD_PDF_FALSE
795 GTK_DOC_BUILD_PDF_TRUE
796 GTK_DOC_BUILD_HTML_FALSE
797 GTK_DOC_BUILD_HTML_TRUE
798 ENABLE_GTK_DOC_FALSE
799 ENABLE_GTK_DOC_TRUE
800 GTKDOC_DEPS_LIBS
801 GTKDOC_DEPS_CFLAGS
802 HTML_DIR
803 GTKDOC_MKPDF
804 GTKDOC_REBASE
805 GTKDOC_CHECK
806 PKG_CONFIG_LIBDIR
807 PKG_CONFIG_PATH
808 PKG_CONFIG
809 KILL
810 SETCAP
811 QUOTACHECK
812 QUOTAON
813 XSLTPROC
814 M4
815 GETTEXT_PACKAGE
816 DATADIRNAME
817 ALL_LINGUAS
818 INTLTOOL_PERL
819 GMSGFMT
820 MSGFMT
821 MSGMERGE
822 XGETTEXT
823 INTLTOOL_POLICY_RULE
824 INTLTOOL_SERVICE_RULE
825 INTLTOOL_THEME_RULE
826 INTLTOOL_SCHEMAS_RULE
827 INTLTOOL_CAVES_RULE
828 INTLTOOL_XML_NOMERGE_RULE
829 INTLTOOL_XML_RULE
830 INTLTOOL_KBD_RULE
831 INTLTOOL_XAM_RULE
832 INTLTOOL_UI_RULE
833 INTLTOOL_SOUNDLIST_RULE
834 INTLTOOL_SHEET_RULE
835 INTLTOOL_SERVER_RULE
836 INTLTOOL_PONG_RULE
837 INTLTOOL_OAF_RULE
838 INTLTOOL_PROP_RULE
839 INTLTOOL_KEYS_RULE
840 INTLTOOL_DIRECTORY_RULE
841 INTLTOOL_DESKTOP_RULE
842 intltool__v_merge_options_0
843 intltool__v_merge_options_
844 INTLTOOL_V_MERGE_OPTIONS
845 INTLTOOL__v_MERGE_0
846 INTLTOOL__v_MERGE_
847 INTLTOOL_V_MERGE
848 INTLTOOL_EXTRACT
849 INTLTOOL_MERGE
850 INTLTOOL_UPDATE
851 USE_NLS
852 OTOOL64
853 OTOOL
854 LIPO
855 NMEDIT
856 DSYMUTIL
857 MANIFEST_TOOL
858 RANLIB
859 ac_ct_AR
860 AR
861 DLLTOOL
862 OBJDUMP
863 LN_S
864 NM
865 ac_ct_DUMPBIN
866 DUMPBIN
867 LD
868 FGREP
869 SED
870 LIBTOOL
871 host_os
872 host_vendor
873 host_cpu
874 host
875 build_os
876 build_vendor
877 build_cpu
878 build
879 AM_BACKSLASH
880 AM_DEFAULT_VERBOSITY
881 AM_DEFAULT_V
882 AM_V
883 am__fastdepCC_FALSE
884 am__fastdepCC_TRUE
885 CCDEPMODE
886 am__nodep
887 AMDEPBACKSLASH
888 AMDEP_FALSE
889 AMDEP_TRUE
890 am__quote
891 am__include
892 DEPDIR
893 am__untar
894 am__tar
895 AMTAR
896 am__leading_dot
897 SET_MAKE
898 AWK
899 mkdir_p
900 MKDIR_P
901 INSTALL_STRIP_PROGRAM
902 STRIP
903 install_sh
904 MAKEINFO
905 AUTOHEADER
906 AUTOMAKE
907 AUTOCONF
908 ACLOCAL
909 VERSION
910 PACKAGE
911 CYGPATH_W
912 am__isrc
913 INSTALL_DATA
914 INSTALL_SCRIPT
915 INSTALL_PROGRAM
916 EGREP
917 GREP
918 CPP
919 OBJEXT
920 EXEEXT
921 ac_ct_CC
922 CPPFLAGS
923 LDFLAGS
924 CFLAGS
925 CC
926 target_alias
927 host_alias
928 build_alias
929 LIBS
930 ECHO_T
931 ECHO_N
932 ECHO_C
933 DEFS
934 mandir
935 localedir
936 libdir
937 psdir
938 pdfdir
939 dvidir
940 htmldir
941 infodir
942 docdir
943 oldincludedir
944 includedir
945 localstatedir
946 sharedstatedir
947 sysconfdir
948 datadir
949 datarootdir
950 libexecdir
951 sbindir
952 bindir
953 program_transform_name
954 prefix
955 exec_prefix
956 PACKAGE_URL
957 PACKAGE_BUGREPORT
958 PACKAGE_STRING
959 PACKAGE_VERSION
960 PACKAGE_TARNAME
961 PACKAGE_NAME
962 PATH_SEPARATOR
963 SHELL'
964 ac_subst_files=''
965 ac_user_opts='
966 enable_option_checking
967 enable_largefile
968 enable_dependency_tracking
969 enable_silent_rules
970 enable_static
971 enable_shared
972 with_pic
973 enable_fast_install
974 with_gnu_ld
975 with_sysroot
976 enable_libtool_lock
977 enable_nls
978 with_html_dir
979 enable_gtk_doc
980 enable_gtk_doc_html
981 enable_gtk_doc_pdf
982 enable_introspection
983 with_python
984 enable_kmod
985 enable_blkid
986 enable_ima
987 enable_chkconfig
988 enable_selinux
989 with_debug_shell
990 with_debug_tty
991 enable_xz
992 enable_tcpwrap
993 enable_pam
994 enable_acl
995 enable_xattr
996 enable_gcrypt
997 with_libgcrypt_prefix
998 enable_audit
999 enable_libcryptsetup
1000 enable_qrencode
1001 enable_microhttpd
1002 enable_binfmt
1003 enable_vconsole
1004 enable_readahead
1005 enable_bootchart
1006 enable_quotacheck
1007 enable_randomseed
1008 enable_logind
1009 enable_hostnamed
1010 enable_timedated
1011 enable_localed
1012 enable_coredump
1013 enable_polkit
1014 enable_efi
1015 with_rc_local_script_path_start
1016 with_rc_local_script_path_stop
1017 with_kbd_loadkeys
1018 with_kbd_setfont
1019 with_telinit
1020 enable_myhostname
1021 with_firmware_path
1022 enable_gudev
1023 enable_keymap
1024 enable_manpages
1025 with_sysvinit_path
1026 with_sysvrcnd_path
1027 with_tty_gid
1028 with_dbuspolicydir
1029 with_dbussessionservicedir
1030 with_dbussystemservicedir
1031 with_dbusinterfacedir
1032 with_bashcompletiondir
1033 with_rootprefix
1034 with_rootlibdir
1035 with_pamlibdir
1036 enable_split_usr
1037 enable_tests
1038 '
1039 ac_precious_vars='build_alias
1040 host_alias
1041 target_alias
1042 CC
1043 CFLAGS
1044 LDFLAGS
1045 LIBS
1046 CPPFLAGS
1047 CPP
1048 PKG_CONFIG
1049 PKG_CONFIG_PATH
1050 PKG_CONFIG_LIBDIR
1051 GTKDOC_DEPS_CFLAGS
1052 GTKDOC_DEPS_LIBS
1053 PYTHON
1054 PYTHON_BINARY
1055 DBUS_CFLAGS
1056 DBUS_LIBS
1057 KMOD_CFLAGS
1058 KMOD_LIBS
1059 BLKID_CFLAGS
1060 BLKID_LIBS
1061 SELINUX_CFLAGS
1062 SELINUX_LIBS
1063 XZ_CFLAGS
1064 XZ_LIBS
1065 LIBCRYPTSETUP_CFLAGS
1066 LIBCRYPTSETUP_LIBS
1067 QRENCODE_CFLAGS
1068 QRENCODE_LIBS
1069 MICROHTTPD_CFLAGS
1070 MICROHTTPD_LIBS
1071 GLIB_CFLAGS
1072 GLIB_LIBS'
1073
1074
1075 # Initialize some variables set by options.
1076 ac_init_help=
1077 ac_init_version=false
1078 ac_unrecognized_opts=
1079 ac_unrecognized_sep=
1080 # The variables have the same names as the options, with
1081 # dashes changed to underlines.
1082 cache_file=/dev/null
1083 exec_prefix=NONE
1084 no_create=
1085 no_recursion=
1086 prefix=NONE
1087 program_prefix=NONE
1088 program_suffix=NONE
1089 program_transform_name=s,x,x,
1090 silent=
1091 site=
1092 srcdir=
1093 verbose=
1094 x_includes=NONE
1095 x_libraries=NONE
1096
1097 # Installation directory options.
1098 # These are left unexpanded so users can "make install exec_prefix=/foo"
1099 # and all the variables that are supposed to be based on exec_prefix
1100 # by default will actually change.
1101 # Use braces instead of parens because sh, perl, etc. also accept them.
1102 # (The list follows the same order as the GNU Coding Standards.)
1103 bindir='${exec_prefix}/bin'
1104 sbindir='${exec_prefix}/sbin'
1105 libexecdir='${exec_prefix}/libexec'
1106 datarootdir='${prefix}/share'
1107 datadir='${datarootdir}'
1108 sysconfdir='${prefix}/etc'
1109 sharedstatedir='${prefix}/com'
1110 localstatedir='${prefix}/var'
1111 includedir='${prefix}/include'
1112 oldincludedir='/usr/include'
1113 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1114 infodir='${datarootdir}/info'
1115 htmldir='${docdir}'
1116 dvidir='${docdir}'
1117 pdfdir='${docdir}'
1118 psdir='${docdir}'
1119 libdir='${exec_prefix}/lib'
1120 localedir='${datarootdir}/locale'
1121 mandir='${datarootdir}/man'
1122
1123 ac_prev=
1124 ac_dashdash=
1125 for ac_option
1126 do
1127 # If the previous option needs an argument, assign it.
1128 if test -n "$ac_prev"; then
1129 eval $ac_prev=\$ac_option
1130 ac_prev=
1131 continue
1132 fi
1133
1134 case $ac_option in
1135 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1136 *=) ac_optarg= ;;
1137 *) ac_optarg=yes ;;
1138 esac
1139
1140 # Accept the important Cygnus configure options, so we can diagnose typos.
1141
1142 case $ac_dashdash$ac_option in
1143 --)
1144 ac_dashdash=yes ;;
1145
1146 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1147 ac_prev=bindir ;;
1148 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1149 bindir=$ac_optarg ;;
1150
1151 -build | --build | --buil | --bui | --bu)
1152 ac_prev=build_alias ;;
1153 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1154 build_alias=$ac_optarg ;;
1155
1156 -cache-file | --cache-file | --cache-fil | --cache-fi \
1157 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1158 ac_prev=cache_file ;;
1159 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1160 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1161 cache_file=$ac_optarg ;;
1162
1163 --config-cache | -C)
1164 cache_file=config.cache ;;
1165
1166 -datadir | --datadir | --datadi | --datad)
1167 ac_prev=datadir ;;
1168 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1169 datadir=$ac_optarg ;;
1170
1171 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1172 | --dataroo | --dataro | --datar)
1173 ac_prev=datarootdir ;;
1174 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1175 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1176 datarootdir=$ac_optarg ;;
1177
1178 -disable-* | --disable-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid feature name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "enable_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval enable_$ac_useropt=no ;;
1193
1194 -docdir | --docdir | --docdi | --doc | --do)
1195 ac_prev=docdir ;;
1196 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1197 docdir=$ac_optarg ;;
1198
1199 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1200 ac_prev=dvidir ;;
1201 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1202 dvidir=$ac_optarg ;;
1203
1204 -enable-* | --enable-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid feature name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213 "enable_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval enable_$ac_useropt=\$ac_optarg ;;
1219
1220 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1221 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1222 | --exec | --exe | --ex)
1223 ac_prev=exec_prefix ;;
1224 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1225 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1226 | --exec=* | --exe=* | --ex=*)
1227 exec_prefix=$ac_optarg ;;
1228
1229 -gas | --gas | --ga | --g)
1230 # Obsolete; use --with-gas.
1231 with_gas=yes ;;
1232
1233 -help | --help | --hel | --he | -h)
1234 ac_init_help=long ;;
1235 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1236 ac_init_help=recursive ;;
1237 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1238 ac_init_help=short ;;
1239
1240 -host | --host | --hos | --ho)
1241 ac_prev=host_alias ;;
1242 -host=* | --host=* | --hos=* | --ho=*)
1243 host_alias=$ac_optarg ;;
1244
1245 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1246 ac_prev=htmldir ;;
1247 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1248 | --ht=*)
1249 htmldir=$ac_optarg ;;
1250
1251 -includedir | --includedir | --includedi | --included | --include \
1252 | --includ | --inclu | --incl | --inc)
1253 ac_prev=includedir ;;
1254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1255 | --includ=* | --inclu=* | --incl=* | --inc=*)
1256 includedir=$ac_optarg ;;
1257
1258 -infodir | --infodir | --infodi | --infod | --info | --inf)
1259 ac_prev=infodir ;;
1260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1261 infodir=$ac_optarg ;;
1262
1263 -libdir | --libdir | --libdi | --libd)
1264 ac_prev=libdir ;;
1265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1266 libdir=$ac_optarg ;;
1267
1268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1269 | --libexe | --libex | --libe)
1270 ac_prev=libexecdir ;;
1271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1272 | --libexe=* | --libex=* | --libe=*)
1273 libexecdir=$ac_optarg ;;
1274
1275 -localedir | --localedir | --localedi | --localed | --locale)
1276 ac_prev=localedir ;;
1277 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1278 localedir=$ac_optarg ;;
1279
1280 -localstatedir | --localstatedir | --localstatedi | --localstated \
1281 | --localstate | --localstat | --localsta | --localst | --locals)
1282 ac_prev=localstatedir ;;
1283 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1284 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1285 localstatedir=$ac_optarg ;;
1286
1287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1288 ac_prev=mandir ;;
1289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1290 mandir=$ac_optarg ;;
1291
1292 -nfp | --nfp | --nf)
1293 # Obsolete; use --without-fp.
1294 with_fp=no ;;
1295
1296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1297 | --no-cr | --no-c | -n)
1298 no_create=yes ;;
1299
1300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1302 no_recursion=yes ;;
1303
1304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1306 | --oldin | --oldi | --old | --ol | --o)
1307 ac_prev=oldincludedir ;;
1308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1311 oldincludedir=$ac_optarg ;;
1312
1313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1314 ac_prev=prefix ;;
1315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1316 prefix=$ac_optarg ;;
1317
1318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1319 | --program-pre | --program-pr | --program-p)
1320 ac_prev=program_prefix ;;
1321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1323 program_prefix=$ac_optarg ;;
1324
1325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1326 | --program-suf | --program-su | --program-s)
1327 ac_prev=program_suffix ;;
1328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1330 program_suffix=$ac_optarg ;;
1331
1332 -program-transform-name | --program-transform-name \
1333 | --program-transform-nam | --program-transform-na \
1334 | --program-transform-n | --program-transform- \
1335 | --program-transform | --program-transfor \
1336 | --program-transfo | --program-transf \
1337 | --program-trans | --program-tran \
1338 | --progr-tra | --program-tr | --program-t)
1339 ac_prev=program_transform_name ;;
1340 -program-transform-name=* | --program-transform-name=* \
1341 | --program-transform-nam=* | --program-transform-na=* \
1342 | --program-transform-n=* | --program-transform-=* \
1343 | --program-transform=* | --program-transfor=* \
1344 | --program-transfo=* | --program-transf=* \
1345 | --program-trans=* | --program-tran=* \
1346 | --progr-tra=* | --program-tr=* | --program-t=*)
1347 program_transform_name=$ac_optarg ;;
1348
1349 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1350 ac_prev=pdfdir ;;
1351 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1352 pdfdir=$ac_optarg ;;
1353
1354 -psdir | --psdir | --psdi | --psd | --ps)
1355 ac_prev=psdir ;;
1356 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1357 psdir=$ac_optarg ;;
1358
1359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1360 | -silent | --silent | --silen | --sile | --sil)
1361 silent=yes ;;
1362
1363 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1364 ac_prev=sbindir ;;
1365 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1366 | --sbi=* | --sb=*)
1367 sbindir=$ac_optarg ;;
1368
1369 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1370 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1371 | --sharedst | --shareds | --shared | --share | --shar \
1372 | --sha | --sh)
1373 ac_prev=sharedstatedir ;;
1374 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1375 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1376 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1377 | --sha=* | --sh=*)
1378 sharedstatedir=$ac_optarg ;;
1379
1380 -site | --site | --sit)
1381 ac_prev=site ;;
1382 -site=* | --site=* | --sit=*)
1383 site=$ac_optarg ;;
1384
1385 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1386 ac_prev=srcdir ;;
1387 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1388 srcdir=$ac_optarg ;;
1389
1390 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1391 | --syscon | --sysco | --sysc | --sys | --sy)
1392 ac_prev=sysconfdir ;;
1393 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1394 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1395 sysconfdir=$ac_optarg ;;
1396
1397 -target | --target | --targe | --targ | --tar | --ta | --t)
1398 ac_prev=target_alias ;;
1399 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1400 target_alias=$ac_optarg ;;
1401
1402 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1403 verbose=yes ;;
1404
1405 -version | --version | --versio | --versi | --vers | -V)
1406 ac_init_version=: ;;
1407
1408 -with-* | --with-*)
1409 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1410 # Reject names that are not valid shell variable names.
1411 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1412 as_fn_error $? "invalid package name: $ac_useropt"
1413 ac_useropt_orig=$ac_useropt
1414 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1415 case $ac_user_opts in
1416 *"
1417 "with_$ac_useropt"
1418 "*) ;;
1419 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1420 ac_unrecognized_sep=', ';;
1421 esac
1422 eval with_$ac_useropt=\$ac_optarg ;;
1423
1424 -without-* | --without-*)
1425 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1426 # Reject names that are not valid shell variable names.
1427 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1428 as_fn_error $? "invalid package name: $ac_useropt"
1429 ac_useropt_orig=$ac_useropt
1430 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1431 case $ac_user_opts in
1432 *"
1433 "with_$ac_useropt"
1434 "*) ;;
1435 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1436 ac_unrecognized_sep=', ';;
1437 esac
1438 eval with_$ac_useropt=no ;;
1439
1440 --x)
1441 # Obsolete; use --with-x.
1442 with_x=yes ;;
1443
1444 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1445 | --x-incl | --x-inc | --x-in | --x-i)
1446 ac_prev=x_includes ;;
1447 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1448 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1449 x_includes=$ac_optarg ;;
1450
1451 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1452 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1453 ac_prev=x_libraries ;;
1454 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1455 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1456 x_libraries=$ac_optarg ;;
1457
1458 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1459 Try \`$0 --help' for more information"
1460 ;;
1461
1462 *=*)
1463 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1464 # Reject names that are not valid shell variable names.
1465 case $ac_envvar in #(
1466 '' | [0-9]* | *[!_$as_cr_alnum]* )
1467 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1468 esac
1469 eval $ac_envvar=\$ac_optarg
1470 export $ac_envvar ;;
1471
1472 *)
1473 # FIXME: should be removed in autoconf 3.0.
1474 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1475 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1476 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1477 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1478 ;;
1479
1480 esac
1481 done
1482
1483 if test -n "$ac_prev"; then
1484 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1485 as_fn_error $? "missing argument to $ac_option"
1486 fi
1487
1488 if test -n "$ac_unrecognized_opts"; then
1489 case $enable_option_checking in
1490 no) ;;
1491 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1492 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1493 esac
1494 fi
1495
1496 # Check all directory arguments for consistency.
1497 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1498 datadir sysconfdir sharedstatedir localstatedir includedir \
1499 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1500 libdir localedir mandir
1501 do
1502 eval ac_val=\$$ac_var
1503 # Remove trailing slashes.
1504 case $ac_val in
1505 */ )
1506 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1507 eval $ac_var=\$ac_val;;
1508 esac
1509 # Be sure to have absolute directory names.
1510 case $ac_val in
1511 [\\/$]* | ?:[\\/]* ) continue;;
1512 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1513 esac
1514 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1515 done
1516
1517 # There might be people who depend on the old broken behavior: `$host'
1518 # used to hold the argument of --host etc.
1519 # FIXME: To remove some day.
1520 build=$build_alias
1521 host=$host_alias
1522 target=$target_alias
1523
1524 # FIXME: To remove some day.
1525 if test "x$host_alias" != x; then
1526 if test "x$build_alias" = x; then
1527 cross_compiling=maybe
1528 elif test "x$build_alias" != "x$host_alias"; then
1529 cross_compiling=yes
1530 fi
1531 fi
1532
1533 ac_tool_prefix=
1534 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1535
1536 test "$silent" = yes && exec 6>/dev/null
1537
1538
1539 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1540 ac_ls_di=`ls -di .` &&
1541 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1542 as_fn_error $? "working directory cannot be determined"
1543 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1544 as_fn_error $? "pwd does not report name of working directory"
1545
1546
1547 # Find the source files, if location was not specified.
1548 if test -z "$srcdir"; then
1549 ac_srcdir_defaulted=yes
1550 # Try the directory containing this script, then the parent directory.
1551 ac_confdir=`$as_dirname -- "$as_myself" ||
1552 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1553 X"$as_myself" : 'X\(//\)[^/]' \| \
1554 X"$as_myself" : 'X\(//\)$' \| \
1555 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1556 $as_echo X"$as_myself" |
1557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1558 s//\1/
1559 q
1560 }
1561 /^X\(\/\/\)[^/].*/{
1562 s//\1/
1563 q
1564 }
1565 /^X\(\/\/\)$/{
1566 s//\1/
1567 q
1568 }
1569 /^X\(\/\).*/{
1570 s//\1/
1571 q
1572 }
1573 s/.*/./; q'`
1574 srcdir=$ac_confdir
1575 if test ! -r "$srcdir/$ac_unique_file"; then
1576 srcdir=..
1577 fi
1578 else
1579 ac_srcdir_defaulted=no
1580 fi
1581 if test ! -r "$srcdir/$ac_unique_file"; then
1582 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1583 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1584 fi
1585 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1586 ac_abs_confdir=`(
1587 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1588 pwd)`
1589 # When building in place, set srcdir=.
1590 if test "$ac_abs_confdir" = "$ac_pwd"; then
1591 srcdir=.
1592 fi
1593 # Remove unnecessary trailing slashes from srcdir.
1594 # Double slashes in file names in object file debugging info
1595 # mess up M-x gdb in Emacs.
1596 case $srcdir in
1597 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1598 esac
1599 for ac_var in $ac_precious_vars; do
1600 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1601 eval ac_env_${ac_var}_value=\$${ac_var}
1602 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1603 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1604 done
1605
1606 #
1607 # Report the --help message.
1608 #
1609 if test "$ac_init_help" = "long"; then
1610 # Omit some internal or obsolete options to make the list less imposing.
1611 # This message is too long to be a string in the A/UX 3.1 sh.
1612 cat <<_ACEOF
1613 \`configure' configures systemd 204 to adapt to many kinds of systems.
1614
1615 Usage: $0 [OPTION]... [VAR=VALUE]...
1616
1617 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1618 VAR=VALUE. See below for descriptions of some of the useful variables.
1619
1620 Defaults for the options are specified in brackets.
1621
1622 Configuration:
1623 -h, --help display this help and exit
1624 --help=short display options specific to this package
1625 --help=recursive display the short help of all the included packages
1626 -V, --version display version information and exit
1627 -q, --quiet, --silent do not print \`checking ...' messages
1628 --cache-file=FILE cache test results in FILE [disabled]
1629 -C, --config-cache alias for \`--cache-file=config.cache'
1630 -n, --no-create do not create output files
1631 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1632
1633 Installation directories:
1634 --prefix=PREFIX install architecture-independent files in PREFIX
1635 [$ac_default_prefix]
1636 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1637 [PREFIX]
1638
1639 By default, \`make install' will install all the files in
1640 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1641 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1642 for instance \`--prefix=\$HOME'.
1643
1644 For better control, use the options below.
1645
1646 Fine tuning of the installation directories:
1647 --bindir=DIR user executables [EPREFIX/bin]
1648 --sbindir=DIR system admin executables [EPREFIX/sbin]
1649 --libexecdir=DIR program executables [EPREFIX/libexec]
1650 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1651 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1652 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1653 --libdir=DIR object code libraries [EPREFIX/lib]
1654 --includedir=DIR C header files [PREFIX/include]
1655 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1656 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1657 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1658 --infodir=DIR info documentation [DATAROOTDIR/info]
1659 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1660 --mandir=DIR man documentation [DATAROOTDIR/man]
1661 --docdir=DIR documentation root [DATAROOTDIR/doc/systemd]
1662 --htmldir=DIR html documentation [DOCDIR]
1663 --dvidir=DIR dvi documentation [DOCDIR]
1664 --pdfdir=DIR pdf documentation [DOCDIR]
1665 --psdir=DIR ps documentation [DOCDIR]
1666 _ACEOF
1667
1668 cat <<\_ACEOF
1669
1670 Program names:
1671 --program-prefix=PREFIX prepend PREFIX to installed program names
1672 --program-suffix=SUFFIX append SUFFIX to installed program names
1673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1674
1675 System types:
1676 --build=BUILD configure for building on BUILD [guessed]
1677 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1678 _ACEOF
1679 fi
1680
1681 if test -n "$ac_init_help"; then
1682 case $ac_init_help in
1683 short | recursive ) echo "Configuration of systemd 204:";;
1684 esac
1685 cat <<\_ACEOF
1686
1687 Optional Features:
1688 --disable-option-checking ignore unrecognized --enable/--with options
1689 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1690 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1691 --disable-largefile omit support for large files
1692 --enable-dependency-tracking
1693 do not reject slow dependency extractors
1694 --disable-dependency-tracking
1695 speeds up one-time build
1696 --enable-silent-rules less verbose build output (undo: "make V=1")
1697 --disable-silent-rules verbose build output (undo: "make V=0")
1698 --enable-static[=PKGS] build static libraries [default=no]
1699 --enable-shared[=PKGS] build shared libraries [default=yes]
1700 --enable-fast-install[=PKGS]
1701 optimize for fast installation [default=yes]
1702 --disable-libtool-lock avoid locking (might break parallel builds)
1703 --disable-nls do not use Native Language Support
1704 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1705 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1706 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1707 --enable-introspection=[no/auto/yes]
1708 Enable introspection for this build
1709 --disable-kmod disable loadable modules support
1710 --disable-blkid disable blkid support
1711 --disable-ima Disable optional IMA support
1712 --disable-chkconfig Disable optional chkconfig support
1713 --disable-selinux Disable optional SELINUX support
1714 --disable-xz Disable optional XZ support
1715 --disable-tcpwrap Disable optional TCP wrappers support
1716 --disable-pam Disable optional PAM support
1717 --disable-acl Disable optional ACL support
1718 --disable-xattr Disable optional XATTR support
1719 --disable-gcrypt Disable optional GCRYPT support
1720 --disable-audit Disable optional AUDIT support
1721 --disable-libcryptsetup disable libcryptsetup tools
1722 --disable-qrencode disable qrencode support
1723 --disable-microhttpd disable microhttpd support
1724 --disable-binfmt disable binfmt tool
1725 --disable-vconsole disable vconsole tool
1726 --disable-readahead disable readahead tools
1727 --disable-bootchart disable bootchart tool
1728 --disable-quotacheck disable quotacheck tools
1729 --disable-randomseed disable randomseed tools
1730 --disable-logind disable login daemon
1731 --disable-hostnamed disable hostname daemon
1732 --disable-timedated disable timedate daemon
1733 --disable-localed disable locale daemon
1734 --disable-coredump disable coredump hook
1735 --disable-polkit disable PolicyKit support
1736 --disable-efi disable EFI support
1737 --disable-myhostname disable nss-myhostname support
1738 --disable-gudev disable Gobject libudev support [default=enabled]
1739 --disable-keymap disable keymap fixup support [default=enabled]
1740 --disable-manpages disable manpages
1741 --enable-split-usr Assume that /bin, /sbin aren\'t symlinks into /usr
1742 --disable-tests disable tests
1743
1744 Optional Packages:
1745 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1746 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1747 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1748 both]
1749 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1750 --with-sysroot=DIR Search for dependent libraries within DIR
1751 (or the compiler's sysroot if not specified).
1752 --with-html-dir=PATH path to installed docs
1753 --without-python Disable building the man page index and
1754 systemd-python (default: test)
1755 --with-debug-shell=PATH Path to debug shell binary
1756 --with-debug-tty=PATH Specify the tty device for debug shell
1757 --with-libgcrypt-prefix=PFX
1758 prefix where LIBGCRYPT is installed (optional)
1759 --with-rc-local-script-path-start=PATH
1760 Path to /etc/rc.local
1761 --with-rc-local-script-path-stop=PATH
1762 Path to /usr/sbin/halt.local
1763 --with-kbd-loadkeys=PATH
1764 Path to loadkeys
1765 --with-kbd-setfont=PATH Path to setfont
1766 --with-telinit=PATH Path to telinit
1767 --with-firmware-path=DIR[:DIR[...]]
1768 Firmware search path (default="")
1769 --with-sysvinit-path=PATH
1770 Specify the path to where the SysV init scripts are
1771 located
1772 --with-sysvrcnd-path=PATH
1773 Specify the path to the base directory for the SysV
1774 rcN.d directories
1775 --with-tty-gid=GID Specify the numeric GID of the 'tty' group
1776 --with-dbuspolicydir=DIR
1777 D-Bus policy directory
1778 --with-dbussessionservicedir=DIR
1779 D-Bus session service directory
1780 --with-dbussystemservicedir=DIR
1781 D-Bus system service directory
1782 --with-dbusinterfacedir=DIR
1783 D-Bus interface directory
1784 --with-bashcompletiondir=DIR
1785 Bash completions directory
1786 --with-rootprefix=DIR rootfs directory prefix for config files and kernel
1787 modules
1788 --with-rootlibdir=DIR Root directory for libraries necessary for boot
1789 --with-pamlibdir=DIR Directory for PAM modules
1790
1791 Some influential environment variables:
1792 CC C compiler command
1793 CFLAGS C compiler flags
1794 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1795 nonstandard directory <lib dir>
1796 LIBS libraries to pass to the linker, e.g. -l<library>
1797 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1798 you have headers in a nonstandard directory <include dir>
1799 CPP C preprocessor
1800 PKG_CONFIG path to pkg-config utility
1801 PKG_CONFIG_PATH
1802 directories to add to pkg-config's search path
1803 PKG_CONFIG_LIBDIR
1804 path overriding pkg-config's built-in search path
1805 GTKDOC_DEPS_CFLAGS
1806 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1807 GTKDOC_DEPS_LIBS
1808 linker flags for GTKDOC_DEPS, overriding pkg-config
1809 PYTHON the Python interpreter
1810 PYTHON_BINARY
1811 Python binary used to launch installed scripts
1812 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1813 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1814 KMOD_CFLAGS C compiler flags for KMOD, overriding pkg-config
1815 KMOD_LIBS linker flags for KMOD, overriding pkg-config
1816 BLKID_CFLAGS
1817 C compiler flags for BLKID, overriding pkg-config
1818 BLKID_LIBS linker flags for BLKID, overriding pkg-config
1819 SELINUX_CFLAGS
1820 C compiler flags for SELINUX, overriding pkg-config
1821 SELINUX_LIBS
1822 linker flags for SELINUX, overriding pkg-config
1823 XZ_CFLAGS C compiler flags for XZ, overriding pkg-config
1824 XZ_LIBS linker flags for XZ, overriding pkg-config
1825 LIBCRYPTSETUP_CFLAGS
1826 C compiler flags for LIBCRYPTSETUP, overriding pkg-config
1827 LIBCRYPTSETUP_LIBS
1828 linker flags for LIBCRYPTSETUP, overriding pkg-config
1829 QRENCODE_CFLAGS
1830 C compiler flags for QRENCODE, overriding pkg-config
1831 QRENCODE_LIBS
1832 linker flags for QRENCODE, overriding pkg-config
1833 MICROHTTPD_CFLAGS
1834 C compiler flags for MICROHTTPD, overriding pkg-config
1835 MICROHTTPD_LIBS
1836 linker flags for MICROHTTPD, overriding pkg-config
1837 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1838 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1839
1840 Use these variables to override the choices made by `configure' or to help
1841 it to find libraries and programs with nonstandard names/locations.
1842
1843 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=systemd>.
1844 systemd home page: <http://www.freedesktop.org/wiki/Software/systemd>.
1845 _ACEOF
1846 ac_status=$?
1847 fi
1848
1849 if test "$ac_init_help" = "recursive"; then
1850 # If there are subdirs, report their specific --help.
1851 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1852 test -d "$ac_dir" ||
1853 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1854 continue
1855 ac_builddir=.
1856
1857 case "$ac_dir" in
1858 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1859 *)
1860 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1861 # A ".." for each directory in $ac_dir_suffix.
1862 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1863 case $ac_top_builddir_sub in
1864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1866 esac ;;
1867 esac
1868 ac_abs_top_builddir=$ac_pwd
1869 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1870 # for backward compatibility:
1871 ac_top_builddir=$ac_top_build_prefix
1872
1873 case $srcdir in
1874 .) # We are building in place.
1875 ac_srcdir=.
1876 ac_top_srcdir=$ac_top_builddir_sub
1877 ac_abs_top_srcdir=$ac_pwd ;;
1878 [\\/]* | ?:[\\/]* ) # Absolute name.
1879 ac_srcdir=$srcdir$ac_dir_suffix;
1880 ac_top_srcdir=$srcdir
1881 ac_abs_top_srcdir=$srcdir ;;
1882 *) # Relative name.
1883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1884 ac_top_srcdir=$ac_top_build_prefix$srcdir
1885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1886 esac
1887 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1888
1889 cd "$ac_dir" || { ac_status=$?; continue; }
1890 # Check for guested configure.
1891 if test -f "$ac_srcdir/configure.gnu"; then
1892 echo &&
1893 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1894 elif test -f "$ac_srcdir/configure"; then
1895 echo &&
1896 $SHELL "$ac_srcdir/configure" --help=recursive
1897 else
1898 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1899 fi || ac_status=$?
1900 cd "$ac_pwd" || { ac_status=$?; break; }
1901 done
1902 fi
1903
1904 test -n "$ac_init_help" && exit $ac_status
1905 if $ac_init_version; then
1906 cat <<\_ACEOF
1907 systemd configure 204
1908 generated by GNU Autoconf 2.69
1909
1910 Copyright (C) 2012 Free Software Foundation, Inc.
1911 This configure script is free software; the Free Software Foundation
1912 gives unlimited permission to copy, distribute and modify it.
1913 _ACEOF
1914 exit
1915 fi
1916
1917 ## ------------------------ ##
1918 ## Autoconf initialization. ##
1919 ## ------------------------ ##
1920
1921 # ac_fn_c_try_compile LINENO
1922 # --------------------------
1923 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_c_try_compile ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext
1928 if { { ac_try="$ac_compile"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_compile") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1941 fi
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_c_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest.$ac_objext; then :
1947 ac_retval=0
1948 else
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 ac_retval=1
1953 fi
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
1956
1957 } # ac_fn_c_try_compile
1958
1959 # ac_fn_c_try_cpp LINENO
1960 # ----------------------
1961 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1962 ac_fn_c_try_cpp ()
1963 {
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_cpp conftest.$ac_ext"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1973 ac_status=$?
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1978 fi
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } > conftest.i && {
1981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 }; then :
1984 ac_retval=0
1985 else
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=1
1990 fi
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 as_fn_set_status $ac_retval
1993
1994 } # ac_fn_c_try_cpp
1995
1996 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1997 # -------------------------------------------------------
1998 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1999 # the include files in INCLUDES and setting the cache variable VAR
2000 # accordingly.
2001 ac_fn_c_check_header_mongrel ()
2002 {
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if eval \${$3+:} false; then :
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if eval \${$3+:} false; then :
2008 $as_echo_n "(cached) " >&6
2009 fi
2010 eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 else
2014 # Is the header compilable?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2016 $as_echo_n "checking $2 usability... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $4
2020 #include <$2>
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 ac_header_compiler=yes
2024 else
2025 ac_header_compiler=no
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2029 $as_echo "$ac_header_compiler" >&6; }
2030
2031 # Is the header present?
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2033 $as_echo_n "checking $2 presence... " >&6; }
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 #include <$2>
2037 _ACEOF
2038 if ac_fn_c_try_cpp "$LINENO"; then :
2039 ac_header_preproc=yes
2040 else
2041 ac_header_preproc=no
2042 fi
2043 rm -f conftest.err conftest.i conftest.$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2045 $as_echo "$ac_header_preproc" >&6; }
2046
2047 # So? What about this header?
2048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2049 yes:no: )
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2051 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2054 ;;
2055 no:yes:* )
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2057 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2059 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2061 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2063 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2065 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2066 ( $as_echo "## ------------------------------------------------------------------------ ##
2067 ## Report this to http://bugs.freedesktop.org/enter_bug.cgi?product=systemd ##
2068 ## ------------------------------------------------------------------------ ##"
2069 ) | sed "s/^/$as_me: WARNING: /" >&2
2070 ;;
2071 esac
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2076 else
2077 eval "$3=\$ac_header_compiler"
2078 fi
2079 eval ac_res=\$$3
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 $as_echo "$ac_res" >&6; }
2082 fi
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084
2085 } # ac_fn_c_check_header_mongrel
2086
2087 # ac_fn_c_try_run LINENO
2088 # ----------------------
2089 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2090 # that executables *can* be run.
2091 ac_fn_c_try_run ()
2092 {
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 if { { ac_try="$ac_link"
2095 case "(($ac_try" in
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2098 esac
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_link") 2>&5
2102 ac_status=$?
2103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2105 { { case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108 esac
2109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110 $as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_try") 2>&5
2112 ac_status=$?
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; }; }; then :
2115 ac_retval=0
2116 else
2117 $as_echo "$as_me: program exited with status $ac_status" >&5
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2120
2121 ac_retval=$ac_status
2122 fi
2123 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 as_fn_set_status $ac_retval
2126
2127 } # ac_fn_c_try_run
2128
2129 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2130 # -------------------------------------------------------
2131 # Tests whether HEADER exists and can be compiled using the include files in
2132 # INCLUDES, setting the cache variable VAR accordingly.
2133 ac_fn_c_check_header_compile ()
2134 {
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137 $as_echo_n "checking for $2... " >&6; }
2138 if eval \${$3+:} false; then :
2139 $as_echo_n "(cached) " >&6
2140 else
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143 $4
2144 #include <$2>
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 eval "$3=yes"
2148 else
2149 eval "$3=no"
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 fi
2153 eval ac_res=\$$3
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157
2158 } # ac_fn_c_check_header_compile
2159
2160 # ac_fn_c_try_link LINENO
2161 # -----------------------
2162 # Try to link conftest.$ac_ext, and return whether this succeeded.
2163 ac_fn_c_try_link ()
2164 {
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 rm -f conftest.$ac_objext conftest$ac_exeext
2167 if { { ac_try="$ac_link"
2168 case "(($ac_try" in
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2171 esac
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_link") 2>conftest.err
2175 ac_status=$?
2176 if test -s conftest.err; then
2177 grep -v '^ *+' conftest.err >conftest.er1
2178 cat conftest.er1 >&5
2179 mv -f conftest.er1 conftest.err
2180 fi
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } && {
2183 test -z "$ac_c_werror_flag" ||
2184 test ! -s conftest.err
2185 } && test -s conftest$ac_exeext && {
2186 test "$cross_compiling" = yes ||
2187 test -x conftest$ac_exeext
2188 }; then :
2189 ac_retval=0
2190 else
2191 $as_echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193
2194 ac_retval=1
2195 fi
2196 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2197 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2198 # interfere with the next link command; also delete a directory that is
2199 # left behind by Apple's compiler. We do this before executing the actions.
2200 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 as_fn_set_status $ac_retval
2203
2204 } # ac_fn_c_try_link
2205
2206 # ac_fn_c_check_func LINENO FUNC VAR
2207 # ----------------------------------
2208 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2209 ac_fn_c_check_func ()
2210 {
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213 $as_echo_n "checking for $2... " >&6; }
2214 if eval \${$3+:} false; then :
2215 $as_echo_n "(cached) " >&6
2216 else
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2219 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2221 #define $2 innocuous_$2
2222
2223 /* System header to define __stub macros and hopefully few prototypes,
2224 which can conflict with char $2 (); below.
2225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2226 <limits.h> exists even on freestanding compilers. */
2227
2228 #ifdef __STDC__
2229 # include <limits.h>
2230 #else
2231 # include <assert.h>
2232 #endif
2233
2234 #undef $2
2235
2236 /* Override any GCC internal prototype to avoid an error.
2237 Use char because int might match the return type of a GCC
2238 builtin and then its argument prototype would still apply. */
2239 #ifdef __cplusplus
2240 extern "C"
2241 #endif
2242 char $2 ();
2243 /* The GNU C library defines this for functions which it implements
2244 to always fail with ENOSYS. Some functions are actually named
2245 something starting with __ and the normal name is an alias. */
2246 #if defined __stub_$2 || defined __stub___$2
2247 choke me
2248 #endif
2249
2250 int
2251 main ()
2252 {
2253 return $2 ();
2254 ;
2255 return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_c_try_link "$LINENO"; then :
2259 eval "$3=yes"
2260 else
2261 eval "$3=no"
2262 fi
2263 rm -f core conftest.err conftest.$ac_objext \
2264 conftest$ac_exeext conftest.$ac_ext
2265 fi
2266 eval ac_res=\$$3
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270
2271 } # ac_fn_c_check_func
2272
2273 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2274 # ---------------------------------------------
2275 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2276 # accordingly.
2277 ac_fn_c_check_decl ()
2278 {
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 as_decl_name=`echo $2|sed 's/ *(.*//'`
2281 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2283 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2284 if eval \${$3+:} false; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2289 $4
2290 int
2291 main ()
2292 {
2293 #ifndef $as_decl_name
2294 #ifdef __cplusplus
2295 (void) $as_decl_use;
2296 #else
2297 (void) $as_decl_name;
2298 #endif
2299 #endif
2300
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 eval "$3=yes"
2307 else
2308 eval "$3=no"
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 fi
2312 eval ac_res=\$$3
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316
2317 } # ac_fn_c_check_decl
2318
2319 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2320 # -------------------------------------------
2321 # Tests whether TYPE exists after having included INCLUDES, setting cache
2322 # variable VAR accordingly.
2323 ac_fn_c_check_type ()
2324 {
2325 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2327 $as_echo_n "checking for $2... " >&6; }
2328 if eval \${$3+:} false; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 eval "$3=no"
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2334 $4
2335 int
2336 main ()
2337 {
2338 if (sizeof ($2))
2339 return 0;
2340 ;
2341 return 0;
2342 }
2343 _ACEOF
2344 if ac_fn_c_try_compile "$LINENO"; then :
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2347 $4
2348 int
2349 main ()
2350 {
2351 if (sizeof (($2)))
2352 return 0;
2353 ;
2354 return 0;
2355 }
2356 _ACEOF
2357 if ac_fn_c_try_compile "$LINENO"; then :
2358
2359 else
2360 eval "$3=yes"
2361 fi
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 fi
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 fi
2366 eval ac_res=\$$3
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2370
2371 } # ac_fn_c_check_type
2372 cat >config.log <<_ACEOF
2373 This file contains any messages produced by compilers while
2374 running configure, to aid debugging if configure makes a mistake.
2375
2376 It was created by systemd $as_me 204, which was
2377 generated by GNU Autoconf 2.69. Invocation command line was
2378
2379 $ $0 $@
2380
2381 _ACEOF
2382 exec 5>>config.log
2383 {
2384 cat <<_ASUNAME
2385 ## --------- ##
2386 ## Platform. ##
2387 ## --------- ##
2388
2389 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2390 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2391 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2392 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2393 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2394
2395 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2396 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2397
2398 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2399 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2400 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2401 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2402 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2403 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2404 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2405
2406 _ASUNAME
2407
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2410 do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 $as_echo "PATH: $as_dir"
2414 done
2415 IFS=$as_save_IFS
2416
2417 } >&5
2418
2419 cat >&5 <<_ACEOF
2420
2421
2422 ## ----------- ##
2423 ## Core tests. ##
2424 ## ----------- ##
2425
2426 _ACEOF
2427
2428
2429 # Keep a trace of the command line.
2430 # Strip out --no-create and --no-recursion so they do not pile up.
2431 # Strip out --silent because we don't want to record it for future runs.
2432 # Also quote any args containing shell meta-characters.
2433 # Make two passes to allow for proper duplicate-argument suppression.
2434 ac_configure_args=
2435 ac_configure_args0=
2436 ac_configure_args1=
2437 ac_must_keep_next=false
2438 for ac_pass in 1 2
2439 do
2440 for ac_arg
2441 do
2442 case $ac_arg in
2443 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2444 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2445 | -silent | --silent | --silen | --sile | --sil)
2446 continue ;;
2447 *\'*)
2448 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2449 esac
2450 case $ac_pass in
2451 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2452 2)
2453 as_fn_append ac_configure_args1 " '$ac_arg'"
2454 if test $ac_must_keep_next = true; then
2455 ac_must_keep_next=false # Got value, back to normal.
2456 else
2457 case $ac_arg in
2458 *=* | --config-cache | -C | -disable-* | --disable-* \
2459 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2460 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2461 | -with-* | --with-* | -without-* | --without-* | --x)
2462 case "$ac_configure_args0 " in
2463 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2464 esac
2465 ;;
2466 -* ) ac_must_keep_next=true ;;
2467 esac
2468 fi
2469 as_fn_append ac_configure_args " '$ac_arg'"
2470 ;;
2471 esac
2472 done
2473 done
2474 { ac_configure_args0=; unset ac_configure_args0;}
2475 { ac_configure_args1=; unset ac_configure_args1;}
2476
2477 # When interrupted or exit'd, cleanup temporary files, and complete
2478 # config.log. We remove comments because anyway the quotes in there
2479 # would cause problems or look ugly.
2480 # WARNING: Use '\'' to represent an apostrophe within the trap.
2481 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2482 trap 'exit_status=$?
2483 # Save into config.log some information that might help in debugging.
2484 {
2485 echo
2486
2487 $as_echo "## ---------------- ##
2488 ## Cache variables. ##
2489 ## ---------------- ##"
2490 echo
2491 # The following way of writing the cache mishandles newlines in values,
2492 (
2493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2494 eval ac_val=\$$ac_var
2495 case $ac_val in #(
2496 *${as_nl}*)
2497 case $ac_var in #(
2498 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2499 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2500 esac
2501 case $ac_var in #(
2502 _ | IFS | as_nl) ;; #(
2503 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2504 *) { eval $ac_var=; unset $ac_var;} ;;
2505 esac ;;
2506 esac
2507 done
2508 (set) 2>&1 |
2509 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2510 *${as_nl}ac_space=\ *)
2511 sed -n \
2512 "s/'\''/'\''\\\\'\'''\''/g;
2513 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2514 ;; #(
2515 *)
2516 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2517 ;;
2518 esac |
2519 sort
2520 )
2521 echo
2522
2523 $as_echo "## ----------------- ##
2524 ## Output variables. ##
2525 ## ----------------- ##"
2526 echo
2527 for ac_var in $ac_subst_vars
2528 do
2529 eval ac_val=\$$ac_var
2530 case $ac_val in
2531 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2532 esac
2533 $as_echo "$ac_var='\''$ac_val'\''"
2534 done | sort
2535 echo
2536
2537 if test -n "$ac_subst_files"; then
2538 $as_echo "## ------------------- ##
2539 ## File substitutions. ##
2540 ## ------------------- ##"
2541 echo
2542 for ac_var in $ac_subst_files
2543 do
2544 eval ac_val=\$$ac_var
2545 case $ac_val in
2546 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2547 esac
2548 $as_echo "$ac_var='\''$ac_val'\''"
2549 done | sort
2550 echo
2551 fi
2552
2553 if test -s confdefs.h; then
2554 $as_echo "## ----------- ##
2555 ## confdefs.h. ##
2556 ## ----------- ##"
2557 echo
2558 cat confdefs.h
2559 echo
2560 fi
2561 test "$ac_signal" != 0 &&
2562 $as_echo "$as_me: caught signal $ac_signal"
2563 $as_echo "$as_me: exit $exit_status"
2564 } >&5
2565 rm -f core *.core core.conftest.* &&
2566 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2567 exit $exit_status
2568 ' 0
2569 for ac_signal in 1 2 13 15; do
2570 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2571 done
2572 ac_signal=0
2573
2574 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2575 rm -f -r conftest* confdefs.h
2576
2577 $as_echo "/* confdefs.h */" > confdefs.h
2578
2579 # Predefined preprocessor variables.
2580
2581 cat >>confdefs.h <<_ACEOF
2582 #define PACKAGE_NAME "$PACKAGE_NAME"
2583 _ACEOF
2584
2585 cat >>confdefs.h <<_ACEOF
2586 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2587 _ACEOF
2588
2589 cat >>confdefs.h <<_ACEOF
2590 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2591 _ACEOF
2592
2593 cat >>confdefs.h <<_ACEOF
2594 #define PACKAGE_STRING "$PACKAGE_STRING"
2595 _ACEOF
2596
2597 cat >>confdefs.h <<_ACEOF
2598 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2599 _ACEOF
2600
2601 cat >>confdefs.h <<_ACEOF
2602 #define PACKAGE_URL "$PACKAGE_URL"
2603 _ACEOF
2604
2605
2606 # Let the site file select an alternate cache file if it wants to.
2607 # Prefer an explicitly selected file to automatically selected ones.
2608 ac_site_file1=NONE
2609 ac_site_file2=NONE
2610 if test -n "$CONFIG_SITE"; then
2611 # We do not want a PATH search for config.site.
2612 case $CONFIG_SITE in #((
2613 -*) ac_site_file1=./$CONFIG_SITE;;
2614 */*) ac_site_file1=$CONFIG_SITE;;
2615 *) ac_site_file1=./$CONFIG_SITE;;
2616 esac
2617 elif test "x$prefix" != xNONE; then
2618 ac_site_file1=$prefix/share/config.site
2619 ac_site_file2=$prefix/etc/config.site
2620 else
2621 ac_site_file1=$ac_default_prefix/share/config.site
2622 ac_site_file2=$ac_default_prefix/etc/config.site
2623 fi
2624 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2625 do
2626 test "x$ac_site_file" = xNONE && continue
2627 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2629 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2630 sed 's/^/| /' "$ac_site_file" >&5
2631 . "$ac_site_file" \
2632 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634 as_fn_error $? "failed to load site script $ac_site_file
2635 See \`config.log' for more details" "$LINENO" 5; }
2636 fi
2637 done
2638
2639 if test -r "$cache_file"; then
2640 # Some versions of bash will fail to source /dev/null (special files
2641 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2642 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2644 $as_echo "$as_me: loading cache $cache_file" >&6;}
2645 case $cache_file in
2646 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2647 *) . "./$cache_file";;
2648 esac
2649 fi
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2652 $as_echo "$as_me: creating cache $cache_file" >&6;}
2653 >$cache_file
2654 fi
2655
2656 as_fn_append ac_header_list " valgrind/memcheck.h"
2657 # Check that the precious variables saved in the cache have kept the same
2658 # value.
2659 ac_cache_corrupted=false
2660 for ac_var in $ac_precious_vars; do
2661 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2662 eval ac_new_set=\$ac_env_${ac_var}_set
2663 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2664 eval ac_new_val=\$ac_env_${ac_var}_value
2665 case $ac_old_set,$ac_new_set in
2666 set,)
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2668 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2669 ac_cache_corrupted=: ;;
2670 ,set)
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2672 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2673 ac_cache_corrupted=: ;;
2674 ,);;
2675 *)
2676 if test "x$ac_old_val" != "x$ac_new_val"; then
2677 # differences in whitespace do not lead to failure.
2678 ac_old_val_w=`echo x $ac_old_val`
2679 ac_new_val_w=`echo x $ac_new_val`
2680 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2682 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2683 ac_cache_corrupted=:
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2686 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2687 eval $ac_var=\$ac_old_val
2688 fi
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2690 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2692 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2693 fi;;
2694 esac
2695 # Pass precious variables to config.status.
2696 if test "$ac_new_set" = set; then
2697 case $ac_new_val in
2698 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2699 *) ac_arg=$ac_var=$ac_new_val ;;
2700 esac
2701 case " $ac_configure_args " in
2702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2703 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2704 esac
2705 fi
2706 done
2707 if $ac_cache_corrupted; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2711 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2712 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2713 fi
2714 ## -------------------- ##
2715 ## Main body of script. ##
2716 ## -------------------- ##
2717
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723
2724
2725
2726
2727
2728 ac_config_headers="$ac_config_headers config.h"
2729
2730 ac_aux_dir=
2731 for ac_dir in build-aux "$srcdir"/build-aux; do
2732 if test -f "$ac_dir/install-sh"; then
2733 ac_aux_dir=$ac_dir
2734 ac_install_sh="$ac_aux_dir/install-sh -c"
2735 break
2736 elif test -f "$ac_dir/install.sh"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/install.sh -c"
2739 break
2740 elif test -f "$ac_dir/shtool"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/shtool install -c"
2743 break
2744 fi
2745 done
2746 if test -z "$ac_aux_dir"; then
2747 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2748 fi
2749
2750 # These three variables are undocumented and unsupported,
2751 # and are intended to be withdrawn in a future Autoconf release.
2752 # They can cause serious problems if a builder's source tree is in a directory
2753 # whose full name contains unusual characters.
2754 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2755 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2756 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2757
2758
2759
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_CC+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787 done
2788 done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 CC=$ac_cv_prog_CC
2794 if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802
2803 fi
2804 if test -z "$ac_cv_prog_CC"; then
2805 ac_ct_CC=$CC
2806 # Extract the first word of "gcc", so it can be a program name with args.
2807 set dummy gcc; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_ac_ct_CC="gcc"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834 if test -n "$ac_ct_CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2836 $as_echo "$ac_ct_CC" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842 if test "x$ac_ct_CC" = x; then
2843 CC=""
2844 else
2845 case $cross_compiling:$ac_tool_warned in
2846 yes:)
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849 ac_tool_warned=yes ;;
2850 esac
2851 CC=$ac_ct_CC
2852 fi
2853 else
2854 CC="$ac_cv_prog_CC"
2855 fi
2856
2857 if test -z "$CC"; then
2858 if test -n "$ac_tool_prefix"; then
2859 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2860 set dummy ${ac_tool_prefix}cc; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_CC+:} false; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_CC="${ac_tool_prefix}cc"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 CC=$ac_cv_prog_CC
2887 if test -n "$CC"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889 $as_echo "$CC" >&6; }
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896 fi
2897 fi
2898 if test -z "$CC"; then
2899 # Extract the first word of "cc", so it can be a program name with args.
2900 set dummy cc; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_CC+:} false; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 else
2909 ac_prog_rejected=no
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2918 ac_prog_rejected=yes
2919 continue
2920 fi
2921 ac_cv_prog_CC="cc"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2924 fi
2925 done
2926 done
2927 IFS=$as_save_IFS
2928
2929 if test $ac_prog_rejected = yes; then
2930 # We found a bogon in the path, so make sure we never use it.
2931 set dummy $ac_cv_prog_CC
2932 shift
2933 if test $# != 0; then
2934 # We chose a different compiler from the bogus one.
2935 # However, it has the same basename, so the bogon will be chosen
2936 # first if we set CC to just the basename; use the full file name.
2937 shift
2938 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2939 fi
2940 fi
2941 fi
2942 fi
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946 $as_echo "$CC" >&6; }
2947 else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2950 fi
2951
2952
2953 fi
2954 if test -z "$CC"; then
2955 if test -n "$ac_tool_prefix"; then
2956 for ac_prog in cl.exe
2957 do
2958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_CC+:} false; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 if test -n "$CC"; then
2966 ac_cv_prog_CC="$CC" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2970 do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979 done
2980 done
2981 IFS=$as_save_IFS
2982
2983 fi
2984 fi
2985 CC=$ac_cv_prog_CC
2986 if test -n "$CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988 $as_echo "$CC" >&6; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2992 fi
2993
2994
2995 test -n "$CC" && break
2996 done
2997 fi
2998 if test -z "$CC"; then
2999 ac_ct_CC=$CC
3000 for ac_prog in cl.exe
3001 do
3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003 set dummy $ac_prog; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$ac_ct_CC"; then
3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_CC="$ac_prog"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023 done
3024 done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030 if test -n "$ac_ct_CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032 $as_echo "$ac_ct_CC" >&6; }
3033 else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038
3039 test -n "$ac_ct_CC" && break
3040 done
3041
3042 if test "x$ac_ct_CC" = x; then
3043 CC=""
3044 else
3045 case $cross_compiling:$ac_tool_warned in
3046 yes:)
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049 ac_tool_warned=yes ;;
3050 esac
3051 CC=$ac_ct_CC
3052 fi
3053 fi
3054
3055 fi
3056
3057
3058 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 as_fn_error $? "no acceptable C compiler found in \$PATH
3061 See \`config.log' for more details" "$LINENO" 5; }
3062
3063 # Provide some information about the compiler.
3064 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3065 set X $ac_compile
3066 ac_compiler=$2
3067 for ac_option in --version -v -V -qversion; do
3068 { { ac_try="$ac_compiler $ac_option >&5"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3076 ac_status=$?
3077 if test -s conftest.err; then
3078 sed '10a\
3079 ... rest of stderr output deleted ...
3080 10q' conftest.err >conftest.er1
3081 cat conftest.er1 >&5
3082 fi
3083 rm -f conftest.er1 conftest.err
3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; }
3086 done
3087
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3090
3091 int
3092 main ()
3093 {
3094
3095 ;
3096 return 0;
3097 }
3098 _ACEOF
3099 ac_clean_files_save=$ac_clean_files
3100 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3101 # Try to create an executable without -o first, disregard a.out.
3102 # It will help us diagnose broken compilers, and finding out an intuition
3103 # of exeext.
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105 $as_echo_n "checking whether the C compiler works... " >&6; }
3106 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3107
3108 # The possible output files:
3109 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3110
3111 ac_rmfiles=
3112 for ac_file in $ac_files
3113 do
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3117 esac
3118 done
3119 rm -f $ac_rmfiles
3120
3121 if { { ac_try="$ac_link_default"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_link_default") 2>&5
3129 ac_status=$?
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; then :
3132 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3133 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3134 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3135 # so that the user can short-circuit this test for compilers unknown to
3136 # Autoconf.
3137 for ac_file in $ac_files ''
3138 do
3139 test -f "$ac_file" || continue
3140 case $ac_file in
3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3142 ;;
3143 [ab].out )
3144 # We found the default executable, but exeext='' is most
3145 # certainly right.
3146 break;;
3147 *.* )
3148 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3149 then :; else
3150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 fi
3152 # We set ac_cv_exeext here because the later test for it is not
3153 # safe: cross compilers may not add the suffix if given an `-o'
3154 # argument, so we may need to know it at that point already.
3155 # Even if this section looks crufty: it has the advantage of
3156 # actually working.
3157 break;;
3158 * )
3159 break;;
3160 esac
3161 done
3162 test "$ac_cv_exeext" = no && ac_cv_exeext=
3163
3164 else
3165 ac_file=''
3166 fi
3167 if test -z "$ac_file"; then :
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3170 $as_echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error 77 "C compiler cannot create executables
3176 See \`config.log' for more details" "$LINENO" 5; }
3177 else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179 $as_echo "yes" >&6; }
3180 fi
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3182 $as_echo_n "checking for C compiler default output file name... " >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184 $as_echo "$ac_file" >&6; }
3185 ac_exeext=$ac_cv_exeext
3186
3187 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3190 $as_echo_n "checking for suffix of executables... " >&6; }
3191 if { { ac_try="$ac_link"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_link") 2>&5
3199 ac_status=$?
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }; then :
3202 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3203 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3204 # work properly (i.e., refer to `conftest.exe'), while it won't with
3205 # `rm'.
3206 for ac_file in conftest.exe conftest conftest.*; do
3207 test -f "$ac_file" || continue
3208 case $ac_file in
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211 break;;
3212 * ) break;;
3213 esac
3214 done
3215 else
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3219 See \`config.log' for more details" "$LINENO" 5; }
3220 fi
3221 rm -f conftest conftest$ac_cv_exeext
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3223 $as_echo "$ac_cv_exeext" >&6; }
3224
3225 rm -f conftest.$ac_ext
3226 EXEEXT=$ac_cv_exeext
3227 ac_exeext=$EXEEXT
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3230 #include <stdio.h>
3231 int
3232 main ()
3233 {
3234 FILE *f = fopen ("conftest.out", "w");
3235 return ferror (f) || fclose (f) != 0;
3236
3237 ;
3238 return 0;
3239 }
3240 _ACEOF
3241 ac_clean_files="$ac_clean_files conftest.out"
3242 # Check that the compiler produces executables we can run. If not, either
3243 # the compiler is broken, or we cross compile.
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3245 $as_echo_n "checking whether we are cross compiling... " >&6; }
3246 if test "$cross_compiling" != yes; then
3247 { { ac_try="$ac_link"
3248 case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_link") 2>&5
3255 ac_status=$?
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }
3258 if { ac_try='./conftest$ac_cv_exeext'
3259 { { case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_try") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; }; then
3269 cross_compiling=no
3270 else
3271 if test "$cross_compiling" = maybe; then
3272 cross_compiling=yes
3273 else
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error $? "cannot run C compiled programs.
3277 If you meant to cross compile, use \`--host'.
3278 See \`config.log' for more details" "$LINENO" 5; }
3279 fi
3280 fi
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283 $as_echo "$cross_compiling" >&6; }
3284
3285 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3286 ac_clean_files=$ac_clean_files_save
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288 $as_echo_n "checking for suffix of object files... " >&6; }
3289 if ${ac_cv_objext+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294
3295 int
3296 main ()
3297 {
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 rm -f conftest.o conftest.obj
3304 if { { ac_try="$ac_compile"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_compile") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 for ac_file in conftest.o conftest.obj conftest.*; do
3316 test -f "$ac_file" || continue;
3317 case $ac_file in
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3320 break;;
3321 esac
3322 done
3323 else
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error $? "cannot compute suffix of object files: cannot compile
3330 See \`config.log' for more details" "$LINENO" 5; }
3331 fi
3332 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3333 fi
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3335 $as_echo "$ac_cv_objext" >&6; }
3336 OBJEXT=$ac_cv_objext
3337 ac_objext=$OBJEXT
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3339 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3340 if ${ac_cv_c_compiler_gnu+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3345
3346 int
3347 main ()
3348 {
3349 #ifndef __GNUC__
3350 choke me
3351 #endif
3352
3353 ;
3354 return 0;
3355 }
3356 _ACEOF
3357 if ac_fn_c_try_compile "$LINENO"; then :
3358 ac_compiler_gnu=yes
3359 else
3360 ac_compiler_gnu=no
3361 fi
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3367 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3368 if test $ac_compiler_gnu = yes; then
3369 GCC=yes
3370 else
3371 GCC=
3372 fi
3373 ac_test_CFLAGS=${CFLAGS+set}
3374 ac_save_CFLAGS=$CFLAGS
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3376 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3377 if ${ac_cv_prog_cc_g+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 ac_save_c_werror_flag=$ac_c_werror_flag
3381 ac_c_werror_flag=yes
3382 ac_cv_prog_cc_g=no
3383 CFLAGS="-g"
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386
3387 int
3388 main ()
3389 {
3390
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396 ac_cv_prog_cc_g=yes
3397 else
3398 CFLAGS=""
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3401
3402 int
3403 main ()
3404 {
3405
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411
3412 else
3413 ac_c_werror_flag=$ac_save_c_werror_flag
3414 CFLAGS="-g"
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417
3418 int
3419 main ()
3420 {
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 if ac_fn_c_try_compile "$LINENO"; then :
3427 ac_cv_prog_cc_g=yes
3428 fi
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 fi
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 fi
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 ac_c_werror_flag=$ac_save_c_werror_flag
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3437 $as_echo "$ac_cv_prog_cc_g" >&6; }
3438 if test "$ac_test_CFLAGS" = set; then
3439 CFLAGS=$ac_save_CFLAGS
3440 elif test $ac_cv_prog_cc_g = yes; then
3441 if test "$GCC" = yes; then
3442 CFLAGS="-g -O2"
3443 else
3444 CFLAGS="-g"
3445 fi
3446 else
3447 if test "$GCC" = yes; then
3448 CFLAGS="-O2"
3449 else
3450 CFLAGS=
3451 fi
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3454 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3455 if ${ac_cv_prog_cc_c89+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 ac_cv_prog_cc_c89=no
3459 ac_save_CC=$CC
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3462 #include <stdarg.h>
3463 #include <stdio.h>
3464 struct stat;
3465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3466 struct buf { int x; };
3467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3468 static char *e (p, i)
3469 char **p;
3470 int i;
3471 {
3472 return p[i];
3473 }
3474 static char *f (char * (*g) (char **, int), char **p, ...)
3475 {
3476 char *s;
3477 va_list v;
3478 va_start (v,p);
3479 s = g (p, va_arg (v,int));
3480 va_end (v);
3481 return s;
3482 }
3483
3484 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3485 function prototypes and stuff, but not '\xHH' hex character constants.
3486 These don't provoke an error unfortunately, instead are silently treated
3487 as 'x'. The following induces an error, until -std is added to get
3488 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3489 array size at least. It's necessary to write '\x00'==0 to get something
3490 that's true only with -std. */
3491 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3492
3493 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3494 inside strings and character constants. */
3495 #define FOO(x) 'x'
3496 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3497
3498 int test (int i, double x);
3499 struct s1 {int (*f) (int a);};
3500 struct s2 {int (*f) (double a);};
3501 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3502 int argc;
3503 char **argv;
3504 int
3505 main ()
3506 {
3507 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3513 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3514 do
3515 CC="$ac_save_CC $ac_arg"
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517 ac_cv_prog_cc_c89=$ac_arg
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext
3520 test "x$ac_cv_prog_cc_c89" != "xno" && break
3521 done
3522 rm -f conftest.$ac_ext
3523 CC=$ac_save_CC
3524
3525 fi
3526 # AC_CACHE_VAL
3527 case "x$ac_cv_prog_cc_c89" in
3528 x)
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3530 $as_echo "none needed" >&6; } ;;
3531 xno)
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3533 $as_echo "unsupported" >&6; } ;;
3534 *)
3535 CC="$CC $ac_cv_prog_cc_c89"
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3537 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3538 esac
3539 if test "x$ac_cv_prog_cc_c89" != xno; then :
3540
3541 fi
3542
3543 ac_ext=c
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548
3549
3550 ac_ext=c
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3556 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3557 # On Suns, sometimes $CPP names a directory.
3558 if test -n "$CPP" && test -d "$CPP"; then
3559 CPP=
3560 fi
3561 if test -z "$CPP"; then
3562 if ${ac_cv_prog_CPP+:} false; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 # Double quotes because CPP needs to be expanded
3566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3567 do
3568 ac_preproc_ok=false
3569 for ac_c_preproc_warn_flag in '' yes
3570 do
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579 #ifdef __STDC__
3580 # include <limits.h>
3581 #else
3582 # include <assert.h>
3583 #endif
3584 Syntax error
3585 _ACEOF
3586 if ac_fn_c_try_cpp "$LINENO"; then :
3587
3588 else
3589 # Broken: fails on valid input.
3590 continue
3591 fi
3592 rm -f conftest.err conftest.i conftest.$ac_ext
3593
3594 # OK, works on sane cases. Now check whether nonexistent headers
3595 # can be detected and how.
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598 #include <ac_nonexistent.h>
3599 _ACEOF
3600 if ac_fn_c_try_cpp "$LINENO"; then :
3601 # Broken: success on invalid input.
3602 continue
3603 else
3604 # Passes both tests.
3605 ac_preproc_ok=:
3606 break
3607 fi
3608 rm -f conftest.err conftest.i conftest.$ac_ext
3609
3610 done
3611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3612 rm -f conftest.i conftest.err conftest.$ac_ext
3613 if $ac_preproc_ok; then :
3614 break
3615 fi
3616
3617 done
3618 ac_cv_prog_CPP=$CPP
3619
3620 fi
3621 CPP=$ac_cv_prog_CPP
3622 else
3623 ac_cv_prog_CPP=$CPP
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3626 $as_echo "$CPP" >&6; }
3627 ac_preproc_ok=false
3628 for ac_c_preproc_warn_flag in '' yes
3629 do
3630 # Use a header file that comes with gcc, so configuring glibc
3631 # with a fresh cross-compiler works.
3632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3633 # <limits.h> exists even on freestanding compilers.
3634 # On the NeXT, cc -E runs the code through the compiler's parser,
3635 # not just through cpp. "Syntax error" is here to catch this case.
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3638 #ifdef __STDC__
3639 # include <limits.h>
3640 #else
3641 # include <assert.h>
3642 #endif
3643 Syntax error
3644 _ACEOF
3645 if ac_fn_c_try_cpp "$LINENO"; then :
3646
3647 else
3648 # Broken: fails on valid input.
3649 continue
3650 fi
3651 rm -f conftest.err conftest.i conftest.$ac_ext
3652
3653 # OK, works on sane cases. Now check whether nonexistent headers
3654 # can be detected and how.
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3657 #include <ac_nonexistent.h>
3658 _ACEOF
3659 if ac_fn_c_try_cpp "$LINENO"; then :
3660 # Broken: success on invalid input.
3661 continue
3662 else
3663 # Passes both tests.
3664 ac_preproc_ok=:
3665 break
3666 fi
3667 rm -f conftest.err conftest.i conftest.$ac_ext
3668
3669 done
3670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3671 rm -f conftest.i conftest.err conftest.$ac_ext
3672 if $ac_preproc_ok; then :
3673
3674 else
3675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3677 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3678 See \`config.log' for more details" "$LINENO" 5; }
3679 fi
3680
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686
3687
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3689 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3690 if ${ac_cv_path_GREP+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -z "$GREP"; then
3694 ac_path_GREP_found=false
3695 # Loop through the user's path and test for each of PROGNAME-LIST
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3698 do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_prog in grep ggrep; do
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3704 as_fn_executable_p "$ac_path_GREP" || continue
3705 # Check for GNU ac_path_GREP and select it if it is found.
3706 # Check for GNU $ac_path_GREP
3707 case `"$ac_path_GREP" --version 2>&1` in
3708 *GNU*)
3709 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3710 *)
3711 ac_count=0
3712 $as_echo_n 0123456789 >"conftest.in"
3713 while :
3714 do
3715 cat "conftest.in" "conftest.in" >"conftest.tmp"
3716 mv "conftest.tmp" "conftest.in"
3717 cp "conftest.in" "conftest.nl"
3718 $as_echo 'GREP' >> "conftest.nl"
3719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3721 as_fn_arith $ac_count + 1 && ac_count=$as_val
3722 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3723 # Best one so far, save it but keep looking for a better one
3724 ac_cv_path_GREP="$ac_path_GREP"
3725 ac_path_GREP_max=$ac_count
3726 fi
3727 # 10*(2^10) chars as input seems more than enough
3728 test $ac_count -gt 10 && break
3729 done
3730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3731 esac
3732
3733 $ac_path_GREP_found && break 3
3734 done
3735 done
3736 done
3737 IFS=$as_save_IFS
3738 if test -z "$ac_cv_path_GREP"; then
3739 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3740 fi
3741 else
3742 ac_cv_path_GREP=$GREP
3743 fi
3744
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3747 $as_echo "$ac_cv_path_GREP" >&6; }
3748 GREP="$ac_cv_path_GREP"
3749
3750
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3752 $as_echo_n "checking for egrep... " >&6; }
3753 if ${ac_cv_path_EGREP+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3757 then ac_cv_path_EGREP="$GREP -E"
3758 else
3759 if test -z "$EGREP"; then
3760 ac_path_EGREP_found=false
3761 # Loop through the user's path and test for each of PROGNAME-LIST
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3764 do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_prog in egrep; do
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3770 as_fn_executable_p "$ac_path_EGREP" || continue
3771 # Check for GNU ac_path_EGREP and select it if it is found.
3772 # Check for GNU $ac_path_EGREP
3773 case `"$ac_path_EGREP" --version 2>&1` in
3774 *GNU*)
3775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3776 *)
3777 ac_count=0
3778 $as_echo_n 0123456789 >"conftest.in"
3779 while :
3780 do
3781 cat "conftest.in" "conftest.in" >"conftest.tmp"
3782 mv "conftest.tmp" "conftest.in"
3783 cp "conftest.in" "conftest.nl"
3784 $as_echo 'EGREP' >> "conftest.nl"
3785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3787 as_fn_arith $ac_count + 1 && ac_count=$as_val
3788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3789 # Best one so far, save it but keep looking for a better one
3790 ac_cv_path_EGREP="$ac_path_EGREP"
3791 ac_path_EGREP_max=$ac_count
3792 fi
3793 # 10*(2^10) chars as input seems more than enough
3794 test $ac_count -gt 10 && break
3795 done
3796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3797 esac
3798
3799 $ac_path_EGREP_found && break 3
3800 done
3801 done
3802 done
3803 IFS=$as_save_IFS
3804 if test -z "$ac_cv_path_EGREP"; then
3805 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3806 fi
3807 else
3808 ac_cv_path_EGREP=$EGREP
3809 fi
3810
3811 fi
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3814 $as_echo "$ac_cv_path_EGREP" >&6; }
3815 EGREP="$ac_cv_path_EGREP"
3816
3817
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3819 $as_echo_n "checking for ANSI C header files... " >&6; }
3820 if ${ac_cv_header_stdc+:} false; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #include <stdlib.h>
3826 #include <stdarg.h>
3827 #include <string.h>
3828 #include <float.h>
3829
3830 int
3831 main ()
3832 {
3833
3834 ;
3835 return 0;
3836 }
3837 _ACEOF
3838 if ac_fn_c_try_compile "$LINENO"; then :
3839 ac_cv_header_stdc=yes
3840 else
3841 ac_cv_header_stdc=no
3842 fi
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844
3845 if test $ac_cv_header_stdc = yes; then
3846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849 #include <string.h>
3850
3851 _ACEOF
3852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3853 $EGREP "memchr" >/dev/null 2>&1; then :
3854
3855 else
3856 ac_cv_header_stdc=no
3857 fi
3858 rm -f conftest*
3859
3860 fi
3861
3862 if test $ac_cv_header_stdc = yes; then
3863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3866 #include <stdlib.h>
3867
3868 _ACEOF
3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870 $EGREP "free" >/dev/null 2>&1; then :
3871
3872 else
3873 ac_cv_header_stdc=no
3874 fi
3875 rm -f conftest*
3876
3877 fi
3878
3879 if test $ac_cv_header_stdc = yes; then
3880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3881 if test "$cross_compiling" = yes; then :
3882 :
3883 else
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 #include <ctype.h>
3887 #include <stdlib.h>
3888 #if ((' ' & 0x0FF) == 0x020)
3889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3891 #else
3892 # define ISLOWER(c) \
3893 (('a' <= (c) && (c) <= 'i') \
3894 || ('j' <= (c) && (c) <= 'r') \
3895 || ('s' <= (c) && (c) <= 'z'))
3896 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3897 #endif
3898
3899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3900 int
3901 main ()
3902 {
3903 int i;
3904 for (i = 0; i < 256; i++)
3905 if (XOR (islower (i), ISLOWER (i))
3906 || toupper (i) != TOUPPER (i))
3907 return 2;
3908 return 0;
3909 }
3910 _ACEOF
3911 if ac_fn_c_try_run "$LINENO"; then :
3912
3913 else
3914 ac_cv_header_stdc=no
3915 fi
3916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3917 conftest.$ac_objext conftest.beam conftest.$ac_ext
3918 fi
3919
3920 fi
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3923 $as_echo "$ac_cv_header_stdc" >&6; }
3924 if test $ac_cv_header_stdc = yes; then
3925
3926 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3927
3928 fi
3929
3930 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3931 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3932 inttypes.h stdint.h unistd.h
3933 do :
3934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3935 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3936 "
3937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3938 cat >>confdefs.h <<_ACEOF
3939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3940 _ACEOF
3941
3942 fi
3943
3944 done
3945
3946
3947
3948 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3949 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3950 MINIX=yes
3951 else
3952 MINIX=
3953 fi
3954
3955
3956 if test "$MINIX" = yes; then
3957
3958 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3959
3960
3961 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3962
3963
3964 $as_echo "#define _MINIX 1" >>confdefs.h
3965
3966 fi
3967
3968
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3970 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3971 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976
3977 # define __EXTENSIONS__ 1
3978 $ac_includes_default
3979 int
3980 main ()
3981 {
3982
3983 ;
3984 return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_safe_to_define___extensions__=yes
3989 else
3990 ac_cv_safe_to_define___extensions__=no
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 fi
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3995 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3996 test $ac_cv_safe_to_define___extensions__ = yes &&
3997 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3998
3999 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4000
4001 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4002
4003 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4004
4005 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4006
4007
4008 # Check whether --enable-largefile was given.
4009 if test "${enable_largefile+set}" = set; then :
4010 enableval=$enable_largefile;
4011 fi
4012
4013 if test "$enable_largefile" != no; then
4014
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4016 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4017 if ${ac_cv_sys_largefile_CC+:} false; then :
4018 $as_echo_n "(cached) " >&6
4019 else
4020 ac_cv_sys_largefile_CC=no
4021 if test "$GCC" != yes; then
4022 ac_save_CC=$CC
4023 while :; do
4024 # IRIX 6.2 and later do not support large files by default,
4025 # so use the C compiler's -n32 option if that helps.
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028 #include <sys/types.h>
4029 /* Check that off_t can represent 2**63 - 1 correctly.
4030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4031 since some C++ compilers masquerading as C compilers
4032 incorrectly reject 9223372036854775807. */
4033 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4035 && LARGE_OFF_T % 2147483647 == 1)
4036 ? 1 : -1];
4037 int
4038 main ()
4039 {
4040
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 break
4047 fi
4048 rm -f core conftest.err conftest.$ac_objext
4049 CC="$CC -n32"
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_cv_sys_largefile_CC=' -n32'; break
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext
4054 break
4055 done
4056 CC=$ac_save_CC
4057 rm -f conftest.$ac_ext
4058 fi
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4061 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4062 if test "$ac_cv_sys_largefile_CC" != no; then
4063 CC=$CC$ac_cv_sys_largefile_CC
4064 fi
4065
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4067 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4068 if ${ac_cv_sys_file_offset_bits+:} false; then :
4069 $as_echo_n "(cached) " >&6
4070 else
4071 while :; do
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4074 #include <sys/types.h>
4075 /* Check that off_t can represent 2**63 - 1 correctly.
4076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4077 since some C++ compilers masquerading as C compilers
4078 incorrectly reject 9223372036854775807. */
4079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4081 && LARGE_OFF_T % 2147483647 == 1)
4082 ? 1 : -1];
4083 int
4084 main ()
4085 {
4086
4087 ;
4088 return 0;
4089 }
4090 _ACEOF
4091 if ac_fn_c_try_compile "$LINENO"; then :
4092 ac_cv_sys_file_offset_bits=no; break
4093 fi
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097 #define _FILE_OFFSET_BITS 64
4098 #include <sys/types.h>
4099 /* Check that off_t can represent 2**63 - 1 correctly.
4100 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4101 since some C++ compilers masquerading as C compilers
4102 incorrectly reject 9223372036854775807. */
4103 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4104 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4105 && LARGE_OFF_T % 2147483647 == 1)
4106 ? 1 : -1];
4107 int
4108 main ()
4109 {
4110
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_cv_sys_file_offset_bits=64; break
4117 fi
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 ac_cv_sys_file_offset_bits=unknown
4120 break
4121 done
4122 fi
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4124 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4125 case $ac_cv_sys_file_offset_bits in #(
4126 no | unknown) ;;
4127 *)
4128 cat >>confdefs.h <<_ACEOF
4129 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4130 _ACEOF
4131 ;;
4132 esac
4133 rm -rf conftest*
4134 if test $ac_cv_sys_file_offset_bits = unknown; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4136 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4137 if ${ac_cv_sys_large_files+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 while :; do
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143 #include <sys/types.h>
4144 /* Check that off_t can represent 2**63 - 1 correctly.
4145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4146 since some C++ compilers masquerading as C compilers
4147 incorrectly reject 9223372036854775807. */
4148 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4150 && LARGE_OFF_T % 2147483647 == 1)
4151 ? 1 : -1];
4152 int
4153 main ()
4154 {
4155
4156 ;
4157 return 0;
4158 }
4159 _ACEOF
4160 if ac_fn_c_try_compile "$LINENO"; then :
4161 ac_cv_sys_large_files=no; break
4162 fi
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #define _LARGE_FILES 1
4167 #include <sys/types.h>
4168 /* Check that off_t can represent 2**63 - 1 correctly.
4169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4170 since some C++ compilers masquerading as C compilers
4171 incorrectly reject 9223372036854775807. */
4172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4174 && LARGE_OFF_T % 2147483647 == 1)
4175 ? 1 : -1];
4176 int
4177 main ()
4178 {
4179
4180 ;
4181 return 0;
4182 }
4183 _ACEOF
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_sys_large_files=1; break
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 ac_cv_sys_large_files=unknown
4189 break
4190 done
4191 fi
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4193 $as_echo "$ac_cv_sys_large_files" >&6; }
4194 case $ac_cv_sys_large_files in #(
4195 no | unknown) ;;
4196 *)
4197 cat >>confdefs.h <<_ACEOF
4198 #define _LARGE_FILES $ac_cv_sys_large_files
4199 _ACEOF
4200 ;;
4201 esac
4202 rm -rf conftest*
4203 fi
4204
4205
4206 fi
4207
4208
4209 am__api_version='1.13'
4210
4211 # Find a good install program. We prefer a C program (faster),
4212 # so one script is as good as another. But avoid the broken or
4213 # incompatible versions:
4214 # SysV /etc/install, /usr/sbin/install
4215 # SunOS /usr/etc/install
4216 # IRIX /sbin/install
4217 # AIX /bin/install
4218 # AmigaOS /C/install, which installs bootblocks on floppy discs
4219 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4220 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4221 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4222 # OS/2's system install, which has a completely different semantic
4223 # ./install, which can be erroneously created by make from ./install.sh.
4224 # Reject install programs that cannot install multiple files.
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4226 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4227 if test -z "$INSTALL"; then
4228 if ${ac_cv_path_install+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 # Account for people who put trailing slashes in PATH elements.
4237 case $as_dir/ in #((
4238 ./ | .// | /[cC]/* | \
4239 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4240 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4241 /usr/ucb/* ) ;;
4242 *)
4243 # OSF1 and SCO ODT 3.0 have their own names for install.
4244 # Don't use installbsd from OSF since it installs stuff as root
4245 # by default.
4246 for ac_prog in ginstall scoinst install; do
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4249 if test $ac_prog = install &&
4250 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4251 # AIX install. It has an incompatible calling convention.
4252 :
4253 elif test $ac_prog = install &&
4254 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4255 # program-specific install script used by HP pwplus--don't use.
4256 :
4257 else
4258 rm -rf conftest.one conftest.two conftest.dir
4259 echo one > conftest.one
4260 echo two > conftest.two
4261 mkdir conftest.dir
4262 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4263 test -s conftest.one && test -s conftest.two &&
4264 test -s conftest.dir/conftest.one &&
4265 test -s conftest.dir/conftest.two
4266 then
4267 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4268 break 3
4269 fi
4270 fi
4271 fi
4272 done
4273 done
4274 ;;
4275 esac
4276
4277 done
4278 IFS=$as_save_IFS
4279
4280 rm -rf conftest.one conftest.two conftest.dir
4281
4282 fi
4283 if test "${ac_cv_path_install+set}" = set; then
4284 INSTALL=$ac_cv_path_install
4285 else
4286 # As a last resort, use the slow shell script. Don't cache a
4287 # value for INSTALL within a source directory, because that will
4288 # break other packages using the cache if that directory is
4289 # removed, or if the value is a relative name.
4290 INSTALL=$ac_install_sh
4291 fi
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4294 $as_echo "$INSTALL" >&6; }
4295
4296 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4297 # It thinks the first close brace ends the variable substitution.
4298 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4299
4300 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4301
4302 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4305 $as_echo_n "checking whether build environment is sane... " >&6; }
4306 # Reject unsafe characters in $srcdir or the absolute working directory
4307 # name. Accept space and tab only in the latter.
4308 am_lf='
4309 '
4310 case `pwd` in
4311 *[\\\"\#\$\&\'\`$am_lf]*)
4312 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4313 esac
4314 case $srcdir in
4315 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4316 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4317 esac
4318
4319 # Do 'set' in a subshell so we don't clobber the current shell's
4320 # arguments. Must try -L first in case configure is actually a
4321 # symlink; some systems play weird games with the mod time of symlinks
4322 # (eg FreeBSD returns the mod time of the symlink's containing
4323 # directory).
4324 if (
4325 am_has_slept=no
4326 for am_try in 1 2; do
4327 echo "timestamp, slept: $am_has_slept" > conftest.file
4328 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4329 if test "$*" = "X"; then
4330 # -L didn't work.
4331 set X `ls -t "$srcdir/configure" conftest.file`
4332 fi
4333 if test "$*" != "X $srcdir/configure conftest.file" \
4334 && test "$*" != "X conftest.file $srcdir/configure"; then
4335
4336 # If neither matched, then we have a broken ls. This can happen
4337 # if, for instance, CONFIG_SHELL is bash and it inherits a
4338 # broken ls alias from the environment. This has actually
4339 # happened. Such a system could not be considered "sane".
4340 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4341 alias in your environment" "$LINENO" 5
4342 fi
4343 if test "$2" = conftest.file || test $am_try -eq 2; then
4344 break
4345 fi
4346 # Just in case.
4347 sleep 1
4348 am_has_slept=yes
4349 done
4350 test "$2" = conftest.file
4351 )
4352 then
4353 # Ok.
4354 :
4355 else
4356 as_fn_error $? "newly created file is older than distributed files!
4357 Check your system clock" "$LINENO" 5
4358 fi
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4360 $as_echo "yes" >&6; }
4361 # If we didn't sleep, we still need to ensure time stamps of config.status and
4362 # generated files are strictly newer.
4363 am_sleep_pid=
4364 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4365 ( sleep 1 ) &
4366 am_sleep_pid=$!
4367 fi
4368
4369 rm -f conftest.file
4370
4371 test "$program_prefix" != NONE &&
4372 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4373 # Use a double $ so make ignores it.
4374 test "$program_suffix" != NONE &&
4375 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4376 # Double any \ or $.
4377 # By default was `s,x,x', remove it if useless.
4378 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4379 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4380
4381 # expand $ac_aux_dir to an absolute path
4382 am_aux_dir=`cd $ac_aux_dir && pwd`
4383
4384 if test x"${MISSING+set}" != xset; then
4385 case $am_aux_dir in
4386 *\ * | *\ *)
4387 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4388 *)
4389 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4390 esac
4391 fi
4392 # Use eval to expand $SHELL
4393 if eval "$MISSING --is-lightweight"; then
4394 am_missing_run="$MISSING "
4395 else
4396 am_missing_run=
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4398 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4399 fi
4400
4401 if test x"${install_sh}" != xset; then
4402 case $am_aux_dir in
4403 *\ * | *\ *)
4404 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4405 *)
4406 install_sh="\${SHELL} $am_aux_dir/install-sh"
4407 esac
4408 fi
4409
4410 # Installed binaries are usually stripped using 'strip' when the user
4411 # run "make install-strip". However 'strip' might not be the right
4412 # tool to use in cross-compilation environments, therefore Automake
4413 # will honor the 'STRIP' environment variable to overrule this program.
4414 if test "$cross_compiling" != no; then
4415 if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4417 set dummy ${ac_tool_prefix}strip; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_prog_STRIP+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -n "$STRIP"; then
4424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4436 fi
4437 done
4438 done
4439 IFS=$as_save_IFS
4440
4441 fi
4442 fi
4443 STRIP=$ac_cv_prog_STRIP
4444 if test -n "$STRIP"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4446 $as_echo "$STRIP" >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450 fi
4451
4452
4453 fi
4454 if test -z "$ac_cv_prog_STRIP"; then
4455 ac_ct_STRIP=$STRIP
4456 # Extract the first word of "strip", so it can be a program name with args.
4457 set dummy strip; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -n "$ac_ct_STRIP"; then
4464 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_prog_ac_ct_STRIP="strip"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4476 fi
4477 done
4478 done
4479 IFS=$as_save_IFS
4480
4481 fi
4482 fi
4483 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4484 if test -n "$ac_ct_STRIP"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4486 $as_echo "$ac_ct_STRIP" >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4490 fi
4491
4492 if test "x$ac_ct_STRIP" = x; then
4493 STRIP=":"
4494 else
4495 case $cross_compiling:$ac_tool_warned in
4496 yes:)
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499 ac_tool_warned=yes ;;
4500 esac
4501 STRIP=$ac_ct_STRIP
4502 fi
4503 else
4504 STRIP="$ac_cv_prog_STRIP"
4505 fi
4506
4507 fi
4508 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4509
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4511 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4512 if test -z "$MKDIR_P"; then
4513 if ${ac_cv_path_mkdir+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4518 do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_prog in mkdir gmkdir; do
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4524 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4525 'mkdir (GNU coreutils) '* | \
4526 'mkdir (coreutils) '* | \
4527 'mkdir (fileutils) '4.1*)
4528 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4529 break 3;;
4530 esac
4531 done
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536 fi
4537
4538 test -d ./--version && rmdir ./--version
4539 if test "${ac_cv_path_mkdir+set}" = set; then
4540 MKDIR_P="$ac_cv_path_mkdir -p"
4541 else
4542 # As a last resort, use the slow shell script. Don't cache a
4543 # value for MKDIR_P within a source directory, because that will
4544 # break other packages using the cache if that directory is
4545 # removed, or if the value is a relative name.
4546 MKDIR_P="$ac_install_sh -d"
4547 fi
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4550 $as_echo "$MKDIR_P" >&6; }
4551
4552 for ac_prog in gawk mawk nawk awk
4553 do
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_prog_AWK+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$AWK"; then
4562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_AWK="$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 AWK=$ac_cv_prog_AWK
4582 if test -n "$AWK"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4584 $as_echo "$AWK" >&6; }
4585 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4588 fi
4589
4590
4591 test -n "$AWK" && break
4592 done
4593
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4595 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4596 set x ${MAKE-make}
4597 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4598 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 cat >conftest.make <<\_ACEOF
4602 SHELL = /bin/sh
4603 all:
4604 @echo '@@@%%%=$(MAKE)=@@@%%%'
4605 _ACEOF
4606 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4607 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4608 *@@@%%%=?*=@@@%%%*)
4609 eval ac_cv_prog_make_${ac_make}_set=yes;;
4610 *)
4611 eval ac_cv_prog_make_${ac_make}_set=no;;
4612 esac
4613 rm -f conftest.make
4614 fi
4615 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4617 $as_echo "yes" >&6; }
4618 SET_MAKE=
4619 else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4622 SET_MAKE="MAKE=${MAKE-make}"
4623 fi
4624
4625 rm -rf .tst 2>/dev/null
4626 mkdir .tst 2>/dev/null
4627 if test -d .tst; then
4628 am__leading_dot=.
4629 else
4630 am__leading_dot=_
4631 fi
4632 rmdir .tst 2>/dev/null
4633
4634 DEPDIR="${am__leading_dot}deps"
4635
4636 ac_config_commands="$ac_config_commands depfiles"
4637
4638
4639 am_make=${MAKE-make}
4640 cat > confinc << 'END'
4641 am__doit:
4642 @echo this is the am__doit target
4643 .PHONY: am__doit
4644 END
4645 # If we don't find an include directive, just comment out the code.
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4647 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4648 am__include="#"
4649 am__quote=
4650 _am_result=none
4651 # First try GNU make style include.
4652 echo "include confinc" > confmf
4653 # Ignore all kinds of additional output from 'make'.
4654 case `$am_make -s -f confmf 2> /dev/null` in #(
4655 *the\ am__doit\ target*)
4656 am__include=include
4657 am__quote=
4658 _am_result=GNU
4659 ;;
4660 esac
4661 # Now try BSD make style include.
4662 if test "$am__include" = "#"; then
4663 echo '.include "confinc"' > confmf
4664 case `$am_make -s -f confmf 2> /dev/null` in #(
4665 *the\ am__doit\ target*)
4666 am__include=.include
4667 am__quote="\""
4668 _am_result=BSD
4669 ;;
4670 esac
4671 fi
4672
4673
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4675 $as_echo "$_am_result" >&6; }
4676 rm -f confinc confmf
4677
4678 # Check whether --enable-dependency-tracking was given.
4679 if test "${enable_dependency_tracking+set}" = set; then :
4680 enableval=$enable_dependency_tracking;
4681 fi
4682
4683 if test "x$enable_dependency_tracking" != xno; then
4684 am_depcomp="$ac_aux_dir/depcomp"
4685 AMDEPBACKSLASH='\'
4686 am__nodep='_no'
4687 fi
4688 if test "x$enable_dependency_tracking" != xno; then
4689 AMDEP_TRUE=
4690 AMDEP_FALSE='#'
4691 else
4692 AMDEP_TRUE='#'
4693 AMDEP_FALSE=
4694 fi
4695
4696
4697 # Check whether --enable-silent-rules was given.
4698 if test "${enable_silent_rules+set}" = set; then :
4699 enableval=$enable_silent_rules;
4700 fi
4701
4702 case $enable_silent_rules in # (((
4703 yes) AM_DEFAULT_VERBOSITY=0;;
4704 no) AM_DEFAULT_VERBOSITY=1;;
4705 *) AM_DEFAULT_VERBOSITY=1;;
4706 esac
4707 am_make=${MAKE-make}
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4709 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4710 if ${am_cv_make_support_nested_variables+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 if $as_echo 'TRUE=$(BAR$(V))
4714 BAR0=false
4715 BAR1=true
4716 V=1
4717 am__doit:
4718 @$(TRUE)
4719 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4720 am_cv_make_support_nested_variables=yes
4721 else
4722 am_cv_make_support_nested_variables=no
4723 fi
4724 fi
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4726 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4727 if test $am_cv_make_support_nested_variables = yes; then
4728 AM_V='$(V)'
4729 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4730 else
4731 AM_V=$AM_DEFAULT_VERBOSITY
4732 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4733 fi
4734 AM_BACKSLASH='\'
4735
4736 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4737 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4738 # is not polluted with repeated "-I."
4739 am__isrc=' -I$(srcdir)'
4740 # test to see if srcdir already configured
4741 if test -f $srcdir/config.status; then
4742 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4743 fi
4744 fi
4745
4746 # test whether we have cygpath
4747 if test -z "$CYGPATH_W"; then
4748 if (cygpath --version) >/dev/null 2>/dev/null; then
4749 CYGPATH_W='cygpath -w'
4750 else
4751 CYGPATH_W=echo
4752 fi
4753 fi
4754
4755
4756 # Define the identity of the package.
4757 PACKAGE='systemd'
4758 VERSION='204'
4759
4760
4761 cat >>confdefs.h <<_ACEOF
4762 #define PACKAGE "$PACKAGE"
4763 _ACEOF
4764
4765
4766 cat >>confdefs.h <<_ACEOF
4767 #define VERSION "$VERSION"
4768 _ACEOF
4769
4770 # Some tools Automake needs.
4771
4772 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4773
4774
4775 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4776
4777
4778 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4779
4780
4781 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4782
4783
4784 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4785
4786 # For better backward compatibility. To be removed once Automake 1.9.x
4787 # dies out for good. For more background, see:
4788 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4789 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4790 mkdir_p='$(MKDIR_P)'
4791
4792 # We need awk for the "check" target. The system "awk" is bad on
4793 # some platforms.
4794 # Always define AMTAR for backward compatibility. Yes, it's still used
4795 # in the wild :-( We should find a proper way to deprecate it ...
4796 AMTAR='$${TAR-tar}'
4797
4798
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
4800 $as_echo_n "checking how to create a pax tar archive... " >&6; }
4801 # Loop over all known methods to create a tar archive until one works.
4802 _am_tools='gnutar pax cpio none'
4803 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
4804 # Do not fold the above two line into one, because Tru64 sh and
4805 # Solaris sh will not grok spaces in the rhs of '-'.
4806 for _am_tool in $_am_tools
4807 do
4808 case $_am_tool in
4809 gnutar)
4810 for _am_tar in tar gnutar gtar;
4811 do
4812 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4813 ($_am_tar --version) >&5 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } && break
4817 done
4818 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
4819 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
4820 am__untar="$_am_tar -xf -"
4821 ;;
4822 plaintar)
4823 # Must skip GNU tar: if it does not support --format= it doesn't create
4824 # ustar tarball either.
4825 (tar --version) >/dev/null 2>&1 && continue
4826 am__tar='tar chf - "$$tardir"'
4827 am__tar_='tar chf - "$tardir"'
4828 am__untar='tar xf -'
4829 ;;
4830 pax)
4831 am__tar='pax -L -x pax -w "$$tardir"'
4832 am__tar_='pax -L -x pax -w "$tardir"'
4833 am__untar='pax -r'
4834 ;;
4835 cpio)
4836 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
4837 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
4838 am__untar='cpio -i -H pax -d'
4839 ;;
4840 none)
4841 am__tar=false
4842 am__tar_=false
4843 am__untar=false
4844 ;;
4845 esac
4846
4847 # If the value was cached, stop now. We just wanted to have am__tar
4848 # and am__untar set.
4849 test -n "${am_cv_prog_tar_pax}" && break
4850
4851 # tar/untar a dummy directory, and stop if the command works
4852 rm -rf conftest.dir
4853 mkdir conftest.dir
4854 echo GrepMe > conftest.dir/file
4855 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4856 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }
4860 rm -rf conftest.dir
4861 if test -s conftest.tar; then
4862 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4863 ($am__untar <conftest.tar) >&5 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }
4867 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4868 fi
4869 done
4870 rm -rf conftest.dir
4871
4872 if ${am_cv_prog_tar_pax+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 am_cv_prog_tar_pax=$_am_tool
4876 fi
4877
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
4879 $as_echo "$am_cv_prog_tar_pax" >&6; }
4880
4881
4882
4883
4884 depcc="$CC" am_compiler_list=
4885
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4887 $as_echo_n "checking dependency style of $depcc... " >&6; }
4888 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4892 # We make a subdir and do the tests there. Otherwise we can end up
4893 # making bogus files that we don't know about and never remove. For
4894 # instance it was reported that on HP-UX the gcc test will end up
4895 # making a dummy file named 'D' -- because '-MD' means "put the output
4896 # in D".
4897 rm -rf conftest.dir
4898 mkdir conftest.dir
4899 # Copy depcomp to subdir because otherwise we won't find it if we're
4900 # using a relative directory.
4901 cp "$am_depcomp" conftest.dir
4902 cd conftest.dir
4903 # We will build objects and dependencies in a subdirectory because
4904 # it helps to detect inapplicable dependency modes. For instance
4905 # both Tru64's cc and ICC support -MD to output dependencies as a
4906 # side effect of compilation, but ICC will put the dependencies in
4907 # the current directory while Tru64 will put them in the object
4908 # directory.
4909 mkdir sub
4910
4911 am_cv_CC_dependencies_compiler_type=none
4912 if test "$am_compiler_list" = ""; then
4913 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4914 fi
4915 am__universal=false
4916 case " $depcc " in #(
4917 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4918 esac
4919
4920 for depmode in $am_compiler_list; do
4921 # Setup a source with many dependencies, because some compilers
4922 # like to wrap large dependency lists on column 80 (with \), and
4923 # we should not choose a depcomp mode which is confused by this.
4924 #
4925 # We need to recreate these files for each test, as the compiler may
4926 # overwrite some of them when testing with obscure command lines.
4927 # This happens at least with the AIX C compiler.
4928 : > sub/conftest.c
4929 for i in 1 2 3 4 5 6; do
4930 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4931 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4932 # Solaris 10 /bin/sh.
4933 echo '/* dummy */' > sub/conftst$i.h
4934 done
4935 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4936
4937 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4938 # mode. It turns out that the SunPro C++ compiler does not properly
4939 # handle '-M -o', and we need to detect this. Also, some Intel
4940 # versions had trouble with output in subdirs.
4941 am__obj=sub/conftest.${OBJEXT-o}
4942 am__minus_obj="-o $am__obj"
4943 case $depmode in
4944 gcc)
4945 # This depmode causes a compiler race in universal mode.
4946 test "$am__universal" = false || continue
4947 ;;
4948 nosideeffect)
4949 # After this tag, mechanisms are not by side-effect, so they'll
4950 # only be used when explicitly requested.
4951 if test "x$enable_dependency_tracking" = xyes; then
4952 continue
4953 else
4954 break
4955 fi
4956 ;;
4957 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4958 # This compiler won't grok '-c -o', but also, the minuso test has
4959 # not run yet. These depmodes are late enough in the game, and
4960 # so weak that their functioning should not be impacted.
4961 am__obj=conftest.${OBJEXT-o}
4962 am__minus_obj=
4963 ;;
4964 none) break ;;
4965 esac
4966 if depmode=$depmode \
4967 source=sub/conftest.c object=$am__obj \
4968 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4969 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4970 >/dev/null 2>conftest.err &&
4971 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4972 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4973 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4974 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4975 # icc doesn't choke on unknown options, it will just issue warnings
4976 # or remarks (even with -Werror). So we grep stderr for any message
4977 # that says an option was ignored or not supported.
4978 # When given -MP, icc 7.0 and 7.1 complain thusly:
4979 # icc: Command line warning: ignoring option '-M'; no argument required
4980 # The diagnosis changed in icc 8.0:
4981 # icc: Command line remark: option '-MP' not supported
4982 if (grep 'ignoring option' conftest.err ||
4983 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4984 am_cv_CC_dependencies_compiler_type=$depmode
4985 break
4986 fi
4987 fi
4988 done
4989
4990 cd ..
4991 rm -rf conftest.dir
4992 else
4993 am_cv_CC_dependencies_compiler_type=none
4994 fi
4995
4996 fi
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4998 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4999 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5000
5001 if
5002 test "x$enable_dependency_tracking" != xno \
5003 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5004 am__fastdepCC_TRUE=
5005 am__fastdepCC_FALSE='#'
5006 else
5007 am__fastdepCC_TRUE='#'
5008 am__fastdepCC_FALSE=
5009 fi
5010
5011
5012
5013 # Check whether --enable-silent-rules was given.
5014 if test "${enable_silent_rules+set}" = set; then :
5015 enableval=$enable_silent_rules;
5016 fi
5017
5018 case $enable_silent_rules in # (((
5019 yes) AM_DEFAULT_VERBOSITY=0;;
5020 no) AM_DEFAULT_VERBOSITY=1;;
5021 *) AM_DEFAULT_VERBOSITY=0;;
5022 esac
5023 am_make=${MAKE-make}
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5025 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5026 if ${am_cv_make_support_nested_variables+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 if $as_echo 'TRUE=$(BAR$(V))
5030 BAR0=false
5031 BAR1=true
5032 V=1
5033 am__doit:
5034 @$(TRUE)
5035 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5036 am_cv_make_support_nested_variables=yes
5037 else
5038 am_cv_make_support_nested_variables=no
5039 fi
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5042 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5043 if test $am_cv_make_support_nested_variables = yes; then
5044 AM_V='$(V)'
5045 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5046 else
5047 AM_V=$AM_DEFAULT_VERBOSITY
5048 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5049 fi
5050 AM_BACKSLASH='\'
5051
5052 # Make sure we can run config.sub.
5053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5054 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5055
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5057 $as_echo_n "checking build system type... " >&6; }
5058 if ${ac_cv_build+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 ac_build_alias=$build_alias
5062 test "x$ac_build_alias" = x &&
5063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5064 test "x$ac_build_alias" = x &&
5065 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5066 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5067 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5068
5069 fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5071 $as_echo "$ac_cv_build" >&6; }
5072 case $ac_cv_build in
5073 *-*-*) ;;
5074 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5075 esac
5076 build=$ac_cv_build
5077 ac_save_IFS=$IFS; IFS='-'
5078 set x $ac_cv_build
5079 shift
5080 build_cpu=$1
5081 build_vendor=$2
5082 shift; shift
5083 # Remember, the first character of IFS is used to create $*,
5084 # except with old shells:
5085 build_os=$*
5086 IFS=$ac_save_IFS
5087 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5088
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5091 $as_echo_n "checking host system type... " >&6; }
5092 if ${ac_cv_host+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 if test "x$host_alias" = x; then
5096 ac_cv_host=$ac_cv_build
5097 else
5098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5099 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5100 fi
5101
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5104 $as_echo "$ac_cv_host" >&6; }
5105 case $ac_cv_host in
5106 *-*-*) ;;
5107 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5108 esac
5109 host=$ac_cv_host
5110 ac_save_IFS=$IFS; IFS='-'
5111 set x $ac_cv_host
5112 shift
5113 host_cpu=$1
5114 host_vendor=$2
5115 shift; shift
5116 # Remember, the first character of IFS is used to create $*,
5117 # except with old shells:
5118 host_os=$*
5119 IFS=$ac_save_IFS
5120 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5121
5122
5123
5124 cat >>confdefs.h <<_ACEOF
5125 #define CANONICAL_HOST "$host"
5126 _ACEOF
5127
5128 if test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
5129 test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"; then :
5130
5131 $as_echo "#define ARCH_MIPS /**/" >>confdefs.h
5132
5133 fi
5134
5135
5136 case `pwd` in
5137 *\ * | *\ *)
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5139 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5140 esac
5141
5142
5143
5144 macro_version='2.4.2'
5145 macro_revision='1.3337'
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159 ltmain="$ac_aux_dir/ltmain.sh"
5160
5161 # Backslashify metacharacters that are still active within
5162 # double-quoted strings.
5163 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5164
5165 # Same as above, but do not quote variable references.
5166 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5167
5168 # Sed substitution to delay expansion of an escaped shell variable in a
5169 # double_quote_subst'ed string.
5170 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5171
5172 # Sed substitution to delay expansion of an escaped single quote.
5173 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5174
5175 # Sed substitution to avoid accidental globbing in evaled expressions
5176 no_glob_subst='s/\*/\\\*/g'
5177
5178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5179 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5180 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5181
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5183 $as_echo_n "checking how to print strings... " >&6; }
5184 # Test print first, because it will be a builtin if present.
5185 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5186 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5187 ECHO='print -r --'
5188 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5189 ECHO='printf %s\n'
5190 else
5191 # Use this function as a fallback that always works.
5192 func_fallback_echo ()
5193 {
5194 eval 'cat <<_LTECHO_EOF
5195 $1
5196 _LTECHO_EOF'
5197 }
5198 ECHO='func_fallback_echo'
5199 fi
5200
5201 # func_echo_all arg...
5202 # Invoke $ECHO with all args, space-separated.
5203 func_echo_all ()
5204 {
5205 $ECHO ""
5206 }
5207
5208 case "$ECHO" in
5209 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5210 $as_echo "printf" >&6; } ;;
5211 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5212 $as_echo "print -r" >&6; } ;;
5213 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5214 $as_echo "cat" >&6; } ;;
5215 esac
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5231 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5232 if ${ac_cv_path_SED+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5236 for ac_i in 1 2 3 4 5 6 7; do
5237 ac_script="$ac_script$as_nl$ac_script"
5238 done
5239 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5240 { ac_script=; unset ac_script;}
5241 if test -z "$SED"; then
5242 ac_path_SED_found=false
5243 # Loop through the user's path and test for each of PROGNAME-LIST
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_prog in sed gsed; do
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5252 as_fn_executable_p "$ac_path_SED" || continue
5253 # Check for GNU ac_path_SED and select it if it is found.
5254 # Check for GNU $ac_path_SED
5255 case `"$ac_path_SED" --version 2>&1` in
5256 *GNU*)
5257 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5258 *)
5259 ac_count=0
5260 $as_echo_n 0123456789 >"conftest.in"
5261 while :
5262 do
5263 cat "conftest.in" "conftest.in" >"conftest.tmp"
5264 mv "conftest.tmp" "conftest.in"
5265 cp "conftest.in" "conftest.nl"
5266 $as_echo '' >> "conftest.nl"
5267 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269 as_fn_arith $ac_count + 1 && ac_count=$as_val
5270 if test $ac_count -gt ${ac_path_SED_max-0}; then
5271 # Best one so far, save it but keep looking for a better one
5272 ac_cv_path_SED="$ac_path_SED"
5273 ac_path_SED_max=$ac_count
5274 fi
5275 # 10*(2^10) chars as input seems more than enough
5276 test $ac_count -gt 10 && break
5277 done
5278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279 esac
5280
5281 $ac_path_SED_found && break 3
5282 done
5283 done
5284 done
5285 IFS=$as_save_IFS
5286 if test -z "$ac_cv_path_SED"; then
5287 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5288 fi
5289 else
5290 ac_cv_path_SED=$SED
5291 fi
5292
5293 fi
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5295 $as_echo "$ac_cv_path_SED" >&6; }
5296 SED="$ac_cv_path_SED"
5297 rm -f conftest.sed
5298
5299 test -z "$SED" && SED=sed
5300 Xsed="$SED -e 1s/^X//"
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5313 $as_echo_n "checking for fgrep... " >&6; }
5314 if ${ac_cv_path_FGREP+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5318 then ac_cv_path_FGREP="$GREP -F"
5319 else
5320 if test -z "$FGREP"; then
5321 ac_path_FGREP_found=false
5322 # Loop through the user's path and test for each of PROGNAME-LIST
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5325 do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_prog in fgrep; do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5331 as_fn_executable_p "$ac_path_FGREP" || continue
5332 # Check for GNU ac_path_FGREP and select it if it is found.
5333 # Check for GNU $ac_path_FGREP
5334 case `"$ac_path_FGREP" --version 2>&1` in
5335 *GNU*)
5336 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5337 *)
5338 ac_count=0
5339 $as_echo_n 0123456789 >"conftest.in"
5340 while :
5341 do
5342 cat "conftest.in" "conftest.in" >"conftest.tmp"
5343 mv "conftest.tmp" "conftest.in"
5344 cp "conftest.in" "conftest.nl"
5345 $as_echo 'FGREP' >> "conftest.nl"
5346 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5348 as_fn_arith $ac_count + 1 && ac_count=$as_val
5349 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5350 # Best one so far, save it but keep looking for a better one
5351 ac_cv_path_FGREP="$ac_path_FGREP"
5352 ac_path_FGREP_max=$ac_count
5353 fi
5354 # 10*(2^10) chars as input seems more than enough
5355 test $ac_count -gt 10 && break
5356 done
5357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5358 esac
5359
5360 $ac_path_FGREP_found && break 3
5361 done
5362 done
5363 done
5364 IFS=$as_save_IFS
5365 if test -z "$ac_cv_path_FGREP"; then
5366 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5367 fi
5368 else
5369 ac_cv_path_FGREP=$FGREP
5370 fi
5371
5372 fi
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5375 $as_echo "$ac_cv_path_FGREP" >&6; }
5376 FGREP="$ac_cv_path_FGREP"
5377
5378
5379 test -z "$GREP" && GREP=grep
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399 # Check whether --with-gnu-ld was given.
5400 if test "${with_gnu_ld+set}" = set; then :
5401 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5402 else
5403 with_gnu_ld=no
5404 fi
5405
5406 ac_prog=ld
5407 if test "$GCC" = yes; then
5408 # Check if gcc -print-prog-name=ld gives a path.
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5410 $as_echo_n "checking for ld used by $CC... " >&6; }
5411 case $host in
5412 *-*-mingw*)
5413 # gcc leaves a trailing carriage return which upsets mingw
5414 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5415 *)
5416 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5417 esac
5418 case $ac_prog in
5419 # Accept absolute paths.
5420 [\\/]* | ?:[\\/]*)
5421 re_direlt='/[^/][^/]*/\.\./'
5422 # Canonicalize the pathname of ld
5423 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5424 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5425 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5426 done
5427 test -z "$LD" && LD="$ac_prog"
5428 ;;
5429 "")
5430 # If it fails, then pretend we aren't using GCC.
5431 ac_prog=ld
5432 ;;
5433 *)
5434 # If it is relative, then search for the first ld in PATH.
5435 with_gnu_ld=unknown
5436 ;;
5437 esac
5438 elif test "$with_gnu_ld" = yes; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5440 $as_echo_n "checking for GNU ld... " >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5443 $as_echo_n "checking for non-GNU ld... " >&6; }
5444 fi
5445 if ${lt_cv_path_LD+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 if test -z "$LD"; then
5449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5450 for ac_dir in $PATH; do
5451 IFS="$lt_save_ifs"
5452 test -z "$ac_dir" && ac_dir=.
5453 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5454 lt_cv_path_LD="$ac_dir/$ac_prog"
5455 # Check to see if the program is GNU ld. I'd rather use --version,
5456 # but apparently some variants of GNU ld only accept -v.
5457 # Break only if it was the GNU/non-GNU ld that we prefer.
5458 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5459 *GNU* | *'with BFD'*)
5460 test "$with_gnu_ld" != no && break
5461 ;;
5462 *)
5463 test "$with_gnu_ld" != yes && break
5464 ;;
5465 esac
5466 fi
5467 done
5468 IFS="$lt_save_ifs"
5469 else
5470 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5471 fi
5472 fi
5473
5474 LD="$lt_cv_path_LD"
5475 if test -n "$LD"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5477 $as_echo "$LD" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5484 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5485 if ${lt_cv_prog_gnu_ld+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5489 case `$LD -v 2>&1 </dev/null` in
5490 *GNU* | *'with BFD'*)
5491 lt_cv_prog_gnu_ld=yes
5492 ;;
5493 *)
5494 lt_cv_prog_gnu_ld=no
5495 ;;
5496 esac
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5499 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5500 with_gnu_ld=$lt_cv_prog_gnu_ld
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5511 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5512 if ${lt_cv_path_NM+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 if test -n "$NM"; then
5516 # Let the user override the test.
5517 lt_cv_path_NM="$NM"
5518 else
5519 lt_nm_to_check="${ac_tool_prefix}nm"
5520 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5521 lt_nm_to_check="$lt_nm_to_check nm"
5522 fi
5523 for lt_tmp_nm in $lt_nm_to_check; do
5524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5525 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5526 IFS="$lt_save_ifs"
5527 test -z "$ac_dir" && ac_dir=.
5528 tmp_nm="$ac_dir/$lt_tmp_nm"
5529 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5530 # Check to see if the nm accepts a BSD-compat flag.
5531 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5532 # nm: unknown option "B" ignored
5533 # Tru64's nm complains that /dev/null is an invalid object file
5534 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5535 */dev/null* | *'Invalid file or object type'*)
5536 lt_cv_path_NM="$tmp_nm -B"
5537 break
5538 ;;
5539 *)
5540 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5541 */dev/null*)
5542 lt_cv_path_NM="$tmp_nm -p"
5543 break
5544 ;;
5545 *)
5546 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5547 continue # so that we can try to find one that supports BSD flags
5548 ;;
5549 esac
5550 ;;
5551 esac
5552 fi
5553 done
5554 IFS="$lt_save_ifs"
5555 done
5556 : ${lt_cv_path_NM=no}
5557 fi
5558 fi
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5560 $as_echo "$lt_cv_path_NM" >&6; }
5561 if test "$lt_cv_path_NM" != "no"; then
5562 NM="$lt_cv_path_NM"
5563 else
5564 # Didn't find any BSD compatible name lister, look for dumpbin.
5565 if test -n "$DUMPBIN"; then :
5566 # Let the user override the test.
5567 else
5568 if test -n "$ac_tool_prefix"; then
5569 for ac_prog in dumpbin "link -dump"
5570 do
5571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5572 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_DUMPBIN+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 if test -n "$DUMPBIN"; then
5579 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 break 2
5591 fi
5592 done
5593 done
5594 IFS=$as_save_IFS
5595
5596 fi
5597 fi
5598 DUMPBIN=$ac_cv_prog_DUMPBIN
5599 if test -n "$DUMPBIN"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5601 $as_echo "$DUMPBIN" >&6; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 fi
5606
5607
5608 test -n "$DUMPBIN" && break
5609 done
5610 fi
5611 if test -z "$DUMPBIN"; then
5612 ac_ct_DUMPBIN=$DUMPBIN
5613 for ac_prog in dumpbin "link -dump"
5614 do
5615 # Extract the first word of "$ac_prog", so it can be a program name with args.
5616 set dummy $ac_prog; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 if test -n "$ac_ct_DUMPBIN"; then
5623 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5635 fi
5636 done
5637 done
5638 IFS=$as_save_IFS
5639
5640 fi
5641 fi
5642 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5643 if test -n "$ac_ct_DUMPBIN"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5645 $as_echo "$ac_ct_DUMPBIN" >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650
5651
5652 test -n "$ac_ct_DUMPBIN" && break
5653 done
5654
5655 if test "x$ac_ct_DUMPBIN" = x; then
5656 DUMPBIN=":"
5657 else
5658 case $cross_compiling:$ac_tool_warned in
5659 yes:)
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662 ac_tool_warned=yes ;;
5663 esac
5664 DUMPBIN=$ac_ct_DUMPBIN
5665 fi
5666 fi
5667
5668 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5669 *COFF*)
5670 DUMPBIN="$DUMPBIN -symbols"
5671 ;;
5672 *)
5673 DUMPBIN=:
5674 ;;
5675 esac
5676 fi
5677
5678 if test "$DUMPBIN" != ":"; then
5679 NM="$DUMPBIN"
5680 fi
5681 fi
5682 test -z "$NM" && NM=nm
5683
5684
5685
5686
5687
5688
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5690 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5691 if ${lt_cv_nm_interface+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 lt_cv_nm_interface="BSD nm"
5695 echo "int some_variable = 0;" > conftest.$ac_ext
5696 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5697 (eval "$ac_compile" 2>conftest.err)
5698 cat conftest.err >&5
5699 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5700 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5701 cat conftest.err >&5
5702 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5703 cat conftest.out >&5
5704 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5705 lt_cv_nm_interface="MS dumpbin"
5706 fi
5707 rm -f conftest*
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5710 $as_echo "$lt_cv_nm_interface" >&6; }
5711
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5713 $as_echo_n "checking whether ln -s works... " >&6; }
5714 LN_S=$as_ln_s
5715 if test "$LN_S" = "ln -s"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5717 $as_echo "yes" >&6; }
5718 else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5720 $as_echo "no, using $LN_S" >&6; }
5721 fi
5722
5723 # find the maximum length of command line arguments
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5725 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5726 if ${lt_cv_sys_max_cmd_len+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 i=0
5730 teststring="ABCD"
5731
5732 case $build_os in
5733 msdosdjgpp*)
5734 # On DJGPP, this test can blow up pretty badly due to problems in libc
5735 # (any single argument exceeding 2000 bytes causes a buffer overrun
5736 # during glob expansion). Even if it were fixed, the result of this
5737 # check would be larger than it should be.
5738 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5739 ;;
5740
5741 gnu*)
5742 # Under GNU Hurd, this test is not required because there is
5743 # no limit to the length of command line arguments.
5744 # Libtool will interpret -1 as no limit whatsoever
5745 lt_cv_sys_max_cmd_len=-1;
5746 ;;
5747
5748 cygwin* | mingw* | cegcc*)
5749 # On Win9x/ME, this test blows up -- it succeeds, but takes
5750 # about 5 minutes as the teststring grows exponentially.
5751 # Worse, since 9x/ME are not pre-emptively multitasking,
5752 # you end up with a "frozen" computer, even though with patience
5753 # the test eventually succeeds (with a max line length of 256k).
5754 # Instead, let's just punt: use the minimum linelength reported by
5755 # all of the supported platforms: 8192 (on NT/2K/XP).
5756 lt_cv_sys_max_cmd_len=8192;
5757 ;;
5758
5759 mint*)
5760 # On MiNT this can take a long time and run out of memory.
5761 lt_cv_sys_max_cmd_len=8192;
5762 ;;
5763
5764 amigaos*)
5765 # On AmigaOS with pdksh, this test takes hours, literally.
5766 # So we just punt and use a minimum line length of 8192.
5767 lt_cv_sys_max_cmd_len=8192;
5768 ;;
5769
5770 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5771 # This has been around since 386BSD, at least. Likely further.
5772 if test -x /sbin/sysctl; then
5773 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5774 elif test -x /usr/sbin/sysctl; then
5775 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5776 else
5777 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5778 fi
5779 # And add a safety zone
5780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5782 ;;
5783
5784 interix*)
5785 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5786 lt_cv_sys_max_cmd_len=196608
5787 ;;
5788
5789 os2*)
5790 # The test takes a long time on OS/2.
5791 lt_cv_sys_max_cmd_len=8192
5792 ;;
5793
5794 osf*)
5795 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5796 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5797 # nice to cause kernel panics so lets avoid the loop below.
5798 # First set a reasonable default.
5799 lt_cv_sys_max_cmd_len=16384
5800 #
5801 if test -x /sbin/sysconfig; then
5802 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5803 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5804 esac
5805 fi
5806 ;;
5807 sco3.2v5*)
5808 lt_cv_sys_max_cmd_len=102400
5809 ;;
5810 sysv5* | sco5v6* | sysv4.2uw2*)
5811 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5812 if test -n "$kargmax"; then
5813 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5814 else
5815 lt_cv_sys_max_cmd_len=32768
5816 fi
5817 ;;
5818 *)
5819 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5820 if test -n "$lt_cv_sys_max_cmd_len"; then
5821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5823 else
5824 # Make teststring a little bigger before we do anything with it.
5825 # a 1K string should be a reasonable start.
5826 for i in 1 2 3 4 5 6 7 8 ; do
5827 teststring=$teststring$teststring
5828 done
5829 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5830 # If test is not a shell built-in, we'll probably end up computing a
5831 # maximum length that is only half of the actual maximum length, but
5832 # we can't tell.
5833 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5834 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5835 test $i != 17 # 1/2 MB should be enough
5836 do
5837 i=`expr $i + 1`
5838 teststring=$teststring$teststring
5839 done
5840 # Only check the string length outside the loop.
5841 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5842 teststring=
5843 # Add a significant safety factor because C++ compilers can tack on
5844 # massive amounts of additional arguments before passing them to the
5845 # linker. It appears as though 1/2 is a usable value.
5846 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5847 fi
5848 ;;
5849 esac
5850
5851 fi
5852
5853 if test -n $lt_cv_sys_max_cmd_len ; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5855 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5856 else
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5858 $as_echo "none" >&6; }
5859 fi
5860 max_cmd_len=$lt_cv_sys_max_cmd_len
5861
5862
5863
5864
5865
5866
5867 : ${CP="cp -f"}
5868 : ${MV="mv -f"}
5869 : ${RM="rm -f"}
5870
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5872 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5873 # Try some XSI features
5874 xsi_shell=no
5875 ( _lt_dummy="a/b/c"
5876 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5877 = c,a/b,b/c, \
5878 && eval 'test $(( 1 + 1 )) -eq 2 \
5879 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5880 && xsi_shell=yes
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5882 $as_echo "$xsi_shell" >&6; }
5883
5884
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5886 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5887 lt_shell_append=no
5888 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5889 >/dev/null 2>&1 \
5890 && lt_shell_append=yes
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5892 $as_echo "$lt_shell_append" >&6; }
5893
5894
5895 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5896 lt_unset=unset
5897 else
5898 lt_unset=false
5899 fi
5900
5901
5902
5903
5904
5905 # test EBCDIC or ASCII
5906 case `echo X|tr X '\101'` in
5907 A) # ASCII based system
5908 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5909 lt_SP2NL='tr \040 \012'
5910 lt_NL2SP='tr \015\012 \040\040'
5911 ;;
5912 *) # EBCDIC based system
5913 lt_SP2NL='tr \100 \n'
5914 lt_NL2SP='tr \r\n \100\100'
5915 ;;
5916 esac
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5927 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5928 if ${lt_cv_to_host_file_cmd+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 case $host in
5932 *-*-mingw* )
5933 case $build in
5934 *-*-mingw* ) # actually msys
5935 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5936 ;;
5937 *-*-cygwin* )
5938 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5939 ;;
5940 * ) # otherwise, assume *nix
5941 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5942 ;;
5943 esac
5944 ;;
5945 *-*-cygwin* )
5946 case $build in
5947 *-*-mingw* ) # actually msys
5948 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5949 ;;
5950 *-*-cygwin* )
5951 lt_cv_to_host_file_cmd=func_convert_file_noop
5952 ;;
5953 * ) # otherwise, assume *nix
5954 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5955 ;;
5956 esac
5957 ;;
5958 * ) # unhandled hosts (and "normal" native builds)
5959 lt_cv_to_host_file_cmd=func_convert_file_noop
5960 ;;
5961 esac
5962
5963 fi
5964
5965 to_host_file_cmd=$lt_cv_to_host_file_cmd
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5967 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5968
5969
5970
5971
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5974 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5975 if ${lt_cv_to_tool_file_cmd+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 #assume ordinary cross tools, or native build.
5979 lt_cv_to_tool_file_cmd=func_convert_file_noop
5980 case $host in
5981 *-*-mingw* )
5982 case $build in
5983 *-*-mingw* ) # actually msys
5984 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5985 ;;
5986 esac
5987 ;;
5988 esac
5989
5990 fi
5991
5992 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5994 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5995
5996
5997
5998
5999
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6001 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6002 if ${lt_cv_ld_reload_flag+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 lt_cv_ld_reload_flag='-r'
6006 fi
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6008 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6009 reload_flag=$lt_cv_ld_reload_flag
6010 case $reload_flag in
6011 "" | " "*) ;;
6012 *) reload_flag=" $reload_flag" ;;
6013 esac
6014 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6015 case $host_os in
6016 cygwin* | mingw* | pw32* | cegcc*)
6017 if test "$GCC" != yes; then
6018 reload_cmds=false
6019 fi
6020 ;;
6021 darwin*)
6022 if test "$GCC" = yes; then
6023 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6024 else
6025 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6026 fi
6027 ;;
6028 esac
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038 if test -n "$ac_tool_prefix"; then
6039 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6040 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_prog_OBJDUMP+:} false; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$OBJDUMP"; then
6047 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 OBJDUMP=$ac_cv_prog_OBJDUMP
6067 if test -n "$OBJDUMP"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6069 $as_echo "$OBJDUMP" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6073 fi
6074
6075
6076 fi
6077 if test -z "$ac_cv_prog_OBJDUMP"; then
6078 ac_ct_OBJDUMP=$OBJDUMP
6079 # Extract the first word of "objdump", so it can be a program name with args.
6080 set dummy objdump; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 if test -n "$ac_ct_OBJDUMP"; then
6087 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100 done
6101 done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6107 if test -n "$ac_ct_OBJDUMP"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6109 $as_echo "$ac_ct_OBJDUMP" >&6; }
6110 else
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6113 fi
6114
6115 if test "x$ac_ct_OBJDUMP" = x; then
6116 OBJDUMP="false"
6117 else
6118 case $cross_compiling:$ac_tool_warned in
6119 yes:)
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6122 ac_tool_warned=yes ;;
6123 esac
6124 OBJDUMP=$ac_ct_OBJDUMP
6125 fi
6126 else
6127 OBJDUMP="$ac_cv_prog_OBJDUMP"
6128 fi
6129
6130 test -z "$OBJDUMP" && OBJDUMP=objdump
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6141 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6142 if ${lt_cv_deplibs_check_method+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 lt_cv_file_magic_cmd='$MAGIC_CMD'
6146 lt_cv_file_magic_test_file=
6147 lt_cv_deplibs_check_method='unknown'
6148 # Need to set the preceding variable on all platforms that support
6149 # interlibrary dependencies.
6150 # 'none' -- dependencies not supported.
6151 # `unknown' -- same as none, but documents that we really don't know.
6152 # 'pass_all' -- all dependencies passed with no checks.
6153 # 'test_compile' -- check by making test program.
6154 # 'file_magic [[regex]]' -- check by looking for files in library path
6155 # which responds to the $file_magic_cmd with a given extended regex.
6156 # If you have `file' or equivalent on your system and you're not sure
6157 # whether `pass_all' will *always* work, you probably want this one.
6158
6159 case $host_os in
6160 aix[4-9]*)
6161 lt_cv_deplibs_check_method=pass_all
6162 ;;
6163
6164 beos*)
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
6167
6168 bsdi[45]*)
6169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6170 lt_cv_file_magic_cmd='/usr/bin/file -L'
6171 lt_cv_file_magic_test_file=/shlib/libc.so
6172 ;;
6173
6174 cygwin*)
6175 # func_win32_libid is a shell function defined in ltmain.sh
6176 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6177 lt_cv_file_magic_cmd='func_win32_libid'
6178 ;;
6179
6180 mingw* | pw32*)
6181 # Base MSYS/MinGW do not provide the 'file' command needed by
6182 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6183 # unless we find 'file', for example because we are cross-compiling.
6184 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6185 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6187 lt_cv_file_magic_cmd='func_win32_libid'
6188 else
6189 # Keep this pattern in sync with the one in func_win32_libid.
6190 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6191 lt_cv_file_magic_cmd='$OBJDUMP -f'
6192 fi
6193 ;;
6194
6195 cegcc*)
6196 # use the weaker test based on 'objdump'. See mingw*.
6197 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6198 lt_cv_file_magic_cmd='$OBJDUMP -f'
6199 ;;
6200
6201 darwin* | rhapsody*)
6202 lt_cv_deplibs_check_method=pass_all
6203 ;;
6204
6205 freebsd* | dragonfly*)
6206 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6207 case $host_cpu in
6208 i*86 )
6209 # Not sure whether the presence of OpenBSD here was a mistake.
6210 # Let's accept both of them until this is cleared up.
6211 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6212 lt_cv_file_magic_cmd=/usr/bin/file
6213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6214 ;;
6215 esac
6216 else
6217 lt_cv_deplibs_check_method=pass_all
6218 fi
6219 ;;
6220
6221 gnu*)
6222 lt_cv_deplibs_check_method=pass_all
6223 ;;
6224
6225 haiku*)
6226 lt_cv_deplibs_check_method=pass_all
6227 ;;
6228
6229 hpux10.20* | hpux11*)
6230 lt_cv_file_magic_cmd=/usr/bin/file
6231 case $host_cpu in
6232 ia64*)
6233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6234 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6235 ;;
6236 hppa*64*)
6237 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]'
6238 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6239 ;;
6240 *)
6241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6242 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6243 ;;
6244 esac
6245 ;;
6246
6247 interix[3-9]*)
6248 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6250 ;;
6251
6252 irix5* | irix6* | nonstopux*)
6253 case $LD in
6254 *-32|*"-32 ") libmagic=32-bit;;
6255 *-n32|*"-n32 ") libmagic=N32;;
6256 *-64|*"-64 ") libmagic=64-bit;;
6257 *) libmagic=never-match;;
6258 esac
6259 lt_cv_deplibs_check_method=pass_all
6260 ;;
6261
6262 # This must be glibc/ELF.
6263 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6264 lt_cv_deplibs_check_method=pass_all
6265 ;;
6266
6267 netbsd*)
6268 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6270 else
6271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6272 fi
6273 ;;
6274
6275 newos6*)
6276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6277 lt_cv_file_magic_cmd=/usr/bin/file
6278 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6279 ;;
6280
6281 *nto* | *qnx*)
6282 lt_cv_deplibs_check_method=pass_all
6283 ;;
6284
6285 openbsd*)
6286 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6288 else
6289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6290 fi
6291 ;;
6292
6293 osf3* | osf4* | osf5*)
6294 lt_cv_deplibs_check_method=pass_all
6295 ;;
6296
6297 rdos*)
6298 lt_cv_deplibs_check_method=pass_all
6299 ;;
6300
6301 solaris*)
6302 lt_cv_deplibs_check_method=pass_all
6303 ;;
6304
6305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6306 lt_cv_deplibs_check_method=pass_all
6307 ;;
6308
6309 sysv4 | sysv4.3*)
6310 case $host_vendor in
6311 motorola)
6312 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]'
6313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6314 ;;
6315 ncr)
6316 lt_cv_deplibs_check_method=pass_all
6317 ;;
6318 sequent)
6319 lt_cv_file_magic_cmd='/bin/file'
6320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6321 ;;
6322 sni)
6323 lt_cv_file_magic_cmd='/bin/file'
6324 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6325 lt_cv_file_magic_test_file=/lib/libc.so
6326 ;;
6327 siemens)
6328 lt_cv_deplibs_check_method=pass_all
6329 ;;
6330 pc)
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333 esac
6334 ;;
6335
6336 tpf*)
6337 lt_cv_deplibs_check_method=pass_all
6338 ;;
6339 esac
6340
6341 fi
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6343 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6344
6345 file_magic_glob=
6346 want_nocaseglob=no
6347 if test "$build" = "$host"; then
6348 case $host_os in
6349 mingw* | pw32*)
6350 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6351 want_nocaseglob=yes
6352 else
6353 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6354 fi
6355 ;;
6356 esac
6357 fi
6358
6359 file_magic_cmd=$lt_cv_file_magic_cmd
6360 deplibs_check_method=$lt_cv_deplibs_check_method
6361 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384 if test -n "$ac_tool_prefix"; then
6385 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6386 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if ${ac_cv_prog_DLLTOOL+:} false; then :
6390 $as_echo_n "(cached) " >&6
6391 else
6392 if test -n "$DLLTOOL"; then
6393 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6394 else
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6397 do
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6402 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 break 2
6405 fi
6406 done
6407 done
6408 IFS=$as_save_IFS
6409
6410 fi
6411 fi
6412 DLLTOOL=$ac_cv_prog_DLLTOOL
6413 if test -n "$DLLTOOL"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6415 $as_echo "$DLLTOOL" >&6; }
6416 else
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6419 fi
6420
6421
6422 fi
6423 if test -z "$ac_cv_prog_DLLTOOL"; then
6424 ac_ct_DLLTOOL=$DLLTOOL
6425 # Extract the first word of "dlltool", so it can be a program name with args.
6426 set dummy dlltool; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 if test -n "$ac_ct_DLLTOOL"; then
6433 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438 IFS=$as_save_IFS
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6442 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 break 2
6445 fi
6446 done
6447 done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6453 if test -n "$ac_ct_DLLTOOL"; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6455 $as_echo "$ac_ct_DLLTOOL" >&6; }
6456 else
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6459 fi
6460
6461 if test "x$ac_ct_DLLTOOL" = x; then
6462 DLLTOOL="false"
6463 else
6464 case $cross_compiling:$ac_tool_warned in
6465 yes:)
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468 ac_tool_warned=yes ;;
6469 esac
6470 DLLTOOL=$ac_ct_DLLTOOL
6471 fi
6472 else
6473 DLLTOOL="$ac_cv_prog_DLLTOOL"
6474 fi
6475
6476 test -z "$DLLTOOL" && DLLTOOL=dlltool
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6488 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6489 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 lt_cv_sharedlib_from_linklib_cmd='unknown'
6493
6494 case $host_os in
6495 cygwin* | mingw* | pw32* | cegcc*)
6496 # two different shell functions defined in ltmain.sh
6497 # decide which to use based on capabilities of $DLLTOOL
6498 case `$DLLTOOL --help 2>&1` in
6499 *--identify-strict*)
6500 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6501 ;;
6502 *)
6503 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6504 ;;
6505 esac
6506 ;;
6507 *)
6508 # fallback: assume linklib IS sharedlib
6509 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6510 ;;
6511 esac
6512
6513 fi
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6515 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6516 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6517 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6518
6519
6520
6521
6522
6523
6524
6525 if test -n "$ac_tool_prefix"; then
6526 for ac_prog in ar
6527 do
6528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if ${ac_cv_prog_AR+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 if test -n "$AR"; then
6536 ac_cv_prog_AR="$AR" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 AR=$ac_cv_prog_AR
6556 if test -n "$AR"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6558 $as_echo "$AR" >&6; }
6559 else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563
6564
6565 test -n "$AR" && break
6566 done
6567 fi
6568 if test -z "$AR"; then
6569 ac_ct_AR=$AR
6570 for ac_prog in ar
6571 do
6572 # Extract the first word of "$ac_prog", so it can be a program name with args.
6573 set dummy $ac_prog; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 if test -n "$ac_ct_AR"; then
6580 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_ac_ct_AR="$ac_prog"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593 done
6594 done
6595 IFS=$as_save_IFS
6596
6597 fi
6598 fi
6599 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6600 if test -n "$ac_ct_AR"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6602 $as_echo "$ac_ct_AR" >&6; }
6603 else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6606 fi
6607
6608
6609 test -n "$ac_ct_AR" && break
6610 done
6611
6612 if test "x$ac_ct_AR" = x; then
6613 AR="false"
6614 else
6615 case $cross_compiling:$ac_tool_warned in
6616 yes:)
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6619 ac_tool_warned=yes ;;
6620 esac
6621 AR=$ac_ct_AR
6622 fi
6623 fi
6624
6625 : ${AR=ar}
6626 : ${AR_FLAGS=cru}
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6639 $as_echo_n "checking for archiver @FILE support... " >&6; }
6640 if ${lt_cv_ar_at_file+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 lt_cv_ar_at_file=no
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646
6647 int
6648 main ()
6649 {
6650
6651 ;
6652 return 0;
6653 }
6654 _ACEOF
6655 if ac_fn_c_try_compile "$LINENO"; then :
6656 echo conftest.$ac_objext > conftest.lst
6657 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6659 (eval $lt_ar_try) 2>&5
6660 ac_status=$?
6661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6662 test $ac_status = 0; }
6663 if test "$ac_status" -eq 0; then
6664 # Ensure the archiver fails upon bogus file names.
6665 rm -f conftest.$ac_objext libconftest.a
6666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6667 (eval $lt_ar_try) 2>&5
6668 ac_status=$?
6669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6670 test $ac_status = 0; }
6671 if test "$ac_status" -ne 0; then
6672 lt_cv_ar_at_file=@
6673 fi
6674 fi
6675 rm -f conftest.* libconftest.a
6676
6677 fi
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6682 $as_echo "$lt_cv_ar_at_file" >&6; }
6683
6684 if test "x$lt_cv_ar_at_file" = xno; then
6685 archiver_list_spec=
6686 else
6687 archiver_list_spec=$lt_cv_ar_at_file
6688 fi
6689
6690
6691
6692
6693
6694
6695
6696 if test -n "$ac_tool_prefix"; then
6697 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6698 set dummy ${ac_tool_prefix}strip; ac_word=$2
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 $as_echo_n "checking for $ac_word... " >&6; }
6701 if ${ac_cv_prog_STRIP+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 if test -n "$STRIP"; then
6705 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6706 else
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6714 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6717 fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722 fi
6723 fi
6724 STRIP=$ac_cv_prog_STRIP
6725 if test -n "$STRIP"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6727 $as_echo "$STRIP" >&6; }
6728 else
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731 fi
6732
6733
6734 fi
6735 if test -z "$ac_cv_prog_STRIP"; then
6736 ac_ct_STRIP=$STRIP
6737 # Extract the first word of "strip", so it can be a program name with args.
6738 set dummy strip; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 if test -n "$ac_ct_STRIP"; then
6745 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6746 else
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6754 ac_cv_prog_ac_ct_STRIP="strip"
6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6757 fi
6758 done
6759 done
6760 IFS=$as_save_IFS
6761
6762 fi
6763 fi
6764 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6765 if test -n "$ac_ct_STRIP"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6767 $as_echo "$ac_ct_STRIP" >&6; }
6768 else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6771 fi
6772
6773 if test "x$ac_ct_STRIP" = x; then
6774 STRIP=":"
6775 else
6776 case $cross_compiling:$ac_tool_warned in
6777 yes:)
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6780 ac_tool_warned=yes ;;
6781 esac
6782 STRIP=$ac_ct_STRIP
6783 fi
6784 else
6785 STRIP="$ac_cv_prog_STRIP"
6786 fi
6787
6788 test -z "$STRIP" && STRIP=:
6789
6790
6791
6792
6793
6794
6795 if test -n "$ac_tool_prefix"; then
6796 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_prog_RANLIB+:} false; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 if test -n "$RANLIB"; then
6804 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 RANLIB=$ac_cv_prog_RANLIB
6824 if test -n "$RANLIB"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6826 $as_echo "$RANLIB" >&6; }
6827 else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830 fi
6831
6832
6833 fi
6834 if test -z "$ac_cv_prog_RANLIB"; then
6835 ac_ct_RANLIB=$RANLIB
6836 # Extract the first word of "ranlib", so it can be a program name with args.
6837 set dummy ranlib; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 if test -n "$ac_ct_RANLIB"; then
6844 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853 ac_cv_prog_ac_ct_RANLIB="ranlib"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6856 fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6864 if test -n "$ac_ct_RANLIB"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6866 $as_echo "$ac_ct_RANLIB" >&6; }
6867 else
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872 if test "x$ac_ct_RANLIB" = x; then
6873 RANLIB=":"
6874 else
6875 case $cross_compiling:$ac_tool_warned in
6876 yes:)
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6879 ac_tool_warned=yes ;;
6880 esac
6881 RANLIB=$ac_ct_RANLIB
6882 fi
6883 else
6884 RANLIB="$ac_cv_prog_RANLIB"
6885 fi
6886
6887 test -z "$RANLIB" && RANLIB=:
6888
6889
6890
6891
6892
6893
6894 # Determine commands to create old-style static archives.
6895 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6896 old_postinstall_cmds='chmod 644 $oldlib'
6897 old_postuninstall_cmds=
6898
6899 if test -n "$RANLIB"; then
6900 case $host_os in
6901 openbsd*)
6902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6903 ;;
6904 *)
6905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6906 ;;
6907 esac
6908 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6909 fi
6910
6911 case $host_os in
6912 darwin*)
6913 lock_old_archive_extraction=yes ;;
6914 *)
6915 lock_old_archive_extraction=no ;;
6916 esac
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956 # If no C compiler was specified, use CC.
6957 LTCC=${LTCC-"$CC"}
6958
6959 # If no C compiler flags were specified, use CFLAGS.
6960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6961
6962 # Allow CC to be a program name with arguments.
6963 compiler=$CC
6964
6965
6966 # Check for command to grab the raw symbol name followed by C symbol from nm.
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6968 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6969 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972
6973 # These are sane defaults that work on at least a few old systems.
6974 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6975
6976 # Character class describing NM global symbol codes.
6977 symcode='[BCDEGRST]'
6978
6979 # Regexp to match symbols that can be accessed directly from C.
6980 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6981
6982 # Define system-specific variables.
6983 case $host_os in
6984 aix*)
6985 symcode='[BCDT]'
6986 ;;
6987 cygwin* | mingw* | pw32* | cegcc*)
6988 symcode='[ABCDGISTW]'
6989 ;;
6990 hpux*)
6991 if test "$host_cpu" = ia64; then
6992 symcode='[ABCDEGRST]'
6993 fi
6994 ;;
6995 irix* | nonstopux*)
6996 symcode='[BCDEGRST]'
6997 ;;
6998 osf*)
6999 symcode='[BCDEGQRST]'
7000 ;;
7001 solaris*)
7002 symcode='[BDRT]'
7003 ;;
7004 sco3.2v5*)
7005 symcode='[DT]'
7006 ;;
7007 sysv4.2uw2*)
7008 symcode='[DT]'
7009 ;;
7010 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7011 symcode='[ABDT]'
7012 ;;
7013 sysv4)
7014 symcode='[DFNSTU]'
7015 ;;
7016 esac
7017
7018 # If we're using GNU nm, then use its standard symbol codes.
7019 case `$NM -V 2>&1` in
7020 *GNU* | *'with BFD'*)
7021 symcode='[ABCDGIRSTW]' ;;
7022 esac
7023
7024 # Transform an extracted symbol line into a proper C declaration.
7025 # Some systems (esp. on ia64) link data and code symbols differently,
7026 # so use this general approach.
7027 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7028
7029 # Transform an extracted symbol line into symbol name and symbol address
7030 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7031 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7032
7033 # Handle CRLF in mingw tool chain
7034 opt_cr=
7035 case $build_os in
7036 mingw*)
7037 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7038 ;;
7039 esac
7040
7041 # Try without a prefix underscore, then with it.
7042 for ac_symprfx in "" "_"; do
7043
7044 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7045 symxfrm="\\1 $ac_symprfx\\2 \\2"
7046
7047 # Write the raw and C identifiers.
7048 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7049 # Fake it for dumpbin and say T for any non-static function
7050 # and D for any global variable.
7051 # Also find C++ and __fastcall symbols from MSVC++,
7052 # which start with @ or ?.
7053 lt_cv_sys_global_symbol_pipe="$AWK '"\
7054 " {last_section=section; section=\$ 3};"\
7055 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7056 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7057 " \$ 0!~/External *\|/{next};"\
7058 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7059 " {if(hide[section]) next};"\
7060 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7061 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7062 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7063 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7064 " ' prfx=^$ac_symprfx"
7065 else
7066 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7067 fi
7068 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7069
7070 # Check to see that the pipe works correctly.
7071 pipe_works=no
7072
7073 rm -f conftest*
7074 cat > conftest.$ac_ext <<_LT_EOF
7075 #ifdef __cplusplus
7076 extern "C" {
7077 #endif
7078 char nm_test_var;
7079 void nm_test_func(void);
7080 void nm_test_func(void){}
7081 #ifdef __cplusplus
7082 }
7083 #endif
7084 int main(){nm_test_var='a';nm_test_func();return(0);}
7085 _LT_EOF
7086
7087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7088 (eval $ac_compile) 2>&5
7089 ac_status=$?
7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; }; then
7092 # Now try to grab the symbols.
7093 nlist=conftest.nm
7094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7095 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7096 ac_status=$?
7097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7098 test $ac_status = 0; } && test -s "$nlist"; then
7099 # Try sorting and uniquifying the output.
7100 if sort "$nlist" | uniq > "$nlist"T; then
7101 mv -f "$nlist"T "$nlist"
7102 else
7103 rm -f "$nlist"T
7104 fi
7105
7106 # Make sure that we snagged all the symbols we need.
7107 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7108 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7109 cat <<_LT_EOF > conftest.$ac_ext
7110 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7111 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7112 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7113 relocations are performed -- see ld's documentation on pseudo-relocs. */
7114 # define LT_DLSYM_CONST
7115 #elif defined(__osf__)
7116 /* This system does not cope well with relocations in const data. */
7117 # define LT_DLSYM_CONST
7118 #else
7119 # define LT_DLSYM_CONST const
7120 #endif
7121
7122 #ifdef __cplusplus
7123 extern "C" {
7124 #endif
7125
7126 _LT_EOF
7127 # Now generate the symbol file.
7128 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7129
7130 cat <<_LT_EOF >> conftest.$ac_ext
7131
7132 /* The mapping between symbol names and symbols. */
7133 LT_DLSYM_CONST struct {
7134 const char *name;
7135 void *address;
7136 }
7137 lt__PROGRAM__LTX_preloaded_symbols[] =
7138 {
7139 { "@PROGRAM@", (void *) 0 },
7140 _LT_EOF
7141 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7142 cat <<\_LT_EOF >> conftest.$ac_ext
7143 {0, (void *) 0}
7144 };
7145
7146 /* This works around a problem in FreeBSD linker */
7147 #ifdef FREEBSD_WORKAROUND
7148 static const void *lt_preloaded_setup() {
7149 return lt__PROGRAM__LTX_preloaded_symbols;
7150 }
7151 #endif
7152
7153 #ifdef __cplusplus
7154 }
7155 #endif
7156 _LT_EOF
7157 # Now try linking the two files.
7158 mv conftest.$ac_objext conftstm.$ac_objext
7159 lt_globsym_save_LIBS=$LIBS
7160 lt_globsym_save_CFLAGS=$CFLAGS
7161 LIBS="conftstm.$ac_objext"
7162 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7164 (eval $ac_link) 2>&5
7165 ac_status=$?
7166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7168 pipe_works=yes
7169 fi
7170 LIBS=$lt_globsym_save_LIBS
7171 CFLAGS=$lt_globsym_save_CFLAGS
7172 else
7173 echo "cannot find nm_test_func in $nlist" >&5
7174 fi
7175 else
7176 echo "cannot find nm_test_var in $nlist" >&5
7177 fi
7178 else
7179 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7180 fi
7181 else
7182 echo "$progname: failed program was:" >&5
7183 cat conftest.$ac_ext >&5
7184 fi
7185 rm -rf conftest* conftst*
7186
7187 # Do not use the global_symbol_pipe unless it works.
7188 if test "$pipe_works" = yes; then
7189 break
7190 else
7191 lt_cv_sys_global_symbol_pipe=
7192 fi
7193 done
7194
7195 fi
7196
7197 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7198 lt_cv_sys_global_symbol_to_cdecl=
7199 fi
7200 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7202 $as_echo "failed" >&6; }
7203 else
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7205 $as_echo "ok" >&6; }
7206 fi
7207
7208 # Response file support.
7209 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7210 nm_file_list_spec='@'
7211 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7212 nm_file_list_spec='@'
7213 fi
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7242 $as_echo_n "checking for sysroot... " >&6; }
7243
7244 # Check whether --with-sysroot was given.
7245 if test "${with_sysroot+set}" = set; then :
7246 withval=$with_sysroot;
7247 else
7248 with_sysroot=no
7249 fi
7250
7251
7252 lt_sysroot=
7253 case ${with_sysroot} in #(
7254 yes)
7255 if test "$GCC" = yes; then
7256 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7257 fi
7258 ;; #(
7259 /*)
7260 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7261 ;; #(
7262 no|'')
7263 ;; #(
7264 *)
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7266 $as_echo "${with_sysroot}" >&6; }
7267 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7268 ;;
7269 esac
7270
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7272 $as_echo "${lt_sysroot:-no}" >&6; }
7273
7274
7275
7276
7277
7278 # Check whether --enable-libtool-lock was given.
7279 if test "${enable_libtool_lock+set}" = set; then :
7280 enableval=$enable_libtool_lock;
7281 fi
7282
7283 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7284
7285 # Some flags need to be propagated to the compiler or linker for good
7286 # libtool support.
7287 case $host in
7288 ia64-*-hpux*)
7289 # Find out which ABI we are using.
7290 echo 'int i;' > conftest.$ac_ext
7291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7292 (eval $ac_compile) 2>&5
7293 ac_status=$?
7294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295 test $ac_status = 0; }; then
7296 case `/usr/bin/file conftest.$ac_objext` in
7297 *ELF-32*)
7298 HPUX_IA64_MODE="32"
7299 ;;
7300 *ELF-64*)
7301 HPUX_IA64_MODE="64"
7302 ;;
7303 esac
7304 fi
7305 rm -rf conftest*
7306 ;;
7307 *-*-irix6*)
7308 # Find out which ABI we are using.
7309 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7311 (eval $ac_compile) 2>&5
7312 ac_status=$?
7313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7314 test $ac_status = 0; }; then
7315 if test "$lt_cv_prog_gnu_ld" = yes; then
7316 case `/usr/bin/file conftest.$ac_objext` in
7317 *32-bit*)
7318 LD="${LD-ld} -melf32bsmip"
7319 ;;
7320 *N32*)
7321 LD="${LD-ld} -melf32bmipn32"
7322 ;;
7323 *64-bit*)
7324 LD="${LD-ld} -melf64bmip"
7325 ;;
7326 esac
7327 else
7328 case `/usr/bin/file conftest.$ac_objext` in
7329 *32-bit*)
7330 LD="${LD-ld} -32"
7331 ;;
7332 *N32*)
7333 LD="${LD-ld} -n32"
7334 ;;
7335 *64-bit*)
7336 LD="${LD-ld} -64"
7337 ;;
7338 esac
7339 fi
7340 fi
7341 rm -rf conftest*
7342 ;;
7343
7344 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7345 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7346 # Find out which ABI we are using.
7347 echo 'int i;' > conftest.$ac_ext
7348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7349 (eval $ac_compile) 2>&5
7350 ac_status=$?
7351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7352 test $ac_status = 0; }; then
7353 case `/usr/bin/file conftest.o` in
7354 *32-bit*)
7355 case $host in
7356 x86_64-*kfreebsd*-gnu)
7357 LD="${LD-ld} -m elf_i386_fbsd"
7358 ;;
7359 x86_64-*linux*)
7360 LD="${LD-ld} -m elf_i386"
7361 ;;
7362 ppc64-*linux*|powerpc64-*linux*)
7363 LD="${LD-ld} -m elf32ppclinux"
7364 ;;
7365 s390x-*linux*)
7366 LD="${LD-ld} -m elf_s390"
7367 ;;
7368 sparc64-*linux*)
7369 LD="${LD-ld} -m elf32_sparc"
7370 ;;
7371 esac
7372 ;;
7373 *64-bit*)
7374 case $host in
7375 x86_64-*kfreebsd*-gnu)
7376 LD="${LD-ld} -m elf_x86_64_fbsd"
7377 ;;
7378 x86_64-*linux*)
7379 LD="${LD-ld} -m elf_x86_64"
7380 ;;
7381 ppc*-*linux*|powerpc*-*linux*)
7382 LD="${LD-ld} -m elf64ppc"
7383 ;;
7384 s390*-*linux*|s390*-*tpf*)
7385 LD="${LD-ld} -m elf64_s390"
7386 ;;
7387 sparc*-*linux*)
7388 LD="${LD-ld} -m elf64_sparc"
7389 ;;
7390 esac
7391 ;;
7392 esac
7393 fi
7394 rm -rf conftest*
7395 ;;
7396
7397 *-*-sco3.2v5*)
7398 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7399 SAVE_CFLAGS="$CFLAGS"
7400 CFLAGS="$CFLAGS -belf"
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7402 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7403 if ${lt_cv_cc_needs_belf+:} false; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 ac_ext=c
7407 ac_cpp='$CPP $CPPFLAGS'
7408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7411
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7414
7415 int
7416 main ()
7417 {
7418
7419 ;
7420 return 0;
7421 }
7422 _ACEOF
7423 if ac_fn_c_try_link "$LINENO"; then :
7424 lt_cv_cc_needs_belf=yes
7425 else
7426 lt_cv_cc_needs_belf=no
7427 fi
7428 rm -f core conftest.err conftest.$ac_objext \
7429 conftest$ac_exeext conftest.$ac_ext
7430 ac_ext=c
7431 ac_cpp='$CPP $CPPFLAGS'
7432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7435
7436 fi
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7438 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7439 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7440 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7441 CFLAGS="$SAVE_CFLAGS"
7442 fi
7443 ;;
7444 *-*solaris*)
7445 # Find out which ABI we are using.
7446 echo 'int i;' > conftest.$ac_ext
7447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7448 (eval $ac_compile) 2>&5
7449 ac_status=$?
7450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7451 test $ac_status = 0; }; then
7452 case `/usr/bin/file conftest.o` in
7453 *64-bit*)
7454 case $lt_cv_prog_gnu_ld in
7455 yes*)
7456 case $host in
7457 i?86-*-solaris*)
7458 LD="${LD-ld} -m elf_x86_64"
7459 ;;
7460 sparc*-*-solaris*)
7461 LD="${LD-ld} -m elf64_sparc"
7462 ;;
7463 esac
7464 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7465 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7466 LD="${LD-ld}_sol2"
7467 fi
7468 ;;
7469 *)
7470 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7471 LD="${LD-ld} -64"
7472 fi
7473 ;;
7474 esac
7475 ;;
7476 esac
7477 fi
7478 rm -rf conftest*
7479 ;;
7480 esac
7481
7482 need_locks="$enable_libtool_lock"
7483
7484 if test -n "$ac_tool_prefix"; then
7485 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7486 set dummy ${ac_tool_prefix}mt; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 if test -n "$MANIFEST_TOOL"; then
7493 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506 done
7507 done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7513 if test -n "$MANIFEST_TOOL"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7515 $as_echo "$MANIFEST_TOOL" >&6; }
7516 else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521
7522 fi
7523 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7524 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7525 # Extract the first word of "mt", so it can be a program name with args.
7526 set dummy mt; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 if test -n "$ac_ct_MANIFEST_TOOL"; then
7533 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546 done
7547 done
7548 IFS=$as_save_IFS
7549
7550 fi
7551 fi
7552 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7553 if test -n "$ac_ct_MANIFEST_TOOL"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7555 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7556 else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7562 MANIFEST_TOOL=":"
7563 else
7564 case $cross_compiling:$ac_tool_warned in
7565 yes:)
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568 ac_tool_warned=yes ;;
7569 esac
7570 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7571 fi
7572 else
7573 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7574 fi
7575
7576 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7578 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7579 if ${lt_cv_path_mainfest_tool+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 lt_cv_path_mainfest_tool=no
7583 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7584 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7585 cat conftest.err >&5
7586 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7587 lt_cv_path_mainfest_tool=yes
7588 fi
7589 rm -f conftest*
7590 fi
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7592 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7593 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7594 MANIFEST_TOOL=:
7595 fi
7596
7597
7598
7599
7600
7601
7602 case $host_os in
7603 rhapsody* | darwin*)
7604 if test -n "$ac_tool_prefix"; then
7605 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7606 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608 $as_echo_n "checking for $ac_word... " >&6; }
7609 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 if test -n "$DSYMUTIL"; then
7613 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7614 else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626 done
7627 done
7628 IFS=$as_save_IFS
7629
7630 fi
7631 fi
7632 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7633 if test -n "$DSYMUTIL"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7635 $as_echo "$DSYMUTIL" >&6; }
7636 else
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 $as_echo "no" >&6; }
7639 fi
7640
7641
7642 fi
7643 if test -z "$ac_cv_prog_DSYMUTIL"; then
7644 ac_ct_DSYMUTIL=$DSYMUTIL
7645 # Extract the first word of "dsymutil", so it can be a program name with args.
7646 set dummy dsymutil; ac_word=$2
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648 $as_echo_n "checking for $ac_word... " >&6; }
7649 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7652 if test -n "$ac_ct_DSYMUTIL"; then
7653 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7654 else
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7657 do
7658 IFS=$as_save_IFS
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7662 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 break 2
7665 fi
7666 done
7667 done
7668 IFS=$as_save_IFS
7669
7670 fi
7671 fi
7672 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7673 if test -n "$ac_ct_DSYMUTIL"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7675 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7676 else
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7679 fi
7680
7681 if test "x$ac_ct_DSYMUTIL" = x; then
7682 DSYMUTIL=":"
7683 else
7684 case $cross_compiling:$ac_tool_warned in
7685 yes:)
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7688 ac_tool_warned=yes ;;
7689 esac
7690 DSYMUTIL=$ac_ct_DSYMUTIL
7691 fi
7692 else
7693 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7694 fi
7695
7696 if test -n "$ac_tool_prefix"; then
7697 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7698 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if ${ac_cv_prog_NMEDIT+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 if test -n "$NMEDIT"; then
7705 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718 done
7719 done
7720 IFS=$as_save_IFS
7721
7722 fi
7723 fi
7724 NMEDIT=$ac_cv_prog_NMEDIT
7725 if test -n "$NMEDIT"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7727 $as_echo "$NMEDIT" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7731 fi
7732
7733
7734 fi
7735 if test -z "$ac_cv_prog_NMEDIT"; then
7736 ac_ct_NMEDIT=$NMEDIT
7737 # Extract the first word of "nmedit", so it can be a program name with args.
7738 set dummy nmedit; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 if test -n "$ac_ct_NMEDIT"; then
7745 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758 done
7759 done
7760 IFS=$as_save_IFS
7761
7762 fi
7763 fi
7764 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7765 if test -n "$ac_ct_NMEDIT"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7767 $as_echo "$ac_ct_NMEDIT" >&6; }
7768 else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7771 fi
7772
7773 if test "x$ac_ct_NMEDIT" = x; then
7774 NMEDIT=":"
7775 else
7776 case $cross_compiling:$ac_tool_warned in
7777 yes:)
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7780 ac_tool_warned=yes ;;
7781 esac
7782 NMEDIT=$ac_ct_NMEDIT
7783 fi
7784 else
7785 NMEDIT="$ac_cv_prog_NMEDIT"
7786 fi
7787
7788 if test -n "$ac_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7790 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_LIPO+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 if test -n "$LIPO"; then
7797 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810 done
7811 done
7812 IFS=$as_save_IFS
7813
7814 fi
7815 fi
7816 LIPO=$ac_cv_prog_LIPO
7817 if test -n "$LIPO"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7819 $as_echo "$LIPO" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7823 fi
7824
7825
7826 fi
7827 if test -z "$ac_cv_prog_LIPO"; then
7828 ac_ct_LIPO=$LIPO
7829 # Extract the first word of "lipo", so it can be a program name with args.
7830 set dummy lipo; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 if test -n "$ac_ct_LIPO"; then
7837 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_ac_ct_LIPO="lipo"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850 done
7851 done
7852 IFS=$as_save_IFS
7853
7854 fi
7855 fi
7856 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7857 if test -n "$ac_ct_LIPO"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7859 $as_echo "$ac_ct_LIPO" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864
7865 if test "x$ac_ct_LIPO" = x; then
7866 LIPO=":"
7867 else
7868 case $cross_compiling:$ac_tool_warned in
7869 yes:)
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872 ac_tool_warned=yes ;;
7873 esac
7874 LIPO=$ac_ct_LIPO
7875 fi
7876 else
7877 LIPO="$ac_cv_prog_LIPO"
7878 fi
7879
7880 if test -n "$ac_tool_prefix"; then
7881 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7882 set dummy ${ac_tool_prefix}otool; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_OTOOL+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 if test -n "$OTOOL"; then
7889 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7893 do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7901 fi
7902 done
7903 done
7904 IFS=$as_save_IFS
7905
7906 fi
7907 fi
7908 OTOOL=$ac_cv_prog_OTOOL
7909 if test -n "$OTOOL"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7911 $as_echo "$OTOOL" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7916
7917
7918 fi
7919 if test -z "$ac_cv_prog_OTOOL"; then
7920 ac_ct_OTOOL=$OTOOL
7921 # Extract the first word of "otool", so it can be a program name with args.
7922 set dummy otool; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 if test -n "$ac_ct_OTOOL"; then
7929 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7933 do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_ac_ct_OTOOL="otool"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942 done
7943 done
7944 IFS=$as_save_IFS
7945
7946 fi
7947 fi
7948 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7949 if test -n "$ac_ct_OTOOL"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7951 $as_echo "$ac_ct_OTOOL" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7955 fi
7956
7957 if test "x$ac_ct_OTOOL" = x; then
7958 OTOOL=":"
7959 else
7960 case $cross_compiling:$ac_tool_warned in
7961 yes:)
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964 ac_tool_warned=yes ;;
7965 esac
7966 OTOOL=$ac_ct_OTOOL
7967 fi
7968 else
7969 OTOOL="$ac_cv_prog_OTOOL"
7970 fi
7971
7972 if test -n "$ac_tool_prefix"; then
7973 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7974 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_OTOOL64+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$OTOOL64"; then
7981 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994 done
7995 done
7996 IFS=$as_save_IFS
7997
7998 fi
7999 fi
8000 OTOOL64=$ac_cv_prog_OTOOL64
8001 if test -n "$OTOOL64"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8003 $as_echo "$OTOOL64" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8007 fi
8008
8009
8010 fi
8011 if test -z "$ac_cv_prog_OTOOL64"; then
8012 ac_ct_OTOOL64=$OTOOL64
8013 # Extract the first word of "otool64", so it can be a program name with args.
8014 set dummy otool64; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 if test -n "$ac_ct_OTOOL64"; then
8021 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8022 else
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8025 do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_OTOOL64="otool64"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034 done
8035 done
8036 IFS=$as_save_IFS
8037
8038 fi
8039 fi
8040 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8041 if test -n "$ac_ct_OTOOL64"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8043 $as_echo "$ac_ct_OTOOL64" >&6; }
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8047 fi
8048
8049 if test "x$ac_ct_OTOOL64" = x; then
8050 OTOOL64=":"
8051 else
8052 case $cross_compiling:$ac_tool_warned in
8053 yes:)
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056 ac_tool_warned=yes ;;
8057 esac
8058 OTOOL64=$ac_ct_OTOOL64
8059 fi
8060 else
8061 OTOOL64="$ac_cv_prog_OTOOL64"
8062 fi
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8091 $as_echo_n "checking for -single_module linker flag... " >&6; }
8092 if ${lt_cv_apple_cc_single_mod+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 lt_cv_apple_cc_single_mod=no
8096 if test -z "${LT_MULTI_MODULE}"; then
8097 # By default we will add the -single_module flag. You can override
8098 # by either setting the environment variable LT_MULTI_MODULE
8099 # non-empty at configure time, or by adding -multi_module to the
8100 # link flags.
8101 rm -rf libconftest.dylib*
8102 echo "int foo(void){return 1;}" > conftest.c
8103 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8104 -dynamiclib -Wl,-single_module conftest.c" >&5
8105 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8106 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8107 _lt_result=$?
8108 # If there is a non-empty error log, and "single_module"
8109 # appears in it, assume the flag caused a linker warning
8110 if test -s conftest.err && $GREP single_module conftest.err; then
8111 cat conftest.err >&5
8112 # Otherwise, if the output was created with a 0 exit code from
8113 # the compiler, it worked.
8114 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8115 lt_cv_apple_cc_single_mod=yes
8116 else
8117 cat conftest.err >&5
8118 fi
8119 rm -rf libconftest.dylib*
8120 rm -f conftest.*
8121 fi
8122 fi
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8124 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8125
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8127 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8128 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 lt_cv_ld_exported_symbols_list=no
8132 save_LDFLAGS=$LDFLAGS
8133 echo "_main" > conftest.sym
8134 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8137
8138 int
8139 main ()
8140 {
8141
8142 ;
8143 return 0;
8144 }
8145 _ACEOF
8146 if ac_fn_c_try_link "$LINENO"; then :
8147 lt_cv_ld_exported_symbols_list=yes
8148 else
8149 lt_cv_ld_exported_symbols_list=no
8150 fi
8151 rm -f core conftest.err conftest.$ac_objext \
8152 conftest$ac_exeext conftest.$ac_ext
8153 LDFLAGS="$save_LDFLAGS"
8154
8155 fi
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8157 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8158
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8160 $as_echo_n "checking for -force_load linker flag... " >&6; }
8161 if ${lt_cv_ld_force_load+:} false; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 lt_cv_ld_force_load=no
8165 cat > conftest.c << _LT_EOF
8166 int forced_loaded() { return 2;}
8167 _LT_EOF
8168 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8169 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8170 echo "$AR cru libconftest.a conftest.o" >&5
8171 $AR cru libconftest.a conftest.o 2>&5
8172 echo "$RANLIB libconftest.a" >&5
8173 $RANLIB libconftest.a 2>&5
8174 cat > conftest.c << _LT_EOF
8175 int main() { return 0;}
8176 _LT_EOF
8177 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8178 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8179 _lt_result=$?
8180 if test -s conftest.err && $GREP force_load conftest.err; then
8181 cat conftest.err >&5
8182 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8183 lt_cv_ld_force_load=yes
8184 else
8185 cat conftest.err >&5
8186 fi
8187 rm -f conftest.err libconftest.a conftest conftest.c
8188 rm -rf conftest.dSYM
8189
8190 fi
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8192 $as_echo "$lt_cv_ld_force_load" >&6; }
8193 case $host_os in
8194 rhapsody* | darwin1.[012])
8195 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8196 darwin1.*)
8197 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8198 darwin*) # darwin 5.x on
8199 # if running on 10.5 or later, the deployment target defaults
8200 # to the OS version, if on x86, and 10.4, the deployment
8201 # target defaults to 10.4. Don't you love it?
8202 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8203 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8204 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8205 10.[012]*)
8206 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8207 10.*)
8208 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8209 esac
8210 ;;
8211 esac
8212 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8213 _lt_dar_single_mod='$single_module'
8214 fi
8215 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8216 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8217 else
8218 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8219 fi
8220 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8221 _lt_dsymutil='~$DSYMUTIL $lib || :'
8222 else
8223 _lt_dsymutil=
8224 fi
8225 ;;
8226 esac
8227
8228 for ac_header in dlfcn.h
8229 do :
8230 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8231 "
8232 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8233 cat >>confdefs.h <<_ACEOF
8234 #define HAVE_DLFCN_H 1
8235 _ACEOF
8236
8237 fi
8238
8239 done
8240
8241
8242
8243
8244
8245 # Set options
8246 # Check whether --enable-static was given.
8247 if test "${enable_static+set}" = set; then :
8248 enableval=$enable_static; p=${PACKAGE-default}
8249 case $enableval in
8250 yes) enable_static=yes ;;
8251 no) enable_static=no ;;
8252 *)
8253 enable_static=no
8254 # Look at the argument we got. We use all the common list separators.
8255 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8256 for pkg in $enableval; do
8257 IFS="$lt_save_ifs"
8258 if test "X$pkg" = "X$p"; then
8259 enable_static=yes
8260 fi
8261 done
8262 IFS="$lt_save_ifs"
8263 ;;
8264 esac
8265 else
8266 enable_static=no
8267 fi
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278 enable_dlopen=no
8279
8280
8281 enable_win32_dll=no
8282
8283
8284 # Check whether --enable-shared was given.
8285 if test "${enable_shared+set}" = set; then :
8286 enableval=$enable_shared; p=${PACKAGE-default}
8287 case $enableval in
8288 yes) enable_shared=yes ;;
8289 no) enable_shared=no ;;
8290 *)
8291 enable_shared=no
8292 # Look at the argument we got. We use all the common list separators.
8293 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8294 for pkg in $enableval; do
8295 IFS="$lt_save_ifs"
8296 if test "X$pkg" = "X$p"; then
8297 enable_shared=yes
8298 fi
8299 done
8300 IFS="$lt_save_ifs"
8301 ;;
8302 esac
8303 else
8304 enable_shared=yes
8305 fi
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317 # Check whether --with-pic was given.
8318 if test "${with_pic+set}" = set; then :
8319 withval=$with_pic; lt_p=${PACKAGE-default}
8320 case $withval in
8321 yes|no) pic_mode=$withval ;;
8322 *)
8323 pic_mode=default
8324 # Look at the argument we got. We use all the common list separators.
8325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8326 for lt_pkg in $withval; do
8327 IFS="$lt_save_ifs"
8328 if test "X$lt_pkg" = "X$lt_p"; then
8329 pic_mode=yes
8330 fi
8331 done
8332 IFS="$lt_save_ifs"
8333 ;;
8334 esac
8335 else
8336 pic_mode=default
8337 fi
8338
8339
8340 test -z "$pic_mode" && pic_mode=default
8341
8342
8343
8344
8345
8346
8347
8348 # Check whether --enable-fast-install was given.
8349 if test "${enable_fast_install+set}" = set; then :
8350 enableval=$enable_fast_install; p=${PACKAGE-default}
8351 case $enableval in
8352 yes) enable_fast_install=yes ;;
8353 no) enable_fast_install=no ;;
8354 *)
8355 enable_fast_install=no
8356 # Look at the argument we got. We use all the common list separators.
8357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8358 for pkg in $enableval; do
8359 IFS="$lt_save_ifs"
8360 if test "X$pkg" = "X$p"; then
8361 enable_fast_install=yes
8362 fi
8363 done
8364 IFS="$lt_save_ifs"
8365 ;;
8366 esac
8367 else
8368 enable_fast_install=yes
8369 fi
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381 # This can be used to rebuild libtool when needed
8382 LIBTOOL_DEPS="$ltmain"
8383
8384 # Always use our own libtool.
8385 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416 test -z "$LN_S" && LN_S="ln -s"
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431 if test -n "${ZSH_VERSION+set}" ; then
8432 setopt NO_GLOB_SUBST
8433 fi
8434
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8436 $as_echo_n "checking for objdir... " >&6; }
8437 if ${lt_cv_objdir+:} false; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 rm -f .libs 2>/dev/null
8441 mkdir .libs 2>/dev/null
8442 if test -d .libs; then
8443 lt_cv_objdir=.libs
8444 else
8445 # MS-DOS does not allow filenames that begin with a dot.
8446 lt_cv_objdir=_libs
8447 fi
8448 rmdir .libs 2>/dev/null
8449 fi
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8451 $as_echo "$lt_cv_objdir" >&6; }
8452 objdir=$lt_cv_objdir
8453
8454
8455
8456
8457
8458 cat >>confdefs.h <<_ACEOF
8459 #define LT_OBJDIR "$lt_cv_objdir/"
8460 _ACEOF
8461
8462
8463
8464
8465 case $host_os in
8466 aix3*)
8467 # AIX sometimes has problems with the GCC collect2 program. For some
8468 # reason, if we set the COLLECT_NAMES environment variable, the problems
8469 # vanish in a puff of smoke.
8470 if test "X${COLLECT_NAMES+set}" != Xset; then
8471 COLLECT_NAMES=
8472 export COLLECT_NAMES
8473 fi
8474 ;;
8475 esac
8476
8477 # Global variables:
8478 ofile=libtool
8479 can_build_shared=yes
8480
8481 # All known linkers require a `.a' archive for static linking (except MSVC,
8482 # which needs '.lib').
8483 libext=a
8484
8485 with_gnu_ld="$lt_cv_prog_gnu_ld"
8486
8487 old_CC="$CC"
8488 old_CFLAGS="$CFLAGS"
8489
8490 # Set sane defaults for various variables
8491 test -z "$CC" && CC=cc
8492 test -z "$LTCC" && LTCC=$CC
8493 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8494 test -z "$LD" && LD=ld
8495 test -z "$ac_objext" && ac_objext=o
8496
8497 for cc_temp in $compiler""; do
8498 case $cc_temp in
8499 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8500 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8501 \-*) ;;
8502 *) break;;
8503 esac
8504 done
8505 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8506
8507
8508 # Only perform the check for file, if the check method requires it
8509 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8510 case $deplibs_check_method in
8511 file_magic*)
8512 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8514 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8515 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 case $MAGIC_CMD in
8519 [\\/*] | ?:[\\/]*)
8520 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8521 ;;
8522 *)
8523 lt_save_MAGIC_CMD="$MAGIC_CMD"
8524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8525 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8526 for ac_dir in $ac_dummy; do
8527 IFS="$lt_save_ifs"
8528 test -z "$ac_dir" && ac_dir=.
8529 if test -f $ac_dir/${ac_tool_prefix}file; then
8530 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8531 if test -n "$file_magic_test_file"; then
8532 case $deplibs_check_method in
8533 "file_magic "*)
8534 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8537 $EGREP "$file_magic_regex" > /dev/null; then
8538 :
8539 else
8540 cat <<_LT_EOF 1>&2
8541
8542 *** Warning: the command libtool uses to detect shared libraries,
8543 *** $file_magic_cmd, produces output that libtool cannot recognize.
8544 *** The result is that libtool may fail to recognize shared libraries
8545 *** as such. This will affect the creation of libtool libraries that
8546 *** depend on shared libraries, but programs linked with such libtool
8547 *** libraries will work regardless of this problem. Nevertheless, you
8548 *** may want to report the problem to your system manager and/or to
8549 *** bug-libtool@gnu.org
8550
8551 _LT_EOF
8552 fi ;;
8553 esac
8554 fi
8555 break
8556 fi
8557 done
8558 IFS="$lt_save_ifs"
8559 MAGIC_CMD="$lt_save_MAGIC_CMD"
8560 ;;
8561 esac
8562 fi
8563
8564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8565 if test -n "$MAGIC_CMD"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8567 $as_echo "$MAGIC_CMD" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8571 fi
8572
8573
8574
8575
8576
8577 if test -z "$lt_cv_path_MAGIC_CMD"; then
8578 if test -n "$ac_tool_prefix"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8580 $as_echo_n "checking for file... " >&6; }
8581 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 case $MAGIC_CMD in
8585 [\\/*] | ?:[\\/]*)
8586 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8587 ;;
8588 *)
8589 lt_save_MAGIC_CMD="$MAGIC_CMD"
8590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8591 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8592 for ac_dir in $ac_dummy; do
8593 IFS="$lt_save_ifs"
8594 test -z "$ac_dir" && ac_dir=.
8595 if test -f $ac_dir/file; then
8596 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8597 if test -n "$file_magic_test_file"; then
8598 case $deplibs_check_method in
8599 "file_magic "*)
8600 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8602 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8603 $EGREP "$file_magic_regex" > /dev/null; then
8604 :
8605 else
8606 cat <<_LT_EOF 1>&2
8607
8608 *** Warning: the command libtool uses to detect shared libraries,
8609 *** $file_magic_cmd, produces output that libtool cannot recognize.
8610 *** The result is that libtool may fail to recognize shared libraries
8611 *** as such. This will affect the creation of libtool libraries that
8612 *** depend on shared libraries, but programs linked with such libtool
8613 *** libraries will work regardless of this problem. Nevertheless, you
8614 *** may want to report the problem to your system manager and/or to
8615 *** bug-libtool@gnu.org
8616
8617 _LT_EOF
8618 fi ;;
8619 esac
8620 fi
8621 break
8622 fi
8623 done
8624 IFS="$lt_save_ifs"
8625 MAGIC_CMD="$lt_save_MAGIC_CMD"
8626 ;;
8627 esac
8628 fi
8629
8630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8631 if test -n "$MAGIC_CMD"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8633 $as_echo "$MAGIC_CMD" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8637 fi
8638
8639
8640 else
8641 MAGIC_CMD=:
8642 fi
8643 fi
8644
8645 fi
8646 ;;
8647 esac
8648
8649 # Use C for the default configuration in the libtool script
8650
8651 lt_save_CC="$CC"
8652 ac_ext=c
8653 ac_cpp='$CPP $CPPFLAGS'
8654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8657
8658
8659 # Source file extension for C test sources.
8660 ac_ext=c
8661
8662 # Object file extension for compiled C test sources.
8663 objext=o
8664 objext=$objext
8665
8666 # Code to be used in simple compile tests
8667 lt_simple_compile_test_code="int some_variable = 0;"
8668
8669 # Code to be used in simple link tests
8670 lt_simple_link_test_code='int main(){return(0);}'
8671
8672
8673
8674
8675
8676
8677
8678 # If no C compiler was specified, use CC.
8679 LTCC=${LTCC-"$CC"}
8680
8681 # If no C compiler flags were specified, use CFLAGS.
8682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8683
8684 # Allow CC to be a program name with arguments.
8685 compiler=$CC
8686
8687 # Save the default compiler, since it gets overwritten when the other
8688 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8689 compiler_DEFAULT=$CC
8690
8691 # save warnings/boilerplate of simple test code
8692 ac_outfile=conftest.$ac_objext
8693 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8694 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8695 _lt_compiler_boilerplate=`cat conftest.err`
8696 $RM conftest*
8697
8698 ac_outfile=conftest.$ac_objext
8699 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8700 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8701 _lt_linker_boilerplate=`cat conftest.err`
8702 $RM -r conftest*
8703
8704
8705 ## CAVEAT EMPTOR:
8706 ## There is no encapsulation within the following macros, do not change
8707 ## the running order or otherwise move them around unless you know exactly
8708 ## what you are doing...
8709 if test -n "$compiler"; then
8710
8711 lt_prog_compiler_no_builtin_flag=
8712
8713 if test "$GCC" = yes; then
8714 case $cc_basename in
8715 nvcc*)
8716 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8717 *)
8718 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8719 esac
8720
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8722 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8723 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 lt_cv_prog_compiler_rtti_exceptions=no
8727 ac_outfile=conftest.$ac_objext
8728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8729 lt_compiler_flag="-fno-rtti -fno-exceptions"
8730 # Insert the option either (1) after the last *FLAGS variable, or
8731 # (2) before a word containing "conftest.", or (3) at the end.
8732 # Note that $ac_compile itself does not contain backslashes and begins
8733 # with a dollar sign (not a hyphen), so the echo should work correctly.
8734 # The option is referenced via a variable to avoid confusing sed.
8735 lt_compile=`echo "$ac_compile" | $SED \
8736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8738 -e 's:$: $lt_compiler_flag:'`
8739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8740 (eval "$lt_compile" 2>conftest.err)
8741 ac_status=$?
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 if (exit $ac_status) && test -s "$ac_outfile"; then
8745 # The compiler can only warn and ignore the option if not recognized
8746 # So say no if there are warnings other than the usual output.
8747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8750 lt_cv_prog_compiler_rtti_exceptions=yes
8751 fi
8752 fi
8753 $RM conftest*
8754
8755 fi
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8757 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8758
8759 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8760 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8761 else
8762 :
8763 fi
8764
8765 fi
8766
8767
8768
8769
8770
8771
8772 lt_prog_compiler_wl=
8773 lt_prog_compiler_pic=
8774 lt_prog_compiler_static=
8775
8776
8777 if test "$GCC" = yes; then
8778 lt_prog_compiler_wl='-Wl,'
8779 lt_prog_compiler_static='-static'
8780
8781 case $host_os in
8782 aix*)
8783 # All AIX code is PIC.
8784 if test "$host_cpu" = ia64; then
8785 # AIX 5 now supports IA64 processor
8786 lt_prog_compiler_static='-Bstatic'
8787 fi
8788 ;;
8789
8790 amigaos*)
8791 case $host_cpu in
8792 powerpc)
8793 # see comment about AmigaOS4 .so support
8794 lt_prog_compiler_pic='-fPIC'
8795 ;;
8796 m68k)
8797 # FIXME: we need at least 68020 code to build shared libraries, but
8798 # adding the `-m68020' flag to GCC prevents building anything better,
8799 # like `-m68040'.
8800 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8801 ;;
8802 esac
8803 ;;
8804
8805 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8806 # PIC is the default for these OSes.
8807 ;;
8808
8809 mingw* | cygwin* | pw32* | os2* | cegcc*)
8810 # This hack is so that the source file can tell whether it is being
8811 # built for inclusion in a dll (and should export symbols for example).
8812 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8813 # (--disable-auto-import) libraries
8814 lt_prog_compiler_pic='-DDLL_EXPORT'
8815 ;;
8816
8817 darwin* | rhapsody*)
8818 # PIC is the default on this platform
8819 # Common symbols not allowed in MH_DYLIB files
8820 lt_prog_compiler_pic='-fno-common'
8821 ;;
8822
8823 haiku*)
8824 # PIC is the default for Haiku.
8825 # The "-static" flag exists, but is broken.
8826 lt_prog_compiler_static=
8827 ;;
8828
8829 hpux*)
8830 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8831 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8832 # sets the default TLS model and affects inlining.
8833 case $host_cpu in
8834 hppa*64*)
8835 # +Z the default
8836 ;;
8837 *)
8838 lt_prog_compiler_pic='-fPIC'
8839 ;;
8840 esac
8841 ;;
8842
8843 interix[3-9]*)
8844 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8845 # Instead, we relocate shared libraries at runtime.
8846 ;;
8847
8848 msdosdjgpp*)
8849 # Just because we use GCC doesn't mean we suddenly get shared libraries
8850 # on systems that don't support them.
8851 lt_prog_compiler_can_build_shared=no
8852 enable_shared=no
8853 ;;
8854
8855 *nto* | *qnx*)
8856 # QNX uses GNU C++, but need to define -shared option too, otherwise
8857 # it will coredump.
8858 lt_prog_compiler_pic='-fPIC -shared'
8859 ;;
8860
8861 sysv4*MP*)
8862 if test -d /usr/nec; then
8863 lt_prog_compiler_pic=-Kconform_pic
8864 fi
8865 ;;
8866
8867 *)
8868 lt_prog_compiler_pic='-fPIC'
8869 ;;
8870 esac
8871
8872 case $cc_basename in
8873 nvcc*) # Cuda Compiler Driver 2.2
8874 lt_prog_compiler_wl='-Xlinker '
8875 if test -n "$lt_prog_compiler_pic"; then
8876 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8877 fi
8878 ;;
8879 esac
8880 else
8881 # PORTME Check for flag to pass linker flags through the system compiler.
8882 case $host_os in
8883 aix*)
8884 lt_prog_compiler_wl='-Wl,'
8885 if test "$host_cpu" = ia64; then
8886 # AIX 5 now supports IA64 processor
8887 lt_prog_compiler_static='-Bstatic'
8888 else
8889 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8890 fi
8891 ;;
8892
8893 mingw* | cygwin* | pw32* | os2* | cegcc*)
8894 # This hack is so that the source file can tell whether it is being
8895 # built for inclusion in a dll (and should export symbols for example).
8896 lt_prog_compiler_pic='-DDLL_EXPORT'
8897 ;;
8898
8899 hpux9* | hpux10* | hpux11*)
8900 lt_prog_compiler_wl='-Wl,'
8901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8902 # not for PA HP-UX.
8903 case $host_cpu in
8904 hppa*64*|ia64*)
8905 # +Z the default
8906 ;;
8907 *)
8908 lt_prog_compiler_pic='+Z'
8909 ;;
8910 esac
8911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8912 lt_prog_compiler_static='${wl}-a ${wl}archive'
8913 ;;
8914
8915 irix5* | irix6* | nonstopux*)
8916 lt_prog_compiler_wl='-Wl,'
8917 # PIC (with -KPIC) is the default.
8918 lt_prog_compiler_static='-non_shared'
8919 ;;
8920
8921 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8922 case $cc_basename in
8923 # old Intel for x86_64 which still supported -KPIC.
8924 ecc*)
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-static'
8928 ;;
8929 # icc used to be incompatible with GCC.
8930 # ICC 10 doesn't accept -KPIC any more.
8931 icc* | ifort*)
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-fPIC'
8934 lt_prog_compiler_static='-static'
8935 ;;
8936 # Lahey Fortran 8.1.
8937 lf95*)
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_pic='--shared'
8940 lt_prog_compiler_static='--static'
8941 ;;
8942 nagfor*)
8943 # NAG Fortran compiler
8944 lt_prog_compiler_wl='-Wl,-Wl,,'
8945 lt_prog_compiler_pic='-PIC'
8946 lt_prog_compiler_static='-Bstatic'
8947 ;;
8948 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8949 # Portland Group compilers (*not* the Pentium gcc compiler,
8950 # which looks to be a dead project)
8951 lt_prog_compiler_wl='-Wl,'
8952 lt_prog_compiler_pic='-fpic'
8953 lt_prog_compiler_static='-Bstatic'
8954 ;;
8955 ccc*)
8956 lt_prog_compiler_wl='-Wl,'
8957 # All Alpha code is PIC.
8958 lt_prog_compiler_static='-non_shared'
8959 ;;
8960 xl* | bgxl* | bgf* | mpixl*)
8961 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8962 lt_prog_compiler_wl='-Wl,'
8963 lt_prog_compiler_pic='-qpic'
8964 lt_prog_compiler_static='-qstaticlink'
8965 ;;
8966 *)
8967 case `$CC -V 2>&1 | sed 5q` in
8968 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8969 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8970 lt_prog_compiler_pic='-KPIC'
8971 lt_prog_compiler_static='-Bstatic'
8972 lt_prog_compiler_wl=''
8973 ;;
8974 *Sun\ F* | *Sun*Fortran*)
8975 lt_prog_compiler_pic='-KPIC'
8976 lt_prog_compiler_static='-Bstatic'
8977 lt_prog_compiler_wl='-Qoption ld '
8978 ;;
8979 *Sun\ C*)
8980 # Sun C 5.9
8981 lt_prog_compiler_pic='-KPIC'
8982 lt_prog_compiler_static='-Bstatic'
8983 lt_prog_compiler_wl='-Wl,'
8984 ;;
8985 *Intel*\ [CF]*Compiler*)
8986 lt_prog_compiler_wl='-Wl,'
8987 lt_prog_compiler_pic='-fPIC'
8988 lt_prog_compiler_static='-static'
8989 ;;
8990 *Portland\ Group*)
8991 lt_prog_compiler_wl='-Wl,'
8992 lt_prog_compiler_pic='-fpic'
8993 lt_prog_compiler_static='-Bstatic'
8994 ;;
8995 esac
8996 ;;
8997 esac
8998 ;;
8999
9000 newsos6)
9001 lt_prog_compiler_pic='-KPIC'
9002 lt_prog_compiler_static='-Bstatic'
9003 ;;
9004
9005 *nto* | *qnx*)
9006 # QNX uses GNU C++, but need to define -shared option too, otherwise
9007 # it will coredump.
9008 lt_prog_compiler_pic='-fPIC -shared'
9009 ;;
9010
9011 osf3* | osf4* | osf5*)
9012 lt_prog_compiler_wl='-Wl,'
9013 # All OSF/1 code is PIC.
9014 lt_prog_compiler_static='-non_shared'
9015 ;;
9016
9017 rdos*)
9018 lt_prog_compiler_static='-non_shared'
9019 ;;
9020
9021 solaris*)
9022 lt_prog_compiler_pic='-KPIC'
9023 lt_prog_compiler_static='-Bstatic'
9024 case $cc_basename in
9025 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9026 lt_prog_compiler_wl='-Qoption ld ';;
9027 *)
9028 lt_prog_compiler_wl='-Wl,';;
9029 esac
9030 ;;
9031
9032 sunos4*)
9033 lt_prog_compiler_wl='-Qoption ld '
9034 lt_prog_compiler_pic='-PIC'
9035 lt_prog_compiler_static='-Bstatic'
9036 ;;
9037
9038 sysv4 | sysv4.2uw2* | sysv4.3*)
9039 lt_prog_compiler_wl='-Wl,'
9040 lt_prog_compiler_pic='-KPIC'
9041 lt_prog_compiler_static='-Bstatic'
9042 ;;
9043
9044 sysv4*MP*)
9045 if test -d /usr/nec ;then
9046 lt_prog_compiler_pic='-Kconform_pic'
9047 lt_prog_compiler_static='-Bstatic'
9048 fi
9049 ;;
9050
9051 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9052 lt_prog_compiler_wl='-Wl,'
9053 lt_prog_compiler_pic='-KPIC'
9054 lt_prog_compiler_static='-Bstatic'
9055 ;;
9056
9057 unicos*)
9058 lt_prog_compiler_wl='-Wl,'
9059 lt_prog_compiler_can_build_shared=no
9060 ;;
9061
9062 uts4*)
9063 lt_prog_compiler_pic='-pic'
9064 lt_prog_compiler_static='-Bstatic'
9065 ;;
9066
9067 *)
9068 lt_prog_compiler_can_build_shared=no
9069 ;;
9070 esac
9071 fi
9072
9073 case $host_os in
9074 # For platforms which do not support PIC, -DPIC is meaningless:
9075 *djgpp*)
9076 lt_prog_compiler_pic=
9077 ;;
9078 *)
9079 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9080 ;;
9081 esac
9082
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9084 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9085 if ${lt_cv_prog_compiler_pic+:} false; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9089 fi
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9091 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9092 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9093
9094 #
9095 # Check to make sure the PIC flag actually works.
9096 #
9097 if test -n "$lt_prog_compiler_pic"; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9099 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9100 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 lt_cv_prog_compiler_pic_works=no
9104 ac_outfile=conftest.$ac_objext
9105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9106 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9107 # Insert the option either (1) after the last *FLAGS variable, or
9108 # (2) before a word containing "conftest.", or (3) at the end.
9109 # Note that $ac_compile itself does not contain backslashes and begins
9110 # with a dollar sign (not a hyphen), so the echo should work correctly.
9111 # The option is referenced via a variable to avoid confusing sed.
9112 lt_compile=`echo "$ac_compile" | $SED \
9113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9115 -e 's:$: $lt_compiler_flag:'`
9116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9117 (eval "$lt_compile" 2>conftest.err)
9118 ac_status=$?
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 if (exit $ac_status) && test -s "$ac_outfile"; then
9122 # The compiler can only warn and ignore the option if not recognized
9123 # So say no if there are warnings other than the usual output.
9124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9126 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9127 lt_cv_prog_compiler_pic_works=yes
9128 fi
9129 fi
9130 $RM conftest*
9131
9132 fi
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9134 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9135
9136 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9137 case $lt_prog_compiler_pic in
9138 "" | " "*) ;;
9139 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9140 esac
9141 else
9142 lt_prog_compiler_pic=
9143 lt_prog_compiler_can_build_shared=no
9144 fi
9145
9146 fi
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158 #
9159 # Check to make sure the static flag actually works.
9160 #
9161 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9163 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9164 if ${lt_cv_prog_compiler_static_works+:} false; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 lt_cv_prog_compiler_static_works=no
9168 save_LDFLAGS="$LDFLAGS"
9169 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9170 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9171 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9172 # The linker can only warn and ignore the option if not recognized
9173 # So say no if there are warnings
9174 if test -s conftest.err; then
9175 # Append any errors to the config.log.
9176 cat conftest.err 1>&5
9177 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9179 if diff conftest.exp conftest.er2 >/dev/null; then
9180 lt_cv_prog_compiler_static_works=yes
9181 fi
9182 else
9183 lt_cv_prog_compiler_static_works=yes
9184 fi
9185 fi
9186 $RM -r conftest*
9187 LDFLAGS="$save_LDFLAGS"
9188
9189 fi
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9191 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9192
9193 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9194 :
9195 else
9196 lt_prog_compiler_static=
9197 fi
9198
9199
9200
9201
9202
9203
9204
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9206 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9207 if ${lt_cv_prog_compiler_c_o+:} false; then :
9208 $as_echo_n "(cached) " >&6
9209 else
9210 lt_cv_prog_compiler_c_o=no
9211 $RM -r conftest 2>/dev/null
9212 mkdir conftest
9213 cd conftest
9214 mkdir out
9215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9216
9217 lt_compiler_flag="-o out/conftest2.$ac_objext"
9218 # Insert the option either (1) after the last *FLAGS variable, or
9219 # (2) before a word containing "conftest.", or (3) at the end.
9220 # Note that $ac_compile itself does not contain backslashes and begins
9221 # with a dollar sign (not a hyphen), so the echo should work correctly.
9222 lt_compile=`echo "$ac_compile" | $SED \
9223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9225 -e 's:$: $lt_compiler_flag:'`
9226 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9227 (eval "$lt_compile" 2>out/conftest.err)
9228 ac_status=$?
9229 cat out/conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9232 then
9233 # The compiler can only warn and ignore the option if not recognized
9234 # So say no if there are warnings
9235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9238 lt_cv_prog_compiler_c_o=yes
9239 fi
9240 fi
9241 chmod u+w . 2>&5
9242 $RM conftest*
9243 # SGI C++ compiler will create directory out/ii_files/ for
9244 # template instantiation
9245 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9246 $RM out/* && rmdir out
9247 cd ..
9248 $RM -r conftest
9249 $RM conftest*
9250
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9253 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9254
9255
9256
9257
9258
9259
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9261 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9262 if ${lt_cv_prog_compiler_c_o+:} false; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 lt_cv_prog_compiler_c_o=no
9266 $RM -r conftest 2>/dev/null
9267 mkdir conftest
9268 cd conftest
9269 mkdir out
9270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9271
9272 lt_compiler_flag="-o out/conftest2.$ac_objext"
9273 # Insert the option either (1) after the last *FLAGS variable, or
9274 # (2) before a word containing "conftest.", or (3) at the end.
9275 # Note that $ac_compile itself does not contain backslashes and begins
9276 # with a dollar sign (not a hyphen), so the echo should work correctly.
9277 lt_compile=`echo "$ac_compile" | $SED \
9278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9280 -e 's:$: $lt_compiler_flag:'`
9281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9282 (eval "$lt_compile" 2>out/conftest.err)
9283 ac_status=$?
9284 cat out/conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9287 then
9288 # The compiler can only warn and ignore the option if not recognized
9289 # So say no if there are warnings
9290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9293 lt_cv_prog_compiler_c_o=yes
9294 fi
9295 fi
9296 chmod u+w . 2>&5
9297 $RM conftest*
9298 # SGI C++ compiler will create directory out/ii_files/ for
9299 # template instantiation
9300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9301 $RM out/* && rmdir out
9302 cd ..
9303 $RM -r conftest
9304 $RM conftest*
9305
9306 fi
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9308 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9309
9310
9311
9312
9313 hard_links="nottested"
9314 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9315 # do not overwrite the value of need_locks provided by the user
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9317 $as_echo_n "checking if we can lock with hard links... " >&6; }
9318 hard_links=yes
9319 $RM conftest*
9320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9321 touch conftest.a
9322 ln conftest.a conftest.b 2>&5 || hard_links=no
9323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9325 $as_echo "$hard_links" >&6; }
9326 if test "$hard_links" = no; then
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9328 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9329 need_locks=warn
9330 fi
9331 else
9332 need_locks=no
9333 fi
9334
9335
9336
9337
9338
9339
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9341 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9342
9343 runpath_var=
9344 allow_undefined_flag=
9345 always_export_symbols=no
9346 archive_cmds=
9347 archive_expsym_cmds=
9348 compiler_needs_object=no
9349 enable_shared_with_static_runtimes=no
9350 export_dynamic_flag_spec=
9351 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9352 hardcode_automatic=no
9353 hardcode_direct=no
9354 hardcode_direct_absolute=no
9355 hardcode_libdir_flag_spec=
9356 hardcode_libdir_separator=
9357 hardcode_minus_L=no
9358 hardcode_shlibpath_var=unsupported
9359 inherit_rpath=no
9360 link_all_deplibs=unknown
9361 module_cmds=
9362 module_expsym_cmds=
9363 old_archive_from_new_cmds=
9364 old_archive_from_expsyms_cmds=
9365 thread_safe_flag_spec=
9366 whole_archive_flag_spec=
9367 # include_expsyms should be a list of space-separated symbols to be *always*
9368 # included in the symbol list
9369 include_expsyms=
9370 # exclude_expsyms can be an extended regexp of symbols to exclude
9371 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9372 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9373 # as well as any symbol that contains `d'.
9374 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9375 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9376 # platforms (ab)use it in PIC code, but their linkers get confused if
9377 # the symbol is explicitly referenced. Since portable code cannot
9378 # rely on this symbol name, it's probably fine to never include it in
9379 # preloaded symbol tables.
9380 # Exclude shared library initialization/finalization symbols.
9381 extract_expsyms_cmds=
9382
9383 case $host_os in
9384 cygwin* | mingw* | pw32* | cegcc*)
9385 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9386 # When not using gcc, we currently assume that we are using
9387 # Microsoft Visual C++.
9388 if test "$GCC" != yes; then
9389 with_gnu_ld=no
9390 fi
9391 ;;
9392 interix*)
9393 # we just hope/assume this is gcc and not c89 (= MSVC++)
9394 with_gnu_ld=yes
9395 ;;
9396 openbsd*)
9397 with_gnu_ld=no
9398 ;;
9399 esac
9400
9401 ld_shlibs=yes
9402
9403 # On some targets, GNU ld is compatible enough with the native linker
9404 # that we're better off using the native interface for both.
9405 lt_use_gnu_ld_interface=no
9406 if test "$with_gnu_ld" = yes; then
9407 case $host_os in
9408 aix*)
9409 # The AIX port of GNU ld has always aspired to compatibility
9410 # with the native linker. However, as the warning in the GNU ld
9411 # block says, versions before 2.19.5* couldn't really create working
9412 # shared libraries, regardless of the interface used.
9413 case `$LD -v 2>&1` in
9414 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9415 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9416 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9417 *)
9418 lt_use_gnu_ld_interface=yes
9419 ;;
9420 esac
9421 ;;
9422 *)
9423 lt_use_gnu_ld_interface=yes
9424 ;;
9425 esac
9426 fi
9427
9428 if test "$lt_use_gnu_ld_interface" = yes; then
9429 # If archive_cmds runs LD, not CC, wlarc should be empty
9430 wlarc='${wl}'
9431
9432 # Set some defaults for GNU ld with shared library support. These
9433 # are reset later if shared libraries are not supported. Putting them
9434 # here allows them to be overridden if necessary.
9435 runpath_var=LD_RUN_PATH
9436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9437 export_dynamic_flag_spec='${wl}--export-dynamic'
9438 # ancient GNU ld didn't support --whole-archive et. al.
9439 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9440 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9441 else
9442 whole_archive_flag_spec=
9443 fi
9444 supports_anon_versioning=no
9445 case `$LD -v 2>&1` in
9446 *GNU\ gold*) supports_anon_versioning=yes ;;
9447 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9448 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9449 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9450 *\ 2.11.*) ;; # other 2.11 versions
9451 *) supports_anon_versioning=yes ;;
9452 esac
9453
9454 # See if GNU ld supports shared libraries.
9455 case $host_os in
9456 aix[3-9]*)
9457 # On AIX/PPC, the GNU linker is very broken
9458 if test "$host_cpu" != ia64; then
9459 ld_shlibs=no
9460 cat <<_LT_EOF 1>&2
9461
9462 *** Warning: the GNU linker, at least up to release 2.19, is reported
9463 *** to be unable to reliably create shared libraries on AIX.
9464 *** Therefore, libtool is disabling shared libraries support. If you
9465 *** really care for shared libraries, you may want to install binutils
9466 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9467 *** You will then need to restart the configuration process.
9468
9469 _LT_EOF
9470 fi
9471 ;;
9472
9473 amigaos*)
9474 case $host_cpu in
9475 powerpc)
9476 # see comment about AmigaOS4 .so support
9477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478 archive_expsym_cmds=''
9479 ;;
9480 m68k)
9481 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)'
9482 hardcode_libdir_flag_spec='-L$libdir'
9483 hardcode_minus_L=yes
9484 ;;
9485 esac
9486 ;;
9487
9488 beos*)
9489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9490 allow_undefined_flag=unsupported
9491 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9492 # support --undefined. This deserves some investigation. FIXME
9493 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9494 else
9495 ld_shlibs=no
9496 fi
9497 ;;
9498
9499 cygwin* | mingw* | pw32* | cegcc*)
9500 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9501 # as there is no search path for DLLs.
9502 hardcode_libdir_flag_spec='-L$libdir'
9503 export_dynamic_flag_spec='${wl}--export-all-symbols'
9504 allow_undefined_flag=unsupported
9505 always_export_symbols=no
9506 enable_shared_with_static_runtimes=yes
9507 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'
9508 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9509
9510 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9512 # If the export-symbols file already is a .def file (1st line
9513 # is EXPORTS), use it as is; otherwise, prepend...
9514 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9515 cp $export_symbols $output_objdir/$soname.def;
9516 else
9517 echo EXPORTS > $output_objdir/$soname.def;
9518 cat $export_symbols >> $output_objdir/$soname.def;
9519 fi~
9520 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9521 else
9522 ld_shlibs=no
9523 fi
9524 ;;
9525
9526 haiku*)
9527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9528 link_all_deplibs=yes
9529 ;;
9530
9531 interix[3-9]*)
9532 hardcode_direct=no
9533 hardcode_shlibpath_var=no
9534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9535 export_dynamic_flag_spec='${wl}-E'
9536 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9537 # Instead, shared libraries are loaded at an image base (0x10000000 by
9538 # default) and relocated if they conflict, which is a slow very memory
9539 # consuming and fragmenting process. To avoid this, we pick a random,
9540 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9541 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9542 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9543 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'
9544 ;;
9545
9546 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9547 tmp_diet=no
9548 if test "$host_os" = linux-dietlibc; then
9549 case $cc_basename in
9550 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9551 esac
9552 fi
9553 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9554 && test "$tmp_diet" = no
9555 then
9556 tmp_addflag=' $pic_flag'
9557 tmp_sharedflag='-shared'
9558 case $cc_basename,$host_cpu in
9559 pgcc*) # Portland Group C compiler
9560 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'
9561 tmp_addflag=' $pic_flag'
9562 ;;
9563 pgf77* | pgf90* | pgf95* | pgfortran*)
9564 # Portland Group f77 and f90 compilers
9565 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'
9566 tmp_addflag=' $pic_flag -Mnomain' ;;
9567 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9568 tmp_addflag=' -i_dynamic' ;;
9569 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9570 tmp_addflag=' -i_dynamic -nofor_main' ;;
9571 ifc* | ifort*) # Intel Fortran compiler
9572 tmp_addflag=' -nofor_main' ;;
9573 lf95*) # Lahey Fortran 8.1
9574 whole_archive_flag_spec=
9575 tmp_sharedflag='--shared' ;;
9576 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9577 tmp_sharedflag='-qmkshrobj'
9578 tmp_addflag= ;;
9579 nvcc*) # Cuda Compiler Driver 2.2
9580 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'
9581 compiler_needs_object=yes
9582 ;;
9583 esac
9584 case `$CC -V 2>&1 | sed 5q` in
9585 *Sun\ C*) # Sun C 5.9
9586 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'
9587 compiler_needs_object=yes
9588 tmp_sharedflag='-G' ;;
9589 *Sun\ F*) # Sun Fortran 8.3
9590 tmp_sharedflag='-G' ;;
9591 esac
9592 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9593
9594 if test "x$supports_anon_versioning" = xyes; then
9595 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9596 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9597 echo "local: *; };" >> $output_objdir/$libname.ver~
9598 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9599 fi
9600
9601 case $cc_basename in
9602 xlf* | bgf* | bgxlf* | mpixlf*)
9603 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9604 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9607 if test "x$supports_anon_versioning" = xyes; then
9608 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9609 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9610 echo "local: *; };" >> $output_objdir/$libname.ver~
9611 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9612 fi
9613 ;;
9614 esac
9615 else
9616 ld_shlibs=no
9617 fi
9618 ;;
9619
9620 netbsd*)
9621 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9622 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9623 wlarc=
9624 else
9625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9627 fi
9628 ;;
9629
9630 solaris*)
9631 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9632 ld_shlibs=no
9633 cat <<_LT_EOF 1>&2
9634
9635 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9636 *** create shared libraries on Solaris systems. Therefore, libtool
9637 *** is disabling shared libraries support. We urge you to upgrade GNU
9638 *** binutils to release 2.9.1 or newer. Another option is to modify
9639 *** your PATH or compiler configuration so that the native linker is
9640 *** used, and then restart.
9641
9642 _LT_EOF
9643 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9644 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9645 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9646 else
9647 ld_shlibs=no
9648 fi
9649 ;;
9650
9651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9652 case `$LD -v 2>&1` in
9653 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9654 ld_shlibs=no
9655 cat <<_LT_EOF 1>&2
9656
9657 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9658 *** reliably create shared libraries on SCO systems. Therefore, libtool
9659 *** is disabling shared libraries support. We urge you to upgrade GNU
9660 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9661 *** your PATH or compiler configuration so that the native linker is
9662 *** used, and then restart.
9663
9664 _LT_EOF
9665 ;;
9666 *)
9667 # For security reasons, it is highly recommended that you always
9668 # use absolute paths for naming shared libraries, and exclude the
9669 # DT_RUNPATH tag from executables and libraries. But doing so
9670 # requires that you compile everything twice, which is a pain.
9671 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9674 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9675 else
9676 ld_shlibs=no
9677 fi
9678 ;;
9679 esac
9680 ;;
9681
9682 sunos4*)
9683 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9684 wlarc=
9685 hardcode_direct=yes
9686 hardcode_shlibpath_var=no
9687 ;;
9688
9689 *)
9690 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9691 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9692 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9693 else
9694 ld_shlibs=no
9695 fi
9696 ;;
9697 esac
9698
9699 if test "$ld_shlibs" = no; then
9700 runpath_var=
9701 hardcode_libdir_flag_spec=
9702 export_dynamic_flag_spec=
9703 whole_archive_flag_spec=
9704 fi
9705 else
9706 # PORTME fill in a description of your system's linker (not GNU ld)
9707 case $host_os in
9708 aix3*)
9709 allow_undefined_flag=unsupported
9710 always_export_symbols=yes
9711 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'
9712 # Note: this linker hardcodes the directories in LIBPATH if there
9713 # are no directories specified by -L.
9714 hardcode_minus_L=yes
9715 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9716 # Neither direct hardcoding nor static linking is supported with a
9717 # broken collect2.
9718 hardcode_direct=unsupported
9719 fi
9720 ;;
9721
9722 aix[4-9]*)
9723 if test "$host_cpu" = ia64; then
9724 # On IA64, the linker does run time linking by default, so we don't
9725 # have to do anything special.
9726 aix_use_runtimelinking=no
9727 exp_sym_flag='-Bexport'
9728 no_entry_flag=""
9729 else
9730 # If we're using GNU nm, then we don't want the "-C" option.
9731 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9732 # Also, AIX nm treats weak defined symbols like other global
9733 # defined symbols, whereas GNU nm marks them as "W".
9734 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9735 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9736 else
9737 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9738 fi
9739 aix_use_runtimelinking=no
9740
9741 # Test if we are trying to use run time linking or normal
9742 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9743 # need to do runtime linking.
9744 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9745 for ld_flag in $LDFLAGS; do
9746 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9747 aix_use_runtimelinking=yes
9748 break
9749 fi
9750 done
9751 ;;
9752 esac
9753
9754 exp_sym_flag='-bexport'
9755 no_entry_flag='-bnoentry'
9756 fi
9757
9758 # When large executables or shared objects are built, AIX ld can
9759 # have problems creating the table of contents. If linking a library
9760 # or program results in "error TOC overflow" add -mminimal-toc to
9761 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9762 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9763
9764 archive_cmds=''
9765 hardcode_direct=yes
9766 hardcode_direct_absolute=yes
9767 hardcode_libdir_separator=':'
9768 link_all_deplibs=yes
9769 file_list_spec='${wl}-f,'
9770
9771 if test "$GCC" = yes; then
9772 case $host_os in aix4.[012]|aix4.[012].*)
9773 # We only want to do this on AIX 4.2 and lower, the check
9774 # below for broken collect2 doesn't work under 4.3+
9775 collect2name=`${CC} -print-prog-name=collect2`
9776 if test -f "$collect2name" &&
9777 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9778 then
9779 # We have reworked collect2
9780 :
9781 else
9782 # We have old collect2
9783 hardcode_direct=unsupported
9784 # It fails to find uninstalled libraries when the uninstalled
9785 # path is not listed in the libpath. Setting hardcode_minus_L
9786 # to unsupported forces relinking
9787 hardcode_minus_L=yes
9788 hardcode_libdir_flag_spec='-L$libdir'
9789 hardcode_libdir_separator=
9790 fi
9791 ;;
9792 esac
9793 shared_flag='-shared'
9794 if test "$aix_use_runtimelinking" = yes; then
9795 shared_flag="$shared_flag "'${wl}-G'
9796 fi
9797 else
9798 # not using gcc
9799 if test "$host_cpu" = ia64; then
9800 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9801 # chokes on -Wl,-G. The following line is correct:
9802 shared_flag='-G'
9803 else
9804 if test "$aix_use_runtimelinking" = yes; then
9805 shared_flag='${wl}-G'
9806 else
9807 shared_flag='${wl}-bM:SRE'
9808 fi
9809 fi
9810 fi
9811
9812 export_dynamic_flag_spec='${wl}-bexpall'
9813 # It seems that -bexpall does not export symbols beginning with
9814 # underscore (_), so it is better to generate a list of symbols to export.
9815 always_export_symbols=yes
9816 if test "$aix_use_runtimelinking" = yes; then
9817 # Warning - without using the other runtime loading flags (-brtl),
9818 # -berok will link without error, but may produce a broken library.
9819 allow_undefined_flag='-berok'
9820 # Determine the default libpath from the value encoded in an
9821 # empty executable.
9822 if test "${lt_cv_aix_libpath+set}" = set; then
9823 aix_libpath=$lt_cv_aix_libpath
9824 else
9825 if ${lt_cv_aix_libpath_+:} false; then :
9826 $as_echo_n "(cached) " >&6
9827 else
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9830
9831 int
9832 main ()
9833 {
9834
9835 ;
9836 return 0;
9837 }
9838 _ACEOF
9839 if ac_fn_c_try_link "$LINENO"; then :
9840
9841 lt_aix_libpath_sed='
9842 /Import File Strings/,/^$/ {
9843 /^0/ {
9844 s/^0 *\([^ ]*\) *$/\1/
9845 p
9846 }
9847 }'
9848 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9849 # Check for a 64-bit object if we didn't find anything.
9850 if test -z "$lt_cv_aix_libpath_"; then
9851 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9852 fi
9853 fi
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 if test -z "$lt_cv_aix_libpath_"; then
9857 lt_cv_aix_libpath_="/usr/lib:/lib"
9858 fi
9859
9860 fi
9861
9862 aix_libpath=$lt_cv_aix_libpath_
9863 fi
9864
9865 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9866 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9867 else
9868 if test "$host_cpu" = ia64; then
9869 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9870 allow_undefined_flag="-z nodefs"
9871 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"
9872 else
9873 # Determine the default libpath from the value encoded in an
9874 # empty executable.
9875 if test "${lt_cv_aix_libpath+set}" = set; then
9876 aix_libpath=$lt_cv_aix_libpath
9877 else
9878 if ${lt_cv_aix_libpath_+:} false; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9883
9884 int
9885 main ()
9886 {
9887
9888 ;
9889 return 0;
9890 }
9891 _ACEOF
9892 if ac_fn_c_try_link "$LINENO"; then :
9893
9894 lt_aix_libpath_sed='
9895 /Import File Strings/,/^$/ {
9896 /^0/ {
9897 s/^0 *\([^ ]*\) *$/\1/
9898 p
9899 }
9900 }'
9901 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9902 # Check for a 64-bit object if we didn't find anything.
9903 if test -z "$lt_cv_aix_libpath_"; then
9904 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9905 fi
9906 fi
9907 rm -f core conftest.err conftest.$ac_objext \
9908 conftest$ac_exeext conftest.$ac_ext
9909 if test -z "$lt_cv_aix_libpath_"; then
9910 lt_cv_aix_libpath_="/usr/lib:/lib"
9911 fi
9912
9913 fi
9914
9915 aix_libpath=$lt_cv_aix_libpath_
9916 fi
9917
9918 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9919 # Warning - without using the other run time loading flags,
9920 # -berok will link without error, but may produce a broken library.
9921 no_undefined_flag=' ${wl}-bernotok'
9922 allow_undefined_flag=' ${wl}-berok'
9923 if test "$with_gnu_ld" = yes; then
9924 # We only use this code for GNU lds that support --whole-archive.
9925 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9926 else
9927 # Exported symbols can be pulled into shared objects from archives
9928 whole_archive_flag_spec='$convenience'
9929 fi
9930 archive_cmds_need_lc=yes
9931 # This is similar to how AIX traditionally builds its shared libraries.
9932 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9933 fi
9934 fi
9935 ;;
9936
9937 amigaos*)
9938 case $host_cpu in
9939 powerpc)
9940 # see comment about AmigaOS4 .so support
9941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9942 archive_expsym_cmds=''
9943 ;;
9944 m68k)
9945 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)'
9946 hardcode_libdir_flag_spec='-L$libdir'
9947 hardcode_minus_L=yes
9948 ;;
9949 esac
9950 ;;
9951
9952 bsdi[45]*)
9953 export_dynamic_flag_spec=-rdynamic
9954 ;;
9955
9956 cygwin* | mingw* | pw32* | cegcc*)
9957 # When not using gcc, we currently assume that we are using
9958 # Microsoft Visual C++.
9959 # hardcode_libdir_flag_spec is actually meaningless, as there is
9960 # no search path for DLLs.
9961 case $cc_basename in
9962 cl*)
9963 # Native MSVC
9964 hardcode_libdir_flag_spec=' '
9965 allow_undefined_flag=unsupported
9966 always_export_symbols=yes
9967 file_list_spec='@'
9968 # Tell ltmain to make .lib files, not .a files.
9969 libext=lib
9970 # Tell ltmain to make .dll files, not .so files.
9971 shrext_cmds=".dll"
9972 # FIXME: Setting linknames here is a bad hack.
9973 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9974 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9975 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9976 else
9977 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9978 fi~
9979 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9980 linknames='
9981 # The linker will not automatically build a static lib if we build a DLL.
9982 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9983 enable_shared_with_static_runtimes=yes
9984 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9985 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9986 # Don't use ranlib
9987 old_postinstall_cmds='chmod 644 $oldlib'
9988 postlink_cmds='lt_outputfile="@OUTPUT@"~
9989 lt_tool_outputfile="@TOOL_OUTPUT@"~
9990 case $lt_outputfile in
9991 *.exe|*.EXE) ;;
9992 *)
9993 lt_outputfile="$lt_outputfile.exe"
9994 lt_tool_outputfile="$lt_tool_outputfile.exe"
9995 ;;
9996 esac~
9997 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9998 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9999 $RM "$lt_outputfile.manifest";
10000 fi'
10001 ;;
10002 *)
10003 # Assume MSVC wrapper
10004 hardcode_libdir_flag_spec=' '
10005 allow_undefined_flag=unsupported
10006 # Tell ltmain to make .lib files, not .a files.
10007 libext=lib
10008 # Tell ltmain to make .dll files, not .so files.
10009 shrext_cmds=".dll"
10010 # FIXME: Setting linknames here is a bad hack.
10011 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10012 # The linker will automatically build a .lib file if we build a DLL.
10013 old_archive_from_new_cmds='true'
10014 # FIXME: Should let the user specify the lib program.
10015 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10016 enable_shared_with_static_runtimes=yes
10017 ;;
10018 esac
10019 ;;
10020
10021 darwin* | rhapsody*)
10022
10023
10024 archive_cmds_need_lc=no
10025 hardcode_direct=no
10026 hardcode_automatic=yes
10027 hardcode_shlibpath_var=unsupported
10028 if test "$lt_cv_ld_force_load" = "yes"; then
10029 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\"`'
10030
10031 else
10032 whole_archive_flag_spec=''
10033 fi
10034 link_all_deplibs=yes
10035 allow_undefined_flag="$_lt_dar_allow_undefined"
10036 case $cc_basename in
10037 ifort*) _lt_dar_can_shared=yes ;;
10038 *) _lt_dar_can_shared=$GCC ;;
10039 esac
10040 if test "$_lt_dar_can_shared" = "yes"; then
10041 output_verbose_link_cmd=func_echo_all
10042 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10043 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10044 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}"
10045 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}"
10046
10047 else
10048 ld_shlibs=no
10049 fi
10050
10051 ;;
10052
10053 dgux*)
10054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055 hardcode_libdir_flag_spec='-L$libdir'
10056 hardcode_shlibpath_var=no
10057 ;;
10058
10059 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10060 # support. Future versions do this automatically, but an explicit c++rt0.o
10061 # does not break anything, and helps significantly (at the cost of a little
10062 # extra space).
10063 freebsd2.2*)
10064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10065 hardcode_libdir_flag_spec='-R$libdir'
10066 hardcode_direct=yes
10067 hardcode_shlibpath_var=no
10068 ;;
10069
10070 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10071 freebsd2.*)
10072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10073 hardcode_direct=yes
10074 hardcode_minus_L=yes
10075 hardcode_shlibpath_var=no
10076 ;;
10077
10078 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10079 freebsd* | dragonfly*)
10080 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10081 hardcode_libdir_flag_spec='-R$libdir'
10082 hardcode_direct=yes
10083 hardcode_shlibpath_var=no
10084 ;;
10085
10086 hpux9*)
10087 if test "$GCC" = yes; then
10088 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10089 else
10090 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10091 fi
10092 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10093 hardcode_libdir_separator=:
10094 hardcode_direct=yes
10095
10096 # hardcode_minus_L: Not really in the search PATH,
10097 # but as the default location of the library.
10098 hardcode_minus_L=yes
10099 export_dynamic_flag_spec='${wl}-E'
10100 ;;
10101
10102 hpux10*)
10103 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10104 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10105 else
10106 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10107 fi
10108 if test "$with_gnu_ld" = no; then
10109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10110 hardcode_libdir_separator=:
10111 hardcode_direct=yes
10112 hardcode_direct_absolute=yes
10113 export_dynamic_flag_spec='${wl}-E'
10114 # hardcode_minus_L: Not really in the search PATH,
10115 # but as the default location of the library.
10116 hardcode_minus_L=yes
10117 fi
10118 ;;
10119
10120 hpux11*)
10121 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10122 case $host_cpu in
10123 hppa*64*)
10124 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 ;;
10126 ia64*)
10127 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10128 ;;
10129 *)
10130 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10131 ;;
10132 esac
10133 else
10134 case $host_cpu in
10135 hppa*64*)
10136 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10137 ;;
10138 ia64*)
10139 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10140 ;;
10141 *)
10142
10143 # Older versions of the 11.00 compiler do not understand -b yet
10144 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10146 $as_echo_n "checking if $CC understands -b... " >&6; }
10147 if ${lt_cv_prog_compiler__b+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 lt_cv_prog_compiler__b=no
10151 save_LDFLAGS="$LDFLAGS"
10152 LDFLAGS="$LDFLAGS -b"
10153 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10154 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10155 # The linker can only warn and ignore the option if not recognized
10156 # So say no if there are warnings
10157 if test -s conftest.err; then
10158 # Append any errors to the config.log.
10159 cat conftest.err 1>&5
10160 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10162 if diff conftest.exp conftest.er2 >/dev/null; then
10163 lt_cv_prog_compiler__b=yes
10164 fi
10165 else
10166 lt_cv_prog_compiler__b=yes
10167 fi
10168 fi
10169 $RM -r conftest*
10170 LDFLAGS="$save_LDFLAGS"
10171
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10174 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10175
10176 if test x"$lt_cv_prog_compiler__b" = xyes; then
10177 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10178 else
10179 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10180 fi
10181
10182 ;;
10183 esac
10184 fi
10185 if test "$with_gnu_ld" = no; then
10186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10187 hardcode_libdir_separator=:
10188
10189 case $host_cpu in
10190 hppa*64*|ia64*)
10191 hardcode_direct=no
10192 hardcode_shlibpath_var=no
10193 ;;
10194 *)
10195 hardcode_direct=yes
10196 hardcode_direct_absolute=yes
10197 export_dynamic_flag_spec='${wl}-E'
10198
10199 # hardcode_minus_L: Not really in the search PATH,
10200 # but as the default location of the library.
10201 hardcode_minus_L=yes
10202 ;;
10203 esac
10204 fi
10205 ;;
10206
10207 irix5* | irix6* | nonstopux*)
10208 if test "$GCC" = yes; then
10209 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'
10210 # Try to use the -exported_symbol ld option, if it does not
10211 # work, assume that -exports_file does not work either and
10212 # implicitly export all symbols.
10213 # This should be the same for all languages, so no per-tag cache variable.
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10215 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10216 if ${lt_cv_irix_exported_symbol+:} false; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 save_LDFLAGS="$LDFLAGS"
10220 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10223 int foo (void) { return 0; }
10224 _ACEOF
10225 if ac_fn_c_try_link "$LINENO"; then :
10226 lt_cv_irix_exported_symbol=yes
10227 else
10228 lt_cv_irix_exported_symbol=no
10229 fi
10230 rm -f core conftest.err conftest.$ac_objext \
10231 conftest$ac_exeext conftest.$ac_ext
10232 LDFLAGS="$save_LDFLAGS"
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10235 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10236 if test "$lt_cv_irix_exported_symbol" = yes; then
10237 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'
10238 fi
10239 else
10240 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'
10241 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'
10242 fi
10243 archive_cmds_need_lc='no'
10244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10245 hardcode_libdir_separator=:
10246 inherit_rpath=yes
10247 link_all_deplibs=yes
10248 ;;
10249
10250 netbsd*)
10251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10253 else
10254 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10255 fi
10256 hardcode_libdir_flag_spec='-R$libdir'
10257 hardcode_direct=yes
10258 hardcode_shlibpath_var=no
10259 ;;
10260
10261 newsos6)
10262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10263 hardcode_direct=yes
10264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10265 hardcode_libdir_separator=:
10266 hardcode_shlibpath_var=no
10267 ;;
10268
10269 *nto* | *qnx*)
10270 ;;
10271
10272 openbsd*)
10273 if test -f /usr/libexec/ld.so; then
10274 hardcode_direct=yes
10275 hardcode_shlibpath_var=no
10276 hardcode_direct_absolute=yes
10277 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10279 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10280 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10281 export_dynamic_flag_spec='${wl}-E'
10282 else
10283 case $host_os in
10284 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10285 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_libdir_flag_spec='-R$libdir'
10287 ;;
10288 *)
10289 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10290 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10291 ;;
10292 esac
10293 fi
10294 else
10295 ld_shlibs=no
10296 fi
10297 ;;
10298
10299 os2*)
10300 hardcode_libdir_flag_spec='-L$libdir'
10301 hardcode_minus_L=yes
10302 allow_undefined_flag=unsupported
10303 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10304 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10305 ;;
10306
10307 osf3*)
10308 if test "$GCC" = yes; then
10309 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10310 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'
10311 else
10312 allow_undefined_flag=' -expect_unresolved \*'
10313 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'
10314 fi
10315 archive_cmds_need_lc='no'
10316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10317 hardcode_libdir_separator=:
10318 ;;
10319
10320 osf4* | osf5*) # as osf3* with the addition of -msym flag
10321 if test "$GCC" = yes; then
10322 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10323 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'
10324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10325 else
10326 allow_undefined_flag=' -expect_unresolved \*'
10327 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'
10328 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~
10329 $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'
10330
10331 # Both c and cxx compiler support -rpath directly
10332 hardcode_libdir_flag_spec='-rpath $libdir'
10333 fi
10334 archive_cmds_need_lc='no'
10335 hardcode_libdir_separator=:
10336 ;;
10337
10338 solaris*)
10339 no_undefined_flag=' -z defs'
10340 if test "$GCC" = yes; then
10341 wlarc='${wl}'
10342 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10343 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10344 $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'
10345 else
10346 case `$CC -V 2>&1` in
10347 *"Compilers 5.0"*)
10348 wlarc=''
10349 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10351 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10352 ;;
10353 *)
10354 wlarc='${wl}'
10355 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10356 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10357 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10358 ;;
10359 esac
10360 fi
10361 hardcode_libdir_flag_spec='-R$libdir'
10362 hardcode_shlibpath_var=no
10363 case $host_os in
10364 solaris2.[0-5] | solaris2.[0-5].*) ;;
10365 *)
10366 # The compiler driver will combine and reorder linker options,
10367 # but understands `-z linker_flag'. GCC discards it without `$wl',
10368 # but is careful enough not to reorder.
10369 # Supported since Solaris 2.6 (maybe 2.5.1?)
10370 if test "$GCC" = yes; then
10371 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10372 else
10373 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10374 fi
10375 ;;
10376 esac
10377 link_all_deplibs=yes
10378 ;;
10379
10380 sunos4*)
10381 if test "x$host_vendor" = xsequent; then
10382 # Use $CC to link under sequent, because it throws in some extra .o
10383 # files that make .init and .fini sections work.
10384 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10385 else
10386 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10387 fi
10388 hardcode_libdir_flag_spec='-L$libdir'
10389 hardcode_direct=yes
10390 hardcode_minus_L=yes
10391 hardcode_shlibpath_var=no
10392 ;;
10393
10394 sysv4)
10395 case $host_vendor in
10396 sni)
10397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10398 hardcode_direct=yes # is this really true???
10399 ;;
10400 siemens)
10401 ## LD is ld it makes a PLAMLIB
10402 ## CC just makes a GrossModule.
10403 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10404 reload_cmds='$CC -r -o $output$reload_objs'
10405 hardcode_direct=no
10406 ;;
10407 motorola)
10408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10409 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10410 ;;
10411 esac
10412 runpath_var='LD_RUN_PATH'
10413 hardcode_shlibpath_var=no
10414 ;;
10415
10416 sysv4.3*)
10417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10418 hardcode_shlibpath_var=no
10419 export_dynamic_flag_spec='-Bexport'
10420 ;;
10421
10422 sysv4*MP*)
10423 if test -d /usr/nec; then
10424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10425 hardcode_shlibpath_var=no
10426 runpath_var=LD_RUN_PATH
10427 hardcode_runpath_var=yes
10428 ld_shlibs=yes
10429 fi
10430 ;;
10431
10432 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10433 no_undefined_flag='${wl}-z,text'
10434 archive_cmds_need_lc=no
10435 hardcode_shlibpath_var=no
10436 runpath_var='LD_RUN_PATH'
10437
10438 if test "$GCC" = yes; then
10439 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10440 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10441 else
10442 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10444 fi
10445 ;;
10446
10447 sysv5* | sco3.2v5* | sco5v6*)
10448 # Note: We can NOT use -z defs as we might desire, because we do not
10449 # link with -lc, and that would cause any symbols used from libc to
10450 # always be unresolved, which means just about no library would
10451 # ever link correctly. If we're not using GNU ld we use -z text
10452 # though, which does catch some bad symbols but isn't as heavy-handed
10453 # as -z defs.
10454 no_undefined_flag='${wl}-z,text'
10455 allow_undefined_flag='${wl}-z,nodefs'
10456 archive_cmds_need_lc=no
10457 hardcode_shlibpath_var=no
10458 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10459 hardcode_libdir_separator=':'
10460 link_all_deplibs=yes
10461 export_dynamic_flag_spec='${wl}-Bexport'
10462 runpath_var='LD_RUN_PATH'
10463
10464 if test "$GCC" = yes; then
10465 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10466 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10467 else
10468 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10469 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10470 fi
10471 ;;
10472
10473 uts4*)
10474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10475 hardcode_libdir_flag_spec='-L$libdir'
10476 hardcode_shlibpath_var=no
10477 ;;
10478
10479 *)
10480 ld_shlibs=no
10481 ;;
10482 esac
10483
10484 if test x$host_vendor = xsni; then
10485 case $host in
10486 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10487 export_dynamic_flag_spec='${wl}-Blargedynsym'
10488 ;;
10489 esac
10490 fi
10491 fi
10492
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10494 $as_echo "$ld_shlibs" >&6; }
10495 test "$ld_shlibs" = no && can_build_shared=no
10496
10497 with_gnu_ld=$with_gnu_ld
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513 #
10514 # Do we need to explicitly link libc?
10515 #
10516 case "x$archive_cmds_need_lc" in
10517 x|xyes)
10518 # Assume -lc should be added
10519 archive_cmds_need_lc=yes
10520
10521 if test "$enable_shared" = yes && test "$GCC" = yes; then
10522 case $archive_cmds in
10523 *'~'*)
10524 # FIXME: we may have to deal with multi-command sequences.
10525 ;;
10526 '$CC '*)
10527 # Test whether the compiler implicitly links with -lc since on some
10528 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10529 # to ld, don't add -lc before -lgcc.
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10531 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10532 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10533 $as_echo_n "(cached) " >&6
10534 else
10535 $RM conftest*
10536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10537
10538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10539 (eval $ac_compile) 2>&5
10540 ac_status=$?
10541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10542 test $ac_status = 0; } 2>conftest.err; then
10543 soname=conftest
10544 lib=conftest
10545 libobjs=conftest.$ac_objext
10546 deplibs=
10547 wl=$lt_prog_compiler_wl
10548 pic_flag=$lt_prog_compiler_pic
10549 compiler_flags=-v
10550 linker_flags=-v
10551 verstring=
10552 output_objdir=.
10553 libname=conftest
10554 lt_save_allow_undefined_flag=$allow_undefined_flag
10555 allow_undefined_flag=
10556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10557 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10558 ac_status=$?
10559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10560 test $ac_status = 0; }
10561 then
10562 lt_cv_archive_cmds_need_lc=no
10563 else
10564 lt_cv_archive_cmds_need_lc=yes
10565 fi
10566 allow_undefined_flag=$lt_save_allow_undefined_flag
10567 else
10568 cat conftest.err 1>&5
10569 fi
10570 $RM conftest*
10571
10572 fi
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10574 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10575 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10576 ;;
10577 esac
10578 fi
10579 ;;
10580 esac
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10734 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10735
10736 if test "$GCC" = yes; then
10737 case $host_os in
10738 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10739 *) lt_awk_arg="/^libraries:/" ;;
10740 esac
10741 case $host_os in
10742 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10743 *) lt_sed_strip_eq="s,=/,/,g" ;;
10744 esac
10745 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10746 case $lt_search_path_spec in
10747 *\;*)
10748 # if the path contains ";" then we assume it to be the separator
10749 # otherwise default to the standard path separator (i.e. ":") - it is
10750 # assumed that no part of a normal pathname contains ";" but that should
10751 # okay in the real world where ";" in dirpaths is itself problematic.
10752 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10753 ;;
10754 *)
10755 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10756 ;;
10757 esac
10758 # Ok, now we have the path, separated by spaces, we can step through it
10759 # and add multilib dir if necessary.
10760 lt_tmp_lt_search_path_spec=
10761 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10762 for lt_sys_path in $lt_search_path_spec; do
10763 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10764 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10765 else
10766 test -d "$lt_sys_path" && \
10767 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10768 fi
10769 done
10770 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10771 BEGIN {RS=" "; FS="/|\n";} {
10772 lt_foo="";
10773 lt_count=0;
10774 for (lt_i = NF; lt_i > 0; lt_i--) {
10775 if ($lt_i != "" && $lt_i != ".") {
10776 if ($lt_i == "..") {
10777 lt_count++;
10778 } else {
10779 if (lt_count == 0) {
10780 lt_foo="/" $lt_i lt_foo;
10781 } else {
10782 lt_count--;
10783 }
10784 }
10785 }
10786 }
10787 if (lt_foo != "") { lt_freq[lt_foo]++; }
10788 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10789 }'`
10790 # AWK program above erroneously prepends '/' to C:/dos/paths
10791 # for these hosts.
10792 case $host_os in
10793 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10794 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10795 esac
10796 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10797 else
10798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10799 fi
10800 library_names_spec=
10801 libname_spec='lib$name'
10802 soname_spec=
10803 shrext_cmds=".so"
10804 postinstall_cmds=
10805 postuninstall_cmds=
10806 finish_cmds=
10807 finish_eval=
10808 shlibpath_var=
10809 shlibpath_overrides_runpath=unknown
10810 version_type=none
10811 dynamic_linker="$host_os ld.so"
10812 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10813 need_lib_prefix=unknown
10814 hardcode_into_libs=no
10815
10816 # when you set need_version to no, make sure it does not cause -set_version
10817 # flags to be left without arguments
10818 need_version=unknown
10819
10820 case $host_os in
10821 aix3*)
10822 version_type=linux # correct to gnu/linux during the next big refactor
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10824 shlibpath_var=LIBPATH
10825
10826 # AIX 3 has no versioning support, so we append a major version to the name.
10827 soname_spec='${libname}${release}${shared_ext}$major'
10828 ;;
10829
10830 aix[4-9]*)
10831 version_type=linux # correct to gnu/linux during the next big refactor
10832 need_lib_prefix=no
10833 need_version=no
10834 hardcode_into_libs=yes
10835 if test "$host_cpu" = ia64; then
10836 # AIX 5 supports IA64
10837 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 else
10840 # With GCC up to 2.95.x, collect2 would create an import file
10841 # for dependence libraries. The import file would start with
10842 # the line `#! .'. This would cause the generated library to
10843 # depend on `.', always an invalid library. This was fixed in
10844 # development snapshots of GCC prior to 3.0.
10845 case $host_os in
10846 aix4 | aix4.[01] | aix4.[01].*)
10847 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10848 echo ' yes '
10849 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10850 :
10851 else
10852 can_build_shared=no
10853 fi
10854 ;;
10855 esac
10856 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10857 # soname into executable. Probably we can add versioning support to
10858 # collect2, so additional links can be useful in future.
10859 if test "$aix_use_runtimelinking" = yes; then
10860 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10861 # instead of lib<name>.a to let people know that these are not
10862 # typical AIX shared libraries.
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 else
10865 # We preserve .a as extension for shared libraries through AIX4.2
10866 # and later when we are not doing run time linking.
10867 library_names_spec='${libname}${release}.a $libname.a'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 fi
10870 shlibpath_var=LIBPATH
10871 fi
10872 ;;
10873
10874 amigaos*)
10875 case $host_cpu in
10876 powerpc)
10877 # Since July 2007 AmigaOS4 officially supports .so libraries.
10878 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 ;;
10881 m68k)
10882 library_names_spec='$libname.ixlibrary $libname.a'
10883 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10884 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10885 ;;
10886 esac
10887 ;;
10888
10889 beos*)
10890 library_names_spec='${libname}${shared_ext}'
10891 dynamic_linker="$host_os ld.so"
10892 shlibpath_var=LIBRARY_PATH
10893 ;;
10894
10895 bsdi[45]*)
10896 version_type=linux # correct to gnu/linux during the next big refactor
10897 need_version=no
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10901 shlibpath_var=LD_LIBRARY_PATH
10902 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10903 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10904 # the default ld.so.conf also contains /usr/contrib/lib and
10905 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10906 # libtool to hard-code these into programs
10907 ;;
10908
10909 cygwin* | mingw* | pw32* | cegcc*)
10910 version_type=windows
10911 shrext_cmds=".dll"
10912 need_version=no
10913 need_lib_prefix=no
10914
10915 case $GCC,$cc_basename in
10916 yes,*)
10917 # gcc
10918 library_names_spec='$libname.dll.a'
10919 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10920 postinstall_cmds='base_file=`basename \${file}`~
10921 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10922 dldir=$destdir/`dirname \$dlpath`~
10923 test -d \$dldir || mkdir -p \$dldir~
10924 $install_prog $dir/$dlname \$dldir/$dlname~
10925 chmod a+x \$dldir/$dlname~
10926 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10927 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10928 fi'
10929 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10930 dlpath=$dir/\$dldll~
10931 $RM \$dlpath'
10932 shlibpath_overrides_runpath=yes
10933
10934 case $host_os in
10935 cygwin*)
10936 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10937 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10938
10939 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10940 ;;
10941 mingw* | cegcc*)
10942 # MinGW DLLs use traditional 'lib' prefix
10943 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10944 ;;
10945 pw32*)
10946 # pw32 DLLs use 'pw' prefix rather than 'lib'
10947 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10948 ;;
10949 esac
10950 dynamic_linker='Win32 ld.exe'
10951 ;;
10952
10953 *,cl*)
10954 # Native MSVC
10955 libname_spec='$name'
10956 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10957 library_names_spec='${libname}.dll.lib'
10958
10959 case $build_os in
10960 mingw*)
10961 sys_lib_search_path_spec=
10962 lt_save_ifs=$IFS
10963 IFS=';'
10964 for lt_path in $LIB
10965 do
10966 IFS=$lt_save_ifs
10967 # Let DOS variable expansion print the short 8.3 style file name.
10968 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10969 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10970 done
10971 IFS=$lt_save_ifs
10972 # Convert to MSYS style.
10973 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10974 ;;
10975 cygwin*)
10976 # Convert to unix form, then to dos form, then back to unix form
10977 # but this time dos style (no spaces!) so that the unix form looks
10978 # like /cygdrive/c/PROGRA~1:/cygdr...
10979 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10980 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10981 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10982 ;;
10983 *)
10984 sys_lib_search_path_spec="$LIB"
10985 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10986 # It is most probably a Windows format PATH.
10987 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10988 else
10989 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10990 fi
10991 # FIXME: find the short name or the path components, as spaces are
10992 # common. (e.g. "Program Files" -> "PROGRA~1")
10993 ;;
10994 esac
10995
10996 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10997 postinstall_cmds='base_file=`basename \${file}`~
10998 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10999 dldir=$destdir/`dirname \$dlpath`~
11000 test -d \$dldir || mkdir -p \$dldir~
11001 $install_prog $dir/$dlname \$dldir/$dlname'
11002 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11003 dlpath=$dir/\$dldll~
11004 $RM \$dlpath'
11005 shlibpath_overrides_runpath=yes
11006 dynamic_linker='Win32 link.exe'
11007 ;;
11008
11009 *)
11010 # Assume MSVC wrapper
11011 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11012 dynamic_linker='Win32 ld.exe'
11013 ;;
11014 esac
11015 # FIXME: first we should search . and the directory the executable is in
11016 shlibpath_var=PATH
11017 ;;
11018
11019 darwin* | rhapsody*)
11020 dynamic_linker="$host_os dyld"
11021 version_type=darwin
11022 need_lib_prefix=no
11023 need_version=no
11024 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11025 soname_spec='${libname}${release}${major}$shared_ext'
11026 shlibpath_overrides_runpath=yes
11027 shlibpath_var=DYLD_LIBRARY_PATH
11028 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11029
11030 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11031 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11032 ;;
11033
11034 dgux*)
11035 version_type=linux # correct to gnu/linux during the next big refactor
11036 need_lib_prefix=no
11037 need_version=no
11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11039 soname_spec='${libname}${release}${shared_ext}$major'
11040 shlibpath_var=LD_LIBRARY_PATH
11041 ;;
11042
11043 freebsd* | dragonfly*)
11044 # DragonFly does not have aout. When/if they implement a new
11045 # versioning mechanism, adjust this.
11046 if test -x /usr/bin/objformat; then
11047 objformat=`/usr/bin/objformat`
11048 else
11049 case $host_os in
11050 freebsd[23].*) objformat=aout ;;
11051 *) objformat=elf ;;
11052 esac
11053 fi
11054 version_type=freebsd-$objformat
11055 case $version_type in
11056 freebsd-elf*)
11057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11058 need_version=no
11059 need_lib_prefix=no
11060 ;;
11061 freebsd-*)
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11063 need_version=yes
11064 ;;
11065 esac
11066 shlibpath_var=LD_LIBRARY_PATH
11067 case $host_os in
11068 freebsd2.*)
11069 shlibpath_overrides_runpath=yes
11070 ;;
11071 freebsd3.[01]* | freebsdelf3.[01]*)
11072 shlibpath_overrides_runpath=yes
11073 hardcode_into_libs=yes
11074 ;;
11075 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11076 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11077 shlibpath_overrides_runpath=no
11078 hardcode_into_libs=yes
11079 ;;
11080 *) # from 4.6 on, and DragonFly
11081 shlibpath_overrides_runpath=yes
11082 hardcode_into_libs=yes
11083 ;;
11084 esac
11085 ;;
11086
11087 gnu*)
11088 version_type=linux # correct to gnu/linux during the next big refactor
11089 need_lib_prefix=no
11090 need_version=no
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11092 soname_spec='${libname}${release}${shared_ext}$major'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 shlibpath_overrides_runpath=no
11095 hardcode_into_libs=yes
11096 ;;
11097
11098 haiku*)
11099 version_type=linux # correct to gnu/linux during the next big refactor
11100 need_lib_prefix=no
11101 need_version=no
11102 dynamic_linker="$host_os runtime_loader"
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 shlibpath_var=LIBRARY_PATH
11106 shlibpath_overrides_runpath=yes
11107 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11108 hardcode_into_libs=yes
11109 ;;
11110
11111 hpux9* | hpux10* | hpux11*)
11112 # Give a soname corresponding to the major version so that dld.sl refuses to
11113 # link against other versions.
11114 version_type=sunos
11115 need_lib_prefix=no
11116 need_version=no
11117 case $host_cpu in
11118 ia64*)
11119 shrext_cmds='.so'
11120 hardcode_into_libs=yes
11121 dynamic_linker="$host_os dld.so"
11122 shlibpath_var=LD_LIBRARY_PATH
11123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 if test "X$HPUX_IA64_MODE" = X32; then
11127 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11128 else
11129 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11130 fi
11131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11132 ;;
11133 hppa*64*)
11134 shrext_cmds='.sl'
11135 hardcode_into_libs=yes
11136 dynamic_linker="$host_os dld.sl"
11137 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140 soname_spec='${libname}${release}${shared_ext}$major'
11141 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11143 ;;
11144 *)
11145 shrext_cmds='.sl'
11146 dynamic_linker="$host_os dld.sl"
11147 shlibpath_var=SHLIB_PATH
11148 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11150 soname_spec='${libname}${release}${shared_ext}$major'
11151 ;;
11152 esac
11153 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11154 postinstall_cmds='chmod 555 $lib'
11155 # or fails outright, so override atomically:
11156 install_override_mode=555
11157 ;;
11158
11159 interix[3-9]*)
11160 version_type=linux # correct to gnu/linux during the next big refactor
11161 need_lib_prefix=no
11162 need_version=no
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=no
11168 hardcode_into_libs=yes
11169 ;;
11170
11171 irix5* | irix6* | nonstopux*)
11172 case $host_os in
11173 nonstopux*) version_type=nonstopux ;;
11174 *)
11175 if test "$lt_cv_prog_gnu_ld" = yes; then
11176 version_type=linux # correct to gnu/linux during the next big refactor
11177 else
11178 version_type=irix
11179 fi ;;
11180 esac
11181 need_lib_prefix=no
11182 need_version=no
11183 soname_spec='${libname}${release}${shared_ext}$major'
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11185 case $host_os in
11186 irix5* | nonstopux*)
11187 libsuff= shlibsuff=
11188 ;;
11189 *)
11190 case $LD in # libtool.m4 will add one of these switches to LD
11191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11192 libsuff= shlibsuff= libmagic=32-bit;;
11193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11194 libsuff=32 shlibsuff=N32 libmagic=N32;;
11195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11197 *) libsuff= shlibsuff= libmagic=never-match;;
11198 esac
11199 ;;
11200 esac
11201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11202 shlibpath_overrides_runpath=no
11203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11205 hardcode_into_libs=yes
11206 ;;
11207
11208 # No shared lib support for Linux oldld, aout, or coff.
11209 linux*oldld* | linux*aout* | linux*coff*)
11210 dynamic_linker=no
11211 ;;
11212
11213 # This must be glibc/ELF.
11214 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11215 version_type=linux # correct to gnu/linux during the next big refactor
11216 need_lib_prefix=no
11217 need_version=no
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 soname_spec='${libname}${release}${shared_ext}$major'
11220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 shlibpath_overrides_runpath=no
11223
11224 # Some binutils ld are patched to set DT_RUNPATH
11225 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 lt_cv_shlibpath_overrides_runpath=no
11229 save_LDFLAGS=$LDFLAGS
11230 save_libdir=$libdir
11231 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11232 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11235
11236 int
11237 main ()
11238 {
11239
11240 ;
11241 return 0;
11242 }
11243 _ACEOF
11244 if ac_fn_c_try_link "$LINENO"; then :
11245 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11246 lt_cv_shlibpath_overrides_runpath=yes
11247 fi
11248 fi
11249 rm -f core conftest.err conftest.$ac_objext \
11250 conftest$ac_exeext conftest.$ac_ext
11251 LDFLAGS=$save_LDFLAGS
11252 libdir=$save_libdir
11253
11254 fi
11255
11256 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11257
11258 # This implies no fast_install, which is unacceptable.
11259 # Some rework will be needed to allow for fast_install
11260 # before this can be enabled.
11261 hardcode_into_libs=yes
11262
11263 # Add ABI-specific directories to the system library path.
11264 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11265
11266 # Append ld.so.conf contents to the search path
11267 if test -f /etc/ld.so.conf; then
11268 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' ' '`
11269 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11270
11271 fi
11272
11273 # We used to test for /lib/ld.so.1 and disable shared libraries on
11274 # powerpc, because MkLinux only supported shared libraries with the
11275 # GNU dynamic linker. Since this was broken with cross compilers,
11276 # most powerpc-linux boxes support dynamic linking these days and
11277 # people can always --disable-shared, the test was removed, and we
11278 # assume the GNU/Linux dynamic linker is in use.
11279 dynamic_linker='GNU/Linux ld.so'
11280 ;;
11281
11282 netbsd*)
11283 version_type=sunos
11284 need_lib_prefix=no
11285 need_version=no
11286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11289 dynamic_linker='NetBSD (a.out) ld.so'
11290 else
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11292 soname_spec='${libname}${release}${shared_ext}$major'
11293 dynamic_linker='NetBSD ld.elf_so'
11294 fi
11295 shlibpath_var=LD_LIBRARY_PATH
11296 shlibpath_overrides_runpath=yes
11297 hardcode_into_libs=yes
11298 ;;
11299
11300 newsos6)
11301 version_type=linux # correct to gnu/linux during the next big refactor
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303 shlibpath_var=LD_LIBRARY_PATH
11304 shlibpath_overrides_runpath=yes
11305 ;;
11306
11307 *nto* | *qnx*)
11308 version_type=qnx
11309 need_lib_prefix=no
11310 need_version=no
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11312 soname_spec='${libname}${release}${shared_ext}$major'
11313 shlibpath_var=LD_LIBRARY_PATH
11314 shlibpath_overrides_runpath=no
11315 hardcode_into_libs=yes
11316 dynamic_linker='ldqnx.so'
11317 ;;
11318
11319 openbsd*)
11320 version_type=sunos
11321 sys_lib_dlsearch_path_spec="/usr/lib"
11322 need_lib_prefix=no
11323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11324 case $host_os in
11325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11326 *) need_version=no ;;
11327 esac
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11330 shlibpath_var=LD_LIBRARY_PATH
11331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11332 case $host_os in
11333 openbsd2.[89] | openbsd2.[89].*)
11334 shlibpath_overrides_runpath=no
11335 ;;
11336 *)
11337 shlibpath_overrides_runpath=yes
11338 ;;
11339 esac
11340 else
11341 shlibpath_overrides_runpath=yes
11342 fi
11343 ;;
11344
11345 os2*)
11346 libname_spec='$name'
11347 shrext_cmds=".dll"
11348 need_lib_prefix=no
11349 library_names_spec='$libname${shared_ext} $libname.a'
11350 dynamic_linker='OS/2 ld.exe'
11351 shlibpath_var=LIBPATH
11352 ;;
11353
11354 osf3* | osf4* | osf5*)
11355 version_type=osf
11356 need_lib_prefix=no
11357 need_version=no
11358 soname_spec='${libname}${release}${shared_ext}$major'
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 shlibpath_var=LD_LIBRARY_PATH
11361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11363 ;;
11364
11365 rdos*)
11366 dynamic_linker=no
11367 ;;
11368
11369 solaris*)
11370 version_type=linux # correct to gnu/linux during the next big refactor
11371 need_lib_prefix=no
11372 need_version=no
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374 soname_spec='${libname}${release}${shared_ext}$major'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 shlibpath_overrides_runpath=yes
11377 hardcode_into_libs=yes
11378 # ldd complains unless libraries are executable
11379 postinstall_cmds='chmod +x $lib'
11380 ;;
11381
11382 sunos4*)
11383 version_type=sunos
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11386 shlibpath_var=LD_LIBRARY_PATH
11387 shlibpath_overrides_runpath=yes
11388 if test "$with_gnu_ld" = yes; then
11389 need_lib_prefix=no
11390 fi
11391 need_version=yes
11392 ;;
11393
11394 sysv4 | sysv4.3*)
11395 version_type=linux # correct to gnu/linux during the next big refactor
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397 soname_spec='${libname}${release}${shared_ext}$major'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 case $host_vendor in
11400 sni)
11401 shlibpath_overrides_runpath=no
11402 need_lib_prefix=no
11403 runpath_var=LD_RUN_PATH
11404 ;;
11405 siemens)
11406 need_lib_prefix=no
11407 ;;
11408 motorola)
11409 need_lib_prefix=no
11410 need_version=no
11411 shlibpath_overrides_runpath=no
11412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11413 ;;
11414 esac
11415 ;;
11416
11417 sysv4*MP*)
11418 if test -d /usr/nec ;then
11419 version_type=linux # correct to gnu/linux during the next big refactor
11420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11421 soname_spec='$libname${shared_ext}.$major'
11422 shlibpath_var=LD_LIBRARY_PATH
11423 fi
11424 ;;
11425
11426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11427 version_type=freebsd-elf
11428 need_lib_prefix=no
11429 need_version=no
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11431 soname_spec='${libname}${release}${shared_ext}$major'
11432 shlibpath_var=LD_LIBRARY_PATH
11433 shlibpath_overrides_runpath=yes
11434 hardcode_into_libs=yes
11435 if test "$with_gnu_ld" = yes; then
11436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11437 else
11438 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11439 case $host_os in
11440 sco3.2v5*)
11441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11442 ;;
11443 esac
11444 fi
11445 sys_lib_dlsearch_path_spec='/usr/lib'
11446 ;;
11447
11448 tpf*)
11449 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11450 version_type=linux # correct to gnu/linux during the next big refactor
11451 need_lib_prefix=no
11452 need_version=no
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=no
11456 hardcode_into_libs=yes
11457 ;;
11458
11459 uts4*)
11460 version_type=linux # correct to gnu/linux during the next big refactor
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 ;;
11465
11466 *)
11467 dynamic_linker=no
11468 ;;
11469 esac
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11471 $as_echo "$dynamic_linker" >&6; }
11472 test "$dynamic_linker" = no && can_build_shared=no
11473
11474 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11475 if test "$GCC" = yes; then
11476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11477 fi
11478
11479 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11480 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11481 fi
11482 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11483 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11484 fi
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11578 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11579 hardcode_action=
11580 if test -n "$hardcode_libdir_flag_spec" ||
11581 test -n "$runpath_var" ||
11582 test "X$hardcode_automatic" = "Xyes" ; then
11583
11584 # We can hardcode non-existent directories.
11585 if test "$hardcode_direct" != no &&
11586 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11587 # have to relink, otherwise we might link with an installed library
11588 # when we should be linking with a yet-to-be-installed one
11589 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11590 test "$hardcode_minus_L" != no; then
11591 # Linking always hardcodes the temporary library directory.
11592 hardcode_action=relink
11593 else
11594 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11595 hardcode_action=immediate
11596 fi
11597 else
11598 # We cannot hardcode anything, or else we can only hardcode existing
11599 # directories.
11600 hardcode_action=unsupported
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11603 $as_echo "$hardcode_action" >&6; }
11604
11605 if test "$hardcode_action" = relink ||
11606 test "$inherit_rpath" = yes; then
11607 # Fast installation is not supported
11608 enable_fast_install=no
11609 elif test "$shlibpath_overrides_runpath" = yes ||
11610 test "$enable_shared" = no; then
11611 # Fast installation is not necessary
11612 enable_fast_install=needless
11613 fi
11614
11615
11616
11617
11618
11619
11620 if test "x$enable_dlopen" != xyes; then
11621 enable_dlopen=unknown
11622 enable_dlopen_self=unknown
11623 enable_dlopen_self_static=unknown
11624 else
11625 lt_cv_dlopen=no
11626 lt_cv_dlopen_libs=
11627
11628 case $host_os in
11629 beos*)
11630 lt_cv_dlopen="load_add_on"
11631 lt_cv_dlopen_libs=
11632 lt_cv_dlopen_self=yes
11633 ;;
11634
11635 mingw* | pw32* | cegcc*)
11636 lt_cv_dlopen="LoadLibrary"
11637 lt_cv_dlopen_libs=
11638 ;;
11639
11640 cygwin*)
11641 lt_cv_dlopen="dlopen"
11642 lt_cv_dlopen_libs=
11643 ;;
11644
11645 darwin*)
11646 # if libdl is installed we need to link against it
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11648 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11649 if ${ac_cv_lib_dl_dlopen+:} false; then :
11650 $as_echo_n "(cached) " >&6
11651 else
11652 ac_check_lib_save_LIBS=$LIBS
11653 LIBS="-ldl $LIBS"
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11656
11657 /* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11660 #ifdef __cplusplus
11661 extern "C"
11662 #endif
11663 char dlopen ();
11664 int
11665 main ()
11666 {
11667 return dlopen ();
11668 ;
11669 return 0;
11670 }
11671 _ACEOF
11672 if ac_fn_c_try_link "$LINENO"; then :
11673 ac_cv_lib_dl_dlopen=yes
11674 else
11675 ac_cv_lib_dl_dlopen=no
11676 fi
11677 rm -f core conftest.err conftest.$ac_objext \
11678 conftest$ac_exeext conftest.$ac_ext
11679 LIBS=$ac_check_lib_save_LIBS
11680 fi
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11682 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11683 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11685 else
11686
11687 lt_cv_dlopen="dyld"
11688 lt_cv_dlopen_libs=
11689 lt_cv_dlopen_self=yes
11690
11691 fi
11692
11693 ;;
11694
11695 *)
11696 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11697 if test "x$ac_cv_func_shl_load" = xyes; then :
11698 lt_cv_dlopen="shl_load"
11699 else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11701 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11702 if ${ac_cv_lib_dld_shl_load+:} false; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 ac_check_lib_save_LIBS=$LIBS
11706 LIBS="-ldld $LIBS"
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11709
11710 /* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11713 #ifdef __cplusplus
11714 extern "C"
11715 #endif
11716 char shl_load ();
11717 int
11718 main ()
11719 {
11720 return shl_load ();
11721 ;
11722 return 0;
11723 }
11724 _ACEOF
11725 if ac_fn_c_try_link "$LINENO"; then :
11726 ac_cv_lib_dld_shl_load=yes
11727 else
11728 ac_cv_lib_dld_shl_load=no
11729 fi
11730 rm -f core conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 LIBS=$ac_check_lib_save_LIBS
11733 fi
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11735 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11736 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11737 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11738 else
11739 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11740 if test "x$ac_cv_func_dlopen" = xyes; then :
11741 lt_cv_dlopen="dlopen"
11742 else
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11744 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11745 if ${ac_cv_lib_dl_dlopen+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 ac_check_lib_save_LIBS=$LIBS
11749 LIBS="-ldl $LIBS"
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11756 #ifdef __cplusplus
11757 extern "C"
11758 #endif
11759 char dlopen ();
11760 int
11761 main ()
11762 {
11763 return dlopen ();
11764 ;
11765 return 0;
11766 }
11767 _ACEOF
11768 if ac_fn_c_try_link "$LINENO"; then :
11769 ac_cv_lib_dl_dlopen=yes
11770 else
11771 ac_cv_lib_dl_dlopen=no
11772 fi
11773 rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11775 LIBS=$ac_check_lib_save_LIBS
11776 fi
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11778 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11779 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11781 else
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11783 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11784 if ${ac_cv_lib_svld_dlopen+:} false; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 ac_check_lib_save_LIBS=$LIBS
11788 LIBS="-lsvld $LIBS"
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11791
11792 /* Override any GCC internal prototype to avoid an error.
11793 Use char because int might match the return type of a GCC
11794 builtin and then its argument prototype would still apply. */
11795 #ifdef __cplusplus
11796 extern "C"
11797 #endif
11798 char dlopen ();
11799 int
11800 main ()
11801 {
11802 return dlopen ();
11803 ;
11804 return 0;
11805 }
11806 _ACEOF
11807 if ac_fn_c_try_link "$LINENO"; then :
11808 ac_cv_lib_svld_dlopen=yes
11809 else
11810 ac_cv_lib_svld_dlopen=no
11811 fi
11812 rm -f core conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11817 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11818 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11820 else
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11822 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11823 if ${ac_cv_lib_dld_dld_link+:} false; then :
11824 $as_echo_n "(cached) " >&6
11825 else
11826 ac_check_lib_save_LIBS=$LIBS
11827 LIBS="-ldld $LIBS"
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830
11831 /* Override any GCC internal prototype to avoid an error.
11832 Use char because int might match the return type of a GCC
11833 builtin and then its argument prototype would still apply. */
11834 #ifdef __cplusplus
11835 extern "C"
11836 #endif
11837 char dld_link ();
11838 int
11839 main ()
11840 {
11841 return dld_link ();
11842 ;
11843 return 0;
11844 }
11845 _ACEOF
11846 if ac_fn_c_try_link "$LINENO"; then :
11847 ac_cv_lib_dld_dld_link=yes
11848 else
11849 ac_cv_lib_dld_dld_link=no
11850 fi
11851 rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11853 LIBS=$ac_check_lib_save_LIBS
11854 fi
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11856 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11857 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11858 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11859 fi
11860
11861
11862 fi
11863
11864
11865 fi
11866
11867
11868 fi
11869
11870
11871 fi
11872
11873
11874 fi
11875
11876 ;;
11877 esac
11878
11879 if test "x$lt_cv_dlopen" != xno; then
11880 enable_dlopen=yes
11881 else
11882 enable_dlopen=no
11883 fi
11884
11885 case $lt_cv_dlopen in
11886 dlopen)
11887 save_CPPFLAGS="$CPPFLAGS"
11888 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11889
11890 save_LDFLAGS="$LDFLAGS"
11891 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11892
11893 save_LIBS="$LIBS"
11894 LIBS="$lt_cv_dlopen_libs $LIBS"
11895
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11897 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11898 if ${lt_cv_dlopen_self+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 if test "$cross_compiling" = yes; then :
11902 lt_cv_dlopen_self=cross
11903 else
11904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11905 lt_status=$lt_dlunknown
11906 cat > conftest.$ac_ext <<_LT_EOF
11907 #line $LINENO "configure"
11908 #include "confdefs.h"
11909
11910 #if HAVE_DLFCN_H
11911 #include <dlfcn.h>
11912 #endif
11913
11914 #include <stdio.h>
11915
11916 #ifdef RTLD_GLOBAL
11917 # define LT_DLGLOBAL RTLD_GLOBAL
11918 #else
11919 # ifdef DL_GLOBAL
11920 # define LT_DLGLOBAL DL_GLOBAL
11921 # else
11922 # define LT_DLGLOBAL 0
11923 # endif
11924 #endif
11925
11926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11927 find out it does not work in some platform. */
11928 #ifndef LT_DLLAZY_OR_NOW
11929 # ifdef RTLD_LAZY
11930 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11931 # else
11932 # ifdef DL_LAZY
11933 # define LT_DLLAZY_OR_NOW DL_LAZY
11934 # else
11935 # ifdef RTLD_NOW
11936 # define LT_DLLAZY_OR_NOW RTLD_NOW
11937 # else
11938 # ifdef DL_NOW
11939 # define LT_DLLAZY_OR_NOW DL_NOW
11940 # else
11941 # define LT_DLLAZY_OR_NOW 0
11942 # endif
11943 # endif
11944 # endif
11945 # endif
11946 #endif
11947
11948 /* When -fvisbility=hidden is used, assume the code has been annotated
11949 correspondingly for the symbols needed. */
11950 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11951 int fnord () __attribute__((visibility("default")));
11952 #endif
11953
11954 int fnord () { return 42; }
11955 int main ()
11956 {
11957 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11958 int status = $lt_dlunknown;
11959
11960 if (self)
11961 {
11962 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11963 else
11964 {
11965 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11966 else puts (dlerror ());
11967 }
11968 /* dlclose (self); */
11969 }
11970 else
11971 puts (dlerror ());
11972
11973 return status;
11974 }
11975 _LT_EOF
11976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11977 (eval $ac_link) 2>&5
11978 ac_status=$?
11979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11981 (./conftest; exit; ) >&5 2>/dev/null
11982 lt_status=$?
11983 case x$lt_status in
11984 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11985 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11986 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11987 esac
11988 else :
11989 # compilation failed
11990 lt_cv_dlopen_self=no
11991 fi
11992 fi
11993 rm -fr conftest*
11994
11995
11996 fi
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11998 $as_echo "$lt_cv_dlopen_self" >&6; }
11999
12000 if test "x$lt_cv_dlopen_self" = xyes; then
12001 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12003 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12004 if ${lt_cv_dlopen_self_static+:} false; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007 if test "$cross_compiling" = yes; then :
12008 lt_cv_dlopen_self_static=cross
12009 else
12010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12011 lt_status=$lt_dlunknown
12012 cat > conftest.$ac_ext <<_LT_EOF
12013 #line $LINENO "configure"
12014 #include "confdefs.h"
12015
12016 #if HAVE_DLFCN_H
12017 #include <dlfcn.h>
12018 #endif
12019
12020 #include <stdio.h>
12021
12022 #ifdef RTLD_GLOBAL
12023 # define LT_DLGLOBAL RTLD_GLOBAL
12024 #else
12025 # ifdef DL_GLOBAL
12026 # define LT_DLGLOBAL DL_GLOBAL
12027 # else
12028 # define LT_DLGLOBAL 0
12029 # endif
12030 #endif
12031
12032 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12033 find out it does not work in some platform. */
12034 #ifndef LT_DLLAZY_OR_NOW
12035 # ifdef RTLD_LAZY
12036 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12037 # else
12038 # ifdef DL_LAZY
12039 # define LT_DLLAZY_OR_NOW DL_LAZY
12040 # else
12041 # ifdef RTLD_NOW
12042 # define LT_DLLAZY_OR_NOW RTLD_NOW
12043 # else
12044 # ifdef DL_NOW
12045 # define LT_DLLAZY_OR_NOW DL_NOW
12046 # else
12047 # define LT_DLLAZY_OR_NOW 0
12048 # endif
12049 # endif
12050 # endif
12051 # endif
12052 #endif
12053
12054 /* When -fvisbility=hidden is used, assume the code has been annotated
12055 correspondingly for the symbols needed. */
12056 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12057 int fnord () __attribute__((visibility("default")));
12058 #endif
12059
12060 int fnord () { return 42; }
12061 int main ()
12062 {
12063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12064 int status = $lt_dlunknown;
12065
12066 if (self)
12067 {
12068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12069 else
12070 {
12071 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12072 else puts (dlerror ());
12073 }
12074 /* dlclose (self); */
12075 }
12076 else
12077 puts (dlerror ());
12078
12079 return status;
12080 }
12081 _LT_EOF
12082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12083 (eval $ac_link) 2>&5
12084 ac_status=$?
12085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12086 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12087 (./conftest; exit; ) >&5 2>/dev/null
12088 lt_status=$?
12089 case x$lt_status in
12090 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12091 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12092 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12093 esac
12094 else :
12095 # compilation failed
12096 lt_cv_dlopen_self_static=no
12097 fi
12098 fi
12099 rm -fr conftest*
12100
12101
12102 fi
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12104 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12105 fi
12106
12107 CPPFLAGS="$save_CPPFLAGS"
12108 LDFLAGS="$save_LDFLAGS"
12109 LIBS="$save_LIBS"
12110 ;;
12111 esac
12112
12113 case $lt_cv_dlopen_self in
12114 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12115 *) enable_dlopen_self=unknown ;;
12116 esac
12117
12118 case $lt_cv_dlopen_self_static in
12119 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12120 *) enable_dlopen_self_static=unknown ;;
12121 esac
12122 fi
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140 striplib=
12141 old_striplib=
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12143 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12144 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12145 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12146 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12148 $as_echo "yes" >&6; }
12149 else
12150 # FIXME - insert some real tests, host_os isn't really good enough
12151 case $host_os in
12152 darwin*)
12153 if test -n "$STRIP" ; then
12154 striplib="$STRIP -x"
12155 old_striplib="$STRIP -S"
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12157 $as_echo "yes" >&6; }
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12161 fi
12162 ;;
12163 *)
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165 $as_echo "no" >&6; }
12166 ;;
12167 esac
12168 fi
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181 # Report which library types will actually be built
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12183 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12185 $as_echo "$can_build_shared" >&6; }
12186
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12188 $as_echo_n "checking whether to build shared libraries... " >&6; }
12189 test "$can_build_shared" = "no" && enable_shared=no
12190
12191 # On AIX, shared libraries and static libraries use the same namespace, and
12192 # are all built from PIC.
12193 case $host_os in
12194 aix3*)
12195 test "$enable_shared" = yes && enable_static=no
12196 if test -n "$RANLIB"; then
12197 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12198 postinstall_cmds='$RANLIB $lib'
12199 fi
12200 ;;
12201
12202 aix[4-9]*)
12203 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12204 test "$enable_shared" = yes && enable_static=no
12205 fi
12206 ;;
12207 esac
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12209 $as_echo "$enable_shared" >&6; }
12210
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12212 $as_echo_n "checking whether to build static libraries... " >&6; }
12213 # Make sure either enable_shared or enable_static is yes.
12214 test "$enable_shared" = yes || enable_static=yes
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12216 $as_echo "$enable_static" >&6; }
12217
12218
12219
12220
12221 fi
12222 ac_ext=c
12223 ac_cpp='$CPP $CPPFLAGS'
12224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12227
12228 CC="$lt_save_CC"
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244 ac_config_commands="$ac_config_commands libtool"
12245
12246
12247
12248
12249 # Only expand once:
12250
12251
12252
12253 # i18n stuff for the PolicyKit policy files
12254
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12256 $as_echo_n "checking whether NLS is requested... " >&6; }
12257 # Check whether --enable-nls was given.
12258 if test "${enable_nls+set}" = set; then :
12259 enableval=$enable_nls; USE_NLS=$enableval
12260 else
12261 USE_NLS=yes
12262 fi
12263
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12265 $as_echo "$USE_NLS" >&6; }
12266
12267
12268
12269
12270 case "$am__api_version" in
12271 1.01234)
12272 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
12273 ;;
12274 *)
12275 ;;
12276 esac
12277
12278 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.40.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
12279 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
12280 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
12281 if test -n "0.40.0"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.40.0" >&5
12283 $as_echo_n "checking for intltool >= 0.40.0... " >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
12285 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
12286 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
12287 as_fn_error $? "Your intltool is too old. You need intltool 0.40.0 or later." "$LINENO" 5
12288 fi
12289
12290 # Extract the first word of "intltool-update", so it can be a program name with args.
12291 set dummy intltool-update; ac_word=$2
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293 $as_echo_n "checking for $ac_word... " >&6; }
12294 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 case $INTLTOOL_UPDATE in
12298 [\\/]* | ?:[\\/]*)
12299 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
12300 ;;
12301 *)
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
12304 do
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12309 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
12310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12311 break 2
12312 fi
12313 done
12314 done
12315 IFS=$as_save_IFS
12316
12317 ;;
12318 esac
12319 fi
12320 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
12321 if test -n "$INTLTOOL_UPDATE"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
12323 $as_echo "$INTLTOOL_UPDATE" >&6; }
12324 else
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12327 fi
12328
12329
12330 # Extract the first word of "intltool-merge", so it can be a program name with args.
12331 set dummy intltool-merge; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 $as_echo_n "checking for $ac_word... " >&6; }
12334 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 case $INTLTOOL_MERGE in
12338 [\\/]* | ?:[\\/]*)
12339 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
12340 ;;
12341 *)
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12344 do
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 break 2
12352 fi
12353 done
12354 done
12355 IFS=$as_save_IFS
12356
12357 ;;
12358 esac
12359 fi
12360 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
12361 if test -n "$INTLTOOL_MERGE"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
12363 $as_echo "$INTLTOOL_MERGE" >&6; }
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12367 fi
12368
12369
12370 # Extract the first word of "intltool-extract", so it can be a program name with args.
12371 set dummy intltool-extract; ac_word=$2
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373 $as_echo_n "checking for $ac_word... " >&6; }
12374 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 case $INTLTOOL_EXTRACT in
12378 [\\/]* | ?:[\\/]*)
12379 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
12380 ;;
12381 *)
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12384 do
12385 IFS=$as_save_IFS
12386 test -z "$as_dir" && as_dir=.
12387 for ac_exec_ext in '' $ac_executable_extensions; do
12388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12389 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
12390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391 break 2
12392 fi
12393 done
12394 done
12395 IFS=$as_save_IFS
12396
12397 ;;
12398 esac
12399 fi
12400 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
12401 if test -n "$INTLTOOL_EXTRACT"; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
12403 $as_echo "$INTLTOOL_EXTRACT" >&6; }
12404 else
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12407 fi
12408
12409
12410 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
12411 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
12412 fi
12413
12414 if test -z "$AM_DEFAULT_VERBOSITY"; then
12415 AM_DEFAULT_VERBOSITY=1
12416 fi
12417
12418
12419 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
12420 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
12421 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
12422
12423
12424
12425
12426 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
12427 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
12428 intltool__v_merge_options_0='-q'
12429
12430
12431
12432
12433 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12434 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12435 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12436 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12437 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
12438 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12439 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12440 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12441 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12442 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12443 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12444 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
12445 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
12446 else
12447 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
12448 fi
12449 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12450 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12451 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12452 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12453 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12454 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12455 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553 # Check the gettext tools to make sure they are GNU
12554 # Extract the first word of "xgettext", so it can be a program name with args.
12555 set dummy xgettext; ac_word=$2
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557 $as_echo_n "checking for $ac_word... " >&6; }
12558 if ${ac_cv_path_XGETTEXT+:} false; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 case $XGETTEXT in
12562 [\\/]* | ?:[\\/]*)
12563 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12564 ;;
12565 *)
12566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567 for as_dir in $PATH
12568 do
12569 IFS=$as_save_IFS
12570 test -z "$as_dir" && as_dir=.
12571 for ac_exec_ext in '' $ac_executable_extensions; do
12572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12573 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575 break 2
12576 fi
12577 done
12578 done
12579 IFS=$as_save_IFS
12580
12581 ;;
12582 esac
12583 fi
12584 XGETTEXT=$ac_cv_path_XGETTEXT
12585 if test -n "$XGETTEXT"; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12587 $as_echo "$XGETTEXT" >&6; }
12588 else
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12591 fi
12592
12593
12594 # Extract the first word of "msgmerge", so it can be a program name with args.
12595 set dummy msgmerge; ac_word=$2
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597 $as_echo_n "checking for $ac_word... " >&6; }
12598 if ${ac_cv_path_MSGMERGE+:} false; then :
12599 $as_echo_n "(cached) " >&6
12600 else
12601 case $MSGMERGE in
12602 [\\/]* | ?:[\\/]*)
12603 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12604 ;;
12605 *)
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12608 do
12609 IFS=$as_save_IFS
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12613 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12615 break 2
12616 fi
12617 done
12618 done
12619 IFS=$as_save_IFS
12620
12621 ;;
12622 esac
12623 fi
12624 MSGMERGE=$ac_cv_path_MSGMERGE
12625 if test -n "$MSGMERGE"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12627 $as_echo "$MSGMERGE" >&6; }
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12631 fi
12632
12633
12634 # Extract the first word of "msgfmt", so it can be a program name with args.
12635 set dummy msgfmt; ac_word=$2
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12637 $as_echo_n "checking for $ac_word... " >&6; }
12638 if ${ac_cv_path_MSGFMT+:} false; then :
12639 $as_echo_n "(cached) " >&6
12640 else
12641 case $MSGFMT in
12642 [\\/]* | ?:[\\/]*)
12643 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12644 ;;
12645 *)
12646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12647 for as_dir in $PATH
12648 do
12649 IFS=$as_save_IFS
12650 test -z "$as_dir" && as_dir=.
12651 for ac_exec_ext in '' $ac_executable_extensions; do
12652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12653 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12655 break 2
12656 fi
12657 done
12658 done
12659 IFS=$as_save_IFS
12660
12661 ;;
12662 esac
12663 fi
12664 MSGFMT=$ac_cv_path_MSGFMT
12665 if test -n "$MSGFMT"; then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12667 $as_echo "$MSGFMT" >&6; }
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 $as_echo "no" >&6; }
12671 fi
12672
12673
12674 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12675 set dummy gmsgfmt; ac_word=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if ${ac_cv_path_GMSGFMT+:} false; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 case $GMSGFMT in
12682 [\\/]* | ?:[\\/]*)
12683 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12684 ;;
12685 *)
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12688 do
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12693 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12696 fi
12697 done
12698 done
12699 IFS=$as_save_IFS
12700
12701 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12702 ;;
12703 esac
12704 fi
12705 GMSGFMT=$ac_cv_path_GMSGFMT
12706 if test -n "$GMSGFMT"; then
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12708 $as_echo "$GMSGFMT" >&6; }
12709 else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 $as_echo "no" >&6; }
12712 fi
12713
12714
12715 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
12716 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
12717 fi
12718 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
12719 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
12720 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
12721 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
12722 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
12723 fi
12724
12725 # Extract the first word of "perl", so it can be a program name with args.
12726 set dummy perl; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 case $INTLTOOL_PERL in
12733 [\\/]* | ?:[\\/]*)
12734 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
12735 ;;
12736 *)
12737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738 for as_dir in $PATH
12739 do
12740 IFS=$as_save_IFS
12741 test -z "$as_dir" && as_dir=.
12742 for ac_exec_ext in '' $ac_executable_extensions; do
12743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12744 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 break 2
12747 fi
12748 done
12749 done
12750 IFS=$as_save_IFS
12751
12752 ;;
12753 esac
12754 fi
12755 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
12756 if test -n "$INTLTOOL_PERL"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
12758 $as_echo "$INTLTOOL_PERL" >&6; }
12759 else
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12762 fi
12763
12764
12765 if test -z "$INTLTOOL_PERL"; then
12766 as_fn_error $? "perl not found" "$LINENO" 5
12767 fi
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
12769 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
12770 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
12771 if test $? -ne 0; then
12772 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
12773 else
12774 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
12776 $as_echo "$IT_PERL_VERSION" >&6; }
12777 fi
12778 if test "x" != "xno-xml"; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
12780 $as_echo_n "checking for XML::Parser... " >&6; }
12781 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12783 $as_echo "ok" >&6; }
12784 else
12785 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
12786 fi
12787 fi
12788
12789 # Substitute ALL_LINGUAS so we can use it in po/Makefile
12790
12791
12792 # Set DATADIRNAME correctly if it is not set yet
12793 # (copied from glib-gettext.m4)
12794 if test -z "$DATADIRNAME"; then
12795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h. */
12797
12798 int
12799 main ()
12800 {
12801 extern int _nl_msg_cat_cntr;
12802 return _nl_msg_cat_cntr
12803 ;
12804 return 0;
12805 }
12806 _ACEOF
12807 if ac_fn_c_try_link "$LINENO"; then :
12808 DATADIRNAME=share
12809 else
12810 case $host in
12811 *-*-solaris*)
12812 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12813 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
12814 DATADIRNAME=share
12815 else
12816 DATADIRNAME=lib
12817 fi
12818
12819 ;;
12820 *)
12821 DATADIRNAME=lib
12822 ;;
12823 esac
12824 fi
12825 rm -f core conftest.err conftest.$ac_objext \
12826 conftest$ac_exeext conftest.$ac_ext
12827 fi
12828
12829
12830
12831
12832
12833
12834 GETTEXT_PACKAGE=systemd
12835
12836
12837
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12839 $as_echo_n "checking whether ln -s works... " >&6; }
12840 LN_S=$as_ln_s
12841 if test "$LN_S" = "ln -s"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12843 $as_echo "yes" >&6; }
12844 else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12846 $as_echo "no, using $LN_S" >&6; }
12847 fi
12848
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12850 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12851 if ${ac_cv_path_SED+:} false; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12855 for ac_i in 1 2 3 4 5 6 7; do
12856 ac_script="$ac_script$as_nl$ac_script"
12857 done
12858 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12859 { ac_script=; unset ac_script;}
12860 if test -z "$SED"; then
12861 ac_path_SED_found=false
12862 # Loop through the user's path and test for each of PROGNAME-LIST
12863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12864 for as_dir in $PATH
12865 do
12866 IFS=$as_save_IFS
12867 test -z "$as_dir" && as_dir=.
12868 for ac_prog in sed gsed; do
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12871 as_fn_executable_p "$ac_path_SED" || continue
12872 # Check for GNU ac_path_SED and select it if it is found.
12873 # Check for GNU $ac_path_SED
12874 case `"$ac_path_SED" --version 2>&1` in
12875 *GNU*)
12876 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12877 *)
12878 ac_count=0
12879 $as_echo_n 0123456789 >"conftest.in"
12880 while :
12881 do
12882 cat "conftest.in" "conftest.in" >"conftest.tmp"
12883 mv "conftest.tmp" "conftest.in"
12884 cp "conftest.in" "conftest.nl"
12885 $as_echo '' >> "conftest.nl"
12886 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12888 as_fn_arith $ac_count + 1 && ac_count=$as_val
12889 if test $ac_count -gt ${ac_path_SED_max-0}; then
12890 # Best one so far, save it but keep looking for a better one
12891 ac_cv_path_SED="$ac_path_SED"
12892 ac_path_SED_max=$ac_count
12893 fi
12894 # 10*(2^10) chars as input seems more than enough
12895 test $ac_count -gt 10 && break
12896 done
12897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12898 esac
12899
12900 $ac_path_SED_found && break 3
12901 done
12902 done
12903 done
12904 IFS=$as_save_IFS
12905 if test -z "$ac_cv_path_SED"; then
12906 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12907 fi
12908 else
12909 ac_cv_path_SED=$SED
12910 fi
12911
12912 fi
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12914 $as_echo "$ac_cv_path_SED" >&6; }
12915 SED="$ac_cv_path_SED"
12916 rm -f conftest.sed
12917
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12919 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12920 if ${ac_cv_path_GREP+:} false; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 if test -z "$GREP"; then
12924 ac_path_GREP_found=false
12925 # Loop through the user's path and test for each of PROGNAME-LIST
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12928 do
12929 IFS=$as_save_IFS
12930 test -z "$as_dir" && as_dir=.
12931 for ac_prog in grep ggrep; do
12932 for ac_exec_ext in '' $ac_executable_extensions; do
12933 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12934 as_fn_executable_p "$ac_path_GREP" || continue
12935 # Check for GNU ac_path_GREP and select it if it is found.
12936 # Check for GNU $ac_path_GREP
12937 case `"$ac_path_GREP" --version 2>&1` in
12938 *GNU*)
12939 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12940 *)
12941 ac_count=0
12942 $as_echo_n 0123456789 >"conftest.in"
12943 while :
12944 do
12945 cat "conftest.in" "conftest.in" >"conftest.tmp"
12946 mv "conftest.tmp" "conftest.in"
12947 cp "conftest.in" "conftest.nl"
12948 $as_echo 'GREP' >> "conftest.nl"
12949 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12951 as_fn_arith $ac_count + 1 && ac_count=$as_val
12952 if test $ac_count -gt ${ac_path_GREP_max-0}; then
12953 # Best one so far, save it but keep looking for a better one
12954 ac_cv_path_GREP="$ac_path_GREP"
12955 ac_path_GREP_max=$ac_count
12956 fi
12957 # 10*(2^10) chars as input seems more than enough
12958 test $ac_count -gt 10 && break
12959 done
12960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12961 esac
12962
12963 $ac_path_GREP_found && break 3
12964 done
12965 done
12966 done
12967 IFS=$as_save_IFS
12968 if test -z "$ac_cv_path_GREP"; then
12969 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12970 fi
12971 else
12972 ac_cv_path_GREP=$GREP
12973 fi
12974
12975 fi
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12977 $as_echo "$ac_cv_path_GREP" >&6; }
12978 GREP="$ac_cv_path_GREP"
12979
12980
12981 for ac_prog in gawk mawk nawk awk
12982 do
12983 # Extract the first word of "$ac_prog", so it can be a program name with args.
12984 set dummy $ac_prog; ac_word=$2
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12986 $as_echo_n "checking for $ac_word... " >&6; }
12987 if ${ac_cv_prog_AWK+:} false; then :
12988 $as_echo_n "(cached) " >&6
12989 else
12990 if test -n "$AWK"; then
12991 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12992 else
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994 for as_dir in $PATH
12995 do
12996 IFS=$as_save_IFS
12997 test -z "$as_dir" && as_dir=.
12998 for ac_exec_ext in '' $ac_executable_extensions; do
12999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13000 ac_cv_prog_AWK="$ac_prog"
13001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13002 break 2
13003 fi
13004 done
13005 done
13006 IFS=$as_save_IFS
13007
13008 fi
13009 fi
13010 AWK=$ac_cv_prog_AWK
13011 if test -n "$AWK"; then
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13013 $as_echo "$AWK" >&6; }
13014 else
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13017 fi
13018
13019
13020 test -n "$AWK" && break
13021 done
13022
13023
13024 ac_ext=c
13025 ac_cpp='$CPP $CPPFLAGS'
13026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13029 if test -n "$ac_tool_prefix"; then
13030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13031 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13033 $as_echo_n "checking for $ac_word... " >&6; }
13034 if ${ac_cv_prog_CC+:} false; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 if test -n "$CC"; then
13038 ac_cv_prog_CC="$CC" # Let the user override the test.
13039 else
13040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041 for as_dir in $PATH
13042 do
13043 IFS=$as_save_IFS
13044 test -z "$as_dir" && as_dir=.
13045 for ac_exec_ext in '' $ac_executable_extensions; do
13046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13049 break 2
13050 fi
13051 done
13052 done
13053 IFS=$as_save_IFS
13054
13055 fi
13056 fi
13057 CC=$ac_cv_prog_CC
13058 if test -n "$CC"; then
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13060 $as_echo "$CC" >&6; }
13061 else
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13063 $as_echo "no" >&6; }
13064 fi
13065
13066
13067 fi
13068 if test -z "$ac_cv_prog_CC"; then
13069 ac_ct_CC=$CC
13070 # Extract the first word of "gcc", so it can be a program name with args.
13071 set dummy gcc; ac_word=$2
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13073 $as_echo_n "checking for $ac_word... " >&6; }
13074 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13075 $as_echo_n "(cached) " >&6
13076 else
13077 if test -n "$ac_ct_CC"; then
13078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13079 else
13080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13081 for as_dir in $PATH
13082 do
13083 IFS=$as_save_IFS
13084 test -z "$as_dir" && as_dir=.
13085 for ac_exec_ext in '' $ac_executable_extensions; do
13086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13087 ac_cv_prog_ac_ct_CC="gcc"
13088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13089 break 2
13090 fi
13091 done
13092 done
13093 IFS=$as_save_IFS
13094
13095 fi
13096 fi
13097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13098 if test -n "$ac_ct_CC"; then
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13100 $as_echo "$ac_ct_CC" >&6; }
13101 else
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13103 $as_echo "no" >&6; }
13104 fi
13105
13106 if test "x$ac_ct_CC" = x; then
13107 CC=""
13108 else
13109 case $cross_compiling:$ac_tool_warned in
13110 yes:)
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13113 ac_tool_warned=yes ;;
13114 esac
13115 CC=$ac_ct_CC
13116 fi
13117 else
13118 CC="$ac_cv_prog_CC"
13119 fi
13120
13121 if test -z "$CC"; then
13122 if test -n "$ac_tool_prefix"; then
13123 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13124 set dummy ${ac_tool_prefix}cc; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if ${ac_cv_prog_CC+:} false; then :
13128 $as_echo_n "(cached) " >&6
13129 else
13130 if test -n "$CC"; then
13131 ac_cv_prog_CC="$CC" # Let the user override the test.
13132 else
13133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134 for as_dir in $PATH
13135 do
13136 IFS=$as_save_IFS
13137 test -z "$as_dir" && as_dir=.
13138 for ac_exec_ext in '' $ac_executable_extensions; do
13139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13140 ac_cv_prog_CC="${ac_tool_prefix}cc"
13141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13142 break 2
13143 fi
13144 done
13145 done
13146 IFS=$as_save_IFS
13147
13148 fi
13149 fi
13150 CC=$ac_cv_prog_CC
13151 if test -n "$CC"; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13153 $as_echo "$CC" >&6; }
13154 else
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13157 fi
13158
13159
13160 fi
13161 fi
13162 if test -z "$CC"; then
13163 # Extract the first word of "cc", so it can be a program name with args.
13164 set dummy cc; ac_word=$2
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13166 $as_echo_n "checking for $ac_word... " >&6; }
13167 if ${ac_cv_prog_CC+:} false; then :
13168 $as_echo_n "(cached) " >&6
13169 else
13170 if test -n "$CC"; then
13171 ac_cv_prog_CC="$CC" # Let the user override the test.
13172 else
13173 ac_prog_rejected=no
13174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $PATH
13176 do
13177 IFS=$as_save_IFS
13178 test -z "$as_dir" && as_dir=.
13179 for ac_exec_ext in '' $ac_executable_extensions; do
13180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13181 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13182 ac_prog_rejected=yes
13183 continue
13184 fi
13185 ac_cv_prog_CC="cc"
13186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13187 break 2
13188 fi
13189 done
13190 done
13191 IFS=$as_save_IFS
13192
13193 if test $ac_prog_rejected = yes; then
13194 # We found a bogon in the path, so make sure we never use it.
13195 set dummy $ac_cv_prog_CC
13196 shift
13197 if test $# != 0; then
13198 # We chose a different compiler from the bogus one.
13199 # However, it has the same basename, so the bogon will be chosen
13200 # first if we set CC to just the basename; use the full file name.
13201 shift
13202 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13203 fi
13204 fi
13205 fi
13206 fi
13207 CC=$ac_cv_prog_CC
13208 if test -n "$CC"; then
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13210 $as_echo "$CC" >&6; }
13211 else
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213 $as_echo "no" >&6; }
13214 fi
13215
13216
13217 fi
13218 if test -z "$CC"; then
13219 if test -n "$ac_tool_prefix"; then
13220 for ac_prog in cl.exe
13221 do
13222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if ${ac_cv_prog_CC+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 if test -n "$CC"; then
13230 ac_cv_prog_CC="$CC" # Let the user override the test.
13231 else
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13234 do
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13239 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13242 fi
13243 done
13244 done
13245 IFS=$as_save_IFS
13246
13247 fi
13248 fi
13249 CC=$ac_cv_prog_CC
13250 if test -n "$CC"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13252 $as_echo "$CC" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13256 fi
13257
13258
13259 test -n "$CC" && break
13260 done
13261 fi
13262 if test -z "$CC"; then
13263 ac_ct_CC=$CC
13264 for ac_prog in cl.exe
13265 do
13266 # Extract the first word of "$ac_prog", so it can be a program name with args.
13267 set dummy $ac_prog; ac_word=$2
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13269 $as_echo_n "checking for $ac_word... " >&6; }
13270 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13271 $as_echo_n "(cached) " >&6
13272 else
13273 if test -n "$ac_ct_CC"; then
13274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13275 else
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $PATH
13278 do
13279 IFS=$as_save_IFS
13280 test -z "$as_dir" && as_dir=.
13281 for ac_exec_ext in '' $ac_executable_extensions; do
13282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13283 ac_cv_prog_ac_ct_CC="$ac_prog"
13284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13285 break 2
13286 fi
13287 done
13288 done
13289 IFS=$as_save_IFS
13290
13291 fi
13292 fi
13293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13294 if test -n "$ac_ct_CC"; then
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13296 $as_echo "$ac_ct_CC" >&6; }
13297 else
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13300 fi
13301
13302
13303 test -n "$ac_ct_CC" && break
13304 done
13305
13306 if test "x$ac_ct_CC" = x; then
13307 CC=""
13308 else
13309 case $cross_compiling:$ac_tool_warned in
13310 yes:)
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13313 ac_tool_warned=yes ;;
13314 esac
13315 CC=$ac_ct_CC
13316 fi
13317 fi
13318
13319 fi
13320
13321
13322 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13324 as_fn_error $? "no acceptable C compiler found in \$PATH
13325 See \`config.log' for more details" "$LINENO" 5; }
13326
13327 # Provide some information about the compiler.
13328 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13329 set X $ac_compile
13330 ac_compiler=$2
13331 for ac_option in --version -v -V -qversion; do
13332 { { ac_try="$ac_compiler $ac_option >&5"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336 esac
13337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13338 $as_echo "$ac_try_echo"; } >&5
13339 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13340 ac_status=$?
13341 if test -s conftest.err; then
13342 sed '10a\
13343 ... rest of stderr output deleted ...
13344 10q' conftest.err >conftest.er1
13345 cat conftest.er1 >&5
13346 fi
13347 rm -f conftest.er1 conftest.err
13348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13349 test $ac_status = 0; }
13350 done
13351
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13353 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13354 if ${ac_cv_c_compiler_gnu+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13359
13360 int
13361 main ()
13362 {
13363 #ifndef __GNUC__
13364 choke me
13365 #endif
13366
13367 ;
13368 return 0;
13369 }
13370 _ACEOF
13371 if ac_fn_c_try_compile "$LINENO"; then :
13372 ac_compiler_gnu=yes
13373 else
13374 ac_compiler_gnu=no
13375 fi
13376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13378
13379 fi
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13381 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13382 if test $ac_compiler_gnu = yes; then
13383 GCC=yes
13384 else
13385 GCC=
13386 fi
13387 ac_test_CFLAGS=${CFLAGS+set}
13388 ac_save_CFLAGS=$CFLAGS
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13390 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13391 if ${ac_cv_prog_cc_g+:} false; then :
13392 $as_echo_n "(cached) " >&6
13393 else
13394 ac_save_c_werror_flag=$ac_c_werror_flag
13395 ac_c_werror_flag=yes
13396 ac_cv_prog_cc_g=no
13397 CFLAGS="-g"
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400
13401 int
13402 main ()
13403 {
13404
13405 ;
13406 return 0;
13407 }
13408 _ACEOF
13409 if ac_fn_c_try_compile "$LINENO"; then :
13410 ac_cv_prog_cc_g=yes
13411 else
13412 CFLAGS=""
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13415
13416 int
13417 main ()
13418 {
13419
13420 ;
13421 return 0;
13422 }
13423 _ACEOF
13424 if ac_fn_c_try_compile "$LINENO"; then :
13425
13426 else
13427 ac_c_werror_flag=$ac_save_c_werror_flag
13428 CFLAGS="-g"
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13431
13432 int
13433 main ()
13434 {
13435
13436 ;
13437 return 0;
13438 }
13439 _ACEOF
13440 if ac_fn_c_try_compile "$LINENO"; then :
13441 ac_cv_prog_cc_g=yes
13442 fi
13443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13444 fi
13445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13446 fi
13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 ac_c_werror_flag=$ac_save_c_werror_flag
13449 fi
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13451 $as_echo "$ac_cv_prog_cc_g" >&6; }
13452 if test "$ac_test_CFLAGS" = set; then
13453 CFLAGS=$ac_save_CFLAGS
13454 elif test $ac_cv_prog_cc_g = yes; then
13455 if test "$GCC" = yes; then
13456 CFLAGS="-g -O2"
13457 else
13458 CFLAGS="-g"
13459 fi
13460 else
13461 if test "$GCC" = yes; then
13462 CFLAGS="-O2"
13463 else
13464 CFLAGS=
13465 fi
13466 fi
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13468 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13469 if ${ac_cv_prog_cc_c89+:} false; then :
13470 $as_echo_n "(cached) " >&6
13471 else
13472 ac_cv_prog_cc_c89=no
13473 ac_save_CC=$CC
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13476 #include <stdarg.h>
13477 #include <stdio.h>
13478 struct stat;
13479 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13480 struct buf { int x; };
13481 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13482 static char *e (p, i)
13483 char **p;
13484 int i;
13485 {
13486 return p[i];
13487 }
13488 static char *f (char * (*g) (char **, int), char **p, ...)
13489 {
13490 char *s;
13491 va_list v;
13492 va_start (v,p);
13493 s = g (p, va_arg (v,int));
13494 va_end (v);
13495 return s;
13496 }
13497
13498 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13499 function prototypes and stuff, but not '\xHH' hex character constants.
13500 These don't provoke an error unfortunately, instead are silently treated
13501 as 'x'. The following induces an error, until -std is added to get
13502 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13503 array size at least. It's necessary to write '\x00'==0 to get something
13504 that's true only with -std. */
13505 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13506
13507 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13508 inside strings and character constants. */
13509 #define FOO(x) 'x'
13510 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13511
13512 int test (int i, double x);
13513 struct s1 {int (*f) (int a);};
13514 struct s2 {int (*f) (double a);};
13515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13516 int argc;
13517 char **argv;
13518 int
13519 main ()
13520 {
13521 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13522 ;
13523 return 0;
13524 }
13525 _ACEOF
13526 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13527 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13528 do
13529 CC="$ac_save_CC $ac_arg"
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531 ac_cv_prog_cc_c89=$ac_arg
13532 fi
13533 rm -f core conftest.err conftest.$ac_objext
13534 test "x$ac_cv_prog_cc_c89" != "xno" && break
13535 done
13536 rm -f conftest.$ac_ext
13537 CC=$ac_save_CC
13538
13539 fi
13540 # AC_CACHE_VAL
13541 case "x$ac_cv_prog_cc_c89" in
13542 x)
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13544 $as_echo "none needed" >&6; } ;;
13545 xno)
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13547 $as_echo "unsupported" >&6; } ;;
13548 *)
13549 CC="$CC $ac_cv_prog_cc_c89"
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13551 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13552 esac
13553 if test "x$ac_cv_prog_cc_c89" != xno; then :
13554
13555 fi
13556
13557 ac_ext=c
13558 ac_cpp='$CPP $CPPFLAGS'
13559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13562
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
13564 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
13565 if ${ac_cv_prog_cc_c99+:} false; then :
13566 $as_echo_n "(cached) " >&6
13567 else
13568 ac_cv_prog_cc_c99=no
13569 ac_save_CC=$CC
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13572 #include <stdarg.h>
13573 #include <stdbool.h>
13574 #include <stdlib.h>
13575 #include <wchar.h>
13576 #include <stdio.h>
13577
13578 // Check varargs macros. These examples are taken from C99 6.10.3.5.
13579 #define debug(...) fprintf (stderr, __VA_ARGS__)
13580 #define showlist(...) puts (#__VA_ARGS__)
13581 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
13582 static void
13583 test_varargs_macros (void)
13584 {
13585 int x = 1234;
13586 int y = 5678;
13587 debug ("Flag");
13588 debug ("X = %d\n", x);
13589 showlist (The first, second, and third items.);
13590 report (x>y, "x is %d but y is %d", x, y);
13591 }
13592
13593 // Check long long types.
13594 #define BIG64 18446744073709551615ull
13595 #define BIG32 4294967295ul
13596 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13597 #if !BIG_OK
13598 your preprocessor is broken;
13599 #endif
13600 #if BIG_OK
13601 #else
13602 your preprocessor is broken;
13603 #endif
13604 static long long int bignum = -9223372036854775807LL;
13605 static unsigned long long int ubignum = BIG64;
13606
13607 struct incomplete_array
13608 {
13609 int datasize;
13610 double data[];
13611 };
13612
13613 struct named_init {
13614 int number;
13615 const wchar_t *name;
13616 double average;
13617 };
13618
13619 typedef const char *ccp;
13620
13621 static inline int
13622 test_restrict (ccp restrict text)
13623 {
13624 // See if C++-style comments work.
13625 // Iterate through items via the restricted pointer.
13626 // Also check for declarations in for loops.
13627 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13628 continue;
13629 return 0;
13630 }
13631
13632 // Check varargs and va_copy.
13633 static void
13634 test_varargs (const char *format, ...)
13635 {
13636 va_list args;
13637 va_start (args, format);
13638 va_list args_copy;
13639 va_copy (args_copy, args);
13640
13641 const char *str;
13642 int number;
13643 float fnumber;
13644
13645 while (*format)
13646 {
13647 switch (*format++)
13648 {
13649 case 's': // string
13650 str = va_arg (args_copy, const char *);
13651 break;
13652 case 'd': // int
13653 number = va_arg (args_copy, int);
13654 break;
13655 case 'f': // float
13656 fnumber = va_arg (args_copy, double);
13657 break;
13658 default:
13659 break;
13660 }
13661 }
13662 va_end (args_copy);
13663 va_end (args);
13664 }
13665
13666 int
13667 main ()
13668 {
13669
13670 // Check bool.
13671 _Bool success = false;
13672
13673 // Check restrict.
13674 if (test_restrict ("String literal") == 0)
13675 success = true;
13676 char *restrict newvar = "Another string";
13677
13678 // Check varargs.
13679 test_varargs ("s, d' f .", "string", 65, 34.234);
13680 test_varargs_macros ();
13681
13682 // Check flexible array members.
13683 struct incomplete_array *ia =
13684 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13685 ia->datasize = 10;
13686 for (int i = 0; i < ia->datasize; ++i)
13687 ia->data[i] = i * 1.234;
13688
13689 // Check named initializers.
13690 struct named_init ni = {
13691 .number = 34,
13692 .name = L"Test wide string",
13693 .average = 543.34343,
13694 };
13695
13696 ni.number = 58;
13697
13698 int dynamic_array[ni.number];
13699 dynamic_array[ni.number - 1] = 543;
13700
13701 // work around unused variable warnings
13702 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13703 || dynamic_array[ni.number - 1] != 543);
13704
13705 ;
13706 return 0;
13707 }
13708 _ACEOF
13709 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13710 do
13711 CC="$ac_save_CC $ac_arg"
13712 if ac_fn_c_try_compile "$LINENO"; then :
13713 ac_cv_prog_cc_c99=$ac_arg
13714 fi
13715 rm -f core conftest.err conftest.$ac_objext
13716 test "x$ac_cv_prog_cc_c99" != "xno" && break
13717 done
13718 rm -f conftest.$ac_ext
13719 CC=$ac_save_CC
13720
13721 fi
13722 # AC_CACHE_VAL
13723 case "x$ac_cv_prog_cc_c99" in
13724 x)
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13726 $as_echo "none needed" >&6; } ;;
13727 xno)
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13729 $as_echo "unsupported" >&6; } ;;
13730 *)
13731 CC="$CC $ac_cv_prog_cc_c99"
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13733 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13734 esac
13735 if test "x$ac_cv_prog_cc_c99" != xno; then :
13736
13737 fi
13738
13739
13740 if test "x$CC" != xcc; then
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
13742 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
13743 else
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
13745 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
13746 fi
13747 set dummy $CC; ac_cc=`$as_echo "$2" |
13748 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13749 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754
13755 int
13756 main ()
13757 {
13758
13759 ;
13760 return 0;
13761 }
13762 _ACEOF
13763 # Make sure it works both with $CC and with simple cc.
13764 # We do the test twice because some compilers refuse to overwrite an
13765 # existing .o file with -o, though they will create one.
13766 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13767 rm -f conftest2.*
13768 if { { case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771 esac
13772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13773 $as_echo "$ac_try_echo"; } >&5
13774 (eval "$ac_try") 2>&5
13775 ac_status=$?
13776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13777 test $ac_status = 0; } &&
13778 test -f conftest2.$ac_objext && { { case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781 esac
13782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13783 $as_echo "$ac_try_echo"; } >&5
13784 (eval "$ac_try") 2>&5
13785 ac_status=$?
13786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13787 test $ac_status = 0; };
13788 then
13789 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
13790 if test "x$CC" != xcc; then
13791 # Test first that cc exists at all.
13792 if { ac_try='cc -c conftest.$ac_ext >&5'
13793 { { case "(($ac_try" in
13794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13795 *) ac_try_echo=$ac_try;;
13796 esac
13797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13798 $as_echo "$ac_try_echo"; } >&5
13799 (eval "$ac_try") 2>&5
13800 ac_status=$?
13801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13802 test $ac_status = 0; }; }; then
13803 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13804 rm -f conftest2.*
13805 if { { case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13808 esac
13809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13810 $as_echo "$ac_try_echo"; } >&5
13811 (eval "$ac_try") 2>&5
13812 ac_status=$?
13813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13814 test $ac_status = 0; } &&
13815 test -f conftest2.$ac_objext && { { case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13818 esac
13819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13820 $as_echo "$ac_try_echo"; } >&5
13821 (eval "$ac_try") 2>&5
13822 ac_status=$?
13823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13824 test $ac_status = 0; };
13825 then
13826 # cc works too.
13827 :
13828 else
13829 # cc exists but doesn't like -o.
13830 eval ac_cv_prog_cc_${ac_cc}_c_o=no
13831 fi
13832 fi
13833 fi
13834 else
13835 eval ac_cv_prog_cc_${ac_cc}_c_o=no
13836 fi
13837 rm -f core conftest*
13838
13839 fi
13840 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13842 $as_echo "yes" >&6; }
13843 else
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13845 $as_echo "no" >&6; }
13846
13847 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
13848
13849 fi
13850
13851 # FIXME: we rely on the cache variable name because
13852 # there is no other way.
13853 set dummy $CC
13854 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13855 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
13856 if test "$am_t" != yes; then
13857 # Losing compiler, so override with the script.
13858 # FIXME: It is wrong to rewrite CC.
13859 # But if we don't then we get into trouble of one sort or another.
13860 # A longer-term fix would be to have automake use am__CC in this case,
13861 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13862 CC="$am_aux_dir/compile $CC"
13863 fi
13864
13865
13866 if test $ac_cv_c_compiler_gnu = yes; then
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13868 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
13869 if ${ac_cv_prog_gcc_traditional+:} false; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13872 ac_pattern="Autoconf.*'x'"
13873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874 /* end confdefs.h. */
13875 #include <sgtty.h>
13876 Autoconf TIOCGETP
13877 _ACEOF
13878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13879 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13880 ac_cv_prog_gcc_traditional=yes
13881 else
13882 ac_cv_prog_gcc_traditional=no
13883 fi
13884 rm -f conftest*
13885
13886
13887 if test $ac_cv_prog_gcc_traditional = no; then
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13890 #include <termio.h>
13891 Autoconf TCGETA
13892 _ACEOF
13893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13894 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13895 ac_cv_prog_gcc_traditional=yes
13896 fi
13897 rm -f conftest*
13898
13899 fi
13900 fi
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13902 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13903 if test $ac_cv_prog_gcc_traditional = yes; then
13904 CC="$CC -traditional"
13905 fi
13906 fi
13907
13908
13909 # Extract the first word of "m4", so it can be a program name with args.
13910 set dummy m4; ac_word=$2
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13912 $as_echo_n "checking for $ac_word... " >&6; }
13913 if ${ac_cv_path_M4+:} false; then :
13914 $as_echo_n "(cached) " >&6
13915 else
13916 case $M4 in
13917 [\\/]* | ?:[\\/]*)
13918 ac_cv_path_M4="$M4" # Let the user override the test with a path.
13919 ;;
13920 *)
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13923 do
13924 IFS=$as_save_IFS
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13928 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
13929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13930 break 2
13931 fi
13932 done
13933 done
13934 IFS=$as_save_IFS
13935
13936 ;;
13937 esac
13938 fi
13939 M4=$ac_cv_path_M4
13940 if test -n "$M4"; then
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
13942 $as_echo "$M4" >&6; }
13943 else
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13946 fi
13947
13948
13949 # Extract the first word of "xsltproc", so it can be a program name with args.
13950 set dummy xsltproc; ac_word=$2
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13952 $as_echo_n "checking for $ac_word... " >&6; }
13953 if ${ac_cv_path_XSLTPROC+:} false; then :
13954 $as_echo_n "(cached) " >&6
13955 else
13956 case $XSLTPROC in
13957 [\\/]* | ?:[\\/]*)
13958 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
13959 ;;
13960 *)
13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962 for as_dir in $PATH
13963 do
13964 IFS=$as_save_IFS
13965 test -z "$as_dir" && as_dir=.
13966 for ac_exec_ext in '' $ac_executable_extensions; do
13967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13968 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
13969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13970 break 2
13971 fi
13972 done
13973 done
13974 IFS=$as_save_IFS
13975
13976 ;;
13977 esac
13978 fi
13979 XSLTPROC=$ac_cv_path_XSLTPROC
13980 if test -n "$XSLTPROC"; then
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
13982 $as_echo "$XSLTPROC" >&6; }
13983 else
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13985 $as_echo "no" >&6; }
13986 fi
13987
13988
13989
13990 # Extract the first word of "quotaon", so it can be a program name with args.
13991 set dummy quotaon; ac_word=$2
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13993 $as_echo_n "checking for $ac_word... " >&6; }
13994 if ${ac_cv_path_QUOTAON+:} false; then :
13995 $as_echo_n "(cached) " >&6
13996 else
13997 case $QUOTAON in
13998 [\\/]* | ?:[\\/]*)
13999 ac_cv_path_QUOTAON="$QUOTAON" # Let the user override the test with a path.
14000 ;;
14001 *)
14002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14003 for as_dir in $PATH
14004 do
14005 IFS=$as_save_IFS
14006 test -z "$as_dir" && as_dir=.
14007 for ac_exec_ext in '' $ac_executable_extensions; do
14008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14009 ac_cv_path_QUOTAON="$as_dir/$ac_word$ac_exec_ext"
14010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14011 break 2
14012 fi
14013 done
14014 done
14015 IFS=$as_save_IFS
14016
14017 test -z "$ac_cv_path_QUOTAON" && ac_cv_path_QUOTAON="/usr/sbin/quotaon"
14018 ;;
14019 esac
14020 fi
14021 QUOTAON=$ac_cv_path_QUOTAON
14022 if test -n "$QUOTAON"; then
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QUOTAON" >&5
14024 $as_echo "$QUOTAON" >&6; }
14025 else
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14027 $as_echo "no" >&6; }
14028 fi
14029
14030
14031 # Extract the first word of "quotacheck", so it can be a program name with args.
14032 set dummy quotacheck; ac_word=$2
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14034 $as_echo_n "checking for $ac_word... " >&6; }
14035 if ${ac_cv_path_QUOTACHECK+:} false; then :
14036 $as_echo_n "(cached) " >&6
14037 else
14038 case $QUOTACHECK in
14039 [\\/]* | ?:[\\/]*)
14040 ac_cv_path_QUOTACHECK="$QUOTACHECK" # Let the user override the test with a path.
14041 ;;
14042 *)
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14045 do
14046 IFS=$as_save_IFS
14047 test -z "$as_dir" && as_dir=.
14048 for ac_exec_ext in '' $ac_executable_extensions; do
14049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14050 ac_cv_path_QUOTACHECK="$as_dir/$ac_word$ac_exec_ext"
14051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14052 break 2
14053 fi
14054 done
14055 done
14056 IFS=$as_save_IFS
14057
14058 test -z "$ac_cv_path_QUOTACHECK" && ac_cv_path_QUOTACHECK="/usr/sbin/quotacheck"
14059 ;;
14060 esac
14061 fi
14062 QUOTACHECK=$ac_cv_path_QUOTACHECK
14063 if test -n "$QUOTACHECK"; then
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QUOTACHECK" >&5
14065 $as_echo "$QUOTACHECK" >&6; }
14066 else
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 $as_echo "no" >&6; }
14069 fi
14070
14071
14072
14073 # Extract the first word of "setcap", so it can be a program name with args.
14074 set dummy setcap; ac_word=$2
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14076 $as_echo_n "checking for $ac_word... " >&6; }
14077 if ${ac_cv_path_SETCAP+:} false; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 case $SETCAP in
14081 [\\/]* | ?:[\\/]*)
14082 ac_cv_path_SETCAP="$SETCAP" # Let the user override the test with a path.
14083 ;;
14084 *)
14085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14087 do
14088 IFS=$as_save_IFS
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
14091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14092 ac_cv_path_SETCAP="$as_dir/$ac_word$ac_exec_ext"
14093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 break 2
14095 fi
14096 done
14097 done
14098 IFS=$as_save_IFS
14099
14100 test -z "$ac_cv_path_SETCAP" && ac_cv_path_SETCAP="/usr/sbin/setcap"
14101 ;;
14102 esac
14103 fi
14104 SETCAP=$ac_cv_path_SETCAP
14105 if test -n "$SETCAP"; then
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETCAP" >&5
14107 $as_echo "$SETCAP" >&6; }
14108 else
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110 $as_echo "no" >&6; }
14111 fi
14112
14113
14114
14115 # Extract the first word of "kill", so it can be a program name with args.
14116 set dummy kill; ac_word=$2
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14118 $as_echo_n "checking for $ac_word... " >&6; }
14119 if ${ac_cv_path_KILL+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 case $KILL in
14123 [\\/]* | ?:[\\/]*)
14124 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
14125 ;;
14126 *)
14127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14128 for as_dir in $PATH
14129 do
14130 IFS=$as_save_IFS
14131 test -z "$as_dir" && as_dir=.
14132 for ac_exec_ext in '' $ac_executable_extensions; do
14133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14134 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
14135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14136 break 2
14137 fi
14138 done
14139 done
14140 IFS=$as_save_IFS
14141
14142 test -z "$ac_cv_path_KILL" && ac_cv_path_KILL="/usr/bin/kill"
14143 ;;
14144 esac
14145 fi
14146 KILL=$ac_cv_path_KILL
14147 if test -n "$KILL"; then
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
14149 $as_echo "$KILL" >&6; }
14150 else
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14152 $as_echo "no" >&6; }
14153 fi
14154
14155
14156
14157 # gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
14158
14159
14160
14161
14162
14163
14164
14165
14166 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14167 if test -n "$ac_tool_prefix"; then
14168 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14169 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14171 $as_echo_n "checking for $ac_word... " >&6; }
14172 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14175 case $PKG_CONFIG in
14176 [\\/]* | ?:[\\/]*)
14177 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14178 ;;
14179 *)
14180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181 for as_dir in $PATH
14182 do
14183 IFS=$as_save_IFS
14184 test -z "$as_dir" && as_dir=.
14185 for ac_exec_ext in '' $ac_executable_extensions; do
14186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14187 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14189 break 2
14190 fi
14191 done
14192 done
14193 IFS=$as_save_IFS
14194
14195 ;;
14196 esac
14197 fi
14198 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14199 if test -n "$PKG_CONFIG"; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14201 $as_echo "$PKG_CONFIG" >&6; }
14202 else
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14204 $as_echo "no" >&6; }
14205 fi
14206
14207
14208 fi
14209 if test -z "$ac_cv_path_PKG_CONFIG"; then
14210 ac_pt_PKG_CONFIG=$PKG_CONFIG
14211 # Extract the first word of "pkg-config", so it can be a program name with args.
14212 set dummy pkg-config; ac_word=$2
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14214 $as_echo_n "checking for $ac_word... " >&6; }
14215 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14216 $as_echo_n "(cached) " >&6
14217 else
14218 case $ac_pt_PKG_CONFIG in
14219 [\\/]* | ?:[\\/]*)
14220 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # 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 test -z "$as_dir" && as_dir=.
14228 for ac_exec_ext in '' $ac_executable_extensions; do
14229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14230 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14232 break 2
14233 fi
14234 done
14235 done
14236 IFS=$as_save_IFS
14237
14238 ;;
14239 esac
14240 fi
14241 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14242 if test -n "$ac_pt_PKG_CONFIG"; then
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14244 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14245 else
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14247 $as_echo "no" >&6; }
14248 fi
14249
14250 if test "x$ac_pt_PKG_CONFIG" = x; then
14251 PKG_CONFIG=""
14252 else
14253 case $cross_compiling:$ac_tool_warned in
14254 yes:)
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14257 ac_tool_warned=yes ;;
14258 esac
14259 PKG_CONFIG=$ac_pt_PKG_CONFIG
14260 fi
14261 else
14262 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14263 fi
14264
14265 fi
14266 if test -n "$PKG_CONFIG"; then
14267 _pkg_min_version=0.9.0
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14269 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14270 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14272 $as_echo "yes" >&6; }
14273 else
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275 $as_echo "no" >&6; }
14276 PKG_CONFIG=""
14277 fi
14278 fi
14279
14280
14281
14282 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14283 set dummy gtkdoc-check; ac_word=$2
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285 $as_echo_n "checking for $ac_word... " >&6; }
14286 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 case $GTKDOC_CHECK in
14290 [\\/]* | ?:[\\/]*)
14291 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
14292 ;;
14293 *)
14294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295 for as_dir in $PATH
14296 do
14297 IFS=$as_save_IFS
14298 test -z "$as_dir" && as_dir=.
14299 for ac_exec_ext in '' $ac_executable_extensions; do
14300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14301 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
14302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14303 break 2
14304 fi
14305 done
14306 done
14307 IFS=$as_save_IFS
14308
14309 ;;
14310 esac
14311 fi
14312 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
14313 if test -n "$GTKDOC_CHECK"; then
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
14315 $as_echo "$GTKDOC_CHECK" >&6; }
14316 else
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 $as_echo "no" >&6; }
14319 fi
14320
14321
14322 for ac_prog in gtkdoc-rebase
14323 do
14324 # Extract the first word of "$ac_prog", so it can be a program name with args.
14325 set dummy $ac_prog; ac_word=$2
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14327 $as_echo_n "checking for $ac_word... " >&6; }
14328 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
14329 $as_echo_n "(cached) " >&6
14330 else
14331 case $GTKDOC_REBASE in
14332 [\\/]* | ?:[\\/]*)
14333 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
14334 ;;
14335 *)
14336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14337 for as_dir in $PATH
14338 do
14339 IFS=$as_save_IFS
14340 test -z "$as_dir" && as_dir=.
14341 for ac_exec_ext in '' $ac_executable_extensions; do
14342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14343 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
14344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14345 break 2
14346 fi
14347 done
14348 done
14349 IFS=$as_save_IFS
14350
14351 ;;
14352 esac
14353 fi
14354 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
14355 if test -n "$GTKDOC_REBASE"; then
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
14357 $as_echo "$GTKDOC_REBASE" >&6; }
14358 else
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14360 $as_echo "no" >&6; }
14361 fi
14362
14363
14364 test -n "$GTKDOC_REBASE" && break
14365 done
14366 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
14367
14368 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
14369 set dummy gtkdoc-mkpdf; ac_word=$2
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14371 $as_echo_n "checking for $ac_word... " >&6; }
14372 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
14373 $as_echo_n "(cached) " >&6
14374 else
14375 case $GTKDOC_MKPDF in
14376 [\\/]* | ?:[\\/]*)
14377 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
14378 ;;
14379 *)
14380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14381 for as_dir in $PATH
14382 do
14383 IFS=$as_save_IFS
14384 test -z "$as_dir" && as_dir=.
14385 for ac_exec_ext in '' $ac_executable_extensions; do
14386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14387 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
14388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14389 break 2
14390 fi
14391 done
14392 done
14393 IFS=$as_save_IFS
14394
14395 ;;
14396 esac
14397 fi
14398 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
14399 if test -n "$GTKDOC_MKPDF"; then
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
14401 $as_echo "$GTKDOC_MKPDF" >&6; }
14402 else
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404 $as_echo "no" >&6; }
14405 fi
14406
14407
14408
14409
14410 # Check whether --with-html-dir was given.
14411 if test "${with_html_dir+set}" = set; then :
14412 withval=$with_html_dir;
14413 else
14414 with_html_dir='${datadir}/gtk-doc/html'
14415 fi
14416
14417 HTML_DIR="$with_html_dir"
14418
14419
14420 # Check whether --enable-gtk-doc was given.
14421 if test "${enable_gtk_doc+set}" = set; then :
14422 enableval=$enable_gtk_doc;
14423 else
14424 enable_gtk_doc=no
14425 fi
14426
14427
14428 if test x$enable_gtk_doc = xyes; then
14429 if test -n "$PKG_CONFIG" && \
14430 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.18\""; } >&5
14431 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.18") 2>&5
14432 ac_status=$?
14433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14434 test $ac_status = 0; }; then
14435 :
14436 else
14437 as_fn_error $? "You need to have gtk-doc >= 1.18 installed to build $PACKAGE_NAME" "$LINENO" 5
14438 fi
14439 if test "x$PACKAGE_NAME" != "xglib"; then
14440
14441 pkg_failed=no
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
14443 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
14444
14445 if test -n "$GTKDOC_DEPS_CFLAGS"; then
14446 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
14447 elif test -n "$PKG_CONFIG"; then
14448 if test -n "$PKG_CONFIG" && \
14449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
14450 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
14451 ac_status=$?
14452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14453 test $ac_status = 0; }; then
14454 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
14455 test "x$?" != "x0" && pkg_failed=yes
14456 else
14457 pkg_failed=yes
14458 fi
14459 else
14460 pkg_failed=untried
14461 fi
14462 if test -n "$GTKDOC_DEPS_LIBS"; then
14463 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
14464 elif test -n "$PKG_CONFIG"; then
14465 if test -n "$PKG_CONFIG" && \
14466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
14467 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
14468 ac_status=$?
14469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14470 test $ac_status = 0; }; then
14471 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
14472 test "x$?" != "x0" && pkg_failed=yes
14473 else
14474 pkg_failed=yes
14475 fi
14476 else
14477 pkg_failed=untried
14478 fi
14479
14480
14481
14482 if test $pkg_failed = yes; then
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14484 $as_echo "no" >&6; }
14485
14486 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14487 _pkg_short_errors_supported=yes
14488 else
14489 _pkg_short_errors_supported=no
14490 fi
14491 if test $_pkg_short_errors_supported = yes; then
14492 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`
14493 else
14494 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
14495 fi
14496 # Put the nasty error message in config.log where it belongs
14497 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
14498
14499 as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
14500
14501 $GTKDOC_DEPS_PKG_ERRORS
14502
14503 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14504 installed software in a non-standard prefix.
14505
14506 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
14507 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
14508 See the pkg-config man page for more details." "$LINENO" 5
14509 elif test $pkg_failed = untried; then
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14511 $as_echo "no" >&6; }
14512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14514 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14515 is in your PATH or set the PKG_CONFIG environment variable to the full
14516 path to pkg-config.
14517
14518 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
14519 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
14520 See the pkg-config man page for more details.
14521
14522 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14523 See \`config.log' for more details" "$LINENO" 5; }
14524 else
14525 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
14526 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14528 $as_echo "yes" >&6; }
14529
14530 fi
14531 fi
14532 fi
14533
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
14535 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
14537 $as_echo "$enable_gtk_doc" >&6; }
14538
14539 # Check whether --enable-gtk-doc-html was given.
14540 if test "${enable_gtk_doc_html+set}" = set; then :
14541 enableval=$enable_gtk_doc_html;
14542 else
14543 enable_gtk_doc_html=yes
14544 fi
14545
14546 # Check whether --enable-gtk-doc-pdf was given.
14547 if test "${enable_gtk_doc_pdf+set}" = set; then :
14548 enableval=$enable_gtk_doc_pdf;
14549 else
14550 enable_gtk_doc_pdf=no
14551 fi
14552
14553
14554 if test -z "$GTKDOC_MKPDF"; then
14555 enable_gtk_doc_pdf=no
14556 fi
14557
14558
14559 if test x$enable_gtk_doc = xyes; then
14560 ENABLE_GTK_DOC_TRUE=
14561 ENABLE_GTK_DOC_FALSE='#'
14562 else
14563 ENABLE_GTK_DOC_TRUE='#'
14564 ENABLE_GTK_DOC_FALSE=
14565 fi
14566
14567 if test x$enable_gtk_doc_html = xyes; then
14568 GTK_DOC_BUILD_HTML_TRUE=
14569 GTK_DOC_BUILD_HTML_FALSE='#'
14570 else
14571 GTK_DOC_BUILD_HTML_TRUE='#'
14572 GTK_DOC_BUILD_HTML_FALSE=
14573 fi
14574
14575 if test x$enable_gtk_doc_pdf = xyes; then
14576 GTK_DOC_BUILD_PDF_TRUE=
14577 GTK_DOC_BUILD_PDF_FALSE='#'
14578 else
14579 GTK_DOC_BUILD_PDF_TRUE='#'
14580 GTK_DOC_BUILD_PDF_FALSE=
14581 fi
14582
14583 if test -n "$LIBTOOL"; then
14584 GTK_DOC_USE_LIBTOOL_TRUE=
14585 GTK_DOC_USE_LIBTOOL_FALSE='#'
14586 else
14587 GTK_DOC_USE_LIBTOOL_TRUE='#'
14588 GTK_DOC_USE_LIBTOOL_FALSE=
14589 fi
14590
14591 if test -n "$GTKDOC_REBASE"; then
14592 GTK_DOC_USE_REBASE_TRUE=
14593 GTK_DOC_USE_REBASE_FALSE='#'
14594 else
14595 GTK_DOC_USE_REBASE_TRUE='#'
14596 GTK_DOC_USE_REBASE_FALSE=
14597 fi
14598
14599
14600
14601
14602 if test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x; then :
14603
14604 as_fn_error $? "*** GTK doc requested but xsltproc not found" "$LINENO" 5
14605
14606 fi
14607
14608
14609
14610
14611
14612 # Check whether --enable-introspection was given.
14613 if test "${enable_introspection+set}" = set; then :
14614 enableval=$enable_introspection;
14615 else
14616 enable_introspection=auto
14617 fi
14618
14619
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
14621 $as_echo_n "checking for gobject-introspection... " >&6; }
14622
14623 case $enable_introspection in #(
14624 no) :
14625 found_introspection="no (disabled, use --enable-introspection to enable)"
14626 ;; #(
14627 yes) :
14628 if test -n "$PKG_CONFIG" && \
14629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
14630 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
14631 ac_status=$?
14632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14633 test $ac_status = 0; }; then
14634 :
14635 else
14636 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
14637 fi
14638 if test -n "$PKG_CONFIG" && \
14639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.31.1\""; } >&5
14640 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.31.1") 2>&5
14641 ac_status=$?
14642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643 test $ac_status = 0; }; then
14644 found_introspection=yes
14645 else
14646 as_fn_error $? "You need to have gobject-introspection >= 1.31.1 installed to build systemd" "$LINENO" 5
14647 fi
14648 ;; #(
14649 auto) :
14650 if test -n "$PKG_CONFIG" && \
14651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.31.1\""; } >&5
14652 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.31.1") 2>&5
14653 ac_status=$?
14654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14655 test $ac_status = 0; }; then
14656 found_introspection=yes
14657 else
14658 found_introspection=no
14659 fi
14660 enable_introspection=$found_introspection
14661 ;; #(
14662 *) :
14663 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
14664 ;;
14665 esac
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
14667 $as_echo "$found_introspection" >&6; }
14668
14669 INTROSPECTION_SCANNER=
14670 INTROSPECTION_COMPILER=
14671 INTROSPECTION_GENERATE=
14672 INTROSPECTION_GIRDIR=
14673 INTROSPECTION_TYPELIBDIR=
14674 if test "x$found_introspection" = "xyes"; then
14675 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14676 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14677 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
14678 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
14679 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
14680 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
14681 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
14682 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
14683 fi
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693 if test "x$found_introspection" = "xyes"; then
14694 HAVE_INTROSPECTION_TRUE=
14695 HAVE_INTROSPECTION_FALSE='#'
14696 else
14697 HAVE_INTROSPECTION_TRUE='#'
14698 HAVE_INTROSPECTION_FALSE=
14699 fi
14700
14701
14702
14703
14704
14705 if test -n "$ac_tool_prefix"; then
14706 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
14707 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14709 $as_echo_n "checking for $ac_word... " >&6; }
14710 if ${ac_cv_prog_OBJCOPY+:} false; then :
14711 $as_echo_n "(cached) " >&6
14712 else
14713 if test -n "$OBJCOPY"; then
14714 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
14715 else
14716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14717 for as_dir in $PATH
14718 do
14719 IFS=$as_save_IFS
14720 test -z "$as_dir" && as_dir=.
14721 for ac_exec_ext in '' $ac_executable_extensions; do
14722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14723 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
14724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14725 break 2
14726 fi
14727 done
14728 done
14729 IFS=$as_save_IFS
14730
14731 fi
14732 fi
14733 OBJCOPY=$ac_cv_prog_OBJCOPY
14734 if test -n "$OBJCOPY"; then
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
14736 $as_echo "$OBJCOPY" >&6; }
14737 else
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14739 $as_echo "no" >&6; }
14740 fi
14741
14742
14743 fi
14744 if test -z "$ac_cv_prog_OBJCOPY"; then
14745 ac_ct_OBJCOPY=$OBJCOPY
14746 # Extract the first word of "objcopy", so it can be a program name with args.
14747 set dummy objcopy; ac_word=$2
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14749 $as_echo_n "checking for $ac_word... " >&6; }
14750 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
14751 $as_echo_n "(cached) " >&6
14752 else
14753 if test -n "$ac_ct_OBJCOPY"; then
14754 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
14755 else
14756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14757 for as_dir in $PATH
14758 do
14759 IFS=$as_save_IFS
14760 test -z "$as_dir" && as_dir=.
14761 for ac_exec_ext in '' $ac_executable_extensions; do
14762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14763 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
14764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14765 break 2
14766 fi
14767 done
14768 done
14769 IFS=$as_save_IFS
14770
14771 fi
14772 fi
14773 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
14774 if test -n "$ac_ct_OBJCOPY"; then
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
14776 $as_echo "$ac_ct_OBJCOPY" >&6; }
14777 else
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779 $as_echo "no" >&6; }
14780 fi
14781
14782 if test "x$ac_ct_OBJCOPY" = x; then
14783 OBJCOPY=""
14784 else
14785 case $cross_compiling:$ac_tool_warned in
14786 yes:)
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14789 ac_tool_warned=yes ;;
14790 esac
14791 OBJCOPY=$ac_ct_OBJCOPY
14792 fi
14793 else
14794 OBJCOPY="$ac_cv_prog_OBJCOPY"
14795 fi
14796
14797 if test -n "$ac_tool_prefix"; then
14798 # Extract the first word of "${ac_tool_prefix}strings", so it can be a program name with args.
14799 set dummy ${ac_tool_prefix}strings; ac_word=$2
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14801 $as_echo_n "checking for $ac_word... " >&6; }
14802 if ${ac_cv_prog_STRINGS+:} false; then :
14803 $as_echo_n "(cached) " >&6
14804 else
14805 if test -n "$STRINGS"; then
14806 ac_cv_prog_STRINGS="$STRINGS" # Let the user override the test.
14807 else
14808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14809 for as_dir in $PATH
14810 do
14811 IFS=$as_save_IFS
14812 test -z "$as_dir" && as_dir=.
14813 for ac_exec_ext in '' $ac_executable_extensions; do
14814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14815 ac_cv_prog_STRINGS="${ac_tool_prefix}strings"
14816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14817 break 2
14818 fi
14819 done
14820 done
14821 IFS=$as_save_IFS
14822
14823 fi
14824 fi
14825 STRINGS=$ac_cv_prog_STRINGS
14826 if test -n "$STRINGS"; then
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRINGS" >&5
14828 $as_echo "$STRINGS" >&6; }
14829 else
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14831 $as_echo "no" >&6; }
14832 fi
14833
14834
14835 fi
14836 if test -z "$ac_cv_prog_STRINGS"; then
14837 ac_ct_STRINGS=$STRINGS
14838 # Extract the first word of "strings", so it can be a program name with args.
14839 set dummy strings; ac_word=$2
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14841 $as_echo_n "checking for $ac_word... " >&6; }
14842 if ${ac_cv_prog_ac_ct_STRINGS+:} false; then :
14843 $as_echo_n "(cached) " >&6
14844 else
14845 if test -n "$ac_ct_STRINGS"; then
14846 ac_cv_prog_ac_ct_STRINGS="$ac_ct_STRINGS" # Let the user override the test.
14847 else
14848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14849 for as_dir in $PATH
14850 do
14851 IFS=$as_save_IFS
14852 test -z "$as_dir" && as_dir=.
14853 for ac_exec_ext in '' $ac_executable_extensions; do
14854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14855 ac_cv_prog_ac_ct_STRINGS="strings"
14856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14857 break 2
14858 fi
14859 done
14860 done
14861 IFS=$as_save_IFS
14862
14863 fi
14864 fi
14865 ac_ct_STRINGS=$ac_cv_prog_ac_ct_STRINGS
14866 if test -n "$ac_ct_STRINGS"; then
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRINGS" >&5
14868 $as_echo "$ac_ct_STRINGS" >&6; }
14869 else
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14871 $as_echo "no" >&6; }
14872 fi
14873
14874 if test "x$ac_ct_STRINGS" = x; then
14875 STRINGS=""
14876 else
14877 case $cross_compiling:$ac_tool_warned in
14878 yes:)
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14881 ac_tool_warned=yes ;;
14882 esac
14883 STRINGS=$ac_ct_STRINGS
14884 fi
14885 else
14886 STRINGS="$ac_cv_prog_STRINGS"
14887 fi
14888
14889 if test -n "$ac_tool_prefix"; then
14890 # Extract the first word of "${ac_tool_prefix}gperf", so it can be a program name with args.
14891 set dummy ${ac_tool_prefix}gperf; ac_word=$2
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14893 $as_echo_n "checking for $ac_word... " >&6; }
14894 if ${ac_cv_prog_GPERF+:} false; then :
14895 $as_echo_n "(cached) " >&6
14896 else
14897 if test -n "$GPERF"; then
14898 ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
14899 else
14900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14901 for as_dir in $PATH
14902 do
14903 IFS=$as_save_IFS
14904 test -z "$as_dir" && as_dir=.
14905 for ac_exec_ext in '' $ac_executable_extensions; do
14906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14907 ac_cv_prog_GPERF="${ac_tool_prefix}gperf"
14908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14909 break 2
14910 fi
14911 done
14912 done
14913 IFS=$as_save_IFS
14914
14915 fi
14916 fi
14917 GPERF=$ac_cv_prog_GPERF
14918 if test -n "$GPERF"; then
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
14920 $as_echo "$GPERF" >&6; }
14921 else
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14923 $as_echo "no" >&6; }
14924 fi
14925
14926
14927 fi
14928 if test -z "$ac_cv_prog_GPERF"; then
14929 ac_ct_GPERF=$GPERF
14930 # Extract the first word of "gperf", so it can be a program name with args.
14931 set dummy gperf; ac_word=$2
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14933 $as_echo_n "checking for $ac_word... " >&6; }
14934 if ${ac_cv_prog_ac_ct_GPERF+:} false; then :
14935 $as_echo_n "(cached) " >&6
14936 else
14937 if test -n "$ac_ct_GPERF"; then
14938 ac_cv_prog_ac_ct_GPERF="$ac_ct_GPERF" # Let the user override the test.
14939 else
14940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14941 for as_dir in $PATH
14942 do
14943 IFS=$as_save_IFS
14944 test -z "$as_dir" && as_dir=.
14945 for ac_exec_ext in '' $ac_executable_extensions; do
14946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14947 ac_cv_prog_ac_ct_GPERF="gperf"
14948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14949 break 2
14950 fi
14951 done
14952 done
14953 IFS=$as_save_IFS
14954
14955 fi
14956 fi
14957 ac_ct_GPERF=$ac_cv_prog_ac_ct_GPERF
14958 if test -n "$ac_ct_GPERF"; then
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GPERF" >&5
14960 $as_echo "$ac_ct_GPERF" >&6; }
14961 else
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14963 $as_echo "no" >&6; }
14964 fi
14965
14966 if test "x$ac_ct_GPERF" = x; then
14967 GPERF=""
14968 else
14969 case $cross_compiling:$ac_tool_warned in
14970 yes:)
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14973 ac_tool_warned=yes ;;
14974 esac
14975 GPERF=$ac_ct_GPERF
14976 fi
14977 else
14978 GPERF="$ac_cv_prog_GPERF"
14979 fi
14980
14981 if test -z "$GPERF" ; then
14982 as_fn_error $? "*** gperf not found" "$LINENO" 5
14983 fi
14984
14985
14986 for flag in \
14987 -pipe \
14988 -Wall \
14989 -Wextra \
14990 -Wno-inline \
14991 -Wundef \
14992 "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
14993 -Wlogical-op \
14994 -Wsign-compare \
14995 -Wmissing-include-dirs \
14996 -Wold-style-definition \
14997 -Wpointer-arith \
14998 -Winit-self \
14999 -Wdeclaration-after-statement \
15000 -Wfloat-equal \
15001 -Wmissing-prototypes \
15002 -Wstrict-prototypes \
15003 -Wredundant-decls \
15004 -Wmissing-declarations \
15005 -Wmissing-noreturn \
15006 -Wshadow \
15007 -Wendif-labels \
15008 -Wcast-align \
15009 -Wstrict-aliasing=2 \
15010 -Wwrite-strings \
15011 -Wno-long-long \
15012 -Wno-overlength-strings \
15013 -Wno-unused-parameter \
15014 -Wno-missing-field-initializers \
15015 -Wno-unused-result \
15016 -Werror=overflow \
15017 -ffast-math \
15018 -fno-common \
15019 -fdiagnostics-show-option \
15020 -fno-strict-aliasing \
15021 -fvisibility=hidden \
15022 -ffunction-sections \
15023 -fdata-sections \
15024 -fstack-protector \
15025 --param=ssp-buffer-size=4; do
15026
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CFLAGS" >&5
15028 $as_echo_n "checking if $CC supports flag $flag in envvar CFLAGS... " >&6; }
15029 if { as_var=`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032 eval "cc_save_CFLAGS='${CFLAGS}'"
15033 eval "CFLAGS='-Werror $flag'"
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15036 int a = 0; int main(void) { return a; }
15037 _ACEOF
15038 if ac_fn_c_try_compile "$LINENO"; then :
15039 eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='yes'"
15040 else
15041 eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='no'"
15042 fi
15043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044 eval "CFLAGS='$cc_save_CFLAGS'"
15045 fi
15046 eval ac_res=\$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15048 $as_echo "$ac_res" >&6; }
15049
15050 if eval test x$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh` = xyes; then :
15051 eval "with_cflags='${with_cflags} $flag'"
15052 fi
15053
15054 done
15055
15056 OUR_CFLAGS=$with_cflags
15057
15058
15059 case $CFLAGS in #(
15060 *-O[12345g\ ]*) :
15061
15062
15063 for flag in \
15064 -Wp,-D_FORTIFY_SOURCE=2; do
15065
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CPPFLAGS" >&5
15067 $as_echo_n "checking if $CC supports flag $flag in envvar CPPFLAGS... " >&6; }
15068 if { as_var=`$as_echo "cc_cv_CPPFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15069 $as_echo_n "(cached) " >&6
15070 else
15071 eval "cc_save_CPPFLAGS='${CPPFLAGS}'"
15072 eval "CPPFLAGS='-Werror $flag'"
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15075 int a = 0; int main(void) { return a; }
15076 _ACEOF
15077 if ac_fn_c_try_compile "$LINENO"; then :
15078 eval "`$as_echo "cc_cv_CPPFLAGS_$flag" | $as_tr_sh`='yes'"
15079 else
15080 eval "`$as_echo "cc_cv_CPPFLAGS_$flag" | $as_tr_sh`='no'"
15081 fi
15082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15083 eval "CPPFLAGS='$cc_save_CPPFLAGS'"
15084 fi
15085 eval ac_res=\$`$as_echo "cc_cv_CPPFLAGS_$flag" | $as_tr_sh`
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15087 $as_echo "$ac_res" >&6; }
15088
15089 if eval test x$`$as_echo "cc_cv_CPPFLAGS_$flag" | $as_tr_sh` = xyes; then :
15090 eval "with_cppflags='${with_cppflags} $flag'"
15091 fi
15092
15093 done
15094 ;; #(
15095 *) :
15096
15097 python_extra_cflags=-Wp,-U_FORTIFY_SOURCE
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipping -D_FORTIFY_SOURCE, optimization not enabled" >&5
15099 $as_echo "skipping -D_FORTIFY_SOURCE, optimization not enabled" >&6; } ;;
15100 esac
15101 OUR_CPPFLAGS=$with_cppflags
15102
15103
15104
15105 for flag in \
15106 -Wl,--as-needed \
15107 -Wl,--no-undefined \
15108 -Wl,--gc-sections \
15109 -Wl,-z,relro \
15110 -Wl,-z,now; do
15111
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar LDFLAGS" >&5
15113 $as_echo_n "checking if $CC supports flag $flag in envvar LDFLAGS... " >&6; }
15114 if { as_var=`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15115 $as_echo_n "(cached) " >&6
15116 else
15117 eval "cc_save_LDFLAGS='${LDFLAGS}'"
15118 eval "LDFLAGS='-Werror $flag'"
15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h. */
15121 int a = 0; int main(void) { return a; }
15122 _ACEOF
15123 if ac_fn_c_try_compile "$LINENO"; then :
15124 eval "`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='yes'"
15125 else
15126 eval "`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='no'"
15127 fi
15128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15129 eval "LDFLAGS='$cc_save_LDFLAGS'"
15130 fi
15131 eval ac_res=\$`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15133 $as_echo "$ac_res" >&6; }
15134
15135 if eval test x$`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh` = xyes; then :
15136 eval "with_ldflags='${with_ldflags} $flag'"
15137 fi
15138
15139 done
15140
15141 OUR_LDFLAGS=$with_ldflags
15142
15143
15144 # ------------------------------------------------------------------------------
15145 # we use python to build the man page index, and for systemd-python
15146 have_python=no
15147 have_python_devel=no
15148
15149
15150 # Check whether --with-python was given.
15151 if test "${with_python+set}" = set; then :
15152 withval=$with_python;
15153 fi
15154
15155
15156 if test "x$with_python" != "xno"; then :
15157
15158
15159
15160
15161
15162
15163
15164 # Find any Python interpreter.
15165 if test -z "$PYTHON"; then
15166 for ac_prog in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
15167 do
15168 # Extract the first word of "$ac_prog", so it can be a program name with args.
15169 set dummy $ac_prog; ac_word=$2
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15171 $as_echo_n "checking for $ac_word... " >&6; }
15172 if ${ac_cv_path_PYTHON+:} false; then :
15173 $as_echo_n "(cached) " >&6
15174 else
15175 case $PYTHON in
15176 [\\/]* | ?:[\\/]*)
15177 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15178 ;;
15179 *)
15180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15181 for as_dir in $PATH
15182 do
15183 IFS=$as_save_IFS
15184 test -z "$as_dir" && as_dir=.
15185 for ac_exec_ext in '' $ac_executable_extensions; do
15186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15187 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15189 break 2
15190 fi
15191 done
15192 done
15193 IFS=$as_save_IFS
15194
15195 ;;
15196 esac
15197 fi
15198 PYTHON=$ac_cv_path_PYTHON
15199 if test -n "$PYTHON"; then
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15201 $as_echo "$PYTHON" >&6; }
15202 else
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15204 $as_echo "no" >&6; }
15205 fi
15206
15207
15208 test -n "$PYTHON" && break
15209 done
15210 test -n "$PYTHON" || PYTHON=":"
15211
15212 fi
15213 am_display_PYTHON=python
15214
15215
15216 if test "$PYTHON" = :; then
15217 :
15218 else
15219
15220
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
15222 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
15223 if ${am_cv_python_version+:} false; then :
15224 $as_echo_n "(cached) " >&6
15225 else
15226 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
15227 fi
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
15229 $as_echo "$am_cv_python_version" >&6; }
15230 PYTHON_VERSION=$am_cv_python_version
15231
15232
15233
15234 PYTHON_PREFIX='${prefix}'
15235
15236 PYTHON_EXEC_PREFIX='${exec_prefix}'
15237
15238
15239
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
15241 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
15242 if ${am_cv_python_platform+:} false; then :
15243 $as_echo_n "(cached) " >&6
15244 else
15245 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
15246 fi
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
15248 $as_echo "$am_cv_python_platform" >&6; }
15249 PYTHON_PLATFORM=$am_cv_python_platform
15250
15251
15252 # Just factor out some code duplication.
15253 am_python_setup_sysconfig="\
15254 import sys
15255 # Prefer sysconfig over distutils.sysconfig, for better compatibility
15256 # with python 3.x. See automake bug#10227.
15257 try:
15258 import sysconfig
15259 except ImportError:
15260 can_use_sysconfig = 0
15261 else:
15262 can_use_sysconfig = 1
15263 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
15264 # <https://github.com/pypa/virtualenv/issues/118>
15265 try:
15266 from platform import python_implementation
15267 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
15268 can_use_sysconfig = 0
15269 except ImportError:
15270 pass"
15271
15272
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
15274 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
15275 if ${am_cv_python_pythondir+:} false; then :
15276 $as_echo_n "(cached) " >&6
15277 else
15278 if test "x$prefix" = xNONE
15279 then
15280 am_py_prefix=$ac_default_prefix
15281 else
15282 am_py_prefix=$prefix
15283 fi
15284 am_cv_python_pythondir=`$PYTHON -c "
15285 $am_python_setup_sysconfig
15286 if can_use_sysconfig:
15287 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
15288 else:
15289 from distutils import sysconfig
15290 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
15291 sys.stdout.write(sitedir)"`
15292 case $am_cv_python_pythondir in
15293 $am_py_prefix*)
15294 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
15295 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
15296 ;;
15297 *)
15298 case $am_py_prefix in
15299 /usr|/System*) ;;
15300 *)
15301 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
15302 ;;
15303 esac
15304 ;;
15305 esac
15306
15307 fi
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
15309 $as_echo "$am_cv_python_pythondir" >&6; }
15310 pythondir=$am_cv_python_pythondir
15311
15312
15313
15314 pkgpythondir=\${pythondir}/$PACKAGE
15315
15316
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
15318 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
15319 if ${am_cv_python_pyexecdir+:} false; then :
15320 $as_echo_n "(cached) " >&6
15321 else
15322 if test "x$exec_prefix" = xNONE
15323 then
15324 am_py_exec_prefix=$am_py_prefix
15325 else
15326 am_py_exec_prefix=$exec_prefix
15327 fi
15328 am_cv_python_pyexecdir=`$PYTHON -c "
15329 $am_python_setup_sysconfig
15330 if can_use_sysconfig:
15331 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
15332 else:
15333 from distutils import sysconfig
15334 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
15335 sys.stdout.write(sitedir)"`
15336 case $am_cv_python_pyexecdir in
15337 $am_py_exec_prefix*)
15338 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
15339 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
15340 ;;
15341 *)
15342 case $am_py_exec_prefix in
15343 /usr|/System*) ;;
15344 *)
15345 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
15346 ;;
15347 esac
15348 ;;
15349 esac
15350
15351 fi
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
15353 $as_echo "$am_cv_python_pyexecdir" >&6; }
15354 pyexecdir=$am_cv_python_pyexecdir
15355
15356
15357
15358 pkgpyexecdir=\${pyexecdir}/$PACKAGE
15359
15360
15361
15362 fi
15363
15364
15365 if test "$PYTHON" != :; then :
15366 have_python=yes
15367 fi
15368
15369 fi
15370 if test "x$have_python" = "xyes"; then
15371 HAVE_PYTHON_TRUE=
15372 HAVE_PYTHON_FALSE='#'
15373 else
15374 HAVE_PYTHON_TRUE='#'
15375 HAVE_PYTHON_FALSE=
15376 fi
15377
15378 if test "x$PYTHON_BINARY" = "x"; then :
15379 if test "x$have_python" = "xyes"; then :
15380 PYTHON_BINARY="$(which "$PYTHON")"
15381 else
15382 PYTHON_BINARY=/usr/bin/python
15383 fi
15384 fi
15385
15386
15387 if test "x$with_python" != "xno"; then :
15388
15389 # Extract the first word of "python${PYTHON_VERSION}-config", so it can be a program name with args.
15390 set dummy python${PYTHON_VERSION}-config; ac_word=$2
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15392 $as_echo_n "checking for $ac_word... " >&6; }
15393 if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
15394 $as_echo_n "(cached) " >&6
15395 else
15396 case $PYTHON_CONFIG in
15397 [\\/]* | ?:[\\/]*)
15398 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
15399 ;;
15400 *)
15401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15402 for as_dir in $PATH
15403 do
15404 IFS=$as_save_IFS
15405 test -z "$as_dir" && as_dir=.
15406 for ac_exec_ext in '' $ac_executable_extensions; do
15407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15408 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15410 break 2
15411 fi
15412 done
15413 done
15414 IFS=$as_save_IFS
15415
15416 ;;
15417 esac
15418 fi
15419 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
15420 if test -n "$PYTHON_CONFIG"; then
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
15422 $as_echo "$PYTHON_CONFIG" >&6; }
15423 else
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15425 $as_echo "no" >&6; }
15426 fi
15427
15428
15429 if test -n "$PYTHON_CONFIG"; then :
15430
15431 have_python_devel=yes
15432 PYTHON_CFLAGS="$($PYTHON_CONFIG --cflags) $python_extra_cflags"
15433 PYTHON_LIBS="$($PYTHON_CONFIG --ldflags)"
15434
15435
15436 for ac_prog in sphinx-build-${PYTHON_VERSION} sphinx-build
15437 do
15438 # Extract the first word of "$ac_prog", so it can be a program name with args.
15439 set dummy $ac_prog; ac_word=$2
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15441 $as_echo_n "checking for $ac_word... " >&6; }
15442 if ${ac_cv_path_SPHINX_BUILD+:} false; then :
15443 $as_echo_n "(cached) " >&6
15444 else
15445 case $SPHINX_BUILD in
15446 [\\/]* | ?:[\\/]*)
15447 ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
15448 ;;
15449 *)
15450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15451 for as_dir in $PATH
15452 do
15453 IFS=$as_save_IFS
15454 test -z "$as_dir" && as_dir=.
15455 for ac_exec_ext in '' $ac_executable_extensions; do
15456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15457 ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext"
15458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15459 break 2
15460 fi
15461 done
15462 done
15463 IFS=$as_save_IFS
15464
15465 ;;
15466 esac
15467 fi
15468 SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
15469 if test -n "$SPHINX_BUILD"; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
15471 $as_echo "$SPHINX_BUILD" >&6; }
15472 else
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15474 $as_echo "no" >&6; }
15475 fi
15476
15477
15478 test -n "$SPHINX_BUILD" && break
15479 done
15480
15481
15482 fi
15483
15484 fi
15485 if test "$have_python_devel" = "yes"; then
15486 HAVE_PYTHON_DEVEL_TRUE=
15487 HAVE_PYTHON_DEVEL_FALSE='#'
15488 else
15489 HAVE_PYTHON_DEVEL_TRUE='#'
15490 HAVE_PYTHON_DEVEL_FALSE=
15491 fi
15492
15493
15494 # ------------------------------------------------------------------------------
15495
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mq_open" >&5
15497 $as_echo_n "checking for library containing mq_open... " >&6; }
15498 if ${ac_cv_search_mq_open+:} false; then :
15499 $as_echo_n "(cached) " >&6
15500 else
15501 ac_func_search_save_LIBS=$LIBS
15502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15503 /* end confdefs.h. */
15504
15505 /* Override any GCC internal prototype to avoid an error.
15506 Use char because int might match the return type of a GCC
15507 builtin and then its argument prototype would still apply. */
15508 #ifdef __cplusplus
15509 extern "C"
15510 #endif
15511 char mq_open ();
15512 int
15513 main ()
15514 {
15515 return mq_open ();
15516 ;
15517 return 0;
15518 }
15519 _ACEOF
15520 for ac_lib in '' rt; do
15521 if test -z "$ac_lib"; then
15522 ac_res="none required"
15523 else
15524 ac_res=-l$ac_lib
15525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15526 fi
15527 if ac_fn_c_try_link "$LINENO"; then :
15528 ac_cv_search_mq_open=$ac_res
15529 fi
15530 rm -f core conftest.err conftest.$ac_objext \
15531 conftest$ac_exeext
15532 if ${ac_cv_search_mq_open+:} false; then :
15533 break
15534 fi
15535 done
15536 if ${ac_cv_search_mq_open+:} false; then :
15537
15538 else
15539 ac_cv_search_mq_open=no
15540 fi
15541 rm conftest.$ac_ext
15542 LIBS=$ac_func_search_save_LIBS
15543 fi
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mq_open" >&5
15545 $as_echo "$ac_cv_search_mq_open" >&6; }
15546 ac_res=$ac_cv_search_mq_open
15547 if test "$ac_res" != no; then :
15548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15549
15550 else
15551 as_fn_error $? "*** POSIX RT library not found" "$LINENO" 5
15552 fi
15553
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15555 $as_echo_n "checking for library containing dlsym... " >&6; }
15556 if ${ac_cv_search_dlsym+:} false; then :
15557 $as_echo_n "(cached) " >&6
15558 else
15559 ac_func_search_save_LIBS=$LIBS
15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15562
15563 /* Override any GCC internal prototype to avoid an error.
15564 Use char because int might match the return type of a GCC
15565 builtin and then its argument prototype would still apply. */
15566 #ifdef __cplusplus
15567 extern "C"
15568 #endif
15569 char dlsym ();
15570 int
15571 main ()
15572 {
15573 return dlsym ();
15574 ;
15575 return 0;
15576 }
15577 _ACEOF
15578 for ac_lib in '' dl; do
15579 if test -z "$ac_lib"; then
15580 ac_res="none required"
15581 else
15582 ac_res=-l$ac_lib
15583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15584 fi
15585 if ac_fn_c_try_link "$LINENO"; then :
15586 ac_cv_search_dlsym=$ac_res
15587 fi
15588 rm -f core conftest.err conftest.$ac_objext \
15589 conftest$ac_exeext
15590 if ${ac_cv_search_dlsym+:} false; then :
15591 break
15592 fi
15593 done
15594 if ${ac_cv_search_dlsym+:} false; then :
15595
15596 else
15597 ac_cv_search_dlsym=no
15598 fi
15599 rm conftest.$ac_ext
15600 LIBS=$ac_func_search_save_LIBS
15601 fi
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15603 $as_echo "$ac_cv_search_dlsym" >&6; }
15604 ac_res=$ac_cv_search_dlsym
15605 if test "$ac_res" != no; then :
15606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15607
15608 else
15609 as_fn_error $? "*** Dynamic linking loader library not found" "$LINENO" 5
15610 fi
15611
15612
15613 save_LIBS="$LIBS"
15614 LIBS=
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_init" >&5
15616 $as_echo_n "checking for library containing cap_init... " >&6; }
15617 if ${ac_cv_search_cap_init+:} false; then :
15618 $as_echo_n "(cached) " >&6
15619 else
15620 ac_func_search_save_LIBS=$LIBS
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15623
15624 /* Override any GCC internal prototype to avoid an error.
15625 Use char because int might match the return type of a GCC
15626 builtin and then its argument prototype would still apply. */
15627 #ifdef __cplusplus
15628 extern "C"
15629 #endif
15630 char cap_init ();
15631 int
15632 main ()
15633 {
15634 return cap_init ();
15635 ;
15636 return 0;
15637 }
15638 _ACEOF
15639 for ac_lib in '' cap; do
15640 if test -z "$ac_lib"; then
15641 ac_res="none required"
15642 else
15643 ac_res=-l$ac_lib
15644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15645 fi
15646 if ac_fn_c_try_link "$LINENO"; then :
15647 ac_cv_search_cap_init=$ac_res
15648 fi
15649 rm -f core conftest.err conftest.$ac_objext \
15650 conftest$ac_exeext
15651 if ${ac_cv_search_cap_init+:} false; then :
15652 break
15653 fi
15654 done
15655 if ${ac_cv_search_cap_init+:} false; then :
15656
15657 else
15658 ac_cv_search_cap_init=no
15659 fi
15660 rm conftest.$ac_ext
15661 LIBS=$ac_func_search_save_LIBS
15662 fi
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_init" >&5
15664 $as_echo "$ac_cv_search_cap_init" >&6; }
15665 ac_res=$ac_cv_search_cap_init
15666 if test "$ac_res" != no; then :
15667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15668
15669 else
15670 as_fn_error $? "*** POSIX caps library not found" "$LINENO" 5
15671 fi
15672
15673 for ac_header in sys/capability.h
15674 do :
15675 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
15676 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
15677 cat >>confdefs.h <<_ACEOF
15678 #define HAVE_SYS_CAPABILITY_H 1
15679 _ACEOF
15680
15681 else
15682 as_fn_error $? "*** POSIX caps headers not found" "$LINENO" 5
15683 fi
15684
15685 done
15686
15687 CAP_LIBS="$LIBS"
15688 LIBS="$save_LIBS"
15689
15690
15691 for ac_func in fanotify_init fanotify_mark
15692 do :
15693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15695 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15696 cat >>confdefs.h <<_ACEOF
15697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15698 _ACEOF
15699
15700 fi
15701 done
15702
15703 for ac_func in __secure_getenv secure_getenv
15704 do :
15705 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15706 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15707 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15708 cat >>confdefs.h <<_ACEOF
15709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15710 _ACEOF
15711
15712 fi
15713 done
15714
15715 ac_fn_c_check_decl "$LINENO" "gettid" "ac_cv_have_decl_gettid" "#include <sys/types.h>
15716 #include <unistd.h>
15717 #include <sys/mount.h>
15718 #include <fcntl.h>
15719 "
15720 if test "x$ac_cv_have_decl_gettid" = xyes; then :
15721 ac_have_decl=1
15722 else
15723 ac_have_decl=0
15724 fi
15725
15726 cat >>confdefs.h <<_ACEOF
15727 #define HAVE_DECL_GETTID $ac_have_decl
15728 _ACEOF
15729 ac_fn_c_check_decl "$LINENO" "pivot_root" "ac_cv_have_decl_pivot_root" "#include <sys/types.h>
15730 #include <unistd.h>
15731 #include <sys/mount.h>
15732 #include <fcntl.h>
15733 "
15734 if test "x$ac_cv_have_decl_pivot_root" = xyes; then :
15735 ac_have_decl=1
15736 else
15737 ac_have_decl=0
15738 fi
15739
15740 cat >>confdefs.h <<_ACEOF
15741 #define HAVE_DECL_PIVOT_ROOT $ac_have_decl
15742 _ACEOF
15743 ac_fn_c_check_decl "$LINENO" "name_to_handle_at" "ac_cv_have_decl_name_to_handle_at" "#include <sys/types.h>
15744 #include <unistd.h>
15745 #include <sys/mount.h>
15746 #include <fcntl.h>
15747 "
15748 if test "x$ac_cv_have_decl_name_to_handle_at" = xyes; then :
15749 ac_have_decl=1
15750 else
15751 ac_have_decl=0
15752 fi
15753
15754 cat >>confdefs.h <<_ACEOF
15755 #define HAVE_DECL_NAME_TO_HANDLE_AT $ac_have_decl
15756 _ACEOF
15757
15758
15759 # This makes sure pkg.m4 is available.
15760
15761
15762
15763 pkg_failed=no
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
15765 $as_echo_n "checking for DBUS... " >&6; }
15766
15767 if test -n "$DBUS_CFLAGS"; then
15768 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
15769 elif test -n "$PKG_CONFIG"; then
15770 if test -n "$PKG_CONFIG" && \
15771 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.3.2\""; } >&5
15772 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.3.2") 2>&5
15773 ac_status=$?
15774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15775 test $ac_status = 0; }; then
15776 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.3.2" 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 if test -n "$DBUS_LIBS"; then
15785 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
15786 elif test -n "$PKG_CONFIG"; then
15787 if test -n "$PKG_CONFIG" && \
15788 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.3.2\""; } >&5
15789 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.3.2") 2>&5
15790 ac_status=$?
15791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15792 test $ac_status = 0; }; then
15793 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.3.2" 2>/dev/null`
15794 test "x$?" != "x0" && pkg_failed=yes
15795 else
15796 pkg_failed=yes
15797 fi
15798 else
15799 pkg_failed=untried
15800 fi
15801
15802
15803
15804 if test $pkg_failed = yes; then
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15806 $as_echo "no" >&6; }
15807
15808 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15809 _pkg_short_errors_supported=yes
15810 else
15811 _pkg_short_errors_supported=no
15812 fi
15813 if test $_pkg_short_errors_supported = yes; then
15814 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.3.2" 2>&1`
15815 else
15816 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.3.2" 2>&1`
15817 fi
15818 # Put the nasty error message in config.log where it belongs
15819 echo "$DBUS_PKG_ERRORS" >&5
15820
15821 as_fn_error $? "Package requirements (dbus-1 >= 1.3.2) were not met:
15822
15823 $DBUS_PKG_ERRORS
15824
15825 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15826 installed software in a non-standard prefix.
15827
15828 Alternatively, you may set the environment variables DBUS_CFLAGS
15829 and DBUS_LIBS to avoid the need to call pkg-config.
15830 See the pkg-config man page for more details." "$LINENO" 5
15831 elif test $pkg_failed = untried; then
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15833 $as_echo "no" >&6; }
15834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15836 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15837 is in your PATH or set the PKG_CONFIG environment variable to the full
15838 path to pkg-config.
15839
15840 Alternatively, you may set the environment variables DBUS_CFLAGS
15841 and DBUS_LIBS to avoid the need to call pkg-config.
15842 See the pkg-config man page for more details.
15843
15844 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15845 See \`config.log' for more details" "$LINENO" 5; }
15846 else
15847 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
15848 DBUS_LIBS=$pkg_cv_DBUS_LIBS
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15850 $as_echo "yes" >&6; }
15851
15852 fi
15853
15854 # ------------------------------------------------------------------------------
15855 have_kmod=no
15856 # Check whether --enable-kmod was given.
15857 if test "${enable_kmod+set}" = set; then :
15858 enableval=$enable_kmod;
15859 fi
15860
15861 if test "x$enable_kmod" != "xno"; then
15862
15863 pkg_failed=no
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KMOD" >&5
15865 $as_echo_n "checking for KMOD... " >&6; }
15866
15867 if test -n "$KMOD_CFLAGS"; then
15868 pkg_cv_KMOD_CFLAGS="$KMOD_CFLAGS"
15869 elif test -n "$PKG_CONFIG"; then
15870 if test -n "$PKG_CONFIG" && \
15871 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libkmod >= 5 \""; } >&5
15872 ($PKG_CONFIG --exists --print-errors " libkmod >= 5 ") 2>&5
15873 ac_status=$?
15874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15875 test $ac_status = 0; }; then
15876 pkg_cv_KMOD_CFLAGS=`$PKG_CONFIG --cflags " libkmod >= 5 " 2>/dev/null`
15877 test "x$?" != "x0" && pkg_failed=yes
15878 else
15879 pkg_failed=yes
15880 fi
15881 else
15882 pkg_failed=untried
15883 fi
15884 if test -n "$KMOD_LIBS"; then
15885 pkg_cv_KMOD_LIBS="$KMOD_LIBS"
15886 elif test -n "$PKG_CONFIG"; then
15887 if test -n "$PKG_CONFIG" && \
15888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libkmod >= 5 \""; } >&5
15889 ($PKG_CONFIG --exists --print-errors " libkmod >= 5 ") 2>&5
15890 ac_status=$?
15891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15892 test $ac_status = 0; }; then
15893 pkg_cv_KMOD_LIBS=`$PKG_CONFIG --libs " libkmod >= 5 " 2>/dev/null`
15894 test "x$?" != "x0" && pkg_failed=yes
15895 else
15896 pkg_failed=yes
15897 fi
15898 else
15899 pkg_failed=untried
15900 fi
15901
15902
15903
15904 if test $pkg_failed = yes; then
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906 $as_echo "no" >&6; }
15907
15908 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15909 _pkg_short_errors_supported=yes
15910 else
15911 _pkg_short_errors_supported=no
15912 fi
15913 if test $_pkg_short_errors_supported = yes; then
15914 KMOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " libkmod >= 5 " 2>&1`
15915 else
15916 KMOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " libkmod >= 5 " 2>&1`
15917 fi
15918 # Put the nasty error message in config.log where it belongs
15919 echo "$KMOD_PKG_ERRORS" >&5
15920
15921 have_kmod=no
15922 elif test $pkg_failed = untried; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 $as_echo "no" >&6; }
15925 have_kmod=no
15926 else
15927 KMOD_CFLAGS=$pkg_cv_KMOD_CFLAGS
15928 KMOD_LIBS=$pkg_cv_KMOD_LIBS
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15930 $as_echo "yes" >&6; }
15931
15932 $as_echo "#define HAVE_KMOD 1" >>confdefs.h
15933 have_kmod=yes
15934 fi
15935 if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
15936 as_fn_error $? "*** kmod support requested but libraries not found" "$LINENO" 5
15937 fi
15938 fi
15939 if test "$have_kmod" = "yes"; then
15940 HAVE_KMOD_TRUE=
15941 HAVE_KMOD_FALSE='#'
15942 else
15943 HAVE_KMOD_TRUE='#'
15944 HAVE_KMOD_FALSE=
15945 fi
15946
15947
15948 # ------------------------------------------------------------------------------
15949 have_blkid=no
15950 # Check whether --enable-blkid was given.
15951 if test "${enable_blkid+set}" = set; then :
15952 enableval=$enable_blkid;
15953 fi
15954
15955 if test "x$enable_blkid" != "xno"; then
15956
15957 pkg_failed=no
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLKID" >&5
15959 $as_echo_n "checking for BLKID... " >&6; }
15960
15961 if test -n "$BLKID_CFLAGS"; then
15962 pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
15963 elif test -n "$PKG_CONFIG"; then
15964 if test -n "$PKG_CONFIG" && \
15965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" blkid >= 2.20 \""; } >&5
15966 ($PKG_CONFIG --exists --print-errors " blkid >= 2.20 ") 2>&5
15967 ac_status=$?
15968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15969 test $ac_status = 0; }; then
15970 pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags " blkid >= 2.20 " 2>/dev/null`
15971 test "x$?" != "x0" && pkg_failed=yes
15972 else
15973 pkg_failed=yes
15974 fi
15975 else
15976 pkg_failed=untried
15977 fi
15978 if test -n "$BLKID_LIBS"; then
15979 pkg_cv_BLKID_LIBS="$BLKID_LIBS"
15980 elif test -n "$PKG_CONFIG"; then
15981 if test -n "$PKG_CONFIG" && \
15982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" blkid >= 2.20 \""; } >&5
15983 ($PKG_CONFIG --exists --print-errors " blkid >= 2.20 ") 2>&5
15984 ac_status=$?
15985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15986 test $ac_status = 0; }; then
15987 pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs " blkid >= 2.20 " 2>/dev/null`
15988 test "x$?" != "x0" && pkg_failed=yes
15989 else
15990 pkg_failed=yes
15991 fi
15992 else
15993 pkg_failed=untried
15994 fi
15995
15996
15997
15998 if test $pkg_failed = yes; then
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16000 $as_echo "no" >&6; }
16001
16002 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16003 _pkg_short_errors_supported=yes
16004 else
16005 _pkg_short_errors_supported=no
16006 fi
16007 if test $_pkg_short_errors_supported = yes; then
16008 BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " blkid >= 2.20 " 2>&1`
16009 else
16010 BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " blkid >= 2.20 " 2>&1`
16011 fi
16012 # Put the nasty error message in config.log where it belongs
16013 echo "$BLKID_PKG_ERRORS" >&5
16014
16015 have_blkid=no
16016 elif test $pkg_failed = untried; then
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16018 $as_echo "no" >&6; }
16019 have_blkid=no
16020 else
16021 BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
16022 BLKID_LIBS=$pkg_cv_BLKID_LIBS
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16024 $as_echo "yes" >&6; }
16025
16026 $as_echo "#define HAVE_BLKID 1" >>confdefs.h
16027 have_blkid=yes
16028 fi
16029 if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
16030 as_fn_error $? "*** blkid support requested but libraries not found" "$LINENO" 5
16031 fi
16032 fi
16033 if test "$have_blkid" = "yes"; then
16034 HAVE_BLKID_TRUE=
16035 HAVE_BLKID_FALSE='#'
16036 else
16037 HAVE_BLKID_TRUE='#'
16038 HAVE_BLKID_FALSE=
16039 fi
16040
16041
16042 # ------------------------------------------------------------------------------
16043 have_ima=yes
16044 # Check whether --enable-ima was given.
16045 if test "${enable_ima+set}" = set; then :
16046 enableval=$enable_ima; case "${enableval}" in
16047 yes) have_ima=yes ;;
16048 no) have_ima=no ;;
16049 *) as_fn_error $? "bad value ${enableval} for --disable-ima" "$LINENO" 5 ;;
16050 esac
16051 else
16052 have_ima=yes
16053 fi
16054
16055
16056 if test "x${have_ima}" != xno ; then
16057
16058 $as_echo "#define HAVE_IMA 1" >>confdefs.h
16059
16060 fi
16061
16062 # ------------------------------------------------------------------------------
16063 have_chkconfig=yes
16064 # Check whether --enable-chkconfig was given.
16065 if test "${enable_chkconfig+set}" = set; then :
16066 enableval=$enable_chkconfig; case "${enableval}" in
16067 yes) have_chkconfig=yes ;;
16068 no) have_chkconfig=no ;;
16069 *) as_fn_error $? "bad value ${enableval} for --disable-chkconfig" "$LINENO" 5 ;;
16070 esac
16071 else
16072 # Extract the first word of "chkconfig", so it can be a program name with args.
16073 set dummy chkconfig; ac_word=$2
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16075 $as_echo_n "checking for $ac_word... " >&6; }
16076 if ${ac_cv_path_CHKCONFIG+:} false; then :
16077 $as_echo_n "(cached) " >&6
16078 else
16079 case $CHKCONFIG in
16080 [\\/]* | ?:[\\/]*)
16081 ac_cv_path_CHKCONFIG="$CHKCONFIG" # Let the user override the test with a path.
16082 ;;
16083 *)
16084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16085 for as_dir in $PATH
16086 do
16087 IFS=$as_save_IFS
16088 test -z "$as_dir" && as_dir=.
16089 for ac_exec_ext in '' $ac_executable_extensions; do
16090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16091 ac_cv_path_CHKCONFIG="$as_dir/$ac_word$ac_exec_ext"
16092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16093 break 2
16094 fi
16095 done
16096 done
16097 IFS=$as_save_IFS
16098
16099 ;;
16100 esac
16101 fi
16102 CHKCONFIG=$ac_cv_path_CHKCONFIG
16103 if test -n "$CHKCONFIG"; then
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHKCONFIG" >&5
16105 $as_echo "$CHKCONFIG" >&6; }
16106 else
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16108 $as_echo "no" >&6; }
16109 fi
16110
16111
16112 if test -z "$CHKCONFIG"; then
16113 have_chkconfig=no
16114 else
16115 have_chkconfig=yes
16116 fi
16117 fi
16118
16119
16120 if test "x${have_chkconfig}" != xno ; then
16121
16122 $as_echo "#define HAVE_CHKCONFIG 1" >>confdefs.h
16123
16124 fi
16125
16126 # ------------------------------------------------------------------------------
16127 have_selinux=no
16128 # Check whether --enable-selinux was given.
16129 if test "${enable_selinux+set}" = set; then :
16130 enableval=$enable_selinux;
16131 fi
16132
16133 if test "x$enable_selinux" != "xno"; then
16134
16135 pkg_failed=no
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5
16137 $as_echo_n "checking for SELINUX... " >&6; }
16138
16139 if test -n "$SELINUX_CFLAGS"; then
16140 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
16141 elif test -n "$PKG_CONFIG"; then
16142 if test -n "$PKG_CONFIG" && \
16143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= 2.1.9\""; } >&5
16144 ($PKG_CONFIG --exists --print-errors "libselinux >= 2.1.9") 2>&5
16145 ac_status=$?
16146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16147 test $ac_status = 0; }; then
16148 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux >= 2.1.9" 2>/dev/null`
16149 test "x$?" != "x0" && pkg_failed=yes
16150 else
16151 pkg_failed=yes
16152 fi
16153 else
16154 pkg_failed=untried
16155 fi
16156 if test -n "$SELINUX_LIBS"; then
16157 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
16158 elif test -n "$PKG_CONFIG"; then
16159 if test -n "$PKG_CONFIG" && \
16160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= 2.1.9\""; } >&5
16161 ($PKG_CONFIG --exists --print-errors "libselinux >= 2.1.9") 2>&5
16162 ac_status=$?
16163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16164 test $ac_status = 0; }; then
16165 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "libselinux >= 2.1.9" 2>/dev/null`
16166 test "x$?" != "x0" && pkg_failed=yes
16167 else
16168 pkg_failed=yes
16169 fi
16170 else
16171 pkg_failed=untried
16172 fi
16173
16174
16175
16176 if test $pkg_failed = yes; then
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16178 $as_echo "no" >&6; }
16179
16180 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16181 _pkg_short_errors_supported=yes
16182 else
16183 _pkg_short_errors_supported=no
16184 fi
16185 if test $_pkg_short_errors_supported = yes; then
16186 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux >= 2.1.9" 2>&1`
16187 else
16188 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux >= 2.1.9" 2>&1`
16189 fi
16190 # Put the nasty error message in config.log where it belongs
16191 echo "$SELINUX_PKG_ERRORS" >&5
16192
16193 have_selinux=no
16194 elif test $pkg_failed = untried; then
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16196 $as_echo "no" >&6; }
16197 have_selinux=no
16198 else
16199 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
16200 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16202 $as_echo "yes" >&6; }
16203
16204 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
16205 have_selinux=yes
16206 fi
16207 if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
16208 as_fn_error $? "*** SELinux support requested but libraries not found" "$LINENO" 5
16209 fi
16210 fi
16211 if test "$have_selinux" = "yes"; then
16212 HAVE_SELINUX_TRUE=
16213 HAVE_SELINUX_FALSE='#'
16214 else
16215 HAVE_SELINUX_TRUE='#'
16216 HAVE_SELINUX_FALSE=
16217 fi
16218
16219
16220
16221 # Check whether --with-debug-shell was given.
16222 if test "${with_debug_shell+set}" = set; then :
16223 withval=$with_debug_shell; SUSHELL="$withval"
16224 else
16225
16226 if test "x${have_selinux}" != "xno"; then :
16227 SUSHELL="/sbin/sushell"
16228 else
16229 SUSHELL="/bin/sh"
16230 fi
16231 fi
16232
16233
16234
16235
16236
16237 # Check whether --with-debug-tty was given.
16238 if test "${with_debug_tty+set}" = set; then :
16239 withval=$with_debug_tty; DEBUGTTY="$withval"
16240 else
16241 DEBUGTTY=/dev/tty9
16242 fi
16243
16244
16245
16246
16247 # ------------------------------------------------------------------------------
16248 have_xz=no
16249 # Check whether --enable-xz was given.
16250 if test "${enable_xz+set}" = set; then :
16251 enableval=$enable_xz;
16252 fi
16253
16254 if test "x$enable_xz" != "xno"; then
16255
16256 pkg_failed=no
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XZ" >&5
16258 $as_echo_n "checking for XZ... " >&6; }
16259
16260 if test -n "$XZ_CFLAGS"; then
16261 pkg_cv_XZ_CFLAGS="$XZ_CFLAGS"
16262 elif test -n "$PKG_CONFIG"; then
16263 if test -n "$PKG_CONFIG" && \
16264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" liblzma \""; } >&5
16265 ($PKG_CONFIG --exists --print-errors " liblzma ") 2>&5
16266 ac_status=$?
16267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16268 test $ac_status = 0; }; then
16269 pkg_cv_XZ_CFLAGS=`$PKG_CONFIG --cflags " liblzma " 2>/dev/null`
16270 test "x$?" != "x0" && pkg_failed=yes
16271 else
16272 pkg_failed=yes
16273 fi
16274 else
16275 pkg_failed=untried
16276 fi
16277 if test -n "$XZ_LIBS"; then
16278 pkg_cv_XZ_LIBS="$XZ_LIBS"
16279 elif test -n "$PKG_CONFIG"; then
16280 if test -n "$PKG_CONFIG" && \
16281 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" liblzma \""; } >&5
16282 ($PKG_CONFIG --exists --print-errors " liblzma ") 2>&5
16283 ac_status=$?
16284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16285 test $ac_status = 0; }; then
16286 pkg_cv_XZ_LIBS=`$PKG_CONFIG --libs " liblzma " 2>/dev/null`
16287 test "x$?" != "x0" && pkg_failed=yes
16288 else
16289 pkg_failed=yes
16290 fi
16291 else
16292 pkg_failed=untried
16293 fi
16294
16295
16296
16297 if test $pkg_failed = yes; then
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16299 $as_echo "no" >&6; }
16300
16301 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16302 _pkg_short_errors_supported=yes
16303 else
16304 _pkg_short_errors_supported=no
16305 fi
16306 if test $_pkg_short_errors_supported = yes; then
16307 XZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " liblzma " 2>&1`
16308 else
16309 XZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " liblzma " 2>&1`
16310 fi
16311 # Put the nasty error message in config.log where it belongs
16312 echo "$XZ_PKG_ERRORS" >&5
16313
16314 have_xz=no
16315 elif test $pkg_failed = untried; then
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16317 $as_echo "no" >&6; }
16318 have_xz=no
16319 else
16320 XZ_CFLAGS=$pkg_cv_XZ_CFLAGS
16321 XZ_LIBS=$pkg_cv_XZ_LIBS
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16323 $as_echo "yes" >&6; }
16324
16325 $as_echo "#define HAVE_XZ 1" >>confdefs.h
16326 have_xz=yes
16327 fi
16328 if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
16329 as_fn_error $? "*** Xz support requested but libraries not found" "$LINENO" 5
16330 fi
16331 fi
16332 if test "$have_xz" = "yes"; then
16333 HAVE_XZ_TRUE=
16334 HAVE_XZ_FALSE='#'
16335 else
16336 HAVE_XZ_TRUE='#'
16337 HAVE_XZ_FALSE=
16338 fi
16339
16340
16341 # ------------------------------------------------------------------------------
16342 # Check whether --enable-tcpwrap was given.
16343 if test "${enable_tcpwrap+set}" = set; then :
16344 enableval=$enable_tcpwrap; case "${enableval}" in
16345 yes) have_tcpwrap=yes ;;
16346 no) have_tcpwrap=no ;;
16347 *) as_fn_error $? "bad value ${enableval} for --disable-tcpwrap" "$LINENO" 5 ;;
16348 esac
16349 else
16350 have_tcpwrap=auto
16351 fi
16352
16353
16354 if test "x${have_tcpwrap}" != xno ; then
16355
16356 LIBWRAP_LIBS=
16357 saved_LIBS="$LIBS"
16358 LIBS="$LIBS -lwrap"
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcpwrap library and headers" >&5
16360 $as_echo_n "checking for tcpwrap library and headers... " >&6; }
16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h. */
16363 #include <tcpd.h>
16364 #include <syslog.h>
16365 int allow_severity = LOG_INFO;
16366 int deny_severity = LOG_WARNING;
16367 int
16368 main ()
16369 {
16370 struct request_info *req;
16371 return hosts_access (req);
16372 ;
16373 return 0;
16374 }
16375 _ACEOF
16376 if ac_fn_c_try_link "$LINENO"; then :
16377
16378 $as_echo "#define HAVE_LIBWRAP /**/" >>confdefs.h
16379
16380 LIBWRAP_LIBS="-lwrap"
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16382 $as_echo "yes" >&6; }
16383 else
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16385 $as_echo "no" >&6; }
16386 fi
16387 rm -f core conftest.err conftest.$ac_objext \
16388 conftest$ac_exeext conftest.$ac_ext
16389 LIBS="$saved_LIBS"
16390
16391 if test "x${LIBWRAP_LIBS}" = x ; then
16392 if test "x$have_tcpwrap" = xyes ; then
16393 as_fn_error $? "*** TCP wrappers support not found." "$LINENO" 5
16394 fi
16395 have_tcpwrap=no
16396 else
16397 have_tcpwrap=yes
16398 fi
16399 else
16400 LIBWRAP_LIBS=
16401 fi
16402
16403
16404 # ------------------------------------------------------------------------------
16405 # Check whether --enable-pam was given.
16406 if test "${enable_pam+set}" = set; then :
16407 enableval=$enable_pam; case "${enableval}" in
16408 yes) have_pam=yes ;;
16409 no) have_pam=no ;;
16410 *) as_fn_error $? "bad value ${enableval} for --disable-pam" "$LINENO" 5 ;;
16411 esac
16412 else
16413 have_pam=auto
16414 fi
16415
16416
16417 if test "x${have_pam}" != xno ; then
16418 for ac_header in security/pam_modules.h security/pam_modutil.h security/pam_ext.h
16419 do :
16420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16421 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16423 cat >>confdefs.h <<_ACEOF
16424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16425 _ACEOF
16426 have_pam=yes
16427 else
16428 if test "x$have_pam" = xyes ; then
16429 as_fn_error $? "*** PAM headers not found." "$LINENO" 5
16430 fi
16431 fi
16432
16433 done
16434
16435
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_syslog in -lpam" >&5
16437 $as_echo_n "checking for pam_syslog in -lpam... " >&6; }
16438 if ${ac_cv_lib_pam_pam_syslog+:} false; then :
16439 $as_echo_n "(cached) " >&6
16440 else
16441 ac_check_lib_save_LIBS=$LIBS
16442 LIBS="-lpam $LIBS"
16443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16444 /* end confdefs.h. */
16445
16446 /* Override any GCC internal prototype to avoid an error.
16447 Use char because int might match the return type of a GCC
16448 builtin and then its argument prototype would still apply. */
16449 #ifdef __cplusplus
16450 extern "C"
16451 #endif
16452 char pam_syslog ();
16453 int
16454 main ()
16455 {
16456 return pam_syslog ();
16457 ;
16458 return 0;
16459 }
16460 _ACEOF
16461 if ac_fn_c_try_link "$LINENO"; then :
16462 ac_cv_lib_pam_pam_syslog=yes
16463 else
16464 ac_cv_lib_pam_pam_syslog=no
16465 fi
16466 rm -f core conftest.err conftest.$ac_objext \
16467 conftest$ac_exeext conftest.$ac_ext
16468 LIBS=$ac_check_lib_save_LIBS
16469 fi
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_syslog" >&5
16471 $as_echo "$ac_cv_lib_pam_pam_syslog" >&6; }
16472 if test "x$ac_cv_lib_pam_pam_syslog" = xyes; then :
16473 have_pam=yes
16474 else
16475 if test "x$have_pam" = xyes ; then
16476 as_fn_error $? "*** libpam not found." "$LINENO" 5
16477 fi
16478 fi
16479
16480
16481 if test "x$have_pam" = xyes ; then
16482 PAM_LIBS="-lpam -lpam_misc"
16483
16484 $as_echo "#define HAVE_PAM 1" >>confdefs.h
16485
16486 else
16487 have_pam=no
16488 fi
16489 else
16490 PAM_LIBS=
16491 fi
16492
16493 if test "x$have_pam" != xno; then
16494 HAVE_PAM_TRUE=
16495 HAVE_PAM_FALSE='#'
16496 else
16497 HAVE_PAM_TRUE='#'
16498 HAVE_PAM_FALSE=
16499 fi
16500
16501
16502 # ------------------------------------------------------------------------------
16503 # Check whether --enable-acl was given.
16504 if test "${enable_acl+set}" = set; then :
16505 enableval=$enable_acl; case "${enableval}" in
16506 yes) have_acl=yes ;;
16507 no) have_acl=no ;;
16508 *) as_fn_error $? "bad value ${enableval} for --disable-acl" "$LINENO" 5 ;;
16509 esac
16510 else
16511 have_acl=auto
16512 fi
16513
16514
16515 if test "x${have_acl}" != xno ; then
16516 for ac_header in sys/acl.h acl/libacl.h
16517 do :
16518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16519 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16520 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16521 cat >>confdefs.h <<_ACEOF
16522 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16523 _ACEOF
16524 have_acl=yes
16525 else
16526 if test "x$have_acl" = xyes ; then
16527 as_fn_error $? "*** ACL headers not found." "$LINENO" 5
16528 fi
16529 fi
16530
16531 done
16532
16533
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
16535 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
16536 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
16537 $as_echo_n "(cached) " >&6
16538 else
16539 ac_check_lib_save_LIBS=$LIBS
16540 LIBS="-lacl $LIBS"
16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h. */
16543
16544 /* Override any GCC internal prototype to avoid an error.
16545 Use char because int might match the return type of a GCC
16546 builtin and then its argument prototype would still apply. */
16547 #ifdef __cplusplus
16548 extern "C"
16549 #endif
16550 char acl_get_file ();
16551 int
16552 main ()
16553 {
16554 return acl_get_file ();
16555 ;
16556 return 0;
16557 }
16558 _ACEOF
16559 if ac_fn_c_try_link "$LINENO"; then :
16560 ac_cv_lib_acl_acl_get_file=yes
16561 else
16562 ac_cv_lib_acl_acl_get_file=no
16563 fi
16564 rm -f core conftest.err conftest.$ac_objext \
16565 conftest$ac_exeext conftest.$ac_ext
16566 LIBS=$ac_check_lib_save_LIBS
16567 fi
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
16569 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
16570 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
16571 have_acl=yes
16572 else
16573 if test "x$have_acl" = xyes ; then
16574 as_fn_error $? "*** libacl not found." "$LINENO" 5
16575 fi
16576 fi
16577
16578
16579 if test "x$have_acl" = xyes ; then
16580 ACL_LIBS="-lacl"
16581
16582 $as_echo "#define HAVE_ACL 1" >>confdefs.h
16583
16584 else
16585 have_acl=no
16586 fi
16587 else
16588 ACL_LIBS=
16589 fi
16590
16591 if test "x$have_acl" != xno; then
16592 HAVE_ACL_TRUE=
16593 HAVE_ACL_FALSE='#'
16594 else
16595 HAVE_ACL_TRUE='#'
16596 HAVE_ACL_FALSE=
16597 fi
16598
16599
16600 # ------------------------------------------------------------------------------
16601 # Check whether --enable-xattr was given.
16602 if test "${enable_xattr+set}" = set; then :
16603 enableval=$enable_xattr; case "${enableval}" in
16604 yes) have_xattr=yes ;;
16605 no) have_xattr=no ;;
16606 *) as_fn_error $? "bad value ${enableval} for --disable-xattr" "$LINENO" 5 ;;
16607 esac
16608 else
16609 have_xattr=auto
16610 fi
16611
16612
16613 if test "x${have_xattr}" != xno ; then
16614 for ac_header in attr/xattr.h
16615 do :
16616 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
16617 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
16618 cat >>confdefs.h <<_ACEOF
16619 #define HAVE_ATTR_XATTR_H 1
16620 _ACEOF
16621 have_xattr=yes
16622 else
16623 if test "x$have_xattr" = xyes ; then
16624 as_fn_error $? "*** XATTR headers not found." "$LINENO" 5
16625 fi
16626 fi
16627
16628 done
16629
16630
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsetxattr in -lattr" >&5
16632 $as_echo_n "checking for fsetxattr in -lattr... " >&6; }
16633 if ${ac_cv_lib_attr_fsetxattr+:} false; then :
16634 $as_echo_n "(cached) " >&6
16635 else
16636 ac_check_lib_save_LIBS=$LIBS
16637 LIBS="-lattr $LIBS"
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640
16641 /* Override any GCC internal prototype to avoid an error.
16642 Use char because int might match the return type of a GCC
16643 builtin and then its argument prototype would still apply. */
16644 #ifdef __cplusplus
16645 extern "C"
16646 #endif
16647 char fsetxattr ();
16648 int
16649 main ()
16650 {
16651 return fsetxattr ();
16652 ;
16653 return 0;
16654 }
16655 _ACEOF
16656 if ac_fn_c_try_link "$LINENO"; then :
16657 ac_cv_lib_attr_fsetxattr=yes
16658 else
16659 ac_cv_lib_attr_fsetxattr=no
16660 fi
16661 rm -f core conftest.err conftest.$ac_objext \
16662 conftest$ac_exeext conftest.$ac_ext
16663 LIBS=$ac_check_lib_save_LIBS
16664 fi
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fsetxattr" >&5
16666 $as_echo "$ac_cv_lib_attr_fsetxattr" >&6; }
16667 if test "x$ac_cv_lib_attr_fsetxattr" = xyes; then :
16668 have_xattr=yes
16669 else
16670 if test "x$have_xattr" = xyes ; then
16671 as_fn_error $? "*** libattr not found." "$LINENO" 5
16672 fi
16673 fi
16674
16675
16676 if test "x$have_xattr" = xyes ; then
16677 XATTR_LIBS="-lattr"
16678
16679 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
16680
16681 else
16682 have_xattr=no
16683 fi
16684 else
16685 XATTR_LIBS=
16686 fi
16687
16688 if test "x$have_xattr" != xno; then
16689 HAVE_XATTR_TRUE=
16690 HAVE_XATTR_FALSE='#'
16691 else
16692 HAVE_XATTR_TRUE='#'
16693 HAVE_XATTR_FALSE=
16694 fi
16695
16696
16697 # ------------------------------------------------------------------------------
16698 # Check whether --enable-gcrypt was given.
16699 if test "${enable_gcrypt+set}" = set; then :
16700 enableval=$enable_gcrypt; case "${enableval}" in
16701 yes) have_gcrypt=yes ;;
16702 no) have_gcrypt=no ;;
16703 *) as_fn_error $? "bad value ${enableval} for --disable-gcrypt" "$LINENO" 5 ;;
16704 esac
16705 else
16706 have_gcrypt=auto
16707 fi
16708
16709
16710 if test "x${have_gcrypt}" != xno ; then
16711
16712 # Check whether --with-libgcrypt-prefix was given.
16713 if test "${with_libgcrypt_prefix+set}" = set; then :
16714 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
16715 else
16716 libgcrypt_config_prefix=""
16717 fi
16718
16719 if test x$libgcrypt_config_prefix != x ; then
16720 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
16721 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
16722 fi
16723 fi
16724
16725 if test -n "$ac_tool_prefix"; then
16726 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
16727 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16729 $as_echo_n "checking for $ac_word... " >&6; }
16730 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
16731 $as_echo_n "(cached) " >&6
16732 else
16733 case $LIBGCRYPT_CONFIG in
16734 [\\/]* | ?:[\\/]*)
16735 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16736 ;;
16737 *)
16738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16739 for as_dir in $PATH
16740 do
16741 IFS=$as_save_IFS
16742 test -z "$as_dir" && as_dir=.
16743 for ac_exec_ext in '' $ac_executable_extensions; do
16744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16745 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16747 break 2
16748 fi
16749 done
16750 done
16751 IFS=$as_save_IFS
16752
16753 ;;
16754 esac
16755 fi
16756 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
16757 if test -n "$LIBGCRYPT_CONFIG"; then
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
16759 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
16760 else
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762 $as_echo "no" >&6; }
16763 fi
16764
16765
16766 fi
16767 if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
16768 ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
16769 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
16770 set dummy libgcrypt-config; ac_word=$2
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16772 $as_echo_n "checking for $ac_word... " >&6; }
16773 if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
16774 $as_echo_n "(cached) " >&6
16775 else
16776 case $ac_pt_LIBGCRYPT_CONFIG in
16777 [\\/]* | ?:[\\/]*)
16778 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16779 ;;
16780 *)
16781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16782 for as_dir in $PATH
16783 do
16784 IFS=$as_save_IFS
16785 test -z "$as_dir" && as_dir=.
16786 for ac_exec_ext in '' $ac_executable_extensions; do
16787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16788 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16790 break 2
16791 fi
16792 done
16793 done
16794 IFS=$as_save_IFS
16795
16796 ;;
16797 esac
16798 fi
16799 ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
16800 if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
16802 $as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
16803 else
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16805 $as_echo "no" >&6; }
16806 fi
16807
16808 if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
16809 LIBGCRYPT_CONFIG="no"
16810 else
16811 case $cross_compiling:$ac_tool_warned in
16812 yes:)
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16815 ac_tool_warned=yes ;;
16816 esac
16817 LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
16818 fi
16819 else
16820 LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
16821 fi
16822
16823 tmp=1.4.5
16824 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
16825 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
16826 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
16827 else
16828 req_libgcrypt_api=0
16829 min_libgcrypt_version="$tmp"
16830 fi
16831
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
16833 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
16834 ok=no
16835 if test "$LIBGCRYPT_CONFIG" != "no" ; then
16836 req_major=`echo $min_libgcrypt_version | \
16837 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
16838 req_minor=`echo $min_libgcrypt_version | \
16839 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
16840 req_micro=`echo $min_libgcrypt_version | \
16841 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
16842 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
16843 major=`echo $libgcrypt_config_version | \
16844 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
16845 minor=`echo $libgcrypt_config_version | \
16846 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
16847 micro=`echo $libgcrypt_config_version | \
16848 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
16849 if test "$major" -gt "$req_major"; then
16850 ok=yes
16851 else
16852 if test "$major" -eq "$req_major"; then
16853 if test "$minor" -gt "$req_minor"; then
16854 ok=yes
16855 else
16856 if test "$minor" -eq "$req_minor"; then
16857 if test "$micro" -ge "$req_micro"; then
16858 ok=yes
16859 fi
16860 fi
16861 fi
16862 fi
16863 fi
16864 fi
16865 if test $ok = yes; then
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
16867 $as_echo "yes ($libgcrypt_config_version)" >&6; }
16868 else
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16870 $as_echo "no" >&6; }
16871 fi
16872 if test $ok = yes; then
16873 # If we have a recent libgcrypt, we should also check that the
16874 # API is compatible
16875 if test "$req_libgcrypt_api" -gt 0 ; then
16876 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
16877 if test "$tmp" -gt 0 ; then
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
16879 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
16880 if test "$req_libgcrypt_api" -eq "$tmp" ; then
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
16882 $as_echo "okay" >&6; }
16883 else
16884 ok=no
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
16886 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
16887 fi
16888 fi
16889 fi
16890 fi
16891 if test $ok = yes; then
16892 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
16893 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
16894 have_gcrypt=yes
16895 if test x"$host" != x ; then
16896 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
16897 if test x"$libgcrypt_config_host" != xnone ; then
16898 if test x"$libgcrypt_config_host" != x"$host" ; then
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16900 ***
16901 *** The config script $LIBGCRYPT_CONFIG was
16902 *** built for $libgcrypt_config_host and thus may not match the
16903 *** used host $host.
16904 *** You may want to use the configure option --with-libgcrypt-prefix
16905 *** to specify a matching config script.
16906 ***" >&5
16907 $as_echo "$as_me: WARNING:
16908 ***
16909 *** The config script $LIBGCRYPT_CONFIG was
16910 *** built for $libgcrypt_config_host and thus may not match the
16911 *** used host $host.
16912 *** You may want to use the configure option --with-libgcrypt-prefix
16913 *** to specify a matching config script.
16914 ***" >&2;}
16915 fi
16916 fi
16917 fi
16918 else
16919 LIBGCRYPT_CFLAGS=""
16920 LIBGCRYPT_LIBS=""
16921 if test "x$have_gcrypt" = xyes ; then
16922 as_fn_error $? "*** GCRYPT headers not found." "$LINENO" 5
16923 fi
16924 fi
16925
16926
16927
16928
16929 if test "x$have_gcrypt" = xyes ; then
16930 GCRYPT_LIBS="$LIBGCRYPT_LIBS"
16931 GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
16932
16933 $as_echo "#define HAVE_GCRYPT 1" >>confdefs.h
16934
16935 else
16936 have_gcrypt=no
16937 fi
16938 else
16939 GCRYPT_LIBS=
16940 GCRYPT_CFLAGS=
16941 fi
16942
16943
16944 if test "x$have_gcrypt" != xno; then
16945 HAVE_GCRYPT_TRUE=
16946 HAVE_GCRYPT_FALSE='#'
16947 else
16948 HAVE_GCRYPT_TRUE='#'
16949 HAVE_GCRYPT_FALSE=
16950 fi
16951
16952
16953 # ------------------------------------------------------------------------------
16954 # Check whether --enable-audit was given.
16955 if test "${enable_audit+set}" = set; then :
16956 enableval=$enable_audit; case "${enableval}" in
16957 yes) have_audit=yes ;;
16958 no) have_audit=no ;;
16959 *) as_fn_error $? "bad value ${enableval} for --disable-audit" "$LINENO" 5 ;;
16960 esac
16961 else
16962 have_audit=auto
16963 fi
16964
16965
16966 if test "x${have_audit}" != xno ; then
16967 for ac_header in libaudit.h
16968 do :
16969 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
16970 if test "x$ac_cv_header_libaudit_h" = xyes; then :
16971 cat >>confdefs.h <<_ACEOF
16972 #define HAVE_LIBAUDIT_H 1
16973 _ACEOF
16974 have_audit=yes
16975 else
16976 if test "x$have_audit" = xyes ; then
16977 as_fn_error $? "*** AUDIT headers not found." "$LINENO" 5
16978 fi
16979 fi
16980
16981 done
16982
16983
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5
16985 $as_echo_n "checking for audit_open in -laudit... " >&6; }
16986 if ${ac_cv_lib_audit_audit_open+:} false; then :
16987 $as_echo_n "(cached) " >&6
16988 else
16989 ac_check_lib_save_LIBS=$LIBS
16990 LIBS="-laudit $LIBS"
16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992 /* end confdefs.h. */
16993
16994 /* Override any GCC internal prototype to avoid an error.
16995 Use char because int might match the return type of a GCC
16996 builtin and then its argument prototype would still apply. */
16997 #ifdef __cplusplus
16998 extern "C"
16999 #endif
17000 char audit_open ();
17001 int
17002 main ()
17003 {
17004 return audit_open ();
17005 ;
17006 return 0;
17007 }
17008 _ACEOF
17009 if ac_fn_c_try_link "$LINENO"; then :
17010 ac_cv_lib_audit_audit_open=yes
17011 else
17012 ac_cv_lib_audit_audit_open=no
17013 fi
17014 rm -f core conftest.err conftest.$ac_objext \
17015 conftest$ac_exeext conftest.$ac_ext
17016 LIBS=$ac_check_lib_save_LIBS
17017 fi
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5
17019 $as_echo "$ac_cv_lib_audit_audit_open" >&6; }
17020 if test "x$ac_cv_lib_audit_audit_open" = xyes; then :
17021 have_audit=yes
17022 else
17023 if test "x$have_audit" = xyes ; then
17024 as_fn_error $? "*** libaudit not found." "$LINENO" 5
17025 fi
17026 fi
17027
17028
17029 if test "x$have_audit" = xyes ; then
17030 AUDIT_LIBS="-laudit"
17031
17032 $as_echo "#define HAVE_AUDIT 1" >>confdefs.h
17033
17034 else
17035 have_audit=no
17036 fi
17037 else
17038 AUDIT_LIBS=
17039 fi
17040
17041
17042 # ------------------------------------------------------------------------------
17043 have_libcryptsetup=no
17044 # Check whether --enable-libcryptsetup was given.
17045 if test "${enable_libcryptsetup+set}" = set; then :
17046 enableval=$enable_libcryptsetup;
17047 fi
17048
17049 if test "x$enable_libcryptsetup" != "xno"; then
17050
17051 pkg_failed=no
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCRYPTSETUP" >&5
17053 $as_echo_n "checking for LIBCRYPTSETUP... " >&6; }
17054
17055 if test -n "$LIBCRYPTSETUP_CFLAGS"; then
17056 pkg_cv_LIBCRYPTSETUP_CFLAGS="$LIBCRYPTSETUP_CFLAGS"
17057 elif test -n "$PKG_CONFIG"; then
17058 if test -n "$PKG_CONFIG" && \
17059 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libcryptsetup >= 1.4.2 \""; } >&5
17060 ($PKG_CONFIG --exists --print-errors " libcryptsetup >= 1.4.2 ") 2>&5
17061 ac_status=$?
17062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17063 test $ac_status = 0; }; then
17064 pkg_cv_LIBCRYPTSETUP_CFLAGS=`$PKG_CONFIG --cflags " libcryptsetup >= 1.4.2 " 2>/dev/null`
17065 test "x$?" != "x0" && pkg_failed=yes
17066 else
17067 pkg_failed=yes
17068 fi
17069 else
17070 pkg_failed=untried
17071 fi
17072 if test -n "$LIBCRYPTSETUP_LIBS"; then
17073 pkg_cv_LIBCRYPTSETUP_LIBS="$LIBCRYPTSETUP_LIBS"
17074 elif test -n "$PKG_CONFIG"; then
17075 if test -n "$PKG_CONFIG" && \
17076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libcryptsetup >= 1.4.2 \""; } >&5
17077 ($PKG_CONFIG --exists --print-errors " libcryptsetup >= 1.4.2 ") 2>&5
17078 ac_status=$?
17079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17080 test $ac_status = 0; }; then
17081 pkg_cv_LIBCRYPTSETUP_LIBS=`$PKG_CONFIG --libs " libcryptsetup >= 1.4.2 " 2>/dev/null`
17082 test "x$?" != "x0" && pkg_failed=yes
17083 else
17084 pkg_failed=yes
17085 fi
17086 else
17087 pkg_failed=untried
17088 fi
17089
17090
17091
17092 if test $pkg_failed = yes; then
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17094 $as_echo "no" >&6; }
17095
17096 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17097 _pkg_short_errors_supported=yes
17098 else
17099 _pkg_short_errors_supported=no
17100 fi
17101 if test $_pkg_short_errors_supported = yes; then
17102 LIBCRYPTSETUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " libcryptsetup >= 1.4.2 " 2>&1`
17103 else
17104 LIBCRYPTSETUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " libcryptsetup >= 1.4.2 " 2>&1`
17105 fi
17106 # Put the nasty error message in config.log where it belongs
17107 echo "$LIBCRYPTSETUP_PKG_ERRORS" >&5
17108
17109 have_libcryptsetup=no
17110 elif test $pkg_failed = untried; then
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17112 $as_echo "no" >&6; }
17113 have_libcryptsetup=no
17114 else
17115 LIBCRYPTSETUP_CFLAGS=$pkg_cv_LIBCRYPTSETUP_CFLAGS
17116 LIBCRYPTSETUP_LIBS=$pkg_cv_LIBCRYPTSETUP_LIBS
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17118 $as_echo "yes" >&6; }
17119
17120 $as_echo "#define HAVE_LIBCRYPTSETUP 1" >>confdefs.h
17121 have_libcryptsetup=yes
17122 fi
17123 if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
17124 as_fn_error $? "*** libcryptsetup support requested but libraries not found" "$LINENO" 5
17125 fi
17126 fi
17127 if test "$have_libcryptsetup" = "yes"; then
17128 HAVE_LIBCRYPTSETUP_TRUE=
17129 HAVE_LIBCRYPTSETUP_FALSE='#'
17130 else
17131 HAVE_LIBCRYPTSETUP_TRUE='#'
17132 HAVE_LIBCRYPTSETUP_FALSE=
17133 fi
17134
17135
17136 # ------------------------------------------------------------------------------
17137 have_qrencode=no
17138 # Check whether --enable-qrencode was given.
17139 if test "${enable_qrencode+set}" = set; then :
17140 enableval=$enable_qrencode;
17141 fi
17142
17143 if test "x$enable_qrencode" != "xno"; then
17144
17145 pkg_failed=no
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QRENCODE" >&5
17147 $as_echo_n "checking for QRENCODE... " >&6; }
17148
17149 if test -n "$QRENCODE_CFLAGS"; then
17150 pkg_cv_QRENCODE_CFLAGS="$QRENCODE_CFLAGS"
17151 elif test -n "$PKG_CONFIG"; then
17152 if test -n "$PKG_CONFIG" && \
17153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libqrencode \""; } >&5
17154 ($PKG_CONFIG --exists --print-errors " libqrencode ") 2>&5
17155 ac_status=$?
17156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17157 test $ac_status = 0; }; then
17158 pkg_cv_QRENCODE_CFLAGS=`$PKG_CONFIG --cflags " libqrencode " 2>/dev/null`
17159 test "x$?" != "x0" && pkg_failed=yes
17160 else
17161 pkg_failed=yes
17162 fi
17163 else
17164 pkg_failed=untried
17165 fi
17166 if test -n "$QRENCODE_LIBS"; then
17167 pkg_cv_QRENCODE_LIBS="$QRENCODE_LIBS"
17168 elif test -n "$PKG_CONFIG"; then
17169 if test -n "$PKG_CONFIG" && \
17170 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libqrencode \""; } >&5
17171 ($PKG_CONFIG --exists --print-errors " libqrencode ") 2>&5
17172 ac_status=$?
17173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17174 test $ac_status = 0; }; then
17175 pkg_cv_QRENCODE_LIBS=`$PKG_CONFIG --libs " libqrencode " 2>/dev/null`
17176 test "x$?" != "x0" && pkg_failed=yes
17177 else
17178 pkg_failed=yes
17179 fi
17180 else
17181 pkg_failed=untried
17182 fi
17183
17184
17185
17186 if test $pkg_failed = yes; then
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17188 $as_echo "no" >&6; }
17189
17190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17191 _pkg_short_errors_supported=yes
17192 else
17193 _pkg_short_errors_supported=no
17194 fi
17195 if test $_pkg_short_errors_supported = yes; then
17196 QRENCODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " libqrencode " 2>&1`
17197 else
17198 QRENCODE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " libqrencode " 2>&1`
17199 fi
17200 # Put the nasty error message in config.log where it belongs
17201 echo "$QRENCODE_PKG_ERRORS" >&5
17202
17203 have_qrencode=no
17204 elif test $pkg_failed = untried; then
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17206 $as_echo "no" >&6; }
17207 have_qrencode=no
17208 else
17209 QRENCODE_CFLAGS=$pkg_cv_QRENCODE_CFLAGS
17210 QRENCODE_LIBS=$pkg_cv_QRENCODE_LIBS
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17212 $as_echo "yes" >&6; }
17213
17214 $as_echo "#define HAVE_QRENCODE 1" >>confdefs.h
17215 have_qrencode=yes
17216 fi
17217 if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
17218 as_fn_error $? "*** qrencode support requested but libraries not found" "$LINENO" 5
17219 fi
17220 fi
17221 if test "$have_qrencode" = "yes"; then
17222 HAVE_QRENCODE_TRUE=
17223 HAVE_QRENCODE_FALSE='#'
17224 else
17225 HAVE_QRENCODE_TRUE='#'
17226 HAVE_QRENCODE_FALSE=
17227 fi
17228
17229
17230 # ------------------------------------------------------------------------------
17231 have_microhttpd=no
17232 # Check whether --enable-microhttpd was given.
17233 if test "${enable_microhttpd+set}" = set; then :
17234 enableval=$enable_microhttpd;
17235 fi
17236
17237 if test "x$enable_microhttpd" != "xno"; then
17238
17239 pkg_failed=no
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MICROHTTPD" >&5
17241 $as_echo_n "checking for MICROHTTPD... " >&6; }
17242
17243 if test -n "$MICROHTTPD_CFLAGS"; then
17244 pkg_cv_MICROHTTPD_CFLAGS="$MICROHTTPD_CFLAGS"
17245 elif test -n "$PKG_CONFIG"; then
17246 if test -n "$PKG_CONFIG" && \
17247 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd >= 0.9.5\""; } >&5
17248 ($PKG_CONFIG --exists --print-errors "libmicrohttpd >= 0.9.5") 2>&5
17249 ac_status=$?
17250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17251 test $ac_status = 0; }; then
17252 pkg_cv_MICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd >= 0.9.5" 2>/dev/null`
17253 test "x$?" != "x0" && pkg_failed=yes
17254 else
17255 pkg_failed=yes
17256 fi
17257 else
17258 pkg_failed=untried
17259 fi
17260 if test -n "$MICROHTTPD_LIBS"; then
17261 pkg_cv_MICROHTTPD_LIBS="$MICROHTTPD_LIBS"
17262 elif test -n "$PKG_CONFIG"; then
17263 if test -n "$PKG_CONFIG" && \
17264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd >= 0.9.5\""; } >&5
17265 ($PKG_CONFIG --exists --print-errors "libmicrohttpd >= 0.9.5") 2>&5
17266 ac_status=$?
17267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17268 test $ac_status = 0; }; then
17269 pkg_cv_MICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd >= 0.9.5" 2>/dev/null`
17270 test "x$?" != "x0" && pkg_failed=yes
17271 else
17272 pkg_failed=yes
17273 fi
17274 else
17275 pkg_failed=untried
17276 fi
17277
17278
17279
17280 if test $pkg_failed = yes; then
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17282 $as_echo "no" >&6; }
17283
17284 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17285 _pkg_short_errors_supported=yes
17286 else
17287 _pkg_short_errors_supported=no
17288 fi
17289 if test $_pkg_short_errors_supported = yes; then
17290 MICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd >= 0.9.5" 2>&1`
17291 else
17292 MICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd >= 0.9.5" 2>&1`
17293 fi
17294 # Put the nasty error message in config.log where it belongs
17295 echo "$MICROHTTPD_PKG_ERRORS" >&5
17296
17297 have_microhttpd=no
17298 elif test $pkg_failed = untried; then
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17300 $as_echo "no" >&6; }
17301 have_microhttpd=no
17302 else
17303 MICROHTTPD_CFLAGS=$pkg_cv_MICROHTTPD_CFLAGS
17304 MICROHTTPD_LIBS=$pkg_cv_MICROHTTPD_LIBS
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17306 $as_echo "yes" >&6; }
17307
17308 $as_echo "#define HAVE_MICROHTTPD 1" >>confdefs.h
17309 have_microhttpd=yes
17310 fi
17311 if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
17312 as_fn_error $? "*** microhttpd support requested but libraries not found" "$LINENO" 5
17313 fi
17314 fi
17315 if test "$have_microhttpd" = "yes"; then
17316 HAVE_MICROHTTPD_TRUE=
17317 HAVE_MICROHTTPD_FALSE='#'
17318 else
17319 HAVE_MICROHTTPD_TRUE='#'
17320 HAVE_MICROHTTPD_FALSE=
17321 fi
17322
17323
17324 # ------------------------------------------------------------------------------
17325 have_binfmt=no
17326 # Check whether --enable-binfmt was given.
17327 if test "${enable_binfmt+set}" = set; then :
17328 enableval=$enable_binfmt;
17329 fi
17330
17331 if test "x$enable_binfmt" != "xno"; then
17332 have_binfmt=yes
17333 fi
17334 if test "$have_binfmt" = "yes"; then
17335 ENABLE_BINFMT_TRUE=
17336 ENABLE_BINFMT_FALSE='#'
17337 else
17338 ENABLE_BINFMT_TRUE='#'
17339 ENABLE_BINFMT_FALSE=
17340 fi
17341
17342
17343 # ------------------------------------------------------------------------------
17344 have_vconsole=no
17345 # Check whether --enable-vconsole was given.
17346 if test "${enable_vconsole+set}" = set; then :
17347 enableval=$enable_vconsole;
17348 fi
17349
17350 if test "x$enable_vconsole" != "xno"; then
17351 have_vconsole=yes
17352 fi
17353 if test "$have_vconsole" = "yes"; then
17354 ENABLE_VCONSOLE_TRUE=
17355 ENABLE_VCONSOLE_FALSE='#'
17356 else
17357 ENABLE_VCONSOLE_TRUE='#'
17358 ENABLE_VCONSOLE_FALSE=
17359 fi
17360
17361
17362 # ------------------------------------------------------------------------------
17363 have_readahead=no
17364 # Check whether --enable-readahead was given.
17365 if test "${enable_readahead+set}" = set; then :
17366 enableval=$enable_readahead;
17367 fi
17368
17369 if test "x$enable_readahead" != "xno"; then
17370 have_readahead=yes
17371 fi
17372 if test "$have_readahead" = "yes"; then
17373 ENABLE_READAHEAD_TRUE=
17374 ENABLE_READAHEAD_FALSE='#'
17375 else
17376 ENABLE_READAHEAD_TRUE='#'
17377 ENABLE_READAHEAD_FALSE=
17378 fi
17379
17380
17381 # ------------------------------------------------------------------------------
17382 have_bootchart=no
17383 # Check whether --enable-bootchart was given.
17384 if test "${enable_bootchart+set}" = set; then :
17385 enableval=$enable_bootchart;
17386 fi
17387
17388 if test "x$enable_bootchart" != "xno"; then
17389 have_bootchart=yes
17390 fi
17391 if test "$have_bootchart" = "yes"; then
17392 ENABLE_BOOTCHART_TRUE=
17393 ENABLE_BOOTCHART_FALSE='#'
17394 else
17395 ENABLE_BOOTCHART_TRUE='#'
17396 ENABLE_BOOTCHART_FALSE=
17397 fi
17398
17399
17400 # ------------------------------------------------------------------------------
17401 have_quotacheck=no
17402 # Check whether --enable-quotacheck was given.
17403 if test "${enable_quotacheck+set}" = set; then :
17404 enableval=$enable_quotacheck;
17405 fi
17406
17407 if test "x$enable_quotacheck" != "xno"; then
17408 have_quotacheck=yes
17409 fi
17410 if test "$have_quotacheck" = "yes"; then
17411 ENABLE_QUOTACHECK_TRUE=
17412 ENABLE_QUOTACHECK_FALSE='#'
17413 else
17414 ENABLE_QUOTACHECK_TRUE='#'
17415 ENABLE_QUOTACHECK_FALSE=
17416 fi
17417
17418
17419 # ------------------------------------------------------------------------------
17420 have_randomseed=no
17421 # Check whether --enable-randomseed was given.
17422 if test "${enable_randomseed+set}" = set; then :
17423 enableval=$enable_randomseed;
17424 fi
17425
17426 if test "x$enable_randomseed" != "xno"; then
17427 have_randomseed=yes
17428 fi
17429 if test "$have_randomseed" = "yes"; then
17430 ENABLE_RANDOMSEED_TRUE=
17431 ENABLE_RANDOMSEED_FALSE='#'
17432 else
17433 ENABLE_RANDOMSEED_TRUE='#'
17434 ENABLE_RANDOMSEED_FALSE=
17435 fi
17436
17437
17438 # ------------------------------------------------------------------------------
17439 have_logind=no
17440 # Check whether --enable-logind was given.
17441 if test "${enable_logind+set}" = set; then :
17442 enableval=$enable_logind;
17443 fi
17444
17445 if test "x$enable_logind" != "xno"; then
17446 have_logind=yes
17447 fi
17448 if test "$have_logind" = "yes"; then
17449 ENABLE_LOGIND_TRUE=
17450 ENABLE_LOGIND_FALSE='#'
17451 else
17452 ENABLE_LOGIND_TRUE='#'
17453 ENABLE_LOGIND_FALSE=
17454 fi
17455
17456 if test "$have_logind" = "yes"; then :
17457
17458 $as_echo "#define HAVE_LOGIND 1" >>confdefs.h
17459
17460 fi
17461
17462 # ------------------------------------------------------------------------------
17463 have_hostnamed=no
17464 # Check whether --enable-hostnamed was given.
17465 if test "${enable_hostnamed+set}" = set; then :
17466 enableval=$enable_hostnamed;
17467 fi
17468
17469 if test "x$enable_hostnamed" != "xno"; then
17470 have_hostnamed=yes
17471 fi
17472 if test "$have_hostnamed" = "yes"; then
17473 ENABLE_HOSTNAMED_TRUE=
17474 ENABLE_HOSTNAMED_FALSE='#'
17475 else
17476 ENABLE_HOSTNAMED_TRUE='#'
17477 ENABLE_HOSTNAMED_FALSE=
17478 fi
17479
17480
17481 # ------------------------------------------------------------------------------
17482 have_timedated=no
17483 # Check whether --enable-timedated was given.
17484 if test "${enable_timedated+set}" = set; then :
17485 enableval=$enable_timedated;
17486 fi
17487
17488 if test "x$enable_timedated" != "xno"; then
17489 have_timedated=yes
17490 fi
17491 if test "$have_timedated" = "yes"; then
17492 ENABLE_TIMEDATED_TRUE=
17493 ENABLE_TIMEDATED_FALSE='#'
17494 else
17495 ENABLE_TIMEDATED_TRUE='#'
17496 ENABLE_TIMEDATED_FALSE=
17497 fi
17498
17499
17500 # ------------------------------------------------------------------------------
17501 have_localed=no
17502 # Check whether --enable-localed was given.
17503 if test "${enable_localed+set}" = set; then :
17504 enableval=$enable_localed;
17505 fi
17506
17507 if test "x$enable_localed" != "xno"; then
17508 have_localed=yes
17509 fi
17510 if test "$have_localed" = "yes"; then
17511 ENABLE_LOCALED_TRUE=
17512 ENABLE_LOCALED_FALSE='#'
17513 else
17514 ENABLE_LOCALED_TRUE='#'
17515 ENABLE_LOCALED_FALSE=
17516 fi
17517
17518
17519 # ------------------------------------------------------------------------------
17520 have_coredump=no
17521 # Check whether --enable-coredump was given.
17522 if test "${enable_coredump+set}" = set; then :
17523 enableval=$enable_coredump;
17524 fi
17525
17526 if test "x$enable_coredump" != "xno"; then
17527 have_coredump=yes
17528 fi
17529 if test "$have_coredump" = "yes"; then
17530 ENABLE_COREDUMP_TRUE=
17531 ENABLE_COREDUMP_FALSE='#'
17532 else
17533 ENABLE_COREDUMP_TRUE='#'
17534 ENABLE_COREDUMP_FALSE=
17535 fi
17536
17537
17538 # ------------------------------------------------------------------------------
17539 have_polkit=no
17540 # Check whether --enable-polkit was given.
17541 if test "${enable_polkit+set}" = set; then :
17542 enableval=$enable_polkit;
17543 fi
17544
17545 if test "x$enable_polkit" != "xno"; then
17546
17547 $as_echo "#define ENABLE_POLKIT 1" >>confdefs.h
17548
17549 have_polkit=yes
17550 fi
17551 if test "x$have_polkit" = "xyes"; then
17552 ENABLE_POLKIT_TRUE=
17553 ENABLE_POLKIT_FALSE='#'
17554 else
17555 ENABLE_POLKIT_TRUE='#'
17556 ENABLE_POLKIT_FALSE=
17557 fi
17558
17559
17560 # ------------------------------------------------------------------------------
17561 have_efi=no
17562 # Check whether --enable-efi was given.
17563 if test "${enable_efi+set}" = set; then :
17564 enableval=$enable_efi;
17565 fi
17566
17567 if test "x$enable_efi" != "xno"; then
17568
17569 $as_echo "#define ENABLE_EFI 1" >>confdefs.h
17570
17571 have_efi=yes
17572 fi
17573 if test "x$have_efi" = "xyes"; then
17574 ENABLE_EFI_TRUE=
17575 ENABLE_EFI_FALSE='#'
17576 else
17577 ENABLE_EFI_TRUE='#'
17578 ENABLE_EFI_FALSE=
17579 fi
17580
17581
17582 # ------------------------------------------------------------------------------
17583
17584 # Check whether --with-rc-local-script-path-start was given.
17585 if test "${with_rc_local_script_path_start+set}" = set; then :
17586 withval=$with_rc_local_script_path_start; RC_LOCAL_SCRIPT_PATH_START="$withval"
17587 else
17588 RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"
17589 fi
17590
17591
17592
17593 # Check whether --with-rc-local-script-path-stop was given.
17594 if test "${with_rc_local_script_path_stop+set}" = set; then :
17595 withval=$with_rc_local_script_path_stop; RC_LOCAL_SCRIPT_PATH_STOP="$withval"
17596 else
17597 RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"
17598 fi
17599
17600
17601
17602 cat >>confdefs.h <<_ACEOF
17603 #define RC_LOCAL_SCRIPT_PATH_START "$RC_LOCAL_SCRIPT_PATH_START"
17604 _ACEOF
17605
17606
17607 cat >>confdefs.h <<_ACEOF
17608 #define RC_LOCAL_SCRIPT_PATH_STOP "$RC_LOCAL_SCRIPT_PATH_STOP"
17609 _ACEOF
17610
17611
17612
17613
17614
17615 # ------------------------------------------------------------------------------
17616
17617 # Check whether --with-kbd-loadkeys was given.
17618 if test "${with_kbd_loadkeys+set}" = set; then :
17619 withval=$with_kbd_loadkeys; KBD_LOADKEYS="$withval"
17620 else
17621 KBD_LOADKEYS="/usr/bin/loadkeys"
17622 fi
17623
17624
17625
17626 # Check whether --with-kbd-setfont was given.
17627 if test "${with_kbd_setfont+set}" = set; then :
17628 withval=$with_kbd_setfont; KBD_SETFONT="$withval"
17629 else
17630 KBD_SETFONT="/usr/bin/setfont"
17631 fi
17632
17633
17634
17635 cat >>confdefs.h <<_ACEOF
17636 #define KBD_LOADKEYS "$KBD_LOADKEYS"
17637 _ACEOF
17638
17639
17640 cat >>confdefs.h <<_ACEOF
17641 #define KBD_SETFONT "$KBD_SETFONT"
17642 _ACEOF
17643
17644
17645
17646
17647
17648
17649 # Check whether --with-telinit was given.
17650 if test "${with_telinit+set}" = set; then :
17651 withval=$with_telinit; TELINIT="$withval"
17652 else
17653 TELINIT="/lib/upstart/telinit"
17654 fi
17655
17656
17657
17658 cat >>confdefs.h <<_ACEOF
17659 #define TELINIT "$TELINIT"
17660 _ACEOF
17661
17662
17663
17664
17665
17666
17667
17668 for ac_header in $ac_header_list
17669 do :
17670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17671 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17672 "
17673 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17674 cat >>confdefs.h <<_ACEOF
17675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17676 _ACEOF
17677
17678 fi
17679
17680 done
17681
17682
17683
17684
17685
17686 # ------------------------------------------------------------------------------
17687 have_myhostname=no
17688 # Check whether --enable-myhostname was given.
17689 if test "${enable_myhostname+set}" = set; then :
17690 enableval=$enable_myhostname;
17691 fi
17692
17693 if test "x$enable_myhostname" != "xno"; then
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17695 $as_echo_n "checking for ANSI C header files... " >&6; }
17696 if ${ac_cv_header_stdc+:} false; then :
17697 $as_echo_n "(cached) " >&6
17698 else
17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h. */
17701 #include <stdlib.h>
17702 #include <stdarg.h>
17703 #include <string.h>
17704 #include <float.h>
17705
17706 int
17707 main ()
17708 {
17709
17710 ;
17711 return 0;
17712 }
17713 _ACEOF
17714 if ac_fn_c_try_compile "$LINENO"; then :
17715 ac_cv_header_stdc=yes
17716 else
17717 ac_cv_header_stdc=no
17718 fi
17719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17720
17721 if test $ac_cv_header_stdc = yes; then
17722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h. */
17725 #include <string.h>
17726
17727 _ACEOF
17728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17729 $EGREP "memchr" >/dev/null 2>&1; then :
17730
17731 else
17732 ac_cv_header_stdc=no
17733 fi
17734 rm -f conftest*
17735
17736 fi
17737
17738 if test $ac_cv_header_stdc = yes; then
17739 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741 /* end confdefs.h. */
17742 #include <stdlib.h>
17743
17744 _ACEOF
17745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17746 $EGREP "free" >/dev/null 2>&1; then :
17747
17748 else
17749 ac_cv_header_stdc=no
17750 fi
17751 rm -f conftest*
17752
17753 fi
17754
17755 if test $ac_cv_header_stdc = yes; then
17756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17757 if test "$cross_compiling" = yes; then :
17758 :
17759 else
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17762 #include <ctype.h>
17763 #include <stdlib.h>
17764 #if ((' ' & 0x0FF) == 0x020)
17765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17767 #else
17768 # define ISLOWER(c) \
17769 (('a' <= (c) && (c) <= 'i') \
17770 || ('j' <= (c) && (c) <= 'r') \
17771 || ('s' <= (c) && (c) <= 'z'))
17772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17773 #endif
17774
17775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17776 int
17777 main ()
17778 {
17779 int i;
17780 for (i = 0; i < 256; i++)
17781 if (XOR (islower (i), ISLOWER (i))
17782 || toupper (i) != TOUPPER (i))
17783 return 2;
17784 return 0;
17785 }
17786 _ACEOF
17787 if ac_fn_c_try_run "$LINENO"; then :
17788
17789 else
17790 ac_cv_header_stdc=no
17791 fi
17792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17793 conftest.$ac_objext conftest.beam conftest.$ac_ext
17794 fi
17795
17796 fi
17797 fi
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17799 $as_echo "$ac_cv_header_stdc" >&6; }
17800 if test $ac_cv_header_stdc = yes; then
17801
17802 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17803
17804 fi
17805
17806 for ac_header in arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h nss.h sys/ioctl.h
17807 do :
17808 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17809 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17810 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17811 cat >>confdefs.h <<_ACEOF
17812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17813 _ACEOF
17814
17815 fi
17816
17817 done
17818
17819
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17821 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17822 if ${ac_cv_c_const+:} false; then :
17823 $as_echo_n "(cached) " >&6
17824 else
17825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h. */
17827
17828 int
17829 main ()
17830 {
17831
17832 #ifndef __cplusplus
17833 /* Ultrix mips cc rejects this sort of thing. */
17834 typedef int charset[2];
17835 const charset cs = { 0, 0 };
17836 /* SunOS 4.1.1 cc rejects this. */
17837 char const *const *pcpcc;
17838 char **ppc;
17839 /* NEC SVR4.0.2 mips cc rejects this. */
17840 struct point {int x, y;};
17841 static struct point const zero = {0,0};
17842 /* AIX XL C 1.02.0.0 rejects this.
17843 It does not let you subtract one const X* pointer from another in
17844 an arm of an if-expression whose if-part is not a constant
17845 expression */
17846 const char *g = "string";
17847 pcpcc = &g + (g ? g-g : 0);
17848 /* HPUX 7.0 cc rejects these. */
17849 ++pcpcc;
17850 ppc = (char**) pcpcc;
17851 pcpcc = (char const *const *) ppc;
17852 { /* SCO 3.2v4 cc rejects this sort of thing. */
17853 char tx;
17854 char *t = &tx;
17855 char const *s = 0 ? (char *) 0 : (char const *) 0;
17856
17857 *t++ = 0;
17858 if (s) return 0;
17859 }
17860 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17861 int x[] = {25, 17};
17862 const int *foo = &x[0];
17863 ++foo;
17864 }
17865 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17866 typedef const int *iptr;
17867 iptr p = 0;
17868 ++p;
17869 }
17870 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17871 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17872 struct s { int j; const int *ap[3]; } bx;
17873 struct s *b = &bx; b->j = 5;
17874 }
17875 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17876 const int foo = 10;
17877 if (!foo) return 0;
17878 }
17879 return !cs[0] && !zero.x;
17880 #endif
17881
17882 ;
17883 return 0;
17884 }
17885 _ACEOF
17886 if ac_fn_c_try_compile "$LINENO"; then :
17887 ac_cv_c_const=yes
17888 else
17889 ac_cv_c_const=no
17890 fi
17891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892 fi
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17894 $as_echo "$ac_cv_c_const" >&6; }
17895 if test $ac_cv_c_const = no; then
17896
17897 $as_echo "#define const /**/" >>confdefs.h
17898
17899 fi
17900
17901 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17902 if test "x$ac_cv_type_size_t" = xyes; then :
17903
17904 else
17905
17906 cat >>confdefs.h <<_ACEOF
17907 #define size_t unsigned int
17908 _ACEOF
17909
17910 fi
17911
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17913 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17914 if ${ac_cv_header_time+:} false; then :
17915 $as_echo_n "(cached) " >&6
17916 else
17917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918 /* end confdefs.h. */
17919 #include <sys/types.h>
17920 #include <sys/time.h>
17921 #include <time.h>
17922
17923 int
17924 main ()
17925 {
17926 if ((struct tm *) 0)
17927 return 0;
17928 ;
17929 return 0;
17930 }
17931 _ACEOF
17932 if ac_fn_c_try_compile "$LINENO"; then :
17933 ac_cv_header_time=yes
17934 else
17935 ac_cv_header_time=no
17936 fi
17937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17938 fi
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17940 $as_echo "$ac_cv_header_time" >&6; }
17941 if test $ac_cv_header_time = yes; then
17942
17943 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17944
17945 fi
17946
17947
17948 for ac_header in stdlib.h
17949 do :
17950 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17951 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17952 cat >>confdefs.h <<_ACEOF
17953 #define HAVE_STDLIB_H 1
17954 _ACEOF
17955
17956 fi
17957
17958 done
17959
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17961 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17962 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17963 $as_echo_n "(cached) " >&6
17964 else
17965 if test "$cross_compiling" = yes; then :
17966 ac_cv_func_malloc_0_nonnull=no
17967 else
17968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969 /* end confdefs.h. */
17970 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17971 # include <stdlib.h>
17972 #else
17973 char *malloc ();
17974 #endif
17975
17976 int
17977 main ()
17978 {
17979 return ! malloc (0);
17980 ;
17981 return 0;
17982 }
17983 _ACEOF
17984 if ac_fn_c_try_run "$LINENO"; then :
17985 ac_cv_func_malloc_0_nonnull=yes
17986 else
17987 ac_cv_func_malloc_0_nonnull=no
17988 fi
17989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17990 conftest.$ac_objext conftest.beam conftest.$ac_ext
17991 fi
17992
17993 fi
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17995 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17996 if test $ac_cv_func_malloc_0_nonnull = yes; then :
17997
17998 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
17999
18000 else
18001 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
18002
18003 case " $LIBOBJS " in
18004 *" malloc.$ac_objext "* ) ;;
18005 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
18006 ;;
18007 esac
18008
18009
18010 $as_echo "#define malloc rpl_malloc" >>confdefs.h
18011
18012 fi
18013
18014
18015 for ac_header in sys/select.h sys/socket.h
18016 do :
18017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18018 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18019 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18020 cat >>confdefs.h <<_ACEOF
18021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18022 _ACEOF
18023
18024 fi
18025
18026 done
18027
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
18029 $as_echo_n "checking types of arguments for select... " >&6; }
18030 if ${ac_cv_func_select_args+:} false; then :
18031 $as_echo_n "(cached) " >&6
18032 else
18033 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
18034 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
18035 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
18036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18037 /* end confdefs.h. */
18038 $ac_includes_default
18039 #ifdef HAVE_SYS_SELECT_H
18040 # include <sys/select.h>
18041 #endif
18042 #ifdef HAVE_SYS_SOCKET_H
18043 # include <sys/socket.h>
18044 #endif
18045
18046 int
18047 main ()
18048 {
18049 extern int select ($ac_arg1,
18050 $ac_arg234, $ac_arg234, $ac_arg234,
18051 $ac_arg5);
18052 ;
18053 return 0;
18054 }
18055 _ACEOF
18056 if ac_fn_c_try_compile "$LINENO"; then :
18057 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
18058 fi
18059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060 done
18061 done
18062 done
18063 # Provide a safe default value.
18064 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
18065
18066 fi
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
18068 $as_echo "$ac_cv_func_select_args" >&6; }
18069 ac_save_IFS=$IFS; IFS=','
18070 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
18071 IFS=$ac_save_IFS
18072 shift
18073
18074 cat >>confdefs.h <<_ACEOF
18075 #define SELECT_TYPE_ARG1 $1
18076 _ACEOF
18077
18078
18079 cat >>confdefs.h <<_ACEOF
18080 #define SELECT_TYPE_ARG234 ($2)
18081 _ACEOF
18082
18083
18084 cat >>confdefs.h <<_ACEOF
18085 #define SELECT_TYPE_ARG5 ($3)
18086 _ACEOF
18087
18088 rm -f conftest*
18089
18090 for ac_func in gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn
18091 do :
18092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18093 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18094 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18095 cat >>confdefs.h <<_ACEOF
18096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18097 _ACEOF
18098
18099 fi
18100 done
18101
18102
18103 have_myhostname=yes
18104 fi
18105 if test "$have_myhostname" = "yes"; then
18106 HAVE_MYHOSTNAME_TRUE=
18107 HAVE_MYHOSTNAME_FALSE='#'
18108 else
18109 HAVE_MYHOSTNAME_TRUE='#'
18110 HAVE_MYHOSTNAME_FALSE=
18111 fi
18112
18113
18114 # ------------------------------------------------------------------------------
18115
18116 # Check whether --with-firmware-path was given.
18117 if test "${with_firmware_path+set}" = set; then :
18118 withval=$with_firmware_path;
18119 else
18120 with_firmware_path=""
18121 fi
18122
18123 OLD_IFS=$IFS
18124 IFS=:
18125 for i in $with_firmware_path; do
18126 if test "x${FIRMWARE_PATH}" = "x"; then
18127 FIRMWARE_PATH="\\\"${i}/\\\""
18128 else
18129 FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
18130 fi
18131 done
18132 IFS=$OLD_IFS
18133
18134 if test "x${FIRMWARE_PATH}" != "x"; then :
18135
18136 $as_echo "#define HAVE_FIRMWARE 1" >>confdefs.h
18137
18138 fi
18139 if test "x${FIRMWARE_PATH}" != "x"; then
18140 ENABLE_FIRMWARE_TRUE=
18141 ENABLE_FIRMWARE_FALSE='#'
18142 else
18143 ENABLE_FIRMWARE_TRUE='#'
18144 ENABLE_FIRMWARE_FALSE=
18145 fi
18146
18147
18148 # ------------------------------------------------------------------------------
18149 # Check whether --enable-gudev was given.
18150 if test "${enable_gudev+set}" = set; then :
18151 enableval=$enable_gudev;
18152 else
18153 enable_gudev=yes
18154 fi
18155
18156 if test "x$enable_gudev" = "xyes"; then :
18157
18158 pkg_failed=no
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
18160 $as_echo_n "checking for GLIB... " >&6; }
18161
18162 if test -n "$GLIB_CFLAGS"; then
18163 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
18164 elif test -n "$PKG_CONFIG"; then
18165 if test -n "$PKG_CONFIG" && \
18166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0\""; } >&5
18167 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0") 2>&5
18168 ac_status=$?
18169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18170 test $ac_status = 0; }; then
18171 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0" 2>/dev/null`
18172 test "x$?" != "x0" && pkg_failed=yes
18173 else
18174 pkg_failed=yes
18175 fi
18176 else
18177 pkg_failed=untried
18178 fi
18179 if test -n "$GLIB_LIBS"; then
18180 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
18181 elif test -n "$PKG_CONFIG"; then
18182 if test -n "$PKG_CONFIG" && \
18183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0\""; } >&5
18184 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0") 2>&5
18185 ac_status=$?
18186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18187 test $ac_status = 0; }; then
18188 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0" 2>/dev/null`
18189 test "x$?" != "x0" && pkg_failed=yes
18190 else
18191 pkg_failed=yes
18192 fi
18193 else
18194 pkg_failed=untried
18195 fi
18196
18197
18198
18199 if test $pkg_failed = yes; then
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18201 $as_echo "no" >&6; }
18202
18203 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18204 _pkg_short_errors_supported=yes
18205 else
18206 _pkg_short_errors_supported=no
18207 fi
18208 if test $_pkg_short_errors_supported = yes; then
18209 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0" 2>&1`
18210 else
18211 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0" 2>&1`
18212 fi
18213 # Put the nasty error message in config.log where it belongs
18214 echo "$GLIB_PKG_ERRORS" >&5
18215
18216 as_fn_error $? "Package requirements (glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0) were not met:
18217
18218 $GLIB_PKG_ERRORS
18219
18220 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18221 installed software in a non-standard prefix.
18222
18223 Alternatively, you may set the environment variables GLIB_CFLAGS
18224 and GLIB_LIBS to avoid the need to call pkg-config.
18225 See the pkg-config man page for more details." "$LINENO" 5
18226 elif test $pkg_failed = untried; then
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18228 $as_echo "no" >&6; }
18229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18231 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18232 is in your PATH or set the PKG_CONFIG environment variable to the full
18233 path to pkg-config.
18234
18235 Alternatively, you may set the environment variables GLIB_CFLAGS
18236 and GLIB_LIBS to avoid the need to call pkg-config.
18237 See the pkg-config man page for more details.
18238
18239 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18240 See \`config.log' for more details" "$LINENO" 5; }
18241 else
18242 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
18243 GLIB_LIBS=$pkg_cv_GLIB_LIBS
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18245 $as_echo "yes" >&6; }
18246
18247 fi
18248 fi
18249 if test "x$enable_gudev" = "xyes"; then
18250 ENABLE_GUDEV_TRUE=
18251 ENABLE_GUDEV_FALSE='#'
18252 else
18253 ENABLE_GUDEV_TRUE='#'
18254 ENABLE_GUDEV_FALSE=
18255 fi
18256
18257 if test "x$enable_gudev" = "xyes"; then :
18258
18259 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
18260
18261 fi
18262
18263 # ------------------------------------------------------------------------------
18264 # Check whether --enable-keymap was given.
18265 if test "${enable_keymap+set}" = set; then :
18266 enableval=$enable_keymap;
18267 else
18268 enable_keymap=yes
18269 fi
18270
18271 if test "x$enable_keymap" = "xyes"; then :
18272
18273 # Extract the first word of "gperf", so it can be a program name with args.
18274 set dummy gperf; ac_word=$2
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18276 $as_echo_n "checking for $ac_word... " >&6; }
18277 if ${ac_cv_path_GPERF+:} false; then :
18278 $as_echo_n "(cached) " >&6
18279 else
18280 case $GPERF in
18281 [\\/]* | ?:[\\/]*)
18282 ac_cv_path_GPERF="$GPERF" # Let the user override the test with a path.
18283 ;;
18284 *)
18285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18286 for as_dir in $PATH
18287 do
18288 IFS=$as_save_IFS
18289 test -z "$as_dir" && as_dir=.
18290 for ac_exec_ext in '' $ac_executable_extensions; do
18291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18292 ac_cv_path_GPERF="$as_dir/$ac_word$ac_exec_ext"
18293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18294 break 2
18295 fi
18296 done
18297 done
18298 IFS=$as_save_IFS
18299
18300 ;;
18301 esac
18302 fi
18303 GPERF=$ac_cv_path_GPERF
18304 if test -n "$GPERF"; then
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
18306 $as_echo "$GPERF" >&6; }
18307 else
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18309 $as_echo "no" >&6; }
18310 fi
18311
18312
18313 if test -z "$GPERF"; then
18314 as_fn_error $? "gperf is needed" "$LINENO" 5
18315 fi
18316
18317 ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
18318 if test "x$ac_cv_header_linux_input_h" = xyes; then :
18319 :
18320 else
18321 as_fn_error $? "kernel headers not found" "$LINENO" 5
18322 fi
18323
18324
18325 INCLUDE_PREFIX=$(echo '#include <linux/input.h>' | eval $ac_cpp -E - | sed -n '/linux\/input.h/ {s:.*"\(.*\)/linux/input.h".*:\1:; p; q}')
18326
18327
18328 fi
18329 if test "x$enable_keymap" = "xyes"; then
18330 ENABLE_KEYMAP_TRUE=
18331 ENABLE_KEYMAP_FALSE='#'
18332 else
18333 ENABLE_KEYMAP_TRUE='#'
18334 ENABLE_KEYMAP_FALSE=
18335 fi
18336
18337
18338 # ------------------------------------------------------------------------------
18339 have_manpages=no
18340 # Check whether --enable-manpages was given.
18341 if test "${enable_manpages+set}" = set; then :
18342 enableval=$enable_manpages;
18343 fi
18344
18345 if test "x$enable_manpages" != xno; then :
18346
18347 if test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x; then :
18348
18349 as_fn_error $? "*** Manpages requested but xsltproc not found" "$LINENO" 5
18350
18351 fi
18352 if test "x$XSLTPROC" != x; then :
18353 have_manpages=yes
18354 fi
18355
18356 fi
18357 if test "x$have_manpages" = "xyes"; then
18358 ENABLE_MANPAGES_TRUE=
18359 ENABLE_MANPAGES_FALSE='#'
18360 else
18361 ENABLE_MANPAGES_TRUE='#'
18362 ENABLE_MANPAGES_FALSE=
18363 fi
18364
18365
18366 # ------------------------------------------------------------------------------
18367
18368 # Location of the init scripts as mandated by LSB
18369 SYSTEM_SYSVINIT_PATH=/etc/init.d
18370 SYSTEM_SYSVRCND_PATH=/etc/rc.d
18371 M4_DEFINES=
18372
18373
18374 # Check whether --with-sysvinit-path was given.
18375 if test "${with_sysvinit_path+set}" = set; then :
18376 withval=$with_sysvinit_path; SYSTEM_SYSVINIT_PATH="$withval"
18377 fi
18378
18379
18380
18381 # Check whether --with-sysvrcnd-path was given.
18382 if test "${with_sysvrcnd_path+set}" = set; then :
18383 withval=$with_sysvrcnd_path; SYSTEM_SYSVRCND_PATH="$withval"
18384 fi
18385
18386
18387 if test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
18388
18389 $as_echo "#define HAVE_SYSV_COMPAT /**/" >>confdefs.h
18390
18391 SYSTEM_SYSV_COMPAT="yes"
18392 M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
18393 elif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
18394 as_fn_error $? "*** You need both --with-sysvinit-path=PATH and --with-sysvrcnd-path=PATH to enable SysV compatibility support, or both empty to disable it." "$LINENO" 5
18395 else
18396 SYSTEM_SYSV_COMPAT="no"
18397 fi
18398
18399
18400
18401
18402
18403 if test "$SYSTEM_SYSV_COMPAT" = "yes"; then
18404 HAVE_SYSV_COMPAT_TRUE=
18405 HAVE_SYSV_COMPAT_FALSE='#'
18406 else
18407 HAVE_SYSV_COMPAT_TRUE='#'
18408 HAVE_SYSV_COMPAT_FALSE=
18409 fi
18410
18411
18412
18413 # Check whether --with-tty-gid was given.
18414 if test "${with_tty_gid+set}" = set; then :
18415 withval=$with_tty_gid;
18416 cat >>confdefs.h <<_ACEOF
18417 #define TTY_GID $withval
18418 _ACEOF
18419
18420 fi
18421
18422
18423
18424 # Check whether --with-dbuspolicydir was given.
18425 if test "${with_dbuspolicydir+set}" = set; then :
18426 withval=$with_dbuspolicydir;
18427 else
18428 with_dbuspolicydir=$($PKG_CONFIG --variable=sysconfdir dbus-1)/dbus-1/system.d
18429 fi
18430
18431
18432
18433 # Check whether --with-dbussessionservicedir was given.
18434 if test "${with_dbussessionservicedir+set}" = set; then :
18435 withval=$with_dbussessionservicedir;
18436 else
18437 with_dbussessionservicedir=$($PKG_CONFIG --variable=session_bus_services_dir dbus-1)
18438 fi
18439
18440
18441
18442 # Check whether --with-dbussystemservicedir was given.
18443 if test "${with_dbussystemservicedir+set}" = set; then :
18444 withval=$with_dbussystemservicedir;
18445 else
18446 with_dbussystemservicedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../system-services)
18447 fi
18448
18449
18450
18451 # Check whether --with-dbusinterfacedir was given.
18452 if test "${with_dbusinterfacedir+set}" = set; then :
18453 withval=$with_dbusinterfacedir;
18454 else
18455 with_dbusinterfacedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../interfaces)
18456 fi
18457
18458
18459
18460 # Check whether --with-bashcompletiondir was given.
18461 if test "${with_bashcompletiondir+set}" = set; then :
18462 withval=$with_bashcompletiondir;
18463 else
18464 if $($PKG_CONFIG --exists bash-completion); then :
18465
18466 with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)
18467
18468 else
18469
18470 with_bashcompletiondir=${datadir}/bash-completion/completions
18471
18472 fi
18473 fi
18474
18475
18476
18477 # Check whether --with-rootprefix was given.
18478 if test "${with_rootprefix+set}" = set; then :
18479 withval=$with_rootprefix;
18480 else
18481 with_rootprefix=${ac_default_prefix}
18482 fi
18483
18484
18485
18486 # Check whether --with-rootlibdir was given.
18487 if test "${with_rootlibdir+set}" = set; then :
18488 withval=$with_rootlibdir;
18489 else
18490 with_rootlibdir=${libdir}
18491 fi
18492
18493
18494
18495 # Check whether --with-pamlibdir was given.
18496 if test "${with_pamlibdir+set}" = set; then :
18497 withval=$with_pamlibdir;
18498 else
18499 with_pamlibdir=${with_rootlibdir}/security
18500 fi
18501
18502
18503 # Check whether --enable-split-usr was given.
18504 if test "${enable_split_usr+set}" = set; then :
18505 enableval=$enable_split_usr;
18506 else
18507 if test "x${ac_default_prefix}" != "x${with_rootprefix}"; then :
18508
18509 enable_split_usr=yes
18510
18511 else
18512
18513 enable_split_usr=no
18514
18515 fi
18516 fi
18517
18518
18519 if test "x${enable_split_usr}" = "xyes"; then :
18520
18521
18522 $as_echo "#define HAVE_SPLIT_USR 1" >>confdefs.h
18523
18524
18525 fi
18526
18527 # Work around intltoolize and gtk-doc problems in VPATH builds
18528 if test "x$0" = "x./configure"; then
18529 ENABLE_GTK_DOC_TESTS_TRUE=
18530 ENABLE_GTK_DOC_TESTS_FALSE='#'
18531 else
18532 ENABLE_GTK_DOC_TESTS_TRUE='#'
18533 ENABLE_GTK_DOC_TESTS_FALSE=
18534 fi
18535
18536 if test "x$0" != "x./configure"; then :
18537
18538 INTLTOOL_UPDATE=/bin/true
18539
18540
18541 fi
18542
18543 # Check whether --enable-tests was given.
18544 if test "${enable_tests+set}" = set; then :
18545 enableval=$enable_tests; enable_tests=$enableval
18546 else
18547 enable_tests=yes
18548 fi
18549
18550 if test x$enable_tests = xyes; then
18551 ENABLE_TESTS_TRUE=
18552 ENABLE_TESTS_FALSE='#'
18553 else
18554 ENABLE_TESTS_TRUE='#'
18555 ENABLE_TESTS_FALSE=
18556 fi
18557
18558
18559 dbuspolicydir=$with_dbuspolicydir
18560
18561 dbussessionservicedir=$with_dbussessionservicedir
18562
18563 dbussystemservicedir=$with_dbussystemservicedir
18564
18565 dbusinterfacedir=$with_dbusinterfacedir
18566
18567 bashcompletiondir=$with_bashcompletiondir
18568
18569 pamlibdir=$with_pamlibdir
18570
18571 rootprefix=$with_rootprefix
18572
18573 rootlibdir=$with_rootlibdir
18574
18575
18576 ac_config_files="$ac_config_files Makefile po/Makefile.in docs/libudev/Makefile docs/libudev/version.xml docs/gudev/Makefile docs/gudev/version.xml"
18577
18578
18579 cat >confcache <<\_ACEOF
18580 # This file is a shell script that caches the results of configure
18581 # tests run on this system so they can be shared between configure
18582 # scripts and configure runs, see configure's option --config-cache.
18583 # It is not useful on other systems. If it contains results you don't
18584 # want to keep, you may remove or edit it.
18585 #
18586 # config.status only pays attention to the cache file if you give it
18587 # the --recheck option to rerun configure.
18588 #
18589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18591 # following values.
18592
18593 _ACEOF
18594
18595 # The following way of writing the cache mishandles newlines in values,
18596 # but we know of no workaround that is simple, portable, and efficient.
18597 # So, we kill variables containing newlines.
18598 # Ultrix sh set writes to stderr and can't be redirected directly,
18599 # and sets the high bit in the cache file unless we assign to the vars.
18600 (
18601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18602 eval ac_val=\$$ac_var
18603 case $ac_val in #(
18604 *${as_nl}*)
18605 case $ac_var in #(
18606 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18607 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18608 esac
18609 case $ac_var in #(
18610 _ | IFS | as_nl) ;; #(
18611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18612 *) { eval $ac_var=; unset $ac_var;} ;;
18613 esac ;;
18614 esac
18615 done
18616
18617 (set) 2>&1 |
18618 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18619 *${as_nl}ac_space=\ *)
18620 # `set' does not quote correctly, so add quotes: double-quote
18621 # substitution turns \\\\ into \\, and sed turns \\ into \.
18622 sed -n \
18623 "s/'/'\\\\''/g;
18624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18625 ;; #(
18626 *)
18627 # `set' quotes correctly as required by POSIX, so do not add quotes.
18628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18629 ;;
18630 esac |
18631 sort
18632 ) |
18633 sed '
18634 /^ac_cv_env_/b end
18635 t clear
18636 :clear
18637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18638 t end
18639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18640 :end' >>confcache
18641 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18642 if test -w "$cache_file"; then
18643 if test "x$cache_file" != "x/dev/null"; then
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18645 $as_echo "$as_me: updating cache $cache_file" >&6;}
18646 if test ! -f "$cache_file" || test -h "$cache_file"; then
18647 cat confcache >"$cache_file"
18648 else
18649 case $cache_file in #(
18650 */* | ?:*)
18651 mv -f confcache "$cache_file"$$ &&
18652 mv -f "$cache_file"$$ "$cache_file" ;; #(
18653 *)
18654 mv -f confcache "$cache_file" ;;
18655 esac
18656 fi
18657 fi
18658 else
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18660 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18661 fi
18662 fi
18663 rm -f confcache
18664
18665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18666 # Let make expand exec_prefix.
18667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18668
18669 DEFS=-DHAVE_CONFIG_H
18670
18671 ac_libobjs=
18672 ac_ltlibobjs=
18673 U=
18674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18675 # 1. Remove the extension, and $U if already installed.
18676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18677 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18679 # will be set to the directory where LIBOBJS objects are built.
18680 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18681 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18682 done
18683 LIBOBJS=$ac_libobjs
18684
18685 LTLIBOBJS=$ac_ltlibobjs
18686
18687
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18689 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18690 if test -n "$am_sleep_pid"; then
18691 # Hide warnings about reused PIDs.
18692 wait $am_sleep_pid 2>/dev/null
18693 fi
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18695 $as_echo "done" >&6; }
18696 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18697 as_fn_error $? "conditional \"AMDEP\" was never defined.
18698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18699 fi
18700 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18701 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18703 fi
18704 if test -n "$EXEEXT"; then
18705 am__EXEEXT_TRUE=
18706 am__EXEEXT_FALSE='#'
18707 else
18708 am__EXEEXT_TRUE='#'
18709 am__EXEEXT_FALSE=
18710 fi
18711
18712
18713 ac_config_commands="$ac_config_commands po/stamp-it"
18714
18715
18716 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
18717 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
18718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18719 fi
18720 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
18721 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
18722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18723 fi
18724 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
18725 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
18726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18727 fi
18728 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
18729 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
18730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18731 fi
18732 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
18733 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
18734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18735 fi
18736 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
18737 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
18738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18739 fi
18740 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
18741 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
18742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18743 fi
18744 if test -z "${HAVE_PYTHON_DEVEL_TRUE}" && test -z "${HAVE_PYTHON_DEVEL_FALSE}"; then
18745 as_fn_error $? "conditional \"HAVE_PYTHON_DEVEL\" was never defined.
18746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18747 fi
18748 if test -z "${HAVE_KMOD_TRUE}" && test -z "${HAVE_KMOD_FALSE}"; then
18749 as_fn_error $? "conditional \"HAVE_KMOD\" was never defined.
18750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18751 fi
18752 if test -z "${HAVE_BLKID_TRUE}" && test -z "${HAVE_BLKID_FALSE}"; then
18753 as_fn_error $? "conditional \"HAVE_BLKID\" was never defined.
18754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18755 fi
18756 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
18757 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
18758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18759 fi
18760 if test -z "${HAVE_XZ_TRUE}" && test -z "${HAVE_XZ_FALSE}"; then
18761 as_fn_error $? "conditional \"HAVE_XZ\" was never defined.
18762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18763 fi
18764 if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
18765 as_fn_error $? "conditional \"HAVE_PAM\" was never defined.
18766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18767 fi
18768 if test -z "${HAVE_ACL_TRUE}" && test -z "${HAVE_ACL_FALSE}"; then
18769 as_fn_error $? "conditional \"HAVE_ACL\" was never defined.
18770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18771 fi
18772 if test -z "${HAVE_XATTR_TRUE}" && test -z "${HAVE_XATTR_FALSE}"; then
18773 as_fn_error $? "conditional \"HAVE_XATTR\" was never defined.
18774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18775 fi
18776 if test -z "${HAVE_GCRYPT_TRUE}" && test -z "${HAVE_GCRYPT_FALSE}"; then
18777 as_fn_error $? "conditional \"HAVE_GCRYPT\" was never defined.
18778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18779 fi
18780 if test -z "${HAVE_LIBCRYPTSETUP_TRUE}" && test -z "${HAVE_LIBCRYPTSETUP_FALSE}"; then
18781 as_fn_error $? "conditional \"HAVE_LIBCRYPTSETUP\" was never defined.
18782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18783 fi
18784 if test -z "${HAVE_QRENCODE_TRUE}" && test -z "${HAVE_QRENCODE_FALSE}"; then
18785 as_fn_error $? "conditional \"HAVE_QRENCODE\" was never defined.
18786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18787 fi
18788 if test -z "${HAVE_MICROHTTPD_TRUE}" && test -z "${HAVE_MICROHTTPD_FALSE}"; then
18789 as_fn_error $? "conditional \"HAVE_MICROHTTPD\" was never defined.
18790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18791 fi
18792 if test -z "${ENABLE_BINFMT_TRUE}" && test -z "${ENABLE_BINFMT_FALSE}"; then
18793 as_fn_error $? "conditional \"ENABLE_BINFMT\" was never defined.
18794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18795 fi
18796 if test -z "${ENABLE_VCONSOLE_TRUE}" && test -z "${ENABLE_VCONSOLE_FALSE}"; then
18797 as_fn_error $? "conditional \"ENABLE_VCONSOLE\" was never defined.
18798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18799 fi
18800 if test -z "${ENABLE_READAHEAD_TRUE}" && test -z "${ENABLE_READAHEAD_FALSE}"; then
18801 as_fn_error $? "conditional \"ENABLE_READAHEAD\" was never defined.
18802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18803 fi
18804 if test -z "${ENABLE_BOOTCHART_TRUE}" && test -z "${ENABLE_BOOTCHART_FALSE}"; then
18805 as_fn_error $? "conditional \"ENABLE_BOOTCHART\" was never defined.
18806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18807 fi
18808 if test -z "${ENABLE_QUOTACHECK_TRUE}" && test -z "${ENABLE_QUOTACHECK_FALSE}"; then
18809 as_fn_error $? "conditional \"ENABLE_QUOTACHECK\" was never defined.
18810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18811 fi
18812 if test -z "${ENABLE_RANDOMSEED_TRUE}" && test -z "${ENABLE_RANDOMSEED_FALSE}"; then
18813 as_fn_error $? "conditional \"ENABLE_RANDOMSEED\" was never defined.
18814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18815 fi
18816 if test -z "${ENABLE_LOGIND_TRUE}" && test -z "${ENABLE_LOGIND_FALSE}"; then
18817 as_fn_error $? "conditional \"ENABLE_LOGIND\" was never defined.
18818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18819 fi
18820 if test -z "${ENABLE_HOSTNAMED_TRUE}" && test -z "${ENABLE_HOSTNAMED_FALSE}"; then
18821 as_fn_error $? "conditional \"ENABLE_HOSTNAMED\" was never defined.
18822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18823 fi
18824 if test -z "${ENABLE_TIMEDATED_TRUE}" && test -z "${ENABLE_TIMEDATED_FALSE}"; then
18825 as_fn_error $? "conditional \"ENABLE_TIMEDATED\" was never defined.
18826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18827 fi
18828 if test -z "${ENABLE_LOCALED_TRUE}" && test -z "${ENABLE_LOCALED_FALSE}"; then
18829 as_fn_error $? "conditional \"ENABLE_LOCALED\" was never defined.
18830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18831 fi
18832 if test -z "${ENABLE_COREDUMP_TRUE}" && test -z "${ENABLE_COREDUMP_FALSE}"; then
18833 as_fn_error $? "conditional \"ENABLE_COREDUMP\" was never defined.
18834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18835 fi
18836 if test -z "${ENABLE_POLKIT_TRUE}" && test -z "${ENABLE_POLKIT_FALSE}"; then
18837 as_fn_error $? "conditional \"ENABLE_POLKIT\" was never defined.
18838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18839 fi
18840 if test -z "${ENABLE_EFI_TRUE}" && test -z "${ENABLE_EFI_FALSE}"; then
18841 as_fn_error $? "conditional \"ENABLE_EFI\" was never defined.
18842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18843 fi
18844 if test -z "${HAVE_MYHOSTNAME_TRUE}" && test -z "${HAVE_MYHOSTNAME_FALSE}"; then
18845 as_fn_error $? "conditional \"HAVE_MYHOSTNAME\" was never defined.
18846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18847 fi
18848 if test -z "${ENABLE_FIRMWARE_TRUE}" && test -z "${ENABLE_FIRMWARE_FALSE}"; then
18849 as_fn_error $? "conditional \"ENABLE_FIRMWARE\" was never defined.
18850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18851 fi
18852 if test -z "${ENABLE_GUDEV_TRUE}" && test -z "${ENABLE_GUDEV_FALSE}"; then
18853 as_fn_error $? "conditional \"ENABLE_GUDEV\" was never defined.
18854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18855 fi
18856 if test -z "${ENABLE_KEYMAP_TRUE}" && test -z "${ENABLE_KEYMAP_FALSE}"; then
18857 as_fn_error $? "conditional \"ENABLE_KEYMAP\" was never defined.
18858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18859 fi
18860 if test -z "${ENABLE_MANPAGES_TRUE}" && test -z "${ENABLE_MANPAGES_FALSE}"; then
18861 as_fn_error $? "conditional \"ENABLE_MANPAGES\" was never defined.
18862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18863 fi
18864 if test -z "${HAVE_SYSV_COMPAT_TRUE}" && test -z "${HAVE_SYSV_COMPAT_FALSE}"; then
18865 as_fn_error $? "conditional \"HAVE_SYSV_COMPAT\" was never defined.
18866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18867 fi
18868 if test -z "${ENABLE_GTK_DOC_TESTS_TRUE}" && test -z "${ENABLE_GTK_DOC_TESTS_FALSE}"; then
18869 as_fn_error $? "conditional \"ENABLE_GTK_DOC_TESTS\" was never defined.
18870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18871 fi
18872 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
18873 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
18874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18875 fi
18876
18877 : "${CONFIG_STATUS=./config.status}"
18878 ac_write_fail=0
18879 ac_clean_files_save=$ac_clean_files
18880 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18882 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18883 as_write_fail=0
18884 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18885 #! $SHELL
18886 # Generated by $as_me.
18887 # Run this file to recreate the current configuration.
18888 # Compiler output produced by configure, useful for debugging
18889 # configure, is in config.log if it exists.
18890
18891 debug=false
18892 ac_cs_recheck=false
18893 ac_cs_silent=false
18894
18895 SHELL=\${CONFIG_SHELL-$SHELL}
18896 export SHELL
18897 _ASEOF
18898 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18899 ## -------------------- ##
18900 ## M4sh Initialization. ##
18901 ## -------------------- ##
18902
18903 # Be more Bourne compatible
18904 DUALCASE=1; export DUALCASE # for MKS sh
18905 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18906 emulate sh
18907 NULLCMD=:
18908 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18909 # is contrary to our usage. Disable this feature.
18910 alias -g '${1+"$@"}'='"$@"'
18911 setopt NO_GLOB_SUBST
18912 else
18913 case `(set -o) 2>/dev/null` in #(
18914 *posix*) :
18915 set -o posix ;; #(
18916 *) :
18917 ;;
18918 esac
18919 fi
18920
18921
18922 as_nl='
18923 '
18924 export as_nl
18925 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18926 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18927 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18929 # Prefer a ksh shell builtin over an external printf program on Solaris,
18930 # but without wasting forks for bash or zsh.
18931 if test -z "$BASH_VERSION$ZSH_VERSION" \
18932 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18933 as_echo='print -r --'
18934 as_echo_n='print -rn --'
18935 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18936 as_echo='printf %s\n'
18937 as_echo_n='printf %s'
18938 else
18939 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18940 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18941 as_echo_n='/usr/ucb/echo -n'
18942 else
18943 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18944 as_echo_n_body='eval
18945 arg=$1;
18946 case $arg in #(
18947 *"$as_nl"*)
18948 expr "X$arg" : "X\\(.*\\)$as_nl";
18949 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18950 esac;
18951 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18952 '
18953 export as_echo_n_body
18954 as_echo_n='sh -c $as_echo_n_body as_echo'
18955 fi
18956 export as_echo_body
18957 as_echo='sh -c $as_echo_body as_echo'
18958 fi
18959
18960 # The user is always right.
18961 if test "${PATH_SEPARATOR+set}" != set; then
18962 PATH_SEPARATOR=:
18963 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18964 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18965 PATH_SEPARATOR=';'
18966 }
18967 fi
18968
18969
18970 # IFS
18971 # We need space, tab and new line, in precisely that order. Quoting is
18972 # there to prevent editors from complaining about space-tab.
18973 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18974 # splitting by setting IFS to empty value.)
18975 IFS=" "" $as_nl"
18976
18977 # Find who we are. Look in the path if we contain no directory separator.
18978 as_myself=
18979 case $0 in #((
18980 *[\\/]* ) as_myself=$0 ;;
18981 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18982 for as_dir in $PATH
18983 do
18984 IFS=$as_save_IFS
18985 test -z "$as_dir" && as_dir=.
18986 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18987 done
18988 IFS=$as_save_IFS
18989
18990 ;;
18991 esac
18992 # We did not find ourselves, most probably we were run as `sh COMMAND'
18993 # in which case we are not to be found in the path.
18994 if test "x$as_myself" = x; then
18995 as_myself=$0
18996 fi
18997 if test ! -f "$as_myself"; then
18998 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18999 exit 1
19000 fi
19001
19002 # Unset variables that we do not need and which cause bugs (e.g. in
19003 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19004 # suppresses any "Segmentation fault" message there. '((' could
19005 # trigger a bug in pdksh 5.2.14.
19006 for as_var in BASH_ENV ENV MAIL MAILPATH
19007 do eval test x\${$as_var+set} = xset \
19008 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19009 done
19010 PS1='$ '
19011 PS2='> '
19012 PS4='+ '
19013
19014 # NLS nuisances.
19015 LC_ALL=C
19016 export LC_ALL
19017 LANGUAGE=C
19018 export LANGUAGE
19019
19020 # CDPATH.
19021 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19022
19023
19024 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19025 # ----------------------------------------
19026 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19027 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19028 # script with STATUS, using 1 if that was 0.
19029 as_fn_error ()
19030 {
19031 as_status=$1; test $as_status -eq 0 && as_status=1
19032 if test "$4"; then
19033 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19034 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19035 fi
19036 $as_echo "$as_me: error: $2" >&2
19037 as_fn_exit $as_status
19038 } # as_fn_error
19039
19040
19041 # as_fn_set_status STATUS
19042 # -----------------------
19043 # Set $? to STATUS, without forking.
19044 as_fn_set_status ()
19045 {
19046 return $1
19047 } # as_fn_set_status
19048
19049 # as_fn_exit STATUS
19050 # -----------------
19051 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19052 as_fn_exit ()
19053 {
19054 set +e
19055 as_fn_set_status $1
19056 exit $1
19057 } # as_fn_exit
19058
19059 # as_fn_unset VAR
19060 # ---------------
19061 # Portably unset VAR.
19062 as_fn_unset ()
19063 {
19064 { eval $1=; unset $1;}
19065 }
19066 as_unset=as_fn_unset
19067 # as_fn_append VAR VALUE
19068 # ----------------------
19069 # Append the text in VALUE to the end of the definition contained in VAR. Take
19070 # advantage of any shell optimizations that allow amortized linear growth over
19071 # repeated appends, instead of the typical quadratic growth present in naive
19072 # implementations.
19073 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19074 eval 'as_fn_append ()
19075 {
19076 eval $1+=\$2
19077 }'
19078 else
19079 as_fn_append ()
19080 {
19081 eval $1=\$$1\$2
19082 }
19083 fi # as_fn_append
19084
19085 # as_fn_arith ARG...
19086 # ------------------
19087 # Perform arithmetic evaluation on the ARGs, and store the result in the
19088 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19089 # must be portable across $(()) and expr.
19090 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19091 eval 'as_fn_arith ()
19092 {
19093 as_val=$(( $* ))
19094 }'
19095 else
19096 as_fn_arith ()
19097 {
19098 as_val=`expr "$@" || test $? -eq 1`
19099 }
19100 fi # as_fn_arith
19101
19102
19103 if expr a : '\(a\)' >/dev/null 2>&1 &&
19104 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19105 as_expr=expr
19106 else
19107 as_expr=false
19108 fi
19109
19110 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19111 as_basename=basename
19112 else
19113 as_basename=false
19114 fi
19115
19116 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19117 as_dirname=dirname
19118 else
19119 as_dirname=false
19120 fi
19121
19122 as_me=`$as_basename -- "$0" ||
19123 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19124 X"$0" : 'X\(//\)$' \| \
19125 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19126 $as_echo X/"$0" |
19127 sed '/^.*\/\([^/][^/]*\)\/*$/{
19128 s//\1/
19129 q
19130 }
19131 /^X\/\(\/\/\)$/{
19132 s//\1/
19133 q
19134 }
19135 /^X\/\(\/\).*/{
19136 s//\1/
19137 q
19138 }
19139 s/.*/./; q'`
19140
19141 # Avoid depending upon Character Ranges.
19142 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19143 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19144 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19145 as_cr_digits='0123456789'
19146 as_cr_alnum=$as_cr_Letters$as_cr_digits
19147
19148 ECHO_C= ECHO_N= ECHO_T=
19149 case `echo -n x` in #(((((
19150 -n*)
19151 case `echo 'xy\c'` in
19152 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19153 xy) ECHO_C='\c';;
19154 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19155 ECHO_T=' ';;
19156 esac;;
19157 *)
19158 ECHO_N='-n';;
19159 esac
19160
19161 rm -f conf$$ conf$$.exe conf$$.file
19162 if test -d conf$$.dir; then
19163 rm -f conf$$.dir/conf$$.file
19164 else
19165 rm -f conf$$.dir
19166 mkdir conf$$.dir 2>/dev/null
19167 fi
19168 if (echo >conf$$.file) 2>/dev/null; then
19169 if ln -s conf$$.file conf$$ 2>/dev/null; then
19170 as_ln_s='ln -s'
19171 # ... but there are two gotchas:
19172 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19173 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19174 # In both cases, we have to default to `cp -pR'.
19175 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19176 as_ln_s='cp -pR'
19177 elif ln conf$$.file conf$$ 2>/dev/null; then
19178 as_ln_s=ln
19179 else
19180 as_ln_s='cp -pR'
19181 fi
19182 else
19183 as_ln_s='cp -pR'
19184 fi
19185 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19186 rmdir conf$$.dir 2>/dev/null
19187
19188
19189 # as_fn_mkdir_p
19190 # -------------
19191 # Create "$as_dir" as a directory, including parents if necessary.
19192 as_fn_mkdir_p ()
19193 {
19194
19195 case $as_dir in #(
19196 -*) as_dir=./$as_dir;;
19197 esac
19198 test -d "$as_dir" || eval $as_mkdir_p || {
19199 as_dirs=
19200 while :; do
19201 case $as_dir in #(
19202 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19203 *) as_qdir=$as_dir;;
19204 esac
19205 as_dirs="'$as_qdir' $as_dirs"
19206 as_dir=`$as_dirname -- "$as_dir" ||
19207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19208 X"$as_dir" : 'X\(//\)[^/]' \| \
19209 X"$as_dir" : 'X\(//\)$' \| \
19210 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19211 $as_echo X"$as_dir" |
19212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19213 s//\1/
19214 q
19215 }
19216 /^X\(\/\/\)[^/].*/{
19217 s//\1/
19218 q
19219 }
19220 /^X\(\/\/\)$/{
19221 s//\1/
19222 q
19223 }
19224 /^X\(\/\).*/{
19225 s//\1/
19226 q
19227 }
19228 s/.*/./; q'`
19229 test -d "$as_dir" && break
19230 done
19231 test -z "$as_dirs" || eval "mkdir $as_dirs"
19232 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19233
19234
19235 } # as_fn_mkdir_p
19236 if mkdir -p . 2>/dev/null; then
19237 as_mkdir_p='mkdir -p "$as_dir"'
19238 else
19239 test -d ./-p && rmdir ./-p
19240 as_mkdir_p=false
19241 fi
19242
19243
19244 # as_fn_executable_p FILE
19245 # -----------------------
19246 # Test if FILE is an executable regular file.
19247 as_fn_executable_p ()
19248 {
19249 test -f "$1" && test -x "$1"
19250 } # as_fn_executable_p
19251 as_test_x='test -x'
19252 as_executable_p=as_fn_executable_p
19253
19254 # Sed expression to map a string onto a valid CPP name.
19255 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19256
19257 # Sed expression to map a string onto a valid variable name.
19258 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19259
19260
19261 exec 6>&1
19262 ## ----------------------------------- ##
19263 ## Main body of $CONFIG_STATUS script. ##
19264 ## ----------------------------------- ##
19265 _ASEOF
19266 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19267
19268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19269 # Save the log message, to keep $0 and so on meaningful, and to
19270 # report actual input values of CONFIG_FILES etc. instead of their
19271 # values after options handling.
19272 ac_log="
19273 This file was extended by systemd $as_me 204, which was
19274 generated by GNU Autoconf 2.69. Invocation command line was
19275
19276 CONFIG_FILES = $CONFIG_FILES
19277 CONFIG_HEADERS = $CONFIG_HEADERS
19278 CONFIG_LINKS = $CONFIG_LINKS
19279 CONFIG_COMMANDS = $CONFIG_COMMANDS
19280 $ $0 $@
19281
19282 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19283 "
19284
19285 _ACEOF
19286
19287 case $ac_config_files in *"
19288 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19289 esac
19290
19291 case $ac_config_headers in *"
19292 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19293 esac
19294
19295
19296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19297 # Files that config.status was made for.
19298 config_files="$ac_config_files"
19299 config_headers="$ac_config_headers"
19300 config_commands="$ac_config_commands"
19301
19302 _ACEOF
19303
19304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19305 ac_cs_usage="\
19306 \`$as_me' instantiates files and other configuration actions
19307 from templates according to the current configuration. Unless the files
19308 and actions are specified as TAGs, all are instantiated by default.
19309
19310 Usage: $0 [OPTION]... [TAG]...
19311
19312 -h, --help print this help, then exit
19313 -V, --version print version number and configuration settings, then exit
19314 --config print configuration, then exit
19315 -q, --quiet, --silent
19316 do not print progress messages
19317 -d, --debug don't remove temporary files
19318 --recheck update $as_me by reconfiguring in the same conditions
19319 --file=FILE[:TEMPLATE]
19320 instantiate the configuration file FILE
19321 --header=FILE[:TEMPLATE]
19322 instantiate the configuration header FILE
19323
19324 Configuration files:
19325 $config_files
19326
19327 Configuration headers:
19328 $config_headers
19329
19330 Configuration commands:
19331 $config_commands
19332
19333 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=systemd>.
19334 systemd home page: <http://www.freedesktop.org/wiki/Software/systemd>."
19335
19336 _ACEOF
19337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19338 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19339 ac_cs_version="\\
19340 systemd config.status 204
19341 configured by $0, generated by GNU Autoconf 2.69,
19342 with options \\"\$ac_cs_config\\"
19343
19344 Copyright (C) 2012 Free Software Foundation, Inc.
19345 This config.status script is free software; the Free Software Foundation
19346 gives unlimited permission to copy, distribute and modify it."
19347
19348 ac_pwd='$ac_pwd'
19349 srcdir='$srcdir'
19350 INSTALL='$INSTALL'
19351 MKDIR_P='$MKDIR_P'
19352 AWK='$AWK'
19353 test -n "\$AWK" || AWK=awk
19354 _ACEOF
19355
19356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19357 # The default lists apply if the user does not specify any file.
19358 ac_need_defaults=:
19359 while test $# != 0
19360 do
19361 case $1 in
19362 --*=?*)
19363 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19364 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19365 ac_shift=:
19366 ;;
19367 --*=)
19368 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19369 ac_optarg=
19370 ac_shift=:
19371 ;;
19372 *)
19373 ac_option=$1
19374 ac_optarg=$2
19375 ac_shift=shift
19376 ;;
19377 esac
19378
19379 case $ac_option in
19380 # Handling of the options.
19381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19382 ac_cs_recheck=: ;;
19383 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19384 $as_echo "$ac_cs_version"; exit ;;
19385 --config | --confi | --conf | --con | --co | --c )
19386 $as_echo "$ac_cs_config"; exit ;;
19387 --debug | --debu | --deb | --de | --d | -d )
19388 debug=: ;;
19389 --file | --fil | --fi | --f )
19390 $ac_shift
19391 case $ac_optarg in
19392 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19393 '') as_fn_error $? "missing file argument" ;;
19394 esac
19395 as_fn_append CONFIG_FILES " '$ac_optarg'"
19396 ac_need_defaults=false;;
19397 --header | --heade | --head | --hea )
19398 $ac_shift
19399 case $ac_optarg in
19400 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19401 esac
19402 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19403 ac_need_defaults=false;;
19404 --he | --h)
19405 # Conflict between --help and --header
19406 as_fn_error $? "ambiguous option: \`$1'
19407 Try \`$0 --help' for more information.";;
19408 --help | --hel | -h )
19409 $as_echo "$ac_cs_usage"; exit ;;
19410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19411 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19412 ac_cs_silent=: ;;
19413
19414 # This is an error.
19415 -*) as_fn_error $? "unrecognized option: \`$1'
19416 Try \`$0 --help' for more information." ;;
19417
19418 *) as_fn_append ac_config_targets " $1"
19419 ac_need_defaults=false ;;
19420
19421 esac
19422 shift
19423 done
19424
19425 ac_configure_extra_args=
19426
19427 if $ac_cs_silent; then
19428 exec 6>/dev/null
19429 ac_configure_extra_args="$ac_configure_extra_args --silent"
19430 fi
19431
19432 _ACEOF
19433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19434 if \$ac_cs_recheck; then
19435 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19436 shift
19437 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19438 CONFIG_SHELL='$SHELL'
19439 export CONFIG_SHELL
19440 exec "\$@"
19441 fi
19442
19443 _ACEOF
19444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19445 exec 5>>config.log
19446 {
19447 echo
19448 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19449 ## Running $as_me. ##
19450 _ASBOX
19451 $as_echo "$ac_log"
19452 } >&5
19453
19454 _ACEOF
19455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19456 #
19457 # INIT-COMMANDS
19458 #
19459 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19460
19461
19462 # The HP-UX ksh and POSIX shell print the target directory to stdout
19463 # if CDPATH is set.
19464 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19465
19466 sed_quote_subst='$sed_quote_subst'
19467 double_quote_subst='$double_quote_subst'
19468 delay_variable_subst='$delay_variable_subst'
19469 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19470 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19471 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19472 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19473 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19474 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19475 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19476 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19477 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19478 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19479 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19480 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19481 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19482 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19483 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19484 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19485 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19486 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19487 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19488 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19489 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19490 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19491 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19492 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19493 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19494 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19495 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19496 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19497 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19498 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19499 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19500 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19501 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19502 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19503 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19504 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19505 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19506 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19507 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19508 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19509 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19510 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19511 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19512 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19513 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19514 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19515 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19516 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19517 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19518 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19519 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19520 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19521 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19522 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19523 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19524 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19525 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"`'
19526 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19527 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19528 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19529 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19530 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19531 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19532 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19533 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19534 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19535 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19536 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19537 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19538 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19539 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19540 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19541 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19542 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19543 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19544 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19545 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19546 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19547 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19548 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19549 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19550 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19551 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19552 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19553 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19554 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19555 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19556 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19557 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19558 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19559 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19560 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19561 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19562 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19563 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19564 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19565 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19566 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19567 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19568 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19569 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19570 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19571 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19572 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19573 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19574 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19575 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19576 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19577 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19578 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19579 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19580 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19581 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19582 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19583 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19584 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19585 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19586 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19587 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19588 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19589 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19590 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19591 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19592 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19593 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19594 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19595 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19596 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19597 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19598 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19599
19600 LTCC='$LTCC'
19601 LTCFLAGS='$LTCFLAGS'
19602 compiler='$compiler_DEFAULT'
19603
19604 # A function that is used when there is no print builtin or printf.
19605 func_fallback_echo ()
19606 {
19607 eval 'cat <<_LTECHO_EOF
19608 \$1
19609 _LTECHO_EOF'
19610 }
19611
19612 # Quote evaled strings.
19613 for var in SHELL \
19614 ECHO \
19615 PATH_SEPARATOR \
19616 SED \
19617 GREP \
19618 EGREP \
19619 FGREP \
19620 LD \
19621 NM \
19622 LN_S \
19623 lt_SP2NL \
19624 lt_NL2SP \
19625 reload_flag \
19626 OBJDUMP \
19627 deplibs_check_method \
19628 file_magic_cmd \
19629 file_magic_glob \
19630 want_nocaseglob \
19631 DLLTOOL \
19632 sharedlib_from_linklib_cmd \
19633 AR \
19634 AR_FLAGS \
19635 archiver_list_spec \
19636 STRIP \
19637 RANLIB \
19638 CC \
19639 CFLAGS \
19640 compiler \
19641 lt_cv_sys_global_symbol_pipe \
19642 lt_cv_sys_global_symbol_to_cdecl \
19643 lt_cv_sys_global_symbol_to_c_name_address \
19644 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19645 nm_file_list_spec \
19646 lt_prog_compiler_no_builtin_flag \
19647 lt_prog_compiler_pic \
19648 lt_prog_compiler_wl \
19649 lt_prog_compiler_static \
19650 lt_cv_prog_compiler_c_o \
19651 need_locks \
19652 MANIFEST_TOOL \
19653 DSYMUTIL \
19654 NMEDIT \
19655 LIPO \
19656 OTOOL \
19657 OTOOL64 \
19658 shrext_cmds \
19659 export_dynamic_flag_spec \
19660 whole_archive_flag_spec \
19661 compiler_needs_object \
19662 with_gnu_ld \
19663 allow_undefined_flag \
19664 no_undefined_flag \
19665 hardcode_libdir_flag_spec \
19666 hardcode_libdir_separator \
19667 exclude_expsyms \
19668 include_expsyms \
19669 file_list_spec \
19670 variables_saved_for_relink \
19671 libname_spec \
19672 library_names_spec \
19673 soname_spec \
19674 install_override_mode \
19675 finish_eval \
19676 old_striplib \
19677 striplib; do
19678 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19679 *[\\\\\\\`\\"\\\$]*)
19680 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19681 ;;
19682 *)
19683 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19684 ;;
19685 esac
19686 done
19687
19688 # Double-quote double-evaled strings.
19689 for var in reload_cmds \
19690 old_postinstall_cmds \
19691 old_postuninstall_cmds \
19692 old_archive_cmds \
19693 extract_expsyms_cmds \
19694 old_archive_from_new_cmds \
19695 old_archive_from_expsyms_cmds \
19696 archive_cmds \
19697 archive_expsym_cmds \
19698 module_cmds \
19699 module_expsym_cmds \
19700 export_symbols_cmds \
19701 prelink_cmds \
19702 postlink_cmds \
19703 postinstall_cmds \
19704 postuninstall_cmds \
19705 finish_cmds \
19706 sys_lib_search_path_spec \
19707 sys_lib_dlsearch_path_spec; do
19708 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19709 *[\\\\\\\`\\"\\\$]*)
19710 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19711 ;;
19712 *)
19713 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19714 ;;
19715 esac
19716 done
19717
19718 ac_aux_dir='$ac_aux_dir'
19719 xsi_shell='$xsi_shell'
19720 lt_shell_append='$lt_shell_append'
19721
19722 # See if we are running on zsh, and set the options which allow our
19723 # commands through without removal of \ escapes INIT.
19724 if test -n "\${ZSH_VERSION+set}" ; then
19725 setopt NO_GLOB_SUBST
19726 fi
19727
19728
19729 PACKAGE='$PACKAGE'
19730 VERSION='$VERSION'
19731 TIMESTAMP='$TIMESTAMP'
19732 RM='$RM'
19733 ofile='$ofile'
19734
19735
19736
19737
19738 _ACEOF
19739
19740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19741
19742 # Handling of arguments.
19743 for ac_config_target in $ac_config_targets
19744 do
19745 case $ac_config_target in
19746 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19747 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19748 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19749 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19750 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19751 "docs/libudev/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libudev/Makefile" ;;
19752 "docs/libudev/version.xml") CONFIG_FILES="$CONFIG_FILES docs/libudev/version.xml" ;;
19753 "docs/gudev/Makefile") CONFIG_FILES="$CONFIG_FILES docs/gudev/Makefile" ;;
19754 "docs/gudev/version.xml") CONFIG_FILES="$CONFIG_FILES docs/gudev/version.xml" ;;
19755 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
19756
19757 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19758 esac
19759 done
19760
19761
19762 # If the user did not use the arguments to specify the items to instantiate,
19763 # then the envvar interface is used. Set only those that are not.
19764 # We use the long form for the default assignment because of an extremely
19765 # bizarre bug on SunOS 4.1.3.
19766 if $ac_need_defaults; then
19767 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19768 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19769 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19770 fi
19771
19772 # Have a temporary directory for convenience. Make it in the build tree
19773 # simply because there is no reason against having it here, and in addition,
19774 # creating and moving files from /tmp can sometimes cause problems.
19775 # Hook for its removal unless debugging.
19776 # Note that there is a small window in which the directory will not be cleaned:
19777 # after its creation but before its name has been assigned to `$tmp'.
19778 $debug ||
19779 {
19780 tmp= ac_tmp=
19781 trap 'exit_status=$?
19782 : "${ac_tmp:=$tmp}"
19783 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19784 ' 0
19785 trap 'as_fn_exit 1' 1 2 13 15
19786 }
19787 # Create a (secure) tmp directory for tmp files.
19788
19789 {
19790 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19791 test -d "$tmp"
19792 } ||
19793 {
19794 tmp=./conf$$-$RANDOM
19795 (umask 077 && mkdir "$tmp")
19796 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19797 ac_tmp=$tmp
19798
19799 # Set up the scripts for CONFIG_FILES section.
19800 # No need to generate them if there are no CONFIG_FILES.
19801 # This happens for instance with `./config.status config.h'.
19802 if test -n "$CONFIG_FILES"; then
19803
19804
19805 ac_cr=`echo X | tr X '\015'`
19806 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19807 # But we know of no other shell where ac_cr would be empty at this
19808 # point, so we can use a bashism as a fallback.
19809 if test "x$ac_cr" = x; then
19810 eval ac_cr=\$\'\\r\'
19811 fi
19812 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19813 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19814 ac_cs_awk_cr='\\r'
19815 else
19816 ac_cs_awk_cr=$ac_cr
19817 fi
19818
19819 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19820 _ACEOF
19821
19822
19823 {
19824 echo "cat >conf$$subs.awk <<_ACEOF" &&
19825 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19826 echo "_ACEOF"
19827 } >conf$$subs.sh ||
19828 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19829 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19830 ac_delim='%!_!# '
19831 for ac_last_try in false false false false false :; do
19832 . ./conf$$subs.sh ||
19833 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19834
19835 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19836 if test $ac_delim_n = $ac_delim_num; then
19837 break
19838 elif $ac_last_try; then
19839 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19840 else
19841 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19842 fi
19843 done
19844 rm -f conf$$subs.sh
19845
19846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19847 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19848 _ACEOF
19849 sed -n '
19850 h
19851 s/^/S["/; s/!.*/"]=/
19852 p
19853 g
19854 s/^[^!]*!//
19855 :repl
19856 t repl
19857 s/'"$ac_delim"'$//
19858 t delim
19859 :nl
19860 h
19861 s/\(.\{148\}\)..*/\1/
19862 t more1
19863 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19864 p
19865 n
19866 b repl
19867 :more1
19868 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19869 p
19870 g
19871 s/.\{148\}//
19872 t nl
19873 :delim
19874 h
19875 s/\(.\{148\}\)..*/\1/
19876 t more2
19877 s/["\\]/\\&/g; s/^/"/; s/$/"/
19878 p
19879 b
19880 :more2
19881 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19882 p
19883 g
19884 s/.\{148\}//
19885 t delim
19886 ' <conf$$subs.awk | sed '
19887 /^[^""]/{
19888 N
19889 s/\n//
19890 }
19891 ' >>$CONFIG_STATUS || ac_write_fail=1
19892 rm -f conf$$subs.awk
19893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19894 _ACAWK
19895 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19896 for (key in S) S_is_set[key] = 1
19897 FS = "\a"
19898
19899 }
19900 {
19901 line = $ 0
19902 nfields = split(line, field, "@")
19903 substed = 0
19904 len = length(field[1])
19905 for (i = 2; i < nfields; i++) {
19906 key = field[i]
19907 keylen = length(key)
19908 if (S_is_set[key]) {
19909 value = S[key]
19910 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19911 len += length(value) + length(field[++i])
19912 substed = 1
19913 } else
19914 len += 1 + keylen
19915 }
19916
19917 print line
19918 }
19919
19920 _ACAWK
19921 _ACEOF
19922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19923 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19924 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19925 else
19926 cat
19927 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19928 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19929 _ACEOF
19930
19931 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19932 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19933 # trailing colons and then remove the whole line if VPATH becomes empty
19934 # (actually we leave an empty line to preserve line numbers).
19935 if test "x$srcdir" = x.; then
19936 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19937 h
19938 s///
19939 s/^/:/
19940 s/[ ]*$/:/
19941 s/:\$(srcdir):/:/g
19942 s/:\${srcdir}:/:/g
19943 s/:@srcdir@:/:/g
19944 s/^:*//
19945 s/:*$//
19946 x
19947 s/\(=[ ]*\).*/\1/
19948 G
19949 s/\n//
19950 s/^[^=]*=[ ]*$//
19951 }'
19952 fi
19953
19954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19955 fi # test -n "$CONFIG_FILES"
19956
19957 # Set up the scripts for CONFIG_HEADERS section.
19958 # No need to generate them if there are no CONFIG_HEADERS.
19959 # This happens for instance with `./config.status Makefile'.
19960 if test -n "$CONFIG_HEADERS"; then
19961 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19962 BEGIN {
19963 _ACEOF
19964
19965 # Transform confdefs.h into an awk script `defines.awk', embedded as
19966 # here-document in config.status, that substitutes the proper values into
19967 # config.h.in to produce config.h.
19968
19969 # Create a delimiter string that does not exist in confdefs.h, to ease
19970 # handling of long lines.
19971 ac_delim='%!_!# '
19972 for ac_last_try in false false :; do
19973 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19974 if test -z "$ac_tt"; then
19975 break
19976 elif $ac_last_try; then
19977 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19978 else
19979 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19980 fi
19981 done
19982
19983 # For the awk script, D is an array of macro values keyed by name,
19984 # likewise P contains macro parameters if any. Preserve backslash
19985 # newline sequences.
19986
19987 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19988 sed -n '
19989 s/.\{148\}/&'"$ac_delim"'/g
19990 t rset
19991 :rset
19992 s/^[ ]*#[ ]*define[ ][ ]*/ /
19993 t def
19994 d
19995 :def
19996 s/\\$//
19997 t bsnl
19998 s/["\\]/\\&/g
19999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20000 D["\1"]=" \3"/p
20001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20002 d
20003 :bsnl
20004 s/["\\]/\\&/g
20005 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20006 D["\1"]=" \3\\\\\\n"\\/p
20007 t cont
20008 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20009 t cont
20010 d
20011 :cont
20012 n
20013 s/.\{148\}/&'"$ac_delim"'/g
20014 t clear
20015 :clear
20016 s/\\$//
20017 t bsnlc
20018 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20019 d
20020 :bsnlc
20021 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20022 b cont
20023 ' <confdefs.h | sed '
20024 s/'"$ac_delim"'/"\\\
20025 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20026
20027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20028 for (key in D) D_is_set[key] = 1
20029 FS = "\a"
20030 }
20031 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20032 line = \$ 0
20033 split(line, arg, " ")
20034 if (arg[1] == "#") {
20035 defundef = arg[2]
20036 mac1 = arg[3]
20037 } else {
20038 defundef = substr(arg[1], 2)
20039 mac1 = arg[2]
20040 }
20041 split(mac1, mac2, "(") #)
20042 macro = mac2[1]
20043 prefix = substr(line, 1, index(line, defundef) - 1)
20044 if (D_is_set[macro]) {
20045 # Preserve the white space surrounding the "#".
20046 print prefix "define", macro P[macro] D[macro]
20047 next
20048 } else {
20049 # Replace #undef with comments. This is necessary, for example,
20050 # in the case of _POSIX_SOURCE, which is predefined and required
20051 # on some systems where configure will not decide to define it.
20052 if (defundef == "undef") {
20053 print "/*", prefix defundef, macro, "*/"
20054 next
20055 }
20056 }
20057 }
20058 { print }
20059 _ACAWK
20060 _ACEOF
20061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20062 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20063 fi # test -n "$CONFIG_HEADERS"
20064
20065
20066 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20067 shift
20068 for ac_tag
20069 do
20070 case $ac_tag in
20071 :[FHLC]) ac_mode=$ac_tag; continue;;
20072 esac
20073 case $ac_mode$ac_tag in
20074 :[FHL]*:*);;
20075 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20076 :[FH]-) ac_tag=-:-;;
20077 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20078 esac
20079 ac_save_IFS=$IFS
20080 IFS=:
20081 set x $ac_tag
20082 IFS=$ac_save_IFS
20083 shift
20084 ac_file=$1
20085 shift
20086
20087 case $ac_mode in
20088 :L) ac_source=$1;;
20089 :[FH])
20090 ac_file_inputs=
20091 for ac_f
20092 do
20093 case $ac_f in
20094 -) ac_f="$ac_tmp/stdin";;
20095 *) # Look for the file first in the build tree, then in the source tree
20096 # (if the path is not absolute). The absolute path cannot be DOS-style,
20097 # because $ac_f cannot contain `:'.
20098 test -f "$ac_f" ||
20099 case $ac_f in
20100 [\\/$]*) false;;
20101 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20102 esac ||
20103 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20104 esac
20105 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20106 as_fn_append ac_file_inputs " '$ac_f'"
20107 done
20108
20109 # Let's still pretend it is `configure' which instantiates (i.e., don't
20110 # use $as_me), people would be surprised to read:
20111 # /* config.h. Generated by config.status. */
20112 configure_input='Generated from '`
20113 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20114 `' by configure.'
20115 if test x"$ac_file" != x-; then
20116 configure_input="$ac_file. $configure_input"
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20118 $as_echo "$as_me: creating $ac_file" >&6;}
20119 fi
20120 # Neutralize special characters interpreted by sed in replacement strings.
20121 case $configure_input in #(
20122 *\&* | *\|* | *\\* )
20123 ac_sed_conf_input=`$as_echo "$configure_input" |
20124 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20125 *) ac_sed_conf_input=$configure_input;;
20126 esac
20127
20128 case $ac_tag in
20129 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20131 esac
20132 ;;
20133 esac
20134
20135 ac_dir=`$as_dirname -- "$ac_file" ||
20136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20137 X"$ac_file" : 'X\(//\)[^/]' \| \
20138 X"$ac_file" : 'X\(//\)$' \| \
20139 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20140 $as_echo X"$ac_file" |
20141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20142 s//\1/
20143 q
20144 }
20145 /^X\(\/\/\)[^/].*/{
20146 s//\1/
20147 q
20148 }
20149 /^X\(\/\/\)$/{
20150 s//\1/
20151 q
20152 }
20153 /^X\(\/\).*/{
20154 s//\1/
20155 q
20156 }
20157 s/.*/./; q'`
20158 as_dir="$ac_dir"; as_fn_mkdir_p
20159 ac_builddir=.
20160
20161 case "$ac_dir" in
20162 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20163 *)
20164 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20165 # A ".." for each directory in $ac_dir_suffix.
20166 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20167 case $ac_top_builddir_sub in
20168 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20169 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20170 esac ;;
20171 esac
20172 ac_abs_top_builddir=$ac_pwd
20173 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20174 # for backward compatibility:
20175 ac_top_builddir=$ac_top_build_prefix
20176
20177 case $srcdir in
20178 .) # We are building in place.
20179 ac_srcdir=.
20180 ac_top_srcdir=$ac_top_builddir_sub
20181 ac_abs_top_srcdir=$ac_pwd ;;
20182 [\\/]* | ?:[\\/]* ) # Absolute name.
20183 ac_srcdir=$srcdir$ac_dir_suffix;
20184 ac_top_srcdir=$srcdir
20185 ac_abs_top_srcdir=$srcdir ;;
20186 *) # Relative name.
20187 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20188 ac_top_srcdir=$ac_top_build_prefix$srcdir
20189 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20190 esac
20191 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20192
20193
20194 case $ac_mode in
20195 :F)
20196 #
20197 # CONFIG_FILE
20198 #
20199
20200 case $INSTALL in
20201 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20202 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20203 esac
20204 ac_MKDIR_P=$MKDIR_P
20205 case $MKDIR_P in
20206 [\\/$]* | ?:[\\/]* ) ;;
20207 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20208 esac
20209 _ACEOF
20210
20211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20212 # If the template does not know about datarootdir, expand it.
20213 # FIXME: This hack should be removed a few years after 2.60.
20214 ac_datarootdir_hack=; ac_datarootdir_seen=
20215 ac_sed_dataroot='
20216 /datarootdir/ {
20217 p
20218 q
20219 }
20220 /@datadir@/p
20221 /@docdir@/p
20222 /@infodir@/p
20223 /@localedir@/p
20224 /@mandir@/p'
20225 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20226 *datarootdir*) ac_datarootdir_seen=yes;;
20227 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20229 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20230 _ACEOF
20231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20232 ac_datarootdir_hack='
20233 s&@datadir@&$datadir&g
20234 s&@docdir@&$docdir&g
20235 s&@infodir@&$infodir&g
20236 s&@localedir@&$localedir&g
20237 s&@mandir@&$mandir&g
20238 s&\\\${datarootdir}&$datarootdir&g' ;;
20239 esac
20240 _ACEOF
20241
20242 # Neutralize VPATH when `$srcdir' = `.'.
20243 # Shell code in configure.ac might set extrasub.
20244 # FIXME: do we really want to maintain this feature?
20245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20246 ac_sed_extra="$ac_vpsub
20247 $extrasub
20248 _ACEOF
20249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20250 :t
20251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20252 s|@configure_input@|$ac_sed_conf_input|;t t
20253 s&@top_builddir@&$ac_top_builddir_sub&;t t
20254 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20255 s&@srcdir@&$ac_srcdir&;t t
20256 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20257 s&@top_srcdir@&$ac_top_srcdir&;t t
20258 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20259 s&@builddir@&$ac_builddir&;t t
20260 s&@abs_builddir@&$ac_abs_builddir&;t t
20261 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20262 s&@INSTALL@&$ac_INSTALL&;t t
20263 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20264 $ac_datarootdir_hack
20265 "
20266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20267 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20268
20269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20270 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20271 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20272 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20274 which seems to be undefined. Please make sure it is defined" >&5
20275 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20276 which seems to be undefined. Please make sure it is defined" >&2;}
20277
20278 rm -f "$ac_tmp/stdin"
20279 case $ac_file in
20280 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20281 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20282 esac \
20283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20284 ;;
20285 :H)
20286 #
20287 # CONFIG_HEADER
20288 #
20289 if test x"$ac_file" != x-; then
20290 {
20291 $as_echo "/* $configure_input */" \
20292 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20293 } >"$ac_tmp/config.h" \
20294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20295 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20297 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20298 else
20299 rm -f "$ac_file"
20300 mv "$ac_tmp/config.h" "$ac_file" \
20301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20302 fi
20303 else
20304 $as_echo "/* $configure_input */" \
20305 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20306 || as_fn_error $? "could not create -" "$LINENO" 5
20307 fi
20308 # Compute "$ac_file"'s index in $config_headers.
20309 _am_arg="$ac_file"
20310 _am_stamp_count=1
20311 for _am_header in $config_headers :; do
20312 case $_am_header in
20313 $_am_arg | $_am_arg:* )
20314 break ;;
20315 * )
20316 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20317 esac
20318 done
20319 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20320 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20321 X"$_am_arg" : 'X\(//\)[^/]' \| \
20322 X"$_am_arg" : 'X\(//\)$' \| \
20323 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20324 $as_echo X"$_am_arg" |
20325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20326 s//\1/
20327 q
20328 }
20329 /^X\(\/\/\)[^/].*/{
20330 s//\1/
20331 q
20332 }
20333 /^X\(\/\/\)$/{
20334 s//\1/
20335 q
20336 }
20337 /^X\(\/\).*/{
20338 s//\1/
20339 q
20340 }
20341 s/.*/./; q'`/stamp-h$_am_stamp_count
20342 ;;
20343
20344 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20345 $as_echo "$as_me: executing $ac_file commands" >&6;}
20346 ;;
20347 esac
20348
20349
20350 case $ac_file$ac_mode in
20351 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20352 # Older Autoconf quotes --file arguments for eval, but not when files
20353 # are listed without --file. Let's play safe and only enable the eval
20354 # if we detect the quoting.
20355 case $CONFIG_FILES in
20356 *\'*) eval set x "$CONFIG_FILES" ;;
20357 *) set x $CONFIG_FILES ;;
20358 esac
20359 shift
20360 for mf
20361 do
20362 # Strip MF so we end up with the name of the file.
20363 mf=`echo "$mf" | sed -e 's/:.*$//'`
20364 # Check whether this is an Automake generated Makefile or not.
20365 # We used to match only the files named 'Makefile.in', but
20366 # some people rename them; so instead we look at the file content.
20367 # Grep'ing the first line is not enough: some people post-process
20368 # each Makefile.in and add a new line on top of each file to say so.
20369 # Grep'ing the whole file is not good either: AIX grep has a line
20370 # limit of 2048, but all sed's we know have understand at least 4000.
20371 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20372 dirpart=`$as_dirname -- "$mf" ||
20373 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20374 X"$mf" : 'X\(//\)[^/]' \| \
20375 X"$mf" : 'X\(//\)$' \| \
20376 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20377 $as_echo X"$mf" |
20378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20379 s//\1/
20380 q
20381 }
20382 /^X\(\/\/\)[^/].*/{
20383 s//\1/
20384 q
20385 }
20386 /^X\(\/\/\)$/{
20387 s//\1/
20388 q
20389 }
20390 /^X\(\/\).*/{
20391 s//\1/
20392 q
20393 }
20394 s/.*/./; q'`
20395 else
20396 continue
20397 fi
20398 # Extract the definition of DEPDIR, am__include, and am__quote
20399 # from the Makefile without running 'make'.
20400 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20401 test -z "$DEPDIR" && continue
20402 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20403 test -z "am__include" && continue
20404 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20405 # Find all dependency output files, they are included files with
20406 # $(DEPDIR) in their names. We invoke sed twice because it is the
20407 # simplest approach to changing $(DEPDIR) to its actual value in the
20408 # expansion.
20409 for file in `sed -n "
20410 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20411 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20412 # Make sure the directory exists.
20413 test -f "$dirpart/$file" && continue
20414 fdir=`$as_dirname -- "$file" ||
20415 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20416 X"$file" : 'X\(//\)[^/]' \| \
20417 X"$file" : 'X\(//\)$' \| \
20418 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20419 $as_echo X"$file" |
20420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20421 s//\1/
20422 q
20423 }
20424 /^X\(\/\/\)[^/].*/{
20425 s//\1/
20426 q
20427 }
20428 /^X\(\/\/\)$/{
20429 s//\1/
20430 q
20431 }
20432 /^X\(\/\).*/{
20433 s//\1/
20434 q
20435 }
20436 s/.*/./; q'`
20437 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20438 # echo "creating $dirpart/$file"
20439 echo '# dummy' > "$dirpart/$file"
20440 done
20441 done
20442 }
20443 ;;
20444 "libtool":C)
20445
20446 # See if we are running on zsh, and set the options which allow our
20447 # commands through without removal of \ escapes.
20448 if test -n "${ZSH_VERSION+set}" ; then
20449 setopt NO_GLOB_SUBST
20450 fi
20451
20452 cfgfile="${ofile}T"
20453 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20454 $RM "$cfgfile"
20455
20456 cat <<_LT_EOF >> "$cfgfile"
20457 #! $SHELL
20458
20459 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20460 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20461 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20462 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20463 #
20464 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20465 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20466 # Foundation, Inc.
20467 # Written by Gordon Matzigkeit, 1996
20468 #
20469 # This file is part of GNU Libtool.
20470 #
20471 # GNU Libtool is free software; you can redistribute it and/or
20472 # modify it under the terms of the GNU General Public License as
20473 # published by the Free Software Foundation; either version 2 of
20474 # the License, or (at your option) any later version.
20475 #
20476 # As a special exception to the GNU General Public License,
20477 # if you distribute this file as part of a program or library that
20478 # is built using GNU Libtool, you may include this file under the
20479 # same distribution terms that you use for the rest of that program.
20480 #
20481 # GNU Libtool is distributed in the hope that it will be useful,
20482 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20483 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20484 # GNU General Public License for more details.
20485 #
20486 # You should have received a copy of the GNU General Public License
20487 # along with GNU Libtool; see the file COPYING. If not, a copy
20488 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20489 # obtained by writing to the Free Software Foundation, Inc.,
20490 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20491
20492
20493 # The names of the tagged configurations supported by this script.
20494 available_tags=""
20495
20496 # ### BEGIN LIBTOOL CONFIG
20497
20498 # Which release of libtool.m4 was used?
20499 macro_version=$macro_version
20500 macro_revision=$macro_revision
20501
20502 # Whether or not to build static libraries.
20503 build_old_libs=$enable_static
20504
20505 # Whether or not to build shared libraries.
20506 build_libtool_libs=$enable_shared
20507
20508 # What type of objects to build.
20509 pic_mode=$pic_mode
20510
20511 # Whether or not to optimize for fast installation.
20512 fast_install=$enable_fast_install
20513
20514 # Shell to use when invoking shell scripts.
20515 SHELL=$lt_SHELL
20516
20517 # An echo program that protects backslashes.
20518 ECHO=$lt_ECHO
20519
20520 # The PATH separator for the build system.
20521 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20522
20523 # The host system.
20524 host_alias=$host_alias
20525 host=$host
20526 host_os=$host_os
20527
20528 # The build system.
20529 build_alias=$build_alias
20530 build=$build
20531 build_os=$build_os
20532
20533 # A sed program that does not truncate output.
20534 SED=$lt_SED
20535
20536 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20537 Xsed="\$SED -e 1s/^X//"
20538
20539 # A grep program that handles long lines.
20540 GREP=$lt_GREP
20541
20542 # An ERE matcher.
20543 EGREP=$lt_EGREP
20544
20545 # A literal string matcher.
20546 FGREP=$lt_FGREP
20547
20548 # A BSD- or MS-compatible name lister.
20549 NM=$lt_NM
20550
20551 # Whether we need soft or hard links.
20552 LN_S=$lt_LN_S
20553
20554 # What is the maximum length of a command?
20555 max_cmd_len=$max_cmd_len
20556
20557 # Object file suffix (normally "o").
20558 objext=$ac_objext
20559
20560 # Executable file suffix (normally "").
20561 exeext=$exeext
20562
20563 # whether the shell understands "unset".
20564 lt_unset=$lt_unset
20565
20566 # turn spaces into newlines.
20567 SP2NL=$lt_lt_SP2NL
20568
20569 # turn newlines into spaces.
20570 NL2SP=$lt_lt_NL2SP
20571
20572 # convert \$build file names to \$host format.
20573 to_host_file_cmd=$lt_cv_to_host_file_cmd
20574
20575 # convert \$build files to toolchain format.
20576 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20577
20578 # An object symbol dumper.
20579 OBJDUMP=$lt_OBJDUMP
20580
20581 # Method to check whether dependent libraries are shared objects.
20582 deplibs_check_method=$lt_deplibs_check_method
20583
20584 # Command to use when deplibs_check_method = "file_magic".
20585 file_magic_cmd=$lt_file_magic_cmd
20586
20587 # How to find potential files when deplibs_check_method = "file_magic".
20588 file_magic_glob=$lt_file_magic_glob
20589
20590 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20591 want_nocaseglob=$lt_want_nocaseglob
20592
20593 # DLL creation program.
20594 DLLTOOL=$lt_DLLTOOL
20595
20596 # Command to associate shared and link libraries.
20597 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20598
20599 # The archiver.
20600 AR=$lt_AR
20601
20602 # Flags to create an archive.
20603 AR_FLAGS=$lt_AR_FLAGS
20604
20605 # How to feed a file listing to the archiver.
20606 archiver_list_spec=$lt_archiver_list_spec
20607
20608 # A symbol stripping program.
20609 STRIP=$lt_STRIP
20610
20611 # Commands used to install an old-style archive.
20612 RANLIB=$lt_RANLIB
20613 old_postinstall_cmds=$lt_old_postinstall_cmds
20614 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20615
20616 # Whether to use a lock for old archive extraction.
20617 lock_old_archive_extraction=$lock_old_archive_extraction
20618
20619 # A C compiler.
20620 LTCC=$lt_CC
20621
20622 # LTCC compiler flags.
20623 LTCFLAGS=$lt_CFLAGS
20624
20625 # Take the output of nm and produce a listing of raw symbols and C names.
20626 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20627
20628 # Transform the output of nm in a proper C declaration.
20629 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20630
20631 # Transform the output of nm in a C name address pair.
20632 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20633
20634 # Transform the output of nm in a C name address pair when lib prefix is needed.
20635 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20636
20637 # Specify filename containing input files for \$NM.
20638 nm_file_list_spec=$lt_nm_file_list_spec
20639
20640 # The root where to search for dependent libraries,and in which our libraries should be installed.
20641 lt_sysroot=$lt_sysroot
20642
20643 # The name of the directory that contains temporary libtool files.
20644 objdir=$objdir
20645
20646 # Used to examine libraries when file_magic_cmd begins with "file".
20647 MAGIC_CMD=$MAGIC_CMD
20648
20649 # Must we lock files when doing compilation?
20650 need_locks=$lt_need_locks
20651
20652 # Manifest tool.
20653 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20654
20655 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20656 DSYMUTIL=$lt_DSYMUTIL
20657
20658 # Tool to change global to local symbols on Mac OS X.
20659 NMEDIT=$lt_NMEDIT
20660
20661 # Tool to manipulate fat objects and archives on Mac OS X.
20662 LIPO=$lt_LIPO
20663
20664 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20665 OTOOL=$lt_OTOOL
20666
20667 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20668 OTOOL64=$lt_OTOOL64
20669
20670 # Old archive suffix (normally "a").
20671 libext=$libext
20672
20673 # Shared library suffix (normally ".so").
20674 shrext_cmds=$lt_shrext_cmds
20675
20676 # The commands to extract the exported symbol list from a shared archive.
20677 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20678
20679 # Variables whose values should be saved in libtool wrapper scripts and
20680 # restored at link time.
20681 variables_saved_for_relink=$lt_variables_saved_for_relink
20682
20683 # Do we need the "lib" prefix for modules?
20684 need_lib_prefix=$need_lib_prefix
20685
20686 # Do we need a version for libraries?
20687 need_version=$need_version
20688
20689 # Library versioning type.
20690 version_type=$version_type
20691
20692 # Shared library runtime path variable.
20693 runpath_var=$runpath_var
20694
20695 # Shared library path variable.
20696 shlibpath_var=$shlibpath_var
20697
20698 # Is shlibpath searched before the hard-coded library search path?
20699 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20700
20701 # Format of library name prefix.
20702 libname_spec=$lt_libname_spec
20703
20704 # List of archive names. First name is the real one, the rest are links.
20705 # The last name is the one that the linker finds with -lNAME
20706 library_names_spec=$lt_library_names_spec
20707
20708 # The coded name of the library, if different from the real name.
20709 soname_spec=$lt_soname_spec
20710
20711 # Permission mode override for installation of shared libraries.
20712 install_override_mode=$lt_install_override_mode
20713
20714 # Command to use after installation of a shared archive.
20715 postinstall_cmds=$lt_postinstall_cmds
20716
20717 # Command to use after uninstallation of a shared archive.
20718 postuninstall_cmds=$lt_postuninstall_cmds
20719
20720 # Commands used to finish a libtool library installation in a directory.
20721 finish_cmds=$lt_finish_cmds
20722
20723 # As "finish_cmds", except a single script fragment to be evaled but
20724 # not shown.
20725 finish_eval=$lt_finish_eval
20726
20727 # Whether we should hardcode library paths into libraries.
20728 hardcode_into_libs=$hardcode_into_libs
20729
20730 # Compile-time system search path for libraries.
20731 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20732
20733 # Run-time system search path for libraries.
20734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20735
20736 # Whether dlopen is supported.
20737 dlopen_support=$enable_dlopen
20738
20739 # Whether dlopen of programs is supported.
20740 dlopen_self=$enable_dlopen_self
20741
20742 # Whether dlopen of statically linked programs is supported.
20743 dlopen_self_static=$enable_dlopen_self_static
20744
20745 # Commands to strip libraries.
20746 old_striplib=$lt_old_striplib
20747 striplib=$lt_striplib
20748
20749
20750 # The linker used to build libraries.
20751 LD=$lt_LD
20752
20753 # How to create reloadable object files.
20754 reload_flag=$lt_reload_flag
20755 reload_cmds=$lt_reload_cmds
20756
20757 # Commands used to build an old-style archive.
20758 old_archive_cmds=$lt_old_archive_cmds
20759
20760 # A language specific compiler.
20761 CC=$lt_compiler
20762
20763 # Is the compiler the GNU compiler?
20764 with_gcc=$GCC
20765
20766 # Compiler flag to turn off builtin functions.
20767 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20768
20769 # Additional compiler flags for building library objects.
20770 pic_flag=$lt_lt_prog_compiler_pic
20771
20772 # How to pass a linker flag through the compiler.
20773 wl=$lt_lt_prog_compiler_wl
20774
20775 # Compiler flag to prevent dynamic linking.
20776 link_static_flag=$lt_lt_prog_compiler_static
20777
20778 # Does compiler simultaneously support -c and -o options?
20779 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20780
20781 # Whether or not to add -lc for building shared libraries.
20782 build_libtool_need_lc=$archive_cmds_need_lc
20783
20784 # Whether or not to disallow shared libs when runtime libs are static.
20785 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20786
20787 # Compiler flag to allow reflexive dlopens.
20788 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20789
20790 # Compiler flag to generate shared objects directly from archives.
20791 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20792
20793 # Whether the compiler copes with passing no objects directly.
20794 compiler_needs_object=$lt_compiler_needs_object
20795
20796 # Create an old-style archive from a shared archive.
20797 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20798
20799 # Create a temporary old-style archive to link instead of a shared archive.
20800 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20801
20802 # Commands used to build a shared archive.
20803 archive_cmds=$lt_archive_cmds
20804 archive_expsym_cmds=$lt_archive_expsym_cmds
20805
20806 # Commands used to build a loadable module if different from building
20807 # a shared archive.
20808 module_cmds=$lt_module_cmds
20809 module_expsym_cmds=$lt_module_expsym_cmds
20810
20811 # Whether we are building with GNU ld or not.
20812 with_gnu_ld=$lt_with_gnu_ld
20813
20814 # Flag that allows shared libraries with undefined symbols to be built.
20815 allow_undefined_flag=$lt_allow_undefined_flag
20816
20817 # Flag that enforces no undefined symbols.
20818 no_undefined_flag=$lt_no_undefined_flag
20819
20820 # Flag to hardcode \$libdir into a binary during linking.
20821 # This must work even if \$libdir does not exist
20822 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20823
20824 # Whether we need a single "-rpath" flag with a separated argument.
20825 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20826
20827 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20828 # DIR into the resulting binary.
20829 hardcode_direct=$hardcode_direct
20830
20831 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20832 # DIR into the resulting binary and the resulting library dependency is
20833 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20834 # library is relocated.
20835 hardcode_direct_absolute=$hardcode_direct_absolute
20836
20837 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20838 # into the resulting binary.
20839 hardcode_minus_L=$hardcode_minus_L
20840
20841 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20842 # into the resulting binary.
20843 hardcode_shlibpath_var=$hardcode_shlibpath_var
20844
20845 # Set to "yes" if building a shared library automatically hardcodes DIR
20846 # into the library and all subsequent libraries and executables linked
20847 # against it.
20848 hardcode_automatic=$hardcode_automatic
20849
20850 # Set to yes if linker adds runtime paths of dependent libraries
20851 # to runtime path list.
20852 inherit_rpath=$inherit_rpath
20853
20854 # Whether libtool must link a program against all its dependency libraries.
20855 link_all_deplibs=$link_all_deplibs
20856
20857 # Set to "yes" if exported symbols are required.
20858 always_export_symbols=$always_export_symbols
20859
20860 # The commands to list exported symbols.
20861 export_symbols_cmds=$lt_export_symbols_cmds
20862
20863 # Symbols that should not be listed in the preloaded symbols.
20864 exclude_expsyms=$lt_exclude_expsyms
20865
20866 # Symbols that must always be exported.
20867 include_expsyms=$lt_include_expsyms
20868
20869 # Commands necessary for linking programs (against libraries) with templates.
20870 prelink_cmds=$lt_prelink_cmds
20871
20872 # Commands necessary for finishing linking programs.
20873 postlink_cmds=$lt_postlink_cmds
20874
20875 # Specify filename containing input files.
20876 file_list_spec=$lt_file_list_spec
20877
20878 # How to hardcode a shared library path into an executable.
20879 hardcode_action=$hardcode_action
20880
20881 # ### END LIBTOOL CONFIG
20882
20883 _LT_EOF
20884
20885 case $host_os in
20886 aix3*)
20887 cat <<\_LT_EOF >> "$cfgfile"
20888 # AIX sometimes has problems with the GCC collect2 program. For some
20889 # reason, if we set the COLLECT_NAMES environment variable, the problems
20890 # vanish in a puff of smoke.
20891 if test "X${COLLECT_NAMES+set}" != Xset; then
20892 COLLECT_NAMES=
20893 export COLLECT_NAMES
20894 fi
20895 _LT_EOF
20896 ;;
20897 esac
20898
20899
20900 ltmain="$ac_aux_dir/ltmain.sh"
20901
20902
20903 # We use sed instead of cat because bash on DJGPP gets confused if
20904 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20905 # text mode, it properly converts lines to CR/LF. This bash problem
20906 # is reportedly fixed, but why not run on old versions too?
20907 sed '$q' "$ltmain" >> "$cfgfile" \
20908 || (rm -f "$cfgfile"; exit 1)
20909
20910 if test x"$xsi_shell" = xyes; then
20911 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20912 func_dirname ()\
20913 {\
20914 \ case ${1} in\
20915 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20916 \ * ) func_dirname_result="${3}" ;;\
20917 \ esac\
20918 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20919 && mv -f "$cfgfile.tmp" "$cfgfile" \
20920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20921 test 0 -eq $? || _lt_function_replace_fail=:
20922
20923
20924 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20925 func_basename ()\
20926 {\
20927 \ func_basename_result="${1##*/}"\
20928 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20929 && mv -f "$cfgfile.tmp" "$cfgfile" \
20930 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20931 test 0 -eq $? || _lt_function_replace_fail=:
20932
20933
20934 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20935 func_dirname_and_basename ()\
20936 {\
20937 \ case ${1} in\
20938 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20939 \ * ) func_dirname_result="${3}" ;;\
20940 \ esac\
20941 \ func_basename_result="${1##*/}"\
20942 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20943 && mv -f "$cfgfile.tmp" "$cfgfile" \
20944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20945 test 0 -eq $? || _lt_function_replace_fail=:
20946
20947
20948 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20949 func_stripname ()\
20950 {\
20951 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20952 \ # positional parameters, so assign one to ordinary parameter first.\
20953 \ func_stripname_result=${3}\
20954 \ func_stripname_result=${func_stripname_result#"${1}"}\
20955 \ func_stripname_result=${func_stripname_result%"${2}"}\
20956 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20957 && mv -f "$cfgfile.tmp" "$cfgfile" \
20958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20959 test 0 -eq $? || _lt_function_replace_fail=:
20960
20961
20962 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20963 func_split_long_opt ()\
20964 {\
20965 \ func_split_long_opt_name=${1%%=*}\
20966 \ func_split_long_opt_arg=${1#*=}\
20967 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20968 && mv -f "$cfgfile.tmp" "$cfgfile" \
20969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20970 test 0 -eq $? || _lt_function_replace_fail=:
20971
20972
20973 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20974 func_split_short_opt ()\
20975 {\
20976 \ func_split_short_opt_arg=${1#??}\
20977 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20978 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20979 && mv -f "$cfgfile.tmp" "$cfgfile" \
20980 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20981 test 0 -eq $? || _lt_function_replace_fail=:
20982
20983
20984 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20985 func_lo2o ()\
20986 {\
20987 \ case ${1} in\
20988 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20989 \ *) func_lo2o_result=${1} ;;\
20990 \ esac\
20991 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20992 && mv -f "$cfgfile.tmp" "$cfgfile" \
20993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20994 test 0 -eq $? || _lt_function_replace_fail=:
20995
20996
20997 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20998 func_xform ()\
20999 {\
21000 func_xform_result=${1%.*}.lo\
21001 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21002 && mv -f "$cfgfile.tmp" "$cfgfile" \
21003 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21004 test 0 -eq $? || _lt_function_replace_fail=:
21005
21006
21007 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21008 func_arith ()\
21009 {\
21010 func_arith_result=$(( $* ))\
21011 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21012 && mv -f "$cfgfile.tmp" "$cfgfile" \
21013 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21014 test 0 -eq $? || _lt_function_replace_fail=:
21015
21016
21017 sed -e '/^func_len ()$/,/^} # func_len /c\
21018 func_len ()\
21019 {\
21020 func_len_result=${#1}\
21021 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21022 && mv -f "$cfgfile.tmp" "$cfgfile" \
21023 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21024 test 0 -eq $? || _lt_function_replace_fail=:
21025
21026 fi
21027
21028 if test x"$lt_shell_append" = xyes; then
21029 sed -e '/^func_append ()$/,/^} # func_append /c\
21030 func_append ()\
21031 {\
21032 eval "${1}+=\\${2}"\
21033 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21034 && mv -f "$cfgfile.tmp" "$cfgfile" \
21035 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21036 test 0 -eq $? || _lt_function_replace_fail=:
21037
21038
21039 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21040 func_append_quoted ()\
21041 {\
21042 \ func_quote_for_eval "${2}"\
21043 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21044 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21045 && mv -f "$cfgfile.tmp" "$cfgfile" \
21046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21047 test 0 -eq $? || _lt_function_replace_fail=:
21048
21049
21050 # Save a `func_append' function call where possible by direct use of '+='
21051 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21052 && mv -f "$cfgfile.tmp" "$cfgfile" \
21053 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21054 test 0 -eq $? || _lt_function_replace_fail=:
21055 else
21056 # Save a `func_append' function call even when '+=' is not available
21057 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21058 && mv -f "$cfgfile.tmp" "$cfgfile" \
21059 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21060 test 0 -eq $? || _lt_function_replace_fail=:
21061 fi
21062
21063 if test x"$_lt_function_replace_fail" = x":"; then
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21065 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21066 fi
21067
21068
21069 mv -f "$cfgfile" "$ofile" ||
21070 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21071 chmod +x "$ofile"
21072
21073 ;;
21074 "po/stamp-it":C)
21075 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
21076 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
21077 fi
21078 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
21079 >"po/stamp-it.tmp"
21080 sed '/^#/d
21081 s/^[[].*] *//
21082 /^[ ]*$/d
21083 '"s|^| $ac_top_srcdir/|" \
21084 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
21085
21086 sed '/^POTFILES =/,/[^\\]$/ {
21087 /^POTFILES =/!d
21088 r po/POTFILES
21089 }
21090 ' "po/Makefile.in" >"po/Makefile"
21091 rm -f "po/Makefile.tmp"
21092 mv "po/stamp-it.tmp" "po/stamp-it"
21093 ;;
21094
21095 esac
21096 done # for ac_tag
21097
21098
21099 as_fn_exit 0
21100 _ACEOF
21101 ac_clean_files=$ac_clean_files_save
21102
21103 test $ac_write_fail = 0 ||
21104 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21105
21106
21107 # configure is writing to config.log, and then calls config.status.
21108 # config.status does its own redirection, appending to config.log.
21109 # Unfortunately, on DOS this fails, as config.log is still kept open
21110 # by configure, so config.status won't be able to write to it; its
21111 # output is simply discarded. So we exec the FD to /dev/null,
21112 # effectively closing config.log, so it can be properly (re)opened and
21113 # appended to by config.status. When coming back to configure, we
21114 # need to make the FD available again.
21115 if test "$no_create" != yes; then
21116 ac_cs_success=:
21117 ac_config_status_args=
21118 test "$silent" = yes &&
21119 ac_config_status_args="$ac_config_status_args --quiet"
21120 exec 5>/dev/null
21121 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21122 exec 5>>config.log
21123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21124 # would make configure fail if this is the last instruction.
21125 $ac_cs_success || as_fn_exit 1
21126 fi
21127 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21129 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21130 fi
21131
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
21133 $PACKAGE_NAME $VERSION
21134
21135 libcryptsetup: ${have_libcryptsetup}
21136 tcpwrap: ${have_tcpwrap}
21137 PAM: ${have_pam}
21138 AUDIT: ${have_audit}
21139 IMA: ${have_ima}
21140 SELinux: ${have_selinux}
21141 XZ: ${have_xz}
21142 ACL: ${have_acl}
21143 XATTR: ${have_xattr}
21144 GCRYPT: ${have_gcrypt}
21145 QRENCODE: ${have_qrencode}
21146 MICROHTTPD: ${have_microhttpd}
21147 CHKCONFIG: ${have_chkconfig}
21148 binfmt: ${have_binfmt}
21149 vconsole: ${have_vconsole}
21150 readahead: ${have_readahead}
21151 bootchart: ${have_bootchart}
21152 quotacheck: ${have_quotacheck}
21153 randomseed: ${have_randomseed}
21154 logind: ${have_logind}
21155 hostnamed: ${have_hostnamed}
21156 timedated: ${have_timedated}
21157 localed: ${have_localed}
21158 coredump: ${have_coredump}
21159 polkit: ${have_polkit}
21160 efi: ${have_efi}
21161 kmod: ${have_kmod}
21162 blkid: ${have_blkid}
21163 nss-myhostname: ${have_myhostname}
21164 gudev: ${enable_gudev}
21165 gintrospection: ${enable_introspection}
21166 keymap: ${enable_keymap}
21167 Python: ${have_python}
21168 Python Headers: ${have_python_devel}
21169 man pages: ${have_manpages}
21170 gtk-doc: ${enable_gtk_doc}
21171 Split /usr: ${enable_split_usr}
21172 SysV compatibility: ${SYSTEM_SYSV_COMPAT}
21173
21174 prefix: ${prefix}
21175 rootprefix: ${with_rootprefix}
21176 sysconf dir: ${sysconfdir}
21177 datarootdir: ${datarootdir}
21178 includedir: ${includedir}
21179 include_prefix: ${INCLUDE_PREFIX}
21180 lib dir: ${libdir}
21181 rootlib dir: ${with_rootlibdir}
21182 SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
21183 SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
21184 Build Python: ${PYTHON}
21185 Installation Python: ${PYTHON_BINARY}
21186 firmware path: ${FIRMWARE_PATH}
21187 PAM modules dir: ${with_pamlibdir}
21188 D-Bus policy dir: ${with_dbuspolicydir}
21189 D-Bus session dir: ${with_dbussessionservicedir}
21190 D-Bus system dir: ${with_dbussystemservicedir}
21191 D-Bus interfaces dir: ${with_dbusinterfacedir}
21192 Bash completions dir: ${with_bashcompletiondir}
21193 Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
21194 Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
21195 Debug shell: ${SUSHELL} @ ${DEBUGTTY}
21196
21197 CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
21198 CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
21199 LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
21200 PYTHON_CFLAGS: ${PYTHON_CFLAGS}
21201 PYTHON_LIBS: ${PYTHON_LIBS}
21202 " >&5
21203 $as_echo "
21204 $PACKAGE_NAME $VERSION
21205
21206 libcryptsetup: ${have_libcryptsetup}
21207 tcpwrap: ${have_tcpwrap}
21208 PAM: ${have_pam}
21209 AUDIT: ${have_audit}
21210 IMA: ${have_ima}
21211 SELinux: ${have_selinux}
21212 XZ: ${have_xz}
21213 ACL: ${have_acl}
21214 XATTR: ${have_xattr}
21215 GCRYPT: ${have_gcrypt}
21216 QRENCODE: ${have_qrencode}
21217 MICROHTTPD: ${have_microhttpd}
21218 CHKCONFIG: ${have_chkconfig}
21219 binfmt: ${have_binfmt}
21220 vconsole: ${have_vconsole}
21221 readahead: ${have_readahead}
21222 bootchart: ${have_bootchart}
21223 quotacheck: ${have_quotacheck}
21224 randomseed: ${have_randomseed}
21225 logind: ${have_logind}
21226 hostnamed: ${have_hostnamed}
21227 timedated: ${have_timedated}
21228 localed: ${have_localed}
21229 coredump: ${have_coredump}
21230 polkit: ${have_polkit}
21231 efi: ${have_efi}
21232 kmod: ${have_kmod}
21233 blkid: ${have_blkid}
21234 nss-myhostname: ${have_myhostname}
21235 gudev: ${enable_gudev}
21236 gintrospection: ${enable_introspection}
21237 keymap: ${enable_keymap}
21238 Python: ${have_python}
21239 Python Headers: ${have_python_devel}
21240 man pages: ${have_manpages}
21241 gtk-doc: ${enable_gtk_doc}
21242 Split /usr: ${enable_split_usr}
21243 SysV compatibility: ${SYSTEM_SYSV_COMPAT}
21244
21245 prefix: ${prefix}
21246 rootprefix: ${with_rootprefix}
21247 sysconf dir: ${sysconfdir}
21248 datarootdir: ${datarootdir}
21249 includedir: ${includedir}
21250 include_prefix: ${INCLUDE_PREFIX}
21251 lib dir: ${libdir}
21252 rootlib dir: ${with_rootlibdir}
21253 SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
21254 SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
21255 Build Python: ${PYTHON}
21256 Installation Python: ${PYTHON_BINARY}
21257 firmware path: ${FIRMWARE_PATH}
21258 PAM modules dir: ${with_pamlibdir}
21259 D-Bus policy dir: ${with_dbuspolicydir}
21260 D-Bus session dir: ${with_dbussessionservicedir}
21261 D-Bus system dir: ${with_dbussystemservicedir}
21262 D-Bus interfaces dir: ${with_dbusinterfacedir}
21263 Bash completions dir: ${with_bashcompletiondir}
21264 Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
21265 Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
21266 Debug shell: ${SUSHELL} @ ${DEBUGTTY}
21267
21268 CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
21269 CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
21270 LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
21271 PYTHON_CFLAGS: ${PYTHON_CFLAGS}
21272 PYTHON_LIBS: ${PYTHON_LIBS}
21273 " >&6; }