lib/dpkg/tarfn.c: Kludge `tar_header_decode' to handle spurious `errno'.
[dpkg] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for dpkg 1.18.25.
4 #
5 # Report bugs to <debian-dpkg@lists.debian.org>.
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: debian-dpkg@lists.debian.org about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='dpkg'
592 PACKAGE_TARNAME='dpkg'
593 PACKAGE_VERSION='1.18.25'
594 PACKAGE_STRING='dpkg 1.18.25'
595 PACKAGE_BUGREPORT='debian-dpkg@lists.debian.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="lib/dpkg/dpkg.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 gt_needs=
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 AUTOM4TE
641 HAVE_UNSETENV_FALSE
642 HAVE_UNSETENV_TRUE
643 HAVE_ALPHASORT_FALSE
644 HAVE_ALPHASORT_TRUE
645 HAVE_SCANDIR_FALSE
646 HAVE_SCANDIR_TRUE
647 HAVE_ASPRINTF_FALSE
648 HAVE_ASPRINTF_TRUE
649 HAVE_STRSIGNAL_FALSE
650 HAVE_STRSIGNAL_TRUE
651 HAVE_STRERROR_FALSE
652 HAVE_STRERROR_TRUE
653 HAVE_STRNDUP_FALSE
654 HAVE_STRNDUP_TRUE
655 HAVE_STRNLEN_FALSE
656 HAVE_STRNLEN_TRUE
657 HAVE_OBSTACK_FREE_FALSE
658 HAVE_OBSTACK_FREE_TRUE
659 HAVE_GETOPT_LONG_FALSE
660 HAVE_GETOPT_LONG_TRUE
661 HAVE_GETOPT_FALSE
662 HAVE_GETOPT_TRUE
663 HAVE_C99_SNPRINTF_FALSE
664 HAVE_C99_SNPRINTF_TRUE
665 HAVE_SYS_ERRLIST_FALSE
666 HAVE_SYS_ERRLIST_TRUE
667 KVM_LIBS
668 PS_LIBS
669 CURSES_LIBS
670 USE_UNICODE
671 HAVE_SETEXECFILECON_FALSE
672 HAVE_SETEXECFILECON_TRUE
673 WITH_LIBSELINUX_FALSE
674 WITH_LIBSELINUX_TRUE
675 SELINUX_CFLAGS
676 SELINUX_LIBS
677 PKG_CONFIG_LIBDIR
678 PKG_CONFIG_PATH
679 PKG_CONFIG
680 LZMA_LIBS
681 BZ2_LIBS
682 Z_LIBS
683 HAVE_LIBMD_MD5_FALSE
684 HAVE_LIBMD_MD5_TRUE
685 MD_LIBS
686 PERL_COVER
687 PERL_COVERAGE
688 LCOV_GENHTML
689 LCOV
690 GCOV
691 COVERAGE_ENABLED_FALSE
692 COVERAGE_ENABLED_TRUE
693 BUILD_POD_DOC_FALSE
694 BUILD_POD_DOC_TRUE
695 POD2MAN
696 USE_PO4A
697 PO4A
698 HAVE_DOT
699 DOXYGEN
700 PATCH
701 CXXCPP
702 am__fastdepCXX_FALSE
703 am__fastdepCXX_TRUE
704 CXXDEPMODE
705 ac_ct_CXX
706 CXXFLAGS
707 CXX
708 TAR
709 logdir
710 admindir
711 pkgconfdir
712 devlibdir
713 BUILD_DEVEL_DOCS
714 PACKAGE_RELEASE_DATE
715 PERL_LIBDIR
716 PERL
717 BUILD_UPDATE_ALTERNATIVES_FALSE
718 BUILD_UPDATE_ALTERNATIVES_TRUE
719 BUILD_START_STOP_DAEMON_FALSE
720 BUILD_START_STOP_DAEMON_TRUE
721 BUILD_DSELECT_FALSE
722 BUILD_DSELECT_TRUE
723 HAVE_LINKER_VERSION_SCRIPT_FALSE
724 HAVE_LINKER_VERSION_SCRIPT_TRUE
725 HAVE_LINKER_AS_NEEDED_FALSE
726 HAVE_LINKER_AS_NEEDED_TRUE
727 BUILD_SHARED_FALSE
728 BUILD_SHARED_TRUE
729 LT_SYS_LIBRARY_PATH
730 OTOOL64
731 OTOOL
732 LIPO
733 NMEDIT
734 DSYMUTIL
735 MANIFEST_TOOL
736 RANLIB
737 DLLTOOL
738 OBJDUMP
739 LN_S
740 NM
741 ac_ct_DUMPBIN
742 DUMPBIN
743 LD
744 FGREP
745 LIBTOOL
746 ac_ct_AR
747 AR
748 POSUB
749 LTLIBINTL
750 LIBINTL
751 INTLLIBS
752 LTLIBICONV
753 LIBICONV
754 INTL_MACOSX_LIBS
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 XGETTEXT_EXTRA_OPTIONS
764 MSGMERGE
765 XGETTEXT_015
766 XGETTEXT
767 GMSGFMT_015
768 MSGFMT_015
769 GMSGFMT
770 MSGFMT
771 GETTEXT_MACRO_VERSION
772 USE_NLS
773 SED
774 AM_BACKSLASH
775 AM_DEFAULT_VERBOSITY
776 AM_DEFAULT_V
777 AM_V
778 am__fastdepCC_FALSE
779 am__fastdepCC_TRUE
780 CCDEPMODE
781 am__nodep
782 AMDEPBACKSLASH
783 AMDEP_FALSE
784 AMDEP_TRUE
785 am__quote
786 am__include
787 DEPDIR
788 am__untar
789 am__tar
790 AMTAR
791 am__leading_dot
792 SET_MAKE
793 AWK
794 mkdir_p
795 MKDIR_P
796 INSTALL_STRIP_PROGRAM
797 STRIP
798 install_sh
799 MAKEINFO
800 AUTOHEADER
801 AUTOMAKE
802 AUTOCONF
803 ACLOCAL
804 VERSION
805 PACKAGE
806 CYGPATH_W
807 am__isrc
808 INSTALL_DATA
809 INSTALL_SCRIPT
810 INSTALL_PROGRAM
811 EGREP
812 GREP
813 CPP
814 OBJEXT
815 EXEEXT
816 ac_ct_CC
817 CPPFLAGS
818 LDFLAGS
819 CFLAGS
820 CC
821 PACKAGE_COPYRIGHT_HOLDER
822 target_alias
823 host_alias
824 build_alias
825 LIBS
826 ECHO_T
827 ECHO_N
828 ECHO_C
829 DEFS
830 mandir
831 localedir
832 libdir
833 psdir
834 pdfdir
835 dvidir
836 htmldir
837 infodir
838 docdir
839 oldincludedir
840 includedir
841 runstatedir
842 localstatedir
843 sharedstatedir
844 sysconfdir
845 datadir
846 datarootdir
847 libexecdir
848 sbindir
849 bindir
850 program_transform_name
851 prefix
852 exec_prefix
853 PACKAGE_URL
854 PACKAGE_BUGREPORT
855 PACKAGE_STRING
856 PACKAGE_VERSION
857 PACKAGE_TARNAME
858 PACKAGE_NAME
859 PATH_SEPARATOR
860 SHELL'
861 ac_subst_files=''
862 ac_user_opts='
863 enable_option_checking
864 enable_dependency_tracking
865 enable_silent_rules
866 enable_nls
867 with_gnu_ld
868 enable_rpath
869 with_libiconv_prefix
870 with_libintl_prefix
871 enable_shared
872 enable_static
873 with_pic
874 enable_fast_install
875 with_aix_soname
876 with_sysroot
877 enable_libtool_lock
878 enable_dselect
879 enable_start_stop_daemon
880 enable_update_alternatives
881 enable_devel_docs
882 with_devlibdir
883 with_pkgconfdir
884 with_admindir
885 with_logdir
886 with_dpkg_deb_compressor
887 enable_coverage
888 enable_largefile
889 with_libmd
890 with_libz
891 with_libbz2
892 with_liblzma
893 with_libselinux
894 enable_unicode
895 enable_mmap
896 enable_disk_preallocate
897 enable_compiler_warnings
898 enable_compiler_optimizations
899 enable_linker_optimizations
900 '
901 ac_precious_vars='build_alias
902 host_alias
903 target_alias
904 CC
905 CFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
909 CPP
910 LT_SYS_LIBRARY_PATH
911 PERL
912 PERL_LIBDIR
913 TAR
914 CXX
915 CXXFLAGS
916 CCC
917 CXXCPP
918 PATCH
919 MD_LIBS
920 Z_LIBS
921 BZ2_LIBS
922 LZMA_LIBS
923 PKG_CONFIG
924 PKG_CONFIG_PATH
925 PKG_CONFIG_LIBDIR
926 SELINUX_LIBS
927 SELINUX_CFLAGS
928 CURSES_LIBS
929 PS_LIBS
930 KVM_LIBS'
931
932
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 ac_unrecognized_opts=
937 ac_unrecognized_sep=
938 # The variables have the same names as the options, with
939 # dashes changed to underlines.
940 cache_file=/dev/null
941 exec_prefix=NONE
942 no_create=
943 no_recursion=
944 prefix=NONE
945 program_prefix=NONE
946 program_suffix=NONE
947 program_transform_name=s,x,x,
948 silent=
949 site=
950 srcdir=
951 verbose=
952 x_includes=NONE
953 x_libraries=NONE
954
955 # Installation directory options.
956 # These are left unexpanded so users can "make install exec_prefix=/foo"
957 # and all the variables that are supposed to be based on exec_prefix
958 # by default will actually change.
959 # Use braces instead of parens because sh, perl, etc. also accept them.
960 # (The list follows the same order as the GNU Coding Standards.)
961 bindir='${exec_prefix}/bin'
962 sbindir='${exec_prefix}/sbin'
963 libexecdir='${exec_prefix}/libexec'
964 datarootdir='${prefix}/share'
965 datadir='${datarootdir}'
966 sysconfdir='${prefix}/etc'
967 sharedstatedir='${prefix}/com'
968 localstatedir='${prefix}/var'
969 runstatedir='${localstatedir}/run'
970 includedir='${prefix}/include'
971 oldincludedir='/usr/include'
972 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973 infodir='${datarootdir}/info'
974 htmldir='${docdir}'
975 dvidir='${docdir}'
976 pdfdir='${docdir}'
977 psdir='${docdir}'
978 libdir='${exec_prefix}/lib'
979 localedir='${datarootdir}/locale'
980 mandir='${datarootdir}/man'
981
982 ac_prev=
983 ac_dashdash=
984 for ac_option
985 do
986 # If the previous option needs an argument, assign it.
987 if test -n "$ac_prev"; then
988 eval $ac_prev=\$ac_option
989 ac_prev=
990 continue
991 fi
992
993 case $ac_option in
994 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 *=) ac_optarg= ;;
996 *) ac_optarg=yes ;;
997 esac
998
999 # Accept the important Cygnus configure options, so we can diagnose typos.
1000
1001 case $ac_dashdash$ac_option in
1002 --)
1003 ac_dashdash=yes ;;
1004
1005 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006 ac_prev=bindir ;;
1007 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1008 bindir=$ac_optarg ;;
1009
1010 -build | --build | --buil | --bui | --bu)
1011 ac_prev=build_alias ;;
1012 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1013 build_alias=$ac_optarg ;;
1014
1015 -cache-file | --cache-file | --cache-fil | --cache-fi \
1016 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017 ac_prev=cache_file ;;
1018 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1020 cache_file=$ac_optarg ;;
1021
1022 --config-cache | -C)
1023 cache_file=config.cache ;;
1024
1025 -datadir | --datadir | --datadi | --datad)
1026 ac_prev=datadir ;;
1027 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1028 datadir=$ac_optarg ;;
1029
1030 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031 | --dataroo | --dataro | --datar)
1032 ac_prev=datarootdir ;;
1033 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035 datarootdir=$ac_optarg ;;
1036
1037 -disable-* | --disable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046 "enable_$ac_useropt"
1047 "*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=no ;;
1052
1053 -docdir | --docdir | --docdi | --doc | --do)
1054 ac_prev=docdir ;;
1055 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056 docdir=$ac_optarg ;;
1057
1058 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 ac_prev=dvidir ;;
1060 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061 dvidir=$ac_optarg ;;
1062
1063 -enable-* | --enable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error $? "invalid feature name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072 "enable_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval enable_$ac_useropt=\$ac_optarg ;;
1078
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
1086 exec_prefix=$ac_optarg ;;
1087
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1090 with_gas=yes ;;
1091
1092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
1098
1099 -host | --host | --hos | --ho)
1100 ac_prev=host_alias ;;
1101 -host=* | --host=* | --hos=* | --ho=*)
1102 host_alias=$ac_optarg ;;
1103
1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 ac_prev=htmldir ;;
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 | --ht=*)
1108 htmldir=$ac_optarg ;;
1109
1110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
1115 includedir=$ac_optarg ;;
1116
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 ac_prev=infodir ;;
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120 infodir=$ac_optarg ;;
1121
1122 -libdir | --libdir | --libdi | --libd)
1123 ac_prev=libdir ;;
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125 libdir=$ac_optarg ;;
1126
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
1132 libexecdir=$ac_optarg ;;
1133
1134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1138
1139 -localstatedir | --localstatedir | --localstatedi | --localstated \
1140 | --localstate | --localstat | --localsta | --localst | --locals)
1141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144 localstatedir=$ac_optarg ;;
1145
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 ac_prev=mandir ;;
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149 mandir=$ac_optarg ;;
1150
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1153 with_fp=no ;;
1154
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156 | --no-cr | --no-c | -n)
1157 no_create=yes ;;
1158
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161 no_recursion=yes ;;
1162
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170 oldincludedir=$ac_optarg ;;
1171
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 ac_prev=prefix ;;
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175 prefix=$ac_optarg ;;
1176
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182 program_prefix=$ac_optarg ;;
1183
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189 program_suffix=$ac_optarg ;;
1190
1191 -program-transform-name | --program-transform-name \
1192 | --program-transform-nam | --program-transform-na \
1193 | --program-transform-n | --program-transform- \
1194 | --program-transform | --program-transfor \
1195 | --program-transfo | --program-transf \
1196 | --program-trans | --program-tran \
1197 | --progr-tra | --program-tr | --program-t)
1198 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
1206 program_transform_name=$ac_optarg ;;
1207
1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 ac_prev=pdfdir ;;
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1212
1213 -psdir | --psdir | --psdi | --psd | --ps)
1214 ac_prev=psdir ;;
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216 psdir=$ac_optarg ;;
1217
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 silent=yes ;;
1221
1222 -runstatedir | --runstatedir | --runstatedi | --runstated \
1223 | --runstate | --runstat | --runsta | --runst | --runs \
1224 | --run | --ru | --r)
1225 ac_prev=runstatedir ;;
1226 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1227 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1228 | --run=* | --ru=* | --r=*)
1229 runstatedir=$ac_optarg ;;
1230
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1236
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1247
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1252
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1257
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1264
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1269
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1272
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1275
1276 -with-* | --with-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error $? "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1284 *"
1285 "with_$ac_useropt"
1286 "*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=\$ac_optarg ;;
1291
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error $? "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
1307
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1311
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1318
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1325
1326 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information"
1328 ;;
1329
1330 *=*)
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' | [0-9]* | *[!_$as_cr_alnum]* )
1335 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1336 esac
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1339
1340 *)
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1346 ;;
1347
1348 esac
1349 done
1350
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error $? "missing argument to $ac_option"
1354 fi
1355
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1358 no) ;;
1359 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 esac
1362 fi
1363
1364 # Check all directory arguments for consistency.
1365 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir runstatedir
1369 do
1370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
1372 case $ac_val in
1373 */ )
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1376 esac
1377 # Be sure to have absolute directory names.
1378 case $ac_val in
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 esac
1382 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1383 done
1384
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1388 build=$build_alias
1389 host=$host_alias
1390 target=$target_alias
1391
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 elif test "x$build_alias" != "x$host_alias"; then
1397 cross_compiling=yes
1398 fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error $? "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error $? "pwd does not report name of working directory"
1413
1414
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\).*/{
1438 s//\1/
1439 q
1440 }
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1445 fi
1446 else
1447 ac_srcdir_defaulted=no
1448 fi
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1452 fi
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1456 pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 srcdir=.
1460 fi
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1473
1474 #
1475 # Report the --help message.
1476 #
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1480 cat <<_ACEOF
1481 \`configure' configures dpkg 1.18.25 to adapt to many kinds of systems.
1482
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1487
1488 Defaults for the options are specified in brackets.
1489
1490 Configuration:
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking ...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 [PREFIX]
1506
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1511
1512 For better control, use the options below.
1513
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/dpkg]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535 _ACEOF
1536
1537 cat <<\_ACEOF
1538
1539 Program names:
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543
1544 System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551 case $ac_init_help in
1552 short | recursive ) echo "Configuration of dpkg 1.18.25:";;
1553 esac
1554 cat <<\_ACEOF
1555
1556 Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-dependency-tracking
1561 do not reject slow dependency extractors
1562 --disable-dependency-tracking
1563 speeds up one-time build
1564 --enable-silent-rules less verbose build output (undo: "make V=1")
1565 --disable-silent-rules verbose build output (undo: "make V=0")
1566 --disable-nls do not use Native Language Support
1567 --disable-rpath do not hardcode runtime library paths
1568 --enable-shared[=PKGS] build shared libraries [default=no]
1569 --enable-static[=PKGS] build static libraries [default=yes]
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation [default=yes]
1572 --disable-libtool-lock avoid locking (might break parallel builds)
1573 --disable-dselect do not build or use dselect
1574 --disable-start-stop-daemon
1575 do not build or use start-stop-daemon
1576 --disable-update-alternatives
1577 do not build or use update-alternatives
1578 --disable-devel-docs build release docs
1579 --enable-coverage whether to enable code coverage
1580 --disable-largefile omit support for large files
1581 --disable-unicode do not use Unicode (wide chars) support
1582 --enable-mmap enable usage of unrealiable mmap if available
1583 --enable-disk-preallocate
1584 enable usage of disk size pre-allocation
1585 --disable-compiler-warnings
1586 Disable (detected) additional compiler warnings
1587 --disable-compiler-optimizations
1588 Disable (detected) compiler optimizations
1589 --disable-linker-optimizations
1590 Disable (detected) linker optimizations
1591
1592 Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1596 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1597 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1598 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1599 --without-libintl-prefix don't search for libintl in includedir and libdir
1600 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1601 both]
1602 --with-aix-soname=aix|svr4|both
1603 shared library versioning (aka "SONAME") variant to
1604 provide on AIX, [default=aix].
1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1606 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1607 compiler's sysroot if not specified).
1608 --with-devlibdir=DIR dpkg development library directory [LIBDIR]
1609 --with-pkgconfdir=DIR dpkg configuration directory [SYSCONFDIR/dpkg]
1610 --with-admindir=DIR dpkg database directory [LOCALSTATEDIR/lib/dpkg]
1611 --with-logdir=DIR system logging directory [LOCALSTATEDIR/log]
1612 --with-dpkg-deb-compressor=COMP
1613 change default dpkg-deb build compressor
1614 --with-libmd use libmd library for message digest functions
1615 --with-libz use z library for compression and decompression
1616 --with-libbz2 use bz2 library for compression and decompression
1617 --with-liblzma use lzma library for compression and decompression
1618 --with-libselinux use selinux library to set security contexts
1619
1620 Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
1625 LIBS libraries to pass to the linker, e.g. -l<library>
1626 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1627 you have headers in a nonstandard directory <include dir>
1628 CPP C preprocessor
1629 LT_SYS_LIBRARY_PATH
1630 User-defined run-time library search path.
1631 PERL Perl interpreter
1632 PERL_LIBDIR Perl library directory
1633 TAR GNU tar program
1634 CXX C++ compiler command
1635 CXXFLAGS C++ compiler flags
1636 CXXCPP C++ preprocessor
1637 PATCH GNU patch program
1638 MD_LIBS linker flags for md library
1639 Z_LIBS linker flags for z library
1640 BZ2_LIBS linker flags for bz2 library
1641 LZMA_LIBS linker flags for lzma library
1642 PKG_CONFIG path to pkg-config utility
1643 PKG_CONFIG_PATH
1644 directories to add to pkg-config's search path
1645 PKG_CONFIG_LIBDIR
1646 path overriding pkg-config's built-in search path
1647 SELINUX_LIBS
1648 linker flags for selinux library
1649 SELINUX_CFLAGS
1650 C compiler flags for SELINUX, overriding pkg-config
1651 CURSES_LIBS linker flags for curses library
1652 PS_LIBS linker flags for ps library
1653 KVM_LIBS linker flags for kvm library
1654
1655 Use these variables to override the choices made by `configure' or to help
1656 it to find libraries and programs with nonstandard names/locations.
1657
1658 Report bugs to <debian-dpkg@lists.debian.org>.
1659 _ACEOF
1660 ac_status=$?
1661 fi
1662
1663 if test "$ac_init_help" = "recursive"; then
1664 # If there are subdirs, report their specific --help.
1665 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1666 test -d "$ac_dir" ||
1667 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1668 continue
1669 ac_builddir=.
1670
1671 case "$ac_dir" in
1672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 *)
1674 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1675 # A ".." for each directory in $ac_dir_suffix.
1676 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1677 case $ac_top_builddir_sub in
1678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1680 esac ;;
1681 esac
1682 ac_abs_top_builddir=$ac_pwd
1683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1684 # for backward compatibility:
1685 ac_top_builddir=$ac_top_build_prefix
1686
1687 case $srcdir in
1688 .) # We are building in place.
1689 ac_srcdir=.
1690 ac_top_srcdir=$ac_top_builddir_sub
1691 ac_abs_top_srcdir=$ac_pwd ;;
1692 [\\/]* | ?:[\\/]* ) # Absolute name.
1693 ac_srcdir=$srcdir$ac_dir_suffix;
1694 ac_top_srcdir=$srcdir
1695 ac_abs_top_srcdir=$srcdir ;;
1696 *) # Relative name.
1697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1698 ac_top_srcdir=$ac_top_build_prefix$srcdir
1699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1700 esac
1701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1702
1703 cd "$ac_dir" || { ac_status=$?; continue; }
1704 # Check for guested configure.
1705 if test -f "$ac_srcdir/configure.gnu"; then
1706 echo &&
1707 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1708 elif test -f "$ac_srcdir/configure"; then
1709 echo &&
1710 $SHELL "$ac_srcdir/configure" --help=recursive
1711 else
1712 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1713 fi || ac_status=$?
1714 cd "$ac_pwd" || { ac_status=$?; break; }
1715 done
1716 fi
1717
1718 test -n "$ac_init_help" && exit $ac_status
1719 if $ac_init_version; then
1720 cat <<\_ACEOF
1721 dpkg configure 1.18.25
1722 generated by GNU Autoconf 2.69
1723
1724 Copyright (C) 2012 Free Software Foundation, Inc.
1725 This configure script is free software; the Free Software Foundation
1726 gives unlimited permission to copy, distribute and modify it.
1727 _ACEOF
1728 exit
1729 fi
1730
1731 ## ------------------------ ##
1732 ## Autoconf initialization. ##
1733 ## ------------------------ ##
1734
1735 # ac_fn_c_try_compile LINENO
1736 # --------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_compile ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767 fi
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_compile
1772
1773 # ac_fn_c_try_cpp LINENO
1774 # ----------------------
1775 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_cpp ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_cpp conftest.$ac_ext"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } > conftest.i && {
1795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 }; then :
1798 ac_retval=0
1799 else
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1
1804 fi
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1807
1808 } # ac_fn_c_try_cpp
1809
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1814 # accordingly.
1815 ac_fn_c_check_header_mongrel ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if eval \${$3+:} false; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823 fi
1824 eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 else
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1833 $4
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1838 else
1839 ac_header_compiler=no
1840 fi
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1844
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 #include <$2>
1851 _ACEOF
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1854 else
1855 ac_header_preproc=no
1856 fi
1857 rm -f conftest.err conftest.i conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1860
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863 yes:no: )
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868 ;;
1869 no:yes:* )
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 ( $as_echo "## ------------------------------------------- ##
1881 ## Report this to debian-dpkg@lists.debian.org ##
1882 ## ------------------------------------------- ##"
1883 ) | sed "s/^/$as_me: WARNING: /" >&2
1884 ;;
1885 esac
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1890 else
1891 eval "$3=\$ac_header_compiler"
1892 fi
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 fi
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899 } # ac_fn_c_check_header_mongrel
1900
1901 # ac_fn_c_try_run LINENO
1902 # ----------------------
1903 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1904 # that executables *can* be run.
1905 ac_fn_c_try_run ()
1906 {
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if { { ac_try="$ac_link"
1909 case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912 esac
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_link") 2>&5
1916 ac_status=$?
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1919 { { case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_try") 2>&5
1926 ac_status=$?
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; }; }; then :
1929 ac_retval=0
1930 else
1931 $as_echo "$as_me: program exited with status $ac_status" >&5
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1934
1935 ac_retval=$ac_status
1936 fi
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1940
1941 } # ac_fn_c_try_run
1942
1943 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists and can be compiled using the include files in
1946 # INCLUDES, setting the cache variable VAR accordingly.
1947 ac_fn_c_check_header_compile ()
1948 {
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1954 else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $4
1958 #include <$2>
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961 eval "$3=yes"
1962 else
1963 eval "$3=no"
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 fi
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972 } # ac_fn_c_check_header_compile
1973
1974 # ac_fn_c_try_link LINENO
1975 # -----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_c_try_link ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext conftest$ac_exeext
1981 if { { ac_try="$ac_link"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>conftest.err
1989 ac_status=$?
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1994 fi
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_c_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest$ac_exeext && {
2000 test "$cross_compiling" = yes ||
2001 test -x conftest$ac_exeext
2002 }; then :
2003 ac_retval=0
2004 else
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 ac_retval=1
2009 fi
2010 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2011 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2012 # interfere with the next link command; also delete a directory that is
2013 # left behind by Apple's compiler. We do this before executing the actions.
2014 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 as_fn_set_status $ac_retval
2017
2018 } # ac_fn_c_try_link
2019
2020 # ac_fn_c_check_func LINENO FUNC VAR
2021 # ----------------------------------
2022 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2023 ac_fn_c_check_func ()
2024 {
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if eval \${$3+:} false; then :
2029 $as_echo_n "(cached) " >&6
2030 else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2035 #define $2 innocuous_$2
2036
2037 /* System header to define __stub macros and hopefully few prototypes,
2038 which can conflict with char $2 (); below.
2039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2040 <limits.h> exists even on freestanding compilers. */
2041
2042 #ifdef __STDC__
2043 # include <limits.h>
2044 #else
2045 # include <assert.h>
2046 #endif
2047
2048 #undef $2
2049
2050 /* Override any GCC internal prototype to avoid an error.
2051 Use char because int might match the return type of a GCC
2052 builtin and then its argument prototype would still apply. */
2053 #ifdef __cplusplus
2054 extern "C"
2055 #endif
2056 char $2 ();
2057 /* The GNU C library defines this for functions which it implements
2058 to always fail with ENOSYS. Some functions are actually named
2059 something starting with __ and the normal name is an alias. */
2060 #if defined __stub_$2 || defined __stub___$2
2061 choke me
2062 #endif
2063
2064 int
2065 main ()
2066 {
2067 return $2 ();
2068 ;
2069 return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_link "$LINENO"; then :
2073 eval "$3=yes"
2074 else
2075 eval "$3=no"
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext \
2078 conftest$ac_exeext conftest.$ac_ext
2079 fi
2080 eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084
2085 } # ac_fn_c_check_func
2086
2087 # ac_fn_cxx_try_compile LINENO
2088 # ----------------------------
2089 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2090 ac_fn_cxx_try_compile ()
2091 {
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 rm -f conftest.$ac_objext
2094 if { { ac_try="$ac_compile"
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_compile") 2>conftest.err
2102 ac_status=$?
2103 if test -s conftest.err; then
2104 grep -v '^ *+' conftest.err >conftest.er1
2105 cat conftest.er1 >&5
2106 mv -f conftest.er1 conftest.err
2107 fi
2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109 test $ac_status = 0; } && {
2110 test -z "$ac_cxx_werror_flag" ||
2111 test ! -s conftest.err
2112 } && test -s conftest.$ac_objext; then :
2113 ac_retval=0
2114 else
2115 $as_echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 ac_retval=1
2119 fi
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 as_fn_set_status $ac_retval
2122
2123 } # ac_fn_cxx_try_compile
2124
2125 # ac_fn_cxx_try_cpp LINENO
2126 # ------------------------
2127 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2128 ac_fn_cxx_try_cpp ()
2129 {
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 if { { ac_try="$ac_cpp conftest.$ac_ext"
2132 case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135 esac
2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2139 ac_status=$?
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2144 fi
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } > conftest.i && {
2147 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2148 test ! -s conftest.err
2149 }; then :
2150 ac_retval=0
2151 else
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 ac_retval=1
2156 fi
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 as_fn_set_status $ac_retval
2159
2160 } # ac_fn_cxx_try_cpp
2161
2162 # ac_fn_cxx_try_link LINENO
2163 # -------------------------
2164 # Try to link conftest.$ac_ext, and return whether this succeeded.
2165 ac_fn_cxx_try_link ()
2166 {
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 rm -f conftest.$ac_objext conftest$ac_exeext
2169 if { { ac_try="$ac_link"
2170 case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173 esac
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_link") 2>conftest.err
2177 ac_status=$?
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2182 fi
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } && {
2185 test -z "$ac_cxx_werror_flag" ||
2186 test ! -s conftest.err
2187 } && test -s conftest$ac_exeext && {
2188 test "$cross_compiling" = yes ||
2189 test -x conftest$ac_exeext
2190 }; then :
2191 ac_retval=0
2192 else
2193 $as_echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 ac_retval=1
2197 fi
2198 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2199 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2200 # interfere with the next link command; also delete a directory that is
2201 # left behind by Apple's compiler. We do this before executing the actions.
2202 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 as_fn_set_status $ac_retval
2205
2206 } # ac_fn_cxx_try_link
2207
2208 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2209 # ---------------------------------------------------------
2210 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2211 # the include files in INCLUDES and setting the cache variable VAR
2212 # accordingly.
2213 ac_fn_cxx_check_header_mongrel ()
2214 {
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 if eval \${$3+:} false; then :
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221 fi
2222 eval ac_res=\$$3
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2225 else
2226 # Is the header compilable?
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2228 $as_echo_n "checking $2 usability... " >&6; }
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2231 $4
2232 #include <$2>
2233 _ACEOF
2234 if ac_fn_cxx_try_compile "$LINENO"; then :
2235 ac_header_compiler=yes
2236 else
2237 ac_header_compiler=no
2238 fi
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2241 $as_echo "$ac_header_compiler" >&6; }
2242
2243 # Is the header present?
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2245 $as_echo_n "checking $2 presence... " >&6; }
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2248 #include <$2>
2249 _ACEOF
2250 if ac_fn_cxx_try_cpp "$LINENO"; then :
2251 ac_header_preproc=yes
2252 else
2253 ac_header_preproc=no
2254 fi
2255 rm -f conftest.err conftest.i conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2257 $as_echo "$ac_header_preproc" >&6; }
2258
2259 # So? What about this header?
2260 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2261 yes:no: )
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2263 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2265 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2266 ;;
2267 no:yes:* )
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2269 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2271 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2273 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2275 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2277 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2278 ( $as_echo "## ------------------------------------------- ##
2279 ## Report this to debian-dpkg@lists.debian.org ##
2280 ## ------------------------------------------- ##"
2281 ) | sed "s/^/$as_me: WARNING: /" >&2
2282 ;;
2283 esac
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2285 $as_echo_n "checking for $2... " >&6; }
2286 if eval \${$3+:} false; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 eval "$3=\$ac_header_compiler"
2290 fi
2291 eval ac_res=\$$3
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 fi
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296
2297 } # ac_fn_cxx_check_header_mongrel
2298
2299 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2300 # -------------------------------------------
2301 # Tests whether TYPE exists after having included INCLUDES, setting cache
2302 # variable VAR accordingly.
2303 ac_fn_c_check_type ()
2304 {
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2307 $as_echo_n "checking for $2... " >&6; }
2308 if eval \${$3+:} false; then :
2309 $as_echo_n "(cached) " >&6
2310 else
2311 eval "$3=no"
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 $4
2315 int
2316 main ()
2317 {
2318 if (sizeof ($2))
2319 return 0;
2320 ;
2321 return 0;
2322 }
2323 _ACEOF
2324 if ac_fn_c_try_compile "$LINENO"; then :
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2327 $4
2328 int
2329 main ()
2330 {
2331 if (sizeof (($2)))
2332 return 0;
2333 ;
2334 return 0;
2335 }
2336 _ACEOF
2337 if ac_fn_c_try_compile "$LINENO"; then :
2338
2339 else
2340 eval "$3=yes"
2341 fi
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 fi
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 fi
2346 eval ac_res=\$$3
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350
2351 } # ac_fn_c_check_type
2352
2353 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2354 # --------------------------------------------
2355 # Tries to find the compile-time value of EXPR in a program that includes
2356 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2357 # computed
2358 ac_fn_c_compute_int ()
2359 {
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 if test "$cross_compiling" = yes; then
2362 # Depending upon the size, compute the lo and hi bounds.
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2365 $4
2366 int
2367 main ()
2368 {
2369 static int test_array [1 - 2 * !(($2) >= 0)];
2370 test_array [0] = 0;
2371 return test_array [0];
2372
2373 ;
2374 return 0;
2375 }
2376 _ACEOF
2377 if ac_fn_c_try_compile "$LINENO"; then :
2378 ac_lo=0 ac_mid=0
2379 while :; do
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2382 $4
2383 int
2384 main ()
2385 {
2386 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2387 test_array [0] = 0;
2388 return test_array [0];
2389
2390 ;
2391 return 0;
2392 }
2393 _ACEOF
2394 if ac_fn_c_try_compile "$LINENO"; then :
2395 ac_hi=$ac_mid; break
2396 else
2397 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2398 if test $ac_lo -le $ac_mid; then
2399 ac_lo= ac_hi=
2400 break
2401 fi
2402 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 done
2406 else
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2409 $4
2410 int
2411 main ()
2412 {
2413 static int test_array [1 - 2 * !(($2) < 0)];
2414 test_array [0] = 0;
2415 return test_array [0];
2416
2417 ;
2418 return 0;
2419 }
2420 _ACEOF
2421 if ac_fn_c_try_compile "$LINENO"; then :
2422 ac_hi=-1 ac_mid=-1
2423 while :; do
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2426 $4
2427 int
2428 main ()
2429 {
2430 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2431 test_array [0] = 0;
2432 return test_array [0];
2433
2434 ;
2435 return 0;
2436 }
2437 _ACEOF
2438 if ac_fn_c_try_compile "$LINENO"; then :
2439 ac_lo=$ac_mid; break
2440 else
2441 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2442 if test $ac_mid -le $ac_hi; then
2443 ac_lo= ac_hi=
2444 break
2445 fi
2446 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2447 fi
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 done
2450 else
2451 ac_lo= ac_hi=
2452 fi
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 fi
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 # Binary search between lo and hi bounds.
2457 while test "x$ac_lo" != "x$ac_hi"; do
2458 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2461 $4
2462 int
2463 main ()
2464 {
2465 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2466 test_array [0] = 0;
2467 return test_array [0];
2468
2469 ;
2470 return 0;
2471 }
2472 _ACEOF
2473 if ac_fn_c_try_compile "$LINENO"; then :
2474 ac_hi=$ac_mid
2475 else
2476 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2477 fi
2478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 done
2480 case $ac_lo in #((
2481 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2482 '') ac_retval=1 ;;
2483 esac
2484 else
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2487 $4
2488 static long int longval () { return $2; }
2489 static unsigned long int ulongval () { return $2; }
2490 #include <stdio.h>
2491 #include <stdlib.h>
2492 int
2493 main ()
2494 {
2495
2496 FILE *f = fopen ("conftest.val", "w");
2497 if (! f)
2498 return 1;
2499 if (($2) < 0)
2500 {
2501 long int i = longval ();
2502 if (i != ($2))
2503 return 1;
2504 fprintf (f, "%ld", i);
2505 }
2506 else
2507 {
2508 unsigned long int i = ulongval ();
2509 if (i != ($2))
2510 return 1;
2511 fprintf (f, "%lu", i);
2512 }
2513 /* Do not output a trailing newline, as this causes \r\n confusion
2514 on some platforms. */
2515 return ferror (f) || fclose (f) != 0;
2516
2517 ;
2518 return 0;
2519 }
2520 _ACEOF
2521 if ac_fn_c_try_run "$LINENO"; then :
2522 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2523 else
2524 ac_retval=1
2525 fi
2526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2527 conftest.$ac_objext conftest.beam conftest.$ac_ext
2528 rm -f conftest.val
2529
2530 fi
2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532 as_fn_set_status $ac_retval
2533
2534 } # ac_fn_c_compute_int
2535
2536 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2537 # ---------------------------------------------
2538 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2539 # accordingly.
2540 ac_fn_c_check_decl ()
2541 {
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 as_decl_name=`echo $2|sed 's/ *(.*//'`
2544 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2546 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2547 if eval \${$3+:} false; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2552 $4
2553 int
2554 main ()
2555 {
2556 #ifndef $as_decl_name
2557 #ifdef __cplusplus
2558 (void) $as_decl_use;
2559 #else
2560 (void) $as_decl_name;
2561 #endif
2562 #endif
2563
2564 ;
2565 return 0;
2566 }
2567 _ACEOF
2568 if ac_fn_c_try_compile "$LINENO"; then :
2569 eval "$3=yes"
2570 else
2571 eval "$3=no"
2572 fi
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 fi
2575 eval ac_res=\$$3
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2577 $as_echo "$ac_res" >&6; }
2578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2579
2580 } # ac_fn_c_check_decl
2581
2582 # ac_fn_cxx_check_func LINENO FUNC VAR
2583 # ------------------------------------
2584 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2585 ac_fn_cxx_check_func ()
2586 {
2587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2589 $as_echo_n "checking for $2... " >&6; }
2590 if eval \${$3+:} false; then :
2591 $as_echo_n "(cached) " >&6
2592 else
2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h. */
2595 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2597 #define $2 innocuous_$2
2598
2599 /* System header to define __stub macros and hopefully few prototypes,
2600 which can conflict with char $2 (); below.
2601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2602 <limits.h> exists even on freestanding compilers. */
2603
2604 #ifdef __STDC__
2605 # include <limits.h>
2606 #else
2607 # include <assert.h>
2608 #endif
2609
2610 #undef $2
2611
2612 /* Override any GCC internal prototype to avoid an error.
2613 Use char because int might match the return type of a GCC
2614 builtin and then its argument prototype would still apply. */
2615 #ifdef __cplusplus
2616 extern "C"
2617 #endif
2618 char $2 ();
2619 /* The GNU C library defines this for functions which it implements
2620 to always fail with ENOSYS. Some functions are actually named
2621 something starting with __ and the normal name is an alias. */
2622 #if defined __stub_$2 || defined __stub___$2
2623 choke me
2624 #endif
2625
2626 int
2627 main ()
2628 {
2629 return $2 ();
2630 ;
2631 return 0;
2632 }
2633 _ACEOF
2634 if ac_fn_cxx_try_link "$LINENO"; then :
2635 eval "$3=yes"
2636 else
2637 eval "$3=no"
2638 fi
2639 rm -f core conftest.err conftest.$ac_objext \
2640 conftest$ac_exeext conftest.$ac_ext
2641 fi
2642 eval ac_res=\$$3
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2644 $as_echo "$ac_res" >&6; }
2645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2646
2647 } # ac_fn_cxx_check_func
2648 cat >config.log <<_ACEOF
2649 This file contains any messages produced by compilers while
2650 running configure, to aid debugging if configure makes a mistake.
2651
2652 It was created by dpkg $as_me 1.18.25, which was
2653 generated by GNU Autoconf 2.69. Invocation command line was
2654
2655 $ $0 $@
2656
2657 _ACEOF
2658 exec 5>>config.log
2659 {
2660 cat <<_ASUNAME
2661 ## --------- ##
2662 ## Platform. ##
2663 ## --------- ##
2664
2665 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2666 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2667 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2668 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2669 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2670
2671 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2672 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2673
2674 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2675 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2676 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2677 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2678 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2679 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2680 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2681
2682 _ASUNAME
2683
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 $as_echo "PATH: $as_dir"
2690 done
2691 IFS=$as_save_IFS
2692
2693 } >&5
2694
2695 cat >&5 <<_ACEOF
2696
2697
2698 ## ----------- ##
2699 ## Core tests. ##
2700 ## ----------- ##
2701
2702 _ACEOF
2703
2704
2705 # Keep a trace of the command line.
2706 # Strip out --no-create and --no-recursion so they do not pile up.
2707 # Strip out --silent because we don't want to record it for future runs.
2708 # Also quote any args containing shell meta-characters.
2709 # Make two passes to allow for proper duplicate-argument suppression.
2710 ac_configure_args=
2711 ac_configure_args0=
2712 ac_configure_args1=
2713 ac_must_keep_next=false
2714 for ac_pass in 1 2
2715 do
2716 for ac_arg
2717 do
2718 case $ac_arg in
2719 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2721 | -silent | --silent | --silen | --sile | --sil)
2722 continue ;;
2723 *\'*)
2724 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2725 esac
2726 case $ac_pass in
2727 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2728 2)
2729 as_fn_append ac_configure_args1 " '$ac_arg'"
2730 if test $ac_must_keep_next = true; then
2731 ac_must_keep_next=false # Got value, back to normal.
2732 else
2733 case $ac_arg in
2734 *=* | --config-cache | -C | -disable-* | --disable-* \
2735 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2736 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2737 | -with-* | --with-* | -without-* | --without-* | --x)
2738 case "$ac_configure_args0 " in
2739 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2740 esac
2741 ;;
2742 -* ) ac_must_keep_next=true ;;
2743 esac
2744 fi
2745 as_fn_append ac_configure_args " '$ac_arg'"
2746 ;;
2747 esac
2748 done
2749 done
2750 { ac_configure_args0=; unset ac_configure_args0;}
2751 { ac_configure_args1=; unset ac_configure_args1;}
2752
2753 # When interrupted or exit'd, cleanup temporary files, and complete
2754 # config.log. We remove comments because anyway the quotes in there
2755 # would cause problems or look ugly.
2756 # WARNING: Use '\'' to represent an apostrophe within the trap.
2757 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2758 trap 'exit_status=$?
2759 # Save into config.log some information that might help in debugging.
2760 {
2761 echo
2762
2763 $as_echo "## ---------------- ##
2764 ## Cache variables. ##
2765 ## ---------------- ##"
2766 echo
2767 # The following way of writing the cache mishandles newlines in values,
2768 (
2769 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2770 eval ac_val=\$$ac_var
2771 case $ac_val in #(
2772 *${as_nl}*)
2773 case $ac_var in #(
2774 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2775 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2776 esac
2777 case $ac_var in #(
2778 _ | IFS | as_nl) ;; #(
2779 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2780 *) { eval $ac_var=; unset $ac_var;} ;;
2781 esac ;;
2782 esac
2783 done
2784 (set) 2>&1 |
2785 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2786 *${as_nl}ac_space=\ *)
2787 sed -n \
2788 "s/'\''/'\''\\\\'\'''\''/g;
2789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2790 ;; #(
2791 *)
2792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2793 ;;
2794 esac |
2795 sort
2796 )
2797 echo
2798
2799 $as_echo "## ----------------- ##
2800 ## Output variables. ##
2801 ## ----------------- ##"
2802 echo
2803 for ac_var in $ac_subst_vars
2804 do
2805 eval ac_val=\$$ac_var
2806 case $ac_val in
2807 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2808 esac
2809 $as_echo "$ac_var='\''$ac_val'\''"
2810 done | sort
2811 echo
2812
2813 if test -n "$ac_subst_files"; then
2814 $as_echo "## ------------------- ##
2815 ## File substitutions. ##
2816 ## ------------------- ##"
2817 echo
2818 for ac_var in $ac_subst_files
2819 do
2820 eval ac_val=\$$ac_var
2821 case $ac_val in
2822 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2823 esac
2824 $as_echo "$ac_var='\''$ac_val'\''"
2825 done | sort
2826 echo
2827 fi
2828
2829 if test -s confdefs.h; then
2830 $as_echo "## ----------- ##
2831 ## confdefs.h. ##
2832 ## ----------- ##"
2833 echo
2834 cat confdefs.h
2835 echo
2836 fi
2837 test "$ac_signal" != 0 &&
2838 $as_echo "$as_me: caught signal $ac_signal"
2839 $as_echo "$as_me: exit $exit_status"
2840 } >&5
2841 rm -f core *.core core.conftest.* &&
2842 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2843 exit $exit_status
2844 ' 0
2845 for ac_signal in 1 2 13 15; do
2846 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2847 done
2848 ac_signal=0
2849
2850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2851 rm -f -r conftest* confdefs.h
2852
2853 $as_echo "/* confdefs.h */" > confdefs.h
2854
2855 # Predefined preprocessor variables.
2856
2857 cat >>confdefs.h <<_ACEOF
2858 #define PACKAGE_NAME "$PACKAGE_NAME"
2859 _ACEOF
2860
2861 cat >>confdefs.h <<_ACEOF
2862 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2863 _ACEOF
2864
2865 cat >>confdefs.h <<_ACEOF
2866 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2867 _ACEOF
2868
2869 cat >>confdefs.h <<_ACEOF
2870 #define PACKAGE_STRING "$PACKAGE_STRING"
2871 _ACEOF
2872
2873 cat >>confdefs.h <<_ACEOF
2874 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2875 _ACEOF
2876
2877 cat >>confdefs.h <<_ACEOF
2878 #define PACKAGE_URL "$PACKAGE_URL"
2879 _ACEOF
2880
2881
2882 # Let the site file select an alternate cache file if it wants to.
2883 # Prefer an explicitly selected file to automatically selected ones.
2884 ac_site_file1=NONE
2885 ac_site_file2=NONE
2886 if test -n "$CONFIG_SITE"; then
2887 # We do not want a PATH search for config.site.
2888 case $CONFIG_SITE in #((
2889 -*) ac_site_file1=./$CONFIG_SITE;;
2890 */*) ac_site_file1=$CONFIG_SITE;;
2891 *) ac_site_file1=./$CONFIG_SITE;;
2892 esac
2893 elif test "x$prefix" != xNONE; then
2894 ac_site_file1=$prefix/share/config.site
2895 ac_site_file2=$prefix/etc/config.site
2896 else
2897 ac_site_file1=$ac_default_prefix/share/config.site
2898 ac_site_file2=$ac_default_prefix/etc/config.site
2899 fi
2900 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2901 do
2902 test "x$ac_site_file" = xNONE && continue
2903 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2905 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2906 sed 's/^/| /' "$ac_site_file" >&5
2907 . "$ac_site_file" \
2908 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910 as_fn_error $? "failed to load site script $ac_site_file
2911 See \`config.log' for more details" "$LINENO" 5; }
2912 fi
2913 done
2914
2915 if test -r "$cache_file"; then
2916 # Some versions of bash will fail to source /dev/null (special files
2917 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2918 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2920 $as_echo "$as_me: loading cache $cache_file" >&6;}
2921 case $cache_file in
2922 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2923 *) . "./$cache_file";;
2924 esac
2925 fi
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2928 $as_echo "$as_me: creating cache $cache_file" >&6;}
2929 >$cache_file
2930 fi
2931
2932 gt_needs="$gt_needs "
2933 # Check that the precious variables saved in the cache have kept the same
2934 # value.
2935 ac_cache_corrupted=false
2936 for ac_var in $ac_precious_vars; do
2937 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2938 eval ac_new_set=\$ac_env_${ac_var}_set
2939 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2940 eval ac_new_val=\$ac_env_${ac_var}_value
2941 case $ac_old_set,$ac_new_set in
2942 set,)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2944 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2945 ac_cache_corrupted=: ;;
2946 ,set)
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2948 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2950 ,);;
2951 *)
2952 if test "x$ac_old_val" != "x$ac_new_val"; then
2953 # differences in whitespace do not lead to failure.
2954 ac_old_val_w=`echo x $ac_old_val`
2955 ac_new_val_w=`echo x $ac_new_val`
2956 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2958 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2959 ac_cache_corrupted=:
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2962 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2963 eval $ac_var=\$ac_old_val
2964 fi
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2966 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2968 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2969 fi;;
2970 esac
2971 # Pass precious variables to config.status.
2972 if test "$ac_new_set" = set; then
2973 case $ac_new_val in
2974 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2975 *) ac_arg=$ac_var=$ac_new_val ;;
2976 esac
2977 case " $ac_configure_args " in
2978 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2979 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2980 esac
2981 fi
2982 done
2983 if $ac_cache_corrupted; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2987 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2988 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2989 fi
2990 ## -------------------- ##
2991 ## Main body of script. ##
2992 ## -------------------- ##
2993
2994 ac_ext=c
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999
3000
3001 PACKAGE_COPYRIGHT_HOLDER='Dpkg Developers'
3002
3003
3004
3005 ac_aux_dir=
3006 for ac_dir in build-aux "$srcdir"/build-aux; do
3007 if test -f "$ac_dir/install-sh"; then
3008 ac_aux_dir=$ac_dir
3009 ac_install_sh="$ac_aux_dir/install-sh -c"
3010 break
3011 elif test -f "$ac_dir/install.sh"; then
3012 ac_aux_dir=$ac_dir
3013 ac_install_sh="$ac_aux_dir/install.sh -c"
3014 break
3015 elif test -f "$ac_dir/shtool"; then
3016 ac_aux_dir=$ac_dir
3017 ac_install_sh="$ac_aux_dir/shtool install -c"
3018 break
3019 fi
3020 done
3021 if test -z "$ac_aux_dir"; then
3022 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3023 fi
3024
3025 # These three variables are undocumented and unsupported,
3026 # and are intended to be withdrawn in a future Autoconf release.
3027 # They can cause serious problems if a builder's source tree is in a directory
3028 # whose full name contains unusual characters.
3029 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3030 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3031 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3032
3033
3034
3035 # Expand $ac_aux_dir to an absolute path.
3036 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3037
3038 ac_ext=c
3039 ac_cpp='$CPP $CPPFLAGS'
3040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043 if test -n "$ac_tool_prefix"; then
3044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3045 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_CC+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065 done
3066 done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 CC=$ac_cv_prog_CC
3072 if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080
3081 fi
3082 if test -z "$ac_cv_prog_CC"; then
3083 ac_ct_CC=$CC
3084 # Extract the first word of "gcc", so it can be a program name with args.
3085 set dummy gcc; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 if test -n "$ac_ct_CC"; then
3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_ac_ct_CC="gcc"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105 done
3106 done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112 if test -n "$ac_ct_CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114 $as_echo "$ac_ct_CC" >&6; }
3115 else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120 if test "x$ac_ct_CC" = x; then
3121 CC=""
3122 else
3123 case $cross_compiling:$ac_tool_warned in
3124 yes:)
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127 ac_tool_warned=yes ;;
3128 esac
3129 CC=$ac_ct_CC
3130 fi
3131 else
3132 CC="$ac_cv_prog_CC"
3133 fi
3134
3135 if test -z "$CC"; then
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}cc; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_CC="${ac_tool_prefix}cc"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174 fi
3175 fi
3176 if test -z "$CC"; then
3177 # Extract the first word of "cc", so it can be a program name with args.
3178 set dummy cc; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_prog_CC+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3186 else
3187 ac_prog_rejected=no
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3190 do
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3196 ac_prog_rejected=yes
3197 continue
3198 fi
3199 ac_cv_prog_CC="cc"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203 done
3204 done
3205 IFS=$as_save_IFS
3206
3207 if test $ac_prog_rejected = yes; then
3208 # We found a bogon in the path, so make sure we never use it.
3209 set dummy $ac_cv_prog_CC
3210 shift
3211 if test $# != 0; then
3212 # We chose a different compiler from the bogus one.
3213 # However, it has the same basename, so the bogon will be chosen
3214 # first if we set CC to just the basename; use the full file name.
3215 shift
3216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3217 fi
3218 fi
3219 fi
3220 fi
3221 CC=$ac_cv_prog_CC
3222 if test -n "$CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230
3231 fi
3232 if test -z "$CC"; then
3233 if test -n "$ac_tool_prefix"; then
3234 for ac_prog in cl.exe
3235 do
3236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257 done
3258 done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 CC=$ac_cv_prog_CC
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273 test -n "$CC" && break
3274 done
3275 fi
3276 if test -z "$CC"; then
3277 ac_ct_CC=$CC
3278 for ac_prog in cl.exe
3279 do
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281 set dummy $ac_prog; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 if test -n "$ac_ct_CC"; then
3288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3292 do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297 ac_cv_prog_ac_ct_CC="$ac_prog"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3300 fi
3301 done
3302 done
3303 IFS=$as_save_IFS
3304
3305 fi
3306 fi
3307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3308 if test -n "$ac_ct_CC"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3310 $as_echo "$ac_ct_CC" >&6; }
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 fi
3315
3316
3317 test -n "$ac_ct_CC" && break
3318 done
3319
3320 if test "x$ac_ct_CC" = x; then
3321 CC=""
3322 else
3323 case $cross_compiling:$ac_tool_warned in
3324 yes:)
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3327 ac_tool_warned=yes ;;
3328 esac
3329 CC=$ac_ct_CC
3330 fi
3331 fi
3332
3333 fi
3334
3335
3336 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error $? "no acceptable C compiler found in \$PATH
3339 See \`config.log' for more details" "$LINENO" 5; }
3340
3341 # Provide some information about the compiler.
3342 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3343 set X $ac_compile
3344 ac_compiler=$2
3345 for ac_option in --version -v -V -qversion; do
3346 { { ac_try="$ac_compiler $ac_option >&5"
3347 case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3354 ac_status=$?
3355 if test -s conftest.err; then
3356 sed '10a\
3357 ... rest of stderr output deleted ...
3358 10q' conftest.err >conftest.er1
3359 cat conftest.er1 >&5
3360 fi
3361 rm -f conftest.er1 conftest.err
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }
3364 done
3365
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368
3369 int
3370 main ()
3371 {
3372
3373 ;
3374 return 0;
3375 }
3376 _ACEOF
3377 ac_clean_files_save=$ac_clean_files
3378 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3379 # Try to create an executable without -o first, disregard a.out.
3380 # It will help us diagnose broken compilers, and finding out an intuition
3381 # of exeext.
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3383 $as_echo_n "checking whether the C compiler works... " >&6; }
3384 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3385
3386 # The possible output files:
3387 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3388
3389 ac_rmfiles=
3390 for ac_file in $ac_files
3391 do
3392 case $ac_file in
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3394 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3395 esac
3396 done
3397 rm -f $ac_rmfiles
3398
3399 if { { ac_try="$ac_link_default"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_link_default") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }; then :
3410 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3411 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3412 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3413 # so that the user can short-circuit this test for compilers unknown to
3414 # Autoconf.
3415 for ac_file in $ac_files ''
3416 do
3417 test -f "$ac_file" || continue
3418 case $ac_file in
3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3420 ;;
3421 [ab].out )
3422 # We found the default executable, but exeext='' is most
3423 # certainly right.
3424 break;;
3425 *.* )
3426 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3427 then :; else
3428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3429 fi
3430 # We set ac_cv_exeext here because the later test for it is not
3431 # safe: cross compilers may not add the suffix if given an `-o'
3432 # argument, so we may need to know it at that point already.
3433 # Even if this section looks crufty: it has the advantage of
3434 # actually working.
3435 break;;
3436 * )
3437 break;;
3438 esac
3439 done
3440 test "$ac_cv_exeext" = no && ac_cv_exeext=
3441
3442 else
3443 ac_file=''
3444 fi
3445 if test -z "$ac_file"; then :
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 $as_echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error 77 "C compiler cannot create executables
3454 See \`config.log' for more details" "$LINENO" 5; }
3455 else
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3457 $as_echo "yes" >&6; }
3458 fi
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3460 $as_echo_n "checking for C compiler default output file name... " >&6; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3462 $as_echo "$ac_file" >&6; }
3463 ac_exeext=$ac_cv_exeext
3464
3465 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3466 ac_clean_files=$ac_clean_files_save
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3468 $as_echo_n "checking for suffix of executables... " >&6; }
3469 if { { ac_try="$ac_link"
3470 case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_link") 2>&5
3477 ac_status=$?
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; then :
3480 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3481 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3482 # work properly (i.e., refer to `conftest.exe'), while it won't with
3483 # `rm'.
3484 for ac_file in conftest.exe conftest conftest.*; do
3485 test -f "$ac_file" || continue
3486 case $ac_file in
3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3488 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3489 break;;
3490 * ) break;;
3491 esac
3492 done
3493 else
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3497 See \`config.log' for more details" "$LINENO" 5; }
3498 fi
3499 rm -f conftest conftest$ac_cv_exeext
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3501 $as_echo "$ac_cv_exeext" >&6; }
3502
3503 rm -f conftest.$ac_ext
3504 EXEEXT=$ac_cv_exeext
3505 ac_exeext=$EXEEXT
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3508 #include <stdio.h>
3509 int
3510 main ()
3511 {
3512 FILE *f = fopen ("conftest.out", "w");
3513 return ferror (f) || fclose (f) != 0;
3514
3515 ;
3516 return 0;
3517 }
3518 _ACEOF
3519 ac_clean_files="$ac_clean_files conftest.out"
3520 # Check that the compiler produces executables we can run. If not, either
3521 # the compiler is broken, or we cross compile.
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3523 $as_echo_n "checking whether we are cross compiling... " >&6; }
3524 if test "$cross_compiling" != yes; then
3525 { { ac_try="$ac_link"
3526 case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_link") 2>&5
3533 ac_status=$?
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }
3536 if { ac_try='./conftest$ac_cv_exeext'
3537 { { case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_try") 2>&5
3544 ac_status=$?
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }; }; then
3547 cross_compiling=no
3548 else
3549 if test "$cross_compiling" = maybe; then
3550 cross_compiling=yes
3551 else
3552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554 as_fn_error $? "cannot run C compiled programs.
3555 If you meant to cross compile, use \`--host'.
3556 See \`config.log' for more details" "$LINENO" 5; }
3557 fi
3558 fi
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3561 $as_echo "$cross_compiling" >&6; }
3562
3563 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3564 ac_clean_files=$ac_clean_files_save
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3566 $as_echo_n "checking for suffix of object files... " >&6; }
3567 if ${ac_cv_objext+:} false; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572
3573 int
3574 main ()
3575 {
3576
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 rm -f conftest.o conftest.obj
3582 if { { ac_try="$ac_compile"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_compile") 2>&5
3590 ac_status=$?
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }; then :
3593 for ac_file in conftest.o conftest.obj conftest.*; do
3594 test -f "$ac_file" || continue;
3595 case $ac_file in
3596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3598 break;;
3599 esac
3600 done
3601 else
3602 $as_echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607 as_fn_error $? "cannot compute suffix of object files: cannot compile
3608 See \`config.log' for more details" "$LINENO" 5; }
3609 fi
3610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3611 fi
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3613 $as_echo "$ac_cv_objext" >&6; }
3614 OBJEXT=$ac_cv_objext
3615 ac_objext=$OBJEXT
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3617 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3618 if ${ac_cv_c_compiler_gnu+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623
3624 int
3625 main ()
3626 {
3627 #ifndef __GNUC__
3628 choke me
3629 #endif
3630
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 if ac_fn_c_try_compile "$LINENO"; then :
3636 ac_compiler_gnu=yes
3637 else
3638 ac_compiler_gnu=no
3639 fi
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3642
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3645 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646 if test $ac_compiler_gnu = yes; then
3647 GCC=yes
3648 else
3649 GCC=
3650 fi
3651 ac_test_CFLAGS=${CFLAGS+set}
3652 ac_save_CFLAGS=$CFLAGS
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3654 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3655 if ${ac_cv_prog_cc_g+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 ac_save_c_werror_flag=$ac_c_werror_flag
3659 ac_c_werror_flag=yes
3660 ac_cv_prog_cc_g=no
3661 CFLAGS="-g"
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664
3665 int
3666 main ()
3667 {
3668
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 if ac_fn_c_try_compile "$LINENO"; then :
3674 ac_cv_prog_cc_g=yes
3675 else
3676 CFLAGS=""
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679
3680 int
3681 main ()
3682 {
3683
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 if ac_fn_c_try_compile "$LINENO"; then :
3689
3690 else
3691 ac_c_werror_flag=$ac_save_c_werror_flag
3692 CFLAGS="-g"
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3695
3696 int
3697 main ()
3698 {
3699
3700 ;
3701 return 0;
3702 }
3703 _ACEOF
3704 if ac_fn_c_try_compile "$LINENO"; then :
3705 ac_cv_prog_cc_g=yes
3706 fi
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 fi
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_c_werror_flag=$ac_save_c_werror_flag
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3715 $as_echo "$ac_cv_prog_cc_g" >&6; }
3716 if test "$ac_test_CFLAGS" = set; then
3717 CFLAGS=$ac_save_CFLAGS
3718 elif test $ac_cv_prog_cc_g = yes; then
3719 if test "$GCC" = yes; then
3720 CFLAGS="-g -O2"
3721 else
3722 CFLAGS="-g"
3723 fi
3724 else
3725 if test "$GCC" = yes; then
3726 CFLAGS="-O2"
3727 else
3728 CFLAGS=
3729 fi
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3732 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3733 if ${ac_cv_prog_cc_c89+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 ac_cv_prog_cc_c89=no
3737 ac_save_CC=$CC
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #include <stdarg.h>
3741 #include <stdio.h>
3742 struct stat;
3743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3744 struct buf { int x; };
3745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3746 static char *e (p, i)
3747 char **p;
3748 int i;
3749 {
3750 return p[i];
3751 }
3752 static char *f (char * (*g) (char **, int), char **p, ...)
3753 {
3754 char *s;
3755 va_list v;
3756 va_start (v,p);
3757 s = g (p, va_arg (v,int));
3758 va_end (v);
3759 return s;
3760 }
3761
3762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3763 function prototypes and stuff, but not '\xHH' hex character constants.
3764 These don't provoke an error unfortunately, instead are silently treated
3765 as 'x'. The following induces an error, until -std is added to get
3766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3767 array size at least. It's necessary to write '\x00'==0 to get something
3768 that's true only with -std. */
3769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3770
3771 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3772 inside strings and character constants. */
3773 #define FOO(x) 'x'
3774 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3775
3776 int test (int i, double x);
3777 struct s1 {int (*f) (int a);};
3778 struct s2 {int (*f) (double a);};
3779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3780 int argc;
3781 char **argv;
3782 int
3783 main ()
3784 {
3785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3791 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3792 do
3793 CC="$ac_save_CC $ac_arg"
3794 if ac_fn_c_try_compile "$LINENO"; then :
3795 ac_cv_prog_cc_c89=$ac_arg
3796 fi
3797 rm -f core conftest.err conftest.$ac_objext
3798 test "x$ac_cv_prog_cc_c89" != "xno" && break
3799 done
3800 rm -f conftest.$ac_ext
3801 CC=$ac_save_CC
3802
3803 fi
3804 # AC_CACHE_VAL
3805 case "x$ac_cv_prog_cc_c89" in
3806 x)
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3808 $as_echo "none needed" >&6; } ;;
3809 xno)
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3811 $as_echo "unsupported" >&6; } ;;
3812 *)
3813 CC="$CC $ac_cv_prog_cc_c89"
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3815 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3816 esac
3817 if test "x$ac_cv_prog_cc_c89" != xno; then :
3818
3819 fi
3820
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826
3827 ac_ext=c
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3833 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3834 if ${am_cv_prog_cc_c_o+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839
3840 int
3841 main ()
3842 {
3843
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 # Make sure it works both with $CC and with simple cc.
3849 # Following AC_PROG_CC_C_O, we do the test twice because some
3850 # compilers refuse to overwrite an existing .o file with -o,
3851 # though they will create one.
3852 am_cv_prog_cc_c_o=yes
3853 for am_i in 1 2; do
3854 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3855 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } \
3859 && test -f conftest2.$ac_objext; then
3860 : OK
3861 else
3862 am_cv_prog_cc_c_o=no
3863 break
3864 fi
3865 done
3866 rm -f core conftest*
3867 unset am_i
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3870 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3871 if test "$am_cv_prog_cc_c_o" != yes; then
3872 # Losing compiler, so override with the script.
3873 # FIXME: It is wrong to rewrite CC.
3874 # But if we don't then we get into trouble of one sort or another.
3875 # A longer-term fix would be to have automake use am__CC in this case,
3876 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3877 CC="$am_aux_dir/compile $CC"
3878 fi
3879 ac_ext=c
3880 ac_cpp='$CPP $CPPFLAGS'
3881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884
3885
3886
3887 ac_ext=c
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3893 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3894 # On Suns, sometimes $CPP names a directory.
3895 if test -n "$CPP" && test -d "$CPP"; then
3896 CPP=
3897 fi
3898 if test -z "$CPP"; then
3899 if ${ac_cv_prog_CPP+:} false; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 # Double quotes because CPP needs to be expanded
3903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3904 do
3905 ac_preproc_ok=false
3906 for ac_c_preproc_warn_flag in '' yes
3907 do
3908 # Use a header file that comes with gcc, so configuring glibc
3909 # with a fresh cross-compiler works.
3910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 # <limits.h> exists even on freestanding compilers.
3912 # On the NeXT, cc -E runs the code through the compiler's parser,
3913 # not just through cpp. "Syntax error" is here to catch this case.
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3916 #ifdef __STDC__
3917 # include <limits.h>
3918 #else
3919 # include <assert.h>
3920 #endif
3921 Syntax error
3922 _ACEOF
3923 if ac_fn_c_try_cpp "$LINENO"; then :
3924
3925 else
3926 # Broken: fails on valid input.
3927 continue
3928 fi
3929 rm -f conftest.err conftest.i conftest.$ac_ext
3930
3931 # OK, works on sane cases. Now check whether nonexistent headers
3932 # can be detected and how.
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3935 #include <ac_nonexistent.h>
3936 _ACEOF
3937 if ac_fn_c_try_cpp "$LINENO"; then :
3938 # Broken: success on invalid input.
3939 continue
3940 else
3941 # Passes both tests.
3942 ac_preproc_ok=:
3943 break
3944 fi
3945 rm -f conftest.err conftest.i conftest.$ac_ext
3946
3947 done
3948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3949 rm -f conftest.i conftest.err conftest.$ac_ext
3950 if $ac_preproc_ok; then :
3951 break
3952 fi
3953
3954 done
3955 ac_cv_prog_CPP=$CPP
3956
3957 fi
3958 CPP=$ac_cv_prog_CPP
3959 else
3960 ac_cv_prog_CPP=$CPP
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3963 $as_echo "$CPP" >&6; }
3964 ac_preproc_ok=false
3965 for ac_c_preproc_warn_flag in '' yes
3966 do
3967 # Use a header file that comes with gcc, so configuring glibc
3968 # with a fresh cross-compiler works.
3969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3970 # <limits.h> exists even on freestanding compilers.
3971 # On the NeXT, cc -E runs the code through the compiler's parser,
3972 # not just through cpp. "Syntax error" is here to catch this case.
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975 #ifdef __STDC__
3976 # include <limits.h>
3977 #else
3978 # include <assert.h>
3979 #endif
3980 Syntax error
3981 _ACEOF
3982 if ac_fn_c_try_cpp "$LINENO"; then :
3983
3984 else
3985 # Broken: fails on valid input.
3986 continue
3987 fi
3988 rm -f conftest.err conftest.i conftest.$ac_ext
3989
3990 # OK, works on sane cases. Now check whether nonexistent headers
3991 # can be detected and how.
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994 #include <ac_nonexistent.h>
3995 _ACEOF
3996 if ac_fn_c_try_cpp "$LINENO"; then :
3997 # Broken: success on invalid input.
3998 continue
3999 else
4000 # Passes both tests.
4001 ac_preproc_ok=:
4002 break
4003 fi
4004 rm -f conftest.err conftest.i conftest.$ac_ext
4005
4006 done
4007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4008 rm -f conftest.i conftest.err conftest.$ac_ext
4009 if $ac_preproc_ok; then :
4010
4011 else
4012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4015 See \`config.log' for more details" "$LINENO" 5; }
4016 fi
4017
4018 ac_ext=c
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4026 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4027 if ${ac_cv_path_GREP+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 if test -z "$GREP"; then
4031 ac_path_GREP_found=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4035 do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_prog in grep ggrep; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4041 as_fn_executable_p "$ac_path_GREP" || continue
4042 # Check for GNU ac_path_GREP and select it if it is found.
4043 # Check for GNU $ac_path_GREP
4044 case `"$ac_path_GREP" --version 2>&1` in
4045 *GNU*)
4046 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4047 *)
4048 ac_count=0
4049 $as_echo_n 0123456789 >"conftest.in"
4050 while :
4051 do
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 $as_echo 'GREP' >> "conftest.nl"
4056 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058 as_fn_arith $ac_count + 1 && ac_count=$as_val
4059 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_GREP="$ac_path_GREP"
4062 ac_path_GREP_max=$ac_count
4063 fi
4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4066 done
4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068 esac
4069
4070 $ac_path_GREP_found && break 3
4071 done
4072 done
4073 done
4074 IFS=$as_save_IFS
4075 if test -z "$ac_cv_path_GREP"; then
4076 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4077 fi
4078 else
4079 ac_cv_path_GREP=$GREP
4080 fi
4081
4082 fi
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4084 $as_echo "$ac_cv_path_GREP" >&6; }
4085 GREP="$ac_cv_path_GREP"
4086
4087
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4089 $as_echo_n "checking for egrep... " >&6; }
4090 if ${ac_cv_path_EGREP+:} false; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4094 then ac_cv_path_EGREP="$GREP -E"
4095 else
4096 if test -z "$EGREP"; then
4097 ac_path_EGREP_found=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4101 do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_prog in egrep; do
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4107 as_fn_executable_p "$ac_path_EGREP" || continue
4108 # Check for GNU ac_path_EGREP and select it if it is found.
4109 # Check for GNU $ac_path_EGREP
4110 case `"$ac_path_EGREP" --version 2>&1` in
4111 *GNU*)
4112 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4113 *)
4114 ac_count=0
4115 $as_echo_n 0123456789 >"conftest.in"
4116 while :
4117 do
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
4121 $as_echo 'EGREP' >> "conftest.nl"
4122 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124 as_fn_arith $ac_count + 1 && ac_count=$as_val
4125 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_EGREP="$ac_path_EGREP"
4128 ac_path_EGREP_max=$ac_count
4129 fi
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4132 done
4133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134 esac
4135
4136 $ac_path_EGREP_found && break 3
4137 done
4138 done
4139 done
4140 IFS=$as_save_IFS
4141 if test -z "$ac_cv_path_EGREP"; then
4142 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4143 fi
4144 else
4145 ac_cv_path_EGREP=$EGREP
4146 fi
4147
4148 fi
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4151 $as_echo "$ac_cv_path_EGREP" >&6; }
4152 EGREP="$ac_cv_path_EGREP"
4153
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4156 $as_echo_n "checking for ANSI C header files... " >&6; }
4157 if ${ac_cv_header_stdc+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 #include <stdlib.h>
4163 #include <stdarg.h>
4164 #include <string.h>
4165 #include <float.h>
4166
4167 int
4168 main ()
4169 {
4170
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_cv_header_stdc=yes
4177 else
4178 ac_cv_header_stdc=no
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181
4182 if test $ac_cv_header_stdc = yes; then
4183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <string.h>
4187
4188 _ACEOF
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 $EGREP "memchr" >/dev/null 2>&1; then :
4191
4192 else
4193 ac_cv_header_stdc=no
4194 fi
4195 rm -f conftest*
4196
4197 fi
4198
4199 if test $ac_cv_header_stdc = yes; then
4200 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203 #include <stdlib.h>
4204
4205 _ACEOF
4206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4207 $EGREP "free" >/dev/null 2>&1; then :
4208
4209 else
4210 ac_cv_header_stdc=no
4211 fi
4212 rm -f conftest*
4213
4214 fi
4215
4216 if test $ac_cv_header_stdc = yes; then
4217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4218 if test "$cross_compiling" = yes; then :
4219 :
4220 else
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4223 #include <ctype.h>
4224 #include <stdlib.h>
4225 #if ((' ' & 0x0FF) == 0x020)
4226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4228 #else
4229 # define ISLOWER(c) \
4230 (('a' <= (c) && (c) <= 'i') \
4231 || ('j' <= (c) && (c) <= 'r') \
4232 || ('s' <= (c) && (c) <= 'z'))
4233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4234 #endif
4235
4236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4237 int
4238 main ()
4239 {
4240 int i;
4241 for (i = 0; i < 256; i++)
4242 if (XOR (islower (i), ISLOWER (i))
4243 || toupper (i) != TOUPPER (i))
4244 return 2;
4245 return 0;
4246 }
4247 _ACEOF
4248 if ac_fn_c_try_run "$LINENO"; then :
4249
4250 else
4251 ac_cv_header_stdc=no
4252 fi
4253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4254 conftest.$ac_objext conftest.beam conftest.$ac_ext
4255 fi
4256
4257 fi
4258 fi
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4260 $as_echo "$ac_cv_header_stdc" >&6; }
4261 if test $ac_cv_header_stdc = yes; then
4262
4263 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4264
4265 fi
4266
4267 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4268 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4269 inttypes.h stdint.h unistd.h
4270 do :
4271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4272 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4273 "
4274 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4275 cat >>confdefs.h <<_ACEOF
4276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4277 _ACEOF
4278
4279 fi
4280
4281 done
4282
4283
4284
4285 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4286 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4287 MINIX=yes
4288 else
4289 MINIX=
4290 fi
4291
4292
4293 if test "$MINIX" = yes; then
4294
4295 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4296
4297
4298 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4299
4300
4301 $as_echo "#define _MINIX 1" >>confdefs.h
4302
4303 fi
4304
4305
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4307 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4308 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313
4314 # define __EXTENSIONS__ 1
4315 $ac_includes_default
4316 int
4317 main ()
4318 {
4319
4320 ;
4321 return 0;
4322 }
4323 _ACEOF
4324 if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_safe_to_define___extensions__=yes
4326 else
4327 ac_cv_safe_to_define___extensions__=no
4328 fi
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4332 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4333 test $ac_cv_safe_to_define___extensions__ = yes &&
4334 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4335
4336 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4337
4338 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4339
4340 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4341
4342 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4343
4344
4345
4346 am__api_version='1.15'
4347
4348 # Find a good install program. We prefer a C program (faster),
4349 # so one script is as good as another. But avoid the broken or
4350 # incompatible versions:
4351 # SysV /etc/install, /usr/sbin/install
4352 # SunOS /usr/etc/install
4353 # IRIX /sbin/install
4354 # AIX /bin/install
4355 # AmigaOS /C/install, which installs bootblocks on floppy discs
4356 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4357 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4358 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4359 # OS/2's system install, which has a completely different semantic
4360 # ./install, which can be erroneously created by make from ./install.sh.
4361 # Reject install programs that cannot install multiple files.
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4363 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4364 if test -z "$INSTALL"; then
4365 if ${ac_cv_path_install+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 # Account for people who put trailing slashes in PATH elements.
4374 case $as_dir/ in #((
4375 ./ | .// | /[cC]/* | \
4376 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4377 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4378 /usr/ucb/* ) ;;
4379 *)
4380 # OSF1 and SCO ODT 3.0 have their own names for install.
4381 # Don't use installbsd from OSF since it installs stuff as root
4382 # by default.
4383 for ac_prog in ginstall scoinst install; do
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4386 if test $ac_prog = install &&
4387 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4388 # AIX install. It has an incompatible calling convention.
4389 :
4390 elif test $ac_prog = install &&
4391 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4392 # program-specific install script used by HP pwplus--don't use.
4393 :
4394 else
4395 rm -rf conftest.one conftest.two conftest.dir
4396 echo one > conftest.one
4397 echo two > conftest.two
4398 mkdir conftest.dir
4399 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4400 test -s conftest.one && test -s conftest.two &&
4401 test -s conftest.dir/conftest.one &&
4402 test -s conftest.dir/conftest.two
4403 then
4404 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4405 break 3
4406 fi
4407 fi
4408 fi
4409 done
4410 done
4411 ;;
4412 esac
4413
4414 done
4415 IFS=$as_save_IFS
4416
4417 rm -rf conftest.one conftest.two conftest.dir
4418
4419 fi
4420 if test "${ac_cv_path_install+set}" = set; then
4421 INSTALL=$ac_cv_path_install
4422 else
4423 # As a last resort, use the slow shell script. Don't cache a
4424 # value for INSTALL within a source directory, because that will
4425 # break other packages using the cache if that directory is
4426 # removed, or if the value is a relative name.
4427 INSTALL=$ac_install_sh
4428 fi
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4431 $as_echo "$INSTALL" >&6; }
4432
4433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4434 # It thinks the first close brace ends the variable substitution.
4435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4436
4437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4438
4439 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4440
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4442 $as_echo_n "checking whether build environment is sane... " >&6; }
4443 # Reject unsafe characters in $srcdir or the absolute working directory
4444 # name. Accept space and tab only in the latter.
4445 am_lf='
4446 '
4447 case `pwd` in
4448 *[\\\"\#\$\&\'\`$am_lf]*)
4449 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4450 esac
4451 case $srcdir in
4452 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4453 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4454 esac
4455
4456 # Do 'set' in a subshell so we don't clobber the current shell's
4457 # arguments. Must try -L first in case configure is actually a
4458 # symlink; some systems play weird games with the mod time of symlinks
4459 # (eg FreeBSD returns the mod time of the symlink's containing
4460 # directory).
4461 if (
4462 am_has_slept=no
4463 for am_try in 1 2; do
4464 echo "timestamp, slept: $am_has_slept" > conftest.file
4465 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4466 if test "$*" = "X"; then
4467 # -L didn't work.
4468 set X `ls -t "$srcdir/configure" conftest.file`
4469 fi
4470 if test "$*" != "X $srcdir/configure conftest.file" \
4471 && test "$*" != "X conftest.file $srcdir/configure"; then
4472
4473 # If neither matched, then we have a broken ls. This can happen
4474 # if, for instance, CONFIG_SHELL is bash and it inherits a
4475 # broken ls alias from the environment. This has actually
4476 # happened. Such a system could not be considered "sane".
4477 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4478 alias in your environment" "$LINENO" 5
4479 fi
4480 if test "$2" = conftest.file || test $am_try -eq 2; then
4481 break
4482 fi
4483 # Just in case.
4484 sleep 1
4485 am_has_slept=yes
4486 done
4487 test "$2" = conftest.file
4488 )
4489 then
4490 # Ok.
4491 :
4492 else
4493 as_fn_error $? "newly created file is older than distributed files!
4494 Check your system clock" "$LINENO" 5
4495 fi
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497 $as_echo "yes" >&6; }
4498 # If we didn't sleep, we still need to ensure time stamps of config.status and
4499 # generated files are strictly newer.
4500 am_sleep_pid=
4501 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4502 ( sleep 1 ) &
4503 am_sleep_pid=$!
4504 fi
4505
4506 rm -f conftest.file
4507
4508 test "$program_prefix" != NONE &&
4509 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4510 # Use a double $ so make ignores it.
4511 test "$program_suffix" != NONE &&
4512 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4513 # Double any \ or $.
4514 # By default was `s,x,x', remove it if useless.
4515 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4516 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4517
4518 if test x"${MISSING+set}" != xset; then
4519 case $am_aux_dir in
4520 *\ * | *\ *)
4521 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4522 *)
4523 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4524 esac
4525 fi
4526 # Use eval to expand $SHELL
4527 if eval "$MISSING --is-lightweight"; then
4528 am_missing_run="$MISSING "
4529 else
4530 am_missing_run=
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4532 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4533 fi
4534
4535 if test x"${install_sh+set}" != xset; then
4536 case $am_aux_dir in
4537 *\ * | *\ *)
4538 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4539 *)
4540 install_sh="\${SHELL} $am_aux_dir/install-sh"
4541 esac
4542 fi
4543
4544 # Installed binaries are usually stripped using 'strip' when the user
4545 # run "make install-strip". However 'strip' might not be the right
4546 # tool to use in cross-compilation environments, therefore Automake
4547 # will honor the 'STRIP' environment variable to overrule this program.
4548 if test "$cross_compiling" != no; then
4549 if test -n "$ac_tool_prefix"; then
4550 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4551 set dummy ${ac_tool_prefix}strip; ac_word=$2
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553 $as_echo_n "checking for $ac_word... " >&6; }
4554 if ${ac_cv_prog_STRIP+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 if test -n "$STRIP"; then
4558 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4570 fi
4571 done
4572 done
4573 IFS=$as_save_IFS
4574
4575 fi
4576 fi
4577 STRIP=$ac_cv_prog_STRIP
4578 if test -n "$STRIP"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4580 $as_echo "$STRIP" >&6; }
4581 else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo "no" >&6; }
4584 fi
4585
4586
4587 fi
4588 if test -z "$ac_cv_prog_STRIP"; then
4589 ac_ct_STRIP=$STRIP
4590 # Extract the first word of "strip", so it can be a program name with args.
4591 set dummy strip; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$ac_ct_STRIP"; then
4598 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_ac_ct_STRIP="strip"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615 fi
4616 fi
4617 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4618 if test -n "$ac_ct_STRIP"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4620 $as_echo "$ac_ct_STRIP" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4624 fi
4625
4626 if test "x$ac_ct_STRIP" = x; then
4627 STRIP=":"
4628 else
4629 case $cross_compiling:$ac_tool_warned in
4630 yes:)
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4633 ac_tool_warned=yes ;;
4634 esac
4635 STRIP=$ac_ct_STRIP
4636 fi
4637 else
4638 STRIP="$ac_cv_prog_STRIP"
4639 fi
4640
4641 fi
4642 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4645 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4646 if test -z "$MKDIR_P"; then
4647 if ${ac_cv_path_mkdir+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4652 do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_prog in mkdir gmkdir; do
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4658 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4659 'mkdir (GNU coreutils) '* | \
4660 'mkdir (coreutils) '* | \
4661 'mkdir (fileutils) '4.1*)
4662 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4663 break 3;;
4664 esac
4665 done
4666 done
4667 done
4668 IFS=$as_save_IFS
4669
4670 fi
4671
4672 test -d ./--version && rmdir ./--version
4673 if test "${ac_cv_path_mkdir+set}" = set; then
4674 MKDIR_P="$ac_cv_path_mkdir -p"
4675 else
4676 # As a last resort, use the slow shell script. Don't cache a
4677 # value for MKDIR_P within a source directory, because that will
4678 # break other packages using the cache if that directory is
4679 # removed, or if the value is a relative name.
4680 MKDIR_P="$ac_install_sh -d"
4681 fi
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4684 $as_echo "$MKDIR_P" >&6; }
4685
4686 for ac_prog in gawk mawk nawk awk
4687 do
4688 # Extract the first word of "$ac_prog", so it can be a program name with args.
4689 set dummy $ac_prog; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if ${ac_cv_prog_AWK+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 if test -n "$AWK"; then
4696 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705 ac_cv_prog_AWK="$ac_prog"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709 done
4710 done
4711 IFS=$as_save_IFS
4712
4713 fi
4714 fi
4715 AWK=$ac_cv_prog_AWK
4716 if test -n "$AWK"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4718 $as_echo "$AWK" >&6; }
4719 else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4722 fi
4723
4724
4725 test -n "$AWK" && break
4726 done
4727
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4729 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4730 set x ${MAKE-make}
4731 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4732 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 cat >conftest.make <<\_ACEOF
4736 SHELL = /bin/sh
4737 all:
4738 @echo '@@@%%%=$(MAKE)=@@@%%%'
4739 _ACEOF
4740 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4741 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4742 *@@@%%%=?*=@@@%%%*)
4743 eval ac_cv_prog_make_${ac_make}_set=yes;;
4744 *)
4745 eval ac_cv_prog_make_${ac_make}_set=no;;
4746 esac
4747 rm -f conftest.make
4748 fi
4749 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4751 $as_echo "yes" >&6; }
4752 SET_MAKE=
4753 else
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4756 SET_MAKE="MAKE=${MAKE-make}"
4757 fi
4758
4759 rm -rf .tst 2>/dev/null
4760 mkdir .tst 2>/dev/null
4761 if test -d .tst; then
4762 am__leading_dot=.
4763 else
4764 am__leading_dot=_
4765 fi
4766 rmdir .tst 2>/dev/null
4767
4768 DEPDIR="${am__leading_dot}deps"
4769
4770 ac_config_commands="$ac_config_commands depfiles"
4771
4772
4773 am_make=${MAKE-make}
4774 cat > confinc << 'END'
4775 am__doit:
4776 @echo this is the am__doit target
4777 .PHONY: am__doit
4778 END
4779 # If we don't find an include directive, just comment out the code.
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4781 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4782 am__include="#"
4783 am__quote=
4784 _am_result=none
4785 # First try GNU make style include.
4786 echo "include confinc" > confmf
4787 # Ignore all kinds of additional output from 'make'.
4788 case `$am_make -s -f confmf 2> /dev/null` in #(
4789 *the\ am__doit\ target*)
4790 am__include=include
4791 am__quote=
4792 _am_result=GNU
4793 ;;
4794 esac
4795 # Now try BSD make style include.
4796 if test "$am__include" = "#"; then
4797 echo '.include "confinc"' > confmf
4798 case `$am_make -s -f confmf 2> /dev/null` in #(
4799 *the\ am__doit\ target*)
4800 am__include=.include
4801 am__quote="\""
4802 _am_result=BSD
4803 ;;
4804 esac
4805 fi
4806
4807
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4809 $as_echo "$_am_result" >&6; }
4810 rm -f confinc confmf
4811
4812 # Check whether --enable-dependency-tracking was given.
4813 if test "${enable_dependency_tracking+set}" = set; then :
4814 enableval=$enable_dependency_tracking;
4815 fi
4816
4817 if test "x$enable_dependency_tracking" != xno; then
4818 am_depcomp="$ac_aux_dir/depcomp"
4819 AMDEPBACKSLASH='\'
4820 am__nodep='_no'
4821 fi
4822 if test "x$enable_dependency_tracking" != xno; then
4823 AMDEP_TRUE=
4824 AMDEP_FALSE='#'
4825 else
4826 AMDEP_TRUE='#'
4827 AMDEP_FALSE=
4828 fi
4829
4830
4831 # Check whether --enable-silent-rules was given.
4832 if test "${enable_silent_rules+set}" = set; then :
4833 enableval=$enable_silent_rules;
4834 fi
4835
4836 case $enable_silent_rules in # (((
4837 yes) AM_DEFAULT_VERBOSITY=0;;
4838 no) AM_DEFAULT_VERBOSITY=1;;
4839 *) AM_DEFAULT_VERBOSITY=1;;
4840 esac
4841 am_make=${MAKE-make}
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4843 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4844 if ${am_cv_make_support_nested_variables+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if $as_echo 'TRUE=$(BAR$(V))
4848 BAR0=false
4849 BAR1=true
4850 V=1
4851 am__doit:
4852 @$(TRUE)
4853 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4854 am_cv_make_support_nested_variables=yes
4855 else
4856 am_cv_make_support_nested_variables=no
4857 fi
4858 fi
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4860 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4861 if test $am_cv_make_support_nested_variables = yes; then
4862 AM_V='$(V)'
4863 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4864 else
4865 AM_V=$AM_DEFAULT_VERBOSITY
4866 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4867 fi
4868 AM_BACKSLASH='\'
4869
4870 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4871 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4872 # is not polluted with repeated "-I."
4873 am__isrc=' -I$(srcdir)'
4874 # test to see if srcdir already configured
4875 if test -f $srcdir/config.status; then
4876 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4877 fi
4878 fi
4879
4880 # test whether we have cygpath
4881 if test -z "$CYGPATH_W"; then
4882 if (cygpath --version) >/dev/null 2>/dev/null; then
4883 CYGPATH_W='cygpath -w'
4884 else
4885 CYGPATH_W=echo
4886 fi
4887 fi
4888
4889
4890 # Define the identity of the package.
4891 PACKAGE='dpkg'
4892 VERSION='1.18.25'
4893
4894
4895 cat >>confdefs.h <<_ACEOF
4896 #define PACKAGE "$PACKAGE"
4897 _ACEOF
4898
4899
4900 cat >>confdefs.h <<_ACEOF
4901 #define VERSION "$VERSION"
4902 _ACEOF
4903
4904 # Some tools Automake needs.
4905
4906 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4907
4908
4909 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4910
4911
4912 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4913
4914
4915 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4916
4917
4918 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4919
4920 # For better backward compatibility. To be removed once Automake 1.9.x
4921 # dies out for good. For more background, see:
4922 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4923 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4924 mkdir_p='$(MKDIR_P)'
4925
4926 # We need awk for the "check" target (and possibly the TAP driver). The
4927 # system "awk" is bad on some platforms.
4928 # Always define AMTAR for backward compatibility. Yes, it's still used
4929 # in the wild :-( We should find a proper way to deprecate it ...
4930 AMTAR='$${TAR-tar}'
4931
4932
4933 # We'll loop over all known methods to create a tar archive until one works.
4934 _am_tools='gnutar pax cpio none'
4935
4936 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4937
4938
4939
4940
4941
4942 depcc="$CC" am_compiler_list=
4943
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4945 $as_echo_n "checking dependency style of $depcc... " >&6; }
4946 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4950 # We make a subdir and do the tests there. Otherwise we can end up
4951 # making bogus files that we don't know about and never remove. For
4952 # instance it was reported that on HP-UX the gcc test will end up
4953 # making a dummy file named 'D' -- because '-MD' means "put the output
4954 # in D".
4955 rm -rf conftest.dir
4956 mkdir conftest.dir
4957 # Copy depcomp to subdir because otherwise we won't find it if we're
4958 # using a relative directory.
4959 cp "$am_depcomp" conftest.dir
4960 cd conftest.dir
4961 # We will build objects and dependencies in a subdirectory because
4962 # it helps to detect inapplicable dependency modes. For instance
4963 # both Tru64's cc and ICC support -MD to output dependencies as a
4964 # side effect of compilation, but ICC will put the dependencies in
4965 # the current directory while Tru64 will put them in the object
4966 # directory.
4967 mkdir sub
4968
4969 am_cv_CC_dependencies_compiler_type=none
4970 if test "$am_compiler_list" = ""; then
4971 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4972 fi
4973 am__universal=false
4974 case " $depcc " in #(
4975 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4976 esac
4977
4978 for depmode in $am_compiler_list; do
4979 # Setup a source with many dependencies, because some compilers
4980 # like to wrap large dependency lists on column 80 (with \), and
4981 # we should not choose a depcomp mode which is confused by this.
4982 #
4983 # We need to recreate these files for each test, as the compiler may
4984 # overwrite some of them when testing with obscure command lines.
4985 # This happens at least with the AIX C compiler.
4986 : > sub/conftest.c
4987 for i in 1 2 3 4 5 6; do
4988 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4989 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4990 # Solaris 10 /bin/sh.
4991 echo '/* dummy */' > sub/conftst$i.h
4992 done
4993 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4994
4995 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4996 # mode. It turns out that the SunPro C++ compiler does not properly
4997 # handle '-M -o', and we need to detect this. Also, some Intel
4998 # versions had trouble with output in subdirs.
4999 am__obj=sub/conftest.${OBJEXT-o}
5000 am__minus_obj="-o $am__obj"
5001 case $depmode in
5002 gcc)
5003 # This depmode causes a compiler race in universal mode.
5004 test "$am__universal" = false || continue
5005 ;;
5006 nosideeffect)
5007 # After this tag, mechanisms are not by side-effect, so they'll
5008 # only be used when explicitly requested.
5009 if test "x$enable_dependency_tracking" = xyes; then
5010 continue
5011 else
5012 break
5013 fi
5014 ;;
5015 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5016 # This compiler won't grok '-c -o', but also, the minuso test has
5017 # not run yet. These depmodes are late enough in the game, and
5018 # so weak that their functioning should not be impacted.
5019 am__obj=conftest.${OBJEXT-o}
5020 am__minus_obj=
5021 ;;
5022 none) break ;;
5023 esac
5024 if depmode=$depmode \
5025 source=sub/conftest.c object=$am__obj \
5026 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5027 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5028 >/dev/null 2>conftest.err &&
5029 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5030 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5031 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5032 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5033 # icc doesn't choke on unknown options, it will just issue warnings
5034 # or remarks (even with -Werror). So we grep stderr for any message
5035 # that says an option was ignored or not supported.
5036 # When given -MP, icc 7.0 and 7.1 complain thusly:
5037 # icc: Command line warning: ignoring option '-M'; no argument required
5038 # The diagnosis changed in icc 8.0:
5039 # icc: Command line remark: option '-MP' not supported
5040 if (grep 'ignoring option' conftest.err ||
5041 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5042 am_cv_CC_dependencies_compiler_type=$depmode
5043 break
5044 fi
5045 fi
5046 done
5047
5048 cd ..
5049 rm -rf conftest.dir
5050 else
5051 am_cv_CC_dependencies_compiler_type=none
5052 fi
5053
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5056 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5057 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5058
5059 if
5060 test "x$enable_dependency_tracking" != xno \
5061 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5062 am__fastdepCC_TRUE=
5063 am__fastdepCC_FALSE='#'
5064 else
5065 am__fastdepCC_TRUE='#'
5066 am__fastdepCC_FALSE=
5067 fi
5068
5069
5070
5071 # POSIX will say in a future version that running "rm -f" with no argument
5072 # is OK; and we want to be able to make that assumption in our Makefile
5073 # recipes. So use an aggressive probe to check that the usage we want is
5074 # actually supported "in the wild" to an acceptable degree.
5075 # See automake bug#10828.
5076 # To make any issue more visible, cause the running configure to be aborted
5077 # by default if the 'rm' program in use doesn't match our expectations; the
5078 # user can still override this though.
5079 if rm -f && rm -fr && rm -rf; then : OK; else
5080 cat >&2 <<'END'
5081 Oops!
5082
5083 Your 'rm' program seems unable to run without file operands specified
5084 on the command line, even when the '-f' option is present. This is contrary
5085 to the behaviour of most rm programs out there, and not conforming with
5086 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5087
5088 Please tell bug-automake@gnu.org about your system, including the value
5089 of your $PATH and any error possibly output before this message. This
5090 can help us improve future automake versions.
5091
5092 END
5093 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5094 echo 'Configuration will proceed anyway, since you have set the' >&2
5095 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5096 echo >&2
5097 else
5098 cat >&2 <<'END'
5099 Aborting the configuration process, to ensure you take notice of the issue.
5100
5101 You can download and install GNU coreutils to get an 'rm' implementation
5102 that behaves properly: <http://www.gnu.org/software/coreutils/>.
5103
5104 If you want to complete the configuration process using your problematic
5105 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5106 to "yes", and re-run configure.
5107
5108 END
5109 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5110 fi
5111 fi
5112
5113 # Check whether --enable-silent-rules was given.
5114 if test "${enable_silent_rules+set}" = set; then :
5115 enableval=$enable_silent_rules;
5116 fi
5117
5118 case $enable_silent_rules in # (((
5119 yes) AM_DEFAULT_VERBOSITY=0;;
5120 no) AM_DEFAULT_VERBOSITY=1;;
5121 *) AM_DEFAULT_VERBOSITY=0;;
5122 esac
5123 am_make=${MAKE-make}
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5125 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5126 if ${am_cv_make_support_nested_variables+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if $as_echo 'TRUE=$(BAR$(V))
5130 BAR0=false
5131 BAR1=true
5132 V=1
5133 am__doit:
5134 @$(TRUE)
5135 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5136 am_cv_make_support_nested_variables=yes
5137 else
5138 am_cv_make_support_nested_variables=no
5139 fi
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5142 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5143 if test $am_cv_make_support_nested_variables = yes; then
5144 AM_V='$(V)'
5145 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5146 else
5147 AM_V=$AM_DEFAULT_VERBOSITY
5148 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5149 fi
5150 AM_BACKSLASH='\'
5151
5152
5153 # Do not unconditionally use the following macro, as Debian jessie does not
5154 # have a recent enough gettext.
5155
5156 # We cannot remove the following macro due to backwards compatibility reasons.
5157 # In the future when the gettext version is bumped, we have to set the above
5158 # macro unconditionally to the minimal version, and set the below to 0.19.6,
5159 # the first version introducing the AM_GNU_GETTEXT_REQUIRE_VERSION macro.
5160
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5162 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5163 if ${ac_cv_path_SED+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5167 for ac_i in 1 2 3 4 5 6 7; do
5168 ac_script="$ac_script$as_nl$ac_script"
5169 done
5170 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5171 { ac_script=; unset ac_script;}
5172 if test -z "$SED"; then
5173 ac_path_SED_found=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_prog in sed gsed; do
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5183 as_fn_executable_p "$ac_path_SED" || continue
5184 # Check for GNU ac_path_SED and select it if it is found.
5185 # Check for GNU $ac_path_SED
5186 case `"$ac_path_SED" --version 2>&1` in
5187 *GNU*)
5188 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5189 *)
5190 ac_count=0
5191 $as_echo_n 0123456789 >"conftest.in"
5192 while :
5193 do
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 $as_echo '' >> "conftest.nl"
5198 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200 as_fn_arith $ac_count + 1 && ac_count=$as_val
5201 if test $ac_count -gt ${ac_path_SED_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_SED="$ac_path_SED"
5204 ac_path_SED_max=$ac_count
5205 fi
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5208 done
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210 esac
5211
5212 $ac_path_SED_found && break 3
5213 done
5214 done
5215 done
5216 IFS=$as_save_IFS
5217 if test -z "$ac_cv_path_SED"; then
5218 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5219 fi
5220 else
5221 ac_cv_path_SED=$SED
5222 fi
5223
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5226 $as_echo "$ac_cv_path_SED" >&6; }
5227 SED="$ac_cv_path_SED"
5228 rm -f conftest.sed
5229
5230
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5232 $as_echo_n "checking whether NLS is requested... " >&6; }
5233 # Check whether --enable-nls was given.
5234 if test "${enable_nls+set}" = set; then :
5235 enableval=$enable_nls; USE_NLS=$enableval
5236 else
5237 USE_NLS=yes
5238 fi
5239
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5241 $as_echo "$USE_NLS" >&6; }
5242
5243
5244
5245
5246 GETTEXT_MACRO_VERSION=0.19
5247
5248
5249
5250
5251 # Prepare PATH_SEPARATOR.
5252 # The user is always right.
5253 if test "${PATH_SEPARATOR+set}" != set; then
5254 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5255 # contains only /bin. Note that ksh looks also at the FPATH variable,
5256 # so we have to set that as well for the test.
5257 PATH_SEPARATOR=:
5258 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5259 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5260 || PATH_SEPARATOR=';'
5261 }
5262 fi
5263
5264 # Find out how to test for executable files. Don't use a zero-byte file,
5265 # as systems may use methods other than mode bits to determine executability.
5266 cat >conf$$.file <<_ASEOF
5267 #! /bin/sh
5268 exit 0
5269 _ASEOF
5270 chmod +x conf$$.file
5271 if test -x conf$$.file >/dev/null 2>&1; then
5272 ac_executable_p="test -x"
5273 else
5274 ac_executable_p="test -f"
5275 fi
5276 rm -f conf$$.file
5277
5278 # Extract the first word of "msgfmt", so it can be a program name with args.
5279 set dummy msgfmt; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if ${ac_cv_path_MSGFMT+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 case "$MSGFMT" in
5286 [\\/]* | ?:[\\/]*)
5287 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5288 ;;
5289 *)
5290 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5291 for ac_dir in $PATH; do
5292 IFS="$ac_save_IFS"
5293 test -z "$ac_dir" && ac_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5296 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5297 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5298 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5299 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5300 break 2
5301 fi
5302 fi
5303 done
5304 done
5305 IFS="$ac_save_IFS"
5306 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5307 ;;
5308 esac
5309 fi
5310 MSGFMT="$ac_cv_path_MSGFMT"
5311 if test "$MSGFMT" != ":"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5313 $as_echo "$MSGFMT" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5317 fi
5318
5319 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5320 set dummy gmsgfmt; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if ${ac_cv_path_GMSGFMT+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 case $GMSGFMT in
5327 [\\/]* | ?:[\\/]*)
5328 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5329 ;;
5330 *)
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5333 do
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5341 fi
5342 done
5343 done
5344 IFS=$as_save_IFS
5345
5346 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5347 ;;
5348 esac
5349 fi
5350 GMSGFMT=$ac_cv_path_GMSGFMT
5351 if test -n "$GMSGFMT"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5353 $as_echo "$GMSGFMT" >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5357 fi
5358
5359
5360
5361 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5362 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5363 *) MSGFMT_015=$MSGFMT ;;
5364 esac
5365
5366 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5367 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5368 *) GMSGFMT_015=$GMSGFMT ;;
5369 esac
5370
5371
5372
5373 # Prepare PATH_SEPARATOR.
5374 # The user is always right.
5375 if test "${PATH_SEPARATOR+set}" != set; then
5376 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5377 # contains only /bin. Note that ksh looks also at the FPATH variable,
5378 # so we have to set that as well for the test.
5379 PATH_SEPARATOR=:
5380 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5381 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5382 || PATH_SEPARATOR=';'
5383 }
5384 fi
5385
5386 # Find out how to test for executable files. Don't use a zero-byte file,
5387 # as systems may use methods other than mode bits to determine executability.
5388 cat >conf$$.file <<_ASEOF
5389 #! /bin/sh
5390 exit 0
5391 _ASEOF
5392 chmod +x conf$$.file
5393 if test -x conf$$.file >/dev/null 2>&1; then
5394 ac_executable_p="test -x"
5395 else
5396 ac_executable_p="test -f"
5397 fi
5398 rm -f conf$$.file
5399
5400 # Extract the first word of "xgettext", so it can be a program name with args.
5401 set dummy xgettext; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_path_XGETTEXT+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 case "$XGETTEXT" in
5408 [\\/]* | ?:[\\/]*)
5409 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5410 ;;
5411 *)
5412 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5413 for ac_dir in $PATH; do
5414 IFS="$ac_save_IFS"
5415 test -z "$ac_dir" && ac_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5418 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5419 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5420 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5421 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5422 break 2
5423 fi
5424 fi
5425 done
5426 done
5427 IFS="$ac_save_IFS"
5428 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5429 ;;
5430 esac
5431 fi
5432 XGETTEXT="$ac_cv_path_XGETTEXT"
5433 if test "$XGETTEXT" != ":"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5435 $as_echo "$XGETTEXT" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441 rm -f messages.po
5442
5443 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5444 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5445 *) XGETTEXT_015=$XGETTEXT ;;
5446 esac
5447
5448
5449
5450 # Prepare PATH_SEPARATOR.
5451 # The user is always right.
5452 if test "${PATH_SEPARATOR+set}" != set; then
5453 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5454 # contains only /bin. Note that ksh looks also at the FPATH variable,
5455 # so we have to set that as well for the test.
5456 PATH_SEPARATOR=:
5457 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5458 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5459 || PATH_SEPARATOR=';'
5460 }
5461 fi
5462
5463 # Find out how to test for executable files. Don't use a zero-byte file,
5464 # as systems may use methods other than mode bits to determine executability.
5465 cat >conf$$.file <<_ASEOF
5466 #! /bin/sh
5467 exit 0
5468 _ASEOF
5469 chmod +x conf$$.file
5470 if test -x conf$$.file >/dev/null 2>&1; then
5471 ac_executable_p="test -x"
5472 else
5473 ac_executable_p="test -f"
5474 fi
5475 rm -f conf$$.file
5476
5477 # Extract the first word of "msgmerge", so it can be a program name with args.
5478 set dummy msgmerge; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_path_MSGMERGE+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 case "$MSGMERGE" in
5485 [\\/]* | ?:[\\/]*)
5486 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5487 ;;
5488 *)
5489 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5490 for ac_dir in $PATH; do
5491 IFS="$ac_save_IFS"
5492 test -z "$ac_dir" && ac_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5495 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5496 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5497 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5498 break 2
5499 fi
5500 fi
5501 done
5502 done
5503 IFS="$ac_save_IFS"
5504 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5505 ;;
5506 esac
5507 fi
5508 MSGMERGE="$ac_cv_path_MSGMERGE"
5509 if test "$MSGMERGE" != ":"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5511 $as_echo "$MSGMERGE" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516
5517
5518 test -n "$localedir" || localedir='${datadir}/locale'
5519
5520
5521 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5522
5523
5524 ac_config_commands="$ac_config_commands po-directories"
5525
5526
5527
5528 if test "X$prefix" = "XNONE"; then
5529 acl_final_prefix="$ac_default_prefix"
5530 else
5531 acl_final_prefix="$prefix"
5532 fi
5533 if test "X$exec_prefix" = "XNONE"; then
5534 acl_final_exec_prefix='${prefix}'
5535 else
5536 acl_final_exec_prefix="$exec_prefix"
5537 fi
5538 acl_save_prefix="$prefix"
5539 prefix="$acl_final_prefix"
5540 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5541 prefix="$acl_save_prefix"
5542
5543 # Make sure we can run config.sub.
5544 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5545 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5546
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5548 $as_echo_n "checking build system type... " >&6; }
5549 if ${ac_cv_build+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 ac_build_alias=$build_alias
5553 test "x$ac_build_alias" = x &&
5554 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5555 test "x$ac_build_alias" = x &&
5556 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5557 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5559
5560 fi
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5562 $as_echo "$ac_cv_build" >&6; }
5563 case $ac_cv_build in
5564 *-*-*) ;;
5565 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5566 esac
5567 build=$ac_cv_build
5568 ac_save_IFS=$IFS; IFS='-'
5569 set x $ac_cv_build
5570 shift
5571 build_cpu=$1
5572 build_vendor=$2
5573 shift; shift
5574 # Remember, the first character of IFS is used to create $*,
5575 # except with old shells:
5576 build_os=$*
5577 IFS=$ac_save_IFS
5578 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5579
5580
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5582 $as_echo_n "checking host system type... " >&6; }
5583 if ${ac_cv_host+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 if test "x$host_alias" = x; then
5587 ac_cv_host=$ac_cv_build
5588 else
5589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5590 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5591 fi
5592
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5595 $as_echo "$ac_cv_host" >&6; }
5596 case $ac_cv_host in
5597 *-*-*) ;;
5598 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5599 esac
5600 host=$ac_cv_host
5601 ac_save_IFS=$IFS; IFS='-'
5602 set x $ac_cv_host
5603 shift
5604 host_cpu=$1
5605 host_vendor=$2
5606 shift; shift
5607 # Remember, the first character of IFS is used to create $*,
5608 # except with old shells:
5609 host_os=$*
5610 IFS=$ac_save_IFS
5611 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5612
5613
5614
5615
5616 # Check whether --with-gnu-ld was given.
5617 if test "${with_gnu_ld+set}" = set; then :
5618 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5619 else
5620 with_gnu_ld=no
5621 fi
5622
5623 # Prepare PATH_SEPARATOR.
5624 # The user is always right.
5625 if test "${PATH_SEPARATOR+set}" != set; then
5626 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5627 # contains only /bin. Note that ksh looks also at the FPATH variable,
5628 # so we have to set that as well for the test.
5629 PATH_SEPARATOR=:
5630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5631 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5632 || PATH_SEPARATOR=';'
5633 }
5634 fi
5635
5636 ac_prog=ld
5637 if test "$GCC" = yes; then
5638 # Check if gcc -print-prog-name=ld gives a path.
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5640 $as_echo_n "checking for ld used by $CC... " >&6; }
5641 case $host in
5642 *-*-mingw*)
5643 # gcc leaves a trailing carriage return which upsets mingw
5644 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5645 *)
5646 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5647 esac
5648 case $ac_prog in
5649 # Accept absolute paths.
5650 [\\/]* | ?:[\\/]*)
5651 re_direlt='/[^/][^/]*/\.\./'
5652 # Canonicalize the pathname of ld
5653 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5654 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5655 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5656 done
5657 test -z "$LD" && LD="$ac_prog"
5658 ;;
5659 "")
5660 # If it fails, then pretend we aren't using GCC.
5661 ac_prog=ld
5662 ;;
5663 *)
5664 # If it is relative, then search for the first ld in PATH.
5665 with_gnu_ld=unknown
5666 ;;
5667 esac
5668 elif test "$with_gnu_ld" = yes; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5670 $as_echo_n "checking for GNU ld... " >&6; }
5671 else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5673 $as_echo_n "checking for non-GNU ld... " >&6; }
5674 fi
5675 if ${acl_cv_path_LD+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if test -z "$LD"; then
5679 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5680 for ac_dir in $PATH; do
5681 IFS="$acl_save_ifs"
5682 test -z "$ac_dir" && ac_dir=.
5683 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5684 acl_cv_path_LD="$ac_dir/$ac_prog"
5685 # Check to see if the program is GNU ld. I'd rather use --version,
5686 # but apparently some variants of GNU ld only accept -v.
5687 # Break only if it was the GNU/non-GNU ld that we prefer.
5688 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5689 *GNU* | *'with BFD'*)
5690 test "$with_gnu_ld" != no && break
5691 ;;
5692 *)
5693 test "$with_gnu_ld" != yes && break
5694 ;;
5695 esac
5696 fi
5697 done
5698 IFS="$acl_save_ifs"
5699 else
5700 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5701 fi
5702 fi
5703
5704 LD="$acl_cv_path_LD"
5705 if test -n "$LD"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5707 $as_echo "$LD" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5711 fi
5712 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5714 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5715 if ${acl_cv_prog_gnu_ld+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5719 case `$LD -v 2>&1 </dev/null` in
5720 *GNU* | *'with BFD'*)
5721 acl_cv_prog_gnu_ld=yes
5722 ;;
5723 *)
5724 acl_cv_prog_gnu_ld=no
5725 ;;
5726 esac
5727 fi
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5729 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5730 with_gnu_ld=$acl_cv_prog_gnu_ld
5731
5732
5733
5734
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5736 $as_echo_n "checking for shared library run path origin... " >&6; }
5737 if ${acl_cv_rpath+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740
5741 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5742 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5743 . ./conftest.sh
5744 rm -f ./conftest.sh
5745 acl_cv_rpath=done
5746
5747 fi
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5749 $as_echo "$acl_cv_rpath" >&6; }
5750 wl="$acl_cv_wl"
5751 acl_libext="$acl_cv_libext"
5752 acl_shlibext="$acl_cv_shlibext"
5753 acl_libname_spec="$acl_cv_libname_spec"
5754 acl_library_names_spec="$acl_cv_library_names_spec"
5755 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5756 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5757 acl_hardcode_direct="$acl_cv_hardcode_direct"
5758 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5759 # Check whether --enable-rpath was given.
5760 if test "${enable_rpath+set}" = set; then :
5761 enableval=$enable_rpath; :
5762 else
5763 enable_rpath=yes
5764 fi
5765
5766
5767
5768
5769 acl_libdirstem=lib
5770 acl_libdirstem2=
5771 case "$host_os" in
5772 solaris*)
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5774 $as_echo_n "checking for 64-bit host... " >&6; }
5775 if ${gl_cv_solaris_64bit+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780
5781 #ifdef _LP64
5782 sixtyfour bits
5783 #endif
5784
5785 _ACEOF
5786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5787 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5788 gl_cv_solaris_64bit=yes
5789 else
5790 gl_cv_solaris_64bit=no
5791 fi
5792 rm -f conftest*
5793
5794
5795 fi
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5797 $as_echo "$gl_cv_solaris_64bit" >&6; }
5798 if test $gl_cv_solaris_64bit = yes; then
5799 acl_libdirstem=lib/64
5800 case "$host_cpu" in
5801 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5802 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5803 esac
5804 fi
5805 ;;
5806 *)
5807 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5808 if test -n "$searchpath"; then
5809 acl_save_IFS="${IFS= }"; IFS=":"
5810 for searchdir in $searchpath; do
5811 if test -d "$searchdir"; then
5812 case "$searchdir" in
5813 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5814 */../ | */.. )
5815 # Better ignore directories of this form. They are misleading.
5816 ;;
5817 *) searchdir=`cd "$searchdir" && pwd`
5818 case "$searchdir" in
5819 */lib64 ) acl_libdirstem=lib64 ;;
5820 esac ;;
5821 esac
5822 fi
5823 done
5824 IFS="$acl_save_IFS"
5825 fi
5826 ;;
5827 esac
5828 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841 use_additional=yes
5842
5843 acl_save_prefix="$prefix"
5844 prefix="$acl_final_prefix"
5845 acl_save_exec_prefix="$exec_prefix"
5846 exec_prefix="$acl_final_exec_prefix"
5847
5848 eval additional_includedir=\"$includedir\"
5849 eval additional_libdir=\"$libdir\"
5850
5851 exec_prefix="$acl_save_exec_prefix"
5852 prefix="$acl_save_prefix"
5853
5854
5855 # Check whether --with-libiconv-prefix was given.
5856 if test "${with_libiconv_prefix+set}" = set; then :
5857 withval=$with_libiconv_prefix;
5858 if test "X$withval" = "Xno"; then
5859 use_additional=no
5860 else
5861 if test "X$withval" = "X"; then
5862
5863 acl_save_prefix="$prefix"
5864 prefix="$acl_final_prefix"
5865 acl_save_exec_prefix="$exec_prefix"
5866 exec_prefix="$acl_final_exec_prefix"
5867
5868 eval additional_includedir=\"$includedir\"
5869 eval additional_libdir=\"$libdir\"
5870
5871 exec_prefix="$acl_save_exec_prefix"
5872 prefix="$acl_save_prefix"
5873
5874 else
5875 additional_includedir="$withval/include"
5876 additional_libdir="$withval/$acl_libdirstem"
5877 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5878 && ! test -d "$withval/$acl_libdirstem"; then
5879 additional_libdir="$withval/$acl_libdirstem2"
5880 fi
5881 fi
5882 fi
5883
5884 fi
5885
5886 LIBICONV=
5887 LTLIBICONV=
5888 INCICONV=
5889 LIBICONV_PREFIX=
5890 HAVE_LIBICONV=
5891 rpathdirs=
5892 ltrpathdirs=
5893 names_already_handled=
5894 names_next_round='iconv '
5895 while test -n "$names_next_round"; do
5896 names_this_round="$names_next_round"
5897 names_next_round=
5898 for name in $names_this_round; do
5899 already_handled=
5900 for n in $names_already_handled; do
5901 if test "$n" = "$name"; then
5902 already_handled=yes
5903 break
5904 fi
5905 done
5906 if test -z "$already_handled"; then
5907 names_already_handled="$names_already_handled $name"
5908 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5909 eval value=\"\$HAVE_LIB$uppername\"
5910 if test -n "$value"; then
5911 if test "$value" = yes; then
5912 eval value=\"\$LIB$uppername\"
5913 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5914 eval value=\"\$LTLIB$uppername\"
5915 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5916 else
5917 :
5918 fi
5919 else
5920 found_dir=
5921 found_la=
5922 found_so=
5923 found_a=
5924 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5925 if test -n "$acl_shlibext"; then
5926 shrext=".$acl_shlibext" # typically: shrext=.so
5927 else
5928 shrext=
5929 fi
5930 if test $use_additional = yes; then
5931 dir="$additional_libdir"
5932 if test -n "$acl_shlibext"; then
5933 if test -f "$dir/$libname$shrext"; then
5934 found_dir="$dir"
5935 found_so="$dir/$libname$shrext"
5936 else
5937 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5938 ver=`(cd "$dir" && \
5939 for f in "$libname$shrext".*; do echo "$f"; done \
5940 | sed -e "s,^$libname$shrext\\\\.,," \
5941 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5942 | sed 1q ) 2>/dev/null`
5943 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5944 found_dir="$dir"
5945 found_so="$dir/$libname$shrext.$ver"
5946 fi
5947 else
5948 eval library_names=\"$acl_library_names_spec\"
5949 for f in $library_names; do
5950 if test -f "$dir/$f"; then
5951 found_dir="$dir"
5952 found_so="$dir/$f"
5953 break
5954 fi
5955 done
5956 fi
5957 fi
5958 fi
5959 if test "X$found_dir" = "X"; then
5960 if test -f "$dir/$libname.$acl_libext"; then
5961 found_dir="$dir"
5962 found_a="$dir/$libname.$acl_libext"
5963 fi
5964 fi
5965 if test "X$found_dir" != "X"; then
5966 if test -f "$dir/$libname.la"; then
5967 found_la="$dir/$libname.la"
5968 fi
5969 fi
5970 fi
5971 if test "X$found_dir" = "X"; then
5972 for x in $LDFLAGS $LTLIBICONV; do
5973
5974 acl_save_prefix="$prefix"
5975 prefix="$acl_final_prefix"
5976 acl_save_exec_prefix="$exec_prefix"
5977 exec_prefix="$acl_final_exec_prefix"
5978 eval x=\"$x\"
5979 exec_prefix="$acl_save_exec_prefix"
5980 prefix="$acl_save_prefix"
5981
5982 case "$x" in
5983 -L*)
5984 dir=`echo "X$x" | sed -e 's/^X-L//'`
5985 if test -n "$acl_shlibext"; then
5986 if test -f "$dir/$libname$shrext"; then
5987 found_dir="$dir"
5988 found_so="$dir/$libname$shrext"
5989 else
5990 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5991 ver=`(cd "$dir" && \
5992 for f in "$libname$shrext".*; do echo "$f"; done \
5993 | sed -e "s,^$libname$shrext\\\\.,," \
5994 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5995 | sed 1q ) 2>/dev/null`
5996 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5997 found_dir="$dir"
5998 found_so="$dir/$libname$shrext.$ver"
5999 fi
6000 else
6001 eval library_names=\"$acl_library_names_spec\"
6002 for f in $library_names; do
6003 if test -f "$dir/$f"; then
6004 found_dir="$dir"
6005 found_so="$dir/$f"
6006 break
6007 fi
6008 done
6009 fi
6010 fi
6011 fi
6012 if test "X$found_dir" = "X"; then
6013 if test -f "$dir/$libname.$acl_libext"; then
6014 found_dir="$dir"
6015 found_a="$dir/$libname.$acl_libext"
6016 fi
6017 fi
6018 if test "X$found_dir" != "X"; then
6019 if test -f "$dir/$libname.la"; then
6020 found_la="$dir/$libname.la"
6021 fi
6022 fi
6023 ;;
6024 esac
6025 if test "X$found_dir" != "X"; then
6026 break
6027 fi
6028 done
6029 fi
6030 if test "X$found_dir" != "X"; then
6031 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6032 if test "X$found_so" != "X"; then
6033 if test "$enable_rpath" = no \
6034 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6035 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6036 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6037 else
6038 haveit=
6039 for x in $ltrpathdirs; do
6040 if test "X$x" = "X$found_dir"; then
6041 haveit=yes
6042 break
6043 fi
6044 done
6045 if test -z "$haveit"; then
6046 ltrpathdirs="$ltrpathdirs $found_dir"
6047 fi
6048 if test "$acl_hardcode_direct" = yes; then
6049 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6050 else
6051 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6052 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6053 haveit=
6054 for x in $rpathdirs; do
6055 if test "X$x" = "X$found_dir"; then
6056 haveit=yes
6057 break
6058 fi
6059 done
6060 if test -z "$haveit"; then
6061 rpathdirs="$rpathdirs $found_dir"
6062 fi
6063 else
6064 haveit=
6065 for x in $LDFLAGS $LIBICONV; do
6066
6067 acl_save_prefix="$prefix"
6068 prefix="$acl_final_prefix"
6069 acl_save_exec_prefix="$exec_prefix"
6070 exec_prefix="$acl_final_exec_prefix"
6071 eval x=\"$x\"
6072 exec_prefix="$acl_save_exec_prefix"
6073 prefix="$acl_save_prefix"
6074
6075 if test "X$x" = "X-L$found_dir"; then
6076 haveit=yes
6077 break
6078 fi
6079 done
6080 if test -z "$haveit"; then
6081 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6082 fi
6083 if test "$acl_hardcode_minus_L" != no; then
6084 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6085 else
6086 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6087 fi
6088 fi
6089 fi
6090 fi
6091 else
6092 if test "X$found_a" != "X"; then
6093 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6094 else
6095 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6096 fi
6097 fi
6098 additional_includedir=
6099 case "$found_dir" in
6100 */$acl_libdirstem | */$acl_libdirstem/)
6101 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6102 if test "$name" = 'iconv'; then
6103 LIBICONV_PREFIX="$basedir"
6104 fi
6105 additional_includedir="$basedir/include"
6106 ;;
6107 */$acl_libdirstem2 | */$acl_libdirstem2/)
6108 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6109 if test "$name" = 'iconv'; then
6110 LIBICONV_PREFIX="$basedir"
6111 fi
6112 additional_includedir="$basedir/include"
6113 ;;
6114 esac
6115 if test "X$additional_includedir" != "X"; then
6116 if test "X$additional_includedir" != "X/usr/include"; then
6117 haveit=
6118 if test "X$additional_includedir" = "X/usr/local/include"; then
6119 if test -n "$GCC"; then
6120 case $host_os in
6121 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6122 esac
6123 fi
6124 fi
6125 if test -z "$haveit"; then
6126 for x in $CPPFLAGS $INCICONV; do
6127
6128 acl_save_prefix="$prefix"
6129 prefix="$acl_final_prefix"
6130 acl_save_exec_prefix="$exec_prefix"
6131 exec_prefix="$acl_final_exec_prefix"
6132 eval x=\"$x\"
6133 exec_prefix="$acl_save_exec_prefix"
6134 prefix="$acl_save_prefix"
6135
6136 if test "X$x" = "X-I$additional_includedir"; then
6137 haveit=yes
6138 break
6139 fi
6140 done
6141 if test -z "$haveit"; then
6142 if test -d "$additional_includedir"; then
6143 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6144 fi
6145 fi
6146 fi
6147 fi
6148 fi
6149 if test -n "$found_la"; then
6150 save_libdir="$libdir"
6151 case "$found_la" in
6152 */* | *\\*) . "$found_la" ;;
6153 *) . "./$found_la" ;;
6154 esac
6155 libdir="$save_libdir"
6156 for dep in $dependency_libs; do
6157 case "$dep" in
6158 -L*)
6159 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6160 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6161 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6162 haveit=
6163 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6164 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6165 if test -n "$GCC"; then
6166 case $host_os in
6167 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6168 esac
6169 fi
6170 fi
6171 if test -z "$haveit"; then
6172 haveit=
6173 for x in $LDFLAGS $LIBICONV; do
6174
6175 acl_save_prefix="$prefix"
6176 prefix="$acl_final_prefix"
6177 acl_save_exec_prefix="$exec_prefix"
6178 exec_prefix="$acl_final_exec_prefix"
6179 eval x=\"$x\"
6180 exec_prefix="$acl_save_exec_prefix"
6181 prefix="$acl_save_prefix"
6182
6183 if test "X$x" = "X-L$additional_libdir"; then
6184 haveit=yes
6185 break
6186 fi
6187 done
6188 if test -z "$haveit"; then
6189 if test -d "$additional_libdir"; then
6190 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6191 fi
6192 fi
6193 haveit=
6194 for x in $LDFLAGS $LTLIBICONV; do
6195
6196 acl_save_prefix="$prefix"
6197 prefix="$acl_final_prefix"
6198 acl_save_exec_prefix="$exec_prefix"
6199 exec_prefix="$acl_final_exec_prefix"
6200 eval x=\"$x\"
6201 exec_prefix="$acl_save_exec_prefix"
6202 prefix="$acl_save_prefix"
6203
6204 if test "X$x" = "X-L$additional_libdir"; then
6205 haveit=yes
6206 break
6207 fi
6208 done
6209 if test -z "$haveit"; then
6210 if test -d "$additional_libdir"; then
6211 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6212 fi
6213 fi
6214 fi
6215 fi
6216 ;;
6217 -R*)
6218 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6219 if test "$enable_rpath" != no; then
6220 haveit=
6221 for x in $rpathdirs; do
6222 if test "X$x" = "X$dir"; then
6223 haveit=yes
6224 break
6225 fi
6226 done
6227 if test -z "$haveit"; then
6228 rpathdirs="$rpathdirs $dir"
6229 fi
6230 haveit=
6231 for x in $ltrpathdirs; do
6232 if test "X$x" = "X$dir"; then
6233 haveit=yes
6234 break
6235 fi
6236 done
6237 if test -z "$haveit"; then
6238 ltrpathdirs="$ltrpathdirs $dir"
6239 fi
6240 fi
6241 ;;
6242 -l*)
6243 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6244 ;;
6245 *.la)
6246 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6247 ;;
6248 *)
6249 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6250 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6251 ;;
6252 esac
6253 done
6254 fi
6255 else
6256 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6257 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6258 fi
6259 fi
6260 fi
6261 done
6262 done
6263 if test "X$rpathdirs" != "X"; then
6264 if test -n "$acl_hardcode_libdir_separator"; then
6265 alldirs=
6266 for found_dir in $rpathdirs; do
6267 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6268 done
6269 acl_save_libdir="$libdir"
6270 libdir="$alldirs"
6271 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6272 libdir="$acl_save_libdir"
6273 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6274 else
6275 for found_dir in $rpathdirs; do
6276 acl_save_libdir="$libdir"
6277 libdir="$found_dir"
6278 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6279 libdir="$acl_save_libdir"
6280 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6281 done
6282 fi
6283 fi
6284 if test "X$ltrpathdirs" != "X"; then
6285 for found_dir in $ltrpathdirs; do
6286 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6287 done
6288 fi
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6321 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6322 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 gt_save_LIBS="$LIBS"
6326 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 #include <CoreFoundation/CFPreferences.h>
6330 int
6331 main ()
6332 {
6333 CFPreferencesCopyAppValue(NULL, NULL)
6334 ;
6335 return 0;
6336 }
6337 _ACEOF
6338 if ac_fn_c_try_link "$LINENO"; then :
6339 gt_cv_func_CFPreferencesCopyAppValue=yes
6340 else
6341 gt_cv_func_CFPreferencesCopyAppValue=no
6342 fi
6343 rm -f core conftest.err conftest.$ac_objext \
6344 conftest$ac_exeext conftest.$ac_ext
6345 LIBS="$gt_save_LIBS"
6346 fi
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6348 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6349 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6350
6351 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6352
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6355 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6356 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 gt_save_LIBS="$LIBS"
6360 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363 #include <CoreFoundation/CFLocale.h>
6364 int
6365 main ()
6366 {
6367 CFLocaleCopyCurrent();
6368 ;
6369 return 0;
6370 }
6371 _ACEOF
6372 if ac_fn_c_try_link "$LINENO"; then :
6373 gt_cv_func_CFLocaleCopyCurrent=yes
6374 else
6375 gt_cv_func_CFLocaleCopyCurrent=no
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext \
6378 conftest$ac_exeext conftest.$ac_ext
6379 LIBS="$gt_save_LIBS"
6380 fi
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6382 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6383 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6384
6385 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6386
6387 fi
6388 INTL_MACOSX_LIBS=
6389 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6390 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6391 fi
6392
6393
6394
6395
6396
6397
6398 LIBINTL=
6399 LTLIBINTL=
6400 POSUB=
6401
6402 case " $gt_needs " in
6403 *" need-formatstring-macros "*) gt_api_version=3 ;;
6404 *" need-ngettext "*) gt_api_version=2 ;;
6405 *) gt_api_version=1 ;;
6406 esac
6407 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6408 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6409
6410 if test "$USE_NLS" = "yes"; then
6411 gt_use_preinstalled_gnugettext=no
6412
6413
6414 if test $gt_api_version -ge 3; then
6415 gt_revision_test_code='
6416 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6417 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6418 #endif
6419 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6420 '
6421 else
6422 gt_revision_test_code=
6423 fi
6424 if test $gt_api_version -ge 2; then
6425 gt_expression_test_code=' + * ngettext ("", "", 0)'
6426 else
6427 gt_expression_test_code=
6428 fi
6429
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6431 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6432 if eval \${$gt_func_gnugettext_libc+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437
6438 #include <libintl.h>
6439 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6440 extern int _nl_msg_cat_cntr;
6441 extern int *_nl_domain_bindings;
6442 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
6443 #else
6444 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6445 #endif
6446 $gt_revision_test_code
6447
6448 int
6449 main ()
6450 {
6451
6452 bindtextdomain ("", "");
6453 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
6454
6455 ;
6456 return 0;
6457 }
6458 _ACEOF
6459 if ac_fn_c_try_link "$LINENO"; then :
6460 eval "$gt_func_gnugettext_libc=yes"
6461 else
6462 eval "$gt_func_gnugettext_libc=no"
6463 fi
6464 rm -f core conftest.err conftest.$ac_objext \
6465 conftest$ac_exeext conftest.$ac_ext
6466 fi
6467 eval ac_res=\$$gt_func_gnugettext_libc
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6469 $as_echo "$ac_res" >&6; }
6470
6471 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6472
6473
6474
6475
6476
6477 am_save_CPPFLAGS="$CPPFLAGS"
6478
6479 for element in $INCICONV; do
6480 haveit=
6481 for x in $CPPFLAGS; do
6482
6483 acl_save_prefix="$prefix"
6484 prefix="$acl_final_prefix"
6485 acl_save_exec_prefix="$exec_prefix"
6486 exec_prefix="$acl_final_exec_prefix"
6487 eval x=\"$x\"
6488 exec_prefix="$acl_save_exec_prefix"
6489 prefix="$acl_save_prefix"
6490
6491 if test "X$x" = "X$element"; then
6492 haveit=yes
6493 break
6494 fi
6495 done
6496 if test -z "$haveit"; then
6497 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6498 fi
6499 done
6500
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6503 $as_echo_n "checking for iconv... " >&6; }
6504 if ${am_cv_func_iconv+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507
6508 am_cv_func_iconv="no, consider installing GNU libiconv"
6509 am_cv_lib_iconv=no
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512
6513 #include <stdlib.h>
6514 #include <iconv.h>
6515
6516 int
6517 main ()
6518 {
6519 iconv_t cd = iconv_open("","");
6520 iconv(cd,NULL,NULL,NULL,NULL);
6521 iconv_close(cd);
6522 ;
6523 return 0;
6524 }
6525 _ACEOF
6526 if ac_fn_c_try_link "$LINENO"; then :
6527 am_cv_func_iconv=yes
6528 fi
6529 rm -f core conftest.err conftest.$ac_objext \
6530 conftest$ac_exeext conftest.$ac_ext
6531 if test "$am_cv_func_iconv" != yes; then
6532 am_save_LIBS="$LIBS"
6533 LIBS="$LIBS $LIBICONV"
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536
6537 #include <stdlib.h>
6538 #include <iconv.h>
6539
6540 int
6541 main ()
6542 {
6543 iconv_t cd = iconv_open("","");
6544 iconv(cd,NULL,NULL,NULL,NULL);
6545 iconv_close(cd);
6546 ;
6547 return 0;
6548 }
6549 _ACEOF
6550 if ac_fn_c_try_link "$LINENO"; then :
6551 am_cv_lib_iconv=yes
6552 am_cv_func_iconv=yes
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
6556 LIBS="$am_save_LIBS"
6557 fi
6558
6559 fi
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6561 $as_echo "$am_cv_func_iconv" >&6; }
6562 if test "$am_cv_func_iconv" = yes; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6564 $as_echo_n "checking for working iconv... " >&6; }
6565 if ${am_cv_func_iconv_works+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568
6569 am_save_LIBS="$LIBS"
6570 if test $am_cv_lib_iconv = yes; then
6571 LIBS="$LIBS $LIBICONV"
6572 fi
6573 am_cv_func_iconv_works=no
6574 for ac_iconv_const in '' 'const'; do
6575 if test "$cross_compiling" = yes; then :
6576 case "$host_os" in
6577 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6578 *) am_cv_func_iconv_works="guessing yes" ;;
6579 esac
6580 else
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6583
6584 #include <iconv.h>
6585 #include <string.h>
6586
6587 #ifndef ICONV_CONST
6588 # define ICONV_CONST $ac_iconv_const
6589 #endif
6590
6591 int
6592 main ()
6593 {
6594 int result = 0;
6595 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6596 returns. */
6597 {
6598 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6599 if (cd_utf8_to_88591 != (iconv_t)(-1))
6600 {
6601 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
6602 char buf[10];
6603 ICONV_CONST char *inptr = input;
6604 size_t inbytesleft = strlen (input);
6605 char *outptr = buf;
6606 size_t outbytesleft = sizeof (buf);
6607 size_t res = iconv (cd_utf8_to_88591,
6608 &inptr, &inbytesleft,
6609 &outptr, &outbytesleft);
6610 if (res == 0)
6611 result |= 1;
6612 iconv_close (cd_utf8_to_88591);
6613 }
6614 }
6615 /* Test against Solaris 10 bug: Failures are not distinguishable from
6616 successful returns. */
6617 {
6618 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6619 if (cd_ascii_to_88591 != (iconv_t)(-1))
6620 {
6621 static ICONV_CONST char input[] = "\263";
6622 char buf[10];
6623 ICONV_CONST char *inptr = input;
6624 size_t inbytesleft = strlen (input);
6625 char *outptr = buf;
6626 size_t outbytesleft = sizeof (buf);
6627 size_t res = iconv (cd_ascii_to_88591,
6628 &inptr, &inbytesleft,
6629 &outptr, &outbytesleft);
6630 if (res == 0)
6631 result |= 2;
6632 iconv_close (cd_ascii_to_88591);
6633 }
6634 }
6635 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
6636 {
6637 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6638 if (cd_88591_to_utf8 != (iconv_t)(-1))
6639 {
6640 static ICONV_CONST char input[] = "\304";
6641 static char buf[2] = { (char)0xDE, (char)0xAD };
6642 ICONV_CONST char *inptr = input;
6643 size_t inbytesleft = 1;
6644 char *outptr = buf;
6645 size_t outbytesleft = 1;
6646 size_t res = iconv (cd_88591_to_utf8,
6647 &inptr, &inbytesleft,
6648 &outptr, &outbytesleft);
6649 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6650 result |= 4;
6651 iconv_close (cd_88591_to_utf8);
6652 }
6653 }
6654 #if 0 /* This bug could be worked around by the caller. */
6655 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6656 {
6657 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6658 if (cd_88591_to_utf8 != (iconv_t)(-1))
6659 {
6660 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6661 char buf[50];
6662 ICONV_CONST char *inptr = input;
6663 size_t inbytesleft = strlen (input);
6664 char *outptr = buf;
6665 size_t outbytesleft = sizeof (buf);
6666 size_t res = iconv (cd_88591_to_utf8,
6667 &inptr, &inbytesleft,
6668 &outptr, &outbytesleft);
6669 if ((int)res > 0)
6670 result |= 8;
6671 iconv_close (cd_88591_to_utf8);
6672 }
6673 }
6674 #endif
6675 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6676 provided. */
6677 if (/* Try standardized names. */
6678 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6679 /* Try IRIX, OSF/1 names. */
6680 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6681 /* Try AIX names. */
6682 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6683 /* Try HP-UX names. */
6684 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6685 result |= 16;
6686 return result;
6687
6688 ;
6689 return 0;
6690 }
6691 _ACEOF
6692 if ac_fn_c_try_run "$LINENO"; then :
6693 am_cv_func_iconv_works=yes
6694 fi
6695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6696 conftest.$ac_objext conftest.beam conftest.$ac_ext
6697 fi
6698
6699 test "$am_cv_func_iconv_works" = no || break
6700 done
6701 LIBS="$am_save_LIBS"
6702
6703 fi
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6705 $as_echo "$am_cv_func_iconv_works" >&6; }
6706 case "$am_cv_func_iconv_works" in
6707 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6708 *) am_func_iconv=yes ;;
6709 esac
6710 else
6711 am_func_iconv=no am_cv_lib_iconv=no
6712 fi
6713 if test "$am_func_iconv" = yes; then
6714
6715 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6716
6717 fi
6718 if test "$am_cv_lib_iconv" = yes; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6720 $as_echo_n "checking how to link with libiconv... " >&6; }
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6722 $as_echo "$LIBICONV" >&6; }
6723 else
6724 CPPFLAGS="$am_save_CPPFLAGS"
6725 LIBICONV=
6726 LTLIBICONV=
6727 fi
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739 use_additional=yes
6740
6741 acl_save_prefix="$prefix"
6742 prefix="$acl_final_prefix"
6743 acl_save_exec_prefix="$exec_prefix"
6744 exec_prefix="$acl_final_exec_prefix"
6745
6746 eval additional_includedir=\"$includedir\"
6747 eval additional_libdir=\"$libdir\"
6748
6749 exec_prefix="$acl_save_exec_prefix"
6750 prefix="$acl_save_prefix"
6751
6752
6753 # Check whether --with-libintl-prefix was given.
6754 if test "${with_libintl_prefix+set}" = set; then :
6755 withval=$with_libintl_prefix;
6756 if test "X$withval" = "Xno"; then
6757 use_additional=no
6758 else
6759 if test "X$withval" = "X"; then
6760
6761 acl_save_prefix="$prefix"
6762 prefix="$acl_final_prefix"
6763 acl_save_exec_prefix="$exec_prefix"
6764 exec_prefix="$acl_final_exec_prefix"
6765
6766 eval additional_includedir=\"$includedir\"
6767 eval additional_libdir=\"$libdir\"
6768
6769 exec_prefix="$acl_save_exec_prefix"
6770 prefix="$acl_save_prefix"
6771
6772 else
6773 additional_includedir="$withval/include"
6774 additional_libdir="$withval/$acl_libdirstem"
6775 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6776 && ! test -d "$withval/$acl_libdirstem"; then
6777 additional_libdir="$withval/$acl_libdirstem2"
6778 fi
6779 fi
6780 fi
6781
6782 fi
6783
6784 LIBINTL=
6785 LTLIBINTL=
6786 INCINTL=
6787 LIBINTL_PREFIX=
6788 HAVE_LIBINTL=
6789 rpathdirs=
6790 ltrpathdirs=
6791 names_already_handled=
6792 names_next_round='intl '
6793 while test -n "$names_next_round"; do
6794 names_this_round="$names_next_round"
6795 names_next_round=
6796 for name in $names_this_round; do
6797 already_handled=
6798 for n in $names_already_handled; do
6799 if test "$n" = "$name"; then
6800 already_handled=yes
6801 break
6802 fi
6803 done
6804 if test -z "$already_handled"; then
6805 names_already_handled="$names_already_handled $name"
6806 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6807 eval value=\"\$HAVE_LIB$uppername\"
6808 if test -n "$value"; then
6809 if test "$value" = yes; then
6810 eval value=\"\$LIB$uppername\"
6811 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6812 eval value=\"\$LTLIB$uppername\"
6813 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6814 else
6815 :
6816 fi
6817 else
6818 found_dir=
6819 found_la=
6820 found_so=
6821 found_a=
6822 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6823 if test -n "$acl_shlibext"; then
6824 shrext=".$acl_shlibext" # typically: shrext=.so
6825 else
6826 shrext=
6827 fi
6828 if test $use_additional = yes; then
6829 dir="$additional_libdir"
6830 if test -n "$acl_shlibext"; then
6831 if test -f "$dir/$libname$shrext"; then
6832 found_dir="$dir"
6833 found_so="$dir/$libname$shrext"
6834 else
6835 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6836 ver=`(cd "$dir" && \
6837 for f in "$libname$shrext".*; do echo "$f"; done \
6838 | sed -e "s,^$libname$shrext\\\\.,," \
6839 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6840 | sed 1q ) 2>/dev/null`
6841 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6842 found_dir="$dir"
6843 found_so="$dir/$libname$shrext.$ver"
6844 fi
6845 else
6846 eval library_names=\"$acl_library_names_spec\"
6847 for f in $library_names; do
6848 if test -f "$dir/$f"; then
6849 found_dir="$dir"
6850 found_so="$dir/$f"
6851 break
6852 fi
6853 done
6854 fi
6855 fi
6856 fi
6857 if test "X$found_dir" = "X"; then
6858 if test -f "$dir/$libname.$acl_libext"; then
6859 found_dir="$dir"
6860 found_a="$dir/$libname.$acl_libext"
6861 fi
6862 fi
6863 if test "X$found_dir" != "X"; then
6864 if test -f "$dir/$libname.la"; then
6865 found_la="$dir/$libname.la"
6866 fi
6867 fi
6868 fi
6869 if test "X$found_dir" = "X"; then
6870 for x in $LDFLAGS $LTLIBINTL; do
6871
6872 acl_save_prefix="$prefix"
6873 prefix="$acl_final_prefix"
6874 acl_save_exec_prefix="$exec_prefix"
6875 exec_prefix="$acl_final_exec_prefix"
6876 eval x=\"$x\"
6877 exec_prefix="$acl_save_exec_prefix"
6878 prefix="$acl_save_prefix"
6879
6880 case "$x" in
6881 -L*)
6882 dir=`echo "X$x" | sed -e 's/^X-L//'`
6883 if test -n "$acl_shlibext"; then
6884 if test -f "$dir/$libname$shrext"; then
6885 found_dir="$dir"
6886 found_so="$dir/$libname$shrext"
6887 else
6888 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6889 ver=`(cd "$dir" && \
6890 for f in "$libname$shrext".*; do echo "$f"; done \
6891 | sed -e "s,^$libname$shrext\\\\.,," \
6892 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6893 | sed 1q ) 2>/dev/null`
6894 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6895 found_dir="$dir"
6896 found_so="$dir/$libname$shrext.$ver"
6897 fi
6898 else
6899 eval library_names=\"$acl_library_names_spec\"
6900 for f in $library_names; do
6901 if test -f "$dir/$f"; then
6902 found_dir="$dir"
6903 found_so="$dir/$f"
6904 break
6905 fi
6906 done
6907 fi
6908 fi
6909 fi
6910 if test "X$found_dir" = "X"; then
6911 if test -f "$dir/$libname.$acl_libext"; then
6912 found_dir="$dir"
6913 found_a="$dir/$libname.$acl_libext"
6914 fi
6915 fi
6916 if test "X$found_dir" != "X"; then
6917 if test -f "$dir/$libname.la"; then
6918 found_la="$dir/$libname.la"
6919 fi
6920 fi
6921 ;;
6922 esac
6923 if test "X$found_dir" != "X"; then
6924 break
6925 fi
6926 done
6927 fi
6928 if test "X$found_dir" != "X"; then
6929 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6930 if test "X$found_so" != "X"; then
6931 if test "$enable_rpath" = no \
6932 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6933 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6934 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6935 else
6936 haveit=
6937 for x in $ltrpathdirs; do
6938 if test "X$x" = "X$found_dir"; then
6939 haveit=yes
6940 break
6941 fi
6942 done
6943 if test -z "$haveit"; then
6944 ltrpathdirs="$ltrpathdirs $found_dir"
6945 fi
6946 if test "$acl_hardcode_direct" = yes; then
6947 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6948 else
6949 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6950 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6951 haveit=
6952 for x in $rpathdirs; do
6953 if test "X$x" = "X$found_dir"; then
6954 haveit=yes
6955 break
6956 fi
6957 done
6958 if test -z "$haveit"; then
6959 rpathdirs="$rpathdirs $found_dir"
6960 fi
6961 else
6962 haveit=
6963 for x in $LDFLAGS $LIBINTL; do
6964
6965 acl_save_prefix="$prefix"
6966 prefix="$acl_final_prefix"
6967 acl_save_exec_prefix="$exec_prefix"
6968 exec_prefix="$acl_final_exec_prefix"
6969 eval x=\"$x\"
6970 exec_prefix="$acl_save_exec_prefix"
6971 prefix="$acl_save_prefix"
6972
6973 if test "X$x" = "X-L$found_dir"; then
6974 haveit=yes
6975 break
6976 fi
6977 done
6978 if test -z "$haveit"; then
6979 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6980 fi
6981 if test "$acl_hardcode_minus_L" != no; then
6982 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6983 else
6984 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6985 fi
6986 fi
6987 fi
6988 fi
6989 else
6990 if test "X$found_a" != "X"; then
6991 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6992 else
6993 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6994 fi
6995 fi
6996 additional_includedir=
6997 case "$found_dir" in
6998 */$acl_libdirstem | */$acl_libdirstem/)
6999 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7000 if test "$name" = 'intl'; then
7001 LIBINTL_PREFIX="$basedir"
7002 fi
7003 additional_includedir="$basedir/include"
7004 ;;
7005 */$acl_libdirstem2 | */$acl_libdirstem2/)
7006 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7007 if test "$name" = 'intl'; then
7008 LIBINTL_PREFIX="$basedir"
7009 fi
7010 additional_includedir="$basedir/include"
7011 ;;
7012 esac
7013 if test "X$additional_includedir" != "X"; then
7014 if test "X$additional_includedir" != "X/usr/include"; then
7015 haveit=
7016 if test "X$additional_includedir" = "X/usr/local/include"; then
7017 if test -n "$GCC"; then
7018 case $host_os in
7019 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7020 esac
7021 fi
7022 fi
7023 if test -z "$haveit"; then
7024 for x in $CPPFLAGS $INCINTL; do
7025
7026 acl_save_prefix="$prefix"
7027 prefix="$acl_final_prefix"
7028 acl_save_exec_prefix="$exec_prefix"
7029 exec_prefix="$acl_final_exec_prefix"
7030 eval x=\"$x\"
7031 exec_prefix="$acl_save_exec_prefix"
7032 prefix="$acl_save_prefix"
7033
7034 if test "X$x" = "X-I$additional_includedir"; then
7035 haveit=yes
7036 break
7037 fi
7038 done
7039 if test -z "$haveit"; then
7040 if test -d "$additional_includedir"; then
7041 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7042 fi
7043 fi
7044 fi
7045 fi
7046 fi
7047 if test -n "$found_la"; then
7048 save_libdir="$libdir"
7049 case "$found_la" in
7050 */* | *\\*) . "$found_la" ;;
7051 *) . "./$found_la" ;;
7052 esac
7053 libdir="$save_libdir"
7054 for dep in $dependency_libs; do
7055 case "$dep" in
7056 -L*)
7057 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7058 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7059 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7060 haveit=
7061 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7062 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7063 if test -n "$GCC"; then
7064 case $host_os in
7065 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7066 esac
7067 fi
7068 fi
7069 if test -z "$haveit"; then
7070 haveit=
7071 for x in $LDFLAGS $LIBINTL; do
7072
7073 acl_save_prefix="$prefix"
7074 prefix="$acl_final_prefix"
7075 acl_save_exec_prefix="$exec_prefix"
7076 exec_prefix="$acl_final_exec_prefix"
7077 eval x=\"$x\"
7078 exec_prefix="$acl_save_exec_prefix"
7079 prefix="$acl_save_prefix"
7080
7081 if test "X$x" = "X-L$additional_libdir"; then
7082 haveit=yes
7083 break
7084 fi
7085 done
7086 if test -z "$haveit"; then
7087 if test -d "$additional_libdir"; then
7088 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7089 fi
7090 fi
7091 haveit=
7092 for x in $LDFLAGS $LTLIBINTL; do
7093
7094 acl_save_prefix="$prefix"
7095 prefix="$acl_final_prefix"
7096 acl_save_exec_prefix="$exec_prefix"
7097 exec_prefix="$acl_final_exec_prefix"
7098 eval x=\"$x\"
7099 exec_prefix="$acl_save_exec_prefix"
7100 prefix="$acl_save_prefix"
7101
7102 if test "X$x" = "X-L$additional_libdir"; then
7103 haveit=yes
7104 break
7105 fi
7106 done
7107 if test -z "$haveit"; then
7108 if test -d "$additional_libdir"; then
7109 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7110 fi
7111 fi
7112 fi
7113 fi
7114 ;;
7115 -R*)
7116 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7117 if test "$enable_rpath" != no; then
7118 haveit=
7119 for x in $rpathdirs; do
7120 if test "X$x" = "X$dir"; then
7121 haveit=yes
7122 break
7123 fi
7124 done
7125 if test -z "$haveit"; then
7126 rpathdirs="$rpathdirs $dir"
7127 fi
7128 haveit=
7129 for x in $ltrpathdirs; do
7130 if test "X$x" = "X$dir"; then
7131 haveit=yes
7132 break
7133 fi
7134 done
7135 if test -z "$haveit"; then
7136 ltrpathdirs="$ltrpathdirs $dir"
7137 fi
7138 fi
7139 ;;
7140 -l*)
7141 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7142 ;;
7143 *.la)
7144 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7145 ;;
7146 *)
7147 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7148 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7149 ;;
7150 esac
7151 done
7152 fi
7153 else
7154 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7155 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7156 fi
7157 fi
7158 fi
7159 done
7160 done
7161 if test "X$rpathdirs" != "X"; then
7162 if test -n "$acl_hardcode_libdir_separator"; then
7163 alldirs=
7164 for found_dir in $rpathdirs; do
7165 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7166 done
7167 acl_save_libdir="$libdir"
7168 libdir="$alldirs"
7169 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7170 libdir="$acl_save_libdir"
7171 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7172 else
7173 for found_dir in $rpathdirs; do
7174 acl_save_libdir="$libdir"
7175 libdir="$found_dir"
7176 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7177 libdir="$acl_save_libdir"
7178 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7179 done
7180 fi
7181 fi
7182 if test "X$ltrpathdirs" != "X"; then
7183 for found_dir in $ltrpathdirs; do
7184 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7185 done
7186 fi
7187
7188
7189
7190
7191
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7194 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7195 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 gt_save_CPPFLAGS="$CPPFLAGS"
7199 CPPFLAGS="$CPPFLAGS $INCINTL"
7200 gt_save_LIBS="$LIBS"
7201 LIBS="$LIBS $LIBINTL"
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204
7205 #include <libintl.h>
7206 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7207 extern int _nl_msg_cat_cntr;
7208 extern
7209 #ifdef __cplusplus
7210 "C"
7211 #endif
7212 const char *_nl_expand_alias (const char *);
7213 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7214 #else
7215 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7216 #endif
7217 $gt_revision_test_code
7218
7219 int
7220 main ()
7221 {
7222
7223 bindtextdomain ("", "");
7224 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7225
7226 ;
7227 return 0;
7228 }
7229 _ACEOF
7230 if ac_fn_c_try_link "$LINENO"; then :
7231 eval "$gt_func_gnugettext_libintl=yes"
7232 else
7233 eval "$gt_func_gnugettext_libintl=no"
7234 fi
7235 rm -f core conftest.err conftest.$ac_objext \
7236 conftest$ac_exeext conftest.$ac_ext
7237 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7238 LIBS="$LIBS $LIBICONV"
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241
7242 #include <libintl.h>
7243 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7244 extern int _nl_msg_cat_cntr;
7245 extern
7246 #ifdef __cplusplus
7247 "C"
7248 #endif
7249 const char *_nl_expand_alias (const char *);
7250 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7251 #else
7252 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7253 #endif
7254 $gt_revision_test_code
7255
7256 int
7257 main ()
7258 {
7259
7260 bindtextdomain ("", "");
7261 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7262
7263 ;
7264 return 0;
7265 }
7266 _ACEOF
7267 if ac_fn_c_try_link "$LINENO"; then :
7268 LIBINTL="$LIBINTL $LIBICONV"
7269 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7270 eval "$gt_func_gnugettext_libintl=yes"
7271
7272 fi
7273 rm -f core conftest.err conftest.$ac_objext \
7274 conftest$ac_exeext conftest.$ac_ext
7275 fi
7276 CPPFLAGS="$gt_save_CPPFLAGS"
7277 LIBS="$gt_save_LIBS"
7278 fi
7279 eval ac_res=\$$gt_func_gnugettext_libintl
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7281 $as_echo "$ac_res" >&6; }
7282 fi
7283
7284 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7285 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7286 && test "$PACKAGE" != gettext-runtime \
7287 && test "$PACKAGE" != gettext-tools; }; then
7288 gt_use_preinstalled_gnugettext=yes
7289 else
7290 LIBINTL=
7291 LTLIBINTL=
7292 INCINTL=
7293 fi
7294
7295
7296
7297 if test -n "$INTL_MACOSX_LIBS"; then
7298 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7299 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7300 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7301 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7302 fi
7303 fi
7304
7305 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7306 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7307
7308 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7309
7310 else
7311 USE_NLS=no
7312 fi
7313 fi
7314
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7316 $as_echo_n "checking whether to use NLS... " >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7318 $as_echo "$USE_NLS" >&6; }
7319 if test "$USE_NLS" = "yes"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7321 $as_echo_n "checking where the gettext function comes from... " >&6; }
7322 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7323 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7324 gt_source="external libintl"
7325 else
7326 gt_source="libc"
7327 fi
7328 else
7329 gt_source="included intl directory"
7330 fi
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7332 $as_echo "$gt_source" >&6; }
7333 fi
7334
7335 if test "$USE_NLS" = "yes"; then
7336
7337 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7338 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7340 $as_echo_n "checking how to link with libintl... " >&6; }
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7342 $as_echo "$LIBINTL" >&6; }
7343
7344 for element in $INCINTL; do
7345 haveit=
7346 for x in $CPPFLAGS; do
7347
7348 acl_save_prefix="$prefix"
7349 prefix="$acl_final_prefix"
7350 acl_save_exec_prefix="$exec_prefix"
7351 exec_prefix="$acl_final_exec_prefix"
7352 eval x=\"$x\"
7353 exec_prefix="$acl_save_exec_prefix"
7354 prefix="$acl_save_prefix"
7355
7356 if test "X$x" = "X$element"; then
7357 haveit=yes
7358 break
7359 fi
7360 done
7361 if test -z "$haveit"; then
7362 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7363 fi
7364 done
7365
7366 fi
7367
7368
7369 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7370
7371
7372 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7373
7374 fi
7375
7376 POSUB=po
7377 fi
7378
7379
7380
7381 INTLLIBS="$LIBINTL"
7382
7383
7384
7385
7386
7387
7388
7389 if test ! -f $srcdir/.dist-version && test "$GMSGFMT" = ":" && test "$USE_NLS" = "yes"; then :
7390
7391 as_fn_error $? "not building from distributed tarball, gettext required when NLS support enabled" "$LINENO" 5
7392
7393 fi
7394
7395
7396 # Shared libraries are disabled on purpose, currently there is no ABI stability
7397 # guarantee, and it will be broken at will. The infrastructure is in place just
7398 # to be able to test that its future activation will work.
7399 if test -n "$ac_tool_prefix"; then
7400 for ac_prog in ar lib "link -lib"
7401 do
7402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_AR+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 if test -n "$AR"; then
7410 ac_cv_prog_AR="$AR" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7422 fi
7423 done
7424 done
7425 IFS=$as_save_IFS
7426
7427 fi
7428 fi
7429 AR=$ac_cv_prog_AR
7430 if test -n "$AR"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7432 $as_echo "$AR" >&6; }
7433 else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7436 fi
7437
7438
7439 test -n "$AR" && break
7440 done
7441 fi
7442 if test -z "$AR"; then
7443 ac_ct_AR=$AR
7444 for ac_prog in ar lib "link -lib"
7445 do
7446 # Extract the first word of "$ac_prog", so it can be a program name with args.
7447 set dummy $ac_prog; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 if test -n "$ac_ct_AR"; then
7454 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7458 do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_ac_ct_AR="$ac_prog"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467 done
7468 done
7469 IFS=$as_save_IFS
7470
7471 fi
7472 fi
7473 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7474 if test -n "$ac_ct_AR"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7476 $as_echo "$ac_ct_AR" >&6; }
7477 else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7480 fi
7481
7482
7483 test -n "$ac_ct_AR" && break
7484 done
7485
7486 if test "x$ac_ct_AR" = x; then
7487 AR="false"
7488 else
7489 case $cross_compiling:$ac_tool_warned in
7490 yes:)
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7493 ac_tool_warned=yes ;;
7494 esac
7495 AR=$ac_ct_AR
7496 fi
7497 fi
7498
7499 : ${AR=ar}
7500
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7502 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
7503 if ${am_cv_ar_interface+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 ac_ext=c
7507 ac_cpp='$CPP $CPPFLAGS'
7508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511
7512 am_cv_ar_interface=ar
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7515 int some_variable = 0;
7516 _ACEOF
7517 if ac_fn_c_try_compile "$LINENO"; then :
7518 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7520 (eval $am_ar_try) 2>&5
7521 ac_status=$?
7522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7523 test $ac_status = 0; }
7524 if test "$ac_status" -eq 0; then
7525 am_cv_ar_interface=ar
7526 else
7527 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7529 (eval $am_ar_try) 2>&5
7530 ac_status=$?
7531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532 test $ac_status = 0; }
7533 if test "$ac_status" -eq 0; then
7534 am_cv_ar_interface=lib
7535 else
7536 am_cv_ar_interface=unknown
7537 fi
7538 fi
7539 rm -f conftest.lib libconftest.a
7540
7541 fi
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 ac_ext=c
7544 ac_cpp='$CPP $CPPFLAGS'
7545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7548
7549 fi
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7551 $as_echo "$am_cv_ar_interface" >&6; }
7552
7553 case $am_cv_ar_interface in
7554 ar)
7555 ;;
7556 lib)
7557 # Microsoft lib, so override with the ar-lib wrapper script.
7558 # FIXME: It is wrong to rewrite AR.
7559 # But if we don't then we get into trouble of one sort or another.
7560 # A longer-term fix would be to have automake use am__AR in this case,
7561 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7562 # similar.
7563 AR="$am_aux_dir/ar-lib $AR"
7564 ;;
7565 unknown)
7566 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7567 ;;
7568 esac
7569
7570 case `pwd` in
7571 *\ * | *\ *)
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7573 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7574 esac
7575
7576
7577
7578 macro_version='2.4.6'
7579 macro_revision='2.4.6'
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593 ltmain=$ac_aux_dir/ltmain.sh
7594
7595 # Backslashify metacharacters that are still active within
7596 # double-quoted strings.
7597 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7598
7599 # Same as above, but do not quote variable references.
7600 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7601
7602 # Sed substitution to delay expansion of an escaped shell variable in a
7603 # double_quote_subst'ed string.
7604 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7605
7606 # Sed substitution to delay expansion of an escaped single quote.
7607 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7608
7609 # Sed substitution to avoid accidental globbing in evaled expressions
7610 no_glob_subst='s/\*/\\\*/g'
7611
7612 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7613 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7614 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7615
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7617 $as_echo_n "checking how to print strings... " >&6; }
7618 # Test print first, because it will be a builtin if present.
7619 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7620 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7621 ECHO='print -r --'
7622 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7623 ECHO='printf %s\n'
7624 else
7625 # Use this function as a fallback that always works.
7626 func_fallback_echo ()
7627 {
7628 eval 'cat <<_LTECHO_EOF
7629 $1
7630 _LTECHO_EOF'
7631 }
7632 ECHO='func_fallback_echo'
7633 fi
7634
7635 # func_echo_all arg...
7636 # Invoke $ECHO with all args, space-separated.
7637 func_echo_all ()
7638 {
7639 $ECHO ""
7640 }
7641
7642 case $ECHO in
7643 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7644 $as_echo "printf" >&6; } ;;
7645 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7646 $as_echo "print -r" >&6; } ;;
7647 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7648 $as_echo "cat" >&6; } ;;
7649 esac
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7666 if ${ac_cv_path_SED+:} false; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7670 for ac_i in 1 2 3 4 5 6 7; do
7671 ac_script="$ac_script$as_nl$ac_script"
7672 done
7673 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7674 { ac_script=; unset ac_script;}
7675 if test -z "$SED"; then
7676 ac_path_SED_found=false
7677 # Loop through the user's path and test for each of PROGNAME-LIST
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
7683 for ac_prog in sed gsed; do
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7686 as_fn_executable_p "$ac_path_SED" || continue
7687 # Check for GNU ac_path_SED and select it if it is found.
7688 # Check for GNU $ac_path_SED
7689 case `"$ac_path_SED" --version 2>&1` in
7690 *GNU*)
7691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7692 *)
7693 ac_count=0
7694 $as_echo_n 0123456789 >"conftest.in"
7695 while :
7696 do
7697 cat "conftest.in" "conftest.in" >"conftest.tmp"
7698 mv "conftest.tmp" "conftest.in"
7699 cp "conftest.in" "conftest.nl"
7700 $as_echo '' >> "conftest.nl"
7701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7703 as_fn_arith $ac_count + 1 && ac_count=$as_val
7704 if test $ac_count -gt ${ac_path_SED_max-0}; then
7705 # Best one so far, save it but keep looking for a better one
7706 ac_cv_path_SED="$ac_path_SED"
7707 ac_path_SED_max=$ac_count
7708 fi
7709 # 10*(2^10) chars as input seems more than enough
7710 test $ac_count -gt 10 && break
7711 done
7712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7713 esac
7714
7715 $ac_path_SED_found && break 3
7716 done
7717 done
7718 done
7719 IFS=$as_save_IFS
7720 if test -z "$ac_cv_path_SED"; then
7721 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7722 fi
7723 else
7724 ac_cv_path_SED=$SED
7725 fi
7726
7727 fi
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7729 $as_echo "$ac_cv_path_SED" >&6; }
7730 SED="$ac_cv_path_SED"
7731 rm -f conftest.sed
7732
7733 test -z "$SED" && SED=sed
7734 Xsed="$SED -e 1s/^X//"
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7747 $as_echo_n "checking for fgrep... " >&6; }
7748 if ${ac_cv_path_FGREP+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7752 then ac_cv_path_FGREP="$GREP -F"
7753 else
7754 if test -z "$FGREP"; then
7755 ac_path_FGREP_found=false
7756 # Loop through the user's path and test for each of PROGNAME-LIST
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7759 do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_prog in fgrep; do
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7765 as_fn_executable_p "$ac_path_FGREP" || continue
7766 # Check for GNU ac_path_FGREP and select it if it is found.
7767 # Check for GNU $ac_path_FGREP
7768 case `"$ac_path_FGREP" --version 2>&1` in
7769 *GNU*)
7770 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7771 *)
7772 ac_count=0
7773 $as_echo_n 0123456789 >"conftest.in"
7774 while :
7775 do
7776 cat "conftest.in" "conftest.in" >"conftest.tmp"
7777 mv "conftest.tmp" "conftest.in"
7778 cp "conftest.in" "conftest.nl"
7779 $as_echo 'FGREP' >> "conftest.nl"
7780 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7782 as_fn_arith $ac_count + 1 && ac_count=$as_val
7783 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7784 # Best one so far, save it but keep looking for a better one
7785 ac_cv_path_FGREP="$ac_path_FGREP"
7786 ac_path_FGREP_max=$ac_count
7787 fi
7788 # 10*(2^10) chars as input seems more than enough
7789 test $ac_count -gt 10 && break
7790 done
7791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7792 esac
7793
7794 $ac_path_FGREP_found && break 3
7795 done
7796 done
7797 done
7798 IFS=$as_save_IFS
7799 if test -z "$ac_cv_path_FGREP"; then
7800 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7801 fi
7802 else
7803 ac_cv_path_FGREP=$FGREP
7804 fi
7805
7806 fi
7807 fi
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7809 $as_echo "$ac_cv_path_FGREP" >&6; }
7810 FGREP="$ac_cv_path_FGREP"
7811
7812
7813 test -z "$GREP" && GREP=grep
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833 # Check whether --with-gnu-ld was given.
7834 if test "${with_gnu_ld+set}" = set; then :
7835 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7836 else
7837 with_gnu_ld=no
7838 fi
7839
7840 ac_prog=ld
7841 if test yes = "$GCC"; then
7842 # Check if gcc -print-prog-name=ld gives a path.
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7844 $as_echo_n "checking for ld used by $CC... " >&6; }
7845 case $host in
7846 *-*-mingw*)
7847 # gcc leaves a trailing carriage return, which upsets mingw
7848 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7849 *)
7850 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7851 esac
7852 case $ac_prog in
7853 # Accept absolute paths.
7854 [\\/]* | ?:[\\/]*)
7855 re_direlt='/[^/][^/]*/\.\./'
7856 # Canonicalize the pathname of ld
7857 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7858 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7859 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7860 done
7861 test -z "$LD" && LD=$ac_prog
7862 ;;
7863 "")
7864 # If it fails, then pretend we aren't using GCC.
7865 ac_prog=ld
7866 ;;
7867 *)
7868 # If it is relative, then search for the first ld in PATH.
7869 with_gnu_ld=unknown
7870 ;;
7871 esac
7872 elif test yes = "$with_gnu_ld"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7874 $as_echo_n "checking for GNU ld... " >&6; }
7875 else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7877 $as_echo_n "checking for non-GNU ld... " >&6; }
7878 fi
7879 if ${lt_cv_path_LD+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 if test -z "$LD"; then
7883 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7884 for ac_dir in $PATH; do
7885 IFS=$lt_save_ifs
7886 test -z "$ac_dir" && ac_dir=.
7887 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7888 lt_cv_path_LD=$ac_dir/$ac_prog
7889 # Check to see if the program is GNU ld. I'd rather use --version,
7890 # but apparently some variants of GNU ld only accept -v.
7891 # Break only if it was the GNU/non-GNU ld that we prefer.
7892 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7893 *GNU* | *'with BFD'*)
7894 test no != "$with_gnu_ld" && break
7895 ;;
7896 *)
7897 test yes != "$with_gnu_ld" && break
7898 ;;
7899 esac
7900 fi
7901 done
7902 IFS=$lt_save_ifs
7903 else
7904 lt_cv_path_LD=$LD # Let the user override the test with a path.
7905 fi
7906 fi
7907
7908 LD=$lt_cv_path_LD
7909 if test -n "$LD"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7911 $as_echo "$LD" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7916 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7918 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7919 if ${lt_cv_prog_gnu_ld+:} false; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7923 case `$LD -v 2>&1 </dev/null` in
7924 *GNU* | *'with BFD'*)
7925 lt_cv_prog_gnu_ld=yes
7926 ;;
7927 *)
7928 lt_cv_prog_gnu_ld=no
7929 ;;
7930 esac
7931 fi
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7933 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7934 with_gnu_ld=$lt_cv_prog_gnu_ld
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7945 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7946 if ${lt_cv_path_NM+:} false; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 if test -n "$NM"; then
7950 # Let the user override the test.
7951 lt_cv_path_NM=$NM
7952 else
7953 lt_nm_to_check=${ac_tool_prefix}nm
7954 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7955 lt_nm_to_check="$lt_nm_to_check nm"
7956 fi
7957 for lt_tmp_nm in $lt_nm_to_check; do
7958 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7959 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7960 IFS=$lt_save_ifs
7961 test -z "$ac_dir" && ac_dir=.
7962 tmp_nm=$ac_dir/$lt_tmp_nm
7963 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7964 # Check to see if the nm accepts a BSD-compat flag.
7965 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7966 # nm: unknown option "B" ignored
7967 # Tru64's nm complains that /dev/null is an invalid object file
7968 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7969 case $build_os in
7970 mingw*) lt_bad_file=conftest.nm/nofile ;;
7971 *) lt_bad_file=/dev/null ;;
7972 esac
7973 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7974 *$lt_bad_file* | *'Invalid file or object type'*)
7975 lt_cv_path_NM="$tmp_nm -B"
7976 break 2
7977 ;;
7978 *)
7979 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7980 */dev/null*)
7981 lt_cv_path_NM="$tmp_nm -p"
7982 break 2
7983 ;;
7984 *)
7985 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7986 continue # so that we can try to find one that supports BSD flags
7987 ;;
7988 esac
7989 ;;
7990 esac
7991 fi
7992 done
7993 IFS=$lt_save_ifs
7994 done
7995 : ${lt_cv_path_NM=no}
7996 fi
7997 fi
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7999 $as_echo "$lt_cv_path_NM" >&6; }
8000 if test no != "$lt_cv_path_NM"; then
8001 NM=$lt_cv_path_NM
8002 else
8003 # Didn't find any BSD compatible name lister, look for dumpbin.
8004 if test -n "$DUMPBIN"; then :
8005 # Let the user override the test.
8006 else
8007 if test -n "$ac_tool_prefix"; then
8008 for ac_prog in dumpbin "link -dump"
8009 do
8010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 $as_echo_n "checking for $ac_word... " >&6; }
8014 if ${ac_cv_prog_DUMPBIN+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017 if test -n "$DUMPBIN"; then
8018 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8019 else
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031 done
8032 done
8033 IFS=$as_save_IFS
8034
8035 fi
8036 fi
8037 DUMPBIN=$ac_cv_prog_DUMPBIN
8038 if test -n "$DUMPBIN"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8040 $as_echo "$DUMPBIN" >&6; }
8041 else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8044 fi
8045
8046
8047 test -n "$DUMPBIN" && break
8048 done
8049 fi
8050 if test -z "$DUMPBIN"; then
8051 ac_ct_DUMPBIN=$DUMPBIN
8052 for ac_prog in dumpbin "link -dump"
8053 do
8054 # Extract the first word of "$ac_prog", so it can be a program name with args.
8055 set dummy $ac_prog; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 if test -n "$ac_ct_DUMPBIN"; then
8062 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8063 else
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8066 do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8074 fi
8075 done
8076 done
8077 IFS=$as_save_IFS
8078
8079 fi
8080 fi
8081 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8082 if test -n "$ac_ct_DUMPBIN"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8084 $as_echo "$ac_ct_DUMPBIN" >&6; }
8085 else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8088 fi
8089
8090
8091 test -n "$ac_ct_DUMPBIN" && break
8092 done
8093
8094 if test "x$ac_ct_DUMPBIN" = x; then
8095 DUMPBIN=":"
8096 else
8097 case $cross_compiling:$ac_tool_warned in
8098 yes:)
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8101 ac_tool_warned=yes ;;
8102 esac
8103 DUMPBIN=$ac_ct_DUMPBIN
8104 fi
8105 fi
8106
8107 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8108 *COFF*)
8109 DUMPBIN="$DUMPBIN -symbols -headers"
8110 ;;
8111 *)
8112 DUMPBIN=:
8113 ;;
8114 esac
8115 fi
8116
8117 if test : != "$DUMPBIN"; then
8118 NM=$DUMPBIN
8119 fi
8120 fi
8121 test -z "$NM" && NM=nm
8122
8123
8124
8125
8126
8127
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8129 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8130 if ${lt_cv_nm_interface+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 lt_cv_nm_interface="BSD nm"
8134 echo "int some_variable = 0;" > conftest.$ac_ext
8135 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8136 (eval "$ac_compile" 2>conftest.err)
8137 cat conftest.err >&5
8138 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8139 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8140 cat conftest.err >&5
8141 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8142 cat conftest.out >&5
8143 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8144 lt_cv_nm_interface="MS dumpbin"
8145 fi
8146 rm -f conftest*
8147 fi
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8149 $as_echo "$lt_cv_nm_interface" >&6; }
8150
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8152 $as_echo_n "checking whether ln -s works... " >&6; }
8153 LN_S=$as_ln_s
8154 if test "$LN_S" = "ln -s"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8156 $as_echo "yes" >&6; }
8157 else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8159 $as_echo "no, using $LN_S" >&6; }
8160 fi
8161
8162 # find the maximum length of command line arguments
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8164 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8165 if ${lt_cv_sys_max_cmd_len+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 i=0
8169 teststring=ABCD
8170
8171 case $build_os in
8172 msdosdjgpp*)
8173 # On DJGPP, this test can blow up pretty badly due to problems in libc
8174 # (any single argument exceeding 2000 bytes causes a buffer overrun
8175 # during glob expansion). Even if it were fixed, the result of this
8176 # check would be larger than it should be.
8177 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8178 ;;
8179
8180 gnu*)
8181 # Under GNU Hurd, this test is not required because there is
8182 # no limit to the length of command line arguments.
8183 # Libtool will interpret -1 as no limit whatsoever
8184 lt_cv_sys_max_cmd_len=-1;
8185 ;;
8186
8187 cygwin* | mingw* | cegcc*)
8188 # On Win9x/ME, this test blows up -- it succeeds, but takes
8189 # about 5 minutes as the teststring grows exponentially.
8190 # Worse, since 9x/ME are not pre-emptively multitasking,
8191 # you end up with a "frozen" computer, even though with patience
8192 # the test eventually succeeds (with a max line length of 256k).
8193 # Instead, let's just punt: use the minimum linelength reported by
8194 # all of the supported platforms: 8192 (on NT/2K/XP).
8195 lt_cv_sys_max_cmd_len=8192;
8196 ;;
8197
8198 mint*)
8199 # On MiNT this can take a long time and run out of memory.
8200 lt_cv_sys_max_cmd_len=8192;
8201 ;;
8202
8203 amigaos*)
8204 # On AmigaOS with pdksh, this test takes hours, literally.
8205 # So we just punt and use a minimum line length of 8192.
8206 lt_cv_sys_max_cmd_len=8192;
8207 ;;
8208
8209 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8210 # This has been around since 386BSD, at least. Likely further.
8211 if test -x /sbin/sysctl; then
8212 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8213 elif test -x /usr/sbin/sysctl; then
8214 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8215 else
8216 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8217 fi
8218 # And add a safety zone
8219 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8221 ;;
8222
8223 interix*)
8224 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8225 lt_cv_sys_max_cmd_len=196608
8226 ;;
8227
8228 os2*)
8229 # The test takes a long time on OS/2.
8230 lt_cv_sys_max_cmd_len=8192
8231 ;;
8232
8233 osf*)
8234 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8235 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8236 # nice to cause kernel panics so lets avoid the loop below.
8237 # First set a reasonable default.
8238 lt_cv_sys_max_cmd_len=16384
8239 #
8240 if test -x /sbin/sysconfig; then
8241 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8242 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8243 esac
8244 fi
8245 ;;
8246 sco3.2v5*)
8247 lt_cv_sys_max_cmd_len=102400
8248 ;;
8249 sysv5* | sco5v6* | sysv4.2uw2*)
8250 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8251 if test -n "$kargmax"; then
8252 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8253 else
8254 lt_cv_sys_max_cmd_len=32768
8255 fi
8256 ;;
8257 *)
8258 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8259 if test -n "$lt_cv_sys_max_cmd_len" && \
8260 test undefined != "$lt_cv_sys_max_cmd_len"; then
8261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8263 else
8264 # Make teststring a little bigger before we do anything with it.
8265 # a 1K string should be a reasonable start.
8266 for i in 1 2 3 4 5 6 7 8; do
8267 teststring=$teststring$teststring
8268 done
8269 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8270 # If test is not a shell built-in, we'll probably end up computing a
8271 # maximum length that is only half of the actual maximum length, but
8272 # we can't tell.
8273 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8274 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8275 test 17 != "$i" # 1/2 MB should be enough
8276 do
8277 i=`expr $i + 1`
8278 teststring=$teststring$teststring
8279 done
8280 # Only check the string length outside the loop.
8281 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8282 teststring=
8283 # Add a significant safety factor because C++ compilers can tack on
8284 # massive amounts of additional arguments before passing them to the
8285 # linker. It appears as though 1/2 is a usable value.
8286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8287 fi
8288 ;;
8289 esac
8290
8291 fi
8292
8293 if test -n "$lt_cv_sys_max_cmd_len"; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8295 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8296 else
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8298 $as_echo "none" >&6; }
8299 fi
8300 max_cmd_len=$lt_cv_sys_max_cmd_len
8301
8302
8303
8304
8305
8306
8307 : ${CP="cp -f"}
8308 : ${MV="mv -f"}
8309 : ${RM="rm -f"}
8310
8311 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8312 lt_unset=unset
8313 else
8314 lt_unset=false
8315 fi
8316
8317
8318
8319
8320
8321 # test EBCDIC or ASCII
8322 case `echo X|tr X '\101'` in
8323 A) # ASCII based system
8324 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8325 lt_SP2NL='tr \040 \012'
8326 lt_NL2SP='tr \015\012 \040\040'
8327 ;;
8328 *) # EBCDIC based system
8329 lt_SP2NL='tr \100 \n'
8330 lt_NL2SP='tr \r\n \100\100'
8331 ;;
8332 esac
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8343 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8344 if ${lt_cv_to_host_file_cmd+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 case $host in
8348 *-*-mingw* )
8349 case $build in
8350 *-*-mingw* ) # actually msys
8351 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8352 ;;
8353 *-*-cygwin* )
8354 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8355 ;;
8356 * ) # otherwise, assume *nix
8357 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8358 ;;
8359 esac
8360 ;;
8361 *-*-cygwin* )
8362 case $build in
8363 *-*-mingw* ) # actually msys
8364 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8365 ;;
8366 *-*-cygwin* )
8367 lt_cv_to_host_file_cmd=func_convert_file_noop
8368 ;;
8369 * ) # otherwise, assume *nix
8370 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8371 ;;
8372 esac
8373 ;;
8374 * ) # unhandled hosts (and "normal" native builds)
8375 lt_cv_to_host_file_cmd=func_convert_file_noop
8376 ;;
8377 esac
8378
8379 fi
8380
8381 to_host_file_cmd=$lt_cv_to_host_file_cmd
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8383 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8384
8385
8386
8387
8388
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8390 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8391 if ${lt_cv_to_tool_file_cmd+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 #assume ordinary cross tools, or native build.
8395 lt_cv_to_tool_file_cmd=func_convert_file_noop
8396 case $host in
8397 *-*-mingw* )
8398 case $build in
8399 *-*-mingw* ) # actually msys
8400 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8401 ;;
8402 esac
8403 ;;
8404 esac
8405
8406 fi
8407
8408 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8410 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8411
8412
8413
8414
8415
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8417 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8418 if ${lt_cv_ld_reload_flag+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 lt_cv_ld_reload_flag='-r'
8422 fi
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8424 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8425 reload_flag=$lt_cv_ld_reload_flag
8426 case $reload_flag in
8427 "" | " "*) ;;
8428 *) reload_flag=" $reload_flag" ;;
8429 esac
8430 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8431 case $host_os in
8432 cygwin* | mingw* | pw32* | cegcc*)
8433 if test yes != "$GCC"; then
8434 reload_cmds=false
8435 fi
8436 ;;
8437 darwin*)
8438 if test yes = "$GCC"; then
8439 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8440 else
8441 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8442 fi
8443 ;;
8444 esac
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454 if test -n "$ac_tool_prefix"; then
8455 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8456 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458 $as_echo_n "checking for $ac_word... " >&6; }
8459 if ${ac_cv_prog_OBJDUMP+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 if test -n "$OBJDUMP"; then
8463 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8464 else
8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466 for as_dir in $PATH
8467 do
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8472 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 break 2
8475 fi
8476 done
8477 done
8478 IFS=$as_save_IFS
8479
8480 fi
8481 fi
8482 OBJDUMP=$ac_cv_prog_OBJDUMP
8483 if test -n "$OBJDUMP"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8485 $as_echo "$OBJDUMP" >&6; }
8486 else
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8489 fi
8490
8491
8492 fi
8493 if test -z "$ac_cv_prog_OBJDUMP"; then
8494 ac_ct_OBJDUMP=$OBJDUMP
8495 # Extract the first word of "objdump", so it can be a program name with args.
8496 set dummy objdump; ac_word=$2
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498 $as_echo_n "checking for $ac_word... " >&6; }
8499 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 if test -n "$ac_ct_OBJDUMP"; then
8503 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8504 else
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 for as_dir in $PATH
8507 do
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8512 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 break 2
8515 fi
8516 done
8517 done
8518 IFS=$as_save_IFS
8519
8520 fi
8521 fi
8522 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8523 if test -n "$ac_ct_OBJDUMP"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8525 $as_echo "$ac_ct_OBJDUMP" >&6; }
8526 else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 $as_echo "no" >&6; }
8529 fi
8530
8531 if test "x$ac_ct_OBJDUMP" = x; then
8532 OBJDUMP="false"
8533 else
8534 case $cross_compiling:$ac_tool_warned in
8535 yes:)
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8538 ac_tool_warned=yes ;;
8539 esac
8540 OBJDUMP=$ac_ct_OBJDUMP
8541 fi
8542 else
8543 OBJDUMP="$ac_cv_prog_OBJDUMP"
8544 fi
8545
8546 test -z "$OBJDUMP" && OBJDUMP=objdump
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8557 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8558 if ${lt_cv_deplibs_check_method+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 lt_cv_file_magic_cmd='$MAGIC_CMD'
8562 lt_cv_file_magic_test_file=
8563 lt_cv_deplibs_check_method='unknown'
8564 # Need to set the preceding variable on all platforms that support
8565 # interlibrary dependencies.
8566 # 'none' -- dependencies not supported.
8567 # 'unknown' -- same as none, but documents that we really don't know.
8568 # 'pass_all' -- all dependencies passed with no checks.
8569 # 'test_compile' -- check by making test program.
8570 # 'file_magic [[regex]]' -- check by looking for files in library path
8571 # that responds to the $file_magic_cmd with a given extended regex.
8572 # If you have 'file' or equivalent on your system and you're not sure
8573 # whether 'pass_all' will *always* work, you probably want this one.
8574
8575 case $host_os in
8576 aix[4-9]*)
8577 lt_cv_deplibs_check_method=pass_all
8578 ;;
8579
8580 beos*)
8581 lt_cv_deplibs_check_method=pass_all
8582 ;;
8583
8584 bsdi[45]*)
8585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8586 lt_cv_file_magic_cmd='/usr/bin/file -L'
8587 lt_cv_file_magic_test_file=/shlib/libc.so
8588 ;;
8589
8590 cygwin*)
8591 # func_win32_libid is a shell function defined in ltmain.sh
8592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8593 lt_cv_file_magic_cmd='func_win32_libid'
8594 ;;
8595
8596 mingw* | pw32*)
8597 # Base MSYS/MinGW do not provide the 'file' command needed by
8598 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8599 # unless we find 'file', for example because we are cross-compiling.
8600 if ( file / ) >/dev/null 2>&1; then
8601 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8602 lt_cv_file_magic_cmd='func_win32_libid'
8603 else
8604 # Keep this pattern in sync with the one in func_win32_libid.
8605 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8606 lt_cv_file_magic_cmd='$OBJDUMP -f'
8607 fi
8608 ;;
8609
8610 cegcc*)
8611 # use the weaker test based on 'objdump'. See mingw*.
8612 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8613 lt_cv_file_magic_cmd='$OBJDUMP -f'
8614 ;;
8615
8616 darwin* | rhapsody*)
8617 lt_cv_deplibs_check_method=pass_all
8618 ;;
8619
8620 freebsd* | dragonfly*)
8621 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8622 case $host_cpu in
8623 i*86 )
8624 # Not sure whether the presence of OpenBSD here was a mistake.
8625 # Let's accept both of them until this is cleared up.
8626 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8627 lt_cv_file_magic_cmd=/usr/bin/file
8628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8629 ;;
8630 esac
8631 else
8632 lt_cv_deplibs_check_method=pass_all
8633 fi
8634 ;;
8635
8636 haiku*)
8637 lt_cv_deplibs_check_method=pass_all
8638 ;;
8639
8640 hpux10.20* | hpux11*)
8641 lt_cv_file_magic_cmd=/usr/bin/file
8642 case $host_cpu in
8643 ia64*)
8644 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8645 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8646 ;;
8647 hppa*64*)
8648 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]'
8649 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8650 ;;
8651 *)
8652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8653 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8654 ;;
8655 esac
8656 ;;
8657
8658 interix[3-9]*)
8659 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8661 ;;
8662
8663 irix5* | irix6* | nonstopux*)
8664 case $LD in
8665 *-32|*"-32 ") libmagic=32-bit;;
8666 *-n32|*"-n32 ") libmagic=N32;;
8667 *-64|*"-64 ") libmagic=64-bit;;
8668 *) libmagic=never-match;;
8669 esac
8670 lt_cv_deplibs_check_method=pass_all
8671 ;;
8672
8673 # This must be glibc/ELF.
8674 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8675 lt_cv_deplibs_check_method=pass_all
8676 ;;
8677
8678 netbsd* | netbsdelf*-gnu)
8679 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8681 else
8682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8683 fi
8684 ;;
8685
8686 newos6*)
8687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8688 lt_cv_file_magic_cmd=/usr/bin/file
8689 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8690 ;;
8691
8692 *nto* | *qnx*)
8693 lt_cv_deplibs_check_method=pass_all
8694 ;;
8695
8696 openbsd* | bitrig*)
8697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8699 else
8700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8701 fi
8702 ;;
8703
8704 osf3* | osf4* | osf5*)
8705 lt_cv_deplibs_check_method=pass_all
8706 ;;
8707
8708 rdos*)
8709 lt_cv_deplibs_check_method=pass_all
8710 ;;
8711
8712 solaris*)
8713 lt_cv_deplibs_check_method=pass_all
8714 ;;
8715
8716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8717 lt_cv_deplibs_check_method=pass_all
8718 ;;
8719
8720 sysv4 | sysv4.3*)
8721 case $host_vendor in
8722 motorola)
8723 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]'
8724 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8725 ;;
8726 ncr)
8727 lt_cv_deplibs_check_method=pass_all
8728 ;;
8729 sequent)
8730 lt_cv_file_magic_cmd='/bin/file'
8731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8732 ;;
8733 sni)
8734 lt_cv_file_magic_cmd='/bin/file'
8735 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8736 lt_cv_file_magic_test_file=/lib/libc.so
8737 ;;
8738 siemens)
8739 lt_cv_deplibs_check_method=pass_all
8740 ;;
8741 pc)
8742 lt_cv_deplibs_check_method=pass_all
8743 ;;
8744 esac
8745 ;;
8746
8747 tpf*)
8748 lt_cv_deplibs_check_method=pass_all
8749 ;;
8750 os2*)
8751 lt_cv_deplibs_check_method=pass_all
8752 ;;
8753 esac
8754
8755 fi
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8757 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8758
8759 file_magic_glob=
8760 want_nocaseglob=no
8761 if test "$build" = "$host"; then
8762 case $host_os in
8763 mingw* | pw32*)
8764 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8765 want_nocaseglob=yes
8766 else
8767 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8768 fi
8769 ;;
8770 esac
8771 fi
8772
8773 file_magic_cmd=$lt_cv_file_magic_cmd
8774 deplibs_check_method=$lt_cv_deplibs_check_method
8775 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798 if test -n "$ac_tool_prefix"; then
8799 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8800 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8802 $as_echo_n "checking for $ac_word... " >&6; }
8803 if ${ac_cv_prog_DLLTOOL+:} false; then :
8804 $as_echo_n "(cached) " >&6
8805 else
8806 if test -n "$DLLTOOL"; then
8807 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8808 else
8809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810 for as_dir in $PATH
8811 do
8812 IFS=$as_save_IFS
8813 test -z "$as_dir" && as_dir=.
8814 for ac_exec_ext in '' $ac_executable_extensions; do
8815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8816 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 break 2
8819 fi
8820 done
8821 done
8822 IFS=$as_save_IFS
8823
8824 fi
8825 fi
8826 DLLTOOL=$ac_cv_prog_DLLTOOL
8827 if test -n "$DLLTOOL"; then
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8829 $as_echo "$DLLTOOL" >&6; }
8830 else
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832 $as_echo "no" >&6; }
8833 fi
8834
8835
8836 fi
8837 if test -z "$ac_cv_prog_DLLTOOL"; then
8838 ac_ct_DLLTOOL=$DLLTOOL
8839 # Extract the first word of "dlltool", so it can be a program name with args.
8840 set dummy dlltool; ac_word=$2
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842 $as_echo_n "checking for $ac_word... " >&6; }
8843 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 if test -n "$ac_ct_DLLTOOL"; then
8847 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8848 else
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 for as_dir in $PATH
8851 do
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 break 2
8859 fi
8860 done
8861 done
8862 IFS=$as_save_IFS
8863
8864 fi
8865 fi
8866 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8867 if test -n "$ac_ct_DLLTOOL"; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8869 $as_echo "$ac_ct_DLLTOOL" >&6; }
8870 else
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 $as_echo "no" >&6; }
8873 fi
8874
8875 if test "x$ac_ct_DLLTOOL" = x; then
8876 DLLTOOL="false"
8877 else
8878 case $cross_compiling:$ac_tool_warned in
8879 yes:)
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8882 ac_tool_warned=yes ;;
8883 esac
8884 DLLTOOL=$ac_ct_DLLTOOL
8885 fi
8886 else
8887 DLLTOOL="$ac_cv_prog_DLLTOOL"
8888 fi
8889
8890 test -z "$DLLTOOL" && DLLTOOL=dlltool
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8902 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8903 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 lt_cv_sharedlib_from_linklib_cmd='unknown'
8907
8908 case $host_os in
8909 cygwin* | mingw* | pw32* | cegcc*)
8910 # two different shell functions defined in ltmain.sh;
8911 # decide which one to use based on capabilities of $DLLTOOL
8912 case `$DLLTOOL --help 2>&1` in
8913 *--identify-strict*)
8914 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8915 ;;
8916 *)
8917 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8918 ;;
8919 esac
8920 ;;
8921 *)
8922 # fallback: assume linklib IS sharedlib
8923 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8924 ;;
8925 esac
8926
8927 fi
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8929 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8930 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8931 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8932
8933
8934
8935
8936
8937
8938
8939 if test -n "$ac_tool_prefix"; then
8940 for ac_prog in ar
8941 do
8942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8945 $as_echo_n "checking for $ac_word... " >&6; }
8946 if ${ac_cv_prog_AR+:} false; then :
8947 $as_echo_n "(cached) " >&6
8948 else
8949 if test -n "$AR"; then
8950 ac_cv_prog_AR="$AR" # Let the user override the test.
8951 else
8952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953 for as_dir in $PATH
8954 do
8955 IFS=$as_save_IFS
8956 test -z "$as_dir" && as_dir=.
8957 for ac_exec_ext in '' $ac_executable_extensions; do
8958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8959 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8961 break 2
8962 fi
8963 done
8964 done
8965 IFS=$as_save_IFS
8966
8967 fi
8968 fi
8969 AR=$ac_cv_prog_AR
8970 if test -n "$AR"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8972 $as_echo "$AR" >&6; }
8973 else
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8976 fi
8977
8978
8979 test -n "$AR" && break
8980 done
8981 fi
8982 if test -z "$AR"; then
8983 ac_ct_AR=$AR
8984 for ac_prog in ar
8985 do
8986 # Extract the first word of "$ac_prog", so it can be a program name with args.
8987 set dummy $ac_prog; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 if test -n "$ac_ct_AR"; then
8994 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8995 else
8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 for as_dir in $PATH
8998 do
8999 IFS=$as_save_IFS
9000 test -z "$as_dir" && as_dir=.
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9003 ac_cv_prog_ac_ct_AR="$ac_prog"
9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 break 2
9006 fi
9007 done
9008 done
9009 IFS=$as_save_IFS
9010
9011 fi
9012 fi
9013 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9014 if test -n "$ac_ct_AR"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9016 $as_echo "$ac_ct_AR" >&6; }
9017 else
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9020 fi
9021
9022
9023 test -n "$ac_ct_AR" && break
9024 done
9025
9026 if test "x$ac_ct_AR" = x; then
9027 AR="false"
9028 else
9029 case $cross_compiling:$ac_tool_warned in
9030 yes:)
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9033 ac_tool_warned=yes ;;
9034 esac
9035 AR=$ac_ct_AR
9036 fi
9037 fi
9038
9039 : ${AR=ar}
9040 : ${AR_FLAGS=cru}
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9053 $as_echo_n "checking for archiver @FILE support... " >&6; }
9054 if ${lt_cv_ar_at_file+:} false; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9057 lt_cv_ar_at_file=no
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060
9061 int
9062 main ()
9063 {
9064
9065 ;
9066 return 0;
9067 }
9068 _ACEOF
9069 if ac_fn_c_try_compile "$LINENO"; then :
9070 echo conftest.$ac_objext > conftest.lst
9071 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9073 (eval $lt_ar_try) 2>&5
9074 ac_status=$?
9075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9076 test $ac_status = 0; }
9077 if test 0 -eq "$ac_status"; then
9078 # Ensure the archiver fails upon bogus file names.
9079 rm -f conftest.$ac_objext libconftest.a
9080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9081 (eval $lt_ar_try) 2>&5
9082 ac_status=$?
9083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9084 test $ac_status = 0; }
9085 if test 0 -ne "$ac_status"; then
9086 lt_cv_ar_at_file=@
9087 fi
9088 fi
9089 rm -f conftest.* libconftest.a
9090
9091 fi
9092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093
9094 fi
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9096 $as_echo "$lt_cv_ar_at_file" >&6; }
9097
9098 if test no = "$lt_cv_ar_at_file"; then
9099 archiver_list_spec=
9100 else
9101 archiver_list_spec=$lt_cv_ar_at_file
9102 fi
9103
9104
9105
9106
9107
9108
9109
9110 if test -n "$ac_tool_prefix"; then
9111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9112 set dummy ${ac_tool_prefix}strip; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if ${ac_cv_prog_STRIP+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 if test -n "$STRIP"; then
9119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9120 else
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 for as_dir in $PATH
9123 do
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9128 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9131 fi
9132 done
9133 done
9134 IFS=$as_save_IFS
9135
9136 fi
9137 fi
9138 STRIP=$ac_cv_prog_STRIP
9139 if test -n "$STRIP"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9141 $as_echo "$STRIP" >&6; }
9142 else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9145 fi
9146
9147
9148 fi
9149 if test -z "$ac_cv_prog_STRIP"; then
9150 ac_ct_STRIP=$STRIP
9151 # Extract the first word of "strip", so it can be a program name with args.
9152 set dummy strip; ac_word=$2
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9154 $as_echo_n "checking for $ac_word... " >&6; }
9155 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9156 $as_echo_n "(cached) " >&6
9157 else
9158 if test -n "$ac_ct_STRIP"; then
9159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9160 else
9161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 for as_dir in $PATH
9163 do
9164 IFS=$as_save_IFS
9165 test -z "$as_dir" && as_dir=.
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9168 ac_cv_prog_ac_ct_STRIP="strip"
9169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9170 break 2
9171 fi
9172 done
9173 done
9174 IFS=$as_save_IFS
9175
9176 fi
9177 fi
9178 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9179 if test -n "$ac_ct_STRIP"; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9181 $as_echo "$ac_ct_STRIP" >&6; }
9182 else
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184 $as_echo "no" >&6; }
9185 fi
9186
9187 if test "x$ac_ct_STRIP" = x; then
9188 STRIP=":"
9189 else
9190 case $cross_compiling:$ac_tool_warned in
9191 yes:)
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9194 ac_tool_warned=yes ;;
9195 esac
9196 STRIP=$ac_ct_STRIP
9197 fi
9198 else
9199 STRIP="$ac_cv_prog_STRIP"
9200 fi
9201
9202 test -z "$STRIP" && STRIP=:
9203
9204
9205
9206
9207
9208
9209 if test -n "$ac_tool_prefix"; then
9210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9211 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if ${ac_cv_prog_RANLIB+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 if test -n "$RANLIB"; then
9218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9219 else
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in $PATH
9222 do
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9230 fi
9231 done
9232 done
9233 IFS=$as_save_IFS
9234
9235 fi
9236 fi
9237 RANLIB=$ac_cv_prog_RANLIB
9238 if test -n "$RANLIB"; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9240 $as_echo "$RANLIB" >&6; }
9241 else
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9244 fi
9245
9246
9247 fi
9248 if test -z "$ac_cv_prog_RANLIB"; then
9249 ac_ct_RANLIB=$RANLIB
9250 # Extract the first word of "ranlib", so it can be a program name with args.
9251 set dummy ranlib; ac_word=$2
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9253 $as_echo_n "checking for $ac_word... " >&6; }
9254 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9255 $as_echo_n "(cached) " >&6
9256 else
9257 if test -n "$ac_ct_RANLIB"; then
9258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9259 else
9260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261 for as_dir in $PATH
9262 do
9263 IFS=$as_save_IFS
9264 test -z "$as_dir" && as_dir=.
9265 for ac_exec_ext in '' $ac_executable_extensions; do
9266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9267 ac_cv_prog_ac_ct_RANLIB="ranlib"
9268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269 break 2
9270 fi
9271 done
9272 done
9273 IFS=$as_save_IFS
9274
9275 fi
9276 fi
9277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9278 if test -n "$ac_ct_RANLIB"; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9280 $as_echo "$ac_ct_RANLIB" >&6; }
9281 else
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 $as_echo "no" >&6; }
9284 fi
9285
9286 if test "x$ac_ct_RANLIB" = x; then
9287 RANLIB=":"
9288 else
9289 case $cross_compiling:$ac_tool_warned in
9290 yes:)
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9293 ac_tool_warned=yes ;;
9294 esac
9295 RANLIB=$ac_ct_RANLIB
9296 fi
9297 else
9298 RANLIB="$ac_cv_prog_RANLIB"
9299 fi
9300
9301 test -z "$RANLIB" && RANLIB=:
9302
9303
9304
9305
9306
9307
9308 # Determine commands to create old-style static archives.
9309 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9310 old_postinstall_cmds='chmod 644 $oldlib'
9311 old_postuninstall_cmds=
9312
9313 if test -n "$RANLIB"; then
9314 case $host_os in
9315 bitrig* | openbsd*)
9316 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9317 ;;
9318 *)
9319 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9320 ;;
9321 esac
9322 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9323 fi
9324
9325 case $host_os in
9326 darwin*)
9327 lock_old_archive_extraction=yes ;;
9328 *)
9329 lock_old_archive_extraction=no ;;
9330 esac
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370 # If no C compiler was specified, use CC.
9371 LTCC=${LTCC-"$CC"}
9372
9373 # If no C compiler flags were specified, use CFLAGS.
9374 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9375
9376 # Allow CC to be a program name with arguments.
9377 compiler=$CC
9378
9379
9380 # Check for command to grab the raw symbol name followed by C symbol from nm.
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9382 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9383 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386
9387 # These are sane defaults that work on at least a few old systems.
9388 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9389
9390 # Character class describing NM global symbol codes.
9391 symcode='[BCDEGRST]'
9392
9393 # Regexp to match symbols that can be accessed directly from C.
9394 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9395
9396 # Define system-specific variables.
9397 case $host_os in
9398 aix*)
9399 symcode='[BCDT]'
9400 ;;
9401 cygwin* | mingw* | pw32* | cegcc*)
9402 symcode='[ABCDGISTW]'
9403 ;;
9404 hpux*)
9405 if test ia64 = "$host_cpu"; then
9406 symcode='[ABCDEGRST]'
9407 fi
9408 ;;
9409 irix* | nonstopux*)
9410 symcode='[BCDEGRST]'
9411 ;;
9412 osf*)
9413 symcode='[BCDEGQRST]'
9414 ;;
9415 solaris*)
9416 symcode='[BDRT]'
9417 ;;
9418 sco3.2v5*)
9419 symcode='[DT]'
9420 ;;
9421 sysv4.2uw2*)
9422 symcode='[DT]'
9423 ;;
9424 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9425 symcode='[ABDT]'
9426 ;;
9427 sysv4)
9428 symcode='[DFNSTU]'
9429 ;;
9430 esac
9431
9432 # If we're using GNU nm, then use its standard symbol codes.
9433 case `$NM -V 2>&1` in
9434 *GNU* | *'with BFD'*)
9435 symcode='[ABCDGIRSTW]' ;;
9436 esac
9437
9438 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9439 # Gets list of data symbols to import.
9440 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9441 # Adjust the below global symbol transforms to fixup imported variables.
9442 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9443 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9444 lt_c_name_lib_hook="\
9445 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9446 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9447 else
9448 # Disable hooks by default.
9449 lt_cv_sys_global_symbol_to_import=
9450 lt_cdecl_hook=
9451 lt_c_name_hook=
9452 lt_c_name_lib_hook=
9453 fi
9454
9455 # Transform an extracted symbol line into a proper C declaration.
9456 # Some systems (esp. on ia64) link data and code symbols differently,
9457 # so use this general approach.
9458 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9459 $lt_cdecl_hook\
9460 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9461 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9462
9463 # Transform an extracted symbol line into symbol name and symbol address
9464 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9465 $lt_c_name_hook\
9466 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9467 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9468
9469 # Transform an extracted symbol line into symbol name with lib prefix and
9470 # symbol address.
9471 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9472 $lt_c_name_lib_hook\
9473 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9474 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9475 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9476
9477 # Handle CRLF in mingw tool chain
9478 opt_cr=
9479 case $build_os in
9480 mingw*)
9481 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9482 ;;
9483 esac
9484
9485 # Try without a prefix underscore, then with it.
9486 for ac_symprfx in "" "_"; do
9487
9488 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9489 symxfrm="\\1 $ac_symprfx\\2 \\2"
9490
9491 # Write the raw and C identifiers.
9492 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9493 # Fake it for dumpbin and say T for any non-static function,
9494 # D for any global variable and I for any imported variable.
9495 # Also find C++ and __fastcall symbols from MSVC++,
9496 # which start with @ or ?.
9497 lt_cv_sys_global_symbol_pipe="$AWK '"\
9498 " {last_section=section; section=\$ 3};"\
9499 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9500 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9501 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9502 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9503 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9504 " \$ 0!~/External *\|/{next};"\
9505 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9506 " {if(hide[section]) next};"\
9507 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9508 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9509 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9510 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9511 " ' prfx=^$ac_symprfx"
9512 else
9513 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9514 fi
9515 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9516
9517 # Check to see that the pipe works correctly.
9518 pipe_works=no
9519
9520 rm -f conftest*
9521 cat > conftest.$ac_ext <<_LT_EOF
9522 #ifdef __cplusplus
9523 extern "C" {
9524 #endif
9525 char nm_test_var;
9526 void nm_test_func(void);
9527 void nm_test_func(void){}
9528 #ifdef __cplusplus
9529 }
9530 #endif
9531 int main(){nm_test_var='a';nm_test_func();return(0);}
9532 _LT_EOF
9533
9534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9535 (eval $ac_compile) 2>&5
9536 ac_status=$?
9537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9538 test $ac_status = 0; }; then
9539 # Now try to grab the symbols.
9540 nlist=conftest.nm
9541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9542 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9543 ac_status=$?
9544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9545 test $ac_status = 0; } && test -s "$nlist"; then
9546 # Try sorting and uniquifying the output.
9547 if sort "$nlist" | uniq > "$nlist"T; then
9548 mv -f "$nlist"T "$nlist"
9549 else
9550 rm -f "$nlist"T
9551 fi
9552
9553 # Make sure that we snagged all the symbols we need.
9554 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9555 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9556 cat <<_LT_EOF > conftest.$ac_ext
9557 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9558 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9559 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9560 relocations are performed -- see ld's documentation on pseudo-relocs. */
9561 # define LT_DLSYM_CONST
9562 #elif defined __osf__
9563 /* This system does not cope well with relocations in const data. */
9564 # define LT_DLSYM_CONST
9565 #else
9566 # define LT_DLSYM_CONST const
9567 #endif
9568
9569 #ifdef __cplusplus
9570 extern "C" {
9571 #endif
9572
9573 _LT_EOF
9574 # Now generate the symbol file.
9575 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9576
9577 cat <<_LT_EOF >> conftest.$ac_ext
9578
9579 /* The mapping between symbol names and symbols. */
9580 LT_DLSYM_CONST struct {
9581 const char *name;
9582 void *address;
9583 }
9584 lt__PROGRAM__LTX_preloaded_symbols[] =
9585 {
9586 { "@PROGRAM@", (void *) 0 },
9587 _LT_EOF
9588 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9589 cat <<\_LT_EOF >> conftest.$ac_ext
9590 {0, (void *) 0}
9591 };
9592
9593 /* This works around a problem in FreeBSD linker */
9594 #ifdef FREEBSD_WORKAROUND
9595 static const void *lt_preloaded_setup() {
9596 return lt__PROGRAM__LTX_preloaded_symbols;
9597 }
9598 #endif
9599
9600 #ifdef __cplusplus
9601 }
9602 #endif
9603 _LT_EOF
9604 # Now try linking the two files.
9605 mv conftest.$ac_objext conftstm.$ac_objext
9606 lt_globsym_save_LIBS=$LIBS
9607 lt_globsym_save_CFLAGS=$CFLAGS
9608 LIBS=conftstm.$ac_objext
9609 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9611 (eval $ac_link) 2>&5
9612 ac_status=$?
9613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9614 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9615 pipe_works=yes
9616 fi
9617 LIBS=$lt_globsym_save_LIBS
9618 CFLAGS=$lt_globsym_save_CFLAGS
9619 else
9620 echo "cannot find nm_test_func in $nlist" >&5
9621 fi
9622 else
9623 echo "cannot find nm_test_var in $nlist" >&5
9624 fi
9625 else
9626 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9627 fi
9628 else
9629 echo "$progname: failed program was:" >&5
9630 cat conftest.$ac_ext >&5
9631 fi
9632 rm -rf conftest* conftst*
9633
9634 # Do not use the global_symbol_pipe unless it works.
9635 if test yes = "$pipe_works"; then
9636 break
9637 else
9638 lt_cv_sys_global_symbol_pipe=
9639 fi
9640 done
9641
9642 fi
9643
9644 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9645 lt_cv_sys_global_symbol_to_cdecl=
9646 fi
9647 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9649 $as_echo "failed" >&6; }
9650 else
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9652 $as_echo "ok" >&6; }
9653 fi
9654
9655 # Response file support.
9656 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9657 nm_file_list_spec='@'
9658 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9659 nm_file_list_spec='@'
9660 fi
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9699 $as_echo_n "checking for sysroot... " >&6; }
9700
9701 # Check whether --with-sysroot was given.
9702 if test "${with_sysroot+set}" = set; then :
9703 withval=$with_sysroot;
9704 else
9705 with_sysroot=no
9706 fi
9707
9708
9709 lt_sysroot=
9710 case $with_sysroot in #(
9711 yes)
9712 if test yes = "$GCC"; then
9713 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9714 fi
9715 ;; #(
9716 /*)
9717 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9718 ;; #(
9719 no|'')
9720 ;; #(
9721 *)
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9723 $as_echo "$with_sysroot" >&6; }
9724 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9725 ;;
9726 esac
9727
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9729 $as_echo "${lt_sysroot:-no}" >&6; }
9730
9731
9732
9733
9734
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9736 $as_echo_n "checking for a working dd... " >&6; }
9737 if ${ac_cv_path_lt_DD+:} false; then :
9738 $as_echo_n "(cached) " >&6
9739 else
9740 printf 0123456789abcdef0123456789abcdef >conftest.i
9741 cat conftest.i conftest.i >conftest2.i
9742 : ${lt_DD:=$DD}
9743 if test -z "$lt_DD"; then
9744 ac_path_lt_DD_found=false
9745 # Loop through the user's path and test for each of PROGNAME-LIST
9746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747 for as_dir in $PATH
9748 do
9749 IFS=$as_save_IFS
9750 test -z "$as_dir" && as_dir=.
9751 for ac_prog in dd; do
9752 for ac_exec_ext in '' $ac_executable_extensions; do
9753 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9754 as_fn_executable_p "$ac_path_lt_DD" || continue
9755 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9756 cmp -s conftest.i conftest.out \
9757 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9758 fi
9759 $ac_path_lt_DD_found && break 3
9760 done
9761 done
9762 done
9763 IFS=$as_save_IFS
9764 if test -z "$ac_cv_path_lt_DD"; then
9765 :
9766 fi
9767 else
9768 ac_cv_path_lt_DD=$lt_DD
9769 fi
9770
9771 rm -f conftest.i conftest2.i conftest.out
9772 fi
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9774 $as_echo "$ac_cv_path_lt_DD" >&6; }
9775
9776
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9778 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9779 if ${lt_cv_truncate_bin+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 printf 0123456789abcdef0123456789abcdef >conftest.i
9783 cat conftest.i conftest.i >conftest2.i
9784 lt_cv_truncate_bin=
9785 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9786 cmp -s conftest.i conftest.out \
9787 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9788 fi
9789 rm -f conftest.i conftest2.i conftest.out
9790 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9791 fi
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9793 $as_echo "$lt_cv_truncate_bin" >&6; }
9794
9795
9796
9797
9798
9799
9800
9801 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9802 func_cc_basename ()
9803 {
9804 for cc_temp in $*""; do
9805 case $cc_temp in
9806 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9807 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9808 \-*) ;;
9809 *) break;;
9810 esac
9811 done
9812 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9813 }
9814
9815 # Check whether --enable-libtool-lock was given.
9816 if test "${enable_libtool_lock+set}" = set; then :
9817 enableval=$enable_libtool_lock;
9818 fi
9819
9820 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9821
9822 # Some flags need to be propagated to the compiler or linker for good
9823 # libtool support.
9824 case $host in
9825 ia64-*-hpux*)
9826 # Find out what ABI is being produced by ac_compile, and set mode
9827 # options accordingly.
9828 echo 'int i;' > conftest.$ac_ext
9829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9830 (eval $ac_compile) 2>&5
9831 ac_status=$?
9832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833 test $ac_status = 0; }; then
9834 case `/usr/bin/file conftest.$ac_objext` in
9835 *ELF-32*)
9836 HPUX_IA64_MODE=32
9837 ;;
9838 *ELF-64*)
9839 HPUX_IA64_MODE=64
9840 ;;
9841 esac
9842 fi
9843 rm -rf conftest*
9844 ;;
9845 *-*-irix6*)
9846 # Find out what ABI is being produced by ac_compile, and set linker
9847 # options accordingly.
9848 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9850 (eval $ac_compile) 2>&5
9851 ac_status=$?
9852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9853 test $ac_status = 0; }; then
9854 if test yes = "$lt_cv_prog_gnu_ld"; then
9855 case `/usr/bin/file conftest.$ac_objext` in
9856 *32-bit*)
9857 LD="${LD-ld} -melf32bsmip"
9858 ;;
9859 *N32*)
9860 LD="${LD-ld} -melf32bmipn32"
9861 ;;
9862 *64-bit*)
9863 LD="${LD-ld} -melf64bmip"
9864 ;;
9865 esac
9866 else
9867 case `/usr/bin/file conftest.$ac_objext` in
9868 *32-bit*)
9869 LD="${LD-ld} -32"
9870 ;;
9871 *N32*)
9872 LD="${LD-ld} -n32"
9873 ;;
9874 *64-bit*)
9875 LD="${LD-ld} -64"
9876 ;;
9877 esac
9878 fi
9879 fi
9880 rm -rf conftest*
9881 ;;
9882
9883 mips64*-*linux*)
9884 # Find out what ABI is being produced by ac_compile, and set linker
9885 # options accordingly.
9886 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9888 (eval $ac_compile) 2>&5
9889 ac_status=$?
9890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9891 test $ac_status = 0; }; then
9892 emul=elf
9893 case `/usr/bin/file conftest.$ac_objext` in
9894 *32-bit*)
9895 emul="${emul}32"
9896 ;;
9897 *64-bit*)
9898 emul="${emul}64"
9899 ;;
9900 esac
9901 case `/usr/bin/file conftest.$ac_objext` in
9902 *MSB*)
9903 emul="${emul}btsmip"
9904 ;;
9905 *LSB*)
9906 emul="${emul}ltsmip"
9907 ;;
9908 esac
9909 case `/usr/bin/file conftest.$ac_objext` in
9910 *N32*)
9911 emul="${emul}n32"
9912 ;;
9913 esac
9914 LD="${LD-ld} -m $emul"
9915 fi
9916 rm -rf conftest*
9917 ;;
9918
9919 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9920 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9921 # Find out what ABI is being produced by ac_compile, and set linker
9922 # options accordingly. Note that the listed cases only cover the
9923 # situations where additional linker options are needed (such as when
9924 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9925 # vice versa); the common cases where no linker options are needed do
9926 # not appear in the list.
9927 echo 'int i;' > conftest.$ac_ext
9928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9929 (eval $ac_compile) 2>&5
9930 ac_status=$?
9931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9932 test $ac_status = 0; }; then
9933 case `/usr/bin/file conftest.o` in
9934 *32-bit*)
9935 case $host in
9936 x86_64-*kfreebsd*-gnu)
9937 LD="${LD-ld} -m elf_i386_fbsd"
9938 ;;
9939 x86_64-*linux*)
9940 case `/usr/bin/file conftest.o` in
9941 *x86-64*)
9942 LD="${LD-ld} -m elf32_x86_64"
9943 ;;
9944 *)
9945 LD="${LD-ld} -m elf_i386"
9946 ;;
9947 esac
9948 ;;
9949 powerpc64le-*linux*)
9950 LD="${LD-ld} -m elf32lppclinux"
9951 ;;
9952 powerpc64-*linux*)
9953 LD="${LD-ld} -m elf32ppclinux"
9954 ;;
9955 s390x-*linux*)
9956 LD="${LD-ld} -m elf_s390"
9957 ;;
9958 sparc64-*linux*)
9959 LD="${LD-ld} -m elf32_sparc"
9960 ;;
9961 esac
9962 ;;
9963 *64-bit*)
9964 case $host in
9965 x86_64-*kfreebsd*-gnu)
9966 LD="${LD-ld} -m elf_x86_64_fbsd"
9967 ;;
9968 x86_64-*linux*)
9969 LD="${LD-ld} -m elf_x86_64"
9970 ;;
9971 powerpcle-*linux*)
9972 LD="${LD-ld} -m elf64lppc"
9973 ;;
9974 powerpc-*linux*)
9975 LD="${LD-ld} -m elf64ppc"
9976 ;;
9977 s390*-*linux*|s390*-*tpf*)
9978 LD="${LD-ld} -m elf64_s390"
9979 ;;
9980 sparc*-*linux*)
9981 LD="${LD-ld} -m elf64_sparc"
9982 ;;
9983 esac
9984 ;;
9985 esac
9986 fi
9987 rm -rf conftest*
9988 ;;
9989
9990 *-*-sco3.2v5*)
9991 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9992 SAVE_CFLAGS=$CFLAGS
9993 CFLAGS="$CFLAGS -belf"
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9995 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9996 if ${lt_cv_cc_needs_belf+:} false; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 ac_ext=c
10000 ac_cpp='$CPP $CPPFLAGS'
10001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10004
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10007
10008 int
10009 main ()
10010 {
10011
10012 ;
10013 return 0;
10014 }
10015 _ACEOF
10016 if ac_fn_c_try_link "$LINENO"; then :
10017 lt_cv_cc_needs_belf=yes
10018 else
10019 lt_cv_cc_needs_belf=no
10020 fi
10021 rm -f core conftest.err conftest.$ac_objext \
10022 conftest$ac_exeext conftest.$ac_ext
10023 ac_ext=c
10024 ac_cpp='$CPP $CPPFLAGS'
10025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10028
10029 fi
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10031 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10032 if test yes != "$lt_cv_cc_needs_belf"; then
10033 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10034 CFLAGS=$SAVE_CFLAGS
10035 fi
10036 ;;
10037 *-*solaris*)
10038 # Find out what ABI is being produced by ac_compile, and set linker
10039 # options accordingly.
10040 echo 'int i;' > conftest.$ac_ext
10041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10042 (eval $ac_compile) 2>&5
10043 ac_status=$?
10044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10045 test $ac_status = 0; }; then
10046 case `/usr/bin/file conftest.o` in
10047 *64-bit*)
10048 case $lt_cv_prog_gnu_ld in
10049 yes*)
10050 case $host in
10051 i?86-*-solaris*|x86_64-*-solaris*)
10052 LD="${LD-ld} -m elf_x86_64"
10053 ;;
10054 sparc*-*-solaris*)
10055 LD="${LD-ld} -m elf64_sparc"
10056 ;;
10057 esac
10058 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10059 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10060 LD=${LD-ld}_sol2
10061 fi
10062 ;;
10063 *)
10064 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10065 LD="${LD-ld} -64"
10066 fi
10067 ;;
10068 esac
10069 ;;
10070 esac
10071 fi
10072 rm -rf conftest*
10073 ;;
10074 esac
10075
10076 need_locks=$enable_libtool_lock
10077
10078 if test -n "$ac_tool_prefix"; then
10079 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10080 set dummy ${ac_tool_prefix}mt; ac_word=$2
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 $as_echo_n "checking for $ac_word... " >&6; }
10083 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 if test -n "$MANIFEST_TOOL"; then
10087 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10088 else
10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $PATH
10091 do
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098 break 2
10099 fi
10100 done
10101 done
10102 IFS=$as_save_IFS
10103
10104 fi
10105 fi
10106 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10107 if test -n "$MANIFEST_TOOL"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10109 $as_echo "$MANIFEST_TOOL" >&6; }
10110 else
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10113 fi
10114
10115
10116 fi
10117 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10118 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10119 # Extract the first word of "mt", so it can be a program name with args.
10120 set dummy mt; ac_word=$2
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122 $as_echo_n "checking for $ac_word... " >&6; }
10123 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 if test -n "$ac_ct_MANIFEST_TOOL"; then
10127 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10128 else
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10131 do
10132 IFS=$as_save_IFS
10133 test -z "$as_dir" && as_dir=.
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138 break 2
10139 fi
10140 done
10141 done
10142 IFS=$as_save_IFS
10143
10144 fi
10145 fi
10146 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10147 if test -n "$ac_ct_MANIFEST_TOOL"; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10149 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10150 else
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10153 fi
10154
10155 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10156 MANIFEST_TOOL=":"
10157 else
10158 case $cross_compiling:$ac_tool_warned in
10159 yes:)
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10162 ac_tool_warned=yes ;;
10163 esac
10164 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10165 fi
10166 else
10167 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10168 fi
10169
10170 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10172 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10173 if ${lt_cv_path_mainfest_tool+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 lt_cv_path_mainfest_tool=no
10177 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10178 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10179 cat conftest.err >&5
10180 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10181 lt_cv_path_mainfest_tool=yes
10182 fi
10183 rm -f conftest*
10184 fi
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10186 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10187 if test yes != "$lt_cv_path_mainfest_tool"; then
10188 MANIFEST_TOOL=:
10189 fi
10190
10191
10192
10193
10194
10195
10196 case $host_os in
10197 rhapsody* | darwin*)
10198 if test -n "$ac_tool_prefix"; then
10199 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10200 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202 $as_echo_n "checking for $ac_word... " >&6; }
10203 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206 if test -n "$DSYMUTIL"; then
10207 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10208 else
10209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210 for as_dir in $PATH
10211 do
10212 IFS=$as_save_IFS
10213 test -z "$as_dir" && as_dir=.
10214 for ac_exec_ext in '' $ac_executable_extensions; do
10215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10216 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10218 break 2
10219 fi
10220 done
10221 done
10222 IFS=$as_save_IFS
10223
10224 fi
10225 fi
10226 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10227 if test -n "$DSYMUTIL"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10229 $as_echo "$DSYMUTIL" >&6; }
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10233 fi
10234
10235
10236 fi
10237 if test -z "$ac_cv_prog_DSYMUTIL"; then
10238 ac_ct_DSYMUTIL=$DSYMUTIL
10239 # Extract the first word of "dsymutil", so it can be a program name with args.
10240 set dummy dsymutil; ac_word=$2
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242 $as_echo_n "checking for $ac_word... " >&6; }
10243 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 if test -n "$ac_ct_DSYMUTIL"; then
10247 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10248 else
10249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10250 for as_dir in $PATH
10251 do
10252 IFS=$as_save_IFS
10253 test -z "$as_dir" && as_dir=.
10254 for ac_exec_ext in '' $ac_executable_extensions; do
10255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10256 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10258 break 2
10259 fi
10260 done
10261 done
10262 IFS=$as_save_IFS
10263
10264 fi
10265 fi
10266 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10267 if test -n "$ac_ct_DSYMUTIL"; then
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10269 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10270 else
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272 $as_echo "no" >&6; }
10273 fi
10274
10275 if test "x$ac_ct_DSYMUTIL" = x; then
10276 DSYMUTIL=":"
10277 else
10278 case $cross_compiling:$ac_tool_warned in
10279 yes:)
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10282 ac_tool_warned=yes ;;
10283 esac
10284 DSYMUTIL=$ac_ct_DSYMUTIL
10285 fi
10286 else
10287 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10288 fi
10289
10290 if test -n "$ac_tool_prefix"; then
10291 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10292 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294 $as_echo_n "checking for $ac_word... " >&6; }
10295 if ${ac_cv_prog_NMEDIT+:} false; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 if test -n "$NMEDIT"; then
10299 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10300 else
10301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302 for as_dir in $PATH
10303 do
10304 IFS=$as_save_IFS
10305 test -z "$as_dir" && as_dir=.
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10308 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10310 break 2
10311 fi
10312 done
10313 done
10314 IFS=$as_save_IFS
10315
10316 fi
10317 fi
10318 NMEDIT=$ac_cv_prog_NMEDIT
10319 if test -n "$NMEDIT"; then
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10321 $as_echo "$NMEDIT" >&6; }
10322 else
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324 $as_echo "no" >&6; }
10325 fi
10326
10327
10328 fi
10329 if test -z "$ac_cv_prog_NMEDIT"; then
10330 ac_ct_NMEDIT=$NMEDIT
10331 # Extract the first word of "nmedit", so it can be a program name with args.
10332 set dummy nmedit; ac_word=$2
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334 $as_echo_n "checking for $ac_word... " >&6; }
10335 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 if test -n "$ac_ct_NMEDIT"; then
10339 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10340 else
10341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342 for as_dir in $PATH
10343 do
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10348 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 break 2
10351 fi
10352 done
10353 done
10354 IFS=$as_save_IFS
10355
10356 fi
10357 fi
10358 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10359 if test -n "$ac_ct_NMEDIT"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10361 $as_echo "$ac_ct_NMEDIT" >&6; }
10362 else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10365 fi
10366
10367 if test "x$ac_ct_NMEDIT" = x; then
10368 NMEDIT=":"
10369 else
10370 case $cross_compiling:$ac_tool_warned in
10371 yes:)
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10374 ac_tool_warned=yes ;;
10375 esac
10376 NMEDIT=$ac_ct_NMEDIT
10377 fi
10378 else
10379 NMEDIT="$ac_cv_prog_NMEDIT"
10380 fi
10381
10382 if test -n "$ac_tool_prefix"; then
10383 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10384 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10386 $as_echo_n "checking for $ac_word... " >&6; }
10387 if ${ac_cv_prog_LIPO+:} false; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10390 if test -n "$LIPO"; then
10391 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10392 else
10393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394 for as_dir in $PATH
10395 do
10396 IFS=$as_save_IFS
10397 test -z "$as_dir" && as_dir=.
10398 for ac_exec_ext in '' $ac_executable_extensions; do
10399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10400 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 break 2
10403 fi
10404 done
10405 done
10406 IFS=$as_save_IFS
10407
10408 fi
10409 fi
10410 LIPO=$ac_cv_prog_LIPO
10411 if test -n "$LIPO"; then
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10413 $as_echo "$LIPO" >&6; }
10414 else
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10416 $as_echo "no" >&6; }
10417 fi
10418
10419
10420 fi
10421 if test -z "$ac_cv_prog_LIPO"; then
10422 ac_ct_LIPO=$LIPO
10423 # Extract the first word of "lipo", so it can be a program name with args.
10424 set dummy lipo; ac_word=$2
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10426 $as_echo_n "checking for $ac_word... " >&6; }
10427 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10428 $as_echo_n "(cached) " >&6
10429 else
10430 if test -n "$ac_ct_LIPO"; then
10431 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10432 else
10433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434 for as_dir in $PATH
10435 do
10436 IFS=$as_save_IFS
10437 test -z "$as_dir" && as_dir=.
10438 for ac_exec_ext in '' $ac_executable_extensions; do
10439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10440 ac_cv_prog_ac_ct_LIPO="lipo"
10441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10442 break 2
10443 fi
10444 done
10445 done
10446 IFS=$as_save_IFS
10447
10448 fi
10449 fi
10450 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10451 if test -n "$ac_ct_LIPO"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10453 $as_echo "$ac_ct_LIPO" >&6; }
10454 else
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456 $as_echo "no" >&6; }
10457 fi
10458
10459 if test "x$ac_ct_LIPO" = x; then
10460 LIPO=":"
10461 else
10462 case $cross_compiling:$ac_tool_warned in
10463 yes:)
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10466 ac_tool_warned=yes ;;
10467 esac
10468 LIPO=$ac_ct_LIPO
10469 fi
10470 else
10471 LIPO="$ac_cv_prog_LIPO"
10472 fi
10473
10474 if test -n "$ac_tool_prefix"; then
10475 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10476 set dummy ${ac_tool_prefix}otool; ac_word=$2
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478 $as_echo_n "checking for $ac_word... " >&6; }
10479 if ${ac_cv_prog_OTOOL+:} false; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 if test -n "$OTOOL"; then
10483 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10484 else
10485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486 for as_dir in $PATH
10487 do
10488 IFS=$as_save_IFS
10489 test -z "$as_dir" && as_dir=.
10490 for ac_exec_ext in '' $ac_executable_extensions; do
10491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10492 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494 break 2
10495 fi
10496 done
10497 done
10498 IFS=$as_save_IFS
10499
10500 fi
10501 fi
10502 OTOOL=$ac_cv_prog_OTOOL
10503 if test -n "$OTOOL"; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10505 $as_echo "$OTOOL" >&6; }
10506 else
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10508 $as_echo "no" >&6; }
10509 fi
10510
10511
10512 fi
10513 if test -z "$ac_cv_prog_OTOOL"; then
10514 ac_ct_OTOOL=$OTOOL
10515 # Extract the first word of "otool", so it can be a program name with args.
10516 set dummy otool; ac_word=$2
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518 $as_echo_n "checking for $ac_word... " >&6; }
10519 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 if test -n "$ac_ct_OTOOL"; then
10523 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10524 else
10525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526 for as_dir in $PATH
10527 do
10528 IFS=$as_save_IFS
10529 test -z "$as_dir" && as_dir=.
10530 for ac_exec_ext in '' $ac_executable_extensions; do
10531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10532 ac_cv_prog_ac_ct_OTOOL="otool"
10533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10534 break 2
10535 fi
10536 done
10537 done
10538 IFS=$as_save_IFS
10539
10540 fi
10541 fi
10542 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10543 if test -n "$ac_ct_OTOOL"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10545 $as_echo "$ac_ct_OTOOL" >&6; }
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10549 fi
10550
10551 if test "x$ac_ct_OTOOL" = x; then
10552 OTOOL=":"
10553 else
10554 case $cross_compiling:$ac_tool_warned in
10555 yes:)
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10558 ac_tool_warned=yes ;;
10559 esac
10560 OTOOL=$ac_ct_OTOOL
10561 fi
10562 else
10563 OTOOL="$ac_cv_prog_OTOOL"
10564 fi
10565
10566 if test -n "$ac_tool_prefix"; then
10567 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10568 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10570 $as_echo_n "checking for $ac_word... " >&6; }
10571 if ${ac_cv_prog_OTOOL64+:} false; then :
10572 $as_echo_n "(cached) " >&6
10573 else
10574 if test -n "$OTOOL64"; then
10575 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10576 else
10577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578 for as_dir in $PATH
10579 do
10580 IFS=$as_save_IFS
10581 test -z "$as_dir" && as_dir=.
10582 for ac_exec_ext in '' $ac_executable_extensions; do
10583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10584 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 break 2
10587 fi
10588 done
10589 done
10590 IFS=$as_save_IFS
10591
10592 fi
10593 fi
10594 OTOOL64=$ac_cv_prog_OTOOL64
10595 if test -n "$OTOOL64"; then
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10597 $as_echo "$OTOOL64" >&6; }
10598 else
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600 $as_echo "no" >&6; }
10601 fi
10602
10603
10604 fi
10605 if test -z "$ac_cv_prog_OTOOL64"; then
10606 ac_ct_OTOOL64=$OTOOL64
10607 # Extract the first word of "otool64", so it can be a program name with args.
10608 set dummy otool64; ac_word=$2
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610 $as_echo_n "checking for $ac_word... " >&6; }
10611 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10612 $as_echo_n "(cached) " >&6
10613 else
10614 if test -n "$ac_ct_OTOOL64"; then
10615 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10616 else
10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618 for as_dir in $PATH
10619 do
10620 IFS=$as_save_IFS
10621 test -z "$as_dir" && as_dir=.
10622 for ac_exec_ext in '' $ac_executable_extensions; do
10623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10624 ac_cv_prog_ac_ct_OTOOL64="otool64"
10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 break 2
10627 fi
10628 done
10629 done
10630 IFS=$as_save_IFS
10631
10632 fi
10633 fi
10634 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10635 if test -n "$ac_ct_OTOOL64"; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10637 $as_echo "$ac_ct_OTOOL64" >&6; }
10638 else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 $as_echo "no" >&6; }
10641 fi
10642
10643 if test "x$ac_ct_OTOOL64" = x; then
10644 OTOOL64=":"
10645 else
10646 case $cross_compiling:$ac_tool_warned in
10647 yes:)
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10650 ac_tool_warned=yes ;;
10651 esac
10652 OTOOL64=$ac_ct_OTOOL64
10653 fi
10654 else
10655 OTOOL64="$ac_cv_prog_OTOOL64"
10656 fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10685 $as_echo_n "checking for -single_module linker flag... " >&6; }
10686 if ${lt_cv_apple_cc_single_mod+:} false; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 lt_cv_apple_cc_single_mod=no
10690 if test -z "$LT_MULTI_MODULE"; then
10691 # By default we will add the -single_module flag. You can override
10692 # by either setting the environment variable LT_MULTI_MODULE
10693 # non-empty at configure time, or by adding -multi_module to the
10694 # link flags.
10695 rm -rf libconftest.dylib*
10696 echo "int foo(void){return 1;}" > conftest.c
10697 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10698 -dynamiclib -Wl,-single_module conftest.c" >&5
10699 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10700 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10701 _lt_result=$?
10702 # If there is a non-empty error log, and "single_module"
10703 # appears in it, assume the flag caused a linker warning
10704 if test -s conftest.err && $GREP single_module conftest.err; then
10705 cat conftest.err >&5
10706 # Otherwise, if the output was created with a 0 exit code from
10707 # the compiler, it worked.
10708 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10709 lt_cv_apple_cc_single_mod=yes
10710 else
10711 cat conftest.err >&5
10712 fi
10713 rm -rf libconftest.dylib*
10714 rm -f conftest.*
10715 fi
10716 fi
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10718 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10719
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10721 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10722 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10723 $as_echo_n "(cached) " >&6
10724 else
10725 lt_cv_ld_exported_symbols_list=no
10726 save_LDFLAGS=$LDFLAGS
10727 echo "_main" > conftest.sym
10728 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10731
10732 int
10733 main ()
10734 {
10735
10736 ;
10737 return 0;
10738 }
10739 _ACEOF
10740 if ac_fn_c_try_link "$LINENO"; then :
10741 lt_cv_ld_exported_symbols_list=yes
10742 else
10743 lt_cv_ld_exported_symbols_list=no
10744 fi
10745 rm -f core conftest.err conftest.$ac_objext \
10746 conftest$ac_exeext conftest.$ac_ext
10747 LDFLAGS=$save_LDFLAGS
10748
10749 fi
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10751 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10752
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10754 $as_echo_n "checking for -force_load linker flag... " >&6; }
10755 if ${lt_cv_ld_force_load+:} false; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 lt_cv_ld_force_load=no
10759 cat > conftest.c << _LT_EOF
10760 int forced_loaded() { return 2;}
10761 _LT_EOF
10762 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10763 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10764 echo "$AR cru libconftest.a conftest.o" >&5
10765 $AR cru libconftest.a conftest.o 2>&5
10766 echo "$RANLIB libconftest.a" >&5
10767 $RANLIB libconftest.a 2>&5
10768 cat > conftest.c << _LT_EOF
10769 int main() { return 0;}
10770 _LT_EOF
10771 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10772 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10773 _lt_result=$?
10774 if test -s conftest.err && $GREP force_load conftest.err; then
10775 cat conftest.err >&5
10776 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10777 lt_cv_ld_force_load=yes
10778 else
10779 cat conftest.err >&5
10780 fi
10781 rm -f conftest.err libconftest.a conftest conftest.c
10782 rm -rf conftest.dSYM
10783
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10786 $as_echo "$lt_cv_ld_force_load" >&6; }
10787 case $host_os in
10788 rhapsody* | darwin1.[012])
10789 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10790 darwin1.*)
10791 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10792 darwin*) # darwin 5.x on
10793 # if running on 10.5 or later, the deployment target defaults
10794 # to the OS version, if on x86, and 10.4, the deployment
10795 # target defaults to 10.4. Don't you love it?
10796 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10797 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10798 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10799 10.[012][,.]*)
10800 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10801 10.*)
10802 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10803 esac
10804 ;;
10805 esac
10806 if test yes = "$lt_cv_apple_cc_single_mod"; then
10807 _lt_dar_single_mod='$single_module'
10808 fi
10809 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10810 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10811 else
10812 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10813 fi
10814 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10815 _lt_dsymutil='~$DSYMUTIL $lib || :'
10816 else
10817 _lt_dsymutil=
10818 fi
10819 ;;
10820 esac
10821
10822 # func_munge_path_list VARIABLE PATH
10823 # -----------------------------------
10824 # VARIABLE is name of variable containing _space_ separated list of
10825 # directories to be munged by the contents of PATH, which is string
10826 # having a format:
10827 # "DIR[:DIR]:"
10828 # string "DIR[ DIR]" will be prepended to VARIABLE
10829 # ":DIR[:DIR]"
10830 # string "DIR[ DIR]" will be appended to VARIABLE
10831 # "DIRP[:DIRP]::[DIRA:]DIRA"
10832 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10833 # "DIRA[ DIRA]" will be appended to VARIABLE
10834 # "DIR[:DIR]"
10835 # VARIABLE will be replaced by "DIR[ DIR]"
10836 func_munge_path_list ()
10837 {
10838 case x$2 in
10839 x)
10840 ;;
10841 *:)
10842 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10843 ;;
10844 x:*)
10845 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10846 ;;
10847 *::*)
10848 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10849 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10850 ;;
10851 *)
10852 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10853 ;;
10854 esac
10855 }
10856
10857 for ac_header in dlfcn.h
10858 do :
10859 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10860 "
10861 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10862 cat >>confdefs.h <<_ACEOF
10863 #define HAVE_DLFCN_H 1
10864 _ACEOF
10865
10866 fi
10867
10868 done
10869
10870
10871
10872
10873
10874 # Set options
10875 # Check whether --enable-shared was given.
10876 if test "${enable_shared+set}" = set; then :
10877 enableval=$enable_shared; p=${PACKAGE-default}
10878 case $enableval in
10879 yes) enable_shared=yes ;;
10880 no) enable_shared=no ;;
10881 *)
10882 enable_shared=no
10883 # Look at the argument we got. We use all the common list separators.
10884 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10885 for pkg in $enableval; do
10886 IFS=$lt_save_ifs
10887 if test "X$pkg" = "X$p"; then
10888 enable_shared=yes
10889 fi
10890 done
10891 IFS=$lt_save_ifs
10892 ;;
10893 esac
10894 else
10895 enable_shared=no
10896 fi
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907 enable_dlopen=no
10908
10909
10910 enable_win32_dll=no
10911
10912
10913
10914 # Check whether --enable-static was given.
10915 if test "${enable_static+set}" = set; then :
10916 enableval=$enable_static; p=${PACKAGE-default}
10917 case $enableval in
10918 yes) enable_static=yes ;;
10919 no) enable_static=no ;;
10920 *)
10921 enable_static=no
10922 # Look at the argument we got. We use all the common list separators.
10923 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10924 for pkg in $enableval; do
10925 IFS=$lt_save_ifs
10926 if test "X$pkg" = "X$p"; then
10927 enable_static=yes
10928 fi
10929 done
10930 IFS=$lt_save_ifs
10931 ;;
10932 esac
10933 else
10934 enable_static=yes
10935 fi
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946 # Check whether --with-pic was given.
10947 if test "${with_pic+set}" = set; then :
10948 withval=$with_pic; lt_p=${PACKAGE-default}
10949 case $withval in
10950 yes|no) pic_mode=$withval ;;
10951 *)
10952 pic_mode=default
10953 # Look at the argument we got. We use all the common list separators.
10954 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10955 for lt_pkg in $withval; do
10956 IFS=$lt_save_ifs
10957 if test "X$lt_pkg" = "X$lt_p"; then
10958 pic_mode=yes
10959 fi
10960 done
10961 IFS=$lt_save_ifs
10962 ;;
10963 esac
10964 else
10965 pic_mode=default
10966 fi
10967
10968
10969
10970
10971
10972
10973
10974
10975 # Check whether --enable-fast-install was given.
10976 if test "${enable_fast_install+set}" = set; then :
10977 enableval=$enable_fast_install; p=${PACKAGE-default}
10978 case $enableval in
10979 yes) enable_fast_install=yes ;;
10980 no) enable_fast_install=no ;;
10981 *)
10982 enable_fast_install=no
10983 # Look at the argument we got. We use all the common list separators.
10984 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10985 for pkg in $enableval; do
10986 IFS=$lt_save_ifs
10987 if test "X$pkg" = "X$p"; then
10988 enable_fast_install=yes
10989 fi
10990 done
10991 IFS=$lt_save_ifs
10992 ;;
10993 esac
10994 else
10995 enable_fast_install=yes
10996 fi
10997
10998
10999
11000
11001
11002
11003
11004
11005 shared_archive_member_spec=
11006 case $host,$enable_shared in
11007 power*-*-aix[5-9]*,yes)
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11009 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11010
11011 # Check whether --with-aix-soname was given.
11012 if test "${with_aix_soname+set}" = set; then :
11013 withval=$with_aix_soname; case $withval in
11014 aix|svr4|both)
11015 ;;
11016 *)
11017 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11018 ;;
11019 esac
11020 lt_cv_with_aix_soname=$with_aix_soname
11021 else
11022 if ${lt_cv_with_aix_soname+:} false; then :
11023 $as_echo_n "(cached) " >&6
11024 else
11025 lt_cv_with_aix_soname=aix
11026 fi
11027
11028 with_aix_soname=$lt_cv_with_aix_soname
11029 fi
11030
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11032 $as_echo "$with_aix_soname" >&6; }
11033 if test aix != "$with_aix_soname"; then
11034 # For the AIX way of multilib, we name the shared archive member
11035 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11036 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11037 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11038 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11039 if test 64 = "${OBJECT_MODE-32}"; then
11040 shared_archive_member_spec=shr_64
11041 else
11042 shared_archive_member_spec=shr
11043 fi
11044 fi
11045 ;;
11046 *)
11047 with_aix_soname=aix
11048 ;;
11049 esac
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060 # This can be used to rebuild libtool when needed
11061 LIBTOOL_DEPS=$ltmain
11062
11063 # Always use our own libtool.
11064 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095 test -z "$LN_S" && LN_S="ln -s"
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110 if test -n "${ZSH_VERSION+set}"; then
11111 setopt NO_GLOB_SUBST
11112 fi
11113
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11115 $as_echo_n "checking for objdir... " >&6; }
11116 if ${lt_cv_objdir+:} false; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 rm -f .libs 2>/dev/null
11120 mkdir .libs 2>/dev/null
11121 if test -d .libs; then
11122 lt_cv_objdir=.libs
11123 else
11124 # MS-DOS does not allow filenames that begin with a dot.
11125 lt_cv_objdir=_libs
11126 fi
11127 rmdir .libs 2>/dev/null
11128 fi
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11130 $as_echo "$lt_cv_objdir" >&6; }
11131 objdir=$lt_cv_objdir
11132
11133
11134
11135
11136
11137 cat >>confdefs.h <<_ACEOF
11138 #define LT_OBJDIR "$lt_cv_objdir/"
11139 _ACEOF
11140
11141
11142
11143
11144 case $host_os in
11145 aix3*)
11146 # AIX sometimes has problems with the GCC collect2 program. For some
11147 # reason, if we set the COLLECT_NAMES environment variable, the problems
11148 # vanish in a puff of smoke.
11149 if test set != "${COLLECT_NAMES+set}"; then
11150 COLLECT_NAMES=
11151 export COLLECT_NAMES
11152 fi
11153 ;;
11154 esac
11155
11156 # Global variables:
11157 ofile=libtool
11158 can_build_shared=yes
11159
11160 # All known linkers require a '.a' archive for static linking (except MSVC,
11161 # which needs '.lib').
11162 libext=a
11163
11164 with_gnu_ld=$lt_cv_prog_gnu_ld
11165
11166 old_CC=$CC
11167 old_CFLAGS=$CFLAGS
11168
11169 # Set sane defaults for various variables
11170 test -z "$CC" && CC=cc
11171 test -z "$LTCC" && LTCC=$CC
11172 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11173 test -z "$LD" && LD=ld
11174 test -z "$ac_objext" && ac_objext=o
11175
11176 func_cc_basename $compiler
11177 cc_basename=$func_cc_basename_result
11178
11179
11180 # Only perform the check for file, if the check method requires it
11181 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11182 case $deplibs_check_method in
11183 file_magic*)
11184 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11186 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11187 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 case $MAGIC_CMD in
11191 [\\/*] | ?:[\\/]*)
11192 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11193 ;;
11194 *)
11195 lt_save_MAGIC_CMD=$MAGIC_CMD
11196 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11198 for ac_dir in $ac_dummy; do
11199 IFS=$lt_save_ifs
11200 test -z "$ac_dir" && ac_dir=.
11201 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11202 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11203 if test -n "$file_magic_test_file"; then
11204 case $deplibs_check_method in
11205 "file_magic "*)
11206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11207 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11209 $EGREP "$file_magic_regex" > /dev/null; then
11210 :
11211 else
11212 cat <<_LT_EOF 1>&2
11213
11214 *** Warning: the command libtool uses to detect shared libraries,
11215 *** $file_magic_cmd, produces output that libtool cannot recognize.
11216 *** The result is that libtool may fail to recognize shared libraries
11217 *** as such. This will affect the creation of libtool libraries that
11218 *** depend on shared libraries, but programs linked with such libtool
11219 *** libraries will work regardless of this problem. Nevertheless, you
11220 *** may want to report the problem to your system manager and/or to
11221 *** bug-libtool@gnu.org
11222
11223 _LT_EOF
11224 fi ;;
11225 esac
11226 fi
11227 break
11228 fi
11229 done
11230 IFS=$lt_save_ifs
11231 MAGIC_CMD=$lt_save_MAGIC_CMD
11232 ;;
11233 esac
11234 fi
11235
11236 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11237 if test -n "$MAGIC_CMD"; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11239 $as_echo "$MAGIC_CMD" >&6; }
11240 else
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242 $as_echo "no" >&6; }
11243 fi
11244
11245
11246
11247
11248
11249 if test -z "$lt_cv_path_MAGIC_CMD"; then
11250 if test -n "$ac_tool_prefix"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11252 $as_echo_n "checking for file... " >&6; }
11253 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255 else
11256 case $MAGIC_CMD in
11257 [\\/*] | ?:[\\/]*)
11258 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11259 ;;
11260 *)
11261 lt_save_MAGIC_CMD=$MAGIC_CMD
11262 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11263 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11264 for ac_dir in $ac_dummy; do
11265 IFS=$lt_save_ifs
11266 test -z "$ac_dir" && ac_dir=.
11267 if test -f "$ac_dir/file"; then
11268 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11269 if test -n "$file_magic_test_file"; then
11270 case $deplibs_check_method in
11271 "file_magic "*)
11272 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11273 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11274 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11275 $EGREP "$file_magic_regex" > /dev/null; then
11276 :
11277 else
11278 cat <<_LT_EOF 1>&2
11279
11280 *** Warning: the command libtool uses to detect shared libraries,
11281 *** $file_magic_cmd, produces output that libtool cannot recognize.
11282 *** The result is that libtool may fail to recognize shared libraries
11283 *** as such. This will affect the creation of libtool libraries that
11284 *** depend on shared libraries, but programs linked with such libtool
11285 *** libraries will work regardless of this problem. Nevertheless, you
11286 *** may want to report the problem to your system manager and/or to
11287 *** bug-libtool@gnu.org
11288
11289 _LT_EOF
11290 fi ;;
11291 esac
11292 fi
11293 break
11294 fi
11295 done
11296 IFS=$lt_save_ifs
11297 MAGIC_CMD=$lt_save_MAGIC_CMD
11298 ;;
11299 esac
11300 fi
11301
11302 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11303 if test -n "$MAGIC_CMD"; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11305 $as_echo "$MAGIC_CMD" >&6; }
11306 else
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11308 $as_echo "no" >&6; }
11309 fi
11310
11311
11312 else
11313 MAGIC_CMD=:
11314 fi
11315 fi
11316
11317 fi
11318 ;;
11319 esac
11320
11321 # Use C for the default configuration in the libtool script
11322
11323 lt_save_CC=$CC
11324 ac_ext=c
11325 ac_cpp='$CPP $CPPFLAGS'
11326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11329
11330
11331 # Source file extension for C test sources.
11332 ac_ext=c
11333
11334 # Object file extension for compiled C test sources.
11335 objext=o
11336 objext=$objext
11337
11338 # Code to be used in simple compile tests
11339 lt_simple_compile_test_code="int some_variable = 0;"
11340
11341 # Code to be used in simple link tests
11342 lt_simple_link_test_code='int main(){return(0);}'
11343
11344
11345
11346
11347
11348
11349
11350 # If no C compiler was specified, use CC.
11351 LTCC=${LTCC-"$CC"}
11352
11353 # If no C compiler flags were specified, use CFLAGS.
11354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11355
11356 # Allow CC to be a program name with arguments.
11357 compiler=$CC
11358
11359 # Save the default compiler, since it gets overwritten when the other
11360 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11361 compiler_DEFAULT=$CC
11362
11363 # save warnings/boilerplate of simple test code
11364 ac_outfile=conftest.$ac_objext
11365 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11367 _lt_compiler_boilerplate=`cat conftest.err`
11368 $RM conftest*
11369
11370 ac_outfile=conftest.$ac_objext
11371 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11373 _lt_linker_boilerplate=`cat conftest.err`
11374 $RM -r conftest*
11375
11376
11377 ## CAVEAT EMPTOR:
11378 ## There is no encapsulation within the following macros, do not change
11379 ## the running order or otherwise move them around unless you know exactly
11380 ## what you are doing...
11381 if test -n "$compiler"; then
11382
11383 lt_prog_compiler_no_builtin_flag=
11384
11385 if test yes = "$GCC"; then
11386 case $cc_basename in
11387 nvcc*)
11388 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11389 *)
11390 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11391 esac
11392
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11394 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11395 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11396 $as_echo_n "(cached) " >&6
11397 else
11398 lt_cv_prog_compiler_rtti_exceptions=no
11399 ac_outfile=conftest.$ac_objext
11400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11401 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11402 # Insert the option either (1) after the last *FLAGS variable, or
11403 # (2) before a word containing "conftest.", or (3) at the end.
11404 # Note that $ac_compile itself does not contain backslashes and begins
11405 # with a dollar sign (not a hyphen), so the echo should work correctly.
11406 # The option is referenced via a variable to avoid confusing sed.
11407 lt_compile=`echo "$ac_compile" | $SED \
11408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11410 -e 's:$: $lt_compiler_flag:'`
11411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11412 (eval "$lt_compile" 2>conftest.err)
11413 ac_status=$?
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 if (exit $ac_status) && test -s "$ac_outfile"; then
11417 # The compiler can only warn and ignore the option if not recognized
11418 # So say no if there are warnings other than the usual output.
11419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11422 lt_cv_prog_compiler_rtti_exceptions=yes
11423 fi
11424 fi
11425 $RM conftest*
11426
11427 fi
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11429 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11430
11431 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11432 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11433 else
11434 :
11435 fi
11436
11437 fi
11438
11439
11440
11441
11442
11443
11444 lt_prog_compiler_wl=
11445 lt_prog_compiler_pic=
11446 lt_prog_compiler_static=
11447
11448
11449 if test yes = "$GCC"; then
11450 lt_prog_compiler_wl='-Wl,'
11451 lt_prog_compiler_static='-static'
11452
11453 case $host_os in
11454 aix*)
11455 # All AIX code is PIC.
11456 if test ia64 = "$host_cpu"; then
11457 # AIX 5 now supports IA64 processor
11458 lt_prog_compiler_static='-Bstatic'
11459 fi
11460 lt_prog_compiler_pic='-fPIC'
11461 ;;
11462
11463 amigaos*)
11464 case $host_cpu in
11465 powerpc)
11466 # see comment about AmigaOS4 .so support
11467 lt_prog_compiler_pic='-fPIC'
11468 ;;
11469 m68k)
11470 # FIXME: we need at least 68020 code to build shared libraries, but
11471 # adding the '-m68020' flag to GCC prevents building anything better,
11472 # like '-m68040'.
11473 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11474 ;;
11475 esac
11476 ;;
11477
11478 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11479 # PIC is the default for these OSes.
11480 ;;
11481
11482 mingw* | cygwin* | pw32* | os2* | cegcc*)
11483 # This hack is so that the source file can tell whether it is being
11484 # built for inclusion in a dll (and should export symbols for example).
11485 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11486 # (--disable-auto-import) libraries
11487 lt_prog_compiler_pic='-DDLL_EXPORT'
11488 case $host_os in
11489 os2*)
11490 lt_prog_compiler_static='$wl-static'
11491 ;;
11492 esac
11493 ;;
11494
11495 darwin* | rhapsody*)
11496 # PIC is the default on this platform
11497 # Common symbols not allowed in MH_DYLIB files
11498 lt_prog_compiler_pic='-fno-common'
11499 ;;
11500
11501 haiku*)
11502 # PIC is the default for Haiku.
11503 # The "-static" flag exists, but is broken.
11504 lt_prog_compiler_static=
11505 ;;
11506
11507 hpux*)
11508 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11509 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11510 # sets the default TLS model and affects inlining.
11511 case $host_cpu in
11512 hppa*64*)
11513 # +Z the default
11514 ;;
11515 *)
11516 lt_prog_compiler_pic='-fPIC'
11517 ;;
11518 esac
11519 ;;
11520
11521 interix[3-9]*)
11522 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11523 # Instead, we relocate shared libraries at runtime.
11524 ;;
11525
11526 msdosdjgpp*)
11527 # Just because we use GCC doesn't mean we suddenly get shared libraries
11528 # on systems that don't support them.
11529 lt_prog_compiler_can_build_shared=no
11530 enable_shared=no
11531 ;;
11532
11533 *nto* | *qnx*)
11534 # QNX uses GNU C++, but need to define -shared option too, otherwise
11535 # it will coredump.
11536 lt_prog_compiler_pic='-fPIC -shared'
11537 ;;
11538
11539 sysv4*MP*)
11540 if test -d /usr/nec; then
11541 lt_prog_compiler_pic=-Kconform_pic
11542 fi
11543 ;;
11544
11545 *)
11546 lt_prog_compiler_pic='-fPIC'
11547 ;;
11548 esac
11549
11550 case $cc_basename in
11551 nvcc*) # Cuda Compiler Driver 2.2
11552 lt_prog_compiler_wl='-Xlinker '
11553 if test -n "$lt_prog_compiler_pic"; then
11554 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11555 fi
11556 ;;
11557 esac
11558 else
11559 # PORTME Check for flag to pass linker flags through the system compiler.
11560 case $host_os in
11561 aix*)
11562 lt_prog_compiler_wl='-Wl,'
11563 if test ia64 = "$host_cpu"; then
11564 # AIX 5 now supports IA64 processor
11565 lt_prog_compiler_static='-Bstatic'
11566 else
11567 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11568 fi
11569 ;;
11570
11571 darwin* | rhapsody*)
11572 # PIC is the default on this platform
11573 # Common symbols not allowed in MH_DYLIB files
11574 lt_prog_compiler_pic='-fno-common'
11575 case $cc_basename in
11576 nagfor*)
11577 # NAG Fortran compiler
11578 lt_prog_compiler_wl='-Wl,-Wl,,'
11579 lt_prog_compiler_pic='-PIC'
11580 lt_prog_compiler_static='-Bstatic'
11581 ;;
11582 esac
11583 ;;
11584
11585 mingw* | cygwin* | pw32* | os2* | cegcc*)
11586 # This hack is so that the source file can tell whether it is being
11587 # built for inclusion in a dll (and should export symbols for example).
11588 lt_prog_compiler_pic='-DDLL_EXPORT'
11589 case $host_os in
11590 os2*)
11591 lt_prog_compiler_static='$wl-static'
11592 ;;
11593 esac
11594 ;;
11595
11596 hpux9* | hpux10* | hpux11*)
11597 lt_prog_compiler_wl='-Wl,'
11598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11599 # not for PA HP-UX.
11600 case $host_cpu in
11601 hppa*64*|ia64*)
11602 # +Z the default
11603 ;;
11604 *)
11605 lt_prog_compiler_pic='+Z'
11606 ;;
11607 esac
11608 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11609 lt_prog_compiler_static='$wl-a ${wl}archive'
11610 ;;
11611
11612 irix5* | irix6* | nonstopux*)
11613 lt_prog_compiler_wl='-Wl,'
11614 # PIC (with -KPIC) is the default.
11615 lt_prog_compiler_static='-non_shared'
11616 ;;
11617
11618 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11619 case $cc_basename in
11620 # old Intel for x86_64, which still supported -KPIC.
11621 ecc*)
11622 lt_prog_compiler_wl='-Wl,'
11623 lt_prog_compiler_pic='-KPIC'
11624 lt_prog_compiler_static='-static'
11625 ;;
11626 # icc used to be incompatible with GCC.
11627 # ICC 10 doesn't accept -KPIC any more.
11628 icc* | ifort*)
11629 lt_prog_compiler_wl='-Wl,'
11630 lt_prog_compiler_pic='-fPIC'
11631 lt_prog_compiler_static='-static'
11632 ;;
11633 # Lahey Fortran 8.1.
11634 lf95*)
11635 lt_prog_compiler_wl='-Wl,'
11636 lt_prog_compiler_pic='--shared'
11637 lt_prog_compiler_static='--static'
11638 ;;
11639 nagfor*)
11640 # NAG Fortran compiler
11641 lt_prog_compiler_wl='-Wl,-Wl,,'
11642 lt_prog_compiler_pic='-PIC'
11643 lt_prog_compiler_static='-Bstatic'
11644 ;;
11645 tcc*)
11646 # Fabrice Bellard et al's Tiny C Compiler
11647 lt_prog_compiler_wl='-Wl,'
11648 lt_prog_compiler_pic='-fPIC'
11649 lt_prog_compiler_static='-static'
11650 ;;
11651 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11652 # Portland Group compilers (*not* the Pentium gcc compiler,
11653 # which looks to be a dead project)
11654 lt_prog_compiler_wl='-Wl,'
11655 lt_prog_compiler_pic='-fpic'
11656 lt_prog_compiler_static='-Bstatic'
11657 ;;
11658 ccc*)
11659 lt_prog_compiler_wl='-Wl,'
11660 # All Alpha code is PIC.
11661 lt_prog_compiler_static='-non_shared'
11662 ;;
11663 xl* | bgxl* | bgf* | mpixl*)
11664 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11665 lt_prog_compiler_wl='-Wl,'
11666 lt_prog_compiler_pic='-qpic'
11667 lt_prog_compiler_static='-qstaticlink'
11668 ;;
11669 *)
11670 case `$CC -V 2>&1 | sed 5q` in
11671 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11672 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11673 lt_prog_compiler_pic='-KPIC'
11674 lt_prog_compiler_static='-Bstatic'
11675 lt_prog_compiler_wl=''
11676 ;;
11677 *Sun\ F* | *Sun*Fortran*)
11678 lt_prog_compiler_pic='-KPIC'
11679 lt_prog_compiler_static='-Bstatic'
11680 lt_prog_compiler_wl='-Qoption ld '
11681 ;;
11682 *Sun\ C*)
11683 # Sun C 5.9
11684 lt_prog_compiler_pic='-KPIC'
11685 lt_prog_compiler_static='-Bstatic'
11686 lt_prog_compiler_wl='-Wl,'
11687 ;;
11688 *Intel*\ [CF]*Compiler*)
11689 lt_prog_compiler_wl='-Wl,'
11690 lt_prog_compiler_pic='-fPIC'
11691 lt_prog_compiler_static='-static'
11692 ;;
11693 *Portland\ Group*)
11694 lt_prog_compiler_wl='-Wl,'
11695 lt_prog_compiler_pic='-fpic'
11696 lt_prog_compiler_static='-Bstatic'
11697 ;;
11698 esac
11699 ;;
11700 esac
11701 ;;
11702
11703 newsos6)
11704 lt_prog_compiler_pic='-KPIC'
11705 lt_prog_compiler_static='-Bstatic'
11706 ;;
11707
11708 *nto* | *qnx*)
11709 # QNX uses GNU C++, but need to define -shared option too, otherwise
11710 # it will coredump.
11711 lt_prog_compiler_pic='-fPIC -shared'
11712 ;;
11713
11714 osf3* | osf4* | osf5*)
11715 lt_prog_compiler_wl='-Wl,'
11716 # All OSF/1 code is PIC.
11717 lt_prog_compiler_static='-non_shared'
11718 ;;
11719
11720 rdos*)
11721 lt_prog_compiler_static='-non_shared'
11722 ;;
11723
11724 solaris*)
11725 lt_prog_compiler_pic='-KPIC'
11726 lt_prog_compiler_static='-Bstatic'
11727 case $cc_basename in
11728 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11729 lt_prog_compiler_wl='-Qoption ld ';;
11730 *)
11731 lt_prog_compiler_wl='-Wl,';;
11732 esac
11733 ;;
11734
11735 sunos4*)
11736 lt_prog_compiler_wl='-Qoption ld '
11737 lt_prog_compiler_pic='-PIC'
11738 lt_prog_compiler_static='-Bstatic'
11739 ;;
11740
11741 sysv4 | sysv4.2uw2* | sysv4.3*)
11742 lt_prog_compiler_wl='-Wl,'
11743 lt_prog_compiler_pic='-KPIC'
11744 lt_prog_compiler_static='-Bstatic'
11745 ;;
11746
11747 sysv4*MP*)
11748 if test -d /usr/nec; then
11749 lt_prog_compiler_pic='-Kconform_pic'
11750 lt_prog_compiler_static='-Bstatic'
11751 fi
11752 ;;
11753
11754 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11755 lt_prog_compiler_wl='-Wl,'
11756 lt_prog_compiler_pic='-KPIC'
11757 lt_prog_compiler_static='-Bstatic'
11758 ;;
11759
11760 unicos*)
11761 lt_prog_compiler_wl='-Wl,'
11762 lt_prog_compiler_can_build_shared=no
11763 ;;
11764
11765 uts4*)
11766 lt_prog_compiler_pic='-pic'
11767 lt_prog_compiler_static='-Bstatic'
11768 ;;
11769
11770 *)
11771 lt_prog_compiler_can_build_shared=no
11772 ;;
11773 esac
11774 fi
11775
11776 case $host_os in
11777 # For platforms that do not support PIC, -DPIC is meaningless:
11778 *djgpp*)
11779 lt_prog_compiler_pic=
11780 ;;
11781 *)
11782 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11783 ;;
11784 esac
11785
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11787 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11788 if ${lt_cv_prog_compiler_pic+:} false; then :
11789 $as_echo_n "(cached) " >&6
11790 else
11791 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11792 fi
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11794 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11795 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11796
11797 #
11798 # Check to make sure the PIC flag actually works.
11799 #
11800 if test -n "$lt_prog_compiler_pic"; then
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11802 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11803 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11804 $as_echo_n "(cached) " >&6
11805 else
11806 lt_cv_prog_compiler_pic_works=no
11807 ac_outfile=conftest.$ac_objext
11808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11809 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11810 # Insert the option either (1) after the last *FLAGS variable, or
11811 # (2) before a word containing "conftest.", or (3) at the end.
11812 # Note that $ac_compile itself does not contain backslashes and begins
11813 # with a dollar sign (not a hyphen), so the echo should work correctly.
11814 # The option is referenced via a variable to avoid confusing sed.
11815 lt_compile=`echo "$ac_compile" | $SED \
11816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11818 -e 's:$: $lt_compiler_flag:'`
11819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11820 (eval "$lt_compile" 2>conftest.err)
11821 ac_status=$?
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 if (exit $ac_status) && test -s "$ac_outfile"; then
11825 # The compiler can only warn and ignore the option if not recognized
11826 # So say no if there are warnings other than the usual output.
11827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11830 lt_cv_prog_compiler_pic_works=yes
11831 fi
11832 fi
11833 $RM conftest*
11834
11835 fi
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11837 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11838
11839 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11840 case $lt_prog_compiler_pic in
11841 "" | " "*) ;;
11842 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11843 esac
11844 else
11845 lt_prog_compiler_pic=
11846 lt_prog_compiler_can_build_shared=no
11847 fi
11848
11849 fi
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861 #
11862 # Check to make sure the static flag actually works.
11863 #
11864 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11866 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11867 if ${lt_cv_prog_compiler_static_works+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 lt_cv_prog_compiler_static_works=no
11871 save_LDFLAGS=$LDFLAGS
11872 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11873 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11874 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11875 # The linker can only warn and ignore the option if not recognized
11876 # So say no if there are warnings
11877 if test -s conftest.err; then
11878 # Append any errors to the config.log.
11879 cat conftest.err 1>&5
11880 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11882 if diff conftest.exp conftest.er2 >/dev/null; then
11883 lt_cv_prog_compiler_static_works=yes
11884 fi
11885 else
11886 lt_cv_prog_compiler_static_works=yes
11887 fi
11888 fi
11889 $RM -r conftest*
11890 LDFLAGS=$save_LDFLAGS
11891
11892 fi
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11894 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11895
11896 if test yes = "$lt_cv_prog_compiler_static_works"; then
11897 :
11898 else
11899 lt_prog_compiler_static=
11900 fi
11901
11902
11903
11904
11905
11906
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11909 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11910 if ${lt_cv_prog_compiler_c_o+:} false; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 lt_cv_prog_compiler_c_o=no
11914 $RM -r conftest 2>/dev/null
11915 mkdir conftest
11916 cd conftest
11917 mkdir out
11918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11919
11920 lt_compiler_flag="-o out/conftest2.$ac_objext"
11921 # Insert the option either (1) after the last *FLAGS variable, or
11922 # (2) before a word containing "conftest.", or (3) at the end.
11923 # Note that $ac_compile itself does not contain backslashes and begins
11924 # with a dollar sign (not a hyphen), so the echo should work correctly.
11925 lt_compile=`echo "$ac_compile" | $SED \
11926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11928 -e 's:$: $lt_compiler_flag:'`
11929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11930 (eval "$lt_compile" 2>out/conftest.err)
11931 ac_status=$?
11932 cat out/conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11935 then
11936 # The compiler can only warn and ignore the option if not recognized
11937 # So say no if there are warnings
11938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11939 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11940 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11941 lt_cv_prog_compiler_c_o=yes
11942 fi
11943 fi
11944 chmod u+w . 2>&5
11945 $RM conftest*
11946 # SGI C++ compiler will create directory out/ii_files/ for
11947 # template instantiation
11948 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11949 $RM out/* && rmdir out
11950 cd ..
11951 $RM -r conftest
11952 $RM conftest*
11953
11954 fi
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11956 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11957
11958
11959
11960
11961
11962
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11964 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11965 if ${lt_cv_prog_compiler_c_o+:} false; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 lt_cv_prog_compiler_c_o=no
11969 $RM -r conftest 2>/dev/null
11970 mkdir conftest
11971 cd conftest
11972 mkdir out
11973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11974
11975 lt_compiler_flag="-o out/conftest2.$ac_objext"
11976 # Insert the option either (1) after the last *FLAGS variable, or
11977 # (2) before a word containing "conftest.", or (3) at the end.
11978 # Note that $ac_compile itself does not contain backslashes and begins
11979 # with a dollar sign (not a hyphen), so the echo should work correctly.
11980 lt_compile=`echo "$ac_compile" | $SED \
11981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11983 -e 's:$: $lt_compiler_flag:'`
11984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11985 (eval "$lt_compile" 2>out/conftest.err)
11986 ac_status=$?
11987 cat out/conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11990 then
11991 # The compiler can only warn and ignore the option if not recognized
11992 # So say no if there are warnings
11993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11996 lt_cv_prog_compiler_c_o=yes
11997 fi
11998 fi
11999 chmod u+w . 2>&5
12000 $RM conftest*
12001 # SGI C++ compiler will create directory out/ii_files/ for
12002 # template instantiation
12003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12004 $RM out/* && rmdir out
12005 cd ..
12006 $RM -r conftest
12007 $RM conftest*
12008
12009 fi
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12011 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12012
12013
12014
12015
12016 hard_links=nottested
12017 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12018 # do not overwrite the value of need_locks provided by the user
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12020 $as_echo_n "checking if we can lock with hard links... " >&6; }
12021 hard_links=yes
12022 $RM conftest*
12023 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12024 touch conftest.a
12025 ln conftest.a conftest.b 2>&5 || hard_links=no
12026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12028 $as_echo "$hard_links" >&6; }
12029 if test no = "$hard_links"; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12031 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12032 need_locks=warn
12033 fi
12034 else
12035 need_locks=no
12036 fi
12037
12038
12039
12040
12041
12042
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12044 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12045
12046 runpath_var=
12047 allow_undefined_flag=
12048 always_export_symbols=no
12049 archive_cmds=
12050 archive_expsym_cmds=
12051 compiler_needs_object=no
12052 enable_shared_with_static_runtimes=no
12053 export_dynamic_flag_spec=
12054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12055 hardcode_automatic=no
12056 hardcode_direct=no
12057 hardcode_direct_absolute=no
12058 hardcode_libdir_flag_spec=
12059 hardcode_libdir_separator=
12060 hardcode_minus_L=no
12061 hardcode_shlibpath_var=unsupported
12062 inherit_rpath=no
12063 link_all_deplibs=unknown
12064 module_cmds=
12065 module_expsym_cmds=
12066 old_archive_from_new_cmds=
12067 old_archive_from_expsyms_cmds=
12068 thread_safe_flag_spec=
12069 whole_archive_flag_spec=
12070 # include_expsyms should be a list of space-separated symbols to be *always*
12071 # included in the symbol list
12072 include_expsyms=
12073 # exclude_expsyms can be an extended regexp of symbols to exclude
12074 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12075 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12076 # as well as any symbol that contains 'd'.
12077 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12078 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12079 # platforms (ab)use it in PIC code, but their linkers get confused if
12080 # the symbol is explicitly referenced. Since portable code cannot
12081 # rely on this symbol name, it's probably fine to never include it in
12082 # preloaded symbol tables.
12083 # Exclude shared library initialization/finalization symbols.
12084 extract_expsyms_cmds=
12085
12086 case $host_os in
12087 cygwin* | mingw* | pw32* | cegcc*)
12088 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12089 # When not using gcc, we currently assume that we are using
12090 # Microsoft Visual C++.
12091 if test yes != "$GCC"; then
12092 with_gnu_ld=no
12093 fi
12094 ;;
12095 interix*)
12096 # we just hope/assume this is gcc and not c89 (= MSVC++)
12097 with_gnu_ld=yes
12098 ;;
12099 openbsd* | bitrig*)
12100 with_gnu_ld=no
12101 ;;
12102 linux* | k*bsd*-gnu | gnu*)
12103 link_all_deplibs=no
12104 ;;
12105 esac
12106
12107 ld_shlibs=yes
12108
12109 # On some targets, GNU ld is compatible enough with the native linker
12110 # that we're better off using the native interface for both.
12111 lt_use_gnu_ld_interface=no
12112 if test yes = "$with_gnu_ld"; then
12113 case $host_os in
12114 aix*)
12115 # The AIX port of GNU ld has always aspired to compatibility
12116 # with the native linker. However, as the warning in the GNU ld
12117 # block says, versions before 2.19.5* couldn't really create working
12118 # shared libraries, regardless of the interface used.
12119 case `$LD -v 2>&1` in
12120 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12121 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12122 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12123 *)
12124 lt_use_gnu_ld_interface=yes
12125 ;;
12126 esac
12127 ;;
12128 *)
12129 lt_use_gnu_ld_interface=yes
12130 ;;
12131 esac
12132 fi
12133
12134 if test yes = "$lt_use_gnu_ld_interface"; then
12135 # If archive_cmds runs LD, not CC, wlarc should be empty
12136 wlarc='$wl'
12137
12138 # Set some defaults for GNU ld with shared library support. These
12139 # are reset later if shared libraries are not supported. Putting them
12140 # here allows them to be overridden if necessary.
12141 runpath_var=LD_RUN_PATH
12142 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12143 export_dynamic_flag_spec='$wl--export-dynamic'
12144 # ancient GNU ld didn't support --whole-archive et. al.
12145 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12146 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12147 else
12148 whole_archive_flag_spec=
12149 fi
12150 supports_anon_versioning=no
12151 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12152 *GNU\ gold*) supports_anon_versioning=yes ;;
12153 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12154 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12155 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12156 *\ 2.11.*) ;; # other 2.11 versions
12157 *) supports_anon_versioning=yes ;;
12158 esac
12159
12160 # See if GNU ld supports shared libraries.
12161 case $host_os in
12162 aix[3-9]*)
12163 # On AIX/PPC, the GNU linker is very broken
12164 if test ia64 != "$host_cpu"; then
12165 ld_shlibs=no
12166 cat <<_LT_EOF 1>&2
12167
12168 *** Warning: the GNU linker, at least up to release 2.19, is reported
12169 *** to be unable to reliably create shared libraries on AIX.
12170 *** Therefore, libtool is disabling shared libraries support. If you
12171 *** really care for shared libraries, you may want to install binutils
12172 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12173 *** You will then need to restart the configuration process.
12174
12175 _LT_EOF
12176 fi
12177 ;;
12178
12179 amigaos*)
12180 case $host_cpu in
12181 powerpc)
12182 # see comment about AmigaOS4 .so support
12183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12184 archive_expsym_cmds=''
12185 ;;
12186 m68k)
12187 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)'
12188 hardcode_libdir_flag_spec='-L$libdir'
12189 hardcode_minus_L=yes
12190 ;;
12191 esac
12192 ;;
12193
12194 beos*)
12195 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12196 allow_undefined_flag=unsupported
12197 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12198 # support --undefined. This deserves some investigation. FIXME
12199 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12200 else
12201 ld_shlibs=no
12202 fi
12203 ;;
12204
12205 cygwin* | mingw* | pw32* | cegcc*)
12206 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12207 # as there is no search path for DLLs.
12208 hardcode_libdir_flag_spec='-L$libdir'
12209 export_dynamic_flag_spec='$wl--export-all-symbols'
12210 allow_undefined_flag=unsupported
12211 always_export_symbols=no
12212 enable_shared_with_static_runtimes=yes
12213 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'
12214 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12215
12216 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12218 # If the export-symbols file already is a .def file, use it as
12219 # is; otherwise, prepend EXPORTS...
12220 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12221 cp $export_symbols $output_objdir/$soname.def;
12222 else
12223 echo EXPORTS > $output_objdir/$soname.def;
12224 cat $export_symbols >> $output_objdir/$soname.def;
12225 fi~
12226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12227 else
12228 ld_shlibs=no
12229 fi
12230 ;;
12231
12232 haiku*)
12233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12234 link_all_deplibs=yes
12235 ;;
12236
12237 os2*)
12238 hardcode_libdir_flag_spec='-L$libdir'
12239 hardcode_minus_L=yes
12240 allow_undefined_flag=unsupported
12241 shrext_cmds=.dll
12242 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12243 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12244 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12245 $ECHO EXPORTS >> $output_objdir/$libname.def~
12246 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12247 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12248 emximp -o $lib $output_objdir/$libname.def'
12249 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12250 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12251 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12252 $ECHO EXPORTS >> $output_objdir/$libname.def~
12253 prefix_cmds="$SED"~
12254 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12255 prefix_cmds="$prefix_cmds -e 1d";
12256 fi~
12257 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12258 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12259 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12260 emximp -o $lib $output_objdir/$libname.def'
12261 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12262 enable_shared_with_static_runtimes=yes
12263 ;;
12264
12265 interix[3-9]*)
12266 hardcode_direct=no
12267 hardcode_shlibpath_var=no
12268 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12269 export_dynamic_flag_spec='$wl-E'
12270 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12271 # Instead, shared libraries are loaded at an image base (0x10000000 by
12272 # default) and relocated if they conflict, which is a slow very memory
12273 # consuming and fragmenting process. To avoid this, we pick a random,
12274 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12275 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12277 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'
12278 ;;
12279
12280 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12281 tmp_diet=no
12282 if test linux-dietlibc = "$host_os"; then
12283 case $cc_basename in
12284 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12285 esac
12286 fi
12287 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12288 && test no = "$tmp_diet"
12289 then
12290 tmp_addflag=' $pic_flag'
12291 tmp_sharedflag='-shared'
12292 case $cc_basename,$host_cpu in
12293 pgcc*) # Portland Group C compiler
12294 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'
12295 tmp_addflag=' $pic_flag'
12296 ;;
12297 pgf77* | pgf90* | pgf95* | pgfortran*)
12298 # Portland Group f77 and f90 compilers
12299 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'
12300 tmp_addflag=' $pic_flag -Mnomain' ;;
12301 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12302 tmp_addflag=' -i_dynamic' ;;
12303 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12304 tmp_addflag=' -i_dynamic -nofor_main' ;;
12305 ifc* | ifort*) # Intel Fortran compiler
12306 tmp_addflag=' -nofor_main' ;;
12307 lf95*) # Lahey Fortran 8.1
12308 whole_archive_flag_spec=
12309 tmp_sharedflag='--shared' ;;
12310 nagfor*) # NAGFOR 5.3
12311 tmp_sharedflag='-Wl,-shared' ;;
12312 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12313 tmp_sharedflag='-qmkshrobj'
12314 tmp_addflag= ;;
12315 nvcc*) # Cuda Compiler Driver 2.2
12316 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'
12317 compiler_needs_object=yes
12318 ;;
12319 esac
12320 case `$CC -V 2>&1 | sed 5q` in
12321 *Sun\ C*) # Sun C 5.9
12322 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'
12323 compiler_needs_object=yes
12324 tmp_sharedflag='-G' ;;
12325 *Sun\ F*) # Sun Fortran 8.3
12326 tmp_sharedflag='-G' ;;
12327 esac
12328 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12329
12330 if test yes = "$supports_anon_versioning"; then
12331 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12333 echo "local: *; };" >> $output_objdir/$libname.ver~
12334 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12335 fi
12336
12337 case $cc_basename in
12338 tcc*)
12339 export_dynamic_flag_spec='-rdynamic'
12340 ;;
12341 xlf* | bgf* | bgxlf* | mpixlf*)
12342 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12343 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12344 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12345 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12346 if test yes = "$supports_anon_versioning"; then
12347 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12349 echo "local: *; };" >> $output_objdir/$libname.ver~
12350 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12351 fi
12352 ;;
12353 esac
12354 else
12355 ld_shlibs=no
12356 fi
12357 ;;
12358
12359 netbsd* | netbsdelf*-gnu)
12360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12361 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12362 wlarc=
12363 else
12364 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12365 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12366 fi
12367 ;;
12368
12369 solaris*)
12370 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12371 ld_shlibs=no
12372 cat <<_LT_EOF 1>&2
12373
12374 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12375 *** create shared libraries on Solaris systems. Therefore, libtool
12376 *** is disabling shared libraries support. We urge you to upgrade GNU
12377 *** binutils to release 2.9.1 or newer. Another option is to modify
12378 *** your PATH or compiler configuration so that the native linker is
12379 *** used, and then restart.
12380
12381 _LT_EOF
12382 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12383 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12384 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12385 else
12386 ld_shlibs=no
12387 fi
12388 ;;
12389
12390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12391 case `$LD -v 2>&1` in
12392 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12393 ld_shlibs=no
12394 cat <<_LT_EOF 1>&2
12395
12396 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12397 *** reliably create shared libraries on SCO systems. Therefore, libtool
12398 *** is disabling shared libraries support. We urge you to upgrade GNU
12399 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12400 *** your PATH or compiler configuration so that the native linker is
12401 *** used, and then restart.
12402
12403 _LT_EOF
12404 ;;
12405 *)
12406 # For security reasons, it is highly recommended that you always
12407 # use absolute paths for naming shared libraries, and exclude the
12408 # DT_RUNPATH tag from executables and libraries. But doing so
12409 # requires that you compile everything twice, which is a pain.
12410 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12411 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12414 else
12415 ld_shlibs=no
12416 fi
12417 ;;
12418 esac
12419 ;;
12420
12421 sunos4*)
12422 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12423 wlarc=
12424 hardcode_direct=yes
12425 hardcode_shlibpath_var=no
12426 ;;
12427
12428 *)
12429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12430 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12431 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12432 else
12433 ld_shlibs=no
12434 fi
12435 ;;
12436 esac
12437
12438 if test no = "$ld_shlibs"; then
12439 runpath_var=
12440 hardcode_libdir_flag_spec=
12441 export_dynamic_flag_spec=
12442 whole_archive_flag_spec=
12443 fi
12444 else
12445 # PORTME fill in a description of your system's linker (not GNU ld)
12446 case $host_os in
12447 aix3*)
12448 allow_undefined_flag=unsupported
12449 always_export_symbols=yes
12450 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'
12451 # Note: this linker hardcodes the directories in LIBPATH if there
12452 # are no directories specified by -L.
12453 hardcode_minus_L=yes
12454 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12455 # Neither direct hardcoding nor static linking is supported with a
12456 # broken collect2.
12457 hardcode_direct=unsupported
12458 fi
12459 ;;
12460
12461 aix[4-9]*)
12462 if test ia64 = "$host_cpu"; then
12463 # On IA64, the linker does run time linking by default, so we don't
12464 # have to do anything special.
12465 aix_use_runtimelinking=no
12466 exp_sym_flag='-Bexport'
12467 no_entry_flag=
12468 else
12469 # If we're using GNU nm, then we don't want the "-C" option.
12470 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12471 # Without the "-l" option, or with the "-B" option, AIX nm treats
12472 # weak defined symbols like other global defined symbols, whereas
12473 # GNU nm marks them as "W".
12474 # While the 'weak' keyword is ignored in the Export File, we need
12475 # it in the Import File for the 'aix-soname' feature, so we have
12476 # to replace the "-B" option with "-P" for AIX nm.
12477 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12478 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12479 else
12480 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12481 fi
12482 aix_use_runtimelinking=no
12483
12484 # Test if we are trying to use run time linking or normal
12485 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12486 # have runtime linking enabled, and use it for executables.
12487 # For shared libraries, we enable/disable runtime linking
12488 # depending on the kind of the shared library created -
12489 # when "with_aix_soname,aix_use_runtimelinking" is:
12490 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12491 # "aix,yes" lib.so shared, rtl:yes, for executables
12492 # lib.a static archive
12493 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12494 # lib.a(lib.so.V) shared, rtl:no, for executables
12495 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12496 # lib.a(lib.so.V) shared, rtl:no
12497 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12498 # lib.a static archive
12499 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12500 for ld_flag in $LDFLAGS; do
12501 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12502 aix_use_runtimelinking=yes
12503 break
12504 fi
12505 done
12506 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12507 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12508 # so we don't have lib.a shared libs to link our executables.
12509 # We have to force runtime linking in this case.
12510 aix_use_runtimelinking=yes
12511 LDFLAGS="$LDFLAGS -Wl,-brtl"
12512 fi
12513 ;;
12514 esac
12515
12516 exp_sym_flag='-bexport'
12517 no_entry_flag='-bnoentry'
12518 fi
12519
12520 # When large executables or shared objects are built, AIX ld can
12521 # have problems creating the table of contents. If linking a library
12522 # or program results in "error TOC overflow" add -mminimal-toc to
12523 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12524 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12525
12526 archive_cmds=''
12527 hardcode_direct=yes
12528 hardcode_direct_absolute=yes
12529 hardcode_libdir_separator=':'
12530 link_all_deplibs=yes
12531 file_list_spec='$wl-f,'
12532 case $with_aix_soname,$aix_use_runtimelinking in
12533 aix,*) ;; # traditional, no import file
12534 svr4,* | *,yes) # use import file
12535 # The Import File defines what to hardcode.
12536 hardcode_direct=no
12537 hardcode_direct_absolute=no
12538 ;;
12539 esac
12540
12541 if test yes = "$GCC"; then
12542 case $host_os in aix4.[012]|aix4.[012].*)
12543 # We only want to do this on AIX 4.2 and lower, the check
12544 # below for broken collect2 doesn't work under 4.3+
12545 collect2name=`$CC -print-prog-name=collect2`
12546 if test -f "$collect2name" &&
12547 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12548 then
12549 # We have reworked collect2
12550 :
12551 else
12552 # We have old collect2
12553 hardcode_direct=unsupported
12554 # It fails to find uninstalled libraries when the uninstalled
12555 # path is not listed in the libpath. Setting hardcode_minus_L
12556 # to unsupported forces relinking
12557 hardcode_minus_L=yes
12558 hardcode_libdir_flag_spec='-L$libdir'
12559 hardcode_libdir_separator=
12560 fi
12561 ;;
12562 esac
12563 shared_flag='-shared'
12564 if test yes = "$aix_use_runtimelinking"; then
12565 shared_flag="$shared_flag "'$wl-G'
12566 fi
12567 # Need to ensure runtime linking is disabled for the traditional
12568 # shared library, or the linker may eventually find shared libraries
12569 # /with/ Import File - we do not want to mix them.
12570 shared_flag_aix='-shared'
12571 shared_flag_svr4='-shared $wl-G'
12572 else
12573 # not using gcc
12574 if test ia64 = "$host_cpu"; then
12575 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12576 # chokes on -Wl,-G. The following line is correct:
12577 shared_flag='-G'
12578 else
12579 if test yes = "$aix_use_runtimelinking"; then
12580 shared_flag='$wl-G'
12581 else
12582 shared_flag='$wl-bM:SRE'
12583 fi
12584 shared_flag_aix='$wl-bM:SRE'
12585 shared_flag_svr4='$wl-G'
12586 fi
12587 fi
12588
12589 export_dynamic_flag_spec='$wl-bexpall'
12590 # It seems that -bexpall does not export symbols beginning with
12591 # underscore (_), so it is better to generate a list of symbols to export.
12592 always_export_symbols=yes
12593 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12594 # Warning - without using the other runtime loading flags (-brtl),
12595 # -berok will link without error, but may produce a broken library.
12596 allow_undefined_flag='-berok'
12597 # Determine the default libpath from the value encoded in an
12598 # empty executable.
12599 if test set = "${lt_cv_aix_libpath+set}"; then
12600 aix_libpath=$lt_cv_aix_libpath
12601 else
12602 if ${lt_cv_aix_libpath_+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607
12608 int
12609 main ()
12610 {
12611
12612 ;
12613 return 0;
12614 }
12615 _ACEOF
12616 if ac_fn_c_try_link "$LINENO"; then :
12617
12618 lt_aix_libpath_sed='
12619 /Import File Strings/,/^$/ {
12620 /^0/ {
12621 s/^0 *\([^ ]*\) *$/\1/
12622 p
12623 }
12624 }'
12625 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12626 # Check for a 64-bit object if we didn't find anything.
12627 if test -z "$lt_cv_aix_libpath_"; then
12628 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629 fi
12630 fi
12631 rm -f core conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633 if test -z "$lt_cv_aix_libpath_"; then
12634 lt_cv_aix_libpath_=/usr/lib:/lib
12635 fi
12636
12637 fi
12638
12639 aix_libpath=$lt_cv_aix_libpath_
12640 fi
12641
12642 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12643 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12644 else
12645 if test ia64 = "$host_cpu"; then
12646 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12647 allow_undefined_flag="-z nodefs"
12648 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"
12649 else
12650 # Determine the default libpath from the value encoded in an
12651 # empty executable.
12652 if test set = "${lt_cv_aix_libpath+set}"; then
12653 aix_libpath=$lt_cv_aix_libpath
12654 else
12655 if ${lt_cv_aix_libpath_+:} false; then :
12656 $as_echo_n "(cached) " >&6
12657 else
12658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h. */
12660
12661 int
12662 main ()
12663 {
12664
12665 ;
12666 return 0;
12667 }
12668 _ACEOF
12669 if ac_fn_c_try_link "$LINENO"; then :
12670
12671 lt_aix_libpath_sed='
12672 /Import File Strings/,/^$/ {
12673 /^0/ {
12674 s/^0 *\([^ ]*\) *$/\1/
12675 p
12676 }
12677 }'
12678 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12679 # Check for a 64-bit object if we didn't find anything.
12680 if test -z "$lt_cv_aix_libpath_"; then
12681 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12682 fi
12683 fi
12684 rm -f core conftest.err conftest.$ac_objext \
12685 conftest$ac_exeext conftest.$ac_ext
12686 if test -z "$lt_cv_aix_libpath_"; then
12687 lt_cv_aix_libpath_=/usr/lib:/lib
12688 fi
12689
12690 fi
12691
12692 aix_libpath=$lt_cv_aix_libpath_
12693 fi
12694
12695 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12696 # Warning - without using the other run time loading flags,
12697 # -berok will link without error, but may produce a broken library.
12698 no_undefined_flag=' $wl-bernotok'
12699 allow_undefined_flag=' $wl-berok'
12700 if test yes = "$with_gnu_ld"; then
12701 # We only use this code for GNU lds that support --whole-archive.
12702 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12703 else
12704 # Exported symbols can be pulled into shared objects from archives
12705 whole_archive_flag_spec='$convenience'
12706 fi
12707 archive_cmds_need_lc=yes
12708 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12709 # -brtl affects multiple linker settings, -berok does not and is overridden later
12710 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12711 if test svr4 != "$with_aix_soname"; then
12712 # This is similar to how AIX traditionally builds its shared libraries.
12713 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12714 fi
12715 if test aix != "$with_aix_soname"; then
12716 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12717 else
12718 # used by -dlpreopen to get the symbols
12719 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12720 fi
12721 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12722 fi
12723 fi
12724 ;;
12725
12726 amigaos*)
12727 case $host_cpu in
12728 powerpc)
12729 # see comment about AmigaOS4 .so support
12730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12731 archive_expsym_cmds=''
12732 ;;
12733 m68k)
12734 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)'
12735 hardcode_libdir_flag_spec='-L$libdir'
12736 hardcode_minus_L=yes
12737 ;;
12738 esac
12739 ;;
12740
12741 bsdi[45]*)
12742 export_dynamic_flag_spec=-rdynamic
12743 ;;
12744
12745 cygwin* | mingw* | pw32* | cegcc*)
12746 # When not using gcc, we currently assume that we are using
12747 # Microsoft Visual C++.
12748 # hardcode_libdir_flag_spec is actually meaningless, as there is
12749 # no search path for DLLs.
12750 case $cc_basename in
12751 cl*)
12752 # Native MSVC
12753 hardcode_libdir_flag_spec=' '
12754 allow_undefined_flag=unsupported
12755 always_export_symbols=yes
12756 file_list_spec='@'
12757 # Tell ltmain to make .lib files, not .a files.
12758 libext=lib
12759 # Tell ltmain to make .dll files, not .so files.
12760 shrext_cmds=.dll
12761 # FIXME: Setting linknames here is a bad hack.
12762 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12763 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12764 cp "$export_symbols" "$output_objdir/$soname.def";
12765 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12766 else
12767 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12768 fi~
12769 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12770 linknames='
12771 # The linker will not automatically build a static lib if we build a DLL.
12772 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12773 enable_shared_with_static_runtimes=yes
12774 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12775 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12776 # Don't use ranlib
12777 old_postinstall_cmds='chmod 644 $oldlib'
12778 postlink_cmds='lt_outputfile="@OUTPUT@"~
12779 lt_tool_outputfile="@TOOL_OUTPUT@"~
12780 case $lt_outputfile in
12781 *.exe|*.EXE) ;;
12782 *)
12783 lt_outputfile=$lt_outputfile.exe
12784 lt_tool_outputfile=$lt_tool_outputfile.exe
12785 ;;
12786 esac~
12787 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12788 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12789 $RM "$lt_outputfile.manifest";
12790 fi'
12791 ;;
12792 *)
12793 # Assume MSVC wrapper
12794 hardcode_libdir_flag_spec=' '
12795 allow_undefined_flag=unsupported
12796 # Tell ltmain to make .lib files, not .a files.
12797 libext=lib
12798 # Tell ltmain to make .dll files, not .so files.
12799 shrext_cmds=.dll
12800 # FIXME: Setting linknames here is a bad hack.
12801 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12802 # The linker will automatically build a .lib file if we build a DLL.
12803 old_archive_from_new_cmds='true'
12804 # FIXME: Should let the user specify the lib program.
12805 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12806 enable_shared_with_static_runtimes=yes
12807 ;;
12808 esac
12809 ;;
12810
12811 darwin* | rhapsody*)
12812
12813
12814 archive_cmds_need_lc=no
12815 hardcode_direct=no
12816 hardcode_automatic=yes
12817 hardcode_shlibpath_var=unsupported
12818 if test yes = "$lt_cv_ld_force_load"; then
12819 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\"`'
12820
12821 else
12822 whole_archive_flag_spec=''
12823 fi
12824 link_all_deplibs=yes
12825 allow_undefined_flag=$_lt_dar_allow_undefined
12826 case $cc_basename in
12827 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12828 *) _lt_dar_can_shared=$GCC ;;
12829 esac
12830 if test yes = "$_lt_dar_can_shared"; then
12831 output_verbose_link_cmd=func_echo_all
12832 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12833 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12834 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"
12835 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"
12836
12837 else
12838 ld_shlibs=no
12839 fi
12840
12841 ;;
12842
12843 dgux*)
12844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12845 hardcode_libdir_flag_spec='-L$libdir'
12846 hardcode_shlibpath_var=no
12847 ;;
12848
12849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12850 # support. Future versions do this automatically, but an explicit c++rt0.o
12851 # does not break anything, and helps significantly (at the cost of a little
12852 # extra space).
12853 freebsd2.2*)
12854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12855 hardcode_libdir_flag_spec='-R$libdir'
12856 hardcode_direct=yes
12857 hardcode_shlibpath_var=no
12858 ;;
12859
12860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12861 freebsd2.*)
12862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12863 hardcode_direct=yes
12864 hardcode_minus_L=yes
12865 hardcode_shlibpath_var=no
12866 ;;
12867
12868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12869 freebsd* | dragonfly*)
12870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12871 hardcode_libdir_flag_spec='-R$libdir'
12872 hardcode_direct=yes
12873 hardcode_shlibpath_var=no
12874 ;;
12875
12876 hpux9*)
12877 if test yes = "$GCC"; then
12878 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12879 else
12880 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12881 fi
12882 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12883 hardcode_libdir_separator=:
12884 hardcode_direct=yes
12885
12886 # hardcode_minus_L: Not really in the search PATH,
12887 # but as the default location of the library.
12888 hardcode_minus_L=yes
12889 export_dynamic_flag_spec='$wl-E'
12890 ;;
12891
12892 hpux10*)
12893 if test yes,no = "$GCC,$with_gnu_ld"; then
12894 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12895 else
12896 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12897 fi
12898 if test no = "$with_gnu_ld"; then
12899 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12900 hardcode_libdir_separator=:
12901 hardcode_direct=yes
12902 hardcode_direct_absolute=yes
12903 export_dynamic_flag_spec='$wl-E'
12904 # hardcode_minus_L: Not really in the search PATH,
12905 # but as the default location of the library.
12906 hardcode_minus_L=yes
12907 fi
12908 ;;
12909
12910 hpux11*)
12911 if test yes,no = "$GCC,$with_gnu_ld"; then
12912 case $host_cpu in
12913 hppa*64*)
12914 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12915 ;;
12916 ia64*)
12917 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12918 ;;
12919 *)
12920 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12921 ;;
12922 esac
12923 else
12924 case $host_cpu in
12925 hppa*64*)
12926 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12927 ;;
12928 ia64*)
12929 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12930 ;;
12931 *)
12932
12933 # Older versions of the 11.00 compiler do not understand -b yet
12934 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12936 $as_echo_n "checking if $CC understands -b... " >&6; }
12937 if ${lt_cv_prog_compiler__b+:} false; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 lt_cv_prog_compiler__b=no
12941 save_LDFLAGS=$LDFLAGS
12942 LDFLAGS="$LDFLAGS -b"
12943 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12945 # The linker can only warn and ignore the option if not recognized
12946 # So say no if there are warnings
12947 if test -s conftest.err; then
12948 # Append any errors to the config.log.
12949 cat conftest.err 1>&5
12950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12952 if diff conftest.exp conftest.er2 >/dev/null; then
12953 lt_cv_prog_compiler__b=yes
12954 fi
12955 else
12956 lt_cv_prog_compiler__b=yes
12957 fi
12958 fi
12959 $RM -r conftest*
12960 LDFLAGS=$save_LDFLAGS
12961
12962 fi
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12964 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12965
12966 if test yes = "$lt_cv_prog_compiler__b"; then
12967 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12968 else
12969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12970 fi
12971
12972 ;;
12973 esac
12974 fi
12975 if test no = "$with_gnu_ld"; then
12976 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12977 hardcode_libdir_separator=:
12978
12979 case $host_cpu in
12980 hppa*64*|ia64*)
12981 hardcode_direct=no
12982 hardcode_shlibpath_var=no
12983 ;;
12984 *)
12985 hardcode_direct=yes
12986 hardcode_direct_absolute=yes
12987 export_dynamic_flag_spec='$wl-E'
12988
12989 # hardcode_minus_L: Not really in the search PATH,
12990 # but as the default location of the library.
12991 hardcode_minus_L=yes
12992 ;;
12993 esac
12994 fi
12995 ;;
12996
12997 irix5* | irix6* | nonstopux*)
12998 if test yes = "$GCC"; then
12999 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'
13000 # Try to use the -exported_symbol ld option, if it does not
13001 # work, assume that -exports_file does not work either and
13002 # implicitly export all symbols.
13003 # This should be the same for all languages, so no per-tag cache variable.
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13005 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13006 if ${lt_cv_irix_exported_symbol+:} false; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 save_LDFLAGS=$LDFLAGS
13010 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h. */
13013 int foo (void) { return 0; }
13014 _ACEOF
13015 if ac_fn_c_try_link "$LINENO"; then :
13016 lt_cv_irix_exported_symbol=yes
13017 else
13018 lt_cv_irix_exported_symbol=no
13019 fi
13020 rm -f core conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
13022 LDFLAGS=$save_LDFLAGS
13023 fi
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13025 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13026 if test yes = "$lt_cv_irix_exported_symbol"; then
13027 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'
13028 fi
13029 link_all_deplibs=no
13030 else
13031 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'
13032 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'
13033 fi
13034 archive_cmds_need_lc='no'
13035 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13036 hardcode_libdir_separator=:
13037 inherit_rpath=yes
13038 link_all_deplibs=yes
13039 ;;
13040
13041 linux*)
13042 case $cc_basename in
13043 tcc*)
13044 # Fabrice Bellard et al's Tiny C Compiler
13045 ld_shlibs=yes
13046 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13047 ;;
13048 esac
13049 ;;
13050
13051 netbsd* | netbsdelf*-gnu)
13052 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13054 else
13055 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13056 fi
13057 hardcode_libdir_flag_spec='-R$libdir'
13058 hardcode_direct=yes
13059 hardcode_shlibpath_var=no
13060 ;;
13061
13062 newsos6)
13063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13064 hardcode_direct=yes
13065 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13066 hardcode_libdir_separator=:
13067 hardcode_shlibpath_var=no
13068 ;;
13069
13070 *nto* | *qnx*)
13071 ;;
13072
13073 openbsd* | bitrig*)
13074 if test -f /usr/libexec/ld.so; then
13075 hardcode_direct=yes
13076 hardcode_shlibpath_var=no
13077 hardcode_direct_absolute=yes
13078 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13079 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13080 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13081 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13082 export_dynamic_flag_spec='$wl-E'
13083 else
13084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13085 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13086 fi
13087 else
13088 ld_shlibs=no
13089 fi
13090 ;;
13091
13092 os2*)
13093 hardcode_libdir_flag_spec='-L$libdir'
13094 hardcode_minus_L=yes
13095 allow_undefined_flag=unsupported
13096 shrext_cmds=.dll
13097 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13098 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13099 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13100 $ECHO EXPORTS >> $output_objdir/$libname.def~
13101 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13102 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13103 emximp -o $lib $output_objdir/$libname.def'
13104 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13105 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13106 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13107 $ECHO EXPORTS >> $output_objdir/$libname.def~
13108 prefix_cmds="$SED"~
13109 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13110 prefix_cmds="$prefix_cmds -e 1d";
13111 fi~
13112 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13113 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13114 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13115 emximp -o $lib $output_objdir/$libname.def'
13116 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13117 enable_shared_with_static_runtimes=yes
13118 ;;
13119
13120 osf3*)
13121 if test yes = "$GCC"; then
13122 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13123 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'
13124 else
13125 allow_undefined_flag=' -expect_unresolved \*'
13126 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'
13127 fi
13128 archive_cmds_need_lc='no'
13129 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13130 hardcode_libdir_separator=:
13131 ;;
13132
13133 osf4* | osf5*) # as osf3* with the addition of -msym flag
13134 if test yes = "$GCC"; then
13135 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13136 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'
13137 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13138 else
13139 allow_undefined_flag=' -expect_unresolved \*'
13140 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'
13141 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~
13142 $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'
13143
13144 # Both c and cxx compiler support -rpath directly
13145 hardcode_libdir_flag_spec='-rpath $libdir'
13146 fi
13147 archive_cmds_need_lc='no'
13148 hardcode_libdir_separator=:
13149 ;;
13150
13151 solaris*)
13152 no_undefined_flag=' -z defs'
13153 if test yes = "$GCC"; then
13154 wlarc='$wl'
13155 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13156 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13157 $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'
13158 else
13159 case `$CC -V 2>&1` in
13160 *"Compilers 5.0"*)
13161 wlarc=''
13162 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13164 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13165 ;;
13166 *)
13167 wlarc='$wl'
13168 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13170 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13171 ;;
13172 esac
13173 fi
13174 hardcode_libdir_flag_spec='-R$libdir'
13175 hardcode_shlibpath_var=no
13176 case $host_os in
13177 solaris2.[0-5] | solaris2.[0-5].*) ;;
13178 *)
13179 # The compiler driver will combine and reorder linker options,
13180 # but understands '-z linker_flag'. GCC discards it without '$wl',
13181 # but is careful enough not to reorder.
13182 # Supported since Solaris 2.6 (maybe 2.5.1?)
13183 if test yes = "$GCC"; then
13184 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13185 else
13186 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13187 fi
13188 ;;
13189 esac
13190 link_all_deplibs=yes
13191 ;;
13192
13193 sunos4*)
13194 if test sequent = "$host_vendor"; then
13195 # Use $CC to link under sequent, because it throws in some extra .o
13196 # files that make .init and .fini sections work.
13197 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13198 else
13199 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13200 fi
13201 hardcode_libdir_flag_spec='-L$libdir'
13202 hardcode_direct=yes
13203 hardcode_minus_L=yes
13204 hardcode_shlibpath_var=no
13205 ;;
13206
13207 sysv4)
13208 case $host_vendor in
13209 sni)
13210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13211 hardcode_direct=yes # is this really true???
13212 ;;
13213 siemens)
13214 ## LD is ld it makes a PLAMLIB
13215 ## CC just makes a GrossModule.
13216 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13217 reload_cmds='$CC -r -o $output$reload_objs'
13218 hardcode_direct=no
13219 ;;
13220 motorola)
13221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13222 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13223 ;;
13224 esac
13225 runpath_var='LD_RUN_PATH'
13226 hardcode_shlibpath_var=no
13227 ;;
13228
13229 sysv4.3*)
13230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13231 hardcode_shlibpath_var=no
13232 export_dynamic_flag_spec='-Bexport'
13233 ;;
13234
13235 sysv4*MP*)
13236 if test -d /usr/nec; then
13237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13238 hardcode_shlibpath_var=no
13239 runpath_var=LD_RUN_PATH
13240 hardcode_runpath_var=yes
13241 ld_shlibs=yes
13242 fi
13243 ;;
13244
13245 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13246 no_undefined_flag='$wl-z,text'
13247 archive_cmds_need_lc=no
13248 hardcode_shlibpath_var=no
13249 runpath_var='LD_RUN_PATH'
13250
13251 if test yes = "$GCC"; then
13252 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13253 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13254 else
13255 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13256 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13257 fi
13258 ;;
13259
13260 sysv5* | sco3.2v5* | sco5v6*)
13261 # Note: We CANNOT use -z defs as we might desire, because we do not
13262 # link with -lc, and that would cause any symbols used from libc to
13263 # always be unresolved, which means just about no library would
13264 # ever link correctly. If we're not using GNU ld we use -z text
13265 # though, which does catch some bad symbols but isn't as heavy-handed
13266 # as -z defs.
13267 no_undefined_flag='$wl-z,text'
13268 allow_undefined_flag='$wl-z,nodefs'
13269 archive_cmds_need_lc=no
13270 hardcode_shlibpath_var=no
13271 hardcode_libdir_flag_spec='$wl-R,$libdir'
13272 hardcode_libdir_separator=':'
13273 link_all_deplibs=yes
13274 export_dynamic_flag_spec='$wl-Bexport'
13275 runpath_var='LD_RUN_PATH'
13276
13277 if test yes = "$GCC"; then
13278 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13279 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13280 else
13281 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13282 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13283 fi
13284 ;;
13285
13286 uts4*)
13287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13288 hardcode_libdir_flag_spec='-L$libdir'
13289 hardcode_shlibpath_var=no
13290 ;;
13291
13292 *)
13293 ld_shlibs=no
13294 ;;
13295 esac
13296
13297 if test sni = "$host_vendor"; then
13298 case $host in
13299 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13300 export_dynamic_flag_spec='$wl-Blargedynsym'
13301 ;;
13302 esac
13303 fi
13304 fi
13305
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13307 $as_echo "$ld_shlibs" >&6; }
13308 test no = "$ld_shlibs" && can_build_shared=no
13309
13310 with_gnu_ld=$with_gnu_ld
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326 #
13327 # Do we need to explicitly link libc?
13328 #
13329 case "x$archive_cmds_need_lc" in
13330 x|xyes)
13331 # Assume -lc should be added
13332 archive_cmds_need_lc=yes
13333
13334 if test yes,yes = "$GCC,$enable_shared"; then
13335 case $archive_cmds in
13336 *'~'*)
13337 # FIXME: we may have to deal with multi-command sequences.
13338 ;;
13339 '$CC '*)
13340 # Test whether the compiler implicitly links with -lc since on some
13341 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13342 # to ld, don't add -lc before -lgcc.
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13344 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13345 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 $RM conftest*
13349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13350
13351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13352 (eval $ac_compile) 2>&5
13353 ac_status=$?
13354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13355 test $ac_status = 0; } 2>conftest.err; then
13356 soname=conftest
13357 lib=conftest
13358 libobjs=conftest.$ac_objext
13359 deplibs=
13360 wl=$lt_prog_compiler_wl
13361 pic_flag=$lt_prog_compiler_pic
13362 compiler_flags=-v
13363 linker_flags=-v
13364 verstring=
13365 output_objdir=.
13366 libname=conftest
13367 lt_save_allow_undefined_flag=$allow_undefined_flag
13368 allow_undefined_flag=
13369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13370 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13371 ac_status=$?
13372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13373 test $ac_status = 0; }
13374 then
13375 lt_cv_archive_cmds_need_lc=no
13376 else
13377 lt_cv_archive_cmds_need_lc=yes
13378 fi
13379 allow_undefined_flag=$lt_save_allow_undefined_flag
13380 else
13381 cat conftest.err 1>&5
13382 fi
13383 $RM conftest*
13384
13385 fi
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13387 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13388 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13389 ;;
13390 esac
13391 fi
13392 ;;
13393 esac
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13547 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13548
13549 if test yes = "$GCC"; then
13550 case $host_os in
13551 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13552 *) lt_awk_arg='/^libraries:/' ;;
13553 esac
13554 case $host_os in
13555 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13556 *) lt_sed_strip_eq='s|=/|/|g' ;;
13557 esac
13558 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13559 case $lt_search_path_spec in
13560 *\;*)
13561 # if the path contains ";" then we assume it to be the separator
13562 # otherwise default to the standard path separator (i.e. ":") - it is
13563 # assumed that no part of a normal pathname contains ";" but that should
13564 # okay in the real world where ";" in dirpaths is itself problematic.
13565 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13566 ;;
13567 *)
13568 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13569 ;;
13570 esac
13571 # Ok, now we have the path, separated by spaces, we can step through it
13572 # and add multilib dir if necessary...
13573 lt_tmp_lt_search_path_spec=
13574 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13575 # ...but if some path component already ends with the multilib dir we assume
13576 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13577 case "$lt_multi_os_dir; $lt_search_path_spec " in
13578 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13579 lt_multi_os_dir=
13580 ;;
13581 esac
13582 for lt_sys_path in $lt_search_path_spec; do
13583 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13584 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13585 elif test -n "$lt_multi_os_dir"; then
13586 test -d "$lt_sys_path" && \
13587 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13588 fi
13589 done
13590 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13591 BEGIN {RS = " "; FS = "/|\n";} {
13592 lt_foo = "";
13593 lt_count = 0;
13594 for (lt_i = NF; lt_i > 0; lt_i--) {
13595 if ($lt_i != "" && $lt_i != ".") {
13596 if ($lt_i == "..") {
13597 lt_count++;
13598 } else {
13599 if (lt_count == 0) {
13600 lt_foo = "/" $lt_i lt_foo;
13601 } else {
13602 lt_count--;
13603 }
13604 }
13605 }
13606 }
13607 if (lt_foo != "") { lt_freq[lt_foo]++; }
13608 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13609 }'`
13610 # AWK program above erroneously prepends '/' to C:/dos/paths
13611 # for these hosts.
13612 case $host_os in
13613 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13614 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13615 esac
13616 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13617 else
13618 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13619 fi
13620 library_names_spec=
13621 libname_spec='lib$name'
13622 soname_spec=
13623 shrext_cmds=.so
13624 postinstall_cmds=
13625 postuninstall_cmds=
13626 finish_cmds=
13627 finish_eval=
13628 shlibpath_var=
13629 shlibpath_overrides_runpath=unknown
13630 version_type=none
13631 dynamic_linker="$host_os ld.so"
13632 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13633 need_lib_prefix=unknown
13634 hardcode_into_libs=no
13635
13636 # when you set need_version to no, make sure it does not cause -set_version
13637 # flags to be left without arguments
13638 need_version=unknown
13639
13640
13641
13642 case $host_os in
13643 aix3*)
13644 version_type=linux # correct to gnu/linux during the next big refactor
13645 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13646 shlibpath_var=LIBPATH
13647
13648 # AIX 3 has no versioning support, so we append a major version to the name.
13649 soname_spec='$libname$release$shared_ext$major'
13650 ;;
13651
13652 aix[4-9]*)
13653 version_type=linux # correct to gnu/linux during the next big refactor
13654 need_lib_prefix=no
13655 need_version=no
13656 hardcode_into_libs=yes
13657 if test ia64 = "$host_cpu"; then
13658 # AIX 5 supports IA64
13659 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13660 shlibpath_var=LD_LIBRARY_PATH
13661 else
13662 # With GCC up to 2.95.x, collect2 would create an import file
13663 # for dependence libraries. The import file would start with
13664 # the line '#! .'. This would cause the generated library to
13665 # depend on '.', always an invalid library. This was fixed in
13666 # development snapshots of GCC prior to 3.0.
13667 case $host_os in
13668 aix4 | aix4.[01] | aix4.[01].*)
13669 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13670 echo ' yes '
13671 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13672 :
13673 else
13674 can_build_shared=no
13675 fi
13676 ;;
13677 esac
13678 # Using Import Files as archive members, it is possible to support
13679 # filename-based versioning of shared library archives on AIX. While
13680 # this would work for both with and without runtime linking, it will
13681 # prevent static linking of such archives. So we do filename-based
13682 # shared library versioning with .so extension only, which is used
13683 # when both runtime linking and shared linking is enabled.
13684 # Unfortunately, runtime linking may impact performance, so we do
13685 # not want this to be the default eventually. Also, we use the
13686 # versioned .so libs for executables only if there is the -brtl
13687 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13688 # To allow for filename-based versioning support, we need to create
13689 # libNAME.so.V as an archive file, containing:
13690 # *) an Import File, referring to the versioned filename of the
13691 # archive as well as the shared archive member, telling the
13692 # bitwidth (32 or 64) of that shared object, and providing the
13693 # list of exported symbols of that shared object, eventually
13694 # decorated with the 'weak' keyword
13695 # *) the shared object with the F_LOADONLY flag set, to really avoid
13696 # it being seen by the linker.
13697 # At run time we better use the real file rather than another symlink,
13698 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13699
13700 case $with_aix_soname,$aix_use_runtimelinking in
13701 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13702 # soname into executable. Probably we can add versioning support to
13703 # collect2, so additional links can be useful in future.
13704 aix,yes) # traditional libtool
13705 dynamic_linker='AIX unversionable lib.so'
13706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13707 # instead of lib<name>.a to let people know that these are not
13708 # typical AIX shared libraries.
13709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13710 ;;
13711 aix,no) # traditional AIX only
13712 dynamic_linker='AIX lib.a(lib.so.V)'
13713 # We preserve .a as extension for shared libraries through AIX4.2
13714 # and later when we are not doing run time linking.
13715 library_names_spec='$libname$release.a $libname.a'
13716 soname_spec='$libname$release$shared_ext$major'
13717 ;;
13718 svr4,*) # full svr4 only
13719 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13720 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13721 # We do not specify a path in Import Files, so LIBPATH fires.
13722 shlibpath_overrides_runpath=yes
13723 ;;
13724 *,yes) # both, prefer svr4
13725 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13726 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13727 # unpreferred sharedlib libNAME.a needs extra handling
13728 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13729 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13730 # We do not specify a path in Import Files, so LIBPATH fires.
13731 shlibpath_overrides_runpath=yes
13732 ;;
13733 *,no) # both, prefer aix
13734 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13735 library_names_spec='$libname$release.a $libname.a'
13736 soname_spec='$libname$release$shared_ext$major'
13737 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13738 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13739 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13740 ;;
13741 esac
13742 shlibpath_var=LIBPATH
13743 fi
13744 ;;
13745
13746 amigaos*)
13747 case $host_cpu in
13748 powerpc)
13749 # Since July 2007 AmigaOS4 officially supports .so libraries.
13750 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13752 ;;
13753 m68k)
13754 library_names_spec='$libname.ixlibrary $libname.a'
13755 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13756 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13757 ;;
13758 esac
13759 ;;
13760
13761 beos*)
13762 library_names_spec='$libname$shared_ext'
13763 dynamic_linker="$host_os ld.so"
13764 shlibpath_var=LIBRARY_PATH
13765 ;;
13766
13767 bsdi[45]*)
13768 version_type=linux # correct to gnu/linux during the next big refactor
13769 need_version=no
13770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13771 soname_spec='$libname$release$shared_ext$major'
13772 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13773 shlibpath_var=LD_LIBRARY_PATH
13774 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13775 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13776 # the default ld.so.conf also contains /usr/contrib/lib and
13777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13778 # libtool to hard-code these into programs
13779 ;;
13780
13781 cygwin* | mingw* | pw32* | cegcc*)
13782 version_type=windows
13783 shrext_cmds=.dll
13784 need_version=no
13785 need_lib_prefix=no
13786
13787 case $GCC,$cc_basename in
13788 yes,*)
13789 # gcc
13790 library_names_spec='$libname.dll.a'
13791 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13792 postinstall_cmds='base_file=`basename \$file`~
13793 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13794 dldir=$destdir/`dirname \$dlpath`~
13795 test -d \$dldir || mkdir -p \$dldir~
13796 $install_prog $dir/$dlname \$dldir/$dlname~
13797 chmod a+x \$dldir/$dlname~
13798 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13799 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13800 fi'
13801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13802 dlpath=$dir/\$dldll~
13803 $RM \$dlpath'
13804 shlibpath_overrides_runpath=yes
13805
13806 case $host_os in
13807 cygwin*)
13808 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13809 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13810
13811 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13812 ;;
13813 mingw* | cegcc*)
13814 # MinGW DLLs use traditional 'lib' prefix
13815 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13816 ;;
13817 pw32*)
13818 # pw32 DLLs use 'pw' prefix rather than 'lib'
13819 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13820 ;;
13821 esac
13822 dynamic_linker='Win32 ld.exe'
13823 ;;
13824
13825 *,cl*)
13826 # Native MSVC
13827 libname_spec='$name'
13828 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13829 library_names_spec='$libname.dll.lib'
13830
13831 case $build_os in
13832 mingw*)
13833 sys_lib_search_path_spec=
13834 lt_save_ifs=$IFS
13835 IFS=';'
13836 for lt_path in $LIB
13837 do
13838 IFS=$lt_save_ifs
13839 # Let DOS variable expansion print the short 8.3 style file name.
13840 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13841 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13842 done
13843 IFS=$lt_save_ifs
13844 # Convert to MSYS style.
13845 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13846 ;;
13847 cygwin*)
13848 # Convert to unix form, then to dos form, then back to unix form
13849 # but this time dos style (no spaces!) so that the unix form looks
13850 # like /cygdrive/c/PROGRA~1:/cygdr...
13851 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13852 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13853 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13854 ;;
13855 *)
13856 sys_lib_search_path_spec=$LIB
13857 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13858 # It is most probably a Windows format PATH.
13859 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13860 else
13861 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13862 fi
13863 # FIXME: find the short name or the path components, as spaces are
13864 # common. (e.g. "Program Files" -> "PROGRA~1")
13865 ;;
13866 esac
13867
13868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13869 postinstall_cmds='base_file=`basename \$file`~
13870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13871 dldir=$destdir/`dirname \$dlpath`~
13872 test -d \$dldir || mkdir -p \$dldir~
13873 $install_prog $dir/$dlname \$dldir/$dlname'
13874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13875 dlpath=$dir/\$dldll~
13876 $RM \$dlpath'
13877 shlibpath_overrides_runpath=yes
13878 dynamic_linker='Win32 link.exe'
13879 ;;
13880
13881 *)
13882 # Assume MSVC wrapper
13883 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13884 dynamic_linker='Win32 ld.exe'
13885 ;;
13886 esac
13887 # FIXME: first we should search . and the directory the executable is in
13888 shlibpath_var=PATH
13889 ;;
13890
13891 darwin* | rhapsody*)
13892 dynamic_linker="$host_os dyld"
13893 version_type=darwin
13894 need_lib_prefix=no
13895 need_version=no
13896 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13897 soname_spec='$libname$release$major$shared_ext'
13898 shlibpath_overrides_runpath=yes
13899 shlibpath_var=DYLD_LIBRARY_PATH
13900 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13901
13902 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13903 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13904 ;;
13905
13906 dgux*)
13907 version_type=linux # correct to gnu/linux during the next big refactor
13908 need_lib_prefix=no
13909 need_version=no
13910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13911 soname_spec='$libname$release$shared_ext$major'
13912 shlibpath_var=LD_LIBRARY_PATH
13913 ;;
13914
13915 freebsd* | dragonfly*)
13916 # DragonFly does not have aout. When/if they implement a new
13917 # versioning mechanism, adjust this.
13918 if test -x /usr/bin/objformat; then
13919 objformat=`/usr/bin/objformat`
13920 else
13921 case $host_os in
13922 freebsd[23].*) objformat=aout ;;
13923 *) objformat=elf ;;
13924 esac
13925 fi
13926 version_type=freebsd-$objformat
13927 case $version_type in
13928 freebsd-elf*)
13929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13930 soname_spec='$libname$release$shared_ext$major'
13931 need_version=no
13932 need_lib_prefix=no
13933 ;;
13934 freebsd-*)
13935 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13936 need_version=yes
13937 ;;
13938 esac
13939 shlibpath_var=LD_LIBRARY_PATH
13940 case $host_os in
13941 freebsd2.*)
13942 shlibpath_overrides_runpath=yes
13943 ;;
13944 freebsd3.[01]* | freebsdelf3.[01]*)
13945 shlibpath_overrides_runpath=yes
13946 hardcode_into_libs=yes
13947 ;;
13948 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13949 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13950 shlibpath_overrides_runpath=no
13951 hardcode_into_libs=yes
13952 ;;
13953 *) # from 4.6 on, and DragonFly
13954 shlibpath_overrides_runpath=yes
13955 hardcode_into_libs=yes
13956 ;;
13957 esac
13958 ;;
13959
13960 haiku*)
13961 version_type=linux # correct to gnu/linux during the next big refactor
13962 need_lib_prefix=no
13963 need_version=no
13964 dynamic_linker="$host_os runtime_loader"
13965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13966 soname_spec='$libname$release$shared_ext$major'
13967 shlibpath_var=LIBRARY_PATH
13968 shlibpath_overrides_runpath=no
13969 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13970 hardcode_into_libs=yes
13971 ;;
13972
13973 hpux9* | hpux10* | hpux11*)
13974 # Give a soname corresponding to the major version so that dld.sl refuses to
13975 # link against other versions.
13976 version_type=sunos
13977 need_lib_prefix=no
13978 need_version=no
13979 case $host_cpu in
13980 ia64*)
13981 shrext_cmds='.so'
13982 hardcode_into_libs=yes
13983 dynamic_linker="$host_os dld.so"
13984 shlibpath_var=LD_LIBRARY_PATH
13985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13987 soname_spec='$libname$release$shared_ext$major'
13988 if test 32 = "$HPUX_IA64_MODE"; then
13989 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13990 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13991 else
13992 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13993 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13994 fi
13995 ;;
13996 hppa*64*)
13997 shrext_cmds='.sl'
13998 hardcode_into_libs=yes
13999 dynamic_linker="$host_os dld.sl"
14000 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14003 soname_spec='$libname$release$shared_ext$major'
14004 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14006 ;;
14007 *)
14008 shrext_cmds='.sl'
14009 dynamic_linker="$host_os dld.sl"
14010 shlibpath_var=SHLIB_PATH
14011 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14013 soname_spec='$libname$release$shared_ext$major'
14014 ;;
14015 esac
14016 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14017 postinstall_cmds='chmod 555 $lib'
14018 # or fails outright, so override atomically:
14019 install_override_mode=555
14020 ;;
14021
14022 interix[3-9]*)
14023 version_type=linux # correct to gnu/linux during the next big refactor
14024 need_lib_prefix=no
14025 need_version=no
14026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14027 soname_spec='$libname$release$shared_ext$major'
14028 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14029 shlibpath_var=LD_LIBRARY_PATH
14030 shlibpath_overrides_runpath=no
14031 hardcode_into_libs=yes
14032 ;;
14033
14034 irix5* | irix6* | nonstopux*)
14035 case $host_os in
14036 nonstopux*) version_type=nonstopux ;;
14037 *)
14038 if test yes = "$lt_cv_prog_gnu_ld"; then
14039 version_type=linux # correct to gnu/linux during the next big refactor
14040 else
14041 version_type=irix
14042 fi ;;
14043 esac
14044 need_lib_prefix=no
14045 need_version=no
14046 soname_spec='$libname$release$shared_ext$major'
14047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14048 case $host_os in
14049 irix5* | nonstopux*)
14050 libsuff= shlibsuff=
14051 ;;
14052 *)
14053 case $LD in # libtool.m4 will add one of these switches to LD
14054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14055 libsuff= shlibsuff= libmagic=32-bit;;
14056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14057 libsuff=32 shlibsuff=N32 libmagic=N32;;
14058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14060 *) libsuff= shlibsuff= libmagic=never-match;;
14061 esac
14062 ;;
14063 esac
14064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14065 shlibpath_overrides_runpath=no
14066 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14067 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14068 hardcode_into_libs=yes
14069 ;;
14070
14071 # No shared lib support for Linux oldld, aout, or coff.
14072 linux*oldld* | linux*aout* | linux*coff*)
14073 dynamic_linker=no
14074 ;;
14075
14076 linux*android*)
14077 version_type=none # Android doesn't support versioned libraries.
14078 need_lib_prefix=no
14079 need_version=no
14080 library_names_spec='$libname$release$shared_ext'
14081 soname_spec='$libname$release$shared_ext'
14082 finish_cmds=
14083 shlibpath_var=LD_LIBRARY_PATH
14084 shlibpath_overrides_runpath=yes
14085
14086 # This implies no fast_install, which is unacceptable.
14087 # Some rework will be needed to allow for fast_install
14088 # before this can be enabled.
14089 hardcode_into_libs=yes
14090
14091 dynamic_linker='Android linker'
14092 # Don't embed -rpath directories since the linker doesn't support them.
14093 hardcode_libdir_flag_spec='-L$libdir'
14094 ;;
14095
14096 # This must be glibc/ELF.
14097 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14098 version_type=linux # correct to gnu/linux during the next big refactor
14099 need_lib_prefix=no
14100 need_version=no
14101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14102 soname_spec='$libname$release$shared_ext$major'
14103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14104 shlibpath_var=LD_LIBRARY_PATH
14105 shlibpath_overrides_runpath=no
14106
14107 # Some binutils ld are patched to set DT_RUNPATH
14108 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 lt_cv_shlibpath_overrides_runpath=no
14112 save_LDFLAGS=$LDFLAGS
14113 save_libdir=$libdir
14114 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14115 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14118
14119 int
14120 main ()
14121 {
14122
14123 ;
14124 return 0;
14125 }
14126 _ACEOF
14127 if ac_fn_c_try_link "$LINENO"; then :
14128 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14129 lt_cv_shlibpath_overrides_runpath=yes
14130 fi
14131 fi
14132 rm -f core conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
14134 LDFLAGS=$save_LDFLAGS
14135 libdir=$save_libdir
14136
14137 fi
14138
14139 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14140
14141 # This implies no fast_install, which is unacceptable.
14142 # Some rework will be needed to allow for fast_install
14143 # before this can be enabled.
14144 hardcode_into_libs=yes
14145
14146 # Ideally, we could use ldconfig to report *all* directores which are
14147 # searched for libraries, however this is still not possible. Aside from not
14148 # being certain /sbin/ldconfig is available, command
14149 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14150 # even though it is searched at run-time. Try to do the best guess by
14151 # appending ld.so.conf contents (and includes) to the search path.
14152 if test -f /etc/ld.so.conf; then
14153 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' ' '`
14154 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14155 fi
14156
14157 # We used to test for /lib/ld.so.1 and disable shared libraries on
14158 # powerpc, because MkLinux only supported shared libraries with the
14159 # GNU dynamic linker. Since this was broken with cross compilers,
14160 # most powerpc-linux boxes support dynamic linking these days and
14161 # people can always --disable-shared, the test was removed, and we
14162 # assume the GNU/Linux dynamic linker is in use.
14163 dynamic_linker='GNU/Linux ld.so'
14164 ;;
14165
14166 netbsdelf*-gnu)
14167 version_type=linux
14168 need_lib_prefix=no
14169 need_version=no
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14171 soname_spec='${libname}${release}${shared_ext}$major'
14172 shlibpath_var=LD_LIBRARY_PATH
14173 shlibpath_overrides_runpath=no
14174 hardcode_into_libs=yes
14175 dynamic_linker='NetBSD ld.elf_so'
14176 ;;
14177
14178 netbsd*)
14179 version_type=sunos
14180 need_lib_prefix=no
14181 need_version=no
14182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14183 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14185 dynamic_linker='NetBSD (a.out) ld.so'
14186 else
14187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14188 soname_spec='$libname$release$shared_ext$major'
14189 dynamic_linker='NetBSD ld.elf_so'
14190 fi
14191 shlibpath_var=LD_LIBRARY_PATH
14192 shlibpath_overrides_runpath=yes
14193 hardcode_into_libs=yes
14194 ;;
14195
14196 newsos6)
14197 version_type=linux # correct to gnu/linux during the next big refactor
14198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14199 shlibpath_var=LD_LIBRARY_PATH
14200 shlibpath_overrides_runpath=yes
14201 ;;
14202
14203 *nto* | *qnx*)
14204 version_type=qnx
14205 need_lib_prefix=no
14206 need_version=no
14207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14208 soname_spec='$libname$release$shared_ext$major'
14209 shlibpath_var=LD_LIBRARY_PATH
14210 shlibpath_overrides_runpath=no
14211 hardcode_into_libs=yes
14212 dynamic_linker='ldqnx.so'
14213 ;;
14214
14215 openbsd* | bitrig*)
14216 version_type=sunos
14217 sys_lib_dlsearch_path_spec=/usr/lib
14218 need_lib_prefix=no
14219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14220 need_version=no
14221 else
14222 need_version=yes
14223 fi
14224 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14226 shlibpath_var=LD_LIBRARY_PATH
14227 shlibpath_overrides_runpath=yes
14228 ;;
14229
14230 os2*)
14231 libname_spec='$name'
14232 version_type=windows
14233 shrext_cmds=.dll
14234 need_version=no
14235 need_lib_prefix=no
14236 # OS/2 can only load a DLL with a base name of 8 characters or less.
14237 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14238 v=$($ECHO $release$versuffix | tr -d .-);
14239 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14240 $ECHO $n$v`$shared_ext'
14241 library_names_spec='${libname}_dll.$libext'
14242 dynamic_linker='OS/2 ld.exe'
14243 shlibpath_var=BEGINLIBPATH
14244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14245 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14246 postinstall_cmds='base_file=`basename \$file`~
14247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14248 dldir=$destdir/`dirname \$dlpath`~
14249 test -d \$dldir || mkdir -p \$dldir~
14250 $install_prog $dir/$dlname \$dldir/$dlname~
14251 chmod a+x \$dldir/$dlname~
14252 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14253 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14254 fi'
14255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14256 dlpath=$dir/\$dldll~
14257 $RM \$dlpath'
14258 ;;
14259
14260 osf3* | osf4* | osf5*)
14261 version_type=osf
14262 need_lib_prefix=no
14263 need_version=no
14264 soname_spec='$libname$release$shared_ext$major'
14265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14266 shlibpath_var=LD_LIBRARY_PATH
14267 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14269 ;;
14270
14271 rdos*)
14272 dynamic_linker=no
14273 ;;
14274
14275 solaris*)
14276 version_type=linux # correct to gnu/linux during the next big refactor
14277 need_lib_prefix=no
14278 need_version=no
14279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14280 soname_spec='$libname$release$shared_ext$major'
14281 shlibpath_var=LD_LIBRARY_PATH
14282 shlibpath_overrides_runpath=yes
14283 hardcode_into_libs=yes
14284 # ldd complains unless libraries are executable
14285 postinstall_cmds='chmod +x $lib'
14286 ;;
14287
14288 sunos4*)
14289 version_type=sunos
14290 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14292 shlibpath_var=LD_LIBRARY_PATH
14293 shlibpath_overrides_runpath=yes
14294 if test yes = "$with_gnu_ld"; then
14295 need_lib_prefix=no
14296 fi
14297 need_version=yes
14298 ;;
14299
14300 sysv4 | sysv4.3*)
14301 version_type=linux # correct to gnu/linux during the next big refactor
14302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14303 soname_spec='$libname$release$shared_ext$major'
14304 shlibpath_var=LD_LIBRARY_PATH
14305 case $host_vendor in
14306 sni)
14307 shlibpath_overrides_runpath=no
14308 need_lib_prefix=no
14309 runpath_var=LD_RUN_PATH
14310 ;;
14311 siemens)
14312 need_lib_prefix=no
14313 ;;
14314 motorola)
14315 need_lib_prefix=no
14316 need_version=no
14317 shlibpath_overrides_runpath=no
14318 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14319 ;;
14320 esac
14321 ;;
14322
14323 sysv4*MP*)
14324 if test -d /usr/nec; then
14325 version_type=linux # correct to gnu/linux during the next big refactor
14326 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14327 soname_spec='$libname$shared_ext.$major'
14328 shlibpath_var=LD_LIBRARY_PATH
14329 fi
14330 ;;
14331
14332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14333 version_type=sco
14334 need_lib_prefix=no
14335 need_version=no
14336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14337 soname_spec='$libname$release$shared_ext$major'
14338 shlibpath_var=LD_LIBRARY_PATH
14339 shlibpath_overrides_runpath=yes
14340 hardcode_into_libs=yes
14341 if test yes = "$with_gnu_ld"; then
14342 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14343 else
14344 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14345 case $host_os in
14346 sco3.2v5*)
14347 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14348 ;;
14349 esac
14350 fi
14351 sys_lib_dlsearch_path_spec='/usr/lib'
14352 ;;
14353
14354 tpf*)
14355 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14356 version_type=linux # correct to gnu/linux during the next big refactor
14357 need_lib_prefix=no
14358 need_version=no
14359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14360 shlibpath_var=LD_LIBRARY_PATH
14361 shlibpath_overrides_runpath=no
14362 hardcode_into_libs=yes
14363 ;;
14364
14365 uts4*)
14366 version_type=linux # correct to gnu/linux during the next big refactor
14367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14368 soname_spec='$libname$release$shared_ext$major'
14369 shlibpath_var=LD_LIBRARY_PATH
14370 ;;
14371
14372 *)
14373 dynamic_linker=no
14374 ;;
14375 esac
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14377 $as_echo "$dynamic_linker" >&6; }
14378 test no = "$dynamic_linker" && can_build_shared=no
14379
14380 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14381 if test yes = "$GCC"; then
14382 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14383 fi
14384
14385 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14386 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14387 fi
14388
14389 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14390 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14391 fi
14392
14393 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14394 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14395
14396 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14397 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14398
14399 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14400 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14499 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14500 hardcode_action=
14501 if test -n "$hardcode_libdir_flag_spec" ||
14502 test -n "$runpath_var" ||
14503 test yes = "$hardcode_automatic"; then
14504
14505 # We can hardcode non-existent directories.
14506 if test no != "$hardcode_direct" &&
14507 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14508 # have to relink, otherwise we might link with an installed library
14509 # when we should be linking with a yet-to-be-installed one
14510 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14511 test no != "$hardcode_minus_L"; then
14512 # Linking always hardcodes the temporary library directory.
14513 hardcode_action=relink
14514 else
14515 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14516 hardcode_action=immediate
14517 fi
14518 else
14519 # We cannot hardcode anything, or else we can only hardcode existing
14520 # directories.
14521 hardcode_action=unsupported
14522 fi
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14524 $as_echo "$hardcode_action" >&6; }
14525
14526 if test relink = "$hardcode_action" ||
14527 test yes = "$inherit_rpath"; then
14528 # Fast installation is not supported
14529 enable_fast_install=no
14530 elif test yes = "$shlibpath_overrides_runpath" ||
14531 test no = "$enable_shared"; then
14532 # Fast installation is not necessary
14533 enable_fast_install=needless
14534 fi
14535
14536
14537
14538
14539
14540
14541 if test yes != "$enable_dlopen"; then
14542 enable_dlopen=unknown
14543 enable_dlopen_self=unknown
14544 enable_dlopen_self_static=unknown
14545 else
14546 lt_cv_dlopen=no
14547 lt_cv_dlopen_libs=
14548
14549 case $host_os in
14550 beos*)
14551 lt_cv_dlopen=load_add_on
14552 lt_cv_dlopen_libs=
14553 lt_cv_dlopen_self=yes
14554 ;;
14555
14556 mingw* | pw32* | cegcc*)
14557 lt_cv_dlopen=LoadLibrary
14558 lt_cv_dlopen_libs=
14559 ;;
14560
14561 cygwin*)
14562 lt_cv_dlopen=dlopen
14563 lt_cv_dlopen_libs=
14564 ;;
14565
14566 darwin*)
14567 # if libdl is installed we need to link against it
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14569 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14570 if ${ac_cv_lib_dl_dlopen+:} false; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 ac_check_lib_save_LIBS=$LIBS
14574 LIBS="-ldl $LIBS"
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577
14578 /* Override any GCC internal prototype to avoid an error.
14579 Use char because int might match the return type of a GCC
14580 builtin and then its argument prototype would still apply. */
14581 #ifdef __cplusplus
14582 extern "C"
14583 #endif
14584 char dlopen ();
14585 int
14586 main ()
14587 {
14588 return dlopen ();
14589 ;
14590 return 0;
14591 }
14592 _ACEOF
14593 if ac_fn_c_try_link "$LINENO"; then :
14594 ac_cv_lib_dl_dlopen=yes
14595 else
14596 ac_cv_lib_dl_dlopen=no
14597 fi
14598 rm -f core conftest.err conftest.$ac_objext \
14599 conftest$ac_exeext conftest.$ac_ext
14600 LIBS=$ac_check_lib_save_LIBS
14601 fi
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14603 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14604 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14605 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14606 else
14607
14608 lt_cv_dlopen=dyld
14609 lt_cv_dlopen_libs=
14610 lt_cv_dlopen_self=yes
14611
14612 fi
14613
14614 ;;
14615
14616 tpf*)
14617 # Don't try to run any link tests for TPF. We know it's impossible
14618 # because TPF is a cross-compiler, and we know how we open DSOs.
14619 lt_cv_dlopen=dlopen
14620 lt_cv_dlopen_libs=
14621 lt_cv_dlopen_self=no
14622 ;;
14623
14624 *)
14625 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14626 if test "x$ac_cv_func_shl_load" = xyes; then :
14627 lt_cv_dlopen=shl_load
14628 else
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14630 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14631 if ${ac_cv_lib_dld_shl_load+:} false; then :
14632 $as_echo_n "(cached) " >&6
14633 else
14634 ac_check_lib_save_LIBS=$LIBS
14635 LIBS="-ldld $LIBS"
14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14638
14639 /* Override any GCC internal prototype to avoid an error.
14640 Use char because int might match the return type of a GCC
14641 builtin and then its argument prototype would still apply. */
14642 #ifdef __cplusplus
14643 extern "C"
14644 #endif
14645 char shl_load ();
14646 int
14647 main ()
14648 {
14649 return shl_load ();
14650 ;
14651 return 0;
14652 }
14653 _ACEOF
14654 if ac_fn_c_try_link "$LINENO"; then :
14655 ac_cv_lib_dld_shl_load=yes
14656 else
14657 ac_cv_lib_dld_shl_load=no
14658 fi
14659 rm -f core conftest.err conftest.$ac_objext \
14660 conftest$ac_exeext conftest.$ac_ext
14661 LIBS=$ac_check_lib_save_LIBS
14662 fi
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14664 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14665 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14666 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14667 else
14668 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14669 if test "x$ac_cv_func_dlopen" = xyes; then :
14670 lt_cv_dlopen=dlopen
14671 else
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14673 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14674 if ${ac_cv_lib_dl_dlopen+:} false; then :
14675 $as_echo_n "(cached) " >&6
14676 else
14677 ac_check_lib_save_LIBS=$LIBS
14678 LIBS="-ldl $LIBS"
14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14681
14682 /* Override any GCC internal prototype to avoid an error.
14683 Use char because int might match the return type of a GCC
14684 builtin and then its argument prototype would still apply. */
14685 #ifdef __cplusplus
14686 extern "C"
14687 #endif
14688 char dlopen ();
14689 int
14690 main ()
14691 {
14692 return dlopen ();
14693 ;
14694 return 0;
14695 }
14696 _ACEOF
14697 if ac_fn_c_try_link "$LINENO"; then :
14698 ac_cv_lib_dl_dlopen=yes
14699 else
14700 ac_cv_lib_dl_dlopen=no
14701 fi
14702 rm -f core conftest.err conftest.$ac_objext \
14703 conftest$ac_exeext conftest.$ac_ext
14704 LIBS=$ac_check_lib_save_LIBS
14705 fi
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14707 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14708 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14709 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14710 else
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14712 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14713 if ${ac_cv_lib_svld_dlopen+:} false; then :
14714 $as_echo_n "(cached) " >&6
14715 else
14716 ac_check_lib_save_LIBS=$LIBS
14717 LIBS="-lsvld $LIBS"
14718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h. */
14720
14721 /* Override any GCC internal prototype to avoid an error.
14722 Use char because int might match the return type of a GCC
14723 builtin and then its argument prototype would still apply. */
14724 #ifdef __cplusplus
14725 extern "C"
14726 #endif
14727 char dlopen ();
14728 int
14729 main ()
14730 {
14731 return dlopen ();
14732 ;
14733 return 0;
14734 }
14735 _ACEOF
14736 if ac_fn_c_try_link "$LINENO"; then :
14737 ac_cv_lib_svld_dlopen=yes
14738 else
14739 ac_cv_lib_svld_dlopen=no
14740 fi
14741 rm -f core conftest.err conftest.$ac_objext \
14742 conftest$ac_exeext conftest.$ac_ext
14743 LIBS=$ac_check_lib_save_LIBS
14744 fi
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14746 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14747 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14748 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14749 else
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14751 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14752 if ${ac_cv_lib_dld_dld_link+:} false; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 ac_check_lib_save_LIBS=$LIBS
14756 LIBS="-ldld $LIBS"
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759
14760 /* Override any GCC internal prototype to avoid an error.
14761 Use char because int might match the return type of a GCC
14762 builtin and then its argument prototype would still apply. */
14763 #ifdef __cplusplus
14764 extern "C"
14765 #endif
14766 char dld_link ();
14767 int
14768 main ()
14769 {
14770 return dld_link ();
14771 ;
14772 return 0;
14773 }
14774 _ACEOF
14775 if ac_fn_c_try_link "$LINENO"; then :
14776 ac_cv_lib_dld_dld_link=yes
14777 else
14778 ac_cv_lib_dld_dld_link=no
14779 fi
14780 rm -f core conftest.err conftest.$ac_objext \
14781 conftest$ac_exeext conftest.$ac_ext
14782 LIBS=$ac_check_lib_save_LIBS
14783 fi
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14785 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14786 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14787 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14788 fi
14789
14790
14791 fi
14792
14793
14794 fi
14795
14796
14797 fi
14798
14799
14800 fi
14801
14802
14803 fi
14804
14805 ;;
14806 esac
14807
14808 if test no = "$lt_cv_dlopen"; then
14809 enable_dlopen=no
14810 else
14811 enable_dlopen=yes
14812 fi
14813
14814 case $lt_cv_dlopen in
14815 dlopen)
14816 save_CPPFLAGS=$CPPFLAGS
14817 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14818
14819 save_LDFLAGS=$LDFLAGS
14820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14821
14822 save_LIBS=$LIBS
14823 LIBS="$lt_cv_dlopen_libs $LIBS"
14824
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14826 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14827 if ${lt_cv_dlopen_self+:} false; then :
14828 $as_echo_n "(cached) " >&6
14829 else
14830 if test yes = "$cross_compiling"; then :
14831 lt_cv_dlopen_self=cross
14832 else
14833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14834 lt_status=$lt_dlunknown
14835 cat > conftest.$ac_ext <<_LT_EOF
14836 #line $LINENO "configure"
14837 #include "confdefs.h"
14838
14839 #if HAVE_DLFCN_H
14840 #include <dlfcn.h>
14841 #endif
14842
14843 #include <stdio.h>
14844
14845 #ifdef RTLD_GLOBAL
14846 # define LT_DLGLOBAL RTLD_GLOBAL
14847 #else
14848 # ifdef DL_GLOBAL
14849 # define LT_DLGLOBAL DL_GLOBAL
14850 # else
14851 # define LT_DLGLOBAL 0
14852 # endif
14853 #endif
14854
14855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14856 find out it does not work in some platform. */
14857 #ifndef LT_DLLAZY_OR_NOW
14858 # ifdef RTLD_LAZY
14859 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14860 # else
14861 # ifdef DL_LAZY
14862 # define LT_DLLAZY_OR_NOW DL_LAZY
14863 # else
14864 # ifdef RTLD_NOW
14865 # define LT_DLLAZY_OR_NOW RTLD_NOW
14866 # else
14867 # ifdef DL_NOW
14868 # define LT_DLLAZY_OR_NOW DL_NOW
14869 # else
14870 # define LT_DLLAZY_OR_NOW 0
14871 # endif
14872 # endif
14873 # endif
14874 # endif
14875 #endif
14876
14877 /* When -fvisibility=hidden is used, assume the code has been annotated
14878 correspondingly for the symbols needed. */
14879 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14880 int fnord () __attribute__((visibility("default")));
14881 #endif
14882
14883 int fnord () { return 42; }
14884 int main ()
14885 {
14886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14887 int status = $lt_dlunknown;
14888
14889 if (self)
14890 {
14891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14892 else
14893 {
14894 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14895 else puts (dlerror ());
14896 }
14897 /* dlclose (self); */
14898 }
14899 else
14900 puts (dlerror ());
14901
14902 return status;
14903 }
14904 _LT_EOF
14905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14906 (eval $ac_link) 2>&5
14907 ac_status=$?
14908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14909 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14910 (./conftest; exit; ) >&5 2>/dev/null
14911 lt_status=$?
14912 case x$lt_status in
14913 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14914 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14915 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14916 esac
14917 else :
14918 # compilation failed
14919 lt_cv_dlopen_self=no
14920 fi
14921 fi
14922 rm -fr conftest*
14923
14924
14925 fi
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14927 $as_echo "$lt_cv_dlopen_self" >&6; }
14928
14929 if test yes = "$lt_cv_dlopen_self"; then
14930 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14932 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14933 if ${lt_cv_dlopen_self_static+:} false; then :
14934 $as_echo_n "(cached) " >&6
14935 else
14936 if test yes = "$cross_compiling"; then :
14937 lt_cv_dlopen_self_static=cross
14938 else
14939 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14940 lt_status=$lt_dlunknown
14941 cat > conftest.$ac_ext <<_LT_EOF
14942 #line $LINENO "configure"
14943 #include "confdefs.h"
14944
14945 #if HAVE_DLFCN_H
14946 #include <dlfcn.h>
14947 #endif
14948
14949 #include <stdio.h>
14950
14951 #ifdef RTLD_GLOBAL
14952 # define LT_DLGLOBAL RTLD_GLOBAL
14953 #else
14954 # ifdef DL_GLOBAL
14955 # define LT_DLGLOBAL DL_GLOBAL
14956 # else
14957 # define LT_DLGLOBAL 0
14958 # endif
14959 #endif
14960
14961 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14962 find out it does not work in some platform. */
14963 #ifndef LT_DLLAZY_OR_NOW
14964 # ifdef RTLD_LAZY
14965 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14966 # else
14967 # ifdef DL_LAZY
14968 # define LT_DLLAZY_OR_NOW DL_LAZY
14969 # else
14970 # ifdef RTLD_NOW
14971 # define LT_DLLAZY_OR_NOW RTLD_NOW
14972 # else
14973 # ifdef DL_NOW
14974 # define LT_DLLAZY_OR_NOW DL_NOW
14975 # else
14976 # define LT_DLLAZY_OR_NOW 0
14977 # endif
14978 # endif
14979 # endif
14980 # endif
14981 #endif
14982
14983 /* When -fvisibility=hidden is used, assume the code has been annotated
14984 correspondingly for the symbols needed. */
14985 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14986 int fnord () __attribute__((visibility("default")));
14987 #endif
14988
14989 int fnord () { return 42; }
14990 int main ()
14991 {
14992 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14993 int status = $lt_dlunknown;
14994
14995 if (self)
14996 {
14997 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14998 else
14999 {
15000 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15001 else puts (dlerror ());
15002 }
15003 /* dlclose (self); */
15004 }
15005 else
15006 puts (dlerror ());
15007
15008 return status;
15009 }
15010 _LT_EOF
15011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15012 (eval $ac_link) 2>&5
15013 ac_status=$?
15014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15015 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15016 (./conftest; exit; ) >&5 2>/dev/null
15017 lt_status=$?
15018 case x$lt_status in
15019 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15020 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15021 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15022 esac
15023 else :
15024 # compilation failed
15025 lt_cv_dlopen_self_static=no
15026 fi
15027 fi
15028 rm -fr conftest*
15029
15030
15031 fi
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15033 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15034 fi
15035
15036 CPPFLAGS=$save_CPPFLAGS
15037 LDFLAGS=$save_LDFLAGS
15038 LIBS=$save_LIBS
15039 ;;
15040 esac
15041
15042 case $lt_cv_dlopen_self in
15043 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15044 *) enable_dlopen_self=unknown ;;
15045 esac
15046
15047 case $lt_cv_dlopen_self_static in
15048 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15049 *) enable_dlopen_self_static=unknown ;;
15050 esac
15051 fi
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069 striplib=
15070 old_striplib=
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15072 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15073 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15074 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15075 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15077 $as_echo "yes" >&6; }
15078 else
15079 # FIXME - insert some real tests, host_os isn't really good enough
15080 case $host_os in
15081 darwin*)
15082 if test -n "$STRIP"; then
15083 striplib="$STRIP -x"
15084 old_striplib="$STRIP -S"
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15086 $as_echo "yes" >&6; }
15087 else
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15089 $as_echo "no" >&6; }
15090 fi
15091 ;;
15092 *)
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15094 $as_echo "no" >&6; }
15095 ;;
15096 esac
15097 fi
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110 # Report what library types will actually be built
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15112 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15114 $as_echo "$can_build_shared" >&6; }
15115
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15117 $as_echo_n "checking whether to build shared libraries... " >&6; }
15118 test no = "$can_build_shared" && enable_shared=no
15119
15120 # On AIX, shared libraries and static libraries use the same namespace, and
15121 # are all built from PIC.
15122 case $host_os in
15123 aix3*)
15124 test yes = "$enable_shared" && enable_static=no
15125 if test -n "$RANLIB"; then
15126 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15127 postinstall_cmds='$RANLIB $lib'
15128 fi
15129 ;;
15130
15131 aix[4-9]*)
15132 if test ia64 != "$host_cpu"; then
15133 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15134 yes,aix,yes) ;; # shared object as lib.so file only
15135 yes,svr4,*) ;; # shared object as lib.so archive member only
15136 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15137 esac
15138 fi
15139 ;;
15140 esac
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15142 $as_echo "$enable_shared" >&6; }
15143
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15145 $as_echo_n "checking whether to build static libraries... " >&6; }
15146 # Make sure either enable_shared or enable_static is yes.
15147 test yes = "$enable_shared" || enable_static=yes
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15149 $as_echo "$enable_static" >&6; }
15150
15151
15152
15153
15154 fi
15155 ac_ext=c
15156 ac_cpp='$CPP $CPPFLAGS'
15157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15160
15161 CC=$lt_save_CC
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177 ac_config_commands="$ac_config_commands libtool"
15178
15179
15180
15181
15182 # Only expand once:
15183
15184
15185
15186
15187 if test "$enable_shared" = "yes" && test -z "$DPKG_DEVEL_MODE"; then :
15188
15189 as_fn_error $? "building libdpkg as a shared library is not supported" "$LINENO" 5
15190
15191 fi
15192 if test "$enable_shared" = "yes"; then
15193 BUILD_SHARED_TRUE=
15194 BUILD_SHARED_FALSE='#'
15195 else
15196 BUILD_SHARED_TRUE='#'
15197 BUILD_SHARED_FALSE=
15198 fi
15199
15200
15201
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --as-needed linker flag" >&5
15203 $as_echo_n "checking for --as-needed linker flag... " >&6; }
15204 if ${dpkg_cv_linker_as_needed+:} false; then :
15205 $as_echo_n "(cached) " >&6
15206 else
15207
15208 save_LDFLAGS=$LDFLAGS
15209 LDFLAGS="$LDFLAGS -Wl,--as-needed"
15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h. */
15212
15213
15214 int
15215 main ()
15216 {
15217
15218 ;
15219 return 0;
15220 }
15221
15222 _ACEOF
15223 if ac_fn_c_try_link "$LINENO"; then :
15224
15225 dpkg_cv_linker_as_needed=yes
15226
15227 else
15228
15229 dpkg_cv_linker_as_needed=no
15230
15231 fi
15232 rm -f core conftest.err conftest.$ac_objext \
15233 conftest$ac_exeext conftest.$ac_ext
15234 LDFLAGS="$save_LDFLAGS"
15235
15236 fi
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_linker_as_needed" >&5
15238 $as_echo "$dpkg_cv_linker_as_needed" >&6; }
15239 if test "x$dpkg_cv_linker_as_needed" = "xyes"; then
15240 HAVE_LINKER_AS_NEEDED_TRUE=
15241 HAVE_LINKER_AS_NEEDED_FALSE='#'
15242 else
15243 HAVE_LINKER_AS_NEEDED_TRUE='#'
15244 HAVE_LINKER_AS_NEEDED_FALSE=
15245 fi
15246
15247
15248
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --version-script linker flag" >&5
15250 $as_echo_n "checking for --version-script linker flag... " >&6; }
15251 if ${dpkg_cv_version_script+:} false; then :
15252 $as_echo_n "(cached) " >&6
15253 else
15254
15255 echo "{ global: symbol; local: *; };" >conftest.map
15256 save_LDFLAGS=$LDFLAGS
15257 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259 /* end confdefs.h. */
15260
15261
15262 int
15263 main ()
15264 {
15265
15266 ;
15267 return 0;
15268 }
15269
15270 _ACEOF
15271 if ac_fn_c_try_link "$LINENO"; then :
15272
15273 dpkg_cv_version_script=yes
15274
15275 else
15276
15277 dpkg_cv_version_script=no
15278
15279 fi
15280 rm -f core conftest.err conftest.$ac_objext \
15281 conftest$ac_exeext conftest.$ac_ext
15282 LDFLAGS="$save_LDFLAGS"
15283 rm -f conftest.map
15284
15285 fi
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_version_script" >&5
15287 $as_echo "$dpkg_cv_version_script" >&6; }
15288 if test "x$dpkg_cv_version_script" = "xyes"; then
15289 HAVE_LINKER_VERSION_SCRIPT_TRUE=
15290 HAVE_LINKER_VERSION_SCRIPT_FALSE='#'
15291 else
15292 HAVE_LINKER_VERSION_SCRIPT_TRUE='#'
15293 HAVE_LINKER_VERSION_SCRIPT_FALSE=
15294 fi
15295
15296
15297
15298 # Allow compilation without optional programs
15299
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build dselect" >&5
15301 $as_echo_n "checking whether to build dselect... " >&6; }
15302 # Check whether --enable-dselect was given.
15303 if test "${enable_dselect+set}" = set; then :
15304 enableval=$enable_dselect; build_dselect=$enable_dselect
15305 else
15306 build_dselect=yes
15307 fi
15308
15309 if test "x$build_dselect" = "xyes"; then
15310 BUILD_DSELECT_TRUE=
15311 BUILD_DSELECT_FALSE='#'
15312 else
15313 BUILD_DSELECT_TRUE='#'
15314 BUILD_DSELECT_FALSE=
15315 fi
15316
15317 if test "x$build_dselect" = "xyes"; then :
15318
15319
15320 $as_echo "#define BUILD_DSELECT 1" >>confdefs.h
15321
15322
15323 else
15324
15325 $as_echo "#define BUILD_DSELECT 0" >>confdefs.h
15326
15327
15328 fi
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_dselect" >&5
15330 $as_echo "$build_dselect" >&6; }
15331
15332
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build start-stop-daemon" >&5
15334 $as_echo_n "checking whether to build start-stop-daemon... " >&6; }
15335 # Check whether --enable-start-stop-daemon was given.
15336 if test "${enable_start_stop_daemon+set}" = set; then :
15337 enableval=$enable_start_stop_daemon; build_start_stop_daemon=$enable_start_stop_daemon
15338 else
15339 build_start_stop_daemon=yes
15340 fi
15341
15342 if test "x$build_start_stop_daemon" = "xyes"; then
15343 BUILD_START_STOP_DAEMON_TRUE=
15344 BUILD_START_STOP_DAEMON_FALSE='#'
15345 else
15346 BUILD_START_STOP_DAEMON_TRUE='#'
15347 BUILD_START_STOP_DAEMON_FALSE=
15348 fi
15349
15350 if test "x$build_start_stop_daemon" = "xyes"; then :
15351
15352
15353 $as_echo "#define BUILD_START_STOP_DAEMON 1" >>confdefs.h
15354
15355
15356 else
15357
15358 $as_echo "#define BUILD_START_STOP_DAEMON 0" >>confdefs.h
15359
15360
15361 fi
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_start_stop_daemon" >&5
15363 $as_echo "$build_start_stop_daemon" >&6; }
15364
15365
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build update-alternatives" >&5
15367 $as_echo_n "checking whether to build update-alternatives... " >&6; }
15368 # Check whether --enable-update-alternatives was given.
15369 if test "${enable_update_alternatives+set}" = set; then :
15370 enableval=$enable_update_alternatives; build_update_alternatives=$enable_update_alternatives
15371 else
15372 build_update_alternatives=yes
15373 fi
15374
15375 if test "x$build_update_alternatives" = "xyes"; then
15376 BUILD_UPDATE_ALTERNATIVES_TRUE=
15377 BUILD_UPDATE_ALTERNATIVES_FALSE='#'
15378 else
15379 BUILD_UPDATE_ALTERNATIVES_TRUE='#'
15380 BUILD_UPDATE_ALTERNATIVES_FALSE=
15381 fi
15382
15383 if test "x$build_update_alternatives" = "xyes"; then :
15384
15385
15386 $as_echo "#define BUILD_UPDATE_ALTERNATIVES 1" >>confdefs.h
15387
15388
15389 else
15390
15391 $as_echo "#define BUILD_UPDATE_ALTERNATIVES 0" >>confdefs.h
15392
15393
15394 fi
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_update_alternatives" >&5
15396 $as_echo "$build_update_alternatives" >&6; }
15397
15398
15399
15400
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.14.2" >&5
15402 $as_echo_n "checking for perl >= 5.14.2... " >&6; }
15403 if ${ac_cv_path_PERL+:} false; then :
15404 $as_echo_n "(cached) " >&6
15405 else
15406
15407 if test -z "$PERL"; then
15408 ac_path_PERL_found=false
15409 # Loop through the user's path and test for each of PROGNAME-LIST
15410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15411 for as_dir in $PATH
15412 do
15413 IFS=$as_save_IFS
15414 test -z "$as_dir" && as_dir=.
15415 for ac_prog in perl; do
15416 for ac_exec_ext in '' $ac_executable_extensions; do
15417 ac_path_PERL="$as_dir/$ac_prog$ac_exec_ext"
15418 as_fn_executable_p "$ac_path_PERL" || continue
15419
15420 perlcheck=$(test -x $ac_path_PERL && \
15421 $ac_path_PERL -MConfig -Mversion -e \
15422 'my $r = qv("v$Config{version}") >= qv("5.14.2");
15423 print "yes" if $r')
15424 if test "x$perlcheck" = "xyes"; then :
15425
15426 ac_cv_path_PERL=$ac_path_PERL ac_path_PERL_found=:
15427
15428 fi
15429
15430 $ac_path_PERL_found && break 3
15431 done
15432 done
15433 done
15434 IFS=$as_save_IFS
15435 if test -z "$ac_cv_path_PERL"; then
15436
15437 as_fn_error $? "cannot find perl >= 5.14.2" "$LINENO" 5
15438
15439 fi
15440 else
15441 ac_cv_path_PERL=$PERL
15442 fi
15443
15444
15445 fi
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
15447 $as_echo "$ac_cv_path_PERL" >&6; }
15448 PERL=$ac_cv_path_PERL
15449
15450 # Let the user override the variable.
15451 if test -z "$PERL_LIBDIR"; then :
15452
15453 PERL_LIBDIR=$($PERL -MConfig -e \
15454 'my $r = $Config{vendorlibexp};
15455 $r =~ s/$Config{vendorprefixexp}/\$(prefix)/;
15456 print $r')
15457
15458 fi
15459
15460
15461
15462 TIMESTAMP=$(PERL=$PERL $srcdir/run-script scripts/dpkg-parsechangelog.pl -l$srcdir/debian/changelog -STimestamp)
15463 PACKAGE_RELEASE_DATE=$($PERL -MPOSIX -e "print POSIX::strftime('%Y-%m-%d', gmtime('$TIMESTAMP'));")
15464
15465
15466
15467 # Check whether --enable-devel-docs was given.
15468 if test "${enable_devel_docs+set}" = set; then :
15469 enableval=$enable_devel_docs; build_devel_docs=$enable_devel_docs
15470 else
15471 build_devel_docs=yes
15472
15473 fi
15474
15475 if test "x$build_devel_docs" = "xyes"; then :
15476
15477 BUILD_DEVEL_DOCS=YES
15478
15479
15480 else
15481
15482 BUILD_DEVEL_DOCS=NO
15483
15484
15485 fi
15486
15487
15488 # Allow alternate directories
15489
15490 devlibdir="${libdir}"
15491
15492 # Check whether --with-devlibdir was given.
15493 if test "${with_devlibdir+set}" = set; then :
15494 withval=$with_devlibdir;
15495 case $with_devlibdir in #(
15496 "") :
15497 as_fn_error $? "invalid devlibdir specified" "$LINENO" 5 ;; #(
15498 *) :
15499 devlibdir="$with_devlibdir" ;;
15500 esac
15501
15502 fi
15503
15504
15505
15506
15507 pkgconfdir="${sysconfdir}/${PACKAGE_NAME}"
15508
15509 # Check whether --with-pkgconfdir was given.
15510 if test "${with_pkgconfdir+set}" = set; then :
15511 withval=$with_pkgconfdir;
15512 case $with_pkgconfdir in #(
15513 "") :
15514 as_fn_error $? "invalid pkgconfdir specified" "$LINENO" 5 ;; #(
15515 *) :
15516 pkgconfdir="$with_pkgconfdir" ;;
15517 esac
15518
15519 fi
15520
15521
15522
15523
15524 admindir="${localstatedir}/lib/${PACKAGE_NAME}"
15525
15526 # Check whether --with-admindir was given.
15527 if test "${with_admindir+set}" = set; then :
15528 withval=$with_admindir;
15529 case $with_admindir in #(
15530 "") :
15531 as_fn_error $? "invalid admindir specified" "$LINENO" 5 ;; #(
15532 *) :
15533 admindir="$with_admindir" ;;
15534 esac
15535
15536 fi
15537
15538
15539
15540
15541 logdir="${localstatedir}/log"
15542
15543 # Check whether --with-logdir was given.
15544 if test "${with_logdir+set}" = set; then :
15545 withval=$with_logdir;
15546 case $with_logdir in #(
15547 "") :
15548 as_fn_error $? "invalid logdir specified" "$LINENO" 5 ;; #(
15549 *) :
15550 logdir="$with_logdir" ;;
15551 esac
15552
15553 fi
15554
15555
15556
15557
15558 # Set default dpkg-deb values
15559
15560
15561 # Check whether --with-dpkg-deb-compressor was given.
15562 if test "${with_dpkg_deb_compressor+set}" = set; then :
15563 withval=$with_dpkg_deb_compressor; with_dpkg_deb_compressor=$withval
15564 else
15565 with_dpkg_deb_compressor=xz
15566 fi
15567
15568 case $with_dpkg_deb_compressor in #(
15569 gzip|xz) :
15570 : ;; #(
15571 *) :
15572 as_fn_error $? "unsupported default compressor $with_dpkg_deb_compressor" "$LINENO" 5 ;;
15573 esac
15574
15575 cat >>confdefs.h <<_ACEOF
15576 #define DPKG_DEB_DEFAULT_COMPRESSOR COMPRESSOR_TYPE_`$as_echo "${with_dpkg_deb_compressor}" | $as_tr_cpp`
15577 _ACEOF
15578
15579
15580
15581
15582 for ac_prog in gnutar gtar tar
15583 do
15584 # Extract the first word of "$ac_prog", so it can be a program name with args.
15585 set dummy $ac_prog; ac_word=$2
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15587 $as_echo_n "checking for $ac_word... " >&6; }
15588 if ${ac_cv_prog_TAR+:} false; then :
15589 $as_echo_n "(cached) " >&6
15590 else
15591 if test -n "$TAR"; then
15592 ac_cv_prog_TAR="$TAR" # Let the user override the test.
15593 else
15594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15595 for as_dir in $PATH
15596 do
15597 IFS=$as_save_IFS
15598 test -z "$as_dir" && as_dir=.
15599 for ac_exec_ext in '' $ac_executable_extensions; do
15600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15601 ac_cv_prog_TAR="$ac_prog"
15602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15603 break 2
15604 fi
15605 done
15606 done
15607 IFS=$as_save_IFS
15608
15609 fi
15610 fi
15611 TAR=$ac_cv_prog_TAR
15612 if test -n "$TAR"; then
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
15614 $as_echo "$TAR" >&6; }
15615 else
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617 $as_echo "no" >&6; }
15618 fi
15619
15620
15621 test -n "$TAR" && break
15622 done
15623 test -n "$TAR" || TAR="tar"
15624
15625 if ! $TAR --version 2>/dev/null | grep -q '^tar (GNU tar)'; then :
15626
15627 as_fn_error $? "cannot find a GNU tar program" "$LINENO" 5
15628
15629 fi
15630
15631 cat >>confdefs.h <<_ACEOF
15632 #define TAR "$TAR"
15633 _ACEOF
15634
15635
15636
15637 # Checks for programs.
15638 ac_ext=c
15639 ac_cpp='$CPP $CPPFLAGS'
15640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15643 if test -n "$ac_tool_prefix"; then
15644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15645 set dummy ${ac_tool_prefix}gcc; ac_word=$2
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15647 $as_echo_n "checking for $ac_word... " >&6; }
15648 if ${ac_cv_prog_CC+:} false; then :
15649 $as_echo_n "(cached) " >&6
15650 else
15651 if test -n "$CC"; then
15652 ac_cv_prog_CC="$CC" # Let the user override the test.
15653 else
15654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15655 for as_dir in $PATH
15656 do
15657 IFS=$as_save_IFS
15658 test -z "$as_dir" && as_dir=.
15659 for ac_exec_ext in '' $ac_executable_extensions; do
15660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
15662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15663 break 2
15664 fi
15665 done
15666 done
15667 IFS=$as_save_IFS
15668
15669 fi
15670 fi
15671 CC=$ac_cv_prog_CC
15672 if test -n "$CC"; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15674 $as_echo "$CC" >&6; }
15675 else
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15677 $as_echo "no" >&6; }
15678 fi
15679
15680
15681 fi
15682 if test -z "$ac_cv_prog_CC"; then
15683 ac_ct_CC=$CC
15684 # Extract the first word of "gcc", so it can be a program name with args.
15685 set dummy gcc; ac_word=$2
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15687 $as_echo_n "checking for $ac_word... " >&6; }
15688 if ${ac_cv_prog_ac_ct_CC+:} false; then :
15689 $as_echo_n "(cached) " >&6
15690 else
15691 if test -n "$ac_ct_CC"; then
15692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15693 else
15694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15695 for as_dir in $PATH
15696 do
15697 IFS=$as_save_IFS
15698 test -z "$as_dir" && as_dir=.
15699 for ac_exec_ext in '' $ac_executable_extensions; do
15700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15701 ac_cv_prog_ac_ct_CC="gcc"
15702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15703 break 2
15704 fi
15705 done
15706 done
15707 IFS=$as_save_IFS
15708
15709 fi
15710 fi
15711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15712 if test -n "$ac_ct_CC"; then
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15714 $as_echo "$ac_ct_CC" >&6; }
15715 else
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717 $as_echo "no" >&6; }
15718 fi
15719
15720 if test "x$ac_ct_CC" = x; then
15721 CC=""
15722 else
15723 case $cross_compiling:$ac_tool_warned in
15724 yes:)
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15727 ac_tool_warned=yes ;;
15728 esac
15729 CC=$ac_ct_CC
15730 fi
15731 else
15732 CC="$ac_cv_prog_CC"
15733 fi
15734
15735 if test -z "$CC"; then
15736 if test -n "$ac_tool_prefix"; then
15737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15738 set dummy ${ac_tool_prefix}cc; ac_word=$2
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15740 $as_echo_n "checking for $ac_word... " >&6; }
15741 if ${ac_cv_prog_CC+:} false; then :
15742 $as_echo_n "(cached) " >&6
15743 else
15744 if test -n "$CC"; then
15745 ac_cv_prog_CC="$CC" # Let the user override the test.
15746 else
15747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15748 for as_dir in $PATH
15749 do
15750 IFS=$as_save_IFS
15751 test -z "$as_dir" && as_dir=.
15752 for ac_exec_ext in '' $ac_executable_extensions; do
15753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15754 ac_cv_prog_CC="${ac_tool_prefix}cc"
15755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15756 break 2
15757 fi
15758 done
15759 done
15760 IFS=$as_save_IFS
15761
15762 fi
15763 fi
15764 CC=$ac_cv_prog_CC
15765 if test -n "$CC"; then
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15767 $as_echo "$CC" >&6; }
15768 else
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15770 $as_echo "no" >&6; }
15771 fi
15772
15773
15774 fi
15775 fi
15776 if test -z "$CC"; then
15777 # Extract the first word of "cc", so it can be a program name with args.
15778 set dummy cc; ac_word=$2
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15780 $as_echo_n "checking for $ac_word... " >&6; }
15781 if ${ac_cv_prog_CC+:} false; then :
15782 $as_echo_n "(cached) " >&6
15783 else
15784 if test -n "$CC"; then
15785 ac_cv_prog_CC="$CC" # Let the user override the test.
15786 else
15787 ac_prog_rejected=no
15788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15789 for as_dir in $PATH
15790 do
15791 IFS=$as_save_IFS
15792 test -z "$as_dir" && as_dir=.
15793 for ac_exec_ext in '' $ac_executable_extensions; do
15794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15796 ac_prog_rejected=yes
15797 continue
15798 fi
15799 ac_cv_prog_CC="cc"
15800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15801 break 2
15802 fi
15803 done
15804 done
15805 IFS=$as_save_IFS
15806
15807 if test $ac_prog_rejected = yes; then
15808 # We found a bogon in the path, so make sure we never use it.
15809 set dummy $ac_cv_prog_CC
15810 shift
15811 if test $# != 0; then
15812 # We chose a different compiler from the bogus one.
15813 # However, it has the same basename, so the bogon will be chosen
15814 # first if we set CC to just the basename; use the full file name.
15815 shift
15816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15817 fi
15818 fi
15819 fi
15820 fi
15821 CC=$ac_cv_prog_CC
15822 if test -n "$CC"; then
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15824 $as_echo "$CC" >&6; }
15825 else
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15827 $as_echo "no" >&6; }
15828 fi
15829
15830
15831 fi
15832 if test -z "$CC"; then
15833 if test -n "$ac_tool_prefix"; then
15834 for ac_prog in cl.exe
15835 do
15836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15839 $as_echo_n "checking for $ac_word... " >&6; }
15840 if ${ac_cv_prog_CC+:} false; then :
15841 $as_echo_n "(cached) " >&6
15842 else
15843 if test -n "$CC"; then
15844 ac_cv_prog_CC="$CC" # Let the user override the test.
15845 else
15846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15847 for as_dir in $PATH
15848 do
15849 IFS=$as_save_IFS
15850 test -z "$as_dir" && as_dir=.
15851 for ac_exec_ext in '' $ac_executable_extensions; do
15852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15855 break 2
15856 fi
15857 done
15858 done
15859 IFS=$as_save_IFS
15860
15861 fi
15862 fi
15863 CC=$ac_cv_prog_CC
15864 if test -n "$CC"; then
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15866 $as_echo "$CC" >&6; }
15867 else
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15869 $as_echo "no" >&6; }
15870 fi
15871
15872
15873 test -n "$CC" && break
15874 done
15875 fi
15876 if test -z "$CC"; then
15877 ac_ct_CC=$CC
15878 for ac_prog in cl.exe
15879 do
15880 # Extract the first word of "$ac_prog", so it can be a program name with args.
15881 set dummy $ac_prog; ac_word=$2
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15883 $as_echo_n "checking for $ac_word... " >&6; }
15884 if ${ac_cv_prog_ac_ct_CC+:} false; then :
15885 $as_echo_n "(cached) " >&6
15886 else
15887 if test -n "$ac_ct_CC"; then
15888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15889 else
15890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15891 for as_dir in $PATH
15892 do
15893 IFS=$as_save_IFS
15894 test -z "$as_dir" && as_dir=.
15895 for ac_exec_ext in '' $ac_executable_extensions; do
15896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15897 ac_cv_prog_ac_ct_CC="$ac_prog"
15898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15899 break 2
15900 fi
15901 done
15902 done
15903 IFS=$as_save_IFS
15904
15905 fi
15906 fi
15907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15908 if test -n "$ac_ct_CC"; then
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15910 $as_echo "$ac_ct_CC" >&6; }
15911 else
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15913 $as_echo "no" >&6; }
15914 fi
15915
15916
15917 test -n "$ac_ct_CC" && break
15918 done
15919
15920 if test "x$ac_ct_CC" = x; then
15921 CC=""
15922 else
15923 case $cross_compiling:$ac_tool_warned in
15924 yes:)
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15927 ac_tool_warned=yes ;;
15928 esac
15929 CC=$ac_ct_CC
15930 fi
15931 fi
15932
15933 fi
15934
15935
15936 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15938 as_fn_error $? "no acceptable C compiler found in \$PATH
15939 See \`config.log' for more details" "$LINENO" 5; }
15940
15941 # Provide some information about the compiler.
15942 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
15943 set X $ac_compile
15944 ac_compiler=$2
15945 for ac_option in --version -v -V -qversion; do
15946 { { ac_try="$ac_compiler $ac_option >&5"
15947 case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15950 esac
15951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15952 $as_echo "$ac_try_echo"; } >&5
15953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15954 ac_status=$?
15955 if test -s conftest.err; then
15956 sed '10a\
15957 ... rest of stderr output deleted ...
15958 10q' conftest.err >conftest.er1
15959 cat conftest.er1 >&5
15960 fi
15961 rm -f conftest.er1 conftest.err
15962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15963 test $ac_status = 0; }
15964 done
15965
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
15967 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
15968 if ${ac_cv_c_compiler_gnu+:} false; then :
15969 $as_echo_n "(cached) " >&6
15970 else
15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15973
15974 int
15975 main ()
15976 {
15977 #ifndef __GNUC__
15978 choke me
15979 #endif
15980
15981 ;
15982 return 0;
15983 }
15984 _ACEOF
15985 if ac_fn_c_try_compile "$LINENO"; then :
15986 ac_compiler_gnu=yes
15987 else
15988 ac_compiler_gnu=no
15989 fi
15990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15992
15993 fi
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
15995 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
15996 if test $ac_compiler_gnu = yes; then
15997 GCC=yes
15998 else
15999 GCC=
16000 fi
16001 ac_test_CFLAGS=${CFLAGS+set}
16002 ac_save_CFLAGS=$CFLAGS
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16004 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16005 if ${ac_cv_prog_cc_g+:} false; then :
16006 $as_echo_n "(cached) " >&6
16007 else
16008 ac_save_c_werror_flag=$ac_c_werror_flag
16009 ac_c_werror_flag=yes
16010 ac_cv_prog_cc_g=no
16011 CFLAGS="-g"
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16014
16015 int
16016 main ()
16017 {
16018
16019 ;
16020 return 0;
16021 }
16022 _ACEOF
16023 if ac_fn_c_try_compile "$LINENO"; then :
16024 ac_cv_prog_cc_g=yes
16025 else
16026 CFLAGS=""
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029
16030 int
16031 main ()
16032 {
16033
16034 ;
16035 return 0;
16036 }
16037 _ACEOF
16038 if ac_fn_c_try_compile "$LINENO"; then :
16039
16040 else
16041 ac_c_werror_flag=$ac_save_c_werror_flag
16042 CFLAGS="-g"
16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h. */
16045
16046 int
16047 main ()
16048 {
16049
16050 ;
16051 return 0;
16052 }
16053 _ACEOF
16054 if ac_fn_c_try_compile "$LINENO"; then :
16055 ac_cv_prog_cc_g=yes
16056 fi
16057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058 fi
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060 fi
16061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062 ac_c_werror_flag=$ac_save_c_werror_flag
16063 fi
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16065 $as_echo "$ac_cv_prog_cc_g" >&6; }
16066 if test "$ac_test_CFLAGS" = set; then
16067 CFLAGS=$ac_save_CFLAGS
16068 elif test $ac_cv_prog_cc_g = yes; then
16069 if test "$GCC" = yes; then
16070 CFLAGS="-g -O2"
16071 else
16072 CFLAGS="-g"
16073 fi
16074 else
16075 if test "$GCC" = yes; then
16076 CFLAGS="-O2"
16077 else
16078 CFLAGS=
16079 fi
16080 fi
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16082 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16083 if ${ac_cv_prog_cc_c89+:} false; then :
16084 $as_echo_n "(cached) " >&6
16085 else
16086 ac_cv_prog_cc_c89=no
16087 ac_save_CC=$CC
16088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089 /* end confdefs.h. */
16090 #include <stdarg.h>
16091 #include <stdio.h>
16092 struct stat;
16093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16094 struct buf { int x; };
16095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16096 static char *e (p, i)
16097 char **p;
16098 int i;
16099 {
16100 return p[i];
16101 }
16102 static char *f (char * (*g) (char **, int), char **p, ...)
16103 {
16104 char *s;
16105 va_list v;
16106 va_start (v,p);
16107 s = g (p, va_arg (v,int));
16108 va_end (v);
16109 return s;
16110 }
16111
16112 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16113 function prototypes and stuff, but not '\xHH' hex character constants.
16114 These don't provoke an error unfortunately, instead are silently treated
16115 as 'x'. The following induces an error, until -std is added to get
16116 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16117 array size at least. It's necessary to write '\x00'==0 to get something
16118 that's true only with -std. */
16119 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16120
16121 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16122 inside strings and character constants. */
16123 #define FOO(x) 'x'
16124 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16125
16126 int test (int i, double x);
16127 struct s1 {int (*f) (int a);};
16128 struct s2 {int (*f) (double a);};
16129 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16130 int argc;
16131 char **argv;
16132 int
16133 main ()
16134 {
16135 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16136 ;
16137 return 0;
16138 }
16139 _ACEOF
16140 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16141 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16142 do
16143 CC="$ac_save_CC $ac_arg"
16144 if ac_fn_c_try_compile "$LINENO"; then :
16145 ac_cv_prog_cc_c89=$ac_arg
16146 fi
16147 rm -f core conftest.err conftest.$ac_objext
16148 test "x$ac_cv_prog_cc_c89" != "xno" && break
16149 done
16150 rm -f conftest.$ac_ext
16151 CC=$ac_save_CC
16152
16153 fi
16154 # AC_CACHE_VAL
16155 case "x$ac_cv_prog_cc_c89" in
16156 x)
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16158 $as_echo "none needed" >&6; } ;;
16159 xno)
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16161 $as_echo "unsupported" >&6; } ;;
16162 *)
16163 CC="$CC $ac_cv_prog_cc_c89"
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16165 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16166 esac
16167 if test "x$ac_cv_prog_cc_c89" != xno; then :
16168
16169 fi
16170
16171 ac_ext=c
16172 ac_cpp='$CPP $CPPFLAGS'
16173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16176
16177 ac_ext=c
16178 ac_cpp='$CPP $CPPFLAGS'
16179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
16183 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
16184 if ${am_cv_prog_cc_c_o+:} false; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16189
16190 int
16191 main ()
16192 {
16193
16194 ;
16195 return 0;
16196 }
16197 _ACEOF
16198 # Make sure it works both with $CC and with simple cc.
16199 # Following AC_PROG_CC_C_O, we do the test twice because some
16200 # compilers refuse to overwrite an existing .o file with -o,
16201 # though they will create one.
16202 am_cv_prog_cc_c_o=yes
16203 for am_i in 1 2; do
16204 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
16205 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } \
16209 && test -f conftest2.$ac_objext; then
16210 : OK
16211 else
16212 am_cv_prog_cc_c_o=no
16213 break
16214 fi
16215 done
16216 rm -f core conftest*
16217 unset am_i
16218 fi
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
16220 $as_echo "$am_cv_prog_cc_c_o" >&6; }
16221 if test "$am_cv_prog_cc_c_o" != yes; then
16222 # Losing compiler, so override with the script.
16223 # FIXME: It is wrong to rewrite CC.
16224 # But if we don't then we get into trouble of one sort or another.
16225 # A longer-term fix would be to have automake use am__CC in this case,
16226 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16227 CC="$am_aux_dir/compile $CC"
16228 fi
16229 ac_ext=c
16230 ac_cpp='$CPP $CPPFLAGS'
16231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16234
16235
16236
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports C99 features" >&5
16238 $as_echo_n "checking whether $CC supports C99 features... " >&6; }
16239 if ${dpkg_cv_c99+:} false; then :
16240 $as_echo_n "(cached) " >&6
16241 else
16242
16243
16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245 /* end confdefs.h. */
16246
16247
16248 #include <inttypes.h>
16249 #include <stdbool.h>
16250 #include <stdio.h>
16251
16252 /* Variadic macro arguments. */
16253 #define variadic_macro(foo, ...) printf(foo, __VA_ARGS__)
16254
16255 int
16256 main ()
16257 {
16258
16259 int rc;
16260
16261 /* Designated initializers. */
16262 struct { int a, b; } foo = { .a = 1, .b = 2 };
16263
16264 /* Compound literals. */
16265 struct point { int x, y; } p = (struct point){ .x = 0, .y = 1 };
16266 p = (struct point){ .x = 2, .y = 4 };
16267
16268 /* Trailing comma in enum. */
16269 enum { FIRST, SECOND, } quux;
16270
16271 /* Boolean type. */
16272 bool bar = false;
16273
16274 /* Specific size type. */
16275 uint32_t baz = 0;
16276 size_t size = SIZE_MAX;
16277 intmax_t imax = INTMAX_MAX;
16278
16279 /* Format modifiers. */
16280 rc = printf("%jd", imax);
16281 if (rc == 3)
16282 return 1;
16283 rc = printf("%zu", size);
16284 if (rc == 3)
16285 return 1;
16286
16287 /* Magic __func__ variable. */
16288 printf("%s", __func__);
16289
16290 ;
16291 return 0;
16292 }
16293
16294 _ACEOF
16295 if ac_fn_c_try_compile "$LINENO"; then :
16296 dpkg_cv_c99=yes
16297 else
16298 dpkg_cv_c99=no
16299 fi
16300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301
16302 fi
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_c99" >&5
16304 $as_echo "$dpkg_cv_c99" >&6; }
16305 if test "x$dpkg_cv_c99" != "xyes"; then :
16306
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept C99 features" >&5
16308 $as_echo_n "checking for $CC option to accept C99 features... " >&6; }
16309 if ${dpkg_cv_c99_arg+:} false; then :
16310 $as_echo_n "(cached) " >&6
16311 else
16312
16313 dpkg_cv_c99_arg=none
16314 dpkg_save_CC="$CC"
16315 for arg in "-std=gnu99" "-std=c99" "-c99" "-AC99" "-xc99=all" \
16316 "-qlanglvl=extc99"; do
16317 CC="$dpkg_save_CC $arg"
16318
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16321
16322
16323 #include <inttypes.h>
16324 #include <stdbool.h>
16325 #include <stdio.h>
16326
16327 /* Variadic macro arguments. */
16328 #define variadic_macro(foo, ...) printf(foo, __VA_ARGS__)
16329
16330 int
16331 main ()
16332 {
16333
16334 int rc;
16335
16336 /* Designated initializers. */
16337 struct { int a, b; } foo = { .a = 1, .b = 2 };
16338
16339 /* Compound literals. */
16340 struct point { int x, y; } p = (struct point){ .x = 0, .y = 1 };
16341 p = (struct point){ .x = 2, .y = 4 };
16342
16343 /* Trailing comma in enum. */
16344 enum { FIRST, SECOND, } quux;
16345
16346 /* Boolean type. */
16347 bool bar = false;
16348
16349 /* Specific size type. */
16350 uint32_t baz = 0;
16351 size_t size = SIZE_MAX;
16352 intmax_t imax = INTMAX_MAX;
16353
16354 /* Format modifiers. */
16355 rc = printf("%jd", imax);
16356 if (rc == 3)
16357 return 1;
16358 rc = printf("%zu", size);
16359 if (rc == 3)
16360 return 1;
16361
16362 /* Magic __func__ variable. */
16363 printf("%s", __func__);
16364
16365 ;
16366 return 0;
16367 }
16368
16369 _ACEOF
16370 if ac_fn_c_try_compile "$LINENO"; then :
16371 dpkg_arg_worked=yes
16372 else
16373 dpkg_arg_worked=no
16374 fi
16375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16376 CC="$dpkg_save_CC"
16377
16378 if test "x$dpkg_arg_worked" = "xyes"; then :
16379
16380 dpkg_cv_c99_arg="$arg"
16381 break
16382
16383 fi
16384 done
16385
16386 fi
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_c99_arg" >&5
16388 $as_echo "$dpkg_cv_c99_arg" >&6; }
16389 if test "x$dpkg_cv_c99_arg" != "xnone"; then :
16390
16391 CC="$CC $dpkg_cv_c99_arg"
16392 dpkg_cv_c99=1
16393
16394 fi
16395
16396 fi
16397 if test "x$dpkg_cv_c99" = "xyes"; then :
16398
16399
16400 $as_echo "#define HAVE_C99 1" >>confdefs.h
16401
16402
16403 else
16404
16405 as_fn_error $? "unsupported required C99 extensions" "$LINENO" 5
16406
16407 fi
16408
16409 ac_ext=cpp
16410 ac_cpp='$CXXCPP $CPPFLAGS'
16411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16414 if test -z "$CXX"; then
16415 if test -n "$CCC"; then
16416 CXX=$CCC
16417 else
16418 if test -n "$ac_tool_prefix"; then
16419 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16420 do
16421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16422 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16424 $as_echo_n "checking for $ac_word... " >&6; }
16425 if ${ac_cv_prog_CXX+:} false; then :
16426 $as_echo_n "(cached) " >&6
16427 else
16428 if test -n "$CXX"; then
16429 ac_cv_prog_CXX="$CXX" # Let the user override the test.
16430 else
16431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16432 for as_dir in $PATH
16433 do
16434 IFS=$as_save_IFS
16435 test -z "$as_dir" && as_dir=.
16436 for ac_exec_ext in '' $ac_executable_extensions; do
16437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16438 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16440 break 2
16441 fi
16442 done
16443 done
16444 IFS=$as_save_IFS
16445
16446 fi
16447 fi
16448 CXX=$ac_cv_prog_CXX
16449 if test -n "$CXX"; then
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
16451 $as_echo "$CXX" >&6; }
16452 else
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16454 $as_echo "no" >&6; }
16455 fi
16456
16457
16458 test -n "$CXX" && break
16459 done
16460 fi
16461 if test -z "$CXX"; then
16462 ac_ct_CXX=$CXX
16463 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16464 do
16465 # Extract the first word of "$ac_prog", so it can be a program name with args.
16466 set dummy $ac_prog; ac_word=$2
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16468 $as_echo_n "checking for $ac_word... " >&6; }
16469 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 if test -n "$ac_ct_CXX"; then
16473 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16474 else
16475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16476 for as_dir in $PATH
16477 do
16478 IFS=$as_save_IFS
16479 test -z "$as_dir" && as_dir=.
16480 for ac_exec_ext in '' $ac_executable_extensions; do
16481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16482 ac_cv_prog_ac_ct_CXX="$ac_prog"
16483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16484 break 2
16485 fi
16486 done
16487 done
16488 IFS=$as_save_IFS
16489
16490 fi
16491 fi
16492 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16493 if test -n "$ac_ct_CXX"; then
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
16495 $as_echo "$ac_ct_CXX" >&6; }
16496 else
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16498 $as_echo "no" >&6; }
16499 fi
16500
16501
16502 test -n "$ac_ct_CXX" && break
16503 done
16504
16505 if test "x$ac_ct_CXX" = x; then
16506 CXX="g++"
16507 else
16508 case $cross_compiling:$ac_tool_warned in
16509 yes:)
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16512 ac_tool_warned=yes ;;
16513 esac
16514 CXX=$ac_ct_CXX
16515 fi
16516 fi
16517
16518 fi
16519 fi
16520 # Provide some information about the compiler.
16521 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
16522 set X $ac_compile
16523 ac_compiler=$2
16524 for ac_option in --version -v -V -qversion; do
16525 { { ac_try="$ac_compiler $ac_option >&5"
16526 case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16529 esac
16530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16531 $as_echo "$ac_try_echo"; } >&5
16532 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16533 ac_status=$?
16534 if test -s conftest.err; then
16535 sed '10a\
16536 ... rest of stderr output deleted ...
16537 10q' conftest.err >conftest.er1
16538 cat conftest.er1 >&5
16539 fi
16540 rm -f conftest.er1 conftest.err
16541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16542 test $ac_status = 0; }
16543 done
16544
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
16546 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
16547 if ${ac_cv_cxx_compiler_gnu+:} false; then :
16548 $as_echo_n "(cached) " >&6
16549 else
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552
16553 int
16554 main ()
16555 {
16556 #ifndef __GNUC__
16557 choke me
16558 #endif
16559
16560 ;
16561 return 0;
16562 }
16563 _ACEOF
16564 if ac_fn_cxx_try_compile "$LINENO"; then :
16565 ac_compiler_gnu=yes
16566 else
16567 ac_compiler_gnu=no
16568 fi
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16571
16572 fi
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
16574 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
16575 if test $ac_compiler_gnu = yes; then
16576 GXX=yes
16577 else
16578 GXX=
16579 fi
16580 ac_test_CXXFLAGS=${CXXFLAGS+set}
16581 ac_save_CXXFLAGS=$CXXFLAGS
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
16583 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
16584 if ${ac_cv_prog_cxx_g+:} false; then :
16585 $as_echo_n "(cached) " >&6
16586 else
16587 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16588 ac_cxx_werror_flag=yes
16589 ac_cv_prog_cxx_g=no
16590 CXXFLAGS="-g"
16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h. */
16593
16594 int
16595 main ()
16596 {
16597
16598 ;
16599 return 0;
16600 }
16601 _ACEOF
16602 if ac_fn_cxx_try_compile "$LINENO"; then :
16603 ac_cv_prog_cxx_g=yes
16604 else
16605 CXXFLAGS=""
16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h. */
16608
16609 int
16610 main ()
16611 {
16612
16613 ;
16614 return 0;
16615 }
16616 _ACEOF
16617 if ac_fn_cxx_try_compile "$LINENO"; then :
16618
16619 else
16620 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16621 CXXFLAGS="-g"
16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623 /* end confdefs.h. */
16624
16625 int
16626 main ()
16627 {
16628
16629 ;
16630 return 0;
16631 }
16632 _ACEOF
16633 if ac_fn_cxx_try_compile "$LINENO"; then :
16634 ac_cv_prog_cxx_g=yes
16635 fi
16636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637 fi
16638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639 fi
16640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16641 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16642 fi
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
16644 $as_echo "$ac_cv_prog_cxx_g" >&6; }
16645 if test "$ac_test_CXXFLAGS" = set; then
16646 CXXFLAGS=$ac_save_CXXFLAGS
16647 elif test $ac_cv_prog_cxx_g = yes; then
16648 if test "$GXX" = yes; then
16649 CXXFLAGS="-g -O2"
16650 else
16651 CXXFLAGS="-g"
16652 fi
16653 else
16654 if test "$GXX" = yes; then
16655 CXXFLAGS="-O2"
16656 else
16657 CXXFLAGS=
16658 fi
16659 fi
16660 ac_ext=c
16661 ac_cpp='$CPP $CPPFLAGS'
16662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16665
16666 depcc="$CXX" am_compiler_list=
16667
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16669 $as_echo_n "checking dependency style of $depcc... " >&6; }
16670 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
16671 $as_echo_n "(cached) " >&6
16672 else
16673 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16674 # We make a subdir and do the tests there. Otherwise we can end up
16675 # making bogus files that we don't know about and never remove. For
16676 # instance it was reported that on HP-UX the gcc test will end up
16677 # making a dummy file named 'D' -- because '-MD' means "put the output
16678 # in D".
16679 rm -rf conftest.dir
16680 mkdir conftest.dir
16681 # Copy depcomp to subdir because otherwise we won't find it if we're
16682 # using a relative directory.
16683 cp "$am_depcomp" conftest.dir
16684 cd conftest.dir
16685 # We will build objects and dependencies in a subdirectory because
16686 # it helps to detect inapplicable dependency modes. For instance
16687 # both Tru64's cc and ICC support -MD to output dependencies as a
16688 # side effect of compilation, but ICC will put the dependencies in
16689 # the current directory while Tru64 will put them in the object
16690 # directory.
16691 mkdir sub
16692
16693 am_cv_CXX_dependencies_compiler_type=none
16694 if test "$am_compiler_list" = ""; then
16695 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16696 fi
16697 am__universal=false
16698 case " $depcc " in #(
16699 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16700 esac
16701
16702 for depmode in $am_compiler_list; do
16703 # Setup a source with many dependencies, because some compilers
16704 # like to wrap large dependency lists on column 80 (with \), and
16705 # we should not choose a depcomp mode which is confused by this.
16706 #
16707 # We need to recreate these files for each test, as the compiler may
16708 # overwrite some of them when testing with obscure command lines.
16709 # This happens at least with the AIX C compiler.
16710 : > sub/conftest.c
16711 for i in 1 2 3 4 5 6; do
16712 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16713 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16714 # Solaris 10 /bin/sh.
16715 echo '/* dummy */' > sub/conftst$i.h
16716 done
16717 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16718
16719 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16720 # mode. It turns out that the SunPro C++ compiler does not properly
16721 # handle '-M -o', and we need to detect this. Also, some Intel
16722 # versions had trouble with output in subdirs.
16723 am__obj=sub/conftest.${OBJEXT-o}
16724 am__minus_obj="-o $am__obj"
16725 case $depmode in
16726 gcc)
16727 # This depmode causes a compiler race in universal mode.
16728 test "$am__universal" = false || continue
16729 ;;
16730 nosideeffect)
16731 # After this tag, mechanisms are not by side-effect, so they'll
16732 # only be used when explicitly requested.
16733 if test "x$enable_dependency_tracking" = xyes; then
16734 continue
16735 else
16736 break
16737 fi
16738 ;;
16739 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16740 # This compiler won't grok '-c -o', but also, the minuso test has
16741 # not run yet. These depmodes are late enough in the game, and
16742 # so weak that their functioning should not be impacted.
16743 am__obj=conftest.${OBJEXT-o}
16744 am__minus_obj=
16745 ;;
16746 none) break ;;
16747 esac
16748 if depmode=$depmode \
16749 source=sub/conftest.c object=$am__obj \
16750 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16751 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16752 >/dev/null 2>conftest.err &&
16753 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16754 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16755 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16756 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16757 # icc doesn't choke on unknown options, it will just issue warnings
16758 # or remarks (even with -Werror). So we grep stderr for any message
16759 # that says an option was ignored or not supported.
16760 # When given -MP, icc 7.0 and 7.1 complain thusly:
16761 # icc: Command line warning: ignoring option '-M'; no argument required
16762 # The diagnosis changed in icc 8.0:
16763 # icc: Command line remark: option '-MP' not supported
16764 if (grep 'ignoring option' conftest.err ||
16765 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16766 am_cv_CXX_dependencies_compiler_type=$depmode
16767 break
16768 fi
16769 fi
16770 done
16771
16772 cd ..
16773 rm -rf conftest.dir
16774 else
16775 am_cv_CXX_dependencies_compiler_type=none
16776 fi
16777
16778 fi
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
16780 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
16781 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16782
16783 if
16784 test "x$enable_dependency_tracking" != xno \
16785 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16786 am__fastdepCXX_TRUE=
16787 am__fastdepCXX_FALSE='#'
16788 else
16789 am__fastdepCXX_TRUE='#'
16790 am__fastdepCXX_FALSE=
16791 fi
16792
16793
16794
16795
16796 func_stripname_cnf ()
16797 {
16798 case $2 in
16799 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
16800 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
16801 esac
16802 } # func_stripname_cnf
16803
16804 if test -n "$CXX" && ( test no != "$CXX" &&
16805 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16806 (test g++ != "$CXX"))); then
16807 ac_ext=cpp
16808 ac_cpp='$CXXCPP $CPPFLAGS'
16809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16813 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16814 if test -z "$CXXCPP"; then
16815 if ${ac_cv_prog_CXXCPP+:} false; then :
16816 $as_echo_n "(cached) " >&6
16817 else
16818 # Double quotes because CXXCPP needs to be expanded
16819 for CXXCPP in "$CXX -E" "/lib/cpp"
16820 do
16821 ac_preproc_ok=false
16822 for ac_cxx_preproc_warn_flag in '' yes
16823 do
16824 # Use a header file that comes with gcc, so configuring glibc
16825 # with a fresh cross-compiler works.
16826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16827 # <limits.h> exists even on freestanding compilers.
16828 # On the NeXT, cc -E runs the code through the compiler's parser,
16829 # not just through cpp. "Syntax error" is here to catch this case.
16830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16831 /* end confdefs.h. */
16832 #ifdef __STDC__
16833 # include <limits.h>
16834 #else
16835 # include <assert.h>
16836 #endif
16837 Syntax error
16838 _ACEOF
16839 if ac_fn_cxx_try_cpp "$LINENO"; then :
16840
16841 else
16842 # Broken: fails on valid input.
16843 continue
16844 fi
16845 rm -f conftest.err conftest.i conftest.$ac_ext
16846
16847 # OK, works on sane cases. Now check whether nonexistent headers
16848 # can be detected and how.
16849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850 /* end confdefs.h. */
16851 #include <ac_nonexistent.h>
16852 _ACEOF
16853 if ac_fn_cxx_try_cpp "$LINENO"; then :
16854 # Broken: success on invalid input.
16855 continue
16856 else
16857 # Passes both tests.
16858 ac_preproc_ok=:
16859 break
16860 fi
16861 rm -f conftest.err conftest.i conftest.$ac_ext
16862
16863 done
16864 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16865 rm -f conftest.i conftest.err conftest.$ac_ext
16866 if $ac_preproc_ok; then :
16867 break
16868 fi
16869
16870 done
16871 ac_cv_prog_CXXCPP=$CXXCPP
16872
16873 fi
16874 CXXCPP=$ac_cv_prog_CXXCPP
16875 else
16876 ac_cv_prog_CXXCPP=$CXXCPP
16877 fi
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16879 $as_echo "$CXXCPP" >&6; }
16880 ac_preproc_ok=false
16881 for ac_cxx_preproc_warn_flag in '' yes
16882 do
16883 # Use a header file that comes with gcc, so configuring glibc
16884 # with a fresh cross-compiler works.
16885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16886 # <limits.h> exists even on freestanding compilers.
16887 # On the NeXT, cc -E runs the code through the compiler's parser,
16888 # not just through cpp. "Syntax error" is here to catch this case.
16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890 /* end confdefs.h. */
16891 #ifdef __STDC__
16892 # include <limits.h>
16893 #else
16894 # include <assert.h>
16895 #endif
16896 Syntax error
16897 _ACEOF
16898 if ac_fn_cxx_try_cpp "$LINENO"; then :
16899
16900 else
16901 # Broken: fails on valid input.
16902 continue
16903 fi
16904 rm -f conftest.err conftest.i conftest.$ac_ext
16905
16906 # OK, works on sane cases. Now check whether nonexistent headers
16907 # can be detected and how.
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16910 #include <ac_nonexistent.h>
16911 _ACEOF
16912 if ac_fn_cxx_try_cpp "$LINENO"; then :
16913 # Broken: success on invalid input.
16914 continue
16915 else
16916 # Passes both tests.
16917 ac_preproc_ok=:
16918 break
16919 fi
16920 rm -f conftest.err conftest.i conftest.$ac_ext
16921
16922 done
16923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16924 rm -f conftest.i conftest.err conftest.$ac_ext
16925 if $ac_preproc_ok; then :
16926
16927 else
16928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16930 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16931 See \`config.log' for more details" "$LINENO" 5; }
16932 fi
16933
16934 ac_ext=c
16935 ac_cpp='$CPP $CPPFLAGS'
16936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16939
16940 else
16941 _lt_caught_CXX_error=yes
16942 fi
16943
16944 ac_ext=cpp
16945 ac_cpp='$CXXCPP $CPPFLAGS'
16946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16949
16950 archive_cmds_need_lc_CXX=no
16951 allow_undefined_flag_CXX=
16952 always_export_symbols_CXX=no
16953 archive_expsym_cmds_CXX=
16954 compiler_needs_object_CXX=no
16955 export_dynamic_flag_spec_CXX=
16956 hardcode_direct_CXX=no
16957 hardcode_direct_absolute_CXX=no
16958 hardcode_libdir_flag_spec_CXX=
16959 hardcode_libdir_separator_CXX=
16960 hardcode_minus_L_CXX=no
16961 hardcode_shlibpath_var_CXX=unsupported
16962 hardcode_automatic_CXX=no
16963 inherit_rpath_CXX=no
16964 module_cmds_CXX=
16965 module_expsym_cmds_CXX=
16966 link_all_deplibs_CXX=unknown
16967 old_archive_cmds_CXX=$old_archive_cmds
16968 reload_flag_CXX=$reload_flag
16969 reload_cmds_CXX=$reload_cmds
16970 no_undefined_flag_CXX=
16971 whole_archive_flag_spec_CXX=
16972 enable_shared_with_static_runtimes_CXX=no
16973
16974 # Source file extension for C++ test sources.
16975 ac_ext=cpp
16976
16977 # Object file extension for compiled C++ test sources.
16978 objext=o
16979 objext_CXX=$objext
16980
16981 # No sense in running all these tests if we already determined that
16982 # the CXX compiler isn't working. Some variables (like enable_shared)
16983 # are currently assumed to apply to all compilers on this platform,
16984 # and will be corrupted by setting them based on a non-working compiler.
16985 if test yes != "$_lt_caught_CXX_error"; then
16986 # Code to be used in simple compile tests
16987 lt_simple_compile_test_code="int some_variable = 0;"
16988
16989 # Code to be used in simple link tests
16990 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16991
16992 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16993
16994
16995
16996
16997
16998
16999 # If no C compiler was specified, use CC.
17000 LTCC=${LTCC-"$CC"}
17001
17002 # If no C compiler flags were specified, use CFLAGS.
17003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17004
17005 # Allow CC to be a program name with arguments.
17006 compiler=$CC
17007
17008
17009 # save warnings/boilerplate of simple test code
17010 ac_outfile=conftest.$ac_objext
17011 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17013 _lt_compiler_boilerplate=`cat conftest.err`
17014 $RM conftest*
17015
17016 ac_outfile=conftest.$ac_objext
17017 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17019 _lt_linker_boilerplate=`cat conftest.err`
17020 $RM -r conftest*
17021
17022
17023 # Allow CC to be a program name with arguments.
17024 lt_save_CC=$CC
17025 lt_save_CFLAGS=$CFLAGS
17026 lt_save_LD=$LD
17027 lt_save_GCC=$GCC
17028 GCC=$GXX
17029 lt_save_with_gnu_ld=$with_gnu_ld
17030 lt_save_path_LD=$lt_cv_path_LD
17031 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17032 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17033 else
17034 $as_unset lt_cv_prog_gnu_ld
17035 fi
17036 if test -n "${lt_cv_path_LDCXX+set}"; then
17037 lt_cv_path_LD=$lt_cv_path_LDCXX
17038 else
17039 $as_unset lt_cv_path_LD
17040 fi
17041 test -z "${LDCXX+set}" || LD=$LDCXX
17042 CC=${CXX-"c++"}
17043 CFLAGS=$CXXFLAGS
17044 compiler=$CC
17045 compiler_CXX=$CC
17046 func_cc_basename $compiler
17047 cc_basename=$func_cc_basename_result
17048
17049
17050 if test -n "$compiler"; then
17051 # We don't want -fno-exception when compiling C++ code, so set the
17052 # no_builtin_flag separately
17053 if test yes = "$GXX"; then
17054 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17055 else
17056 lt_prog_compiler_no_builtin_flag_CXX=
17057 fi
17058
17059 if test yes = "$GXX"; then
17060 # Set up default GNU C++ configuration
17061
17062
17063
17064 # Check whether --with-gnu-ld was given.
17065 if test "${with_gnu_ld+set}" = set; then :
17066 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
17067 else
17068 with_gnu_ld=no
17069 fi
17070
17071 ac_prog=ld
17072 if test yes = "$GCC"; then
17073 # Check if gcc -print-prog-name=ld gives a path.
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17075 $as_echo_n "checking for ld used by $CC... " >&6; }
17076 case $host in
17077 *-*-mingw*)
17078 # gcc leaves a trailing carriage return, which upsets mingw
17079 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17080 *)
17081 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17082 esac
17083 case $ac_prog in
17084 # Accept absolute paths.
17085 [\\/]* | ?:[\\/]*)
17086 re_direlt='/[^/][^/]*/\.\./'
17087 # Canonicalize the pathname of ld
17088 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17089 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17090 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17091 done
17092 test -z "$LD" && LD=$ac_prog
17093 ;;
17094 "")
17095 # If it fails, then pretend we aren't using GCC.
17096 ac_prog=ld
17097 ;;
17098 *)
17099 # If it is relative, then search for the first ld in PATH.
17100 with_gnu_ld=unknown
17101 ;;
17102 esac
17103 elif test yes = "$with_gnu_ld"; then
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17105 $as_echo_n "checking for GNU ld... " >&6; }
17106 else
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17108 $as_echo_n "checking for non-GNU ld... " >&6; }
17109 fi
17110 if ${lt_cv_path_LD+:} false; then :
17111 $as_echo_n "(cached) " >&6
17112 else
17113 if test -z "$LD"; then
17114 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17115 for ac_dir in $PATH; do
17116 IFS=$lt_save_ifs
17117 test -z "$ac_dir" && ac_dir=.
17118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17119 lt_cv_path_LD=$ac_dir/$ac_prog
17120 # Check to see if the program is GNU ld. I'd rather use --version,
17121 # but apparently some variants of GNU ld only accept -v.
17122 # Break only if it was the GNU/non-GNU ld that we prefer.
17123 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17124 *GNU* | *'with BFD'*)
17125 test no != "$with_gnu_ld" && break
17126 ;;
17127 *)
17128 test yes != "$with_gnu_ld" && break
17129 ;;
17130 esac
17131 fi
17132 done
17133 IFS=$lt_save_ifs
17134 else
17135 lt_cv_path_LD=$LD # Let the user override the test with a path.
17136 fi
17137 fi
17138
17139 LD=$lt_cv_path_LD
17140 if test -n "$LD"; then
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17142 $as_echo "$LD" >&6; }
17143 else
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17145 $as_echo "no" >&6; }
17146 fi
17147 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17149 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17150 if ${lt_cv_prog_gnu_ld+:} false; then :
17151 $as_echo_n "(cached) " >&6
17152 else
17153 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17154 case `$LD -v 2>&1 </dev/null` in
17155 *GNU* | *'with BFD'*)
17156 lt_cv_prog_gnu_ld=yes
17157 ;;
17158 *)
17159 lt_cv_prog_gnu_ld=no
17160 ;;
17161 esac
17162 fi
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17164 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17165 with_gnu_ld=$lt_cv_prog_gnu_ld
17166
17167
17168
17169
17170
17171
17172
17173 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17174 # archiving commands below assume that GNU ld is being used.
17175 if test yes = "$with_gnu_ld"; then
17176 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17177 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17178
17179 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17180 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17181
17182 # If archive_cmds runs LD, not CC, wlarc should be empty
17183 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17184 # investigate it a little bit more. (MM)
17185 wlarc='$wl'
17186
17187 # ancient GNU ld didn't support --whole-archive et. al.
17188 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17189 $GREP 'no-whole-archive' > /dev/null; then
17190 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17191 else
17192 whole_archive_flag_spec_CXX=
17193 fi
17194 else
17195 with_gnu_ld=no
17196 wlarc=
17197
17198 # A generic and very simple default shared library creation
17199 # command for GNU C++ for the case where it uses the native
17200 # linker, instead of GNU ld. If possible, this setting should
17201 # overridden to take advantage of the native linker features on
17202 # the platform it is being used on.
17203 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17204 fi
17205
17206 # Commands to make compiler produce verbose output that lists
17207 # what "hidden" libraries, object files and flags are used when
17208 # linking a shared library.
17209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17210
17211 else
17212 GXX=no
17213 with_gnu_ld=no
17214 wlarc=
17215 fi
17216
17217 # PORTME: fill in a description of your system's C++ link characteristics
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17219 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17220 ld_shlibs_CXX=yes
17221 case $host_os in
17222 aix3*)
17223 # FIXME: insert proper C++ library support
17224 ld_shlibs_CXX=no
17225 ;;
17226 aix[4-9]*)
17227 if test ia64 = "$host_cpu"; then
17228 # On IA64, the linker does run time linking by default, so we don't
17229 # have to do anything special.
17230 aix_use_runtimelinking=no
17231 exp_sym_flag='-Bexport'
17232 no_entry_flag=
17233 else
17234 aix_use_runtimelinking=no
17235
17236 # Test if we are trying to use run time linking or normal
17237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17238 # have runtime linking enabled, and use it for executables.
17239 # For shared libraries, we enable/disable runtime linking
17240 # depending on the kind of the shared library created -
17241 # when "with_aix_soname,aix_use_runtimelinking" is:
17242 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
17243 # "aix,yes" lib.so shared, rtl:yes, for executables
17244 # lib.a static archive
17245 # "both,no" lib.so.V(shr.o) shared, rtl:yes
17246 # lib.a(lib.so.V) shared, rtl:no, for executables
17247 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17248 # lib.a(lib.so.V) shared, rtl:no
17249 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
17250 # lib.a static archive
17251 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17252 for ld_flag in $LDFLAGS; do
17253 case $ld_flag in
17254 *-brtl*)
17255 aix_use_runtimelinking=yes
17256 break
17257 ;;
17258 esac
17259 done
17260 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17261 # With aix-soname=svr4, we create the lib.so.V shared archives only,
17262 # so we don't have lib.a shared libs to link our executables.
17263 # We have to force runtime linking in this case.
17264 aix_use_runtimelinking=yes
17265 LDFLAGS="$LDFLAGS -Wl,-brtl"
17266 fi
17267 ;;
17268 esac
17269
17270 exp_sym_flag='-bexport'
17271 no_entry_flag='-bnoentry'
17272 fi
17273
17274 # When large executables or shared objects are built, AIX ld can
17275 # have problems creating the table of contents. If linking a library
17276 # or program results in "error TOC overflow" add -mminimal-toc to
17277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17279
17280 archive_cmds_CXX=''
17281 hardcode_direct_CXX=yes
17282 hardcode_direct_absolute_CXX=yes
17283 hardcode_libdir_separator_CXX=':'
17284 link_all_deplibs_CXX=yes
17285 file_list_spec_CXX='$wl-f,'
17286 case $with_aix_soname,$aix_use_runtimelinking in
17287 aix,*) ;; # no import file
17288 svr4,* | *,yes) # use import file
17289 # The Import File defines what to hardcode.
17290 hardcode_direct_CXX=no
17291 hardcode_direct_absolute_CXX=no
17292 ;;
17293 esac
17294
17295 if test yes = "$GXX"; then
17296 case $host_os in aix4.[012]|aix4.[012].*)
17297 # We only want to do this on AIX 4.2 and lower, the check
17298 # below for broken collect2 doesn't work under 4.3+
17299 collect2name=`$CC -print-prog-name=collect2`
17300 if test -f "$collect2name" &&
17301 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17302 then
17303 # We have reworked collect2
17304 :
17305 else
17306 # We have old collect2
17307 hardcode_direct_CXX=unsupported
17308 # It fails to find uninstalled libraries when the uninstalled
17309 # path is not listed in the libpath. Setting hardcode_minus_L
17310 # to unsupported forces relinking
17311 hardcode_minus_L_CXX=yes
17312 hardcode_libdir_flag_spec_CXX='-L$libdir'
17313 hardcode_libdir_separator_CXX=
17314 fi
17315 esac
17316 shared_flag='-shared'
17317 if test yes = "$aix_use_runtimelinking"; then
17318 shared_flag=$shared_flag' $wl-G'
17319 fi
17320 # Need to ensure runtime linking is disabled for the traditional
17321 # shared library, or the linker may eventually find shared libraries
17322 # /with/ Import File - we do not want to mix them.
17323 shared_flag_aix='-shared'
17324 shared_flag_svr4='-shared $wl-G'
17325 else
17326 # not using gcc
17327 if test ia64 = "$host_cpu"; then
17328 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17329 # chokes on -Wl,-G. The following line is correct:
17330 shared_flag='-G'
17331 else
17332 if test yes = "$aix_use_runtimelinking"; then
17333 shared_flag='$wl-G'
17334 else
17335 shared_flag='$wl-bM:SRE'
17336 fi
17337 shared_flag_aix='$wl-bM:SRE'
17338 shared_flag_svr4='$wl-G'
17339 fi
17340 fi
17341
17342 export_dynamic_flag_spec_CXX='$wl-bexpall'
17343 # It seems that -bexpall does not export symbols beginning with
17344 # underscore (_), so it is better to generate a list of symbols to
17345 # export.
17346 always_export_symbols_CXX=yes
17347 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17348 # Warning - without using the other runtime loading flags (-brtl),
17349 # -berok will link without error, but may produce a broken library.
17350 # The "-G" linker flag allows undefined symbols.
17351 no_undefined_flag_CXX='-bernotok'
17352 # Determine the default libpath from the value encoded in an empty
17353 # executable.
17354 if test set = "${lt_cv_aix_libpath+set}"; then
17355 aix_libpath=$lt_cv_aix_libpath
17356 else
17357 if ${lt_cv_aix_libpath__CXX+:} false; then :
17358 $as_echo_n "(cached) " >&6
17359 else
17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361 /* end confdefs.h. */
17362
17363 int
17364 main ()
17365 {
17366
17367 ;
17368 return 0;
17369 }
17370 _ACEOF
17371 if ac_fn_cxx_try_link "$LINENO"; then :
17372
17373 lt_aix_libpath_sed='
17374 /Import File Strings/,/^$/ {
17375 /^0/ {
17376 s/^0 *\([^ ]*\) *$/\1/
17377 p
17378 }
17379 }'
17380 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17381 # Check for a 64-bit object if we didn't find anything.
17382 if test -z "$lt_cv_aix_libpath__CXX"; then
17383 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17384 fi
17385 fi
17386 rm -f core conftest.err conftest.$ac_objext \
17387 conftest$ac_exeext conftest.$ac_ext
17388 if test -z "$lt_cv_aix_libpath__CXX"; then
17389 lt_cv_aix_libpath__CXX=/usr/lib:/lib
17390 fi
17391
17392 fi
17393
17394 aix_libpath=$lt_cv_aix_libpath__CXX
17395 fi
17396
17397 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17398
17399 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
17400 else
17401 if test ia64 = "$host_cpu"; then
17402 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
17403 allow_undefined_flag_CXX="-z nodefs"
17404 archive_expsym_cmds_CXX="\$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"
17405 else
17406 # Determine the default libpath from the value encoded in an
17407 # empty executable.
17408 if test set = "${lt_cv_aix_libpath+set}"; then
17409 aix_libpath=$lt_cv_aix_libpath
17410 else
17411 if ${lt_cv_aix_libpath__CXX+:} false; then :
17412 $as_echo_n "(cached) " >&6
17413 else
17414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h. */
17416
17417 int
17418 main ()
17419 {
17420
17421 ;
17422 return 0;
17423 }
17424 _ACEOF
17425 if ac_fn_cxx_try_link "$LINENO"; then :
17426
17427 lt_aix_libpath_sed='
17428 /Import File Strings/,/^$/ {
17429 /^0/ {
17430 s/^0 *\([^ ]*\) *$/\1/
17431 p
17432 }
17433 }'
17434 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17435 # Check for a 64-bit object if we didn't find anything.
17436 if test -z "$lt_cv_aix_libpath__CXX"; then
17437 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17438 fi
17439 fi
17440 rm -f core conftest.err conftest.$ac_objext \
17441 conftest$ac_exeext conftest.$ac_ext
17442 if test -z "$lt_cv_aix_libpath__CXX"; then
17443 lt_cv_aix_libpath__CXX=/usr/lib:/lib
17444 fi
17445
17446 fi
17447
17448 aix_libpath=$lt_cv_aix_libpath__CXX
17449 fi
17450
17451 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17452 # Warning - without using the other run time loading flags,
17453 # -berok will link without error, but may produce a broken library.
17454 no_undefined_flag_CXX=' $wl-bernotok'
17455 allow_undefined_flag_CXX=' $wl-berok'
17456 if test yes = "$with_gnu_ld"; then
17457 # We only use this code for GNU lds that support --whole-archive.
17458 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17459 else
17460 # Exported symbols can be pulled into shared objects from archives
17461 whole_archive_flag_spec_CXX='$convenience'
17462 fi
17463 archive_cmds_need_lc_CXX=yes
17464 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17465 # -brtl affects multiple linker settings, -berok does not and is overridden later
17466 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17467 if test svr4 != "$with_aix_soname"; then
17468 # This is similar to how AIX traditionally builds its shared
17469 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
17470 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
17471 fi
17472 if test aix != "$with_aix_soname"; then
17473 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
17474 else
17475 # used by -dlpreopen to get the symbols
17476 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17477 fi
17478 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
17479 fi
17480 fi
17481 ;;
17482
17483 beos*)
17484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17485 allow_undefined_flag_CXX=unsupported
17486 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17487 # support --undefined. This deserves some investigation. FIXME
17488 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17489 else
17490 ld_shlibs_CXX=no
17491 fi
17492 ;;
17493
17494 chorus*)
17495 case $cc_basename in
17496 *)
17497 # FIXME: insert proper C++ library support
17498 ld_shlibs_CXX=no
17499 ;;
17500 esac
17501 ;;
17502
17503 cygwin* | mingw* | pw32* | cegcc*)
17504 case $GXX,$cc_basename in
17505 ,cl* | no,cl*)
17506 # Native MSVC
17507 # hardcode_libdir_flag_spec is actually meaningless, as there is
17508 # no search path for DLLs.
17509 hardcode_libdir_flag_spec_CXX=' '
17510 allow_undefined_flag_CXX=unsupported
17511 always_export_symbols_CXX=yes
17512 file_list_spec_CXX='@'
17513 # Tell ltmain to make .lib files, not .a files.
17514 libext=lib
17515 # Tell ltmain to make .dll files, not .so files.
17516 shrext_cmds=.dll
17517 # FIXME: Setting linknames here is a bad hack.
17518 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17519 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17520 cp "$export_symbols" "$output_objdir/$soname.def";
17521 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17522 else
17523 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17524 fi~
17525 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17526 linknames='
17527 # The linker will not automatically build a static lib if we build a DLL.
17528 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17529 enable_shared_with_static_runtimes_CXX=yes
17530 # Don't use ranlib
17531 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17532 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17533 lt_tool_outputfile="@TOOL_OUTPUT@"~
17534 case $lt_outputfile in
17535 *.exe|*.EXE) ;;
17536 *)
17537 lt_outputfile=$lt_outputfile.exe
17538 lt_tool_outputfile=$lt_tool_outputfile.exe
17539 ;;
17540 esac~
17541 func_to_tool_file "$lt_outputfile"~
17542 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17543 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17544 $RM "$lt_outputfile.manifest";
17545 fi'
17546 ;;
17547 *)
17548 # g++
17549 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17550 # as there is no search path for DLLs.
17551 hardcode_libdir_flag_spec_CXX='-L$libdir'
17552 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
17553 allow_undefined_flag_CXX=unsupported
17554 always_export_symbols_CXX=no
17555 enable_shared_with_static_runtimes_CXX=yes
17556
17557 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17558 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17559 # If the export-symbols file already is a .def file, use it as
17560 # is; otherwise, prepend EXPORTS...
17561 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17562 cp $export_symbols $output_objdir/$soname.def;
17563 else
17564 echo EXPORTS > $output_objdir/$soname.def;
17565 cat $export_symbols >> $output_objdir/$soname.def;
17566 fi~
17567 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17568 else
17569 ld_shlibs_CXX=no
17570 fi
17571 ;;
17572 esac
17573 ;;
17574 darwin* | rhapsody*)
17575
17576
17577 archive_cmds_need_lc_CXX=no
17578 hardcode_direct_CXX=no
17579 hardcode_automatic_CXX=yes
17580 hardcode_shlibpath_var_CXX=unsupported
17581 if test yes = "$lt_cv_ld_force_load"; then
17582 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17583
17584 else
17585 whole_archive_flag_spec_CXX=''
17586 fi
17587 link_all_deplibs_CXX=yes
17588 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17589 case $cc_basename in
17590 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17591 *) _lt_dar_can_shared=$GCC ;;
17592 esac
17593 if test yes = "$_lt_dar_can_shared"; then
17594 output_verbose_link_cmd=func_echo_all
17595 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17596 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17597 archive_expsym_cmds_CXX="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"
17598 module_expsym_cmds_CXX="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"
17599 if test yes != "$lt_cv_apple_cc_single_mod"; then
17600 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
17601 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
17602 fi
17603
17604 else
17605 ld_shlibs_CXX=no
17606 fi
17607
17608 ;;
17609
17610 os2*)
17611 hardcode_libdir_flag_spec_CXX='-L$libdir'
17612 hardcode_minus_L_CXX=yes
17613 allow_undefined_flag_CXX=unsupported
17614 shrext_cmds=.dll
17615 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17616 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17617 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17618 $ECHO EXPORTS >> $output_objdir/$libname.def~
17619 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17620 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17621 emximp -o $lib $output_objdir/$libname.def'
17622 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17623 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17624 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17625 $ECHO EXPORTS >> $output_objdir/$libname.def~
17626 prefix_cmds="$SED"~
17627 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17628 prefix_cmds="$prefix_cmds -e 1d";
17629 fi~
17630 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17631 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17632 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17633 emximp -o $lib $output_objdir/$libname.def'
17634 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17635 enable_shared_with_static_runtimes_CXX=yes
17636 ;;
17637
17638 dgux*)
17639 case $cc_basename in
17640 ec++*)
17641 # FIXME: insert proper C++ library support
17642 ld_shlibs_CXX=no
17643 ;;
17644 ghcx*)
17645 # Green Hills C++ Compiler
17646 # FIXME: insert proper C++ library support
17647 ld_shlibs_CXX=no
17648 ;;
17649 *)
17650 # FIXME: insert proper C++ library support
17651 ld_shlibs_CXX=no
17652 ;;
17653 esac
17654 ;;
17655
17656 freebsd2.*)
17657 # C++ shared libraries reported to be fairly broken before
17658 # switch to ELF
17659 ld_shlibs_CXX=no
17660 ;;
17661
17662 freebsd-elf*)
17663 archive_cmds_need_lc_CXX=no
17664 ;;
17665
17666 freebsd* | dragonfly*)
17667 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17668 # conventions
17669 ld_shlibs_CXX=yes
17670 ;;
17671
17672 haiku*)
17673 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17674 link_all_deplibs_CXX=yes
17675 ;;
17676
17677 hpux9*)
17678 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17679 hardcode_libdir_separator_CXX=:
17680 export_dynamic_flag_spec_CXX='$wl-E'
17681 hardcode_direct_CXX=yes
17682 hardcode_minus_L_CXX=yes # Not in the search PATH,
17683 # but as the default
17684 # location of the library.
17685
17686 case $cc_basename in
17687 CC*)
17688 # FIXME: insert proper C++ library support
17689 ld_shlibs_CXX=no
17690 ;;
17691 aCC*)
17692 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17693 # Commands to make compiler produce verbose output that lists
17694 # what "hidden" libraries, object files and flags are used when
17695 # linking a shared library.
17696 #
17697 # There doesn't appear to be a way to prevent this compiler from
17698 # explicitly linking system object files so we need to strip them
17699 # from the output so that they don't get included in the library
17700 # dependencies.
17701 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17702 ;;
17703 *)
17704 if test yes = "$GXX"; then
17705 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17706 else
17707 # FIXME: insert proper C++ library support
17708 ld_shlibs_CXX=no
17709 fi
17710 ;;
17711 esac
17712 ;;
17713
17714 hpux10*|hpux11*)
17715 if test no = "$with_gnu_ld"; then
17716 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17717 hardcode_libdir_separator_CXX=:
17718
17719 case $host_cpu in
17720 hppa*64*|ia64*)
17721 ;;
17722 *)
17723 export_dynamic_flag_spec_CXX='$wl-E'
17724 ;;
17725 esac
17726 fi
17727 case $host_cpu in
17728 hppa*64*|ia64*)
17729 hardcode_direct_CXX=no
17730 hardcode_shlibpath_var_CXX=no
17731 ;;
17732 *)
17733 hardcode_direct_CXX=yes
17734 hardcode_direct_absolute_CXX=yes
17735 hardcode_minus_L_CXX=yes # Not in the search PATH,
17736 # but as the default
17737 # location of the library.
17738 ;;
17739 esac
17740
17741 case $cc_basename in
17742 CC*)
17743 # FIXME: insert proper C++ library support
17744 ld_shlibs_CXX=no
17745 ;;
17746 aCC*)
17747 case $host_cpu in
17748 hppa*64*)
17749 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17750 ;;
17751 ia64*)
17752 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17753 ;;
17754 *)
17755 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17756 ;;
17757 esac
17758 # Commands to make compiler produce verbose output that lists
17759 # what "hidden" libraries, object files and flags are used when
17760 # linking a shared library.
17761 #
17762 # There doesn't appear to be a way to prevent this compiler from
17763 # explicitly linking system object files so we need to strip them
17764 # from the output so that they don't get included in the library
17765 # dependencies.
17766 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17767 ;;
17768 *)
17769 if test yes = "$GXX"; then
17770 if test no = "$with_gnu_ld"; then
17771 case $host_cpu in
17772 hppa*64*)
17773 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17774 ;;
17775 ia64*)
17776 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17777 ;;
17778 *)
17779 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17780 ;;
17781 esac
17782 fi
17783 else
17784 # FIXME: insert proper C++ library support
17785 ld_shlibs_CXX=no
17786 fi
17787 ;;
17788 esac
17789 ;;
17790
17791 interix[3-9]*)
17792 hardcode_direct_CXX=no
17793 hardcode_shlibpath_var_CXX=no
17794 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17795 export_dynamic_flag_spec_CXX='$wl-E'
17796 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17797 # Instead, shared libraries are loaded at an image base (0x10000000 by
17798 # default) and relocated if they conflict, which is a slow very memory
17799 # consuming and fragmenting process. To avoid this, we pick a random,
17800 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17801 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17802 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17803 archive_expsym_cmds_CXX='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'
17804 ;;
17805 irix5* | irix6*)
17806 case $cc_basename in
17807 CC*)
17808 # SGI C++
17809 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17810
17811 # Archives containing C++ object files must be created using
17812 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17813 # necessary to make sure instantiated templates are included
17814 # in the archive.
17815 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17816 ;;
17817 *)
17818 if test yes = "$GXX"; then
17819 if test no = "$with_gnu_ld"; then
17820 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
17821 else
17822 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
17823 fi
17824 fi
17825 link_all_deplibs_CXX=yes
17826 ;;
17827 esac
17828 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17829 hardcode_libdir_separator_CXX=:
17830 inherit_rpath_CXX=yes
17831 ;;
17832
17833 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17834 case $cc_basename in
17835 KCC*)
17836 # Kuck and Associates, Inc. (KAI) C++ Compiler
17837
17838 # KCC will only create a shared library if the output file
17839 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17840 # to its proper name (with version) after linking.
17841 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17842 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
17843 # Commands to make compiler produce verbose output that lists
17844 # what "hidden" libraries, object files and flags are used when
17845 # linking a shared library.
17846 #
17847 # There doesn't appear to be a way to prevent this compiler from
17848 # explicitly linking system object files so we need to strip them
17849 # from the output so that they don't get included in the library
17850 # dependencies.
17851 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17852
17853 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17854 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17855
17856 # Archives containing C++ object files must be created using
17857 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17858 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17859 ;;
17860 icpc* | ecpc* )
17861 # Intel C++
17862 with_gnu_ld=yes
17863 # version 8.0 and above of icpc choke on multiply defined symbols
17864 # if we add $predep_objects and $postdep_objects, however 7.1 and
17865 # earlier do not add the objects themselves.
17866 case `$CC -V 2>&1` in
17867 *"Version 7."*)
17868 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17869 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17870 ;;
17871 *) # Version 8.0 or newer
17872 tmp_idyn=
17873 case $host_cpu in
17874 ia64*) tmp_idyn=' -i_dynamic';;
17875 esac
17876 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17877 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17878 ;;
17879 esac
17880 archive_cmds_need_lc_CXX=no
17881 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17882 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17883 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17884 ;;
17885 pgCC* | pgcpp*)
17886 # Portland Group C++ compiler
17887 case `$CC -V` in
17888 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17889 prelink_cmds_CXX='tpldir=Template.dir~
17890 rm -rf $tpldir~
17891 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17892 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17893 old_archive_cmds_CXX='tpldir=Template.dir~
17894 rm -rf $tpldir~
17895 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17896 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17897 $RANLIB $oldlib'
17898 archive_cmds_CXX='tpldir=Template.dir~
17899 rm -rf $tpldir~
17900 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17901 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17902 archive_expsym_cmds_CXX='tpldir=Template.dir~
17903 rm -rf $tpldir~
17904 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17905 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17906 ;;
17907 *) # Version 6 and above use weak symbols
17908 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17909 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17910 ;;
17911 esac
17912
17913 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17914 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17915 whole_archive_flag_spec_CXX='$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'
17916 ;;
17917 cxx*)
17918 # Compaq C++
17919 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17920 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
17921
17922 runpath_var=LD_RUN_PATH
17923 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17924 hardcode_libdir_separator_CXX=:
17925
17926 # Commands to make compiler produce verbose output that lists
17927 # what "hidden" libraries, object files and flags are used when
17928 # linking a shared library.
17929 #
17930 # There doesn't appear to be a way to prevent this compiler from
17931 # explicitly linking system object files so we need to strip them
17932 # from the output so that they don't get included in the library
17933 # dependencies.
17934 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
17935 ;;
17936 xl* | mpixl* | bgxl*)
17937 # IBM XL 8.0 on PPC, with GNU ld
17938 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17939 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17940 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17941 if test yes = "$supports_anon_versioning"; then
17942 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17944 echo "local: *; };" >> $output_objdir/$libname.ver~
17945 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17946 fi
17947 ;;
17948 *)
17949 case `$CC -V 2>&1 | sed 5q` in
17950 *Sun\ C*)
17951 # Sun C++ 5.9
17952 no_undefined_flag_CXX=' -zdefs'
17953 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17954 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
17955 hardcode_libdir_flag_spec_CXX='-R$libdir'
17956 whole_archive_flag_spec_CXX='$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'
17957 compiler_needs_object_CXX=yes
17958
17959 # Not sure whether something based on
17960 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17961 # would be better.
17962 output_verbose_link_cmd='func_echo_all'
17963
17964 # Archives containing C++ object files must be created using
17965 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17966 # necessary to make sure instantiated templates are included
17967 # in the archive.
17968 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17969 ;;
17970 esac
17971 ;;
17972 esac
17973 ;;
17974
17975 lynxos*)
17976 # FIXME: insert proper C++ library support
17977 ld_shlibs_CXX=no
17978 ;;
17979
17980 m88k*)
17981 # FIXME: insert proper C++ library support
17982 ld_shlibs_CXX=no
17983 ;;
17984
17985 mvs*)
17986 case $cc_basename in
17987 cxx*)
17988 # FIXME: insert proper C++ library support
17989 ld_shlibs_CXX=no
17990 ;;
17991 *)
17992 # FIXME: insert proper C++ library support
17993 ld_shlibs_CXX=no
17994 ;;
17995 esac
17996 ;;
17997
17998 netbsd*)
17999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18000 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18001 wlarc=
18002 hardcode_libdir_flag_spec_CXX='-R$libdir'
18003 hardcode_direct_CXX=yes
18004 hardcode_shlibpath_var_CXX=no
18005 fi
18006 # Workaround some broken pre-1.5 toolchains
18007 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18008 ;;
18009
18010 *nto* | *qnx*)
18011 ld_shlibs_CXX=yes
18012 ;;
18013
18014 openbsd* | bitrig*)
18015 if test -f /usr/libexec/ld.so; then
18016 hardcode_direct_CXX=yes
18017 hardcode_shlibpath_var_CXX=no
18018 hardcode_direct_absolute_CXX=yes
18019 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18020 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18021 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
18022 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
18023 export_dynamic_flag_spec_CXX='$wl-E'
18024 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18025 fi
18026 output_verbose_link_cmd=func_echo_all
18027 else
18028 ld_shlibs_CXX=no
18029 fi
18030 ;;
18031
18032 osf3* | osf4* | osf5*)
18033 case $cc_basename in
18034 KCC*)
18035 # Kuck and Associates, Inc. (KAI) C++ Compiler
18036
18037 # KCC will only create a shared library if the output file
18038 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18039 # to its proper name (with version) after linking.
18040 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18041
18042 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18043 hardcode_libdir_separator_CXX=:
18044
18045 # Archives containing C++ object files must be created using
18046 # the KAI C++ compiler.
18047 case $host in
18048 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18049 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18050 esac
18051 ;;
18052 RCC*)
18053 # Rational C++ 2.4.1
18054 # FIXME: insert proper C++ library support
18055 ld_shlibs_CXX=no
18056 ;;
18057 cxx*)
18058 case $host in
18059 osf3*)
18060 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18061 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18062 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18063 ;;
18064 *)
18065 allow_undefined_flag_CXX=' -expect_unresolved \*'
18066 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18067 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18068 echo "-hidden">> $lib.exp~
18069 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
18070 $RM $lib.exp'
18071 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18072 ;;
18073 esac
18074
18075 hardcode_libdir_separator_CXX=:
18076
18077 # Commands to make compiler produce verbose output that lists
18078 # what "hidden" libraries, object files and flags are used when
18079 # linking a shared library.
18080 #
18081 # There doesn't appear to be a way to prevent this compiler from
18082 # explicitly linking system object files so we need to strip them
18083 # from the output so that they don't get included in the library
18084 # dependencies.
18085 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18086 ;;
18087 *)
18088 if test yes,no = "$GXX,$with_gnu_ld"; then
18089 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18090 case $host in
18091 osf3*)
18092 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
18093 ;;
18094 *)
18095 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
18096 ;;
18097 esac
18098
18099 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18100 hardcode_libdir_separator_CXX=:
18101
18102 # Commands to make compiler produce verbose output that lists
18103 # what "hidden" libraries, object files and flags are used when
18104 # linking a shared library.
18105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18106
18107 else
18108 # FIXME: insert proper C++ library support
18109 ld_shlibs_CXX=no
18110 fi
18111 ;;
18112 esac
18113 ;;
18114
18115 psos*)
18116 # FIXME: insert proper C++ library support
18117 ld_shlibs_CXX=no
18118 ;;
18119
18120 sunos4*)
18121 case $cc_basename in
18122 CC*)
18123 # Sun C++ 4.x
18124 # FIXME: insert proper C++ library support
18125 ld_shlibs_CXX=no
18126 ;;
18127 lcc*)
18128 # Lucid
18129 # FIXME: insert proper C++ library support
18130 ld_shlibs_CXX=no
18131 ;;
18132 *)
18133 # FIXME: insert proper C++ library support
18134 ld_shlibs_CXX=no
18135 ;;
18136 esac
18137 ;;
18138
18139 solaris*)
18140 case $cc_basename in
18141 CC* | sunCC*)
18142 # Sun C++ 4.2, 5.x and Centerline C++
18143 archive_cmds_need_lc_CXX=yes
18144 no_undefined_flag_CXX=' -zdefs'
18145 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18146 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18147 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18148
18149 hardcode_libdir_flag_spec_CXX='-R$libdir'
18150 hardcode_shlibpath_var_CXX=no
18151 case $host_os in
18152 solaris2.[0-5] | solaris2.[0-5].*) ;;
18153 *)
18154 # The compiler driver will combine and reorder linker options,
18155 # but understands '-z linker_flag'.
18156 # Supported since Solaris 2.6 (maybe 2.5.1?)
18157 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18158 ;;
18159 esac
18160 link_all_deplibs_CXX=yes
18161
18162 output_verbose_link_cmd='func_echo_all'
18163
18164 # Archives containing C++ object files must be created using
18165 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18166 # necessary to make sure instantiated templates are included
18167 # in the archive.
18168 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18169 ;;
18170 gcx*)
18171 # Green Hills C++ Compiler
18172 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18173
18174 # The C++ compiler must be used to create the archive.
18175 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18176 ;;
18177 *)
18178 # GNU C++ compiler with Solaris linker
18179 if test yes,no = "$GXX,$with_gnu_ld"; then
18180 no_undefined_flag_CXX=' $wl-z ${wl}defs'
18181 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18182 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18183 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18184 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18185
18186 # Commands to make compiler produce verbose output that lists
18187 # what "hidden" libraries, object files and flags are used when
18188 # linking a shared library.
18189 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18190 else
18191 # g++ 2.7 appears to require '-G' NOT '-shared' on this
18192 # platform.
18193 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18194 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18195 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18196
18197 # Commands to make compiler produce verbose output that lists
18198 # what "hidden" libraries, object files and flags are used when
18199 # linking a shared library.
18200 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18201 fi
18202
18203 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
18204 case $host_os in
18205 solaris2.[0-5] | solaris2.[0-5].*) ;;
18206 *)
18207 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18208 ;;
18209 esac
18210 fi
18211 ;;
18212 esac
18213 ;;
18214
18215 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18216 no_undefined_flag_CXX='$wl-z,text'
18217 archive_cmds_need_lc_CXX=no
18218 hardcode_shlibpath_var_CXX=no
18219 runpath_var='LD_RUN_PATH'
18220
18221 case $cc_basename in
18222 CC*)
18223 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18224 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18225 ;;
18226 *)
18227 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18228 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18229 ;;
18230 esac
18231 ;;
18232
18233 sysv5* | sco3.2v5* | sco5v6*)
18234 # Note: We CANNOT use -z defs as we might desire, because we do not
18235 # link with -lc, and that would cause any symbols used from libc to
18236 # always be unresolved, which means just about no library would
18237 # ever link correctly. If we're not using GNU ld we use -z text
18238 # though, which does catch some bad symbols but isn't as heavy-handed
18239 # as -z defs.
18240 no_undefined_flag_CXX='$wl-z,text'
18241 allow_undefined_flag_CXX='$wl-z,nodefs'
18242 archive_cmds_need_lc_CXX=no
18243 hardcode_shlibpath_var_CXX=no
18244 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
18245 hardcode_libdir_separator_CXX=':'
18246 link_all_deplibs_CXX=yes
18247 export_dynamic_flag_spec_CXX='$wl-Bexport'
18248 runpath_var='LD_RUN_PATH'
18249
18250 case $cc_basename in
18251 CC*)
18252 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18253 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18254 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18255 '"$old_archive_cmds_CXX"
18256 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18257 '"$reload_cmds_CXX"
18258 ;;
18259 *)
18260 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18261 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18262 ;;
18263 esac
18264 ;;
18265
18266 tandem*)
18267 case $cc_basename in
18268 NCC*)
18269 # NonStop-UX NCC 3.20
18270 # FIXME: insert proper C++ library support
18271 ld_shlibs_CXX=no
18272 ;;
18273 *)
18274 # FIXME: insert proper C++ library support
18275 ld_shlibs_CXX=no
18276 ;;
18277 esac
18278 ;;
18279
18280 vxworks*)
18281 # FIXME: insert proper C++ library support
18282 ld_shlibs_CXX=no
18283 ;;
18284
18285 *)
18286 # FIXME: insert proper C++ library support
18287 ld_shlibs_CXX=no
18288 ;;
18289 esac
18290
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18292 $as_echo "$ld_shlibs_CXX" >&6; }
18293 test no = "$ld_shlibs_CXX" && can_build_shared=no
18294
18295 GCC_CXX=$GXX
18296 LD_CXX=$LD
18297
18298 ## CAVEAT EMPTOR:
18299 ## There is no encapsulation within the following macros, do not change
18300 ## the running order or otherwise move them around unless you know exactly
18301 ## what you are doing...
18302 # Dependencies to place before and after the object being linked:
18303 predep_objects_CXX=
18304 postdep_objects_CXX=
18305 predeps_CXX=
18306 postdeps_CXX=
18307 compiler_lib_search_path_CXX=
18308
18309 cat > conftest.$ac_ext <<_LT_EOF
18310 class Foo
18311 {
18312 public:
18313 Foo (void) { a = 0; }
18314 private:
18315 int a;
18316 };
18317 _LT_EOF
18318
18319
18320 _lt_libdeps_save_CFLAGS=$CFLAGS
18321 case "$CC $CFLAGS " in #(
18322 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18323 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18324 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
18325 esac
18326
18327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18328 (eval $ac_compile) 2>&5
18329 ac_status=$?
18330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18331 test $ac_status = 0; }; then
18332 # Parse the compiler output and extract the necessary
18333 # objects, libraries and library flags.
18334
18335 # Sentinel used to keep track of whether or not we are before
18336 # the conftest object file.
18337 pre_test_object_deps_done=no
18338
18339 for p in `eval "$output_verbose_link_cmd"`; do
18340 case $prev$p in
18341
18342 -L* | -R* | -l*)
18343 # Some compilers place space between "-{L,R}" and the path.
18344 # Remove the space.
18345 if test x-L = "$p" ||
18346 test x-R = "$p"; then
18347 prev=$p
18348 continue
18349 fi
18350
18351 # Expand the sysroot to ease extracting the directories later.
18352 if test -z "$prev"; then
18353 case $p in
18354 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18355 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18356 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18357 esac
18358 fi
18359 case $p in
18360 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18361 esac
18362 if test no = "$pre_test_object_deps_done"; then
18363 case $prev in
18364 -L | -R)
18365 # Internal compiler library paths should come after those
18366 # provided the user. The postdeps already come after the
18367 # user supplied libs so there is no need to process them.
18368 if test -z "$compiler_lib_search_path_CXX"; then
18369 compiler_lib_search_path_CXX=$prev$p
18370 else
18371 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
18372 fi
18373 ;;
18374 # The "-l" case would never come before the object being
18375 # linked, so don't bother handling this case.
18376 esac
18377 else
18378 if test -z "$postdeps_CXX"; then
18379 postdeps_CXX=$prev$p
18380 else
18381 postdeps_CXX="${postdeps_CXX} $prev$p"
18382 fi
18383 fi
18384 prev=
18385 ;;
18386
18387 *.lto.$objext) ;; # Ignore GCC LTO objects
18388 *.$objext)
18389 # This assumes that the test object file only shows up
18390 # once in the compiler output.
18391 if test "$p" = "conftest.$objext"; then
18392 pre_test_object_deps_done=yes
18393 continue
18394 fi
18395
18396 if test no = "$pre_test_object_deps_done"; then
18397 if test -z "$predep_objects_CXX"; then
18398 predep_objects_CXX=$p
18399 else
18400 predep_objects_CXX="$predep_objects_CXX $p"
18401 fi
18402 else
18403 if test -z "$postdep_objects_CXX"; then
18404 postdep_objects_CXX=$p
18405 else
18406 postdep_objects_CXX="$postdep_objects_CXX $p"
18407 fi
18408 fi
18409 ;;
18410
18411 *) ;; # Ignore the rest.
18412
18413 esac
18414 done
18415
18416 # Clean up.
18417 rm -f a.out a.exe
18418 else
18419 echo "libtool.m4: error: problem compiling CXX test program"
18420 fi
18421
18422 $RM -f confest.$objext
18423 CFLAGS=$_lt_libdeps_save_CFLAGS
18424
18425 # PORTME: override above test on systems where it is broken
18426 case $host_os in
18427 interix[3-9]*)
18428 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18429 # hack all around it, let's just trust "g++" to DTRT.
18430 predep_objects_CXX=
18431 postdep_objects_CXX=
18432 postdeps_CXX=
18433 ;;
18434 esac
18435
18436
18437 case " $postdeps_CXX " in
18438 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18439 esac
18440 compiler_lib_search_dirs_CXX=
18441 if test -n "${compiler_lib_search_path_CXX}"; then
18442 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
18443 fi
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475 lt_prog_compiler_wl_CXX=
18476 lt_prog_compiler_pic_CXX=
18477 lt_prog_compiler_static_CXX=
18478
18479
18480 # C++ specific cases for pic, static, wl, etc.
18481 if test yes = "$GXX"; then
18482 lt_prog_compiler_wl_CXX='-Wl,'
18483 lt_prog_compiler_static_CXX='-static'
18484
18485 case $host_os in
18486 aix*)
18487 # All AIX code is PIC.
18488 if test ia64 = "$host_cpu"; then
18489 # AIX 5 now supports IA64 processor
18490 lt_prog_compiler_static_CXX='-Bstatic'
18491 fi
18492 lt_prog_compiler_pic_CXX='-fPIC'
18493 ;;
18494
18495 amigaos*)
18496 case $host_cpu in
18497 powerpc)
18498 # see comment about AmigaOS4 .so support
18499 lt_prog_compiler_pic_CXX='-fPIC'
18500 ;;
18501 m68k)
18502 # FIXME: we need at least 68020 code to build shared libraries, but
18503 # adding the '-m68020' flag to GCC prevents building anything better,
18504 # like '-m68040'.
18505 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18506 ;;
18507 esac
18508 ;;
18509
18510 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18511 # PIC is the default for these OSes.
18512 ;;
18513 mingw* | cygwin* | os2* | pw32* | cegcc*)
18514 # This hack is so that the source file can tell whether it is being
18515 # built for inclusion in a dll (and should export symbols for example).
18516 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18517 # (--disable-auto-import) libraries
18518 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18519 case $host_os in
18520 os2*)
18521 lt_prog_compiler_static_CXX='$wl-static'
18522 ;;
18523 esac
18524 ;;
18525 darwin* | rhapsody*)
18526 # PIC is the default on this platform
18527 # Common symbols not allowed in MH_DYLIB files
18528 lt_prog_compiler_pic_CXX='-fno-common'
18529 ;;
18530 *djgpp*)
18531 # DJGPP does not support shared libraries at all
18532 lt_prog_compiler_pic_CXX=
18533 ;;
18534 haiku*)
18535 # PIC is the default for Haiku.
18536 # The "-static" flag exists, but is broken.
18537 lt_prog_compiler_static_CXX=
18538 ;;
18539 interix[3-9]*)
18540 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18541 # Instead, we relocate shared libraries at runtime.
18542 ;;
18543 sysv4*MP*)
18544 if test -d /usr/nec; then
18545 lt_prog_compiler_pic_CXX=-Kconform_pic
18546 fi
18547 ;;
18548 hpux*)
18549 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18550 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18551 # sets the default TLS model and affects inlining.
18552 case $host_cpu in
18553 hppa*64*)
18554 ;;
18555 *)
18556 lt_prog_compiler_pic_CXX='-fPIC'
18557 ;;
18558 esac
18559 ;;
18560 *qnx* | *nto*)
18561 # QNX uses GNU C++, but need to define -shared option too, otherwise
18562 # it will coredump.
18563 lt_prog_compiler_pic_CXX='-fPIC -shared'
18564 ;;
18565 *)
18566 lt_prog_compiler_pic_CXX='-fPIC'
18567 ;;
18568 esac
18569 else
18570 case $host_os in
18571 aix[4-9]*)
18572 # All AIX code is PIC.
18573 if test ia64 = "$host_cpu"; then
18574 # AIX 5 now supports IA64 processor
18575 lt_prog_compiler_static_CXX='-Bstatic'
18576 else
18577 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18578 fi
18579 ;;
18580 chorus*)
18581 case $cc_basename in
18582 cxch68*)
18583 # Green Hills C++ Compiler
18584 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
18585 ;;
18586 esac
18587 ;;
18588 mingw* | cygwin* | os2* | pw32* | cegcc*)
18589 # This hack is so that the source file can tell whether it is being
18590 # built for inclusion in a dll (and should export symbols for example).
18591 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18592 ;;
18593 dgux*)
18594 case $cc_basename in
18595 ec++*)
18596 lt_prog_compiler_pic_CXX='-KPIC'
18597 ;;
18598 ghcx*)
18599 # Green Hills C++ Compiler
18600 lt_prog_compiler_pic_CXX='-pic'
18601 ;;
18602 *)
18603 ;;
18604 esac
18605 ;;
18606 freebsd* | dragonfly*)
18607 # FreeBSD uses GNU C++
18608 ;;
18609 hpux9* | hpux10* | hpux11*)
18610 case $cc_basename in
18611 CC*)
18612 lt_prog_compiler_wl_CXX='-Wl,'
18613 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18614 if test ia64 != "$host_cpu"; then
18615 lt_prog_compiler_pic_CXX='+Z'
18616 fi
18617 ;;
18618 aCC*)
18619 lt_prog_compiler_wl_CXX='-Wl,'
18620 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18621 case $host_cpu in
18622 hppa*64*|ia64*)
18623 # +Z the default
18624 ;;
18625 *)
18626 lt_prog_compiler_pic_CXX='+Z'
18627 ;;
18628 esac
18629 ;;
18630 *)
18631 ;;
18632 esac
18633 ;;
18634 interix*)
18635 # This is c89, which is MS Visual C++ (no shared libs)
18636 # Anyone wants to do a port?
18637 ;;
18638 irix5* | irix6* | nonstopux*)
18639 case $cc_basename in
18640 CC*)
18641 lt_prog_compiler_wl_CXX='-Wl,'
18642 lt_prog_compiler_static_CXX='-non_shared'
18643 # CC pic flag -KPIC is the default.
18644 ;;
18645 *)
18646 ;;
18647 esac
18648 ;;
18649 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18650 case $cc_basename in
18651 KCC*)
18652 # KAI C++ Compiler
18653 lt_prog_compiler_wl_CXX='--backend -Wl,'
18654 lt_prog_compiler_pic_CXX='-fPIC'
18655 ;;
18656 ecpc* )
18657 # old Intel C++ for x86_64, which still supported -KPIC.
18658 lt_prog_compiler_wl_CXX='-Wl,'
18659 lt_prog_compiler_pic_CXX='-KPIC'
18660 lt_prog_compiler_static_CXX='-static'
18661 ;;
18662 icpc* )
18663 # Intel C++, used to be incompatible with GCC.
18664 # ICC 10 doesn't accept -KPIC any more.
18665 lt_prog_compiler_wl_CXX='-Wl,'
18666 lt_prog_compiler_pic_CXX='-fPIC'
18667 lt_prog_compiler_static_CXX='-static'
18668 ;;
18669 pgCC* | pgcpp*)
18670 # Portland Group C++ compiler
18671 lt_prog_compiler_wl_CXX='-Wl,'
18672 lt_prog_compiler_pic_CXX='-fpic'
18673 lt_prog_compiler_static_CXX='-Bstatic'
18674 ;;
18675 cxx*)
18676 # Compaq C++
18677 # Make sure the PIC flag is empty. It appears that all Alpha
18678 # Linux and Compaq Tru64 Unix objects are PIC.
18679 lt_prog_compiler_pic_CXX=
18680 lt_prog_compiler_static_CXX='-non_shared'
18681 ;;
18682 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18683 # IBM XL 8.0, 9.0 on PPC and BlueGene
18684 lt_prog_compiler_wl_CXX='-Wl,'
18685 lt_prog_compiler_pic_CXX='-qpic'
18686 lt_prog_compiler_static_CXX='-qstaticlink'
18687 ;;
18688 *)
18689 case `$CC -V 2>&1 | sed 5q` in
18690 *Sun\ C*)
18691 # Sun C++ 5.9
18692 lt_prog_compiler_pic_CXX='-KPIC'
18693 lt_prog_compiler_static_CXX='-Bstatic'
18694 lt_prog_compiler_wl_CXX='-Qoption ld '
18695 ;;
18696 esac
18697 ;;
18698 esac
18699 ;;
18700 lynxos*)
18701 ;;
18702 m88k*)
18703 ;;
18704 mvs*)
18705 case $cc_basename in
18706 cxx*)
18707 lt_prog_compiler_pic_CXX='-W c,exportall'
18708 ;;
18709 *)
18710 ;;
18711 esac
18712 ;;
18713 netbsd* | netbsdelf*-gnu)
18714 ;;
18715 *qnx* | *nto*)
18716 # QNX uses GNU C++, but need to define -shared option too, otherwise
18717 # it will coredump.
18718 lt_prog_compiler_pic_CXX='-fPIC -shared'
18719 ;;
18720 osf3* | osf4* | osf5*)
18721 case $cc_basename in
18722 KCC*)
18723 lt_prog_compiler_wl_CXX='--backend -Wl,'
18724 ;;
18725 RCC*)
18726 # Rational C++ 2.4.1
18727 lt_prog_compiler_pic_CXX='-pic'
18728 ;;
18729 cxx*)
18730 # Digital/Compaq C++
18731 lt_prog_compiler_wl_CXX='-Wl,'
18732 # Make sure the PIC flag is empty. It appears that all Alpha
18733 # Linux and Compaq Tru64 Unix objects are PIC.
18734 lt_prog_compiler_pic_CXX=
18735 lt_prog_compiler_static_CXX='-non_shared'
18736 ;;
18737 *)
18738 ;;
18739 esac
18740 ;;
18741 psos*)
18742 ;;
18743 solaris*)
18744 case $cc_basename in
18745 CC* | sunCC*)
18746 # Sun C++ 4.2, 5.x and Centerline C++
18747 lt_prog_compiler_pic_CXX='-KPIC'
18748 lt_prog_compiler_static_CXX='-Bstatic'
18749 lt_prog_compiler_wl_CXX='-Qoption ld '
18750 ;;
18751 gcx*)
18752 # Green Hills C++ Compiler
18753 lt_prog_compiler_pic_CXX='-PIC'
18754 ;;
18755 *)
18756 ;;
18757 esac
18758 ;;
18759 sunos4*)
18760 case $cc_basename in
18761 CC*)
18762 # Sun C++ 4.x
18763 lt_prog_compiler_pic_CXX='-pic'
18764 lt_prog_compiler_static_CXX='-Bstatic'
18765 ;;
18766 lcc*)
18767 # Lucid
18768 lt_prog_compiler_pic_CXX='-pic'
18769 ;;
18770 *)
18771 ;;
18772 esac
18773 ;;
18774 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18775 case $cc_basename in
18776 CC*)
18777 lt_prog_compiler_wl_CXX='-Wl,'
18778 lt_prog_compiler_pic_CXX='-KPIC'
18779 lt_prog_compiler_static_CXX='-Bstatic'
18780 ;;
18781 esac
18782 ;;
18783 tandem*)
18784 case $cc_basename in
18785 NCC*)
18786 # NonStop-UX NCC 3.20
18787 lt_prog_compiler_pic_CXX='-KPIC'
18788 ;;
18789 *)
18790 ;;
18791 esac
18792 ;;
18793 vxworks*)
18794 ;;
18795 *)
18796 lt_prog_compiler_can_build_shared_CXX=no
18797 ;;
18798 esac
18799 fi
18800
18801 case $host_os in
18802 # For platforms that do not support PIC, -DPIC is meaningless:
18803 *djgpp*)
18804 lt_prog_compiler_pic_CXX=
18805 ;;
18806 *)
18807 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18808 ;;
18809 esac
18810
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18812 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18813 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18814 $as_echo_n "(cached) " >&6
18815 else
18816 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18817 fi
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18819 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18820 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18821
18822 #
18823 # Check to make sure the PIC flag actually works.
18824 #
18825 if test -n "$lt_prog_compiler_pic_CXX"; then
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18827 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18828 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18829 $as_echo_n "(cached) " >&6
18830 else
18831 lt_cv_prog_compiler_pic_works_CXX=no
18832 ac_outfile=conftest.$ac_objext
18833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18834 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18835 # Insert the option either (1) after the last *FLAGS variable, or
18836 # (2) before a word containing "conftest.", or (3) at the end.
18837 # Note that $ac_compile itself does not contain backslashes and begins
18838 # with a dollar sign (not a hyphen), so the echo should work correctly.
18839 # The option is referenced via a variable to avoid confusing sed.
18840 lt_compile=`echo "$ac_compile" | $SED \
18841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18843 -e 's:$: $lt_compiler_flag:'`
18844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18845 (eval "$lt_compile" 2>conftest.err)
18846 ac_status=$?
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 if (exit $ac_status) && test -s "$ac_outfile"; then
18850 # The compiler can only warn and ignore the option if not recognized
18851 # So say no if there are warnings other than the usual output.
18852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18855 lt_cv_prog_compiler_pic_works_CXX=yes
18856 fi
18857 fi
18858 $RM conftest*
18859
18860 fi
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18862 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18863
18864 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18865 case $lt_prog_compiler_pic_CXX in
18866 "" | " "*) ;;
18867 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18868 esac
18869 else
18870 lt_prog_compiler_pic_CXX=
18871 lt_prog_compiler_can_build_shared_CXX=no
18872 fi
18873
18874 fi
18875
18876
18877
18878
18879
18880 #
18881 # Check to make sure the static flag actually works.
18882 #
18883 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18885 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18886 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18887 $as_echo_n "(cached) " >&6
18888 else
18889 lt_cv_prog_compiler_static_works_CXX=no
18890 save_LDFLAGS=$LDFLAGS
18891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18894 # The linker can only warn and ignore the option if not recognized
18895 # So say no if there are warnings
18896 if test -s conftest.err; then
18897 # Append any errors to the config.log.
18898 cat conftest.err 1>&5
18899 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18901 if diff conftest.exp conftest.er2 >/dev/null; then
18902 lt_cv_prog_compiler_static_works_CXX=yes
18903 fi
18904 else
18905 lt_cv_prog_compiler_static_works_CXX=yes
18906 fi
18907 fi
18908 $RM -r conftest*
18909 LDFLAGS=$save_LDFLAGS
18910
18911 fi
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18913 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18914
18915 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18916 :
18917 else
18918 lt_prog_compiler_static_CXX=
18919 fi
18920
18921
18922
18923
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18926 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18927 $as_echo_n "(cached) " >&6
18928 else
18929 lt_cv_prog_compiler_c_o_CXX=no
18930 $RM -r conftest 2>/dev/null
18931 mkdir conftest
18932 cd conftest
18933 mkdir out
18934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18935
18936 lt_compiler_flag="-o out/conftest2.$ac_objext"
18937 # Insert the option either (1) after the last *FLAGS variable, or
18938 # (2) before a word containing "conftest.", or (3) at the end.
18939 # Note that $ac_compile itself does not contain backslashes and begins
18940 # with a dollar sign (not a hyphen), so the echo should work correctly.
18941 lt_compile=`echo "$ac_compile" | $SED \
18942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18944 -e 's:$: $lt_compiler_flag:'`
18945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18946 (eval "$lt_compile" 2>out/conftest.err)
18947 ac_status=$?
18948 cat out/conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18951 then
18952 # The compiler can only warn and ignore the option if not recognized
18953 # So say no if there are warnings
18954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18957 lt_cv_prog_compiler_c_o_CXX=yes
18958 fi
18959 fi
18960 chmod u+w . 2>&5
18961 $RM conftest*
18962 # SGI C++ compiler will create directory out/ii_files/ for
18963 # template instantiation
18964 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18965 $RM out/* && rmdir out
18966 cd ..
18967 $RM -r conftest
18968 $RM conftest*
18969
18970 fi
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18972 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18973
18974
18975
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18977 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18978 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18979 $as_echo_n "(cached) " >&6
18980 else
18981 lt_cv_prog_compiler_c_o_CXX=no
18982 $RM -r conftest 2>/dev/null
18983 mkdir conftest
18984 cd conftest
18985 mkdir out
18986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18987
18988 lt_compiler_flag="-o out/conftest2.$ac_objext"
18989 # Insert the option either (1) after the last *FLAGS variable, or
18990 # (2) before a word containing "conftest.", or (3) at the end.
18991 # Note that $ac_compile itself does not contain backslashes and begins
18992 # with a dollar sign (not a hyphen), so the echo should work correctly.
18993 lt_compile=`echo "$ac_compile" | $SED \
18994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18996 -e 's:$: $lt_compiler_flag:'`
18997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18998 (eval "$lt_compile" 2>out/conftest.err)
18999 ac_status=$?
19000 cat out/conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19003 then
19004 # The compiler can only warn and ignore the option if not recognized
19005 # So say no if there are warnings
19006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19009 lt_cv_prog_compiler_c_o_CXX=yes
19010 fi
19011 fi
19012 chmod u+w . 2>&5
19013 $RM conftest*
19014 # SGI C++ compiler will create directory out/ii_files/ for
19015 # template instantiation
19016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19017 $RM out/* && rmdir out
19018 cd ..
19019 $RM -r conftest
19020 $RM conftest*
19021
19022 fi
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19024 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19025
19026
19027
19028
19029 hard_links=nottested
19030 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
19031 # do not overwrite the value of need_locks provided by the user
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19033 $as_echo_n "checking if we can lock with hard links... " >&6; }
19034 hard_links=yes
19035 $RM conftest*
19036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19037 touch conftest.a
19038 ln conftest.a conftest.b 2>&5 || hard_links=no
19039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19041 $as_echo "$hard_links" >&6; }
19042 if test no = "$hard_links"; then
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19044 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19045 need_locks=warn
19046 fi
19047 else
19048 need_locks=no
19049 fi
19050
19051
19052
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19054 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19055
19056 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19057 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19058 case $host_os in
19059 aix[4-9]*)
19060 # If we're using GNU nm, then we don't want the "-C" option.
19061 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
19062 # Without the "-l" option, or with the "-B" option, AIX nm treats
19063 # weak defined symbols like other global defined symbols, whereas
19064 # GNU nm marks them as "W".
19065 # While the 'weak' keyword is ignored in the Export File, we need
19066 # it in the Import File for the 'aix-soname' feature, so we have
19067 # to replace the "-B" option with "-P" for AIX nm.
19068 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19069 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
19070 else
19071 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
19072 fi
19073 ;;
19074 pw32*)
19075 export_symbols_cmds_CXX=$ltdll_cmds
19076 ;;
19077 cygwin* | mingw* | cegcc*)
19078 case $cc_basename in
19079 cl*)
19080 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19081 ;;
19082 *)
19083 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
19084 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19085 ;;
19086 esac
19087 ;;
19088 linux* | k*bsd*-gnu | gnu*)
19089 link_all_deplibs_CXX=no
19090 ;;
19091 *)
19092 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19093 ;;
19094 esac
19095
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19097 $as_echo "$ld_shlibs_CXX" >&6; }
19098 test no = "$ld_shlibs_CXX" && can_build_shared=no
19099
19100 with_gnu_ld_CXX=$with_gnu_ld
19101
19102
19103
19104
19105
19106
19107 #
19108 # Do we need to explicitly link libc?
19109 #
19110 case "x$archive_cmds_need_lc_CXX" in
19111 x|xyes)
19112 # Assume -lc should be added
19113 archive_cmds_need_lc_CXX=yes
19114
19115 if test yes,yes = "$GCC,$enable_shared"; then
19116 case $archive_cmds_CXX in
19117 *'~'*)
19118 # FIXME: we may have to deal with multi-command sequences.
19119 ;;
19120 '$CC '*)
19121 # Test whether the compiler implicitly links with -lc since on some
19122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19123 # to ld, don't add -lc before -lgcc.
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19125 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19126 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
19127 $as_echo_n "(cached) " >&6
19128 else
19129 $RM conftest*
19130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19131
19132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19133 (eval $ac_compile) 2>&5
19134 ac_status=$?
19135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19136 test $ac_status = 0; } 2>conftest.err; then
19137 soname=conftest
19138 lib=conftest
19139 libobjs=conftest.$ac_objext
19140 deplibs=
19141 wl=$lt_prog_compiler_wl_CXX
19142 pic_flag=$lt_prog_compiler_pic_CXX
19143 compiler_flags=-v
19144 linker_flags=-v
19145 verstring=
19146 output_objdir=.
19147 libname=conftest
19148 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19149 allow_undefined_flag_CXX=
19150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19151 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19152 ac_status=$?
19153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19154 test $ac_status = 0; }
19155 then
19156 lt_cv_archive_cmds_need_lc_CXX=no
19157 else
19158 lt_cv_archive_cmds_need_lc_CXX=yes
19159 fi
19160 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19161 else
19162 cat conftest.err 1>&5
19163 fi
19164 $RM conftest*
19165
19166 fi
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19168 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19169 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19170 ;;
19171 esac
19172 fi
19173 ;;
19174 esac
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19238 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19239
19240 library_names_spec=
19241 libname_spec='lib$name'
19242 soname_spec=
19243 shrext_cmds=.so
19244 postinstall_cmds=
19245 postuninstall_cmds=
19246 finish_cmds=
19247 finish_eval=
19248 shlibpath_var=
19249 shlibpath_overrides_runpath=unknown
19250 version_type=none
19251 dynamic_linker="$host_os ld.so"
19252 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19253 need_lib_prefix=unknown
19254 hardcode_into_libs=no
19255
19256 # when you set need_version to no, make sure it does not cause -set_version
19257 # flags to be left without arguments
19258 need_version=unknown
19259
19260
19261
19262 case $host_os in
19263 aix3*)
19264 version_type=linux # correct to gnu/linux during the next big refactor
19265 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19266 shlibpath_var=LIBPATH
19267
19268 # AIX 3 has no versioning support, so we append a major version to the name.
19269 soname_spec='$libname$release$shared_ext$major'
19270 ;;
19271
19272 aix[4-9]*)
19273 version_type=linux # correct to gnu/linux during the next big refactor
19274 need_lib_prefix=no
19275 need_version=no
19276 hardcode_into_libs=yes
19277 if test ia64 = "$host_cpu"; then
19278 # AIX 5 supports IA64
19279 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19280 shlibpath_var=LD_LIBRARY_PATH
19281 else
19282 # With GCC up to 2.95.x, collect2 would create an import file
19283 # for dependence libraries. The import file would start with
19284 # the line '#! .'. This would cause the generated library to
19285 # depend on '.', always an invalid library. This was fixed in
19286 # development snapshots of GCC prior to 3.0.
19287 case $host_os in
19288 aix4 | aix4.[01] | aix4.[01].*)
19289 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19290 echo ' yes '
19291 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19292 :
19293 else
19294 can_build_shared=no
19295 fi
19296 ;;
19297 esac
19298 # Using Import Files as archive members, it is possible to support
19299 # filename-based versioning of shared library archives on AIX. While
19300 # this would work for both with and without runtime linking, it will
19301 # prevent static linking of such archives. So we do filename-based
19302 # shared library versioning with .so extension only, which is used
19303 # when both runtime linking and shared linking is enabled.
19304 # Unfortunately, runtime linking may impact performance, so we do
19305 # not want this to be the default eventually. Also, we use the
19306 # versioned .so libs for executables only if there is the -brtl
19307 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19308 # To allow for filename-based versioning support, we need to create
19309 # libNAME.so.V as an archive file, containing:
19310 # *) an Import File, referring to the versioned filename of the
19311 # archive as well as the shared archive member, telling the
19312 # bitwidth (32 or 64) of that shared object, and providing the
19313 # list of exported symbols of that shared object, eventually
19314 # decorated with the 'weak' keyword
19315 # *) the shared object with the F_LOADONLY flag set, to really avoid
19316 # it being seen by the linker.
19317 # At run time we better use the real file rather than another symlink,
19318 # but for link time we create the symlink libNAME.so -> libNAME.so.V
19319
19320 case $with_aix_soname,$aix_use_runtimelinking in
19321 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19322 # soname into executable. Probably we can add versioning support to
19323 # collect2, so additional links can be useful in future.
19324 aix,yes) # traditional libtool
19325 dynamic_linker='AIX unversionable lib.so'
19326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19327 # instead of lib<name>.a to let people know that these are not
19328 # typical AIX shared libraries.
19329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19330 ;;
19331 aix,no) # traditional AIX only
19332 dynamic_linker='AIX lib.a(lib.so.V)'
19333 # We preserve .a as extension for shared libraries through AIX4.2
19334 # and later when we are not doing run time linking.
19335 library_names_spec='$libname$release.a $libname.a'
19336 soname_spec='$libname$release$shared_ext$major'
19337 ;;
19338 svr4,*) # full svr4 only
19339 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19340 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19341 # We do not specify a path in Import Files, so LIBPATH fires.
19342 shlibpath_overrides_runpath=yes
19343 ;;
19344 *,yes) # both, prefer svr4
19345 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19346 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19347 # unpreferred sharedlib libNAME.a needs extra handling
19348 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
19349 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
19350 # We do not specify a path in Import Files, so LIBPATH fires.
19351 shlibpath_overrides_runpath=yes
19352 ;;
19353 *,no) # both, prefer aix
19354 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19355 library_names_spec='$libname$release.a $libname.a'
19356 soname_spec='$libname$release$shared_ext$major'
19357 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19358 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
19359 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
19360 ;;
19361 esac
19362 shlibpath_var=LIBPATH
19363 fi
19364 ;;
19365
19366 amigaos*)
19367 case $host_cpu in
19368 powerpc)
19369 # Since July 2007 AmigaOS4 officially supports .so libraries.
19370 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19372 ;;
19373 m68k)
19374 library_names_spec='$libname.ixlibrary $libname.a'
19375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19376 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19377 ;;
19378 esac
19379 ;;
19380
19381 beos*)
19382 library_names_spec='$libname$shared_ext'
19383 dynamic_linker="$host_os ld.so"
19384 shlibpath_var=LIBRARY_PATH
19385 ;;
19386
19387 bsdi[45]*)
19388 version_type=linux # correct to gnu/linux during the next big refactor
19389 need_version=no
19390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19391 soname_spec='$libname$release$shared_ext$major'
19392 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19393 shlibpath_var=LD_LIBRARY_PATH
19394 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19395 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19396 # the default ld.so.conf also contains /usr/contrib/lib and
19397 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19398 # libtool to hard-code these into programs
19399 ;;
19400
19401 cygwin* | mingw* | pw32* | cegcc*)
19402 version_type=windows
19403 shrext_cmds=.dll
19404 need_version=no
19405 need_lib_prefix=no
19406
19407 case $GCC,$cc_basename in
19408 yes,*)
19409 # gcc
19410 library_names_spec='$libname.dll.a'
19411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19412 postinstall_cmds='base_file=`basename \$file`~
19413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19414 dldir=$destdir/`dirname \$dlpath`~
19415 test -d \$dldir || mkdir -p \$dldir~
19416 $install_prog $dir/$dlname \$dldir/$dlname~
19417 chmod a+x \$dldir/$dlname~
19418 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19419 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19420 fi'
19421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19422 dlpath=$dir/\$dldll~
19423 $RM \$dlpath'
19424 shlibpath_overrides_runpath=yes
19425
19426 case $host_os in
19427 cygwin*)
19428 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19429 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19430
19431 ;;
19432 mingw* | cegcc*)
19433 # MinGW DLLs use traditional 'lib' prefix
19434 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19435 ;;
19436 pw32*)
19437 # pw32 DLLs use 'pw' prefix rather than 'lib'
19438 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19439 ;;
19440 esac
19441 dynamic_linker='Win32 ld.exe'
19442 ;;
19443
19444 *,cl*)
19445 # Native MSVC
19446 libname_spec='$name'
19447 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19448 library_names_spec='$libname.dll.lib'
19449
19450 case $build_os in
19451 mingw*)
19452 sys_lib_search_path_spec=
19453 lt_save_ifs=$IFS
19454 IFS=';'
19455 for lt_path in $LIB
19456 do
19457 IFS=$lt_save_ifs
19458 # Let DOS variable expansion print the short 8.3 style file name.
19459 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19460 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19461 done
19462 IFS=$lt_save_ifs
19463 # Convert to MSYS style.
19464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19465 ;;
19466 cygwin*)
19467 # Convert to unix form, then to dos form, then back to unix form
19468 # but this time dos style (no spaces!) so that the unix form looks
19469 # like /cygdrive/c/PROGRA~1:/cygdr...
19470 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19471 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19472 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19473 ;;
19474 *)
19475 sys_lib_search_path_spec=$LIB
19476 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19477 # It is most probably a Windows format PATH.
19478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19479 else
19480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19481 fi
19482 # FIXME: find the short name or the path components, as spaces are
19483 # common. (e.g. "Program Files" -> "PROGRA~1")
19484 ;;
19485 esac
19486
19487 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19488 postinstall_cmds='base_file=`basename \$file`~
19489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19490 dldir=$destdir/`dirname \$dlpath`~
19491 test -d \$dldir || mkdir -p \$dldir~
19492 $install_prog $dir/$dlname \$dldir/$dlname'
19493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19494 dlpath=$dir/\$dldll~
19495 $RM \$dlpath'
19496 shlibpath_overrides_runpath=yes
19497 dynamic_linker='Win32 link.exe'
19498 ;;
19499
19500 *)
19501 # Assume MSVC wrapper
19502 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19503 dynamic_linker='Win32 ld.exe'
19504 ;;
19505 esac
19506 # FIXME: first we should search . and the directory the executable is in
19507 shlibpath_var=PATH
19508 ;;
19509
19510 darwin* | rhapsody*)
19511 dynamic_linker="$host_os dyld"
19512 version_type=darwin
19513 need_lib_prefix=no
19514 need_version=no
19515 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19516 soname_spec='$libname$release$major$shared_ext'
19517 shlibpath_overrides_runpath=yes
19518 shlibpath_var=DYLD_LIBRARY_PATH
19519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19520
19521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19522 ;;
19523
19524 dgux*)
19525 version_type=linux # correct to gnu/linux during the next big refactor
19526 need_lib_prefix=no
19527 need_version=no
19528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19529 soname_spec='$libname$release$shared_ext$major'
19530 shlibpath_var=LD_LIBRARY_PATH
19531 ;;
19532
19533 freebsd* | dragonfly*)
19534 # DragonFly does not have aout. When/if they implement a new
19535 # versioning mechanism, adjust this.
19536 if test -x /usr/bin/objformat; then
19537 objformat=`/usr/bin/objformat`
19538 else
19539 case $host_os in
19540 freebsd[23].*) objformat=aout ;;
19541 *) objformat=elf ;;
19542 esac
19543 fi
19544 version_type=freebsd-$objformat
19545 case $version_type in
19546 freebsd-elf*)
19547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19548 soname_spec='$libname$release$shared_ext$major'
19549 need_version=no
19550 need_lib_prefix=no
19551 ;;
19552 freebsd-*)
19553 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19554 need_version=yes
19555 ;;
19556 esac
19557 shlibpath_var=LD_LIBRARY_PATH
19558 case $host_os in
19559 freebsd2.*)
19560 shlibpath_overrides_runpath=yes
19561 ;;
19562 freebsd3.[01]* | freebsdelf3.[01]*)
19563 shlibpath_overrides_runpath=yes
19564 hardcode_into_libs=yes
19565 ;;
19566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19568 shlibpath_overrides_runpath=no
19569 hardcode_into_libs=yes
19570 ;;
19571 *) # from 4.6 on, and DragonFly
19572 shlibpath_overrides_runpath=yes
19573 hardcode_into_libs=yes
19574 ;;
19575 esac
19576 ;;
19577
19578 haiku*)
19579 version_type=linux # correct to gnu/linux during the next big refactor
19580 need_lib_prefix=no
19581 need_version=no
19582 dynamic_linker="$host_os runtime_loader"
19583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19584 soname_spec='$libname$release$shared_ext$major'
19585 shlibpath_var=LIBRARY_PATH
19586 shlibpath_overrides_runpath=no
19587 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19588 hardcode_into_libs=yes
19589 ;;
19590
19591 hpux9* | hpux10* | hpux11*)
19592 # Give a soname corresponding to the major version so that dld.sl refuses to
19593 # link against other versions.
19594 version_type=sunos
19595 need_lib_prefix=no
19596 need_version=no
19597 case $host_cpu in
19598 ia64*)
19599 shrext_cmds='.so'
19600 hardcode_into_libs=yes
19601 dynamic_linker="$host_os dld.so"
19602 shlibpath_var=LD_LIBRARY_PATH
19603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19605 soname_spec='$libname$release$shared_ext$major'
19606 if test 32 = "$HPUX_IA64_MODE"; then
19607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19608 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19609 else
19610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19611 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19612 fi
19613 ;;
19614 hppa*64*)
19615 shrext_cmds='.sl'
19616 hardcode_into_libs=yes
19617 dynamic_linker="$host_os dld.sl"
19618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19621 soname_spec='$libname$release$shared_ext$major'
19622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19624 ;;
19625 *)
19626 shrext_cmds='.sl'
19627 dynamic_linker="$host_os dld.sl"
19628 shlibpath_var=SHLIB_PATH
19629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19631 soname_spec='$libname$release$shared_ext$major'
19632 ;;
19633 esac
19634 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19635 postinstall_cmds='chmod 555 $lib'
19636 # or fails outright, so override atomically:
19637 install_override_mode=555
19638 ;;
19639
19640 interix[3-9]*)
19641 version_type=linux # correct to gnu/linux during the next big refactor
19642 need_lib_prefix=no
19643 need_version=no
19644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19645 soname_spec='$libname$release$shared_ext$major'
19646 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19647 shlibpath_var=LD_LIBRARY_PATH
19648 shlibpath_overrides_runpath=no
19649 hardcode_into_libs=yes
19650 ;;
19651
19652 irix5* | irix6* | nonstopux*)
19653 case $host_os in
19654 nonstopux*) version_type=nonstopux ;;
19655 *)
19656 if test yes = "$lt_cv_prog_gnu_ld"; then
19657 version_type=linux # correct to gnu/linux during the next big refactor
19658 else
19659 version_type=irix
19660 fi ;;
19661 esac
19662 need_lib_prefix=no
19663 need_version=no
19664 soname_spec='$libname$release$shared_ext$major'
19665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19666 case $host_os in
19667 irix5* | nonstopux*)
19668 libsuff= shlibsuff=
19669 ;;
19670 *)
19671 case $LD in # libtool.m4 will add one of these switches to LD
19672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19673 libsuff= shlibsuff= libmagic=32-bit;;
19674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19675 libsuff=32 shlibsuff=N32 libmagic=N32;;
19676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19677 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19678 *) libsuff= shlibsuff= libmagic=never-match;;
19679 esac
19680 ;;
19681 esac
19682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19683 shlibpath_overrides_runpath=no
19684 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19685 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19686 hardcode_into_libs=yes
19687 ;;
19688
19689 # No shared lib support for Linux oldld, aout, or coff.
19690 linux*oldld* | linux*aout* | linux*coff*)
19691 dynamic_linker=no
19692 ;;
19693
19694 linux*android*)
19695 version_type=none # Android doesn't support versioned libraries.
19696 need_lib_prefix=no
19697 need_version=no
19698 library_names_spec='$libname$release$shared_ext'
19699 soname_spec='$libname$release$shared_ext'
19700 finish_cmds=
19701 shlibpath_var=LD_LIBRARY_PATH
19702 shlibpath_overrides_runpath=yes
19703
19704 # This implies no fast_install, which is unacceptable.
19705 # Some rework will be needed to allow for fast_install
19706 # before this can be enabled.
19707 hardcode_into_libs=yes
19708
19709 dynamic_linker='Android linker'
19710 # Don't embed -rpath directories since the linker doesn't support them.
19711 hardcode_libdir_flag_spec_CXX='-L$libdir'
19712 ;;
19713
19714 # This must be glibc/ELF.
19715 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19716 version_type=linux # correct to gnu/linux during the next big refactor
19717 need_lib_prefix=no
19718 need_version=no
19719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19720 soname_spec='$libname$release$shared_ext$major'
19721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19722 shlibpath_var=LD_LIBRARY_PATH
19723 shlibpath_overrides_runpath=no
19724
19725 # Some binutils ld are patched to set DT_RUNPATH
19726 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19727 $as_echo_n "(cached) " >&6
19728 else
19729 lt_cv_shlibpath_overrides_runpath=no
19730 save_LDFLAGS=$LDFLAGS
19731 save_libdir=$libdir
19732 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19733 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19735 /* end confdefs.h. */
19736
19737 int
19738 main ()
19739 {
19740
19741 ;
19742 return 0;
19743 }
19744 _ACEOF
19745 if ac_fn_cxx_try_link "$LINENO"; then :
19746 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19747 lt_cv_shlibpath_overrides_runpath=yes
19748 fi
19749 fi
19750 rm -f core conftest.err conftest.$ac_objext \
19751 conftest$ac_exeext conftest.$ac_ext
19752 LDFLAGS=$save_LDFLAGS
19753 libdir=$save_libdir
19754
19755 fi
19756
19757 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19758
19759 # This implies no fast_install, which is unacceptable.
19760 # Some rework will be needed to allow for fast_install
19761 # before this can be enabled.
19762 hardcode_into_libs=yes
19763
19764 # Ideally, we could use ldconfig to report *all* directores which are
19765 # searched for libraries, however this is still not possible. Aside from not
19766 # being certain /sbin/ldconfig is available, command
19767 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19768 # even though it is searched at run-time. Try to do the best guess by
19769 # appending ld.so.conf contents (and includes) to the search path.
19770 if test -f /etc/ld.so.conf; then
19771 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' ' '`
19772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19773 fi
19774
19775 # We used to test for /lib/ld.so.1 and disable shared libraries on
19776 # powerpc, because MkLinux only supported shared libraries with the
19777 # GNU dynamic linker. Since this was broken with cross compilers,
19778 # most powerpc-linux boxes support dynamic linking these days and
19779 # people can always --disable-shared, the test was removed, and we
19780 # assume the GNU/Linux dynamic linker is in use.
19781 dynamic_linker='GNU/Linux ld.so'
19782 ;;
19783
19784 netbsdelf*-gnu)
19785 version_type=linux
19786 need_lib_prefix=no
19787 need_version=no
19788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19789 soname_spec='${libname}${release}${shared_ext}$major'
19790 shlibpath_var=LD_LIBRARY_PATH
19791 shlibpath_overrides_runpath=no
19792 hardcode_into_libs=yes
19793 dynamic_linker='NetBSD ld.elf_so'
19794 ;;
19795
19796 netbsd*)
19797 version_type=sunos
19798 need_lib_prefix=no
19799 need_version=no
19800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19801 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19803 dynamic_linker='NetBSD (a.out) ld.so'
19804 else
19805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19806 soname_spec='$libname$release$shared_ext$major'
19807 dynamic_linker='NetBSD ld.elf_so'
19808 fi
19809 shlibpath_var=LD_LIBRARY_PATH
19810 shlibpath_overrides_runpath=yes
19811 hardcode_into_libs=yes
19812 ;;
19813
19814 newsos6)
19815 version_type=linux # correct to gnu/linux during the next big refactor
19816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19817 shlibpath_var=LD_LIBRARY_PATH
19818 shlibpath_overrides_runpath=yes
19819 ;;
19820
19821 *nto* | *qnx*)
19822 version_type=qnx
19823 need_lib_prefix=no
19824 need_version=no
19825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19826 soname_spec='$libname$release$shared_ext$major'
19827 shlibpath_var=LD_LIBRARY_PATH
19828 shlibpath_overrides_runpath=no
19829 hardcode_into_libs=yes
19830 dynamic_linker='ldqnx.so'
19831 ;;
19832
19833 openbsd* | bitrig*)
19834 version_type=sunos
19835 sys_lib_dlsearch_path_spec=/usr/lib
19836 need_lib_prefix=no
19837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19838 need_version=no
19839 else
19840 need_version=yes
19841 fi
19842 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19844 shlibpath_var=LD_LIBRARY_PATH
19845 shlibpath_overrides_runpath=yes
19846 ;;
19847
19848 os2*)
19849 libname_spec='$name'
19850 version_type=windows
19851 shrext_cmds=.dll
19852 need_version=no
19853 need_lib_prefix=no
19854 # OS/2 can only load a DLL with a base name of 8 characters or less.
19855 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19856 v=$($ECHO $release$versuffix | tr -d .-);
19857 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19858 $ECHO $n$v`$shared_ext'
19859 library_names_spec='${libname}_dll.$libext'
19860 dynamic_linker='OS/2 ld.exe'
19861 shlibpath_var=BEGINLIBPATH
19862 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19864 postinstall_cmds='base_file=`basename \$file`~
19865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19866 dldir=$destdir/`dirname \$dlpath`~
19867 test -d \$dldir || mkdir -p \$dldir~
19868 $install_prog $dir/$dlname \$dldir/$dlname~
19869 chmod a+x \$dldir/$dlname~
19870 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19871 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19872 fi'
19873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19874 dlpath=$dir/\$dldll~
19875 $RM \$dlpath'
19876 ;;
19877
19878 osf3* | osf4* | osf5*)
19879 version_type=osf
19880 need_lib_prefix=no
19881 need_version=no
19882 soname_spec='$libname$release$shared_ext$major'
19883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19884 shlibpath_var=LD_LIBRARY_PATH
19885 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19887 ;;
19888
19889 rdos*)
19890 dynamic_linker=no
19891 ;;
19892
19893 solaris*)
19894 version_type=linux # correct to gnu/linux during the next big refactor
19895 need_lib_prefix=no
19896 need_version=no
19897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19898 soname_spec='$libname$release$shared_ext$major'
19899 shlibpath_var=LD_LIBRARY_PATH
19900 shlibpath_overrides_runpath=yes
19901 hardcode_into_libs=yes
19902 # ldd complains unless libraries are executable
19903 postinstall_cmds='chmod +x $lib'
19904 ;;
19905
19906 sunos4*)
19907 version_type=sunos
19908 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19909 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19910 shlibpath_var=LD_LIBRARY_PATH
19911 shlibpath_overrides_runpath=yes
19912 if test yes = "$with_gnu_ld"; then
19913 need_lib_prefix=no
19914 fi
19915 need_version=yes
19916 ;;
19917
19918 sysv4 | sysv4.3*)
19919 version_type=linux # correct to gnu/linux during the next big refactor
19920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19921 soname_spec='$libname$release$shared_ext$major'
19922 shlibpath_var=LD_LIBRARY_PATH
19923 case $host_vendor in
19924 sni)
19925 shlibpath_overrides_runpath=no
19926 need_lib_prefix=no
19927 runpath_var=LD_RUN_PATH
19928 ;;
19929 siemens)
19930 need_lib_prefix=no
19931 ;;
19932 motorola)
19933 need_lib_prefix=no
19934 need_version=no
19935 shlibpath_overrides_runpath=no
19936 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19937 ;;
19938 esac
19939 ;;
19940
19941 sysv4*MP*)
19942 if test -d /usr/nec; then
19943 version_type=linux # correct to gnu/linux during the next big refactor
19944 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19945 soname_spec='$libname$shared_ext.$major'
19946 shlibpath_var=LD_LIBRARY_PATH
19947 fi
19948 ;;
19949
19950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19951 version_type=sco
19952 need_lib_prefix=no
19953 need_version=no
19954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19955 soname_spec='$libname$release$shared_ext$major'
19956 shlibpath_var=LD_LIBRARY_PATH
19957 shlibpath_overrides_runpath=yes
19958 hardcode_into_libs=yes
19959 if test yes = "$with_gnu_ld"; then
19960 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19961 else
19962 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19963 case $host_os in
19964 sco3.2v5*)
19965 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19966 ;;
19967 esac
19968 fi
19969 sys_lib_dlsearch_path_spec='/usr/lib'
19970 ;;
19971
19972 tpf*)
19973 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19974 version_type=linux # correct to gnu/linux during the next big refactor
19975 need_lib_prefix=no
19976 need_version=no
19977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19978 shlibpath_var=LD_LIBRARY_PATH
19979 shlibpath_overrides_runpath=no
19980 hardcode_into_libs=yes
19981 ;;
19982
19983 uts4*)
19984 version_type=linux # correct to gnu/linux during the next big refactor
19985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19986 soname_spec='$libname$release$shared_ext$major'
19987 shlibpath_var=LD_LIBRARY_PATH
19988 ;;
19989
19990 *)
19991 dynamic_linker=no
19992 ;;
19993 esac
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19995 $as_echo "$dynamic_linker" >&6; }
19996 test no = "$dynamic_linker" && can_build_shared=no
19997
19998 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19999 if test yes = "$GCC"; then
20000 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20001 fi
20002
20003 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20004 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20005 fi
20006
20007 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20008 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20009 fi
20010
20011 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20012 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20013
20014 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20015 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20016
20017 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20018 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20060 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20061 hardcode_action_CXX=
20062 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20063 test -n "$runpath_var_CXX" ||
20064 test yes = "$hardcode_automatic_CXX"; then
20065
20066 # We can hardcode non-existent directories.
20067 if test no != "$hardcode_direct_CXX" &&
20068 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20069 # have to relink, otherwise we might link with an installed library
20070 # when we should be linking with a yet-to-be-installed one
20071 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20072 test no != "$hardcode_minus_L_CXX"; then
20073 # Linking always hardcodes the temporary library directory.
20074 hardcode_action_CXX=relink
20075 else
20076 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20077 hardcode_action_CXX=immediate
20078 fi
20079 else
20080 # We cannot hardcode anything, or else we can only hardcode existing
20081 # directories.
20082 hardcode_action_CXX=unsupported
20083 fi
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20085 $as_echo "$hardcode_action_CXX" >&6; }
20086
20087 if test relink = "$hardcode_action_CXX" ||
20088 test yes = "$inherit_rpath_CXX"; then
20089 # Fast installation is not supported
20090 enable_fast_install=no
20091 elif test yes = "$shlibpath_overrides_runpath" ||
20092 test no = "$enable_shared"; then
20093 # Fast installation is not necessary
20094 enable_fast_install=needless
20095 fi
20096
20097
20098
20099
20100
20101
20102
20103 fi # test -n "$compiler"
20104
20105 CC=$lt_save_CC
20106 CFLAGS=$lt_save_CFLAGS
20107 LDCXX=$LD
20108 LD=$lt_save_LD
20109 GCC=$lt_save_GCC
20110 with_gnu_ld=$lt_save_with_gnu_ld
20111 lt_cv_path_LDCXX=$lt_cv_path_LD
20112 lt_cv_path_LD=$lt_save_path_LD
20113 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20114 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20115 fi # test yes != "$_lt_caught_CXX_error"
20116
20117 ac_ext=c
20118 ac_cpp='$CPP $CPPFLAGS'
20119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20122
20123
20124
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11" >&5
20126 $as_echo_n "checking whether $CXX supports C++11... " >&6; }
20127 if ${dpkg_cv_cxx11+:} false; then :
20128 $as_echo_n "(cached) " >&6
20129 else
20130
20131
20132 ac_ext=cpp
20133 ac_cpp='$CXXCPP $CPPFLAGS'
20134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20137
20138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20139 /* end confdefs.h. */
20140
20141
20142
20143 int
20144 main ()
20145 {
20146
20147 // Null pointer keyword.
20148 void *ptr = nullptr;
20149
20150 ;
20151 return 0;
20152 }
20153
20154 _ACEOF
20155 if ac_fn_cxx_try_compile "$LINENO"; then :
20156 dpkg_cv_cxx11=yes
20157 else
20158 dpkg_cv_cxx11=no
20159 fi
20160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20161 ac_ext=c
20162 ac_cpp='$CPP $CPPFLAGS'
20163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20166
20167
20168 fi
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxx11" >&5
20170 $as_echo "$dpkg_cv_cxx11" >&6; }
20171 if test "x$dpkg_cv_cxx11" != "xyes"; then :
20172
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to accept C++11" >&5
20174 $as_echo_n "checking for $CXX option to accept C++11... " >&6; }
20175 if ${dpkg_cv_cxx11_arg+:} false; then :
20176 $as_echo_n "(cached) " >&6
20177 else
20178
20179 dpkg_cv_cxx11_arg=none
20180 dpkg_save_CXX="$CXX"
20181 for arg in "-std=gnu++11" "-std=c++11"; do
20182 CXX="$dpkg_save_CXX $arg"
20183
20184 ac_ext=cpp
20185 ac_cpp='$CXXCPP $CPPFLAGS'
20186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20189
20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20192
20193
20194
20195 int
20196 main ()
20197 {
20198
20199 // Null pointer keyword.
20200 void *ptr = nullptr;
20201
20202 ;
20203 return 0;
20204 }
20205
20206 _ACEOF
20207 if ac_fn_cxx_try_compile "$LINENO"; then :
20208 dpkg_arg_worked=yes
20209 else
20210 dpkg_arg_worked=no
20211 fi
20212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20213 ac_ext=c
20214 ac_cpp='$CPP $CPPFLAGS'
20215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20218
20219 CXX="$dpkg_save_CXX"
20220
20221 if test "x$dpkg_arg_worked" = "xyes"; then :
20222
20223 dpkg_cv_cxx11_arg="$arg"; break
20224
20225 fi
20226 done
20227
20228 fi
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxx11_arg" >&5
20230 $as_echo "$dpkg_cv_cxx11_arg" >&6; }
20231 if test "x$dpkg_cv_cxx11_arg" != "xnone"; then :
20232
20233 CXX="$CXX $dpkg_cv_cxx11_arg"
20234 dpkg_cv_cxx11=yes
20235
20236 fi
20237
20238 fi
20239 if test "x$dpkg_cv_cxx11" = "xyes"; then :
20240
20241
20242 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
20243
20244
20245 fi
20246
20247
20248 for ac_prog in gpatch patch
20249 do
20250 # Extract the first word of "$ac_prog", so it can be a program name with args.
20251 set dummy $ac_prog; ac_word=$2
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20253 $as_echo_n "checking for $ac_word... " >&6; }
20254 if ${ac_cv_prog_PATCH+:} false; then :
20255 $as_echo_n "(cached) " >&6
20256 else
20257 if test -n "$PATCH"; then
20258 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
20259 else
20260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20261 for as_dir in $PATH
20262 do
20263 IFS=$as_save_IFS
20264 test -z "$as_dir" && as_dir=.
20265 for ac_exec_ext in '' $ac_executable_extensions; do
20266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20267 ac_cv_prog_PATCH="$ac_prog"
20268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20269 break 2
20270 fi
20271 done
20272 done
20273 IFS=$as_save_IFS
20274
20275 fi
20276 fi
20277 PATCH=$ac_cv_prog_PATCH
20278 if test -n "$PATCH"; then
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
20280 $as_echo "$PATCH" >&6; }
20281 else
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20283 $as_echo "no" >&6; }
20284 fi
20285
20286
20287 test -n "$PATCH" && break
20288 done
20289 test -n "$PATCH" || PATCH="patch"
20290
20291 if ! $PATCH --version 2>/dev/null | grep -q '^GNU patch'; then :
20292
20293 as_fn_error $? "cannot find a GNU patch program" "$LINENO" 5
20294
20295 fi
20296
20297 cat >>confdefs.h <<_ACEOF
20298 #define PATCH "$PATCH"
20299 _ACEOF
20300
20301
20302 for ac_prog in doxygen
20303 do
20304 # Extract the first word of "$ac_prog", so it can be a program name with args.
20305 set dummy $ac_prog; ac_word=$2
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20307 $as_echo_n "checking for $ac_word... " >&6; }
20308 if ${ac_cv_prog_DOXYGEN+:} false; then :
20309 $as_echo_n "(cached) " >&6
20310 else
20311 if test -n "$DOXYGEN"; then
20312 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
20313 else
20314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20315 for as_dir in $PATH
20316 do
20317 IFS=$as_save_IFS
20318 test -z "$as_dir" && as_dir=.
20319 for ac_exec_ext in '' $ac_executable_extensions; do
20320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20321 ac_cv_prog_DOXYGEN="$ac_prog"
20322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20323 break 2
20324 fi
20325 done
20326 done
20327 IFS=$as_save_IFS
20328
20329 fi
20330 fi
20331 DOXYGEN=$ac_cv_prog_DOXYGEN
20332 if test -n "$DOXYGEN"; then
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
20334 $as_echo "$DOXYGEN" >&6; }
20335 else
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20337 $as_echo "no" >&6; }
20338 fi
20339
20340
20341 test -n "$DOXYGEN" && break
20342 done
20343
20344 # Extract the first word of "dot", so it can be a program name with args.
20345 set dummy dot; ac_word=$2
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20347 $as_echo_n "checking for $ac_word... " >&6; }
20348 if ${ac_cv_prog_HAVE_DOT+:} false; then :
20349 $as_echo_n "(cached) " >&6
20350 else
20351 if test -n "$HAVE_DOT"; then
20352 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
20353 else
20354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20355 for as_dir in $PATH
20356 do
20357 IFS=$as_save_IFS
20358 test -z "$as_dir" && as_dir=.
20359 for ac_exec_ext in '' $ac_executable_extensions; do
20360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20361 ac_cv_prog_HAVE_DOT="YES"
20362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20363 break 2
20364 fi
20365 done
20366 done
20367 IFS=$as_save_IFS
20368
20369 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
20370 fi
20371 fi
20372 HAVE_DOT=$ac_cv_prog_HAVE_DOT
20373 if test -n "$HAVE_DOT"; then
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
20375 $as_echo "$HAVE_DOT" >&6; }
20376 else
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20378 $as_echo "no" >&6; }
20379 fi
20380
20381
20382
20383
20384 for ac_prog in po4a
20385 do
20386 # Extract the first word of "$ac_prog", so it can be a program name with args.
20387 set dummy $ac_prog; ac_word=$2
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20389 $as_echo_n "checking for $ac_word... " >&6; }
20390 if ${ac_cv_prog_PO4A+:} false; then :
20391 $as_echo_n "(cached) " >&6
20392 else
20393 if test -n "$PO4A"; then
20394 ac_cv_prog_PO4A="$PO4A" # Let the user override the test.
20395 else
20396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20397 for as_dir in $PATH
20398 do
20399 IFS=$as_save_IFS
20400 test -z "$as_dir" && as_dir=.
20401 for ac_exec_ext in '' $ac_executable_extensions; do
20402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20403 ac_cv_prog_PO4A="$ac_prog"
20404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20405 break 2
20406 fi
20407 done
20408 done
20409 IFS=$as_save_IFS
20410
20411 fi
20412 fi
20413 PO4A=$ac_cv_prog_PO4A
20414 if test -n "$PO4A"; then
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5
20416 $as_echo "$PO4A" >&6; }
20417 else
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20419 $as_echo "no" >&6; }
20420 fi
20421
20422
20423 test -n "$PO4A" && break
20424 done
20425
20426 if test "$USE_NLS" = "yes" && test -n "$PO4A"; then :
20427
20428 USE_PO4A=yes
20429
20430 else
20431
20432 USE_PO4A=no
20433
20434 fi
20435
20436
20437
20438
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.14.2" >&5
20440 $as_echo_n "checking for perl >= 5.14.2... " >&6; }
20441 if ${ac_cv_path_PERL+:} false; then :
20442 $as_echo_n "(cached) " >&6
20443 else
20444
20445 if test -z "$PERL"; then
20446 ac_path_PERL_found=false
20447 # Loop through the user's path and test for each of PROGNAME-LIST
20448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20449 for as_dir in $PATH
20450 do
20451 IFS=$as_save_IFS
20452 test -z "$as_dir" && as_dir=.
20453 for ac_prog in perl; do
20454 for ac_exec_ext in '' $ac_executable_extensions; do
20455 ac_path_PERL="$as_dir/$ac_prog$ac_exec_ext"
20456 as_fn_executable_p "$ac_path_PERL" || continue
20457
20458 perlcheck=$(test -x $ac_path_PERL && \
20459 $ac_path_PERL -MConfig -Mversion -e \
20460 'my $r = qv("v$Config{version}") >= qv("5.14.2");
20461 print "yes" if $r')
20462 if test "x$perlcheck" = "xyes"; then :
20463
20464 ac_cv_path_PERL=$ac_path_PERL ac_path_PERL_found=:
20465
20466 fi
20467
20468 $ac_path_PERL_found && break 3
20469 done
20470 done
20471 done
20472 IFS=$as_save_IFS
20473 if test -z "$ac_cv_path_PERL"; then
20474
20475 as_fn_error $? "cannot find perl >= 5.14.2" "$LINENO" 5
20476
20477 fi
20478 else
20479 ac_cv_path_PERL=$PERL
20480 fi
20481
20482
20483 fi
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
20485 $as_echo "$ac_cv_path_PERL" >&6; }
20486 PERL=$ac_cv_path_PERL
20487
20488 # Let the user override the variable.
20489 if test -z "$PERL_LIBDIR"; then :
20490
20491 PERL_LIBDIR=$($PERL -MConfig -e \
20492 'my $r = $Config{vendorlibexp};
20493 $r =~ s/$Config{vendorprefixexp}/\$(prefix)/;
20494 print $r')
20495
20496 fi
20497
20498
20499 for ac_prog in pod2man
20500 do
20501 # Extract the first word of "$ac_prog", so it can be a program name with args.
20502 set dummy $ac_prog; ac_word=$2
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20504 $as_echo_n "checking for $ac_word... " >&6; }
20505 if ${ac_cv_prog_POD2MAN+:} false; then :
20506 $as_echo_n "(cached) " >&6
20507 else
20508 if test -n "$POD2MAN"; then
20509 ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test.
20510 else
20511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20512 for as_dir in $PATH
20513 do
20514 IFS=$as_save_IFS
20515 test -z "$as_dir" && as_dir=.
20516 for ac_exec_ext in '' $ac_executable_extensions; do
20517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20518 ac_cv_prog_POD2MAN="$ac_prog"
20519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20520 break 2
20521 fi
20522 done
20523 done
20524 IFS=$as_save_IFS
20525
20526 fi
20527 fi
20528 POD2MAN=$ac_cv_prog_POD2MAN
20529 if test -n "$POD2MAN"; then
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
20531 $as_echo "$POD2MAN" >&6; }
20532 else
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20534 $as_echo "no" >&6; }
20535 fi
20536
20537
20538 test -n "$POD2MAN" && break
20539 done
20540
20541 if test "x$POD2MAN" != "x"; then
20542 BUILD_POD_DOC_TRUE=
20543 BUILD_POD_DOC_FALSE='#'
20544 else
20545 BUILD_POD_DOC_TRUE='#'
20546 BUILD_POD_DOC_FALSE=
20547 fi
20548
20549
20550
20551 # Check whether --enable-coverage was given.
20552 if test "${enable_coverage+set}" = set; then :
20553 enableval=$enable_coverage;
20554 else
20555 enable_coverage=no
20556 fi
20557
20558 if test x$enable_coverage = xyes; then
20559 COVERAGE_ENABLED_TRUE=
20560 COVERAGE_ENABLED_FALSE='#'
20561 else
20562 COVERAGE_ENABLED_TRUE='#'
20563 COVERAGE_ENABLED_FALSE=
20564 fi
20565
20566
20567 if test "x$enable_coverage" = "xyes"; then :
20568
20569 if test "x$GCC" = "xno"; then :
20570
20571 as_fn_error $? "not compiling with gcc, which is required for C coverage support" "$LINENO" 5
20572
20573 fi
20574
20575 for ac_prog in gcov
20576 do
20577 # Extract the first word of "$ac_prog", so it can be a program name with args.
20578 set dummy $ac_prog; ac_word=$2
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20580 $as_echo_n "checking for $ac_word... " >&6; }
20581 if ${ac_cv_prog_GCOV+:} false; then :
20582 $as_echo_n "(cached) " >&6
20583 else
20584 if test -n "$GCOV"; then
20585 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
20586 else
20587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20588 for as_dir in $PATH
20589 do
20590 IFS=$as_save_IFS
20591 test -z "$as_dir" && as_dir=.
20592 for ac_exec_ext in '' $ac_executable_extensions; do
20593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20594 ac_cv_prog_GCOV="$ac_prog"
20595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20596 break 2
20597 fi
20598 done
20599 done
20600 IFS=$as_save_IFS
20601
20602 fi
20603 fi
20604 GCOV=$ac_cv_prog_GCOV
20605 if test -n "$GCOV"; then
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
20607 $as_echo "$GCOV" >&6; }
20608 else
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20610 $as_echo "no" >&6; }
20611 fi
20612
20613
20614 test -n "$GCOV" && break
20615 done
20616
20617 if test -z "$GCOV"; then :
20618
20619 as_fn_error $? "missing gcov, which is required for C coverage support" "$LINENO" 5
20620
20621 fi
20622
20623 for ac_prog in lcov
20624 do
20625 # Extract the first word of "$ac_prog", so it can be a program name with args.
20626 set dummy $ac_prog; ac_word=$2
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20628 $as_echo_n "checking for $ac_word... " >&6; }
20629 if ${ac_cv_prog_LCOV+:} false; then :
20630 $as_echo_n "(cached) " >&6
20631 else
20632 if test -n "$LCOV"; then
20633 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
20634 else
20635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20636 for as_dir in $PATH
20637 do
20638 IFS=$as_save_IFS
20639 test -z "$as_dir" && as_dir=.
20640 for ac_exec_ext in '' $ac_executable_extensions; do
20641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20642 ac_cv_prog_LCOV="$ac_prog"
20643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20644 break 2
20645 fi
20646 done
20647 done
20648 IFS=$as_save_IFS
20649
20650 fi
20651 fi
20652 LCOV=$ac_cv_prog_LCOV
20653 if test -n "$LCOV"; then
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
20655 $as_echo "$LCOV" >&6; }
20656 else
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20658 $as_echo "no" >&6; }
20659 fi
20660
20661
20662 test -n "$LCOV" && break
20663 done
20664
20665 if test -z "$LCOV"; then :
20666
20667 as_fn_error $? "missing lcov, which is required for C coverage support" "$LINENO" 5
20668
20669 fi
20670
20671 for ac_prog in genhtml
20672 do
20673 # Extract the first word of "$ac_prog", so it can be a program name with args.
20674 set dummy $ac_prog; ac_word=$2
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20676 $as_echo_n "checking for $ac_word... " >&6; }
20677 if ${ac_cv_prog_LCOV_GENHTML+:} false; then :
20678 $as_echo_n "(cached) " >&6
20679 else
20680 if test -n "$LCOV_GENHTML"; then
20681 ac_cv_prog_LCOV_GENHTML="$LCOV_GENHTML" # Let the user override the test.
20682 else
20683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20684 for as_dir in $PATH
20685 do
20686 IFS=$as_save_IFS
20687 test -z "$as_dir" && as_dir=.
20688 for ac_exec_ext in '' $ac_executable_extensions; do
20689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20690 ac_cv_prog_LCOV_GENHTML="$ac_prog"
20691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20692 break 2
20693 fi
20694 done
20695 done
20696 IFS=$as_save_IFS
20697
20698 fi
20699 fi
20700 LCOV_GENHTML=$ac_cv_prog_LCOV_GENHTML
20701 if test -n "$LCOV_GENHTML"; then
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV_GENHTML" >&5
20703 $as_echo "$LCOV_GENHTML" >&6; }
20704 else
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20706 $as_echo "no" >&6; }
20707 fi
20708
20709
20710 test -n "$LCOV_GENHTML" && break
20711 done
20712
20713 if test -z "$LCOV_GENHTML"; then :
20714
20715 as_fn_error $? "missing genhtml, which is required for C coverage support" "$LINENO" 5
20716
20717 fi
20718
20719 CFLAGS="$CFLAGS --coverage"
20720 LDFLAGS="$LDFLAGS --coverage"
20721
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Devel::Cover perl module" >&5
20723 $as_echo_n "checking for Devel::Cover perl module... " >&6; }
20724 if $($PERL -e "require Devel::Cover;" 2>/dev/null); then :
20725
20726 PERL_COVERAGE="-MDevel::Cover"
20727
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
20729 $as_echo "ok" >&6; }
20730
20731 else
20732
20733 as_fn_error $? "Devel::Cover perl module is required for coverage support" "$LINENO" 5
20734
20735 fi
20736 for ac_prog in cover
20737 do
20738 # Extract the first word of "$ac_prog", so it can be a program name with args.
20739 set dummy $ac_prog; ac_word=$2
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20741 $as_echo_n "checking for $ac_word... " >&6; }
20742 if ${ac_cv_prog_PERL_COVER+:} false; then :
20743 $as_echo_n "(cached) " >&6
20744 else
20745 if test -n "$PERL_COVER"; then
20746 ac_cv_prog_PERL_COVER="$PERL_COVER" # Let the user override the test.
20747 else
20748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20749 for as_dir in $PATH
20750 do
20751 IFS=$as_save_IFS
20752 test -z "$as_dir" && as_dir=.
20753 for ac_exec_ext in '' $ac_executable_extensions; do
20754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20755 ac_cv_prog_PERL_COVER="$ac_prog"
20756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20757 break 2
20758 fi
20759 done
20760 done
20761 IFS=$as_save_IFS
20762
20763 fi
20764 fi
20765 PERL_COVER=$ac_cv_prog_PERL_COVER
20766 if test -n "$PERL_COVER"; then
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_COVER" >&5
20768 $as_echo "$PERL_COVER" >&6; }
20769 else
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20771 $as_echo "no" >&6; }
20772 fi
20773
20774
20775 test -n "$PERL_COVER" && break
20776 done
20777
20778 if test -z "$PERL_COVER"; then :
20779
20780 as_fn_error $? "missing cover, which is required for perl coverage support" "$LINENO" 5
20781
20782 fi
20783
20784 fi
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage" >&5
20786 $as_echo_n "checking whether to build with code coverage... " >&6; }
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_coverage" >&5
20788 $as_echo "$enable_coverage" >&6; }
20789
20790
20791 # Checks for operating system services and capabilities.
20792 # Check whether --enable-largefile was given.
20793 if test "${enable_largefile+set}" = set; then :
20794 enableval=$enable_largefile;
20795 fi
20796
20797 if test "$enable_largefile" != no; then
20798
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
20800 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
20801 if ${ac_cv_sys_largefile_CC+:} false; then :
20802 $as_echo_n "(cached) " >&6
20803 else
20804 ac_cv_sys_largefile_CC=no
20805 if test "$GCC" != yes; then
20806 ac_save_CC=$CC
20807 while :; do
20808 # IRIX 6.2 and later do not support large files by default,
20809 # so use the C compiler's -n32 option if that helps.
20810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20811 /* end confdefs.h. */
20812 #include <sys/types.h>
20813 /* Check that off_t can represent 2**63 - 1 correctly.
20814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20815 since some C++ compilers masquerading as C compilers
20816 incorrectly reject 9223372036854775807. */
20817 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20819 && LARGE_OFF_T % 2147483647 == 1)
20820 ? 1 : -1];
20821 int
20822 main ()
20823 {
20824
20825 ;
20826 return 0;
20827 }
20828 _ACEOF
20829 if ac_fn_c_try_compile "$LINENO"; then :
20830 break
20831 fi
20832 rm -f core conftest.err conftest.$ac_objext
20833 CC="$CC -n32"
20834 if ac_fn_c_try_compile "$LINENO"; then :
20835 ac_cv_sys_largefile_CC=' -n32'; break
20836 fi
20837 rm -f core conftest.err conftest.$ac_objext
20838 break
20839 done
20840 CC=$ac_save_CC
20841 rm -f conftest.$ac_ext
20842 fi
20843 fi
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
20845 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
20846 if test "$ac_cv_sys_largefile_CC" != no; then
20847 CC=$CC$ac_cv_sys_largefile_CC
20848 fi
20849
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20851 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
20852 if ${ac_cv_sys_file_offset_bits+:} false; then :
20853 $as_echo_n "(cached) " >&6
20854 else
20855 while :; do
20856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20857 /* end confdefs.h. */
20858 #include <sys/types.h>
20859 /* Check that off_t can represent 2**63 - 1 correctly.
20860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20861 since some C++ compilers masquerading as C compilers
20862 incorrectly reject 9223372036854775807. */
20863 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20865 && LARGE_OFF_T % 2147483647 == 1)
20866 ? 1 : -1];
20867 int
20868 main ()
20869 {
20870
20871 ;
20872 return 0;
20873 }
20874 _ACEOF
20875 if ac_fn_c_try_compile "$LINENO"; then :
20876 ac_cv_sys_file_offset_bits=no; break
20877 fi
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880 /* end confdefs.h. */
20881 #define _FILE_OFFSET_BITS 64
20882 #include <sys/types.h>
20883 /* Check that off_t can represent 2**63 - 1 correctly.
20884 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20885 since some C++ compilers masquerading as C compilers
20886 incorrectly reject 9223372036854775807. */
20887 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20888 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20889 && LARGE_OFF_T % 2147483647 == 1)
20890 ? 1 : -1];
20891 int
20892 main ()
20893 {
20894
20895 ;
20896 return 0;
20897 }
20898 _ACEOF
20899 if ac_fn_c_try_compile "$LINENO"; then :
20900 ac_cv_sys_file_offset_bits=64; break
20901 fi
20902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20903 ac_cv_sys_file_offset_bits=unknown
20904 break
20905 done
20906 fi
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
20908 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
20909 case $ac_cv_sys_file_offset_bits in #(
20910 no | unknown) ;;
20911 *)
20912 cat >>confdefs.h <<_ACEOF
20913 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20914 _ACEOF
20915 ;;
20916 esac
20917 rm -rf conftest*
20918 if test $ac_cv_sys_file_offset_bits = unknown; then
20919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
20920 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
20921 if ${ac_cv_sys_large_files+:} false; then :
20922 $as_echo_n "(cached) " >&6
20923 else
20924 while :; do
20925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20926 /* end confdefs.h. */
20927 #include <sys/types.h>
20928 /* Check that off_t can represent 2**63 - 1 correctly.
20929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20930 since some C++ compilers masquerading as C compilers
20931 incorrectly reject 9223372036854775807. */
20932 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20934 && LARGE_OFF_T % 2147483647 == 1)
20935 ? 1 : -1];
20936 int
20937 main ()
20938 {
20939
20940 ;
20941 return 0;
20942 }
20943 _ACEOF
20944 if ac_fn_c_try_compile "$LINENO"; then :
20945 ac_cv_sys_large_files=no; break
20946 fi
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20949 /* end confdefs.h. */
20950 #define _LARGE_FILES 1
20951 #include <sys/types.h>
20952 /* Check that off_t can represent 2**63 - 1 correctly.
20953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20954 since some C++ compilers masquerading as C compilers
20955 incorrectly reject 9223372036854775807. */
20956 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20958 && LARGE_OFF_T % 2147483647 == 1)
20959 ? 1 : -1];
20960 int
20961 main ()
20962 {
20963
20964 ;
20965 return 0;
20966 }
20967 _ACEOF
20968 if ac_fn_c_try_compile "$LINENO"; then :
20969 ac_cv_sys_large_files=1; break
20970 fi
20971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20972 ac_cv_sys_large_files=unknown
20973 break
20974 done
20975 fi
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
20977 $as_echo "$ac_cv_sys_large_files" >&6; }
20978 case $ac_cv_sys_large_files in #(
20979 no | unknown) ;;
20980 *)
20981 cat >>confdefs.h <<_ACEOF
20982 #define _LARGE_FILES $ac_cv_sys_large_files
20983 _ACEOF
20984 ;;
20985 esac
20986 rm -rf conftest*
20987 fi
20988
20989
20990 fi
20991
20992
20993 # Checks for libraries.
20994
20995
20996
20997 # Check whether --with-libmd was given.
20998 if test "${with_libmd+set}" = set; then :
20999 withval=$with_libmd;
21000 else
21001 with_libmd=check
21002 fi
21003
21004 have_libmd="no"
21005 if test "x$with_libmd" != "xno"; then :
21006
21007 for ac_header in md5.h
21008 do :
21009 ac_fn_c_check_header_mongrel "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default"
21010 if test "x$ac_cv_header_md5_h" = xyes; then :
21011 cat >>confdefs.h <<_ACEOF
21012 #define HAVE_MD5_H 1
21013 _ACEOF
21014
21015 dpkg_save_libmd_LIBS=$LIBS
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
21017 $as_echo_n "checking for library containing MD5Init... " >&6; }
21018 if ${ac_cv_search_MD5Init+:} false; then :
21019 $as_echo_n "(cached) " >&6
21020 else
21021 ac_func_search_save_LIBS=$LIBS
21022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21023 /* end confdefs.h. */
21024
21025 /* Override any GCC internal prototype to avoid an error.
21026 Use char because int might match the return type of a GCC
21027 builtin and then its argument prototype would still apply. */
21028 #ifdef __cplusplus
21029 extern "C"
21030 #endif
21031 char MD5Init ();
21032 int
21033 main ()
21034 {
21035 return MD5Init ();
21036 ;
21037 return 0;
21038 }
21039 _ACEOF
21040 for ac_lib in '' md; do
21041 if test -z "$ac_lib"; then
21042 ac_res="none required"
21043 else
21044 ac_res=-l$ac_lib
21045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21046 fi
21047 if ac_fn_c_try_link "$LINENO"; then :
21048 ac_cv_search_MD5Init=$ac_res
21049 fi
21050 rm -f core conftest.err conftest.$ac_objext \
21051 conftest$ac_exeext
21052 if ${ac_cv_search_MD5Init+:} false; then :
21053 break
21054 fi
21055 done
21056 if ${ac_cv_search_MD5Init+:} false; then :
21057
21058 else
21059 ac_cv_search_MD5Init=no
21060 fi
21061 rm conftest.$ac_ext
21062 LIBS=$ac_func_search_save_LIBS
21063 fi
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
21065 $as_echo "$ac_cv_search_MD5Init" >&6; }
21066 ac_res=$ac_cv_search_MD5Init
21067 if test "$ac_res" != no; then :
21068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21069 have_libmd="yes"
21070 fi
21071
21072 LIBS=$dpkg_save_libmd_LIBS
21073 if test "x$ac_cv_search_MD5Init" = "xnone required"; then :
21074
21075 have_libmd="builtin"
21076
21077 elif test "x$ac_cv_search_MD5Init" != "xno"; then :
21078
21079 have_libmd="yes"
21080 MD_LIBS="$ac_cv_search_MD5Init"
21081
21082 fi
21083
21084 fi
21085
21086 done
21087
21088 if test "x$with_libmd" = "xyes" && test "x$have_libmd" = "xno"; then :
21089
21090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21092 as_fn_error $? "md5 digest functions not found
21093 See \`config.log' for more details" "$LINENO" 5; }
21094
21095 fi
21096
21097 fi
21098 if test "x$have_libmd" != "xno"; then
21099 HAVE_LIBMD_MD5_TRUE=
21100 HAVE_LIBMD_MD5_FALSE='#'
21101 else
21102 HAVE_LIBMD_MD5_TRUE='#'
21103 HAVE_LIBMD_MD5_FALSE=
21104 fi
21105
21106
21107
21108
21109
21110
21111 # Check whether --with-libz was given.
21112 if test "${with_libz+set}" = set; then :
21113 withval=$with_libz;
21114 else
21115 with_libz=check
21116 fi
21117
21118 have_libz="no"
21119 if test "x$with_libz" != "xno"; then :
21120
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
21122 $as_echo_n "checking for gzdopen in -lz... " >&6; }
21123 if ${ac_cv_lib_z_gzdopen+:} false; then :
21124 $as_echo_n "(cached) " >&6
21125 else
21126 ac_check_lib_save_LIBS=$LIBS
21127 LIBS="-lz $LIBS"
21128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21129 /* end confdefs.h. */
21130
21131 /* Override any GCC internal prototype to avoid an error.
21132 Use char because int might match the return type of a GCC
21133 builtin and then its argument prototype would still apply. */
21134 #ifdef __cplusplus
21135 extern "C"
21136 #endif
21137 char gzdopen ();
21138 int
21139 main ()
21140 {
21141 return gzdopen ();
21142 ;
21143 return 0;
21144 }
21145 _ACEOF
21146 if ac_fn_c_try_link "$LINENO"; then :
21147 ac_cv_lib_z_gzdopen=yes
21148 else
21149 ac_cv_lib_z_gzdopen=no
21150 fi
21151 rm -f core conftest.err conftest.$ac_objext \
21152 conftest$ac_exeext conftest.$ac_ext
21153 LIBS=$ac_check_lib_save_LIBS
21154 fi
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
21156 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
21157 if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
21158
21159 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21160 if test "x$ac_cv_header_zlib_h" = xyes; then :
21161
21162 have_libz="yes"
21163
21164 fi
21165
21166
21167
21168 fi
21169
21170
21171 if test "x$with_libz" != "xno"; then :
21172
21173 if test "x$have_libz" = "xyes"; then :
21174
21175
21176 $as_echo "#define WITH_LIBZ 1" >>confdefs.h
21177
21178 if test "x$with_libz" = "xstatic"; then :
21179
21180 dpkg_z_libs="-Wl,-Bstatic -lz -Wl,-Bdynamic"
21181
21182 else
21183
21184 dpkg_z_libs="-lz"
21185
21186 fi
21187 Z_LIBS="${Z_LIBS:+$Z_LIBS }$dpkg_z_libs"
21188
21189 else
21190
21191 if test "x$with_libz" != "xcheck"; then :
21192
21193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21195 as_fn_error $? "libz library or header not found
21196 See \`config.log' for more details" "$LINENO" 5; }
21197
21198 fi
21199
21200 fi
21201
21202 fi
21203
21204 fi
21205
21206
21207
21208
21209
21210
21211 # Check whether --with-libbz2 was given.
21212 if test "${with_libbz2+set}" = set; then :
21213 withval=$with_libbz2;
21214 else
21215 with_libbz2=check
21216 fi
21217
21218 have_libbz2="no"
21219 if test "x$with_libbz2" != "xno"; then :
21220
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzdopen in -lbz2" >&5
21222 $as_echo_n "checking for BZ2_bzdopen in -lbz2... " >&6; }
21223 if ${ac_cv_lib_bz2_BZ2_bzdopen+:} false; then :
21224 $as_echo_n "(cached) " >&6
21225 else
21226 ac_check_lib_save_LIBS=$LIBS
21227 LIBS="-lbz2 $LIBS"
21228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21229 /* end confdefs.h. */
21230
21231 /* Override any GCC internal prototype to avoid an error.
21232 Use char because int might match the return type of a GCC
21233 builtin and then its argument prototype would still apply. */
21234 #ifdef __cplusplus
21235 extern "C"
21236 #endif
21237 char BZ2_bzdopen ();
21238 int
21239 main ()
21240 {
21241 return BZ2_bzdopen ();
21242 ;
21243 return 0;
21244 }
21245 _ACEOF
21246 if ac_fn_c_try_link "$LINENO"; then :
21247 ac_cv_lib_bz2_BZ2_bzdopen=yes
21248 else
21249 ac_cv_lib_bz2_BZ2_bzdopen=no
21250 fi
21251 rm -f core conftest.err conftest.$ac_objext \
21252 conftest$ac_exeext conftest.$ac_ext
21253 LIBS=$ac_check_lib_save_LIBS
21254 fi
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzdopen" >&5
21256 $as_echo "$ac_cv_lib_bz2_BZ2_bzdopen" >&6; }
21257 if test "x$ac_cv_lib_bz2_BZ2_bzdopen" = xyes; then :
21258
21259 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
21260 if test "x$ac_cv_header_bzlib_h" = xyes; then :
21261
21262 have_libbz2="yes"
21263
21264 fi
21265
21266
21267
21268 fi
21269
21270
21271 if test "x$with_libbz2" != "xno"; then :
21272
21273 if test "x$have_libbz2" = "xyes"; then :
21274
21275
21276 $as_echo "#define WITH_LIBBZ2 1" >>confdefs.h
21277
21278 if test "x$with_libbz2" = "xstatic"; then :
21279
21280 dpkg_bz2_libs="-Wl,-Bstatic -lbz2 -Wl,-Bdynamic"
21281
21282 else
21283
21284 dpkg_bz2_libs="-lbz2"
21285
21286 fi
21287 BZ2_LIBS="${BZ2_LIBS:+$BZ2_LIBS }$dpkg_bz2_libs"
21288
21289 else
21290
21291 if test "x$with_libbz2" != "xcheck"; then :
21292
21293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21295 as_fn_error $? "libbz2 library or header not found
21296 See \`config.log' for more details" "$LINENO" 5; }
21297
21298 fi
21299
21300 fi
21301
21302 fi
21303
21304 fi
21305
21306
21307
21308
21309
21310
21311 # Check whether --with-liblzma was given.
21312 if test "${with_liblzma+set}" = set; then :
21313 withval=$with_liblzma;
21314 else
21315 with_liblzma=check
21316 fi
21317
21318 have_liblzma="no"
21319 if test "x$with_liblzma" != "xno"; then :
21320
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_alone_decoder in -llzma" >&5
21322 $as_echo_n "checking for lzma_alone_decoder in -llzma... " >&6; }
21323 if ${ac_cv_lib_lzma_lzma_alone_decoder+:} false; then :
21324 $as_echo_n "(cached) " >&6
21325 else
21326 ac_check_lib_save_LIBS=$LIBS
21327 LIBS="-llzma $LIBS"
21328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21329 /* end confdefs.h. */
21330
21331 /* Override any GCC internal prototype to avoid an error.
21332 Use char because int might match the return type of a GCC
21333 builtin and then its argument prototype would still apply. */
21334 #ifdef __cplusplus
21335 extern "C"
21336 #endif
21337 char lzma_alone_decoder ();
21338 int
21339 main ()
21340 {
21341 return lzma_alone_decoder ();
21342 ;
21343 return 0;
21344 }
21345 _ACEOF
21346 if ac_fn_c_try_link "$LINENO"; then :
21347 ac_cv_lib_lzma_lzma_alone_decoder=yes
21348 else
21349 ac_cv_lib_lzma_lzma_alone_decoder=no
21350 fi
21351 rm -f core conftest.err conftest.$ac_objext \
21352 conftest$ac_exeext conftest.$ac_ext
21353 LIBS=$ac_check_lib_save_LIBS
21354 fi
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_alone_decoder" >&5
21356 $as_echo "$ac_cv_lib_lzma_lzma_alone_decoder" >&6; }
21357 if test "x$ac_cv_lib_lzma_lzma_alone_decoder" = xyes; then :
21358
21359 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
21360 if test "x$ac_cv_header_lzma_h" = xyes; then :
21361
21362 have_liblzma="yes"
21363
21364 fi
21365
21366
21367
21368 fi
21369
21370
21371 if test "x$with_liblzma" != "xno"; then :
21372
21373 if test "x$have_liblzma" = "xyes"; then :
21374
21375
21376 $as_echo "#define WITH_LIBLZMA 1" >>confdefs.h
21377
21378 if test "x$with_liblzma" = "xstatic"; then :
21379
21380 dpkg_lzma_libs="-Wl,-Bstatic -llzma -Wl,-Bdynamic"
21381
21382 else
21383
21384 dpkg_lzma_libs="-llzma"
21385
21386 fi
21387 LZMA_LIBS="${LZMA_LIBS:+$LZMA_LIBS }$dpkg_lzma_libs"
21388
21389 else
21390
21391 if test "x$with_liblzma" != "xcheck"; then :
21392
21393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21395 as_fn_error $? "liblzma library or header not found
21396 See \`config.log' for more details" "$LINENO" 5; }
21397
21398 fi
21399
21400 fi
21401
21402 fi
21403
21404 fi
21405
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_encoder_mt in -llzma" >&5
21407 $as_echo_n "checking for lzma_stream_encoder_mt in -llzma... " >&6; }
21408 if ${ac_cv_lib_lzma_lzma_stream_encoder_mt+:} false; then :
21409 $as_echo_n "(cached) " >&6
21410 else
21411 ac_check_lib_save_LIBS=$LIBS
21412 LIBS="-llzma $LIBS"
21413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21414 /* end confdefs.h. */
21415
21416 /* Override any GCC internal prototype to avoid an error.
21417 Use char because int might match the return type of a GCC
21418 builtin and then its argument prototype would still apply. */
21419 #ifdef __cplusplus
21420 extern "C"
21421 #endif
21422 char lzma_stream_encoder_mt ();
21423 int
21424 main ()
21425 {
21426 return lzma_stream_encoder_mt ();
21427 ;
21428 return 0;
21429 }
21430 _ACEOF
21431 if ac_fn_c_try_link "$LINENO"; then :
21432 ac_cv_lib_lzma_lzma_stream_encoder_mt=yes
21433 else
21434 ac_cv_lib_lzma_lzma_stream_encoder_mt=no
21435 fi
21436 rm -f core conftest.err conftest.$ac_objext \
21437 conftest$ac_exeext conftest.$ac_ext
21438 LIBS=$ac_check_lib_save_LIBS
21439 fi
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_encoder_mt" >&5
21441 $as_echo "$ac_cv_lib_lzma_lzma_stream_encoder_mt" >&6; }
21442 if test "x$ac_cv_lib_lzma_lzma_stream_encoder_mt" = xyes; then :
21443
21444
21445 $as_echo "#define HAVE_LZMA_MT 1" >>confdefs.h
21446
21447
21448 fi
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21459 if test -n "$ac_tool_prefix"; then
21460 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21461 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21463 $as_echo_n "checking for $ac_word... " >&6; }
21464 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21465 $as_echo_n "(cached) " >&6
21466 else
21467 case $PKG_CONFIG in
21468 [\\/]* | ?:[\\/]*)
21469 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21470 ;;
21471 *)
21472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21473 for as_dir in $PATH
21474 do
21475 IFS=$as_save_IFS
21476 test -z "$as_dir" && as_dir=.
21477 for ac_exec_ext in '' $ac_executable_extensions; do
21478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21479 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21481 break 2
21482 fi
21483 done
21484 done
21485 IFS=$as_save_IFS
21486
21487 ;;
21488 esac
21489 fi
21490 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21491 if test -n "$PKG_CONFIG"; then
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21493 $as_echo "$PKG_CONFIG" >&6; }
21494 else
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21496 $as_echo "no" >&6; }
21497 fi
21498
21499
21500 fi
21501 if test -z "$ac_cv_path_PKG_CONFIG"; then
21502 ac_pt_PKG_CONFIG=$PKG_CONFIG
21503 # Extract the first word of "pkg-config", so it can be a program name with args.
21504 set dummy pkg-config; ac_word=$2
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21506 $as_echo_n "checking for $ac_word... " >&6; }
21507 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
21508 $as_echo_n "(cached) " >&6
21509 else
21510 case $ac_pt_PKG_CONFIG in
21511 [\\/]* | ?:[\\/]*)
21512 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21513 ;;
21514 *)
21515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21516 for as_dir in $PATH
21517 do
21518 IFS=$as_save_IFS
21519 test -z "$as_dir" && as_dir=.
21520 for ac_exec_ext in '' $ac_executable_extensions; do
21521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21522 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21524 break 2
21525 fi
21526 done
21527 done
21528 IFS=$as_save_IFS
21529
21530 ;;
21531 esac
21532 fi
21533 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21534 if test -n "$ac_pt_PKG_CONFIG"; then
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21536 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21537 else
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21539 $as_echo "no" >&6; }
21540 fi
21541
21542 if test "x$ac_pt_PKG_CONFIG" = x; then
21543 PKG_CONFIG=""
21544 else
21545 case $cross_compiling:$ac_tool_warned in
21546 yes:)
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21549 ac_tool_warned=yes ;;
21550 esac
21551 PKG_CONFIG=$ac_pt_PKG_CONFIG
21552 fi
21553 else
21554 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21555 fi
21556
21557 fi
21558 if test -n "$PKG_CONFIG"; then
21559 _pkg_min_version=0.9.0
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21561 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21562 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21564 $as_echo "yes" >&6; }
21565 else
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21567 $as_echo "no" >&6; }
21568 PKG_CONFIG=""
21569 fi
21570 fi
21571
21572
21573
21574
21575 # Check whether --with-libselinux was given.
21576 if test "${with_libselinux+set}" = set; then :
21577 withval=$with_libselinux;
21578 else
21579 with_libselinux=check
21580 fi
21581
21582 SELINUX_MIN_VERSION=2.0.99
21583 have_libselinux="no"
21584 if test "x$with_libselinux" != "xno"; then :
21585
21586
21587 pkg_failed=no
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5
21589 $as_echo_n "checking for SELINUX... " >&6; }
21590
21591 if test -n "$SELINUX_CFLAGS"; then
21592 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
21593 elif test -n "$PKG_CONFIG"; then
21594 if test -n "$PKG_CONFIG" && \
21595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= \$SELINUX_MIN_VERSION\""; } >&5
21596 ($PKG_CONFIG --exists --print-errors "libselinux >= $SELINUX_MIN_VERSION") 2>&5
21597 ac_status=$?
21598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21599 test $ac_status = 0; }; then
21600 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux >= $SELINUX_MIN_VERSION" 2>/dev/null`
21601 test "x$?" != "x0" && pkg_failed=yes
21602 else
21603 pkg_failed=yes
21604 fi
21605 else
21606 pkg_failed=untried
21607 fi
21608 if test -n "$SELINUX_LIBS"; then
21609 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
21610 elif test -n "$PKG_CONFIG"; then
21611 if test -n "$PKG_CONFIG" && \
21612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= \$SELINUX_MIN_VERSION\""; } >&5
21613 ($PKG_CONFIG --exists --print-errors "libselinux >= $SELINUX_MIN_VERSION") 2>&5
21614 ac_status=$?
21615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21616 test $ac_status = 0; }; then
21617 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "libselinux >= $SELINUX_MIN_VERSION" 2>/dev/null`
21618 test "x$?" != "x0" && pkg_failed=yes
21619 else
21620 pkg_failed=yes
21621 fi
21622 else
21623 pkg_failed=untried
21624 fi
21625
21626
21627
21628 if test $pkg_failed = yes; then
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21630 $as_echo "no" >&6; }
21631
21632 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21633 _pkg_short_errors_supported=yes
21634 else
21635 _pkg_short_errors_supported=no
21636 fi
21637 if test $_pkg_short_errors_supported = yes; then
21638 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux >= $SELINUX_MIN_VERSION" 2>&1`
21639 else
21640 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux >= $SELINUX_MIN_VERSION" 2>&1`
21641 fi
21642 # Put the nasty error message in config.log where it belongs
21643 echo "$SELINUX_PKG_ERRORS" >&5
21644
21645
21646 if test "x$with_libselinux" != "xcheck"; then :
21647
21648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21650 as_fn_error $? "libselinux at least $SELINUX_MIN_VERSION not found
21651 See \`config.log' for more details" "$LINENO" 5; }
21652
21653 fi
21654
21655 elif test $pkg_failed = untried; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21657 $as_echo "no" >&6; }
21658
21659 if test "x$with_libselinux" != "xcheck"; then :
21660
21661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21663 as_fn_error $? "libselinux at least $SELINUX_MIN_VERSION not found
21664 See \`config.log' for more details" "$LINENO" 5; }
21665
21666 fi
21667
21668 else
21669 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
21670 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21672 $as_echo "yes" >&6; }
21673
21674 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
21675 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
21676
21677
21678 $as_echo "#define WITH_LIBSELINUX 1" >>confdefs.h
21679
21680 have_libselinux="yes"
21681
21682 else
21683
21684 if test "x$with_libselinux" != "xcheck"; then :
21685
21686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21688 as_fn_error $? "libselinux header not found
21689 See \`config.log' for more details" "$LINENO" 5; }
21690
21691 fi
21692
21693 fi
21694
21695
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexecfilecon in -lselinux" >&5
21697 $as_echo_n "checking for setexecfilecon in -lselinux... " >&6; }
21698 if ${ac_cv_lib_selinux_setexecfilecon+:} false; then :
21699 $as_echo_n "(cached) " >&6
21700 else
21701 ac_check_lib_save_LIBS=$LIBS
21702 LIBS="-lselinux $LIBS"
21703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21704 /* end confdefs.h. */
21705
21706 /* Override any GCC internal prototype to avoid an error.
21707 Use char because int might match the return type of a GCC
21708 builtin and then its argument prototype would still apply. */
21709 #ifdef __cplusplus
21710 extern "C"
21711 #endif
21712 char setexecfilecon ();
21713 int
21714 main ()
21715 {
21716 return setexecfilecon ();
21717 ;
21718 return 0;
21719 }
21720 _ACEOF
21721 if ac_fn_c_try_link "$LINENO"; then :
21722 ac_cv_lib_selinux_setexecfilecon=yes
21723 else
21724 ac_cv_lib_selinux_setexecfilecon=no
21725 fi
21726 rm -f core conftest.err conftest.$ac_objext \
21727 conftest$ac_exeext conftest.$ac_ext
21728 LIBS=$ac_check_lib_save_LIBS
21729 fi
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexecfilecon" >&5
21731 $as_echo "$ac_cv_lib_selinux_setexecfilecon" >&6; }
21732 if test "x$ac_cv_lib_selinux_setexecfilecon" = xyes; then :
21733
21734
21735 $as_echo "#define HAVE_SETEXECFILECON 1" >>confdefs.h
21736
21737
21738 fi
21739
21740
21741 fi
21742
21743 fi
21744 if test "x$have_libselinux" = "xyes"; then
21745 WITH_LIBSELINUX_TRUE=
21746 WITH_LIBSELINUX_FALSE='#'
21747 else
21748 WITH_LIBSELINUX_TRUE='#'
21749 WITH_LIBSELINUX_FALSE=
21750 fi
21751
21752 if test "x$ac_cv_lib_selinux_setexecfilecon" = "xyes"; then
21753 HAVE_SETEXECFILECON_TRUE=
21754 HAVE_SETEXECFILECON_FALSE='#'
21755 else
21756 HAVE_SETEXECFILECON_TRUE='#'
21757 HAVE_SETEXECFILECON_FALSE=
21758 fi
21759
21760
21761
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Unicode is requested" >&5
21763 $as_echo_n "checking whether Unicode is requested... " >&6; }
21764 # Check whether --enable-unicode was given.
21765 if test "${enable_unicode+set}" = set; then :
21766 enableval=$enable_unicode; USE_UNICODE=$enableval
21767 else
21768 USE_UNICODE=yes
21769 fi
21770
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_UNICODE" >&5
21772 $as_echo "$USE_UNICODE" >&6; }
21773
21774
21775 if test "x$build_dselect" = "xyes"; then :
21776
21777
21778
21779 for ac_header in ncurses/ncurses.h ncurses.h curses.h ncurses/term.h term.h
21780 do :
21781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21782 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21783 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21784 cat >>confdefs.h <<_ACEOF
21785 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21786 _ACEOF
21787 have_curses_header=yes
21788 fi
21789
21790 done
21791
21792 if test "x$USE_UNICODE" = "xyes"; then :
21793
21794 for ac_header in ncursesw/ncurses.h ncursesw/term.h
21795 do :
21796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21797 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21798 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21799 cat >>confdefs.h <<_ACEOF
21800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21801 _ACEOF
21802 have_curses_header=yes
21803 fi
21804
21805 done
21806
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
21808 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
21809 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
21810 $as_echo_n "(cached) " >&6
21811 else
21812 ac_check_lib_save_LIBS=$LIBS
21813 LIBS="-lncursesw $LIBS"
21814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21815 /* end confdefs.h. */
21816
21817 /* Override any GCC internal prototype to avoid an error.
21818 Use char because int might match the return type of a GCC
21819 builtin and then its argument prototype would still apply. */
21820 #ifdef __cplusplus
21821 extern "C"
21822 #endif
21823 char initscr ();
21824 int
21825 main ()
21826 {
21827 return initscr ();
21828 ;
21829 return 0;
21830 }
21831 _ACEOF
21832 if ac_fn_c_try_link "$LINENO"; then :
21833 ac_cv_lib_ncursesw_initscr=yes
21834 else
21835 ac_cv_lib_ncursesw_initscr=no
21836 fi
21837 rm -f core conftest.err conftest.$ac_objext \
21838 conftest$ac_exeext conftest.$ac_ext
21839 LIBS=$ac_check_lib_save_LIBS
21840 fi
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
21842 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
21843 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
21844
21845 CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncursesw"
21846
21847 else
21848
21849
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
21851 $as_echo_n "checking for initscr in -lncurses... " >&6; }
21852 if ${ac_cv_lib_ncurses_initscr+:} false; then :
21853 $as_echo_n "(cached) " >&6
21854 else
21855 ac_check_lib_save_LIBS=$LIBS
21856 LIBS="-lncurses $LIBS"
21857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21858 /* end confdefs.h. */
21859
21860 /* Override any GCC internal prototype to avoid an error.
21861 Use char because int might match the return type of a GCC
21862 builtin and then its argument prototype would still apply. */
21863 #ifdef __cplusplus
21864 extern "C"
21865 #endif
21866 char initscr ();
21867 int
21868 main ()
21869 {
21870 return initscr ();
21871 ;
21872 return 0;
21873 }
21874 _ACEOF
21875 if ac_fn_c_try_link "$LINENO"; then :
21876 ac_cv_lib_ncurses_initscr=yes
21877 else
21878 ac_cv_lib_ncurses_initscr=no
21879 fi
21880 rm -f core conftest.err conftest.$ac_objext \
21881 conftest$ac_exeext conftest.$ac_ext
21882 LIBS=$ac_check_lib_save_LIBS
21883 fi
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
21885 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
21886 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
21887
21888 CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncurses"
21889
21890 else
21891
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
21893 $as_echo_n "checking for initscr in -lcurses... " >&6; }
21894 if ${ac_cv_lib_curses_initscr+:} false; then :
21895 $as_echo_n "(cached) " >&6
21896 else
21897 ac_check_lib_save_LIBS=$LIBS
21898 LIBS="-lcurses $LIBS"
21899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21900 /* end confdefs.h. */
21901
21902 /* Override any GCC internal prototype to avoid an error.
21903 Use char because int might match the return type of a GCC
21904 builtin and then its argument prototype would still apply. */
21905 #ifdef __cplusplus
21906 extern "C"
21907 #endif
21908 char initscr ();
21909 int
21910 main ()
21911 {
21912 return initscr ();
21913 ;
21914 return 0;
21915 }
21916 _ACEOF
21917 if ac_fn_c_try_link "$LINENO"; then :
21918 ac_cv_lib_curses_initscr=yes
21919 else
21920 ac_cv_lib_curses_initscr=no
21921 fi
21922 rm -f core conftest.err conftest.$ac_objext \
21923 conftest$ac_exeext conftest.$ac_ext
21924 LIBS=$ac_check_lib_save_LIBS
21925 fi
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
21927 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
21928 if test "x$ac_cv_lib_curses_initscr" = xyes; then :
21929
21930 CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lcurses"
21931
21932 else
21933
21934 as_fn_error $? "no curses library found" "$LINENO" 5
21935
21936 fi
21937
21938
21939 fi
21940
21941
21942
21943 fi
21944
21945
21946 else
21947
21948
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
21950 $as_echo_n "checking for initscr in -lncurses... " >&6; }
21951 if ${ac_cv_lib_ncurses_initscr+:} false; then :
21952 $as_echo_n "(cached) " >&6
21953 else
21954 ac_check_lib_save_LIBS=$LIBS
21955 LIBS="-lncurses $LIBS"
21956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21957 /* end confdefs.h. */
21958
21959 /* Override any GCC internal prototype to avoid an error.
21960 Use char because int might match the return type of a GCC
21961 builtin and then its argument prototype would still apply. */
21962 #ifdef __cplusplus
21963 extern "C"
21964 #endif
21965 char initscr ();
21966 int
21967 main ()
21968 {
21969 return initscr ();
21970 ;
21971 return 0;
21972 }
21973 _ACEOF
21974 if ac_fn_c_try_link "$LINENO"; then :
21975 ac_cv_lib_ncurses_initscr=yes
21976 else
21977 ac_cv_lib_ncurses_initscr=no
21978 fi
21979 rm -f core conftest.err conftest.$ac_objext \
21980 conftest$ac_exeext conftest.$ac_ext
21981 LIBS=$ac_check_lib_save_LIBS
21982 fi
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
21984 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
21985 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
21986
21987 CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncurses"
21988
21989 else
21990
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
21992 $as_echo_n "checking for initscr in -lcurses... " >&6; }
21993 if ${ac_cv_lib_curses_initscr+:} false; then :
21994 $as_echo_n "(cached) " >&6
21995 else
21996 ac_check_lib_save_LIBS=$LIBS
21997 LIBS="-lcurses $LIBS"
21998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21999 /* end confdefs.h. */
22000
22001 /* Override any GCC internal prototype to avoid an error.
22002 Use char because int might match the return type of a GCC
22003 builtin and then its argument prototype would still apply. */
22004 #ifdef __cplusplus
22005 extern "C"
22006 #endif
22007 char initscr ();
22008 int
22009 main ()
22010 {
22011 return initscr ();
22012 ;
22013 return 0;
22014 }
22015 _ACEOF
22016 if ac_fn_c_try_link "$LINENO"; then :
22017 ac_cv_lib_curses_initscr=yes
22018 else
22019 ac_cv_lib_curses_initscr=no
22020 fi
22021 rm -f core conftest.err conftest.$ac_objext \
22022 conftest$ac_exeext conftest.$ac_ext
22023 LIBS=$ac_check_lib_save_LIBS
22024 fi
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
22026 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
22027 if test "x$ac_cv_lib_curses_initscr" = xyes; then :
22028
22029 CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lcurses"
22030
22031 else
22032
22033 as_fn_error $? "no curses library found" "$LINENO" 5
22034
22035 fi
22036
22037
22038 fi
22039
22040
22041
22042 fi
22043 if test "x$have_curses_header" != "xyes"; then :
22044
22045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22047 as_fn_error $? "curses header not found
22048 See \`config.log' for more details" "$LINENO" 5; }
22049
22050 fi
22051 have_libcurses=yes
22052
22053
22054 fi
22055 if test "x$build_start_stop_daemon" = "xyes"; then :
22056
22057
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proc_stat_list_create in -lps" >&5
22059 $as_echo_n "checking for proc_stat_list_create in -lps... " >&6; }
22060 if ${ac_cv_lib_ps_proc_stat_list_create+:} false; then :
22061 $as_echo_n "(cached) " >&6
22062 else
22063 ac_check_lib_save_LIBS=$LIBS
22064 LIBS="-lps $LIBS"
22065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22066 /* end confdefs.h. */
22067
22068 /* Override any GCC internal prototype to avoid an error.
22069 Use char because int might match the return type of a GCC
22070 builtin and then its argument prototype would still apply. */
22071 #ifdef __cplusplus
22072 extern "C"
22073 #endif
22074 char proc_stat_list_create ();
22075 int
22076 main ()
22077 {
22078 return proc_stat_list_create ();
22079 ;
22080 return 0;
22081 }
22082 _ACEOF
22083 if ac_fn_c_try_link "$LINENO"; then :
22084 ac_cv_lib_ps_proc_stat_list_create=yes
22085 else
22086 ac_cv_lib_ps_proc_stat_list_create=no
22087 fi
22088 rm -f core conftest.err conftest.$ac_objext \
22089 conftest$ac_exeext conftest.$ac_ext
22090 LIBS=$ac_check_lib_save_LIBS
22091 fi
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ps_proc_stat_list_create" >&5
22093 $as_echo "$ac_cv_lib_ps_proc_stat_list_create" >&6; }
22094 if test "x$ac_cv_lib_ps_proc_stat_list_create" = xyes; then :
22095
22096 PS_LIBS="-lps"
22097 have_libps=yes
22098
22099 fi
22100
22101
22102
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_openfiles in -lkvm" >&5
22104 $as_echo_n "checking for kvm_openfiles in -lkvm... " >&6; }
22105 if ${ac_cv_lib_kvm_kvm_openfiles+:} false; then :
22106 $as_echo_n "(cached) " >&6
22107 else
22108 ac_check_lib_save_LIBS=$LIBS
22109 LIBS="-lkvm $LIBS"
22110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h. */
22112
22113 /* Override any GCC internal prototype to avoid an error.
22114 Use char because int might match the return type of a GCC
22115 builtin and then its argument prototype would still apply. */
22116 #ifdef __cplusplus
22117 extern "C"
22118 #endif
22119 char kvm_openfiles ();
22120 int
22121 main ()
22122 {
22123 return kvm_openfiles ();
22124 ;
22125 return 0;
22126 }
22127 _ACEOF
22128 if ac_fn_c_try_link "$LINENO"; then :
22129 ac_cv_lib_kvm_kvm_openfiles=yes
22130 else
22131 ac_cv_lib_kvm_kvm_openfiles=no
22132 fi
22133 rm -f core conftest.err conftest.$ac_objext \
22134 conftest$ac_exeext conftest.$ac_ext
22135 LIBS=$ac_check_lib_save_LIBS
22136 fi
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_openfiles" >&5
22138 $as_echo "$ac_cv_lib_kvm_kvm_openfiles" >&6; }
22139 if test "x$ac_cv_lib_kvm_kvm_openfiles" = xyes; then :
22140
22141 KVM_LIBS="-lkvm"
22142 have_libkvm=yes
22143
22144 fi
22145
22146
22147
22148 fi
22149
22150 # Checks for header files.
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22152 $as_echo_n "checking for ANSI C header files... " >&6; }
22153 if ${ac_cv_header_stdc+:} false; then :
22154 $as_echo_n "(cached) " >&6
22155 else
22156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157 /* end confdefs.h. */
22158 #include <stdlib.h>
22159 #include <stdarg.h>
22160 #include <string.h>
22161 #include <float.h>
22162
22163 int
22164 main ()
22165 {
22166
22167 ;
22168 return 0;
22169 }
22170 _ACEOF
22171 if ac_fn_c_try_compile "$LINENO"; then :
22172 ac_cv_header_stdc=yes
22173 else
22174 ac_cv_header_stdc=no
22175 fi
22176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22177
22178 if test $ac_cv_header_stdc = yes; then
22179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181 /* end confdefs.h. */
22182 #include <string.h>
22183
22184 _ACEOF
22185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22186 $EGREP "memchr" >/dev/null 2>&1; then :
22187
22188 else
22189 ac_cv_header_stdc=no
22190 fi
22191 rm -f conftest*
22192
22193 fi
22194
22195 if test $ac_cv_header_stdc = yes; then
22196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22198 /* end confdefs.h. */
22199 #include <stdlib.h>
22200
22201 _ACEOF
22202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22203 $EGREP "free" >/dev/null 2>&1; then :
22204
22205 else
22206 ac_cv_header_stdc=no
22207 fi
22208 rm -f conftest*
22209
22210 fi
22211
22212 if test $ac_cv_header_stdc = yes; then
22213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22214 if test "$cross_compiling" = yes; then :
22215 :
22216 else
22217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22218 /* end confdefs.h. */
22219 #include <ctype.h>
22220 #include <stdlib.h>
22221 #if ((' ' & 0x0FF) == 0x020)
22222 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22223 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22224 #else
22225 # define ISLOWER(c) \
22226 (('a' <= (c) && (c) <= 'i') \
22227 || ('j' <= (c) && (c) <= 'r') \
22228 || ('s' <= (c) && (c) <= 'z'))
22229 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22230 #endif
22231
22232 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22233 int
22234 main ()
22235 {
22236 int i;
22237 for (i = 0; i < 256; i++)
22238 if (XOR (islower (i), ISLOWER (i))
22239 || toupper (i) != TOUPPER (i))
22240 return 2;
22241 return 0;
22242 }
22243 _ACEOF
22244 if ac_fn_c_try_run "$LINENO"; then :
22245
22246 else
22247 ac_cv_header_stdc=no
22248 fi
22249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22250 conftest.$ac_objext conftest.beam conftest.$ac_ext
22251 fi
22252
22253 fi
22254 fi
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22256 $as_echo "$ac_cv_header_stdc" >&6; }
22257 if test $ac_cv_header_stdc = yes; then
22258
22259 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
22260
22261 fi
22262
22263 for ac_header in \
22264 stddef.h \
22265 error.h \
22266 err.h \
22267 locale.h \
22268 libintl.h \
22269 kvm.h \
22270 sys/sysmacros.h \
22271 sys/param.h \
22272 sys/sysctl.h \
22273 sys/syscall.h \
22274 sys/user.h \
22275 sys/procfs.h \
22276 sys/pstat.h \
22277 linux/fiemap.h \
22278
22279 do :
22280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22281 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22282 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22283 cat >>confdefs.h <<_ACEOF
22284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22285 _ACEOF
22286
22287 fi
22288
22289 done
22290
22291 for ac_header in sys/proc.h
22292 do :
22293 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
22294 #ifdef HAVE_SYS_PARAM_H
22295 #include <sys/param.h>
22296 #endif
22297
22298 "
22299 if test "x$ac_cv_header_sys_proc_h" = xyes; then :
22300 cat >>confdefs.h <<_ACEOF
22301 #define HAVE_SYS_PROC_H 1
22302 _ACEOF
22303
22304 fi
22305
22306 done
22307
22308
22309
22310 if test "x$build_dselect" = "xyes"; then :
22311
22312 ac_ext=cpp
22313 ac_cpp='$CXXCPP $CPPFLAGS'
22314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22317
22318 for ac_header in cxxabi.h
22319 do :
22320 ac_fn_cxx_check_header_mongrel "$LINENO" "cxxabi.h" "ac_cv_header_cxxabi_h" "$ac_includes_default"
22321 if test "x$ac_cv_header_cxxabi_h" = xyes; then :
22322 cat >>confdefs.h <<_ACEOF
22323 #define HAVE_CXXABI_H 1
22324 _ACEOF
22325
22326 fi
22327
22328 done
22329
22330 ac_ext=c
22331 ac_cpp='$CPP $CPPFLAGS'
22332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22335
22336
22337 fi
22338
22339 # Checks for typedefs, structures, and compiler characteristics.
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22341 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22342 if ${ac_cv_c_bigendian+:} false; then :
22343 $as_echo_n "(cached) " >&6
22344 else
22345 ac_cv_c_bigendian=unknown
22346 # See if we're dealing with a universal compiler.
22347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22348 /* end confdefs.h. */
22349 #ifndef __APPLE_CC__
22350 not a universal capable compiler
22351 #endif
22352 typedef int dummy;
22353
22354 _ACEOF
22355 if ac_fn_c_try_compile "$LINENO"; then :
22356
22357 # Check for potential -arch flags. It is not universal unless
22358 # there are at least two -arch flags with different values.
22359 ac_arch=
22360 ac_prev=
22361 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22362 if test -n "$ac_prev"; then
22363 case $ac_word in
22364 i?86 | x86_64 | ppc | ppc64)
22365 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22366 ac_arch=$ac_word
22367 else
22368 ac_cv_c_bigendian=universal
22369 break
22370 fi
22371 ;;
22372 esac
22373 ac_prev=
22374 elif test "x$ac_word" = "x-arch"; then
22375 ac_prev=arch
22376 fi
22377 done
22378 fi
22379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22380 if test $ac_cv_c_bigendian = unknown; then
22381 # See if sys/param.h defines the BYTE_ORDER macro.
22382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383 /* end confdefs.h. */
22384 #include <sys/types.h>
22385 #include <sys/param.h>
22386
22387 int
22388 main ()
22389 {
22390 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22391 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22392 && LITTLE_ENDIAN)
22393 bogus endian macros
22394 #endif
22395
22396 ;
22397 return 0;
22398 }
22399 _ACEOF
22400 if ac_fn_c_try_compile "$LINENO"; then :
22401 # It does; now see whether it defined to BIG_ENDIAN or not.
22402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22403 /* end confdefs.h. */
22404 #include <sys/types.h>
22405 #include <sys/param.h>
22406
22407 int
22408 main ()
22409 {
22410 #if BYTE_ORDER != BIG_ENDIAN
22411 not big endian
22412 #endif
22413
22414 ;
22415 return 0;
22416 }
22417 _ACEOF
22418 if ac_fn_c_try_compile "$LINENO"; then :
22419 ac_cv_c_bigendian=yes
22420 else
22421 ac_cv_c_bigendian=no
22422 fi
22423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22424 fi
22425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22426 fi
22427 if test $ac_cv_c_bigendian = unknown; then
22428 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22430 /* end confdefs.h. */
22431 #include <limits.h>
22432
22433 int
22434 main ()
22435 {
22436 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22437 bogus endian macros
22438 #endif
22439
22440 ;
22441 return 0;
22442 }
22443 _ACEOF
22444 if ac_fn_c_try_compile "$LINENO"; then :
22445 # It does; now see whether it defined to _BIG_ENDIAN or not.
22446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22447 /* end confdefs.h. */
22448 #include <limits.h>
22449
22450 int
22451 main ()
22452 {
22453 #ifndef _BIG_ENDIAN
22454 not big endian
22455 #endif
22456
22457 ;
22458 return 0;
22459 }
22460 _ACEOF
22461 if ac_fn_c_try_compile "$LINENO"; then :
22462 ac_cv_c_bigendian=yes
22463 else
22464 ac_cv_c_bigendian=no
22465 fi
22466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22467 fi
22468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22469 fi
22470 if test $ac_cv_c_bigendian = unknown; then
22471 # Compile a test program.
22472 if test "$cross_compiling" = yes; then :
22473 # Try to guess by grepping values from an object file.
22474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22475 /* end confdefs.h. */
22476 short int ascii_mm[] =
22477 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22478 short int ascii_ii[] =
22479 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22480 int use_ascii (int i) {
22481 return ascii_mm[i] + ascii_ii[i];
22482 }
22483 short int ebcdic_ii[] =
22484 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22485 short int ebcdic_mm[] =
22486 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22487 int use_ebcdic (int i) {
22488 return ebcdic_mm[i] + ebcdic_ii[i];
22489 }
22490 extern int foo;
22491
22492 int
22493 main ()
22494 {
22495 return use_ascii (foo) == use_ebcdic (foo);
22496 ;
22497 return 0;
22498 }
22499 _ACEOF
22500 if ac_fn_c_try_compile "$LINENO"; then :
22501 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22502 ac_cv_c_bigendian=yes
22503 fi
22504 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22505 if test "$ac_cv_c_bigendian" = unknown; then
22506 ac_cv_c_bigendian=no
22507 else
22508 # finding both strings is unlikely to happen, but who knows?
22509 ac_cv_c_bigendian=unknown
22510 fi
22511 fi
22512 fi
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 else
22515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22516 /* end confdefs.h. */
22517 $ac_includes_default
22518 int
22519 main ()
22520 {
22521
22522 /* Are we little or big endian? From Harbison&Steele. */
22523 union
22524 {
22525 long int l;
22526 char c[sizeof (long int)];
22527 } u;
22528 u.l = 1;
22529 return u.c[sizeof (long int) - 1] == 1;
22530
22531 ;
22532 return 0;
22533 }
22534 _ACEOF
22535 if ac_fn_c_try_run "$LINENO"; then :
22536 ac_cv_c_bigendian=no
22537 else
22538 ac_cv_c_bigendian=yes
22539 fi
22540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22541 conftest.$ac_objext conftest.beam conftest.$ac_ext
22542 fi
22543
22544 fi
22545 fi
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22547 $as_echo "$ac_cv_c_bigendian" >&6; }
22548 case $ac_cv_c_bigendian in #(
22549 yes)
22550 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22551 ;; #(
22552 no)
22553 ;; #(
22554 universal)
22555
22556 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22557
22558 ;; #(
22559 *)
22560 as_fn_error $? "unknown endianness
22561 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22562 esac
22563
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22565 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22566 if ${ac_cv_c_const+:} false; then :
22567 $as_echo_n "(cached) " >&6
22568 else
22569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22570 /* end confdefs.h. */
22571
22572 int
22573 main ()
22574 {
22575
22576 #ifndef __cplusplus
22577 /* Ultrix mips cc rejects this sort of thing. */
22578 typedef int charset[2];
22579 const charset cs = { 0, 0 };
22580 /* SunOS 4.1.1 cc rejects this. */
22581 char const *const *pcpcc;
22582 char **ppc;
22583 /* NEC SVR4.0.2 mips cc rejects this. */
22584 struct point {int x, y;};
22585 static struct point const zero = {0,0};
22586 /* AIX XL C 1.02.0.0 rejects this.
22587 It does not let you subtract one const X* pointer from another in
22588 an arm of an if-expression whose if-part is not a constant
22589 expression */
22590 const char *g = "string";
22591 pcpcc = &g + (g ? g-g : 0);
22592 /* HPUX 7.0 cc rejects these. */
22593 ++pcpcc;
22594 ppc = (char**) pcpcc;
22595 pcpcc = (char const *const *) ppc;
22596 { /* SCO 3.2v4 cc rejects this sort of thing. */
22597 char tx;
22598 char *t = &tx;
22599 char const *s = 0 ? (char *) 0 : (char const *) 0;
22600
22601 *t++ = 0;
22602 if (s) return 0;
22603 }
22604 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22605 int x[] = {25, 17};
22606 const int *foo = &x[0];
22607 ++foo;
22608 }
22609 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22610 typedef const int *iptr;
22611 iptr p = 0;
22612 ++p;
22613 }
22614 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22615 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22616 struct s { int j; const int *ap[3]; } bx;
22617 struct s *b = &bx; b->j = 5;
22618 }
22619 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22620 const int foo = 10;
22621 if (!foo) return 0;
22622 }
22623 return !cs[0] && !zero.x;
22624 #endif
22625
22626 ;
22627 return 0;
22628 }
22629 _ACEOF
22630 if ac_fn_c_try_compile "$LINENO"; then :
22631 ac_cv_c_const=yes
22632 else
22633 ac_cv_c_const=no
22634 fi
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 fi
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22638 $as_echo "$ac_cv_c_const" >&6; }
22639 if test $ac_cv_c_const = no; then
22640
22641 $as_echo "#define const /**/" >>confdefs.h
22642
22643 fi
22644
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22646 $as_echo_n "checking for inline... " >&6; }
22647 if ${ac_cv_c_inline+:} false; then :
22648 $as_echo_n "(cached) " >&6
22649 else
22650 ac_cv_c_inline=no
22651 for ac_kw in inline __inline__ __inline; do
22652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22653 /* end confdefs.h. */
22654 #ifndef __cplusplus
22655 typedef int foo_t;
22656 static $ac_kw foo_t static_foo () {return 0; }
22657 $ac_kw foo_t foo () {return 0; }
22658 #endif
22659
22660 _ACEOF
22661 if ac_fn_c_try_compile "$LINENO"; then :
22662 ac_cv_c_inline=$ac_kw
22663 fi
22664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22665 test "$ac_cv_c_inline" != no && break
22666 done
22667
22668 fi
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22670 $as_echo "$ac_cv_c_inline" >&6; }
22671
22672 case $ac_cv_c_inline in
22673 inline | yes) ;;
22674 *)
22675 case $ac_cv_c_inline in
22676 no) ac_val=;;
22677 *) ac_val=$ac_cv_c_inline;;
22678 esac
22679 cat >>confdefs.h <<_ACEOF
22680 #ifndef __cplusplus
22681 #define inline $ac_val
22682 #endif
22683 _ACEOF
22684 ;;
22685 esac
22686
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22688 $as_echo_n "checking for working volatile... " >&6; }
22689 if ${ac_cv_c_volatile+:} false; then :
22690 $as_echo_n "(cached) " >&6
22691 else
22692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22693 /* end confdefs.h. */
22694
22695 int
22696 main ()
22697 {
22698
22699 volatile int x;
22700 int * volatile y = (int *) 0;
22701 return !x && !y;
22702 ;
22703 return 0;
22704 }
22705 _ACEOF
22706 if ac_fn_c_try_compile "$LINENO"; then :
22707 ac_cv_c_volatile=yes
22708 else
22709 ac_cv_c_volatile=no
22710 fi
22711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22712 fi
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22714 $as_echo "$ac_cv_c_volatile" >&6; }
22715 if test $ac_cv_c_volatile = no; then
22716
22717 $as_echo "#define volatile /**/" >>confdefs.h
22718
22719 fi
22720
22721 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22722 if test "x$ac_cv_type_mode_t" = xyes; then :
22723
22724 else
22725
22726 cat >>confdefs.h <<_ACEOF
22727 #define mode_t int
22728 _ACEOF
22729
22730 fi
22731
22732 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22733 if test "x$ac_cv_type_pid_t" = xyes; then :
22734
22735 else
22736
22737 cat >>confdefs.h <<_ACEOF
22738 #define pid_t int
22739 _ACEOF
22740
22741 fi
22742
22743 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22744 if test "x$ac_cv_type_size_t" = xyes; then :
22745
22746 else
22747
22748 cat >>confdefs.h <<_ACEOF
22749 #define size_t unsigned int
22750 _ACEOF
22751
22752 fi
22753
22754
22755
22756 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
22757 if test "x$ac_cv_type_u_int8_t" = xyes; then :
22758
22759 else
22760
22761
22762 cat >>confdefs.h <<_ACEOF
22763 #define u_int8_t uint8_t
22764 _ACEOF
22765
22766
22767 fi
22768
22769
22770
22771 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
22772 if test "x$ac_cv_type_u_int16_t" = xyes; then :
22773
22774 else
22775
22776
22777 cat >>confdefs.h <<_ACEOF
22778 #define u_int16_t uint16_t
22779 _ACEOF
22780
22781
22782 fi
22783
22784
22785
22786 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
22787 if test "x$ac_cv_type_u_int32_t" = xyes; then :
22788
22789 else
22790
22791
22792 cat >>confdefs.h <<_ACEOF
22793 #define u_int32_t uint32_t
22794 _ACEOF
22795
22796
22797 fi
22798
22799
22800
22801 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
22802 if test "x$ac_cv_type_u_int64_t" = xyes; then :
22803
22804 else
22805
22806
22807 cat >>confdefs.h <<_ACEOF
22808 #define u_int64_t uint64_t
22809 _ACEOF
22810
22811
22812 fi
22813
22814
22815
22816
22817 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22818 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
22819
22820 else
22821
22822
22823 cat >>confdefs.h <<_ACEOF
22824 #define ptrdiff_t int
22825 _ACEOF
22826
22827
22828 fi
22829
22830
22831 # The cast to long int works around a bug in the HP C Compiler
22832 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22833 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22834 # This bug is HP SR number 8606223364.
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
22836 $as_echo_n "checking size of unsigned int... " >&6; }
22837 if ${ac_cv_sizeof_unsigned_int+:} false; then :
22838 $as_echo_n "(cached) " >&6
22839 else
22840 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
22841
22842 else
22843 if test "$ac_cv_type_unsigned_int" = yes; then
22844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22846 as_fn_error 77 "cannot compute sizeof (unsigned int)
22847 See \`config.log' for more details" "$LINENO" 5; }
22848 else
22849 ac_cv_sizeof_unsigned_int=0
22850 fi
22851 fi
22852
22853 fi
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
22855 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22856
22857
22858
22859 cat >>confdefs.h <<_ACEOF
22860 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22861 _ACEOF
22862
22863
22864 # The cast to long int works around a bug in the HP C Compiler
22865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22867 # This bug is HP SR number 8606223364.
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
22869 $as_echo_n "checking size of unsigned long... " >&6; }
22870 if ${ac_cv_sizeof_unsigned_long+:} false; then :
22871 $as_echo_n "(cached) " >&6
22872 else
22873 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
22874
22875 else
22876 if test "$ac_cv_type_unsigned_long" = yes; then
22877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22879 as_fn_error 77 "cannot compute sizeof (unsigned long)
22880 See \`config.log' for more details" "$LINENO" 5; }
22881 else
22882 ac_cv_sizeof_unsigned_long=0
22883 fi
22884 fi
22885
22886 fi
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
22888 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22889
22890
22891
22892 cat >>confdefs.h <<_ACEOF
22893 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22894 _ACEOF
22895
22896
22897
22898 for ac_header in unistd.h
22899 do :
22900 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22901 if test "x$ac_cv_header_unistd_h" = xyes; then :
22902 cat >>confdefs.h <<_ACEOF
22903 #define HAVE_UNISTD_H 1
22904 _ACEOF
22905
22906 fi
22907
22908 done
22909
22910 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
22911 #include <signal.h>
22912 /* NetBSD declares sys_siglist in unistd.h. */
22913 #if HAVE_UNISTD_H
22914 # include <unistd.h>
22915 #endif
22916
22917 "
22918 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
22919 ac_have_decl=1
22920 else
22921 ac_have_decl=0
22922 fi
22923
22924 cat >>confdefs.h <<_ACEOF
22925 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
22926 _ACEOF
22927
22928
22929
22930 ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "
22931 #include <errno.h>
22932 /* glibc declares sys_errlist in stdio.h. */
22933 #include <stdio.h>
22934
22935 "
22936 if test "x$ac_cv_have_decl_sys_errlist" = xyes; then :
22937 ac_have_decl=1
22938 else
22939 ac_have_decl=0
22940 fi
22941
22942 cat >>confdefs.h <<_ACEOF
22943 #define HAVE_DECL_SYS_ERRLIST $ac_have_decl
22944 _ACEOF
22945 ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "
22946 #include <errno.h>
22947 /* glibc declares sys_errlist in stdio.h. */
22948 #include <stdio.h>
22949
22950 "
22951 if test "x$ac_cv_have_decl_sys_nerr" = xyes; then :
22952 ac_have_decl=1
22953 else
22954 ac_have_decl=0
22955 fi
22956
22957 cat >>confdefs.h <<_ACEOF
22958 #define HAVE_DECL_SYS_NERR $ac_have_decl
22959 _ACEOF
22960
22961 if test "x$ac_cv_have_decl_sys_errlist" = "xyes" && \
22962 test "x$ac_cv_have_decl_sys_nerr" = "xyes"; then
22963 HAVE_SYS_ERRLIST_TRUE=
22964 HAVE_SYS_ERRLIST_FALSE='#'
22965 else
22966 HAVE_SYS_ERRLIST_TRUE='#'
22967 HAVE_SYS_ERRLIST_FALSE=
22968 fi
22969
22970
22971
22972 # Checks for library functions.
22973
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22975 $as_echo_n "checking for va_copy... " >&6; }
22976 if ${dpkg_cv_va_copy+:} false; then :
22977 $as_echo_n "(cached) " >&6
22978 else
22979
22980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22981 /* end confdefs.h. */
22982
22983
22984 #include <stdarg.h>
22985
22986 int
22987 main ()
22988 {
22989
22990 va_list v1, v2;
22991 va_copy(v1, v2);
22992
22993 ;
22994 return 0;
22995 }
22996
22997 _ACEOF
22998 if ac_fn_c_try_compile "$LINENO"; then :
22999
23000 dpkg_cv_va_copy=yes
23001
23002 else
23003
23004 dpkg_cv_va_copy=no
23005
23006 fi
23007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23008
23009 fi
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_va_copy" >&5
23011 $as_echo "$dpkg_cv_va_copy" >&6; }
23012 if test "x$dpkg_cv_va_copy" = "xyes"; then :
23013
23014
23015 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
23016
23017
23018 fi
23019
23020
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 snprintf functions" >&5
23022 $as_echo_n "checking for C99 snprintf functions... " >&6; }
23023 if ${dpkg_cv_c99_snprintf+:} false; then :
23024 $as_echo_n "(cached) " >&6
23025 else
23026
23027 if test "$cross_compiling" = yes; then :
23028
23029 dpkg_cv_c99_snprintf=maybe
23030
23031 else
23032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23033 /* end confdefs.h. */
23034
23035
23036 #include <stdarg.h>
23037 #include <stdio.h>
23038 #include <string.h>
23039 int test_vsnprintf(const char *fmt, ...)
23040 {
23041 int n;
23042 va_list args;
23043
23044 va_start(args, fmt);
23045 n = vsnprintf(NULL, 0, fmt, args);
23046 va_end(args);
23047
23048 return n;
23049 }
23050 int main()
23051 {
23052 int n;
23053
23054 n = snprintf(NULL, 0, "format %s %d", "string", 10);
23055 if (n != strlen("format string 10"))
23056 return 1;
23057
23058 n = test_vsnprintf("format %s %d", "string", 10);
23059 if (n != strlen("format string 10"))
23060 return 1;
23061
23062 return 0;
23063 }
23064
23065
23066 _ACEOF
23067 if ac_fn_c_try_run "$LINENO"; then :
23068
23069 dpkg_cv_c99_snprintf=yes
23070
23071 else
23072
23073 dpkg_cv_c99_snprintf=no
23074
23075 fi
23076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23077 conftest.$ac_objext conftest.beam conftest.$ac_ext
23078 fi
23079
23080
23081 if test "x$dpkg_cv_c99_snprintf" = "xmaybe"; then :
23082
23083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23084 /* end confdefs.h. */
23085
23086
23087 #define _GNU_SOURCE 1
23088 #include <unistd.h>
23089 #if !defined(_XOPEN_VERSION) || _XOPEN_VERSION < 600
23090 #error "snprintf() has conflicting semantics with C99 on SUSv2 and earlier"
23091 #endif
23092
23093
23094 _ACEOF
23095 if ac_fn_c_try_compile "$LINENO"; then :
23096
23097 dpkg_cv_c99_snprintf=yes
23098
23099 else
23100
23101 dpkg_cv_c99_snprintf=no
23102
23103 fi
23104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105
23106 fi
23107
23108 fi
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_c99_snprintf" >&5
23110 $as_echo "$dpkg_cv_c99_snprintf" >&6; }
23111 if test "x$dpkg_cv_c99_snprintf" = "xyes"; then :
23112
23113
23114 $as_echo "#define HAVE_C99_SNPRINTF 1" >>confdefs.h
23115
23116
23117 fi
23118 if test "x$dpkg_cv_c99_snprintf" = "xyes"; then
23119 HAVE_C99_SNPRINTF_TRUE=
23120 HAVE_C99_SNPRINTF_FALSE='#'
23121 else
23122 HAVE_C99_SNPRINTF_TRUE='#'
23123 HAVE_C99_SNPRINTF_FALSE=
23124 fi
23125
23126
23127
23128 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "#include <stddef.h>
23129 "
23130 if test "x$ac_cv_have_decl_offsetof" = xyes; then :
23131
23132
23133 $as_echo "#define HAVE_OFFSETOF 1" >>confdefs.h
23134
23135
23136 fi
23137
23138
23139
23140 ac_fn_c_check_decl "$LINENO" "makedev" "ac_cv_have_decl_makedev" "#include <sys/types.h>
23141 "
23142 if test "x$ac_cv_have_decl_makedev" = xyes; then :
23143
23144
23145 $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
23146
23147
23148 fi
23149
23150
23151
23152 ac_fn_c_check_decl "$LINENO" "WCOREDUMP" "ac_cv_have_decl_WCOREDUMP" "#include <sys/wait.h>
23153 "
23154 if test "x$ac_cv_have_decl_WCOREDUMP" = xyes; then :
23155
23156
23157 $as_echo "#define HAVE_WCOREDUMP 1" >>confdefs.h
23158
23159
23160 fi
23161
23162
23163
23164 ac_fn_c_check_decl "$LINENO" "TIOCNOTTY" "ac_cv_have_decl_TIOCNOTTY" "#include <sys/ioctl.h>
23165 "
23166 if test "x$ac_cv_have_decl_TIOCNOTTY" = xyes; then :
23167
23168
23169 $as_echo "#define HAVE_TIOCNOTTY 1" >>confdefs.h
23170
23171
23172 fi
23173
23174
23175
23176 ac_fn_c_check_decl "$LINENO" "O_NOFOLLOW" "ac_cv_have_decl_O_NOFOLLOW" "#include <fcntl.h>
23177 "
23178 if test "x$ac_cv_have_decl_O_NOFOLLOW" = xyes; then :
23179
23180
23181 $as_echo "#define HAVE_O_NOFOLLOW 1" >>confdefs.h
23182
23183
23184 fi
23185
23186
23187
23188 ac_fn_c_check_decl "$LINENO" "F_ALLOCSP64" "ac_cv_have_decl_F_ALLOCSP64" "#include <fcntl.h>
23189 "
23190 if test "x$ac_cv_have_decl_F_ALLOCSP64" = xyes; then :
23191
23192
23193 $as_echo "#define HAVE_F_ALLOCSP64 1" >>confdefs.h
23194
23195
23196 fi
23197
23198
23199
23200 ac_fn_c_check_decl "$LINENO" "F_PREALLOCATE" "ac_cv_have_decl_F_PREALLOCATE" "#include <fcntl.h>
23201 "
23202 if test "x$ac_cv_have_decl_F_PREALLOCATE" = xyes; then :
23203
23204
23205 $as_echo "#define HAVE_F_PREALLOCATE 1" >>confdefs.h
23206
23207
23208 fi
23209
23210
23211
23212 ac_fn_c_check_decl "$LINENO" "P_tmpdir" "ac_cv_have_decl_P_tmpdir" "#include <stdio.h>
23213 "
23214 if test "x$ac_cv_have_decl_P_tmpdir" = xyes; then :
23215
23216
23217 $as_echo "#define HAVE_P_TMPDIR 1" >>confdefs.h
23218
23219
23220 fi
23221
23222
23223
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_short_name" >&5
23225 $as_echo_n "checking for program_invocation_short_name... " >&6; }
23226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23227 /* end confdefs.h. */
23228
23229 #include <errno.h>
23230 int
23231 main ()
23232 {
23233 const char *p = program_invocation_short_name;
23234 ;
23235 return 0;
23236 }
23237
23238 _ACEOF
23239 if ac_fn_c_try_link "$LINENO"; then :
23240
23241
23242 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
23243
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23245 $as_echo "yes" >&6; }
23246
23247 else
23248
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23250 $as_echo "no" >&6; }
23251
23252 fi
23253 rm -f core conftest.err conftest.$ac_objext \
23254 conftest$ac_exeext conftest.$ac_ext
23255
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
23257 $as_echo_n "checking for __progname... " >&6; }
23258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23259 /* end confdefs.h. */
23260
23261 extern char *__progname;
23262 int
23263 main ()
23264 {
23265 printf("%s", __progname);
23266 ;
23267 return 0;
23268 }
23269
23270 _ACEOF
23271 if ac_fn_c_try_link "$LINENO"; then :
23272
23273
23274 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
23275
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23277 $as_echo "yes" >&6; }
23278
23279 else
23280
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23282 $as_echo "no" >&6; }
23283
23284 fi
23285 rm -f core conftest.err conftest.$ac_objext \
23286 conftest$ac_exeext conftest.$ac_ext
23287
23288
23289 for ac_func in \
23290 getopt \
23291 getopt_long \
23292 obstack_free \
23293 strnlen \
23294 strndup \
23295 strerror \
23296 strsignal \
23297 asprintf \
23298 scandir \
23299 alphasort \
23300 unsetenv \
23301
23302 do :
23303 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23304 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23305 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23306 cat >>confdefs.h <<_ACEOF
23307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23308 _ACEOF
23309
23310 fi
23311 done
23312
23313
23314 if test "x$ac_cv_func_getopt" = "xyes"; then
23315 HAVE_GETOPT_TRUE=
23316 HAVE_GETOPT_FALSE='#'
23317 else
23318 HAVE_GETOPT_TRUE='#'
23319 HAVE_GETOPT_FALSE=
23320 fi
23321
23322
23323 if test "x$ac_cv_func_getopt_long" = "xyes"; then
23324 HAVE_GETOPT_LONG_TRUE=
23325 HAVE_GETOPT_LONG_FALSE='#'
23326 else
23327 HAVE_GETOPT_LONG_TRUE='#'
23328 HAVE_GETOPT_LONG_FALSE=
23329 fi
23330
23331
23332 if test "x$ac_cv_func_obstack_free" = "xyes"; then
23333 HAVE_OBSTACK_FREE_TRUE=
23334 HAVE_OBSTACK_FREE_FALSE='#'
23335 else
23336 HAVE_OBSTACK_FREE_TRUE='#'
23337 HAVE_OBSTACK_FREE_FALSE=
23338 fi
23339
23340
23341 if test "x$ac_cv_func_strnlen" = "xyes"; then
23342 HAVE_STRNLEN_TRUE=
23343 HAVE_STRNLEN_FALSE='#'
23344 else
23345 HAVE_STRNLEN_TRUE='#'
23346 HAVE_STRNLEN_FALSE=
23347 fi
23348
23349
23350 if test "x$ac_cv_func_strndup" = "xyes"; then
23351 HAVE_STRNDUP_TRUE=
23352 HAVE_STRNDUP_FALSE='#'
23353 else
23354 HAVE_STRNDUP_TRUE='#'
23355 HAVE_STRNDUP_FALSE=
23356 fi
23357
23358
23359 if test "x$ac_cv_func_strerror" = "xyes"; then
23360 HAVE_STRERROR_TRUE=
23361 HAVE_STRERROR_FALSE='#'
23362 else
23363 HAVE_STRERROR_TRUE='#'
23364 HAVE_STRERROR_FALSE=
23365 fi
23366
23367
23368 if test "x$ac_cv_func_strsignal" = "xyes"; then
23369 HAVE_STRSIGNAL_TRUE=
23370 HAVE_STRSIGNAL_FALSE='#'
23371 else
23372 HAVE_STRSIGNAL_TRUE='#'
23373 HAVE_STRSIGNAL_FALSE=
23374 fi
23375
23376
23377 if test "x$ac_cv_func_asprintf" = "xyes"; then
23378 HAVE_ASPRINTF_TRUE=
23379 HAVE_ASPRINTF_FALSE='#'
23380 else
23381 HAVE_ASPRINTF_TRUE='#'
23382 HAVE_ASPRINTF_FALSE=
23383 fi
23384
23385
23386 if test "x$ac_cv_func_scandir" = "xyes"; then
23387 HAVE_SCANDIR_TRUE=
23388 HAVE_SCANDIR_FALSE='#'
23389 else
23390 HAVE_SCANDIR_TRUE='#'
23391 HAVE_SCANDIR_FALSE=
23392 fi
23393
23394
23395 if test "x$ac_cv_func_alphasort" = "xyes"; then
23396 HAVE_ALPHASORT_TRUE=
23397 HAVE_ALPHASORT_FALSE='#'
23398 else
23399 HAVE_ALPHASORT_TRUE='#'
23400 HAVE_ALPHASORT_FALSE=
23401 fi
23402
23403
23404 if test "x$ac_cv_func_unsetenv" = "xyes"; then
23405 HAVE_UNSETENV_TRUE=
23406 HAVE_UNSETENV_FALSE='#'
23407 else
23408 HAVE_UNSETENV_TRUE='#'
23409 HAVE_UNSETENV_FALSE=
23410 fi
23411
23412
23413
23414 for ac_func in memcpy lchown
23415 do :
23416 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23417 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23418 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23419 cat >>confdefs.h <<_ACEOF
23420 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23421 _ACEOF
23422
23423 else
23424 as_fn_error $? "missing required function" "$LINENO" 5
23425 fi
23426 done
23427
23428 for ac_func in \
23429 strtoimax \
23430 isascii \
23431 setsid \
23432 getdtablesize \
23433 getprogname \
23434 getexecname \
23435 lutimes \
23436 fallocate \
23437 posix_fallocate \
23438 posix_fadvise \
23439
23440 do :
23441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23443 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23444 cat >>confdefs.h <<_ACEOF
23445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23446 _ACEOF
23447
23448 fi
23449 done
23450
23451
23452 if test "x$build_dselect" = "xyes"; then :
23453
23454 ac_ext=cpp
23455 ac_cpp='$CXXCPP $CPPFLAGS'
23456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23459
23460 for ac_func in __cxa_pure_virtual
23461 do :
23462 ac_fn_cxx_check_func "$LINENO" "__cxa_pure_virtual" "ac_cv_func___cxa_pure_virtual"
23463 if test "x$ac_cv_func___cxa_pure_virtual" = xyes; then :
23464 cat >>confdefs.h <<_ACEOF
23465 #define HAVE___CXA_PURE_VIRTUAL 1
23466 _ACEOF
23467
23468 fi
23469 done
23470
23471 ac_ext=c
23472 ac_cpp='$CPP $CPPFLAGS'
23473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23476
23477
23478 fi
23479
23480
23481 # Check whether --enable-mmap was given.
23482 if test "${enable_mmap+set}" = set; then :
23483 enableval=$enable_mmap;
23484 else
23485 enable_mmap=no
23486 fi
23487
23488
23489 if test "x$enable_mmap" = "xyes"; then :
23490
23491 for ac_func in mmap
23492 do :
23493 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
23494 if test "x$ac_cv_func_mmap" = xyes; then :
23495 cat >>confdefs.h <<_ACEOF
23496 #define HAVE_MMAP 1
23497 _ACEOF
23498
23499 fi
23500 done
23501
23502
23503 $as_echo "#define USE_MMAP 1" >>confdefs.h
23504
23505
23506 fi
23507
23508
23509 # Check whether --enable-disk-preallocate was given.
23510 if test "${enable_disk_preallocate+set}" = set; then :
23511 enableval=$enable_disk_preallocate;
23512 else
23513 enable_disk_preallocate=no
23514 fi
23515
23516
23517 if test "x$enable_disk_preallocate" = "xyes"; then :
23518
23519
23520 $as_echo "#define USE_DISK_PREALLOCATE 1" >>confdefs.h
23521
23522
23523 fi
23524
23525
23526 # Checks for the build machinery.
23527
23528 $as_echo "#define LIBDPKG_VOLATILE_API 1" >>confdefs.h
23529
23530
23531 # Check whether --enable-compiler-warnings was given.
23532 if test "${enable_compiler_warnings+set}" = set; then :
23533 enableval=$enable_compiler_warnings;
23534 else
23535 enable_compiler_warnings=yes
23536 fi
23537
23538
23539 if test "x$enable_compiler_warnings" = "xyes"; then :
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wall" >&5
23553 $as_echo_n "checking whether $CC accepts -Wall... " >&6; }
23554 if ${dpkg_cv_cflags__Wall+:} false; then :
23555 $as_echo_n "(cached) " >&6
23556 else
23557
23558 dpkg_save_CFLAGS=$CFLAGS
23559 CFLAGS="-Werror -Wall"
23560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23561 /* end confdefs.h. */
23562
23563
23564
23565 _ACEOF
23566 if ac_fn_c_try_compile "$LINENO"; then :
23567
23568 dpkg_cv_cflags__Wall=yes
23569
23570 else
23571
23572 dpkg_cv_cflags__Wall=no
23573
23574 fi
23575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23576 CFLAGS=$dpkg_save_CFLAGS
23577
23578 fi
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wall" >&5
23580 $as_echo "$dpkg_cv_cflags__Wall" >&6; }
23581 if test "x$dpkg_cv_cflags__Wall" = xyes; then :
23582
23583 as_fn_append COMPILER_CFLAGS " -Wall"
23584
23585 fi
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wextra" >&5
23599 $as_echo_n "checking whether $CC accepts -Wextra... " >&6; }
23600 if ${dpkg_cv_cflags__Wextra+:} false; then :
23601 $as_echo_n "(cached) " >&6
23602 else
23603
23604 dpkg_save_CFLAGS=$CFLAGS
23605 CFLAGS="-Werror -Wextra"
23606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23607 /* end confdefs.h. */
23608
23609
23610
23611 _ACEOF
23612 if ac_fn_c_try_compile "$LINENO"; then :
23613
23614 dpkg_cv_cflags__Wextra=yes
23615
23616 else
23617
23618 dpkg_cv_cflags__Wextra=no
23619
23620 fi
23621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23622 CFLAGS=$dpkg_save_CFLAGS
23623
23624 fi
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wextra" >&5
23626 $as_echo "$dpkg_cv_cflags__Wextra" >&6; }
23627 if test "x$dpkg_cv_cflags__Wextra" = xyes; then :
23628
23629 as_fn_append COMPILER_CFLAGS " -Wextra"
23630
23631 fi
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wno-unused-parameter" >&5
23645 $as_echo_n "checking whether $CC accepts -Wno-unused-parameter... " >&6; }
23646 if ${dpkg_cv_cflags__Wno_unused_parameter+:} false; then :
23647 $as_echo_n "(cached) " >&6
23648 else
23649
23650 dpkg_save_CFLAGS=$CFLAGS
23651 CFLAGS="-Werror -Wunused-parameter"
23652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23653 /* end confdefs.h. */
23654
23655
23656
23657 _ACEOF
23658 if ac_fn_c_try_compile "$LINENO"; then :
23659
23660 dpkg_cv_cflags__Wno_unused_parameter=yes
23661
23662 else
23663
23664 dpkg_cv_cflags__Wno_unused_parameter=no
23665
23666 fi
23667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23668 CFLAGS=$dpkg_save_CFLAGS
23669
23670 fi
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wno_unused_parameter" >&5
23672 $as_echo "$dpkg_cv_cflags__Wno_unused_parameter" >&6; }
23673 if test "x$dpkg_cv_cflags__Wno_unused_parameter" = xyes; then :
23674
23675 as_fn_append COMPILER_CFLAGS " -Wno-unused-parameter"
23676
23677 fi
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wno-missing-field-initializers" >&5
23691 $as_echo_n "checking whether $CC accepts -Wno-missing-field-initializers... " >&6; }
23692 if ${dpkg_cv_cflags__Wno_missing_field_initializers+:} false; then :
23693 $as_echo_n "(cached) " >&6
23694 else
23695
23696 dpkg_save_CFLAGS=$CFLAGS
23697 CFLAGS="-Werror -Wmissing-field-initializers"
23698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23699 /* end confdefs.h. */
23700
23701
23702
23703 _ACEOF
23704 if ac_fn_c_try_compile "$LINENO"; then :
23705
23706 dpkg_cv_cflags__Wno_missing_field_initializers=yes
23707
23708 else
23709
23710 dpkg_cv_cflags__Wno_missing_field_initializers=no
23711
23712 fi
23713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23714 CFLAGS=$dpkg_save_CFLAGS
23715
23716 fi
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wno_missing_field_initializers" >&5
23718 $as_echo "$dpkg_cv_cflags__Wno_missing_field_initializers" >&6; }
23719 if test "x$dpkg_cv_cflags__Wno_missing_field_initializers" = xyes; then :
23720
23721 as_fn_append COMPILER_CFLAGS " -Wno-missing-field-initializers"
23722
23723 fi
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wno-tautological-constant-out-of-range-compare" >&5
23737 $as_echo_n "checking whether $CC accepts -Wno-tautological-constant-out-of-range-compare... " >&6; }
23738 if ${dpkg_cv_cflags__Wno_tautological_constant_out_of_range_compare+:} false; then :
23739 $as_echo_n "(cached) " >&6
23740 else
23741
23742 dpkg_save_CFLAGS=$CFLAGS
23743 CFLAGS="-Werror -Wtautological-constant-out-of-range-compare"
23744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23745 /* end confdefs.h. */
23746
23747
23748
23749 _ACEOF
23750 if ac_fn_c_try_compile "$LINENO"; then :
23751
23752 dpkg_cv_cflags__Wno_tautological_constant_out_of_range_compare=yes
23753
23754 else
23755
23756 dpkg_cv_cflags__Wno_tautological_constant_out_of_range_compare=no
23757
23758 fi
23759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23760 CFLAGS=$dpkg_save_CFLAGS
23761
23762 fi
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wno_tautological_constant_out_of_range_compare" >&5
23764 $as_echo "$dpkg_cv_cflags__Wno_tautological_constant_out_of_range_compare" >&6; }
23765 if test "x$dpkg_cv_cflags__Wno_tautological_constant_out_of_range_compare" = xyes; then :
23766
23767 as_fn_append COMPILER_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
23768
23769 fi
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wmissing-declarations" >&5
23783 $as_echo_n "checking whether $CC accepts -Wmissing-declarations... " >&6; }
23784 if ${dpkg_cv_cflags__Wmissing_declarations+:} false; then :
23785 $as_echo_n "(cached) " >&6
23786 else
23787
23788 dpkg_save_CFLAGS=$CFLAGS
23789 CFLAGS="-Werror -Wmissing-declarations"
23790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23791 /* end confdefs.h. */
23792
23793
23794
23795 _ACEOF
23796 if ac_fn_c_try_compile "$LINENO"; then :
23797
23798 dpkg_cv_cflags__Wmissing_declarations=yes
23799
23800 else
23801
23802 dpkg_cv_cflags__Wmissing_declarations=no
23803
23804 fi
23805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23806 CFLAGS=$dpkg_save_CFLAGS
23807
23808 fi
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wmissing_declarations" >&5
23810 $as_echo "$dpkg_cv_cflags__Wmissing_declarations" >&6; }
23811 if test "x$dpkg_cv_cflags__Wmissing_declarations" = xyes; then :
23812
23813 as_fn_append COMPILER_CFLAGS " -Wmissing-declarations"
23814
23815 fi
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wmissing-format-attribute" >&5
23829 $as_echo_n "checking whether $CC accepts -Wmissing-format-attribute... " >&6; }
23830 if ${dpkg_cv_cflags__Wmissing_format_attribute+:} false; then :
23831 $as_echo_n "(cached) " >&6
23832 else
23833
23834 dpkg_save_CFLAGS=$CFLAGS
23835 CFLAGS="-Werror -Wmissing-format-attribute"
23836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23837 /* end confdefs.h. */
23838
23839
23840
23841 _ACEOF
23842 if ac_fn_c_try_compile "$LINENO"; then :
23843
23844 dpkg_cv_cflags__Wmissing_format_attribute=yes
23845
23846 else
23847
23848 dpkg_cv_cflags__Wmissing_format_attribute=no
23849
23850 fi
23851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23852 CFLAGS=$dpkg_save_CFLAGS
23853
23854 fi
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wmissing_format_attribute" >&5
23856 $as_echo "$dpkg_cv_cflags__Wmissing_format_attribute" >&6; }
23857 if test "x$dpkg_cv_cflags__Wmissing_format_attribute" = xyes; then :
23858
23859 as_fn_append COMPILER_CFLAGS " -Wmissing-format-attribute"
23860
23861 fi
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wformat -Wformat-security" >&5
23875 $as_echo_n "checking whether $CC accepts -Wformat -Wformat-security... " >&6; }
23876 if ${dpkg_cv_cflags__Wformat__Wformat_security+:} false; then :
23877 $as_echo_n "(cached) " >&6
23878 else
23879
23880 dpkg_save_CFLAGS=$CFLAGS
23881 CFLAGS="-Werror -Wformat -Wformat-security"
23882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23883 /* end confdefs.h. */
23884
23885
23886
23887 _ACEOF
23888 if ac_fn_c_try_compile "$LINENO"; then :
23889
23890 dpkg_cv_cflags__Wformat__Wformat_security=yes
23891
23892 else
23893
23894 dpkg_cv_cflags__Wformat__Wformat_security=no
23895
23896 fi
23897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23898 CFLAGS=$dpkg_save_CFLAGS
23899
23900 fi
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wformat__Wformat_security" >&5
23902 $as_echo "$dpkg_cv_cflags__Wformat__Wformat_security" >&6; }
23903 if test "x$dpkg_cv_cflags__Wformat__Wformat_security" = xyes; then :
23904
23905 as_fn_append COMPILER_CFLAGS " -Wformat -Wformat-security"
23906
23907 fi
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsizeof-array-argument" >&5
23921 $as_echo_n "checking whether $CC accepts -Wsizeof-array-argument... " >&6; }
23922 if ${dpkg_cv_cflags__Wsizeof_array_argument+:} false; then :
23923 $as_echo_n "(cached) " >&6
23924 else
23925
23926 dpkg_save_CFLAGS=$CFLAGS
23927 CFLAGS="-Werror -Wsizeof-array-argument"
23928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23929 /* end confdefs.h. */
23930
23931
23932
23933 _ACEOF
23934 if ac_fn_c_try_compile "$LINENO"; then :
23935
23936 dpkg_cv_cflags__Wsizeof_array_argument=yes
23937
23938 else
23939
23940 dpkg_cv_cflags__Wsizeof_array_argument=no
23941
23942 fi
23943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23944 CFLAGS=$dpkg_save_CFLAGS
23945
23946 fi
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wsizeof_array_argument" >&5
23948 $as_echo "$dpkg_cv_cflags__Wsizeof_array_argument" >&6; }
23949 if test "x$dpkg_cv_cflags__Wsizeof_array_argument" = xyes; then :
23950
23951 as_fn_append COMPILER_CFLAGS " -Wsizeof-array-argument"
23952
23953 fi
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wpointer-arith" >&5
23967 $as_echo_n "checking whether $CC accepts -Wpointer-arith... " >&6; }
23968 if ${dpkg_cv_cflags__Wpointer_arith+:} false; then :
23969 $as_echo_n "(cached) " >&6
23970 else
23971
23972 dpkg_save_CFLAGS=$CFLAGS
23973 CFLAGS="-Werror -Wpointer-arith"
23974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23975 /* end confdefs.h. */
23976
23977
23978
23979 _ACEOF
23980 if ac_fn_c_try_compile "$LINENO"; then :
23981
23982 dpkg_cv_cflags__Wpointer_arith=yes
23983
23984 else
23985
23986 dpkg_cv_cflags__Wpointer_arith=no
23987
23988 fi
23989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23990 CFLAGS=$dpkg_save_CFLAGS
23991
23992 fi
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wpointer_arith" >&5
23994 $as_echo "$dpkg_cv_cflags__Wpointer_arith" >&6; }
23995 if test "x$dpkg_cv_cflags__Wpointer_arith" = xyes; then :
23996
23997 as_fn_append COMPILER_CFLAGS " -Wpointer-arith"
23998
23999 fi
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wlogical-op" >&5
24013 $as_echo_n "checking whether $CC accepts -Wlogical-op... " >&6; }
24014 if ${dpkg_cv_cflags__Wlogical_op+:} false; then :
24015 $as_echo_n "(cached) " >&6
24016 else
24017
24018 dpkg_save_CFLAGS=$CFLAGS
24019 CFLAGS="-Werror -Wlogical-op"
24020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24021 /* end confdefs.h. */
24022
24023
24024
24025 _ACEOF
24026 if ac_fn_c_try_compile "$LINENO"; then :
24027
24028 dpkg_cv_cflags__Wlogical_op=yes
24029
24030 else
24031
24032 dpkg_cv_cflags__Wlogical_op=no
24033
24034 fi
24035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036 CFLAGS=$dpkg_save_CFLAGS
24037
24038 fi
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wlogical_op" >&5
24040 $as_echo "$dpkg_cv_cflags__Wlogical_op" >&6; }
24041 if test "x$dpkg_cv_cflags__Wlogical_op" = xyes; then :
24042
24043 as_fn_append COMPILER_CFLAGS " -Wlogical-op"
24044
24045 fi
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wlogical-not-parentheses" >&5
24059 $as_echo_n "checking whether $CC accepts -Wlogical-not-parentheses... " >&6; }
24060 if ${dpkg_cv_cflags__Wlogical_not_parentheses+:} false; then :
24061 $as_echo_n "(cached) " >&6
24062 else
24063
24064 dpkg_save_CFLAGS=$CFLAGS
24065 CFLAGS="-Werror -Wlogical-not-parentheses"
24066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24067 /* end confdefs.h. */
24068
24069
24070
24071 _ACEOF
24072 if ac_fn_c_try_compile "$LINENO"; then :
24073
24074 dpkg_cv_cflags__Wlogical_not_parentheses=yes
24075
24076 else
24077
24078 dpkg_cv_cflags__Wlogical_not_parentheses=no
24079
24080 fi
24081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24082 CFLAGS=$dpkg_save_CFLAGS
24083
24084 fi
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wlogical_not_parentheses" >&5
24086 $as_echo "$dpkg_cv_cflags__Wlogical_not_parentheses" >&6; }
24087 if test "x$dpkg_cv_cflags__Wlogical_not_parentheses" = xyes; then :
24088
24089 as_fn_append COMPILER_CFLAGS " -Wlogical-not-parentheses"
24090
24091 fi
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wswitch-bool" >&5
24105 $as_echo_n "checking whether $CC accepts -Wswitch-bool... " >&6; }
24106 if ${dpkg_cv_cflags__Wswitch_bool+:} false; then :
24107 $as_echo_n "(cached) " >&6
24108 else
24109
24110 dpkg_save_CFLAGS=$CFLAGS
24111 CFLAGS="-Werror -Wswitch-bool"
24112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24113 /* end confdefs.h. */
24114
24115
24116
24117 _ACEOF
24118 if ac_fn_c_try_compile "$LINENO"; then :
24119
24120 dpkg_cv_cflags__Wswitch_bool=yes
24121
24122 else
24123
24124 dpkg_cv_cflags__Wswitch_bool=no
24125
24126 fi
24127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24128 CFLAGS=$dpkg_save_CFLAGS
24129
24130 fi
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wswitch_bool" >&5
24132 $as_echo "$dpkg_cv_cflags__Wswitch_bool" >&6; }
24133 if test "x$dpkg_cv_cflags__Wswitch_bool" = xyes; then :
24134
24135 as_fn_append COMPILER_CFLAGS " -Wswitch-bool"
24136
24137 fi
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wvla" >&5
24151 $as_echo_n "checking whether $CC accepts -Wvla... " >&6; }
24152 if ${dpkg_cv_cflags__Wvla+:} false; then :
24153 $as_echo_n "(cached) " >&6
24154 else
24155
24156 dpkg_save_CFLAGS=$CFLAGS
24157 CFLAGS="-Werror -Wvla"
24158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24159 /* end confdefs.h. */
24160
24161
24162
24163 _ACEOF
24164 if ac_fn_c_try_compile "$LINENO"; then :
24165
24166 dpkg_cv_cflags__Wvla=yes
24167
24168 else
24169
24170 dpkg_cv_cflags__Wvla=no
24171
24172 fi
24173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24174 CFLAGS=$dpkg_save_CFLAGS
24175
24176 fi
24177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wvla" >&5
24178 $as_echo "$dpkg_cv_cflags__Wvla" >&6; }
24179 if test "x$dpkg_cv_cflags__Wvla" = xyes; then :
24180
24181 as_fn_append COMPILER_CFLAGS " -Wvla"
24182
24183 fi
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Winit-self" >&5
24197 $as_echo_n "checking whether $CC accepts -Winit-self... " >&6; }
24198 if ${dpkg_cv_cflags__Winit_self+:} false; then :
24199 $as_echo_n "(cached) " >&6
24200 else
24201
24202 dpkg_save_CFLAGS=$CFLAGS
24203 CFLAGS="-Werror -Winit-self"
24204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24205 /* end confdefs.h. */
24206
24207
24208
24209 _ACEOF
24210 if ac_fn_c_try_compile "$LINENO"; then :
24211
24212 dpkg_cv_cflags__Winit_self=yes
24213
24214 else
24215
24216 dpkg_cv_cflags__Winit_self=no
24217
24218 fi
24219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24220 CFLAGS=$dpkg_save_CFLAGS
24221
24222 fi
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Winit_self" >&5
24224 $as_echo "$dpkg_cv_cflags__Winit_self" >&6; }
24225 if test "x$dpkg_cv_cflags__Winit_self" = xyes; then :
24226
24227 as_fn_append COMPILER_CFLAGS " -Winit-self"
24228
24229 fi
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wwrite-strings" >&5
24243 $as_echo_n "checking whether $CC accepts -Wwrite-strings... " >&6; }
24244 if ${dpkg_cv_cflags__Wwrite_strings+:} false; then :
24245 $as_echo_n "(cached) " >&6
24246 else
24247
24248 dpkg_save_CFLAGS=$CFLAGS
24249 CFLAGS="-Werror -Wwrite-strings"
24250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24251 /* end confdefs.h. */
24252
24253
24254
24255 _ACEOF
24256 if ac_fn_c_try_compile "$LINENO"; then :
24257
24258 dpkg_cv_cflags__Wwrite_strings=yes
24259
24260 else
24261
24262 dpkg_cv_cflags__Wwrite_strings=no
24263
24264 fi
24265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24266 CFLAGS=$dpkg_save_CFLAGS
24267
24268 fi
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wwrite_strings" >&5
24270 $as_echo "$dpkg_cv_cflags__Wwrite_strings" >&6; }
24271 if test "x$dpkg_cv_cflags__Wwrite_strings" = xyes; then :
24272
24273 as_fn_append COMPILER_CFLAGS " -Wwrite-strings"
24274
24275 fi
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wcast-align" >&5
24289 $as_echo_n "checking whether $CC accepts -Wcast-align... " >&6; }
24290 if ${dpkg_cv_cflags__Wcast_align+:} false; then :
24291 $as_echo_n "(cached) " >&6
24292 else
24293
24294 dpkg_save_CFLAGS=$CFLAGS
24295 CFLAGS="-Werror -Wcast-align"
24296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24297 /* end confdefs.h. */
24298
24299
24300
24301 _ACEOF
24302 if ac_fn_c_try_compile "$LINENO"; then :
24303
24304 dpkg_cv_cflags__Wcast_align=yes
24305
24306 else
24307
24308 dpkg_cv_cflags__Wcast_align=no
24309
24310 fi
24311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24312 CFLAGS=$dpkg_save_CFLAGS
24313
24314 fi
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wcast_align" >&5
24316 $as_echo "$dpkg_cv_cflags__Wcast_align" >&6; }
24317 if test "x$dpkg_cv_cflags__Wcast_align" = xyes; then :
24318
24319 as_fn_append COMPILER_CFLAGS " -Wcast-align"
24320
24321 fi
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wshadow" >&5
24335 $as_echo_n "checking whether $CC accepts -Wshadow... " >&6; }
24336 if ${dpkg_cv_cflags__Wshadow+:} false; then :
24337 $as_echo_n "(cached) " >&6
24338 else
24339
24340 dpkg_save_CFLAGS=$CFLAGS
24341 CFLAGS="-Werror -Wshadow"
24342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24343 /* end confdefs.h. */
24344
24345
24346
24347 _ACEOF
24348 if ac_fn_c_try_compile "$LINENO"; then :
24349
24350 dpkg_cv_cflags__Wshadow=yes
24351
24352 else
24353
24354 dpkg_cv_cflags__Wshadow=no
24355
24356 fi
24357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24358 CFLAGS=$dpkg_save_CFLAGS
24359
24360 fi
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wshadow" >&5
24362 $as_echo "$dpkg_cv_cflags__Wshadow" >&6; }
24363 if test "x$dpkg_cv_cflags__Wshadow" = xyes; then :
24364
24365 as_fn_append COMPILER_CFLAGS " -Wshadow"
24366
24367 fi
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wduplicated-cond" >&5
24381 $as_echo_n "checking whether $CC accepts -Wduplicated-cond... " >&6; }
24382 if ${dpkg_cv_cflags__Wduplicated_cond+:} false; then :
24383 $as_echo_n "(cached) " >&6
24384 else
24385
24386 dpkg_save_CFLAGS=$CFLAGS
24387 CFLAGS="-Werror -Wduplicated-cond"
24388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24389 /* end confdefs.h. */
24390
24391
24392
24393 _ACEOF
24394 if ac_fn_c_try_compile "$LINENO"; then :
24395
24396 dpkg_cv_cflags__Wduplicated_cond=yes
24397
24398 else
24399
24400 dpkg_cv_cflags__Wduplicated_cond=no
24401
24402 fi
24403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24404 CFLAGS=$dpkg_save_CFLAGS
24405
24406 fi
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wduplicated_cond" >&5
24408 $as_echo "$dpkg_cv_cflags__Wduplicated_cond" >&6; }
24409 if test "x$dpkg_cv_cflags__Wduplicated_cond" = xyes; then :
24410
24411 as_fn_append COMPILER_CFLAGS " -Wduplicated-cond"
24412
24413 fi
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wnull-dereference" >&5
24427 $as_echo_n "checking whether $CC accepts -Wnull-dereference... " >&6; }
24428 if ${dpkg_cv_cflags__Wnull_dereference+:} false; then :
24429 $as_echo_n "(cached) " >&6
24430 else
24431
24432 dpkg_save_CFLAGS=$CFLAGS
24433 CFLAGS="-Werror -Wnull-dereference"
24434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24435 /* end confdefs.h. */
24436
24437
24438
24439 _ACEOF
24440 if ac_fn_c_try_compile "$LINENO"; then :
24441
24442 dpkg_cv_cflags__Wnull_dereference=yes
24443
24444 else
24445
24446 dpkg_cv_cflags__Wnull_dereference=no
24447
24448 fi
24449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24450 CFLAGS=$dpkg_save_CFLAGS
24451
24452 fi
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wnull_dereference" >&5
24454 $as_echo "$dpkg_cv_cflags__Wnull_dereference" >&6; }
24455 if test "x$dpkg_cv_cflags__Wnull_dereference" = xyes; then :
24456
24457 as_fn_append COMPILER_CFLAGS " -Wnull-dereference"
24458
24459 fi
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wdeclaration-after-statement" >&5
24475 $as_echo_n "checking whether $CC accepts -Wdeclaration-after-statement... " >&6; }
24476 if ${dpkg_cv_cflags__Wdeclaration_after_statement+:} false; then :
24477 $as_echo_n "(cached) " >&6
24478 else
24479
24480 dpkg_save_CFLAGS=$CFLAGS
24481 CFLAGS="-Werror -Wdeclaration-after-statement"
24482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24483 /* end confdefs.h. */
24484
24485
24486
24487 _ACEOF
24488 if ac_fn_c_try_compile "$LINENO"; then :
24489
24490 dpkg_cv_cflags__Wdeclaration_after_statement=yes
24491
24492 else
24493
24494 dpkg_cv_cflags__Wdeclaration_after_statement=no
24495
24496 fi
24497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24498 CFLAGS=$dpkg_save_CFLAGS
24499
24500 fi
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wdeclaration_after_statement" >&5
24502 $as_echo "$dpkg_cv_cflags__Wdeclaration_after_statement" >&6; }
24503 if test "x$dpkg_cv_cflags__Wdeclaration_after_statement" = xyes; then :
24504
24505 as_fn_append COMPILER_CFLAGS " -Wdeclaration-after-statement"
24506
24507 fi
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wnested-externs" >&5
24521 $as_echo_n "checking whether $CC accepts -Wnested-externs... " >&6; }
24522 if ${dpkg_cv_cflags__Wnested_externs+:} false; then :
24523 $as_echo_n "(cached) " >&6
24524 else
24525
24526 dpkg_save_CFLAGS=$CFLAGS
24527 CFLAGS="-Werror -Wnested-externs"
24528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24529 /* end confdefs.h. */
24530
24531
24532
24533 _ACEOF
24534 if ac_fn_c_try_compile "$LINENO"; then :
24535
24536 dpkg_cv_cflags__Wnested_externs=yes
24537
24538 else
24539
24540 dpkg_cv_cflags__Wnested_externs=no
24541
24542 fi
24543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24544 CFLAGS=$dpkg_save_CFLAGS
24545
24546 fi
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wnested_externs" >&5
24548 $as_echo "$dpkg_cv_cflags__Wnested_externs" >&6; }
24549 if test "x$dpkg_cv_cflags__Wnested_externs" = xyes; then :
24550
24551 as_fn_append COMPILER_CFLAGS " -Wnested-externs"
24552
24553 fi
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wbad-function-cast" >&5
24567 $as_echo_n "checking whether $CC accepts -Wbad-function-cast... " >&6; }
24568 if ${dpkg_cv_cflags__Wbad_function_cast+:} false; then :
24569 $as_echo_n "(cached) " >&6
24570 else
24571
24572 dpkg_save_CFLAGS=$CFLAGS
24573 CFLAGS="-Werror -Wbad-function-cast"
24574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24575 /* end confdefs.h. */
24576
24577
24578
24579 _ACEOF
24580 if ac_fn_c_try_compile "$LINENO"; then :
24581
24582 dpkg_cv_cflags__Wbad_function_cast=yes
24583
24584 else
24585
24586 dpkg_cv_cflags__Wbad_function_cast=no
24587
24588 fi
24589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24590 CFLAGS=$dpkg_save_CFLAGS
24591
24592 fi
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wbad_function_cast" >&5
24594 $as_echo "$dpkg_cv_cflags__Wbad_function_cast" >&6; }
24595 if test "x$dpkg_cv_cflags__Wbad_function_cast" = xyes; then :
24596
24597 as_fn_append COMPILER_CFLAGS " -Wbad-function-cast"
24598
24599 fi
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wstrict-prototypes" >&5
24613 $as_echo_n "checking whether $CC accepts -Wstrict-prototypes... " >&6; }
24614 if ${dpkg_cv_cflags__Wstrict_prototypes+:} false; then :
24615 $as_echo_n "(cached) " >&6
24616 else
24617
24618 dpkg_save_CFLAGS=$CFLAGS
24619 CFLAGS="-Werror -Wstrict-prototypes"
24620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24621 /* end confdefs.h. */
24622
24623
24624
24625 _ACEOF
24626 if ac_fn_c_try_compile "$LINENO"; then :
24627
24628 dpkg_cv_cflags__Wstrict_prototypes=yes
24629
24630 else
24631
24632 dpkg_cv_cflags__Wstrict_prototypes=no
24633
24634 fi
24635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24636 CFLAGS=$dpkg_save_CFLAGS
24637
24638 fi
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wstrict_prototypes" >&5
24640 $as_echo "$dpkg_cv_cflags__Wstrict_prototypes" >&6; }
24641 if test "x$dpkg_cv_cflags__Wstrict_prototypes" = xyes; then :
24642
24643 as_fn_append COMPILER_CFLAGS " -Wstrict-prototypes"
24644
24645 fi
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wmissing-prototypes" >&5
24659 $as_echo_n "checking whether $CC accepts -Wmissing-prototypes... " >&6; }
24660 if ${dpkg_cv_cflags__Wmissing_prototypes+:} false; then :
24661 $as_echo_n "(cached) " >&6
24662 else
24663
24664 dpkg_save_CFLAGS=$CFLAGS
24665 CFLAGS="-Werror -Wmissing-prototypes"
24666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24667 /* end confdefs.h. */
24668
24669
24670
24671 _ACEOF
24672 if ac_fn_c_try_compile "$LINENO"; then :
24673
24674 dpkg_cv_cflags__Wmissing_prototypes=yes
24675
24676 else
24677
24678 dpkg_cv_cflags__Wmissing_prototypes=no
24679
24680 fi
24681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24682 CFLAGS=$dpkg_save_CFLAGS
24683
24684 fi
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wmissing_prototypes" >&5
24686 $as_echo "$dpkg_cv_cflags__Wmissing_prototypes" >&6; }
24687 if test "x$dpkg_cv_cflags__Wmissing_prototypes" = xyes; then :
24688
24689 as_fn_append COMPILER_CFLAGS " -Wmissing-prototypes"
24690
24691 fi
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wold-style-definition" >&5
24705 $as_echo_n "checking whether $CC accepts -Wold-style-definition... " >&6; }
24706 if ${dpkg_cv_cflags__Wold_style_definition+:} false; then :
24707 $as_echo_n "(cached) " >&6
24708 else
24709
24710 dpkg_save_CFLAGS=$CFLAGS
24711 CFLAGS="-Werror -Wold-style-definition"
24712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24713 /* end confdefs.h. */
24714
24715
24716
24717 _ACEOF
24718 if ac_fn_c_try_compile "$LINENO"; then :
24719
24720 dpkg_cv_cflags__Wold_style_definition=yes
24721
24722 else
24723
24724 dpkg_cv_cflags__Wold_style_definition=no
24725
24726 fi
24727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24728 CFLAGS=$dpkg_save_CFLAGS
24729
24730 fi
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wold_style_definition" >&5
24732 $as_echo "$dpkg_cv_cflags__Wold_style_definition" >&6; }
24733 if test "x$dpkg_cv_cflags__Wold_style_definition" = xyes; then :
24734
24735 as_fn_append COMPILER_CFLAGS " -Wold-style-definition"
24736
24737 fi
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wc99-c11-compat" >&5
24751 $as_echo_n "checking whether $CC accepts -Wc99-c11-compat... " >&6; }
24752 if ${dpkg_cv_cflags__Wc99_c11_compat+:} false; then :
24753 $as_echo_n "(cached) " >&6
24754 else
24755
24756 dpkg_save_CFLAGS=$CFLAGS
24757 CFLAGS="-Werror -Wc99-c11-compat"
24758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24759 /* end confdefs.h. */
24760
24761
24762
24763 _ACEOF
24764 if ac_fn_c_try_compile "$LINENO"; then :
24765
24766 dpkg_cv_cflags__Wc99_c11_compat=yes
24767
24768 else
24769
24770 dpkg_cv_cflags__Wc99_c11_compat=no
24771
24772 fi
24773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24774 CFLAGS=$dpkg_save_CFLAGS
24775
24776 fi
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cflags__Wc99_c11_compat" >&5
24778 $as_echo "$dpkg_cv_cflags__Wc99_c11_compat" >&6; }
24779 if test "x$dpkg_cv_cflags__Wc99_c11_compat" = xyes; then :
24780
24781 as_fn_append COMPILER_CFLAGS " -Wc99-c11-compat"
24782
24783 fi
24784
24785
24786
24787
24788 ac_ext=cpp
24789 ac_cpp='$CXXCPP $CPPFLAGS'
24790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wall" >&5
24806 $as_echo_n "checking whether $CXX accepts -Wall... " >&6; }
24807 if ${dpkg_cv_cxxflags__Wall+:} false; then :
24808 $as_echo_n "(cached) " >&6
24809 else
24810
24811 dpkg_save_CXXFLAGS=$CXXFLAGS
24812 CXXFLAGS="-Werror -Wall"
24813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24814 /* end confdefs.h. */
24815
24816
24817
24818 _ACEOF
24819 if ac_fn_cxx_try_compile "$LINENO"; then :
24820
24821 dpkg_cv_cxxflags__Wall=yes
24822
24823 else
24824
24825 dpkg_cv_cxxflags__Wall=no
24826
24827 fi
24828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24829 CXXFLAGS=$dpkg_save_CXXFLAGS
24830
24831 fi
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wall" >&5
24833 $as_echo "$dpkg_cv_cxxflags__Wall" >&6; }
24834 if test "x$dpkg_cv_cxxflags__Wall" = xyes; then :
24835
24836 as_fn_append COMPILER_CXXFLAGS " -Wall"
24837
24838 fi
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wextra" >&5
24852 $as_echo_n "checking whether $CXX accepts -Wextra... " >&6; }
24853 if ${dpkg_cv_cxxflags__Wextra+:} false; then :
24854 $as_echo_n "(cached) " >&6
24855 else
24856
24857 dpkg_save_CXXFLAGS=$CXXFLAGS
24858 CXXFLAGS="-Werror -Wextra"
24859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24860 /* end confdefs.h. */
24861
24862
24863
24864 _ACEOF
24865 if ac_fn_cxx_try_compile "$LINENO"; then :
24866
24867 dpkg_cv_cxxflags__Wextra=yes
24868
24869 else
24870
24871 dpkg_cv_cxxflags__Wextra=no
24872
24873 fi
24874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24875 CXXFLAGS=$dpkg_save_CXXFLAGS
24876
24877 fi
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wextra" >&5
24879 $as_echo "$dpkg_cv_cxxflags__Wextra" >&6; }
24880 if test "x$dpkg_cv_cxxflags__Wextra" = xyes; then :
24881
24882 as_fn_append COMPILER_CXXFLAGS " -Wextra"
24883
24884 fi
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wno-unused-parameter" >&5
24898 $as_echo_n "checking whether $CXX accepts -Wno-unused-parameter... " >&6; }
24899 if ${dpkg_cv_cxxflags__Wno_unused_parameter+:} false; then :
24900 $as_echo_n "(cached) " >&6
24901 else
24902
24903 dpkg_save_CXXFLAGS=$CXXFLAGS
24904 CXXFLAGS="-Werror -Wunused-parameter"
24905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24906 /* end confdefs.h. */
24907
24908
24909
24910 _ACEOF
24911 if ac_fn_cxx_try_compile "$LINENO"; then :
24912
24913 dpkg_cv_cxxflags__Wno_unused_parameter=yes
24914
24915 else
24916
24917 dpkg_cv_cxxflags__Wno_unused_parameter=no
24918
24919 fi
24920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24921 CXXFLAGS=$dpkg_save_CXXFLAGS
24922
24923 fi
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wno_unused_parameter" >&5
24925 $as_echo "$dpkg_cv_cxxflags__Wno_unused_parameter" >&6; }
24926 if test "x$dpkg_cv_cxxflags__Wno_unused_parameter" = xyes; then :
24927
24928 as_fn_append COMPILER_CXXFLAGS " -Wno-unused-parameter"
24929
24930 fi
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wno-missing-field-initializers" >&5
24944 $as_echo_n "checking whether $CXX accepts -Wno-missing-field-initializers... " >&6; }
24945 if ${dpkg_cv_cxxflags__Wno_missing_field_initializers+:} false; then :
24946 $as_echo_n "(cached) " >&6
24947 else
24948
24949 dpkg_save_CXXFLAGS=$CXXFLAGS
24950 CXXFLAGS="-Werror -Wmissing-field-initializers"
24951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24952 /* end confdefs.h. */
24953
24954
24955
24956 _ACEOF
24957 if ac_fn_cxx_try_compile "$LINENO"; then :
24958
24959 dpkg_cv_cxxflags__Wno_missing_field_initializers=yes
24960
24961 else
24962
24963 dpkg_cv_cxxflags__Wno_missing_field_initializers=no
24964
24965 fi
24966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24967 CXXFLAGS=$dpkg_save_CXXFLAGS
24968
24969 fi
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wno_missing_field_initializers" >&5
24971 $as_echo "$dpkg_cv_cxxflags__Wno_missing_field_initializers" >&6; }
24972 if test "x$dpkg_cv_cxxflags__Wno_missing_field_initializers" = xyes; then :
24973
24974 as_fn_append COMPILER_CXXFLAGS " -Wno-missing-field-initializers"
24975
24976 fi
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wno-tautological-constant-out-of-range-compare" >&5
24990 $as_echo_n "checking whether $CXX accepts -Wno-tautological-constant-out-of-range-compare... " >&6; }
24991 if ${dpkg_cv_cxxflags__Wno_tautological_constant_out_of_range_compare+:} false; then :
24992 $as_echo_n "(cached) " >&6
24993 else
24994
24995 dpkg_save_CXXFLAGS=$CXXFLAGS
24996 CXXFLAGS="-Werror -Wtautological-constant-out-of-range-compare"
24997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24998 /* end confdefs.h. */
24999
25000
25001
25002 _ACEOF
25003 if ac_fn_cxx_try_compile "$LINENO"; then :
25004
25005 dpkg_cv_cxxflags__Wno_tautological_constant_out_of_range_compare=yes
25006
25007 else
25008
25009 dpkg_cv_cxxflags__Wno_tautological_constant_out_of_range_compare=no
25010
25011 fi
25012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25013 CXXFLAGS=$dpkg_save_CXXFLAGS
25014
25015 fi
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wno_tautological_constant_out_of_range_compare" >&5
25017 $as_echo "$dpkg_cv_cxxflags__Wno_tautological_constant_out_of_range_compare" >&6; }
25018 if test "x$dpkg_cv_cxxflags__Wno_tautological_constant_out_of_range_compare" = xyes; then :
25019
25020 as_fn_append COMPILER_CXXFLAGS " -Wno-tautological-constant-out-of-range-compare"
25021
25022 fi
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wmissing-declarations" >&5
25036 $as_echo_n "checking whether $CXX accepts -Wmissing-declarations... " >&6; }
25037 if ${dpkg_cv_cxxflags__Wmissing_declarations+:} false; then :
25038 $as_echo_n "(cached) " >&6
25039 else
25040
25041 dpkg_save_CXXFLAGS=$CXXFLAGS
25042 CXXFLAGS="-Werror -Wmissing-declarations"
25043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25044 /* end confdefs.h. */
25045
25046
25047
25048 _ACEOF
25049 if ac_fn_cxx_try_compile "$LINENO"; then :
25050
25051 dpkg_cv_cxxflags__Wmissing_declarations=yes
25052
25053 else
25054
25055 dpkg_cv_cxxflags__Wmissing_declarations=no
25056
25057 fi
25058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25059 CXXFLAGS=$dpkg_save_CXXFLAGS
25060
25061 fi
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wmissing_declarations" >&5
25063 $as_echo "$dpkg_cv_cxxflags__Wmissing_declarations" >&6; }
25064 if test "x$dpkg_cv_cxxflags__Wmissing_declarations" = xyes; then :
25065
25066 as_fn_append COMPILER_CXXFLAGS " -Wmissing-declarations"
25067
25068 fi
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wmissing-format-attribute" >&5
25082 $as_echo_n "checking whether $CXX accepts -Wmissing-format-attribute... " >&6; }
25083 if ${dpkg_cv_cxxflags__Wmissing_format_attribute+:} false; then :
25084 $as_echo_n "(cached) " >&6
25085 else
25086
25087 dpkg_save_CXXFLAGS=$CXXFLAGS
25088 CXXFLAGS="-Werror -Wmissing-format-attribute"
25089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25090 /* end confdefs.h. */
25091
25092
25093
25094 _ACEOF
25095 if ac_fn_cxx_try_compile "$LINENO"; then :
25096
25097 dpkg_cv_cxxflags__Wmissing_format_attribute=yes
25098
25099 else
25100
25101 dpkg_cv_cxxflags__Wmissing_format_attribute=no
25102
25103 fi
25104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25105 CXXFLAGS=$dpkg_save_CXXFLAGS
25106
25107 fi
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wmissing_format_attribute" >&5
25109 $as_echo "$dpkg_cv_cxxflags__Wmissing_format_attribute" >&6; }
25110 if test "x$dpkg_cv_cxxflags__Wmissing_format_attribute" = xyes; then :
25111
25112 as_fn_append COMPILER_CXXFLAGS " -Wmissing-format-attribute"
25113
25114 fi
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wformat -Wformat-security" >&5
25128 $as_echo_n "checking whether $CXX accepts -Wformat -Wformat-security... " >&6; }
25129 if ${dpkg_cv_cxxflags__Wformat__Wformat_security+:} false; then :
25130 $as_echo_n "(cached) " >&6
25131 else
25132
25133 dpkg_save_CXXFLAGS=$CXXFLAGS
25134 CXXFLAGS="-Werror -Wformat -Wformat-security"
25135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25136 /* end confdefs.h. */
25137
25138
25139
25140 _ACEOF
25141 if ac_fn_cxx_try_compile "$LINENO"; then :
25142
25143 dpkg_cv_cxxflags__Wformat__Wformat_security=yes
25144
25145 else
25146
25147 dpkg_cv_cxxflags__Wformat__Wformat_security=no
25148
25149 fi
25150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25151 CXXFLAGS=$dpkg_save_CXXFLAGS
25152
25153 fi
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wformat__Wformat_security" >&5
25155 $as_echo "$dpkg_cv_cxxflags__Wformat__Wformat_security" >&6; }
25156 if test "x$dpkg_cv_cxxflags__Wformat__Wformat_security" = xyes; then :
25157
25158 as_fn_append COMPILER_CXXFLAGS " -Wformat -Wformat-security"
25159
25160 fi
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wsizeof-array-argument" >&5
25174 $as_echo_n "checking whether $CXX accepts -Wsizeof-array-argument... " >&6; }
25175 if ${dpkg_cv_cxxflags__Wsizeof_array_argument+:} false; then :
25176 $as_echo_n "(cached) " >&6
25177 else
25178
25179 dpkg_save_CXXFLAGS=$CXXFLAGS
25180 CXXFLAGS="-Werror -Wsizeof-array-argument"
25181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25182 /* end confdefs.h. */
25183
25184
25185
25186 _ACEOF
25187 if ac_fn_cxx_try_compile "$LINENO"; then :
25188
25189 dpkg_cv_cxxflags__Wsizeof_array_argument=yes
25190
25191 else
25192
25193 dpkg_cv_cxxflags__Wsizeof_array_argument=no
25194
25195 fi
25196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25197 CXXFLAGS=$dpkg_save_CXXFLAGS
25198
25199 fi
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wsizeof_array_argument" >&5
25201 $as_echo "$dpkg_cv_cxxflags__Wsizeof_array_argument" >&6; }
25202 if test "x$dpkg_cv_cxxflags__Wsizeof_array_argument" = xyes; then :
25203
25204 as_fn_append COMPILER_CXXFLAGS " -Wsizeof-array-argument"
25205
25206 fi
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wpointer-arith" >&5
25220 $as_echo_n "checking whether $CXX accepts -Wpointer-arith... " >&6; }
25221 if ${dpkg_cv_cxxflags__Wpointer_arith+:} false; then :
25222 $as_echo_n "(cached) " >&6
25223 else
25224
25225 dpkg_save_CXXFLAGS=$CXXFLAGS
25226 CXXFLAGS="-Werror -Wpointer-arith"
25227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25228 /* end confdefs.h. */
25229
25230
25231
25232 _ACEOF
25233 if ac_fn_cxx_try_compile "$LINENO"; then :
25234
25235 dpkg_cv_cxxflags__Wpointer_arith=yes
25236
25237 else
25238
25239 dpkg_cv_cxxflags__Wpointer_arith=no
25240
25241 fi
25242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25243 CXXFLAGS=$dpkg_save_CXXFLAGS
25244
25245 fi
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wpointer_arith" >&5
25247 $as_echo "$dpkg_cv_cxxflags__Wpointer_arith" >&6; }
25248 if test "x$dpkg_cv_cxxflags__Wpointer_arith" = xyes; then :
25249
25250 as_fn_append COMPILER_CXXFLAGS " -Wpointer-arith"
25251
25252 fi
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wlogical-op" >&5
25266 $as_echo_n "checking whether $CXX accepts -Wlogical-op... " >&6; }
25267 if ${dpkg_cv_cxxflags__Wlogical_op+:} false; then :
25268 $as_echo_n "(cached) " >&6
25269 else
25270
25271 dpkg_save_CXXFLAGS=$CXXFLAGS
25272 CXXFLAGS="-Werror -Wlogical-op"
25273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25274 /* end confdefs.h. */
25275
25276
25277
25278 _ACEOF
25279 if ac_fn_cxx_try_compile "$LINENO"; then :
25280
25281 dpkg_cv_cxxflags__Wlogical_op=yes
25282
25283 else
25284
25285 dpkg_cv_cxxflags__Wlogical_op=no
25286
25287 fi
25288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25289 CXXFLAGS=$dpkg_save_CXXFLAGS
25290
25291 fi
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wlogical_op" >&5
25293 $as_echo "$dpkg_cv_cxxflags__Wlogical_op" >&6; }
25294 if test "x$dpkg_cv_cxxflags__Wlogical_op" = xyes; then :
25295
25296 as_fn_append COMPILER_CXXFLAGS " -Wlogical-op"
25297
25298 fi
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wlogical-not-parentheses" >&5
25312 $as_echo_n "checking whether $CXX accepts -Wlogical-not-parentheses... " >&6; }
25313 if ${dpkg_cv_cxxflags__Wlogical_not_parentheses+:} false; then :
25314 $as_echo_n "(cached) " >&6
25315 else
25316
25317 dpkg_save_CXXFLAGS=$CXXFLAGS
25318 CXXFLAGS="-Werror -Wlogical-not-parentheses"
25319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25320 /* end confdefs.h. */
25321
25322
25323
25324 _ACEOF
25325 if ac_fn_cxx_try_compile "$LINENO"; then :
25326
25327 dpkg_cv_cxxflags__Wlogical_not_parentheses=yes
25328
25329 else
25330
25331 dpkg_cv_cxxflags__Wlogical_not_parentheses=no
25332
25333 fi
25334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25335 CXXFLAGS=$dpkg_save_CXXFLAGS
25336
25337 fi
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wlogical_not_parentheses" >&5
25339 $as_echo "$dpkg_cv_cxxflags__Wlogical_not_parentheses" >&6; }
25340 if test "x$dpkg_cv_cxxflags__Wlogical_not_parentheses" = xyes; then :
25341
25342 as_fn_append COMPILER_CXXFLAGS " -Wlogical-not-parentheses"
25343
25344 fi
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wswitch-bool" >&5
25358 $as_echo_n "checking whether $CXX accepts -Wswitch-bool... " >&6; }
25359 if ${dpkg_cv_cxxflags__Wswitch_bool+:} false; then :
25360 $as_echo_n "(cached) " >&6
25361 else
25362
25363 dpkg_save_CXXFLAGS=$CXXFLAGS
25364 CXXFLAGS="-Werror -Wswitch-bool"
25365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25366 /* end confdefs.h. */
25367
25368
25369
25370 _ACEOF
25371 if ac_fn_cxx_try_compile "$LINENO"; then :
25372
25373 dpkg_cv_cxxflags__Wswitch_bool=yes
25374
25375 else
25376
25377 dpkg_cv_cxxflags__Wswitch_bool=no
25378
25379 fi
25380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25381 CXXFLAGS=$dpkg_save_CXXFLAGS
25382
25383 fi
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wswitch_bool" >&5
25385 $as_echo "$dpkg_cv_cxxflags__Wswitch_bool" >&6; }
25386 if test "x$dpkg_cv_cxxflags__Wswitch_bool" = xyes; then :
25387
25388 as_fn_append COMPILER_CXXFLAGS " -Wswitch-bool"
25389
25390 fi
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wvla" >&5
25404 $as_echo_n "checking whether $CXX accepts -Wvla... " >&6; }
25405 if ${dpkg_cv_cxxflags__Wvla+:} false; then :
25406 $as_echo_n "(cached) " >&6
25407 else
25408
25409 dpkg_save_CXXFLAGS=$CXXFLAGS
25410 CXXFLAGS="-Werror -Wvla"
25411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25412 /* end confdefs.h. */
25413
25414
25415
25416 _ACEOF
25417 if ac_fn_cxx_try_compile "$LINENO"; then :
25418
25419 dpkg_cv_cxxflags__Wvla=yes
25420
25421 else
25422
25423 dpkg_cv_cxxflags__Wvla=no
25424
25425 fi
25426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25427 CXXFLAGS=$dpkg_save_CXXFLAGS
25428
25429 fi
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wvla" >&5
25431 $as_echo "$dpkg_cv_cxxflags__Wvla" >&6; }
25432 if test "x$dpkg_cv_cxxflags__Wvla" = xyes; then :
25433
25434 as_fn_append COMPILER_CXXFLAGS " -Wvla"
25435
25436 fi
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Winit-self" >&5
25450 $as_echo_n "checking whether $CXX accepts -Winit-self... " >&6; }
25451 if ${dpkg_cv_cxxflags__Winit_self+:} false; then :
25452 $as_echo_n "(cached) " >&6
25453 else
25454
25455 dpkg_save_CXXFLAGS=$CXXFLAGS
25456 CXXFLAGS="-Werror -Winit-self"
25457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25458 /* end confdefs.h. */
25459
25460
25461
25462 _ACEOF
25463 if ac_fn_cxx_try_compile "$LINENO"; then :
25464
25465 dpkg_cv_cxxflags__Winit_self=yes
25466
25467 else
25468
25469 dpkg_cv_cxxflags__Winit_self=no
25470
25471 fi
25472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25473 CXXFLAGS=$dpkg_save_CXXFLAGS
25474
25475 fi
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Winit_self" >&5
25477 $as_echo "$dpkg_cv_cxxflags__Winit_self" >&6; }
25478 if test "x$dpkg_cv_cxxflags__Winit_self" = xyes; then :
25479
25480 as_fn_append COMPILER_CXXFLAGS " -Winit-self"
25481
25482 fi
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wwrite-strings" >&5
25496 $as_echo_n "checking whether $CXX accepts -Wwrite-strings... " >&6; }
25497 if ${dpkg_cv_cxxflags__Wwrite_strings+:} false; then :
25498 $as_echo_n "(cached) " >&6
25499 else
25500
25501 dpkg_save_CXXFLAGS=$CXXFLAGS
25502 CXXFLAGS="-Werror -Wwrite-strings"
25503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25504 /* end confdefs.h. */
25505
25506
25507
25508 _ACEOF
25509 if ac_fn_cxx_try_compile "$LINENO"; then :
25510
25511 dpkg_cv_cxxflags__Wwrite_strings=yes
25512
25513 else
25514
25515 dpkg_cv_cxxflags__Wwrite_strings=no
25516
25517 fi
25518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25519 CXXFLAGS=$dpkg_save_CXXFLAGS
25520
25521 fi
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wwrite_strings" >&5
25523 $as_echo "$dpkg_cv_cxxflags__Wwrite_strings" >&6; }
25524 if test "x$dpkg_cv_cxxflags__Wwrite_strings" = xyes; then :
25525
25526 as_fn_append COMPILER_CXXFLAGS " -Wwrite-strings"
25527
25528 fi
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wcast-align" >&5
25542 $as_echo_n "checking whether $CXX accepts -Wcast-align... " >&6; }
25543 if ${dpkg_cv_cxxflags__Wcast_align+:} false; then :
25544 $as_echo_n "(cached) " >&6
25545 else
25546
25547 dpkg_save_CXXFLAGS=$CXXFLAGS
25548 CXXFLAGS="-Werror -Wcast-align"
25549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25550 /* end confdefs.h. */
25551
25552
25553
25554 _ACEOF
25555 if ac_fn_cxx_try_compile "$LINENO"; then :
25556
25557 dpkg_cv_cxxflags__Wcast_align=yes
25558
25559 else
25560
25561 dpkg_cv_cxxflags__Wcast_align=no
25562
25563 fi
25564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25565 CXXFLAGS=$dpkg_save_CXXFLAGS
25566
25567 fi
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wcast_align" >&5
25569 $as_echo "$dpkg_cv_cxxflags__Wcast_align" >&6; }
25570 if test "x$dpkg_cv_cxxflags__Wcast_align" = xyes; then :
25571
25572 as_fn_append COMPILER_CXXFLAGS " -Wcast-align"
25573
25574 fi
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wshadow" >&5
25588 $as_echo_n "checking whether $CXX accepts -Wshadow... " >&6; }
25589 if ${dpkg_cv_cxxflags__Wshadow+:} false; then :
25590 $as_echo_n "(cached) " >&6
25591 else
25592
25593 dpkg_save_CXXFLAGS=$CXXFLAGS
25594 CXXFLAGS="-Werror -Wshadow"
25595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25596 /* end confdefs.h. */
25597
25598
25599
25600 _ACEOF
25601 if ac_fn_cxx_try_compile "$LINENO"; then :
25602
25603 dpkg_cv_cxxflags__Wshadow=yes
25604
25605 else
25606
25607 dpkg_cv_cxxflags__Wshadow=no
25608
25609 fi
25610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25611 CXXFLAGS=$dpkg_save_CXXFLAGS
25612
25613 fi
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wshadow" >&5
25615 $as_echo "$dpkg_cv_cxxflags__Wshadow" >&6; }
25616 if test "x$dpkg_cv_cxxflags__Wshadow" = xyes; then :
25617
25618 as_fn_append COMPILER_CXXFLAGS " -Wshadow"
25619
25620 fi
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wduplicated-cond" >&5
25634 $as_echo_n "checking whether $CXX accepts -Wduplicated-cond... " >&6; }
25635 if ${dpkg_cv_cxxflags__Wduplicated_cond+:} false; then :
25636 $as_echo_n "(cached) " >&6
25637 else
25638
25639 dpkg_save_CXXFLAGS=$CXXFLAGS
25640 CXXFLAGS="-Werror -Wduplicated-cond"
25641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25642 /* end confdefs.h. */
25643
25644
25645
25646 _ACEOF
25647 if ac_fn_cxx_try_compile "$LINENO"; then :
25648
25649 dpkg_cv_cxxflags__Wduplicated_cond=yes
25650
25651 else
25652
25653 dpkg_cv_cxxflags__Wduplicated_cond=no
25654
25655 fi
25656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25657 CXXFLAGS=$dpkg_save_CXXFLAGS
25658
25659 fi
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wduplicated_cond" >&5
25661 $as_echo "$dpkg_cv_cxxflags__Wduplicated_cond" >&6; }
25662 if test "x$dpkg_cv_cxxflags__Wduplicated_cond" = xyes; then :
25663
25664 as_fn_append COMPILER_CXXFLAGS " -Wduplicated-cond"
25665
25666 fi
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wnull-dereference" >&5
25680 $as_echo_n "checking whether $CXX accepts -Wnull-dereference... " >&6; }
25681 if ${dpkg_cv_cxxflags__Wnull_dereference+:} false; then :
25682 $as_echo_n "(cached) " >&6
25683 else
25684
25685 dpkg_save_CXXFLAGS=$CXXFLAGS
25686 CXXFLAGS="-Werror -Wnull-dereference"
25687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25688 /* end confdefs.h. */
25689
25690
25691
25692 _ACEOF
25693 if ac_fn_cxx_try_compile "$LINENO"; then :
25694
25695 dpkg_cv_cxxflags__Wnull_dereference=yes
25696
25697 else
25698
25699 dpkg_cv_cxxflags__Wnull_dereference=no
25700
25701 fi
25702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25703 CXXFLAGS=$dpkg_save_CXXFLAGS
25704
25705 fi
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wnull_dereference" >&5
25707 $as_echo "$dpkg_cv_cxxflags__Wnull_dereference" >&6; }
25708 if test "x$dpkg_cv_cxxflags__Wnull_dereference" = xyes; then :
25709
25710 as_fn_append COMPILER_CXXFLAGS " -Wnull-dereference"
25711
25712 fi
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wc++11-compat" >&5
25728 $as_echo_n "checking whether $CXX accepts -Wc++11-compat... " >&6; }
25729 if ${dpkg_cv_cxxflags__Wcpp11_compat+:} false; then :
25730 $as_echo_n "(cached) " >&6
25731 else
25732
25733 dpkg_save_CXXFLAGS=$CXXFLAGS
25734 CXXFLAGS="-Werror -Wc++11-compat"
25735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25736 /* end confdefs.h. */
25737
25738
25739
25740 _ACEOF
25741 if ac_fn_cxx_try_compile "$LINENO"; then :
25742
25743 dpkg_cv_cxxflags__Wcpp11_compat=yes
25744
25745 else
25746
25747 dpkg_cv_cxxflags__Wcpp11_compat=no
25748
25749 fi
25750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25751 CXXFLAGS=$dpkg_save_CXXFLAGS
25752
25753 fi
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wcpp11_compat" >&5
25755 $as_echo "$dpkg_cv_cxxflags__Wcpp11_compat" >&6; }
25756 if test "x$dpkg_cv_cxxflags__Wcpp11_compat" = xyes; then :
25757
25758 as_fn_append COMPILER_CXXFLAGS " -Wc++11-compat"
25759
25760 fi
25761
25762
25763 if test "x$dpkg_cv_cxx11" = "xyes"; then :
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wzero-as-null-pointer-constant" >&5
25776 $as_echo_n "checking whether $CXX accepts -Wzero-as-null-pointer-constant... " >&6; }
25777 if ${dpkg_cv_cxxflags__Wzero_as_null_pointer_constant+:} false; then :
25778 $as_echo_n "(cached) " >&6
25779 else
25780
25781 dpkg_save_CXXFLAGS=$CXXFLAGS
25782 CXXFLAGS="-Werror -Wzero-as-null-pointer-constant"
25783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25784 /* end confdefs.h. */
25785
25786
25787
25788 _ACEOF
25789 if ac_fn_cxx_try_compile "$LINENO"; then :
25790
25791 dpkg_cv_cxxflags__Wzero_as_null_pointer_constant=yes
25792
25793 else
25794
25795 dpkg_cv_cxxflags__Wzero_as_null_pointer_constant=no
25796
25797 fi
25798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25799 CXXFLAGS=$dpkg_save_CXXFLAGS
25800
25801 fi
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_cv_cxxflags__Wzero_as_null_pointer_constant" >&5
25803 $as_echo "$dpkg_cv_cxxflags__Wzero_as_null_pointer_constant" >&6; }
25804 if test "x$dpkg_cv_cxxflags__Wzero_as_null_pointer_constant" = xyes; then :
25805
25806 as_fn_append COMPILER_CXXFLAGS " -Wzero-as-null-pointer-constant"
25807
25808 fi
25809
25810
25811
25812 fi
25813
25814
25815 ac_ext=c
25816 ac_cpp='$CPP $CPPFLAGS'
25817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25820
25821
25822 CFLAGS="$COMPILER_CFLAGS $CFLAGS"
25823 CXXFLAGS="$COMPILER_CXXFLAGS $CXXFLAGS"
25824
25825 fi
25826
25827
25828 # Check whether --enable-compiler-optimizations was given.
25829 if test "${enable_compiler_optimizations+set}" = set; then :
25830 enableval=$enable_compiler_optimizations;
25831 else
25832 enable_compiler_optimizations=yes
25833 fi
25834
25835
25836 if test "x$enable_compiler_optimizations" = "xno"; then :
25837
25838 CFLAGS=$(echo "$CFLAGS" | sed -e "s/ -O[1-9]*\b/ -O0/g")
25839
25840 fi
25841
25842
25843 # Check whether --enable-linker-optimizations was given.
25844 if test "${enable_linker_optimizations+set}" = set; then :
25845 enableval=$enable_linker_optimizations;
25846 else
25847 enable_linker_optimizations=yes
25848 fi
25849
25850
25851 if test "x$enable_linker_optimizations" = "xno"; then :
25852
25853 LDFLAGS=$(echo "$LDFLAGS" | sed -e "s/ -Wl,-O[0-9]*\b//g")
25854
25855 else
25856
25857 save_LDFLAGS=$LDFLAGS
25858 LDFLAGS="$LDFLAGS -Wl,-O1"
25859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25860 /* end confdefs.h. */
25861
25862
25863 int
25864 main ()
25865 {
25866
25867 ;
25868 return 0;
25869 }
25870
25871 _ACEOF
25872 if ac_fn_c_try_link "$LINENO"; then :
25873
25874 else
25875
25876 LDFLAGS="$save_LDFLAGS"
25877
25878 fi
25879 rm -f core conftest.err conftest.$ac_objext \
25880 conftest$ac_exeext conftest.$ac_ext
25881
25882 fi
25883
25884
25885
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dpkg cpu type" >&5
25887 $as_echo_n "checking dpkg cpu type... " >&6; }
25888
25889 cpu_type=$(PERL=$PERL $srcdir/run-script scripts/dpkg-architecture.pl -t$host -qDEB_HOST_ARCH_CPU 2>/dev/null)
25890
25891 if test "x$cpu_type" = "x"; then :
25892
25893 cpu_type=$host_cpu
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpu_type" >&5
25895 $as_echo "$cpu_type" >&6; }
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $host_cpu not found in cputable" >&5
25897 $as_echo "$as_me: WARNING: $host_cpu not found in cputable" >&2;}
25898
25899 else
25900
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpu_type" >&5
25902 $as_echo "$cpu_type" >&6; }
25903
25904 fi
25905
25906 cat >>confdefs.h <<_ACEOF
25907 #define ARCHITECTURE_CPU "${cpu_type}"
25908 _ACEOF
25909
25910
25911
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dpkg operating system type" >&5
25913 $as_echo_n "checking dpkg operating system type... " >&6; }
25914
25915 os_type=$(PERL=$PERL $srcdir/run-script scripts/dpkg-architecture.pl -t$host -qDEB_HOST_ARCH_OS 2>/dev/null)
25916
25917 if test "x$os_type" = "x"; then :
25918
25919 os_type=$host_os
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_type" >&5
25921 $as_echo "$os_type" >&6; }
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $host_os not found in ostable" >&5
25923 $as_echo "$as_me: WARNING: $host_os not found in ostable" >&2;}
25924
25925 else
25926
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_type" >&5
25928 $as_echo "$os_type" >&6; }
25929
25930 fi
25931
25932 cat >>confdefs.h <<_ACEOF
25933 #define ARCHITECTURE_OS "${os_type}"
25934 _ACEOF
25935
25936
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dpkg architecture name" >&5
25938 $as_echo_n "checking dpkg architecture name... " >&6; }
25939
25940 dpkg_arch=$(PERL=$PERL $srcdir/run-script scripts/dpkg-architecture.pl -t$host -qDEB_HOST_ARCH 2>/dev/null)
25941
25942 if test "x$dpkg_arch" = "x"; then :
25943
25944 as_fn_error $? "cannot determine host dpkg architecture" "$LINENO" 5
25945
25946 else
25947
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_arch" >&5
25949 $as_echo "$dpkg_arch" >&6; }
25950
25951 fi
25952
25953 cat >>confdefs.h <<_ACEOF
25954 #define ARCHITECTURE "${dpkg_arch}"
25955 _ACEOF
25956
25957
25958
25959 $as_echo "#define PACKAGE_RELEASE PACKAGE_VERSION \" (\" ARCHITECTURE \")\"" >>confdefs.h
25960
25961
25962 ac_config_commands="$ac_config_commands t-func/atconfig"
25963
25964
25965 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
25966
25967
25968 ac_config_files="$ac_config_files Makefile t-func/Makefile t-func/atlocal dpkg-deb/Makefile dpkg-split/Makefile dselect/Makefile dselect/methods/Makefile dselect/po/Makefile.in lib/Makefile lib/compat/Makefile lib/dpkg/Makefile lib/dpkg/libdpkg.pc lib/dpkg/t/Makefile doc/Doxyfile man/Makefile po/Makefile.in scripts/Makefile scripts/mk/Makefile scripts/po/Makefile.in src/Makefile utils/Makefile"
25969
25970 ac_config_headers="$ac_config_headers config.h"
25971
25972 cat >confcache <<\_ACEOF
25973 # This file is a shell script that caches the results of configure
25974 # tests run on this system so they can be shared between configure
25975 # scripts and configure runs, see configure's option --config-cache.
25976 # It is not useful on other systems. If it contains results you don't
25977 # want to keep, you may remove or edit it.
25978 #
25979 # config.status only pays attention to the cache file if you give it
25980 # the --recheck option to rerun configure.
25981 #
25982 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25983 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25984 # following values.
25985
25986 _ACEOF
25987
25988 # The following way of writing the cache mishandles newlines in values,
25989 # but we know of no workaround that is simple, portable, and efficient.
25990 # So, we kill variables containing newlines.
25991 # Ultrix sh set writes to stderr and can't be redirected directly,
25992 # and sets the high bit in the cache file unless we assign to the vars.
25993 (
25994 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25995 eval ac_val=\$$ac_var
25996 case $ac_val in #(
25997 *${as_nl}*)
25998 case $ac_var in #(
25999 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26000 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26001 esac
26002 case $ac_var in #(
26003 _ | IFS | as_nl) ;; #(
26004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26005 *) { eval $ac_var=; unset $ac_var;} ;;
26006 esac ;;
26007 esac
26008 done
26009
26010 (set) 2>&1 |
26011 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26012 *${as_nl}ac_space=\ *)
26013 # `set' does not quote correctly, so add quotes: double-quote
26014 # substitution turns \\\\ into \\, and sed turns \\ into \.
26015 sed -n \
26016 "s/'/'\\\\''/g;
26017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26018 ;; #(
26019 *)
26020 # `set' quotes correctly as required by POSIX, so do not add quotes.
26021 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26022 ;;
26023 esac |
26024 sort
26025 ) |
26026 sed '
26027 /^ac_cv_env_/b end
26028 t clear
26029 :clear
26030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26031 t end
26032 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26033 :end' >>confcache
26034 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26035 if test -w "$cache_file"; then
26036 if test "x$cache_file" != "x/dev/null"; then
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26038 $as_echo "$as_me: updating cache $cache_file" >&6;}
26039 if test ! -f "$cache_file" || test -h "$cache_file"; then
26040 cat confcache >"$cache_file"
26041 else
26042 case $cache_file in #(
26043 */* | ?:*)
26044 mv -f confcache "$cache_file"$$ &&
26045 mv -f "$cache_file"$$ "$cache_file" ;; #(
26046 *)
26047 mv -f confcache "$cache_file" ;;
26048 esac
26049 fi
26050 fi
26051 else
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26053 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26054 fi
26055 fi
26056 rm -f confcache
26057
26058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26059 # Let make expand exec_prefix.
26060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26061
26062 DEFS=-DHAVE_CONFIG_H
26063
26064 ac_libobjs=
26065 ac_ltlibobjs=
26066 U=
26067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26068 # 1. Remove the extension, and $U if already installed.
26069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26070 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26072 # will be set to the directory where LIBOBJS objects are built.
26073 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26074 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26075 done
26076 LIBOBJS=$ac_libobjs
26077
26078 LTLIBOBJS=$ac_ltlibobjs
26079
26080
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26082 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26083 if test -n "$am_sleep_pid"; then
26084 # Hide warnings about reused PIDs.
26085 wait $am_sleep_pid 2>/dev/null
26086 fi
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26088 $as_echo "done" >&6; }
26089 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26090 as_fn_error $? "conditional \"AMDEP\" was never defined.
26091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26092 fi
26093 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26094 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26096 fi
26097 if test -n "$EXEEXT"; then
26098 am__EXEEXT_TRUE=
26099 am__EXEEXT_FALSE='#'
26100 else
26101 am__EXEEXT_TRUE='#'
26102 am__EXEEXT_FALSE=
26103 fi
26104
26105 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
26106 as_fn_error $? "conditional \"BUILD_SHARED\" was never defined.
26107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26108 fi
26109 if test -z "${HAVE_LINKER_AS_NEEDED_TRUE}" && test -z "${HAVE_LINKER_AS_NEEDED_FALSE}"; then
26110 as_fn_error $? "conditional \"HAVE_LINKER_AS_NEEDED\" was never defined.
26111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26112 fi
26113 if test -z "${HAVE_LINKER_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LINKER_VERSION_SCRIPT_FALSE}"; then
26114 as_fn_error $? "conditional \"HAVE_LINKER_VERSION_SCRIPT\" was never defined.
26115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26116 fi
26117 if test -z "${BUILD_DSELECT_TRUE}" && test -z "${BUILD_DSELECT_FALSE}"; then
26118 as_fn_error $? "conditional \"BUILD_DSELECT\" was never defined.
26119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26120 fi
26121 if test -z "${BUILD_START_STOP_DAEMON_TRUE}" && test -z "${BUILD_START_STOP_DAEMON_FALSE}"; then
26122 as_fn_error $? "conditional \"BUILD_START_STOP_DAEMON\" was never defined.
26123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26124 fi
26125 if test -z "${BUILD_UPDATE_ALTERNATIVES_TRUE}" && test -z "${BUILD_UPDATE_ALTERNATIVES_FALSE}"; then
26126 as_fn_error $? "conditional \"BUILD_UPDATE_ALTERNATIVES\" was never defined.
26127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26128 fi
26129 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26130 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26132 fi
26133 if test -z "${BUILD_POD_DOC_TRUE}" && test -z "${BUILD_POD_DOC_FALSE}"; then
26134 as_fn_error $? "conditional \"BUILD_POD_DOC\" was never defined.
26135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26136 fi
26137 if test -z "${COVERAGE_ENABLED_TRUE}" && test -z "${COVERAGE_ENABLED_FALSE}"; then
26138 as_fn_error $? "conditional \"COVERAGE_ENABLED\" was never defined.
26139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26140 fi
26141 if test -z "${HAVE_LIBMD_MD5_TRUE}" && test -z "${HAVE_LIBMD_MD5_FALSE}"; then
26142 as_fn_error $? "conditional \"HAVE_LIBMD_MD5\" was never defined.
26143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26144 fi
26145 if test -z "${WITH_LIBSELINUX_TRUE}" && test -z "${WITH_LIBSELINUX_FALSE}"; then
26146 as_fn_error $? "conditional \"WITH_LIBSELINUX\" was never defined.
26147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26148 fi
26149 if test -z "${HAVE_SETEXECFILECON_TRUE}" && test -z "${HAVE_SETEXECFILECON_FALSE}"; then
26150 as_fn_error $? "conditional \"HAVE_SETEXECFILECON\" was never defined.
26151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26152 fi
26153
26154 if test -z "${HAVE_SYS_ERRLIST_TRUE}" && test -z "${HAVE_SYS_ERRLIST_FALSE}"; then
26155 as_fn_error $? "conditional \"HAVE_SYS_ERRLIST\" was never defined.
26156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26157 fi
26158 if test -z "${HAVE_C99_SNPRINTF_TRUE}" && test -z "${HAVE_C99_SNPRINTF_FALSE}"; then
26159 as_fn_error $? "conditional \"HAVE_C99_SNPRINTF\" was never defined.
26160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26161 fi
26162 if test -z "${HAVE_GETOPT_TRUE}" && test -z "${HAVE_GETOPT_FALSE}"; then
26163 as_fn_error $? "conditional \"HAVE_GETOPT\" was never defined.
26164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26165 fi
26166 if test -z "${HAVE_GETOPT_LONG_TRUE}" && test -z "${HAVE_GETOPT_LONG_FALSE}"; then
26167 as_fn_error $? "conditional \"HAVE_GETOPT_LONG\" was never defined.
26168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26169 fi
26170 if test -z "${HAVE_OBSTACK_FREE_TRUE}" && test -z "${HAVE_OBSTACK_FREE_FALSE}"; then
26171 as_fn_error $? "conditional \"HAVE_OBSTACK_FREE\" was never defined.
26172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26173 fi
26174 if test -z "${HAVE_STRNLEN_TRUE}" && test -z "${HAVE_STRNLEN_FALSE}"; then
26175 as_fn_error $? "conditional \"HAVE_STRNLEN\" was never defined.
26176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26177 fi
26178 if test -z "${HAVE_STRNDUP_TRUE}" && test -z "${HAVE_STRNDUP_FALSE}"; then
26179 as_fn_error $? "conditional \"HAVE_STRNDUP\" was never defined.
26180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26181 fi
26182 if test -z "${HAVE_STRERROR_TRUE}" && test -z "${HAVE_STRERROR_FALSE}"; then
26183 as_fn_error $? "conditional \"HAVE_STRERROR\" was never defined.
26184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26185 fi
26186 if test -z "${HAVE_STRSIGNAL_TRUE}" && test -z "${HAVE_STRSIGNAL_FALSE}"; then
26187 as_fn_error $? "conditional \"HAVE_STRSIGNAL\" was never defined.
26188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26189 fi
26190 if test -z "${HAVE_ASPRINTF_TRUE}" && test -z "${HAVE_ASPRINTF_FALSE}"; then
26191 as_fn_error $? "conditional \"HAVE_ASPRINTF\" was never defined.
26192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26193 fi
26194 if test -z "${HAVE_SCANDIR_TRUE}" && test -z "${HAVE_SCANDIR_FALSE}"; then
26195 as_fn_error $? "conditional \"HAVE_SCANDIR\" was never defined.
26196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26197 fi
26198 if test -z "${HAVE_ALPHASORT_TRUE}" && test -z "${HAVE_ALPHASORT_FALSE}"; then
26199 as_fn_error $? "conditional \"HAVE_ALPHASORT\" was never defined.
26200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26201 fi
26202 if test -z "${HAVE_UNSETENV_TRUE}" && test -z "${HAVE_UNSETENV_FALSE}"; then
26203 as_fn_error $? "conditional \"HAVE_UNSETENV\" was never defined.
26204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26205 fi
26206
26207 : "${CONFIG_STATUS=./config.status}"
26208 ac_write_fail=0
26209 ac_clean_files_save=$ac_clean_files
26210 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26212 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26213 as_write_fail=0
26214 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26215 #! $SHELL
26216 # Generated by $as_me.
26217 # Run this file to recreate the current configuration.
26218 # Compiler output produced by configure, useful for debugging
26219 # configure, is in config.log if it exists.
26220
26221 debug=false
26222 ac_cs_recheck=false
26223 ac_cs_silent=false
26224
26225 SHELL=\${CONFIG_SHELL-$SHELL}
26226 export SHELL
26227 _ASEOF
26228 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26229 ## -------------------- ##
26230 ## M4sh Initialization. ##
26231 ## -------------------- ##
26232
26233 # Be more Bourne compatible
26234 DUALCASE=1; export DUALCASE # for MKS sh
26235 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26236 emulate sh
26237 NULLCMD=:
26238 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26239 # is contrary to our usage. Disable this feature.
26240 alias -g '${1+"$@"}'='"$@"'
26241 setopt NO_GLOB_SUBST
26242 else
26243 case `(set -o) 2>/dev/null` in #(
26244 *posix*) :
26245 set -o posix ;; #(
26246 *) :
26247 ;;
26248 esac
26249 fi
26250
26251
26252 as_nl='
26253 '
26254 export as_nl
26255 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26256 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26257 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26258 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26259 # Prefer a ksh shell builtin over an external printf program on Solaris,
26260 # but without wasting forks for bash or zsh.
26261 if test -z "$BASH_VERSION$ZSH_VERSION" \
26262 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26263 as_echo='print -r --'
26264 as_echo_n='print -rn --'
26265 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26266 as_echo='printf %s\n'
26267 as_echo_n='printf %s'
26268 else
26269 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26270 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26271 as_echo_n='/usr/ucb/echo -n'
26272 else
26273 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26274 as_echo_n_body='eval
26275 arg=$1;
26276 case $arg in #(
26277 *"$as_nl"*)
26278 expr "X$arg" : "X\\(.*\\)$as_nl";
26279 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26280 esac;
26281 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26282 '
26283 export as_echo_n_body
26284 as_echo_n='sh -c $as_echo_n_body as_echo'
26285 fi
26286 export as_echo_body
26287 as_echo='sh -c $as_echo_body as_echo'
26288 fi
26289
26290 # The user is always right.
26291 if test "${PATH_SEPARATOR+set}" != set; then
26292 PATH_SEPARATOR=:
26293 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26294 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26295 PATH_SEPARATOR=';'
26296 }
26297 fi
26298
26299
26300 # IFS
26301 # We need space, tab and new line, in precisely that order. Quoting is
26302 # there to prevent editors from complaining about space-tab.
26303 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26304 # splitting by setting IFS to empty value.)
26305 IFS=" "" $as_nl"
26306
26307 # Find who we are. Look in the path if we contain no directory separator.
26308 as_myself=
26309 case $0 in #((
26310 *[\\/]* ) as_myself=$0 ;;
26311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26312 for as_dir in $PATH
26313 do
26314 IFS=$as_save_IFS
26315 test -z "$as_dir" && as_dir=.
26316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26317 done
26318 IFS=$as_save_IFS
26319
26320 ;;
26321 esac
26322 # We did not find ourselves, most probably we were run as `sh COMMAND'
26323 # in which case we are not to be found in the path.
26324 if test "x$as_myself" = x; then
26325 as_myself=$0
26326 fi
26327 if test ! -f "$as_myself"; then
26328 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26329 exit 1
26330 fi
26331
26332 # Unset variables that we do not need and which cause bugs (e.g. in
26333 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26334 # suppresses any "Segmentation fault" message there. '((' could
26335 # trigger a bug in pdksh 5.2.14.
26336 for as_var in BASH_ENV ENV MAIL MAILPATH
26337 do eval test x\${$as_var+set} = xset \
26338 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26339 done
26340 PS1='$ '
26341 PS2='> '
26342 PS4='+ '
26343
26344 # NLS nuisances.
26345 LC_ALL=C
26346 export LC_ALL
26347 LANGUAGE=C
26348 export LANGUAGE
26349
26350 # CDPATH.
26351 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26352
26353
26354 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26355 # ----------------------------------------
26356 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26357 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26358 # script with STATUS, using 1 if that was 0.
26359 as_fn_error ()
26360 {
26361 as_status=$1; test $as_status -eq 0 && as_status=1
26362 if test "$4"; then
26363 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26364 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26365 fi
26366 $as_echo "$as_me: error: $2" >&2
26367 as_fn_exit $as_status
26368 } # as_fn_error
26369
26370
26371 # as_fn_set_status STATUS
26372 # -----------------------
26373 # Set $? to STATUS, without forking.
26374 as_fn_set_status ()
26375 {
26376 return $1
26377 } # as_fn_set_status
26378
26379 # as_fn_exit STATUS
26380 # -----------------
26381 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26382 as_fn_exit ()
26383 {
26384 set +e
26385 as_fn_set_status $1
26386 exit $1
26387 } # as_fn_exit
26388
26389 # as_fn_unset VAR
26390 # ---------------
26391 # Portably unset VAR.
26392 as_fn_unset ()
26393 {
26394 { eval $1=; unset $1;}
26395 }
26396 as_unset=as_fn_unset
26397 # as_fn_append VAR VALUE
26398 # ----------------------
26399 # Append the text in VALUE to the end of the definition contained in VAR. Take
26400 # advantage of any shell optimizations that allow amortized linear growth over
26401 # repeated appends, instead of the typical quadratic growth present in naive
26402 # implementations.
26403 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26404 eval 'as_fn_append ()
26405 {
26406 eval $1+=\$2
26407 }'
26408 else
26409 as_fn_append ()
26410 {
26411 eval $1=\$$1\$2
26412 }
26413 fi # as_fn_append
26414
26415 # as_fn_arith ARG...
26416 # ------------------
26417 # Perform arithmetic evaluation on the ARGs, and store the result in the
26418 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26419 # must be portable across $(()) and expr.
26420 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26421 eval 'as_fn_arith ()
26422 {
26423 as_val=$(( $* ))
26424 }'
26425 else
26426 as_fn_arith ()
26427 {
26428 as_val=`expr "$@" || test $? -eq 1`
26429 }
26430 fi # as_fn_arith
26431
26432
26433 if expr a : '\(a\)' >/dev/null 2>&1 &&
26434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26435 as_expr=expr
26436 else
26437 as_expr=false
26438 fi
26439
26440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26441 as_basename=basename
26442 else
26443 as_basename=false
26444 fi
26445
26446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26447 as_dirname=dirname
26448 else
26449 as_dirname=false
26450 fi
26451
26452 as_me=`$as_basename -- "$0" ||
26453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26454 X"$0" : 'X\(//\)$' \| \
26455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26456 $as_echo X/"$0" |
26457 sed '/^.*\/\([^/][^/]*\)\/*$/{
26458 s//\1/
26459 q
26460 }
26461 /^X\/\(\/\/\)$/{
26462 s//\1/
26463 q
26464 }
26465 /^X\/\(\/\).*/{
26466 s//\1/
26467 q
26468 }
26469 s/.*/./; q'`
26470
26471 # Avoid depending upon Character Ranges.
26472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26475 as_cr_digits='0123456789'
26476 as_cr_alnum=$as_cr_Letters$as_cr_digits
26477
26478 ECHO_C= ECHO_N= ECHO_T=
26479 case `echo -n x` in #(((((
26480 -n*)
26481 case `echo 'xy\c'` in
26482 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26483 xy) ECHO_C='\c';;
26484 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26485 ECHO_T=' ';;
26486 esac;;
26487 *)
26488 ECHO_N='-n';;
26489 esac
26490
26491 rm -f conf$$ conf$$.exe conf$$.file
26492 if test -d conf$$.dir; then
26493 rm -f conf$$.dir/conf$$.file
26494 else
26495 rm -f conf$$.dir
26496 mkdir conf$$.dir 2>/dev/null
26497 fi
26498 if (echo >conf$$.file) 2>/dev/null; then
26499 if ln -s conf$$.file conf$$ 2>/dev/null; then
26500 as_ln_s='ln -s'
26501 # ... but there are two gotchas:
26502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26504 # In both cases, we have to default to `cp -pR'.
26505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26506 as_ln_s='cp -pR'
26507 elif ln conf$$.file conf$$ 2>/dev/null; then
26508 as_ln_s=ln
26509 else
26510 as_ln_s='cp -pR'
26511 fi
26512 else
26513 as_ln_s='cp -pR'
26514 fi
26515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26516 rmdir conf$$.dir 2>/dev/null
26517
26518
26519 # as_fn_mkdir_p
26520 # -------------
26521 # Create "$as_dir" as a directory, including parents if necessary.
26522 as_fn_mkdir_p ()
26523 {
26524
26525 case $as_dir in #(
26526 -*) as_dir=./$as_dir;;
26527 esac
26528 test -d "$as_dir" || eval $as_mkdir_p || {
26529 as_dirs=
26530 while :; do
26531 case $as_dir in #(
26532 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26533 *) as_qdir=$as_dir;;
26534 esac
26535 as_dirs="'$as_qdir' $as_dirs"
26536 as_dir=`$as_dirname -- "$as_dir" ||
26537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26538 X"$as_dir" : 'X\(//\)[^/]' \| \
26539 X"$as_dir" : 'X\(//\)$' \| \
26540 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26541 $as_echo X"$as_dir" |
26542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26543 s//\1/
26544 q
26545 }
26546 /^X\(\/\/\)[^/].*/{
26547 s//\1/
26548 q
26549 }
26550 /^X\(\/\/\)$/{
26551 s//\1/
26552 q
26553 }
26554 /^X\(\/\).*/{
26555 s//\1/
26556 q
26557 }
26558 s/.*/./; q'`
26559 test -d "$as_dir" && break
26560 done
26561 test -z "$as_dirs" || eval "mkdir $as_dirs"
26562 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26563
26564
26565 } # as_fn_mkdir_p
26566 if mkdir -p . 2>/dev/null; then
26567 as_mkdir_p='mkdir -p "$as_dir"'
26568 else
26569 test -d ./-p && rmdir ./-p
26570 as_mkdir_p=false
26571 fi
26572
26573
26574 # as_fn_executable_p FILE
26575 # -----------------------
26576 # Test if FILE is an executable regular file.
26577 as_fn_executable_p ()
26578 {
26579 test -f "$1" && test -x "$1"
26580 } # as_fn_executable_p
26581 as_test_x='test -x'
26582 as_executable_p=as_fn_executable_p
26583
26584 # Sed expression to map a string onto a valid CPP name.
26585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26586
26587 # Sed expression to map a string onto a valid variable name.
26588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26589
26590
26591 exec 6>&1
26592 ## ----------------------------------- ##
26593 ## Main body of $CONFIG_STATUS script. ##
26594 ## ----------------------------------- ##
26595 _ASEOF
26596 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26597
26598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26599 # Save the log message, to keep $0 and so on meaningful, and to
26600 # report actual input values of CONFIG_FILES etc. instead of their
26601 # values after options handling.
26602 ac_log="
26603 This file was extended by dpkg $as_me 1.18.25, which was
26604 generated by GNU Autoconf 2.69. Invocation command line was
26605
26606 CONFIG_FILES = $CONFIG_FILES
26607 CONFIG_HEADERS = $CONFIG_HEADERS
26608 CONFIG_LINKS = $CONFIG_LINKS
26609 CONFIG_COMMANDS = $CONFIG_COMMANDS
26610 $ $0 $@
26611
26612 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26613 "
26614
26615 _ACEOF
26616
26617 case $ac_config_files in *"
26618 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26619 esac
26620
26621 case $ac_config_headers in *"
26622 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26623 esac
26624
26625
26626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26627 # Files that config.status was made for.
26628 config_files="$ac_config_files"
26629 config_headers="$ac_config_headers"
26630 config_commands="$ac_config_commands"
26631
26632 _ACEOF
26633
26634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26635 ac_cs_usage="\
26636 \`$as_me' instantiates files and other configuration actions
26637 from templates according to the current configuration. Unless the files
26638 and actions are specified as TAGs, all are instantiated by default.
26639
26640 Usage: $0 [OPTION]... [TAG]...
26641
26642 -h, --help print this help, then exit
26643 -V, --version print version number and configuration settings, then exit
26644 --config print configuration, then exit
26645 -q, --quiet, --silent
26646 do not print progress messages
26647 -d, --debug don't remove temporary files
26648 --recheck update $as_me by reconfiguring in the same conditions
26649 --file=FILE[:TEMPLATE]
26650 instantiate the configuration file FILE
26651 --header=FILE[:TEMPLATE]
26652 instantiate the configuration header FILE
26653
26654 Configuration files:
26655 $config_files
26656
26657 Configuration headers:
26658 $config_headers
26659
26660 Configuration commands:
26661 $config_commands
26662
26663 Report bugs to <debian-dpkg@lists.debian.org>."
26664
26665 _ACEOF
26666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26667 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26668 ac_cs_version="\\
26669 dpkg config.status 1.18.25
26670 configured by $0, generated by GNU Autoconf 2.69,
26671 with options \\"\$ac_cs_config\\"
26672
26673 Copyright (C) 2012 Free Software Foundation, Inc.
26674 This config.status script is free software; the Free Software Foundation
26675 gives unlimited permission to copy, distribute and modify it."
26676
26677 ac_pwd='$ac_pwd'
26678 srcdir='$srcdir'
26679 INSTALL='$INSTALL'
26680 MKDIR_P='$MKDIR_P'
26681 AWK='$AWK'
26682 test -n "\$AWK" || AWK=awk
26683 _ACEOF
26684
26685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26686 # The default lists apply if the user does not specify any file.
26687 ac_need_defaults=:
26688 while test $# != 0
26689 do
26690 case $1 in
26691 --*=?*)
26692 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26693 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26694 ac_shift=:
26695 ;;
26696 --*=)
26697 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26698 ac_optarg=
26699 ac_shift=:
26700 ;;
26701 *)
26702 ac_option=$1
26703 ac_optarg=$2
26704 ac_shift=shift
26705 ;;
26706 esac
26707
26708 case $ac_option in
26709 # Handling of the options.
26710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26711 ac_cs_recheck=: ;;
26712 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26713 $as_echo "$ac_cs_version"; exit ;;
26714 --config | --confi | --conf | --con | --co | --c )
26715 $as_echo "$ac_cs_config"; exit ;;
26716 --debug | --debu | --deb | --de | --d | -d )
26717 debug=: ;;
26718 --file | --fil | --fi | --f )
26719 $ac_shift
26720 case $ac_optarg in
26721 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26722 '') as_fn_error $? "missing file argument" ;;
26723 esac
26724 as_fn_append CONFIG_FILES " '$ac_optarg'"
26725 ac_need_defaults=false;;
26726 --header | --heade | --head | --hea )
26727 $ac_shift
26728 case $ac_optarg in
26729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26730 esac
26731 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26732 ac_need_defaults=false;;
26733 --he | --h)
26734 # Conflict between --help and --header
26735 as_fn_error $? "ambiguous option: \`$1'
26736 Try \`$0 --help' for more information.";;
26737 --help | --hel | -h )
26738 $as_echo "$ac_cs_usage"; exit ;;
26739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26740 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26741 ac_cs_silent=: ;;
26742
26743 # This is an error.
26744 -*) as_fn_error $? "unrecognized option: \`$1'
26745 Try \`$0 --help' for more information." ;;
26746
26747 *) as_fn_append ac_config_targets " $1"
26748 ac_need_defaults=false ;;
26749
26750 esac
26751 shift
26752 done
26753
26754 ac_configure_extra_args=
26755
26756 if $ac_cs_silent; then
26757 exec 6>/dev/null
26758 ac_configure_extra_args="$ac_configure_extra_args --silent"
26759 fi
26760
26761 _ACEOF
26762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26763 if \$ac_cs_recheck; then
26764 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26765 shift
26766 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26767 CONFIG_SHELL='$SHELL'
26768 export CONFIG_SHELL
26769 exec "\$@"
26770 fi
26771
26772 _ACEOF
26773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26774 exec 5>>config.log
26775 {
26776 echo
26777 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26778 ## Running $as_me. ##
26779 _ASBOX
26780 $as_echo "$ac_log"
26781 } >&5
26782
26783 _ACEOF
26784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26785 #
26786 # INIT-COMMANDS
26787 #
26788 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26789 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
26790 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
26791 # from automake < 1.5.
26792 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
26793 # Capture the value of LINGUAS because we need it to compute CATALOGS.
26794 LINGUAS="${LINGUAS-%UNSET%}"
26795
26796
26797
26798 # The HP-UX ksh and POSIX shell print the target directory to stdout
26799 # if CDPATH is set.
26800 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26801
26802 sed_quote_subst='$sed_quote_subst'
26803 double_quote_subst='$double_quote_subst'
26804 delay_variable_subst='$delay_variable_subst'
26805 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26806 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26807 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26808 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26809 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26810 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26811 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
26812 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26813 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26814 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26815 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26816 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26817 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26818 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26819 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26820 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26821 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26822 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26823 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26824 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26825 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26826 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26827 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26828 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26829 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26830 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26831 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26832 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26833 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26834 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26835 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26836 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26837 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26838 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26839 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26840 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26841 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26842 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26843 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26844 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26845 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26846 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26847 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26848 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26849 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26850 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26851 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26852 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26853 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26854 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26855 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26856 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26857 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26858 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26859 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26860 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26861 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
26862 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26863 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"`'
26864 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
26865 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26866 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26867 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
26868 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26869 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26870 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26871 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26872 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26873 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26874 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26875 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26876 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26877 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26878 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26879 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26880 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26881 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26882 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26883 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26884 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26885 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26886 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26887 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26888 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26889 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26890 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26891 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26892 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26893 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26894 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26895 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26896 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26897 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26898 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26899 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26900 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26901 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26902 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26903 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26904 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26905 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26906 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26907 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26908 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26909 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26910 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26911 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26912 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26913 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26914 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26915 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26916 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26917 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26918 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26919 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26920 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26921 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26922 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26923 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26924 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26925 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26926 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26927 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26928 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26929 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26930 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26931 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26932 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
26933 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
26934 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26935 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26936 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26937 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26938 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26939 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26940 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26941 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26942 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26943 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26944 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26945 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26946 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26947 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26948 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26949 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26950 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26951 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26952 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26953 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26954 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26955 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26956 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26957 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26958 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26959 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26960 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26961 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26962 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26963 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26964 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26965 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26966 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26967 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26968 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26969 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26970 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26971 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26972 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26973 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26974 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26975 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26976 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26977 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26978 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26979 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26980 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26981 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26982 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26983 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26984 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26985 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26986 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26987 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26988 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26989 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26990 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26991 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26992 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26993 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26994
26995 LTCC='$LTCC'
26996 LTCFLAGS='$LTCFLAGS'
26997 compiler='$compiler_DEFAULT'
26998
26999 # A function that is used when there is no print builtin or printf.
27000 func_fallback_echo ()
27001 {
27002 eval 'cat <<_LTECHO_EOF
27003 \$1
27004 _LTECHO_EOF'
27005 }
27006
27007 # Quote evaled strings.
27008 for var in SHELL \
27009 ECHO \
27010 PATH_SEPARATOR \
27011 SED \
27012 GREP \
27013 EGREP \
27014 FGREP \
27015 LD \
27016 NM \
27017 LN_S \
27018 lt_SP2NL \
27019 lt_NL2SP \
27020 reload_flag \
27021 OBJDUMP \
27022 deplibs_check_method \
27023 file_magic_cmd \
27024 file_magic_glob \
27025 want_nocaseglob \
27026 DLLTOOL \
27027 sharedlib_from_linklib_cmd \
27028 AR \
27029 AR_FLAGS \
27030 archiver_list_spec \
27031 STRIP \
27032 RANLIB \
27033 CC \
27034 CFLAGS \
27035 compiler \
27036 lt_cv_sys_global_symbol_pipe \
27037 lt_cv_sys_global_symbol_to_cdecl \
27038 lt_cv_sys_global_symbol_to_import \
27039 lt_cv_sys_global_symbol_to_c_name_address \
27040 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27041 lt_cv_nm_interface \
27042 nm_file_list_spec \
27043 lt_cv_truncate_bin \
27044 lt_prog_compiler_no_builtin_flag \
27045 lt_prog_compiler_pic \
27046 lt_prog_compiler_wl \
27047 lt_prog_compiler_static \
27048 lt_cv_prog_compiler_c_o \
27049 need_locks \
27050 MANIFEST_TOOL \
27051 DSYMUTIL \
27052 NMEDIT \
27053 LIPO \
27054 OTOOL \
27055 OTOOL64 \
27056 shrext_cmds \
27057 export_dynamic_flag_spec \
27058 whole_archive_flag_spec \
27059 compiler_needs_object \
27060 with_gnu_ld \
27061 allow_undefined_flag \
27062 no_undefined_flag \
27063 hardcode_libdir_flag_spec \
27064 hardcode_libdir_separator \
27065 exclude_expsyms \
27066 include_expsyms \
27067 file_list_spec \
27068 variables_saved_for_relink \
27069 libname_spec \
27070 library_names_spec \
27071 soname_spec \
27072 install_override_mode \
27073 finish_eval \
27074 old_striplib \
27075 striplib \
27076 compiler_lib_search_dirs \
27077 predep_objects \
27078 postdep_objects \
27079 predeps \
27080 postdeps \
27081 compiler_lib_search_path \
27082 LD_CXX \
27083 reload_flag_CXX \
27084 compiler_CXX \
27085 lt_prog_compiler_no_builtin_flag_CXX \
27086 lt_prog_compiler_pic_CXX \
27087 lt_prog_compiler_wl_CXX \
27088 lt_prog_compiler_static_CXX \
27089 lt_cv_prog_compiler_c_o_CXX \
27090 export_dynamic_flag_spec_CXX \
27091 whole_archive_flag_spec_CXX \
27092 compiler_needs_object_CXX \
27093 with_gnu_ld_CXX \
27094 allow_undefined_flag_CXX \
27095 no_undefined_flag_CXX \
27096 hardcode_libdir_flag_spec_CXX \
27097 hardcode_libdir_separator_CXX \
27098 exclude_expsyms_CXX \
27099 include_expsyms_CXX \
27100 file_list_spec_CXX \
27101 compiler_lib_search_dirs_CXX \
27102 predep_objects_CXX \
27103 postdep_objects_CXX \
27104 predeps_CXX \
27105 postdeps_CXX \
27106 compiler_lib_search_path_CXX; do
27107 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27108 *[\\\\\\\`\\"\\\$]*)
27109 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27110 ;;
27111 *)
27112 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27113 ;;
27114 esac
27115 done
27116
27117 # Double-quote double-evaled strings.
27118 for var in reload_cmds \
27119 old_postinstall_cmds \
27120 old_postuninstall_cmds \
27121 old_archive_cmds \
27122 extract_expsyms_cmds \
27123 old_archive_from_new_cmds \
27124 old_archive_from_expsyms_cmds \
27125 archive_cmds \
27126 archive_expsym_cmds \
27127 module_cmds \
27128 module_expsym_cmds \
27129 export_symbols_cmds \
27130 prelink_cmds \
27131 postlink_cmds \
27132 postinstall_cmds \
27133 postuninstall_cmds \
27134 finish_cmds \
27135 sys_lib_search_path_spec \
27136 configure_time_dlsearch_path \
27137 configure_time_lt_sys_library_path \
27138 reload_cmds_CXX \
27139 old_archive_cmds_CXX \
27140 old_archive_from_new_cmds_CXX \
27141 old_archive_from_expsyms_cmds_CXX \
27142 archive_cmds_CXX \
27143 archive_expsym_cmds_CXX \
27144 module_cmds_CXX \
27145 module_expsym_cmds_CXX \
27146 export_symbols_cmds_CXX \
27147 prelink_cmds_CXX \
27148 postlink_cmds_CXX; do
27149 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27150 *[\\\\\\\`\\"\\\$]*)
27151 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27152 ;;
27153 *)
27154 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27155 ;;
27156 esac
27157 done
27158
27159 ac_aux_dir='$ac_aux_dir'
27160
27161 # See if we are running on zsh, and set the options that allow our
27162 # commands through without removal of \ escapes INIT.
27163 if test -n "\${ZSH_VERSION+set}"; then
27164 setopt NO_GLOB_SUBST
27165 fi
27166
27167
27168 PACKAGE='$PACKAGE'
27169 VERSION='$VERSION'
27170 RM='$RM'
27171 ofile='$ofile'
27172
27173
27174
27175
27176
27177
27178
27179 _ACEOF
27180
27181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27182
27183 # Handling of arguments.
27184 for ac_config_target in $ac_config_targets
27185 do
27186 case $ac_config_target in
27187 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27188 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
27189 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27190 "t-func/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS t-func/atconfig" ;;
27191 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27192 "t-func/Makefile") CONFIG_FILES="$CONFIG_FILES t-func/Makefile" ;;
27193 "t-func/atlocal") CONFIG_FILES="$CONFIG_FILES t-func/atlocal" ;;
27194 "dpkg-deb/Makefile") CONFIG_FILES="$CONFIG_FILES dpkg-deb/Makefile" ;;
27195 "dpkg-split/Makefile") CONFIG_FILES="$CONFIG_FILES dpkg-split/Makefile" ;;
27196 "dselect/Makefile") CONFIG_FILES="$CONFIG_FILES dselect/Makefile" ;;
27197 "dselect/methods/Makefile") CONFIG_FILES="$CONFIG_FILES dselect/methods/Makefile" ;;
27198 "dselect/po/Makefile.in") CONFIG_FILES="$CONFIG_FILES dselect/po/Makefile.in" ;;
27199 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27200 "lib/compat/Makefile") CONFIG_FILES="$CONFIG_FILES lib/compat/Makefile" ;;
27201 "lib/dpkg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dpkg/Makefile" ;;
27202 "lib/dpkg/libdpkg.pc") CONFIG_FILES="$CONFIG_FILES lib/dpkg/libdpkg.pc" ;;
27203 "lib/dpkg/t/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dpkg/t/Makefile" ;;
27204 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27205 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
27206 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27207 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
27208 "scripts/mk/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/mk/Makefile" ;;
27209 "scripts/po/Makefile.in") CONFIG_FILES="$CONFIG_FILES scripts/po/Makefile.in" ;;
27210 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27211 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27212 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27213
27214 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27215 esac
27216 done
27217
27218
27219 # If the user did not use the arguments to specify the items to instantiate,
27220 # then the envvar interface is used. Set only those that are not.
27221 # We use the long form for the default assignment because of an extremely
27222 # bizarre bug on SunOS 4.1.3.
27223 if $ac_need_defaults; then
27224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27226 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27227 fi
27228
27229 # Have a temporary directory for convenience. Make it in the build tree
27230 # simply because there is no reason against having it here, and in addition,
27231 # creating and moving files from /tmp can sometimes cause problems.
27232 # Hook for its removal unless debugging.
27233 # Note that there is a small window in which the directory will not be cleaned:
27234 # after its creation but before its name has been assigned to `$tmp'.
27235 $debug ||
27236 {
27237 tmp= ac_tmp=
27238 trap 'exit_status=$?
27239 : "${ac_tmp:=$tmp}"
27240 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27241 ' 0
27242 trap 'as_fn_exit 1' 1 2 13 15
27243 }
27244 # Create a (secure) tmp directory for tmp files.
27245
27246 {
27247 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27248 test -d "$tmp"
27249 } ||
27250 {
27251 tmp=./conf$$-$RANDOM
27252 (umask 077 && mkdir "$tmp")
27253 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27254 ac_tmp=$tmp
27255
27256 # Set up the scripts for CONFIG_FILES section.
27257 # No need to generate them if there are no CONFIG_FILES.
27258 # This happens for instance with `./config.status config.h'.
27259 if test -n "$CONFIG_FILES"; then
27260
27261
27262 ac_cr=`echo X | tr X '\015'`
27263 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27264 # But we know of no other shell where ac_cr would be empty at this
27265 # point, so we can use a bashism as a fallback.
27266 if test "x$ac_cr" = x; then
27267 eval ac_cr=\$\'\\r\'
27268 fi
27269 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27270 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27271 ac_cs_awk_cr='\\r'
27272 else
27273 ac_cs_awk_cr=$ac_cr
27274 fi
27275
27276 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27277 _ACEOF
27278
27279
27280 {
27281 echo "cat >conf$$subs.awk <<_ACEOF" &&
27282 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27283 echo "_ACEOF"
27284 } >conf$$subs.sh ||
27285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27286 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27287 ac_delim='%!_!# '
27288 for ac_last_try in false false false false false :; do
27289 . ./conf$$subs.sh ||
27290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27291
27292 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27293 if test $ac_delim_n = $ac_delim_num; then
27294 break
27295 elif $ac_last_try; then
27296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27297 else
27298 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27299 fi
27300 done
27301 rm -f conf$$subs.sh
27302
27303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27304 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27305 _ACEOF
27306 sed -n '
27307 h
27308 s/^/S["/; s/!.*/"]=/
27309 p
27310 g
27311 s/^[^!]*!//
27312 :repl
27313 t repl
27314 s/'"$ac_delim"'$//
27315 t delim
27316 :nl
27317 h
27318 s/\(.\{148\}\)..*/\1/
27319 t more1
27320 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27321 p
27322 n
27323 b repl
27324 :more1
27325 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27326 p
27327 g
27328 s/.\{148\}//
27329 t nl
27330 :delim
27331 h
27332 s/\(.\{148\}\)..*/\1/
27333 t more2
27334 s/["\\]/\\&/g; s/^/"/; s/$/"/
27335 p
27336 b
27337 :more2
27338 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27339 p
27340 g
27341 s/.\{148\}//
27342 t delim
27343 ' <conf$$subs.awk | sed '
27344 /^[^""]/{
27345 N
27346 s/\n//
27347 }
27348 ' >>$CONFIG_STATUS || ac_write_fail=1
27349 rm -f conf$$subs.awk
27350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27351 _ACAWK
27352 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27353 for (key in S) S_is_set[key] = 1
27354 FS = "\a"
27355
27356 }
27357 {
27358 line = $ 0
27359 nfields = split(line, field, "@")
27360 substed = 0
27361 len = length(field[1])
27362 for (i = 2; i < nfields; i++) {
27363 key = field[i]
27364 keylen = length(key)
27365 if (S_is_set[key]) {
27366 value = S[key]
27367 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27368 len += length(value) + length(field[++i])
27369 substed = 1
27370 } else
27371 len += 1 + keylen
27372 }
27373
27374 print line
27375 }
27376
27377 _ACAWK
27378 _ACEOF
27379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27380 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27381 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27382 else
27383 cat
27384 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27385 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27386 _ACEOF
27387
27388 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27389 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27390 # trailing colons and then remove the whole line if VPATH becomes empty
27391 # (actually we leave an empty line to preserve line numbers).
27392 if test "x$srcdir" = x.; then
27393 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27394 h
27395 s///
27396 s/^/:/
27397 s/[ ]*$/:/
27398 s/:\$(srcdir):/:/g
27399 s/:\${srcdir}:/:/g
27400 s/:@srcdir@:/:/g
27401 s/^:*//
27402 s/:*$//
27403 x
27404 s/\(=[ ]*\).*/\1/
27405 G
27406 s/\n//
27407 s/^[^=]*=[ ]*$//
27408 }'
27409 fi
27410
27411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27412 fi # test -n "$CONFIG_FILES"
27413
27414 # Set up the scripts for CONFIG_HEADERS section.
27415 # No need to generate them if there are no CONFIG_HEADERS.
27416 # This happens for instance with `./config.status Makefile'.
27417 if test -n "$CONFIG_HEADERS"; then
27418 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27419 BEGIN {
27420 _ACEOF
27421
27422 # Transform confdefs.h into an awk script `defines.awk', embedded as
27423 # here-document in config.status, that substitutes the proper values into
27424 # config.h.in to produce config.h.
27425
27426 # Create a delimiter string that does not exist in confdefs.h, to ease
27427 # handling of long lines.
27428 ac_delim='%!_!# '
27429 for ac_last_try in false false :; do
27430 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27431 if test -z "$ac_tt"; then
27432 break
27433 elif $ac_last_try; then
27434 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27435 else
27436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27437 fi
27438 done
27439
27440 # For the awk script, D is an array of macro values keyed by name,
27441 # likewise P contains macro parameters if any. Preserve backslash
27442 # newline sequences.
27443
27444 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27445 sed -n '
27446 s/.\{148\}/&'"$ac_delim"'/g
27447 t rset
27448 :rset
27449 s/^[ ]*#[ ]*define[ ][ ]*/ /
27450 t def
27451 d
27452 :def
27453 s/\\$//
27454 t bsnl
27455 s/["\\]/\\&/g
27456 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27457 D["\1"]=" \3"/p
27458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27459 d
27460 :bsnl
27461 s/["\\]/\\&/g
27462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27463 D["\1"]=" \3\\\\\\n"\\/p
27464 t cont
27465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27466 t cont
27467 d
27468 :cont
27469 n
27470 s/.\{148\}/&'"$ac_delim"'/g
27471 t clear
27472 :clear
27473 s/\\$//
27474 t bsnlc
27475 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27476 d
27477 :bsnlc
27478 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27479 b cont
27480 ' <confdefs.h | sed '
27481 s/'"$ac_delim"'/"\\\
27482 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27483
27484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27485 for (key in D) D_is_set[key] = 1
27486 FS = "\a"
27487 }
27488 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27489 line = \$ 0
27490 split(line, arg, " ")
27491 if (arg[1] == "#") {
27492 defundef = arg[2]
27493 mac1 = arg[3]
27494 } else {
27495 defundef = substr(arg[1], 2)
27496 mac1 = arg[2]
27497 }
27498 split(mac1, mac2, "(") #)
27499 macro = mac2[1]
27500 prefix = substr(line, 1, index(line, defundef) - 1)
27501 if (D_is_set[macro]) {
27502 # Preserve the white space surrounding the "#".
27503 print prefix "define", macro P[macro] D[macro]
27504 next
27505 } else {
27506 # Replace #undef with comments. This is necessary, for example,
27507 # in the case of _POSIX_SOURCE, which is predefined and required
27508 # on some systems where configure will not decide to define it.
27509 if (defundef == "undef") {
27510 print "/*", prefix defundef, macro, "*/"
27511 next
27512 }
27513 }
27514 }
27515 { print }
27516 _ACAWK
27517 _ACEOF
27518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27519 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27520 fi # test -n "$CONFIG_HEADERS"
27521
27522
27523 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27524 shift
27525 for ac_tag
27526 do
27527 case $ac_tag in
27528 :[FHLC]) ac_mode=$ac_tag; continue;;
27529 esac
27530 case $ac_mode$ac_tag in
27531 :[FHL]*:*);;
27532 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27533 :[FH]-) ac_tag=-:-;;
27534 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27535 esac
27536 ac_save_IFS=$IFS
27537 IFS=:
27538 set x $ac_tag
27539 IFS=$ac_save_IFS
27540 shift
27541 ac_file=$1
27542 shift
27543
27544 case $ac_mode in
27545 :L) ac_source=$1;;
27546 :[FH])
27547 ac_file_inputs=
27548 for ac_f
27549 do
27550 case $ac_f in
27551 -) ac_f="$ac_tmp/stdin";;
27552 *) # Look for the file first in the build tree, then in the source tree
27553 # (if the path is not absolute). The absolute path cannot be DOS-style,
27554 # because $ac_f cannot contain `:'.
27555 test -f "$ac_f" ||
27556 case $ac_f in
27557 [\\/$]*) false;;
27558 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27559 esac ||
27560 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27561 esac
27562 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27563 as_fn_append ac_file_inputs " '$ac_f'"
27564 done
27565
27566 # Let's still pretend it is `configure' which instantiates (i.e., don't
27567 # use $as_me), people would be surprised to read:
27568 # /* config.h. Generated by config.status. */
27569 configure_input='Generated from '`
27570 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27571 `' by configure.'
27572 if test x"$ac_file" != x-; then
27573 configure_input="$ac_file. $configure_input"
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27575 $as_echo "$as_me: creating $ac_file" >&6;}
27576 fi
27577 # Neutralize special characters interpreted by sed in replacement strings.
27578 case $configure_input in #(
27579 *\&* | *\|* | *\\* )
27580 ac_sed_conf_input=`$as_echo "$configure_input" |
27581 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27582 *) ac_sed_conf_input=$configure_input;;
27583 esac
27584
27585 case $ac_tag in
27586 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27588 esac
27589 ;;
27590 esac
27591
27592 ac_dir=`$as_dirname -- "$ac_file" ||
27593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27594 X"$ac_file" : 'X\(//\)[^/]' \| \
27595 X"$ac_file" : 'X\(//\)$' \| \
27596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27597 $as_echo X"$ac_file" |
27598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27599 s//\1/
27600 q
27601 }
27602 /^X\(\/\/\)[^/].*/{
27603 s//\1/
27604 q
27605 }
27606 /^X\(\/\/\)$/{
27607 s//\1/
27608 q
27609 }
27610 /^X\(\/\).*/{
27611 s//\1/
27612 q
27613 }
27614 s/.*/./; q'`
27615 as_dir="$ac_dir"; as_fn_mkdir_p
27616 ac_builddir=.
27617
27618 case "$ac_dir" in
27619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27620 *)
27621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27622 # A ".." for each directory in $ac_dir_suffix.
27623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27624 case $ac_top_builddir_sub in
27625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27627 esac ;;
27628 esac
27629 ac_abs_top_builddir=$ac_pwd
27630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27631 # for backward compatibility:
27632 ac_top_builddir=$ac_top_build_prefix
27633
27634 case $srcdir in
27635 .) # We are building in place.
27636 ac_srcdir=.
27637 ac_top_srcdir=$ac_top_builddir_sub
27638 ac_abs_top_srcdir=$ac_pwd ;;
27639 [\\/]* | ?:[\\/]* ) # Absolute name.
27640 ac_srcdir=$srcdir$ac_dir_suffix;
27641 ac_top_srcdir=$srcdir
27642 ac_abs_top_srcdir=$srcdir ;;
27643 *) # Relative name.
27644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27645 ac_top_srcdir=$ac_top_build_prefix$srcdir
27646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27647 esac
27648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27649
27650
27651 case $ac_mode in
27652 :F)
27653 #
27654 # CONFIG_FILE
27655 #
27656
27657 case $INSTALL in
27658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27659 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27660 esac
27661 ac_MKDIR_P=$MKDIR_P
27662 case $MKDIR_P in
27663 [\\/$]* | ?:[\\/]* ) ;;
27664 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27665 esac
27666 _ACEOF
27667
27668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27669 # If the template does not know about datarootdir, expand it.
27670 # FIXME: This hack should be removed a few years after 2.60.
27671 ac_datarootdir_hack=; ac_datarootdir_seen=
27672 ac_sed_dataroot='
27673 /datarootdir/ {
27674 p
27675 q
27676 }
27677 /@datadir@/p
27678 /@docdir@/p
27679 /@infodir@/p
27680 /@localedir@/p
27681 /@mandir@/p'
27682 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27683 *datarootdir*) ac_datarootdir_seen=yes;;
27684 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27686 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27687 _ACEOF
27688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27689 ac_datarootdir_hack='
27690 s&@datadir@&$datadir&g
27691 s&@docdir@&$docdir&g
27692 s&@infodir@&$infodir&g
27693 s&@localedir@&$localedir&g
27694 s&@mandir@&$mandir&g
27695 s&\\\${datarootdir}&$datarootdir&g' ;;
27696 esac
27697 _ACEOF
27698
27699 # Neutralize VPATH when `$srcdir' = `.'.
27700 # Shell code in configure.ac might set extrasub.
27701 # FIXME: do we really want to maintain this feature?
27702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27703 ac_sed_extra="$ac_vpsub
27704 $extrasub
27705 _ACEOF
27706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27707 :t
27708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27709 s|@configure_input@|$ac_sed_conf_input|;t t
27710 s&@top_builddir@&$ac_top_builddir_sub&;t t
27711 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27712 s&@srcdir@&$ac_srcdir&;t t
27713 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27714 s&@top_srcdir@&$ac_top_srcdir&;t t
27715 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27716 s&@builddir@&$ac_builddir&;t t
27717 s&@abs_builddir@&$ac_abs_builddir&;t t
27718 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27719 s&@INSTALL@&$ac_INSTALL&;t t
27720 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27721 $ac_datarootdir_hack
27722 "
27723 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27724 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27725
27726 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27727 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27728 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27729 "$ac_tmp/out"`; test -z "$ac_out"; } &&
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27731 which seems to be undefined. Please make sure it is defined" >&5
27732 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27733 which seems to be undefined. Please make sure it is defined" >&2;}
27734
27735 rm -f "$ac_tmp/stdin"
27736 case $ac_file in
27737 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27738 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27739 esac \
27740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27741 ;;
27742 :H)
27743 #
27744 # CONFIG_HEADER
27745 #
27746 if test x"$ac_file" != x-; then
27747 {
27748 $as_echo "/* $configure_input */" \
27749 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27750 } >"$ac_tmp/config.h" \
27751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27752 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27753 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27754 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27755 else
27756 rm -f "$ac_file"
27757 mv "$ac_tmp/config.h" "$ac_file" \
27758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27759 fi
27760 else
27761 $as_echo "/* $configure_input */" \
27762 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27763 || as_fn_error $? "could not create -" "$LINENO" 5
27764 fi
27765 # Compute "$ac_file"'s index in $config_headers.
27766 _am_arg="$ac_file"
27767 _am_stamp_count=1
27768 for _am_header in $config_headers :; do
27769 case $_am_header in
27770 $_am_arg | $_am_arg:* )
27771 break ;;
27772 * )
27773 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27774 esac
27775 done
27776 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27777 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27778 X"$_am_arg" : 'X\(//\)[^/]' \| \
27779 X"$_am_arg" : 'X\(//\)$' \| \
27780 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27781 $as_echo X"$_am_arg" |
27782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27783 s//\1/
27784 q
27785 }
27786 /^X\(\/\/\)[^/].*/{
27787 s//\1/
27788 q
27789 }
27790 /^X\(\/\/\)$/{
27791 s//\1/
27792 q
27793 }
27794 /^X\(\/\).*/{
27795 s//\1/
27796 q
27797 }
27798 s/.*/./; q'`/stamp-h$_am_stamp_count
27799 ;;
27800
27801 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27802 $as_echo "$as_me: executing $ac_file commands" >&6;}
27803 ;;
27804 esac
27805
27806
27807 case $ac_file$ac_mode in
27808 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27809 # Older Autoconf quotes --file arguments for eval, but not when files
27810 # are listed without --file. Let's play safe and only enable the eval
27811 # if we detect the quoting.
27812 case $CONFIG_FILES in
27813 *\'*) eval set x "$CONFIG_FILES" ;;
27814 *) set x $CONFIG_FILES ;;
27815 esac
27816 shift
27817 for mf
27818 do
27819 # Strip MF so we end up with the name of the file.
27820 mf=`echo "$mf" | sed -e 's/:.*$//'`
27821 # Check whether this is an Automake generated Makefile or not.
27822 # We used to match only the files named 'Makefile.in', but
27823 # some people rename them; so instead we look at the file content.
27824 # Grep'ing the first line is not enough: some people post-process
27825 # each Makefile.in and add a new line on top of each file to say so.
27826 # Grep'ing the whole file is not good either: AIX grep has a line
27827 # limit of 2048, but all sed's we know have understand at least 4000.
27828 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27829 dirpart=`$as_dirname -- "$mf" ||
27830 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27831 X"$mf" : 'X\(//\)[^/]' \| \
27832 X"$mf" : 'X\(//\)$' \| \
27833 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27834 $as_echo X"$mf" |
27835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27836 s//\1/
27837 q
27838 }
27839 /^X\(\/\/\)[^/].*/{
27840 s//\1/
27841 q
27842 }
27843 /^X\(\/\/\)$/{
27844 s//\1/
27845 q
27846 }
27847 /^X\(\/\).*/{
27848 s//\1/
27849 q
27850 }
27851 s/.*/./; q'`
27852 else
27853 continue
27854 fi
27855 # Extract the definition of DEPDIR, am__include, and am__quote
27856 # from the Makefile without running 'make'.
27857 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27858 test -z "$DEPDIR" && continue
27859 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27860 test -z "$am__include" && continue
27861 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27862 # Find all dependency output files, they are included files with
27863 # $(DEPDIR) in their names. We invoke sed twice because it is the
27864 # simplest approach to changing $(DEPDIR) to its actual value in the
27865 # expansion.
27866 for file in `sed -n "
27867 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27868 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
27869 # Make sure the directory exists.
27870 test -f "$dirpart/$file" && continue
27871 fdir=`$as_dirname -- "$file" ||
27872 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27873 X"$file" : 'X\(//\)[^/]' \| \
27874 X"$file" : 'X\(//\)$' \| \
27875 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27876 $as_echo X"$file" |
27877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27878 s//\1/
27879 q
27880 }
27881 /^X\(\/\/\)[^/].*/{
27882 s//\1/
27883 q
27884 }
27885 /^X\(\/\/\)$/{
27886 s//\1/
27887 q
27888 }
27889 /^X\(\/\).*/{
27890 s//\1/
27891 q
27892 }
27893 s/.*/./; q'`
27894 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27895 # echo "creating $dirpart/$file"
27896 echo '# dummy' > "$dirpart/$file"
27897 done
27898 done
27899 }
27900 ;;
27901 "po-directories":C)
27902 for ac_file in $CONFIG_FILES; do
27903 # Support "outfile[:infile[:infile...]]"
27904 case "$ac_file" in
27905 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
27906 esac
27907 # PO directories have a Makefile.in generated from Makefile.in.in.
27908 case "$ac_file" in */Makefile.in)
27909 # Adjust a relative srcdir.
27910 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
27911 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
27912 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
27913 # In autoconf-2.13 it is called $ac_given_srcdir.
27914 # In autoconf-2.50 it is called $srcdir.
27915 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
27916 case "$ac_given_srcdir" in
27917 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
27918 /*) top_srcdir="$ac_given_srcdir" ;;
27919 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
27920 esac
27921 # Treat a directory as a PO directory if and only if it has a
27922 # POTFILES.in file. This allows packages to have multiple PO
27923 # directories under different names or in different locations.
27924 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
27925 rm -f "$ac_dir/POTFILES"
27926 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
27927 gt_tab=`printf '\t'`
27928 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
27929 POMAKEFILEDEPS="POTFILES.in"
27930 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
27931 # on $ac_dir but don't depend on user-specified configuration
27932 # parameters.
27933 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
27934 # The LINGUAS file contains the set of available languages.
27935 if test -n "$OBSOLETE_ALL_LINGUAS"; then
27936 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
27937 fi
27938 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
27939 # Hide the ALL_LINGUAS assignment from automake < 1.5.
27940 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
27941 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
27942 else
27943 # The set of available languages was given in configure.in.
27944 # Hide the ALL_LINGUAS assignment from automake < 1.5.
27945 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
27946 fi
27947 # Compute POFILES
27948 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
27949 # Compute UPDATEPOFILES
27950 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
27951 # Compute DUMMYPOFILES
27952 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
27953 # Compute GMOFILES
27954 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
27955 case "$ac_given_srcdir" in
27956 .) srcdirpre= ;;
27957 *) srcdirpre='$(srcdir)/' ;;
27958 esac
27959 POFILES=
27960 UPDATEPOFILES=
27961 DUMMYPOFILES=
27962 GMOFILES=
27963 for lang in $ALL_LINGUAS; do
27964 POFILES="$POFILES $srcdirpre$lang.po"
27965 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
27966 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
27967 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
27968 done
27969 # CATALOGS depends on both $ac_dir and the user's LINGUAS
27970 # environment variable.
27971 INST_LINGUAS=
27972 if test -n "$ALL_LINGUAS"; then
27973 for presentlang in $ALL_LINGUAS; do
27974 useit=no
27975 if test "%UNSET%" != "$LINGUAS"; then
27976 desiredlanguages="$LINGUAS"
27977 else
27978 desiredlanguages="$ALL_LINGUAS"
27979 fi
27980 for desiredlang in $desiredlanguages; do
27981 # Use the presentlang catalog if desiredlang is
27982 # a. equal to presentlang, or
27983 # b. a variant of presentlang (because in this case,
27984 # presentlang can be used as a fallback for messages
27985 # which are not translated in the desiredlang catalog).
27986 case "$desiredlang" in
27987 "$presentlang"*) useit=yes;;
27988 esac
27989 done
27990 if test $useit = yes; then
27991 INST_LINGUAS="$INST_LINGUAS $presentlang"
27992 fi
27993 done
27994 fi
27995 CATALOGS=
27996 if test -n "$INST_LINGUAS"; then
27997 for lang in $INST_LINGUAS; do
27998 CATALOGS="$CATALOGS $lang.gmo"
27999 done
28000 fi
28001 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28002 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
28003 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28004 if test -f "$f"; then
28005 case "$f" in
28006 *.orig | *.bak | *~) ;;
28007 *) cat "$f" >> "$ac_dir/Makefile" ;;
28008 esac
28009 fi
28010 done
28011 fi
28012 ;;
28013 esac
28014 done ;;
28015 "libtool":C)
28016
28017 # See if we are running on zsh, and set the options that allow our
28018 # commands through without removal of \ escapes.
28019 if test -n "${ZSH_VERSION+set}"; then
28020 setopt NO_GLOB_SUBST
28021 fi
28022
28023 cfgfile=${ofile}T
28024 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28025 $RM "$cfgfile"
28026
28027 cat <<_LT_EOF >> "$cfgfile"
28028 #! $SHELL
28029 # Generated automatically by $as_me ($PACKAGE) $VERSION
28030 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28031
28032 # Provide generalized library-building support services.
28033 # Written by Gordon Matzigkeit, 1996
28034
28035 # Copyright (C) 2014 Free Software Foundation, Inc.
28036 # This is free software; see the source for copying conditions. There is NO
28037 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28038
28039 # GNU Libtool is free software; you can redistribute it and/or modify
28040 # it under the terms of the GNU General Public License as published by
28041 # the Free Software Foundation; either version 2 of of the License, or
28042 # (at your option) any later version.
28043 #
28044 # As a special exception to the GNU General Public License, if you
28045 # distribute this file as part of a program or library that is built
28046 # using GNU Libtool, you may include this file under the same
28047 # distribution terms that you use for the rest of that program.
28048 #
28049 # GNU Libtool is distributed in the hope that it will be useful, but
28050 # WITHOUT ANY WARRANTY; without even the implied warranty of
28051 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28052 # GNU General Public License for more details.
28053 #
28054 # You should have received a copy of the GNU General Public License
28055 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28056
28057
28058 # The names of the tagged configurations supported by this script.
28059 available_tags='CXX '
28060
28061 # Configured defaults for sys_lib_dlsearch_path munging.
28062 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28063
28064 # ### BEGIN LIBTOOL CONFIG
28065
28066 # Which release of libtool.m4 was used?
28067 macro_version=$macro_version
28068 macro_revision=$macro_revision
28069
28070 # Whether or not to build shared libraries.
28071 build_libtool_libs=$enable_shared
28072
28073 # Whether or not to build static libraries.
28074 build_old_libs=$enable_static
28075
28076 # What type of objects to build.
28077 pic_mode=$pic_mode
28078
28079 # Whether or not to optimize for fast installation.
28080 fast_install=$enable_fast_install
28081
28082 # Shared archive member basename,for filename based shared library versioning on AIX.
28083 shared_archive_member_spec=$shared_archive_member_spec
28084
28085 # Shell to use when invoking shell scripts.
28086 SHELL=$lt_SHELL
28087
28088 # An echo program that protects backslashes.
28089 ECHO=$lt_ECHO
28090
28091 # The PATH separator for the build system.
28092 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28093
28094 # The host system.
28095 host_alias=$host_alias
28096 host=$host
28097 host_os=$host_os
28098
28099 # The build system.
28100 build_alias=$build_alias
28101 build=$build
28102 build_os=$build_os
28103
28104 # A sed program that does not truncate output.
28105 SED=$lt_SED
28106
28107 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28108 Xsed="\$SED -e 1s/^X//"
28109
28110 # A grep program that handles long lines.
28111 GREP=$lt_GREP
28112
28113 # An ERE matcher.
28114 EGREP=$lt_EGREP
28115
28116 # A literal string matcher.
28117 FGREP=$lt_FGREP
28118
28119 # A BSD- or MS-compatible name lister.
28120 NM=$lt_NM
28121
28122 # Whether we need soft or hard links.
28123 LN_S=$lt_LN_S
28124
28125 # What is the maximum length of a command?
28126 max_cmd_len=$max_cmd_len
28127
28128 # Object file suffix (normally "o").
28129 objext=$ac_objext
28130
28131 # Executable file suffix (normally "").
28132 exeext=$exeext
28133
28134 # whether the shell understands "unset".
28135 lt_unset=$lt_unset
28136
28137 # turn spaces into newlines.
28138 SP2NL=$lt_lt_SP2NL
28139
28140 # turn newlines into spaces.
28141 NL2SP=$lt_lt_NL2SP
28142
28143 # convert \$build file names to \$host format.
28144 to_host_file_cmd=$lt_cv_to_host_file_cmd
28145
28146 # convert \$build files to toolchain format.
28147 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28148
28149 # An object symbol dumper.
28150 OBJDUMP=$lt_OBJDUMP
28151
28152 # Method to check whether dependent libraries are shared objects.
28153 deplibs_check_method=$lt_deplibs_check_method
28154
28155 # Command to use when deplibs_check_method = "file_magic".
28156 file_magic_cmd=$lt_file_magic_cmd
28157
28158 # How to find potential files when deplibs_check_method = "file_magic".
28159 file_magic_glob=$lt_file_magic_glob
28160
28161 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28162 want_nocaseglob=$lt_want_nocaseglob
28163
28164 # DLL creation program.
28165 DLLTOOL=$lt_DLLTOOL
28166
28167 # Command to associate shared and link libraries.
28168 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28169
28170 # The archiver.
28171 AR=$lt_AR
28172
28173 # Flags to create an archive.
28174 AR_FLAGS=$lt_AR_FLAGS
28175
28176 # How to feed a file listing to the archiver.
28177 archiver_list_spec=$lt_archiver_list_spec
28178
28179 # A symbol stripping program.
28180 STRIP=$lt_STRIP
28181
28182 # Commands used to install an old-style archive.
28183 RANLIB=$lt_RANLIB
28184 old_postinstall_cmds=$lt_old_postinstall_cmds
28185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28186
28187 # Whether to use a lock for old archive extraction.
28188 lock_old_archive_extraction=$lock_old_archive_extraction
28189
28190 # A C compiler.
28191 LTCC=$lt_CC
28192
28193 # LTCC compiler flags.
28194 LTCFLAGS=$lt_CFLAGS
28195
28196 # Take the output of nm and produce a listing of raw symbols and C names.
28197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28198
28199 # Transform the output of nm in a proper C declaration.
28200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28201
28202 # Transform the output of nm into a list of symbols to manually relocate.
28203 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28204
28205 # Transform the output of nm in a C name address pair.
28206 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28207
28208 # Transform the output of nm in a C name address pair when lib prefix is needed.
28209 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28210
28211 # The name lister interface.
28212 nm_interface=$lt_lt_cv_nm_interface
28213
28214 # Specify filename containing input files for \$NM.
28215 nm_file_list_spec=$lt_nm_file_list_spec
28216
28217 # The root where to search for dependent libraries,and where our libraries should be installed.
28218 lt_sysroot=$lt_sysroot
28219
28220 # Command to truncate a binary pipe.
28221 lt_truncate_bin=$lt_lt_cv_truncate_bin
28222
28223 # The name of the directory that contains temporary libtool files.
28224 objdir=$objdir
28225
28226 # Used to examine libraries when file_magic_cmd begins with "file".
28227 MAGIC_CMD=$MAGIC_CMD
28228
28229 # Must we lock files when doing compilation?
28230 need_locks=$lt_need_locks
28231
28232 # Manifest tool.
28233 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28234
28235 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28236 DSYMUTIL=$lt_DSYMUTIL
28237
28238 # Tool to change global to local symbols on Mac OS X.
28239 NMEDIT=$lt_NMEDIT
28240
28241 # Tool to manipulate fat objects and archives on Mac OS X.
28242 LIPO=$lt_LIPO
28243
28244 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28245 OTOOL=$lt_OTOOL
28246
28247 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28248 OTOOL64=$lt_OTOOL64
28249
28250 # Old archive suffix (normally "a").
28251 libext=$libext
28252
28253 # Shared library suffix (normally ".so").
28254 shrext_cmds=$lt_shrext_cmds
28255
28256 # The commands to extract the exported symbol list from a shared archive.
28257 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28258
28259 # Variables whose values should be saved in libtool wrapper scripts and
28260 # restored at link time.
28261 variables_saved_for_relink=$lt_variables_saved_for_relink
28262
28263 # Do we need the "lib" prefix for modules?
28264 need_lib_prefix=$need_lib_prefix
28265
28266 # Do we need a version for libraries?
28267 need_version=$need_version
28268
28269 # Library versioning type.
28270 version_type=$version_type
28271
28272 # Shared library runtime path variable.
28273 runpath_var=$runpath_var
28274
28275 # Shared library path variable.
28276 shlibpath_var=$shlibpath_var
28277
28278 # Is shlibpath searched before the hard-coded library search path?
28279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28280
28281 # Format of library name prefix.
28282 libname_spec=$lt_libname_spec
28283
28284 # List of archive names. First name is the real one, the rest are links.
28285 # The last name is the one that the linker finds with -lNAME
28286 library_names_spec=$lt_library_names_spec
28287
28288 # The coded name of the library, if different from the real name.
28289 soname_spec=$lt_soname_spec
28290
28291 # Permission mode override for installation of shared libraries.
28292 install_override_mode=$lt_install_override_mode
28293
28294 # Command to use after installation of a shared archive.
28295 postinstall_cmds=$lt_postinstall_cmds
28296
28297 # Command to use after uninstallation of a shared archive.
28298 postuninstall_cmds=$lt_postuninstall_cmds
28299
28300 # Commands used to finish a libtool library installation in a directory.
28301 finish_cmds=$lt_finish_cmds
28302
28303 # As "finish_cmds", except a single script fragment to be evaled but
28304 # not shown.
28305 finish_eval=$lt_finish_eval
28306
28307 # Whether we should hardcode library paths into libraries.
28308 hardcode_into_libs=$hardcode_into_libs
28309
28310 # Compile-time system search path for libraries.
28311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28312
28313 # Detected run-time system search path for libraries.
28314 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28315
28316 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28317 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28318
28319 # Whether dlopen is supported.
28320 dlopen_support=$enable_dlopen
28321
28322 # Whether dlopen of programs is supported.
28323 dlopen_self=$enable_dlopen_self
28324
28325 # Whether dlopen of statically linked programs is supported.
28326 dlopen_self_static=$enable_dlopen_self_static
28327
28328 # Commands to strip libraries.
28329 old_striplib=$lt_old_striplib
28330 striplib=$lt_striplib
28331
28332
28333 # The linker used to build libraries.
28334 LD=$lt_LD
28335
28336 # How to create reloadable object files.
28337 reload_flag=$lt_reload_flag
28338 reload_cmds=$lt_reload_cmds
28339
28340 # Commands used to build an old-style archive.
28341 old_archive_cmds=$lt_old_archive_cmds
28342
28343 # A language specific compiler.
28344 CC=$lt_compiler
28345
28346 # Is the compiler the GNU compiler?
28347 with_gcc=$GCC
28348
28349 # Compiler flag to turn off builtin functions.
28350 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28351
28352 # Additional compiler flags for building library objects.
28353 pic_flag=$lt_lt_prog_compiler_pic
28354
28355 # How to pass a linker flag through the compiler.
28356 wl=$lt_lt_prog_compiler_wl
28357
28358 # Compiler flag to prevent dynamic linking.
28359 link_static_flag=$lt_lt_prog_compiler_static
28360
28361 # Does compiler simultaneously support -c and -o options?
28362 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28363
28364 # Whether or not to add -lc for building shared libraries.
28365 build_libtool_need_lc=$archive_cmds_need_lc
28366
28367 # Whether or not to disallow shared libs when runtime libs are static.
28368 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28369
28370 # Compiler flag to allow reflexive dlopens.
28371 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28372
28373 # Compiler flag to generate shared objects directly from archives.
28374 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28375
28376 # Whether the compiler copes with passing no objects directly.
28377 compiler_needs_object=$lt_compiler_needs_object
28378
28379 # Create an old-style archive from a shared archive.
28380 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28381
28382 # Create a temporary old-style archive to link instead of a shared archive.
28383 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28384
28385 # Commands used to build a shared archive.
28386 archive_cmds=$lt_archive_cmds
28387 archive_expsym_cmds=$lt_archive_expsym_cmds
28388
28389 # Commands used to build a loadable module if different from building
28390 # a shared archive.
28391 module_cmds=$lt_module_cmds
28392 module_expsym_cmds=$lt_module_expsym_cmds
28393
28394 # Whether we are building with GNU ld or not.
28395 with_gnu_ld=$lt_with_gnu_ld
28396
28397 # Flag that allows shared libraries with undefined symbols to be built.
28398 allow_undefined_flag=$lt_allow_undefined_flag
28399
28400 # Flag that enforces no undefined symbols.
28401 no_undefined_flag=$lt_no_undefined_flag
28402
28403 # Flag to hardcode \$libdir into a binary during linking.
28404 # This must work even if \$libdir does not exist
28405 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28406
28407 # Whether we need a single "-rpath" flag with a separated argument.
28408 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28409
28410 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28411 # DIR into the resulting binary.
28412 hardcode_direct=$hardcode_direct
28413
28414 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28415 # DIR into the resulting binary and the resulting library dependency is
28416 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28417 # library is relocated.
28418 hardcode_direct_absolute=$hardcode_direct_absolute
28419
28420 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28421 # into the resulting binary.
28422 hardcode_minus_L=$hardcode_minus_L
28423
28424 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28425 # into the resulting binary.
28426 hardcode_shlibpath_var=$hardcode_shlibpath_var
28427
28428 # Set to "yes" if building a shared library automatically hardcodes DIR
28429 # into the library and all subsequent libraries and executables linked
28430 # against it.
28431 hardcode_automatic=$hardcode_automatic
28432
28433 # Set to yes if linker adds runtime paths of dependent libraries
28434 # to runtime path list.
28435 inherit_rpath=$inherit_rpath
28436
28437 # Whether libtool must link a program against all its dependency libraries.
28438 link_all_deplibs=$link_all_deplibs
28439
28440 # Set to "yes" if exported symbols are required.
28441 always_export_symbols=$always_export_symbols
28442
28443 # The commands to list exported symbols.
28444 export_symbols_cmds=$lt_export_symbols_cmds
28445
28446 # Symbols that should not be listed in the preloaded symbols.
28447 exclude_expsyms=$lt_exclude_expsyms
28448
28449 # Symbols that must always be exported.
28450 include_expsyms=$lt_include_expsyms
28451
28452 # Commands necessary for linking programs (against libraries) with templates.
28453 prelink_cmds=$lt_prelink_cmds
28454
28455 # Commands necessary for finishing linking programs.
28456 postlink_cmds=$lt_postlink_cmds
28457
28458 # Specify filename containing input files.
28459 file_list_spec=$lt_file_list_spec
28460
28461 # How to hardcode a shared library path into an executable.
28462 hardcode_action=$hardcode_action
28463
28464 # The directories searched by this compiler when creating a shared library.
28465 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28466
28467 # Dependencies to place before and after the objects being linked to
28468 # create a shared library.
28469 predep_objects=$lt_predep_objects
28470 postdep_objects=$lt_postdep_objects
28471 predeps=$lt_predeps
28472 postdeps=$lt_postdeps
28473
28474 # The library search path used internally by the compiler when linking
28475 # a shared library.
28476 compiler_lib_search_path=$lt_compiler_lib_search_path
28477
28478 # ### END LIBTOOL CONFIG
28479
28480 _LT_EOF
28481
28482 cat <<'_LT_EOF' >> "$cfgfile"
28483
28484 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28485
28486 # func_munge_path_list VARIABLE PATH
28487 # -----------------------------------
28488 # VARIABLE is name of variable containing _space_ separated list of
28489 # directories to be munged by the contents of PATH, which is string
28490 # having a format:
28491 # "DIR[:DIR]:"
28492 # string "DIR[ DIR]" will be prepended to VARIABLE
28493 # ":DIR[:DIR]"
28494 # string "DIR[ DIR]" will be appended to VARIABLE
28495 # "DIRP[:DIRP]::[DIRA:]DIRA"
28496 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28497 # "DIRA[ DIRA]" will be appended to VARIABLE
28498 # "DIR[:DIR]"
28499 # VARIABLE will be replaced by "DIR[ DIR]"
28500 func_munge_path_list ()
28501 {
28502 case x$2 in
28503 x)
28504 ;;
28505 *:)
28506 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28507 ;;
28508 x:*)
28509 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28510 ;;
28511 *::*)
28512 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28513 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28514 ;;
28515 *)
28516 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28517 ;;
28518 esac
28519 }
28520
28521
28522 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
28523 func_cc_basename ()
28524 {
28525 for cc_temp in $*""; do
28526 case $cc_temp in
28527 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28528 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28529 \-*) ;;
28530 *) break;;
28531 esac
28532 done
28533 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28534 }
28535
28536
28537 # ### END FUNCTIONS SHARED WITH CONFIGURE
28538
28539 _LT_EOF
28540
28541 case $host_os in
28542 aix3*)
28543 cat <<\_LT_EOF >> "$cfgfile"
28544 # AIX sometimes has problems with the GCC collect2 program. For some
28545 # reason, if we set the COLLECT_NAMES environment variable, the problems
28546 # vanish in a puff of smoke.
28547 if test set != "${COLLECT_NAMES+set}"; then
28548 COLLECT_NAMES=
28549 export COLLECT_NAMES
28550 fi
28551 _LT_EOF
28552 ;;
28553 esac
28554
28555
28556 ltmain=$ac_aux_dir/ltmain.sh
28557
28558
28559 # We use sed instead of cat because bash on DJGPP gets confused if
28560 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28561 # text mode, it properly converts lines to CR/LF. This bash problem
28562 # is reportedly fixed, but why not run on old versions too?
28563 sed '$q' "$ltmain" >> "$cfgfile" \
28564 || (rm -f "$cfgfile"; exit 1)
28565
28566 mv -f "$cfgfile" "$ofile" ||
28567 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28568 chmod +x "$ofile"
28569
28570
28571 cat <<_LT_EOF >> "$ofile"
28572
28573 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28574
28575 # The linker used to build libraries.
28576 LD=$lt_LD_CXX
28577
28578 # How to create reloadable object files.
28579 reload_flag=$lt_reload_flag_CXX
28580 reload_cmds=$lt_reload_cmds_CXX
28581
28582 # Commands used to build an old-style archive.
28583 old_archive_cmds=$lt_old_archive_cmds_CXX
28584
28585 # A language specific compiler.
28586 CC=$lt_compiler_CXX
28587
28588 # Is the compiler the GNU compiler?
28589 with_gcc=$GCC_CXX
28590
28591 # Compiler flag to turn off builtin functions.
28592 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28593
28594 # Additional compiler flags for building library objects.
28595 pic_flag=$lt_lt_prog_compiler_pic_CXX
28596
28597 # How to pass a linker flag through the compiler.
28598 wl=$lt_lt_prog_compiler_wl_CXX
28599
28600 # Compiler flag to prevent dynamic linking.
28601 link_static_flag=$lt_lt_prog_compiler_static_CXX
28602
28603 # Does compiler simultaneously support -c and -o options?
28604 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28605
28606 # Whether or not to add -lc for building shared libraries.
28607 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28608
28609 # Whether or not to disallow shared libs when runtime libs are static.
28610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28611
28612 # Compiler flag to allow reflexive dlopens.
28613 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28614
28615 # Compiler flag to generate shared objects directly from archives.
28616 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28617
28618 # Whether the compiler copes with passing no objects directly.
28619 compiler_needs_object=$lt_compiler_needs_object_CXX
28620
28621 # Create an old-style archive from a shared archive.
28622 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28623
28624 # Create a temporary old-style archive to link instead of a shared archive.
28625 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28626
28627 # Commands used to build a shared archive.
28628 archive_cmds=$lt_archive_cmds_CXX
28629 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28630
28631 # Commands used to build a loadable module if different from building
28632 # a shared archive.
28633 module_cmds=$lt_module_cmds_CXX
28634 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28635
28636 # Whether we are building with GNU ld or not.
28637 with_gnu_ld=$lt_with_gnu_ld_CXX
28638
28639 # Flag that allows shared libraries with undefined symbols to be built.
28640 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28641
28642 # Flag that enforces no undefined symbols.
28643 no_undefined_flag=$lt_no_undefined_flag_CXX
28644
28645 # Flag to hardcode \$libdir into a binary during linking.
28646 # This must work even if \$libdir does not exist
28647 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28648
28649 # Whether we need a single "-rpath" flag with a separated argument.
28650 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28651
28652 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28653 # DIR into the resulting binary.
28654 hardcode_direct=$hardcode_direct_CXX
28655
28656 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28657 # DIR into the resulting binary and the resulting library dependency is
28658 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28659 # library is relocated.
28660 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28661
28662 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28663 # into the resulting binary.
28664 hardcode_minus_L=$hardcode_minus_L_CXX
28665
28666 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28667 # into the resulting binary.
28668 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28669
28670 # Set to "yes" if building a shared library automatically hardcodes DIR
28671 # into the library and all subsequent libraries and executables linked
28672 # against it.
28673 hardcode_automatic=$hardcode_automatic_CXX
28674
28675 # Set to yes if linker adds runtime paths of dependent libraries
28676 # to runtime path list.
28677 inherit_rpath=$inherit_rpath_CXX
28678
28679 # Whether libtool must link a program against all its dependency libraries.
28680 link_all_deplibs=$link_all_deplibs_CXX
28681
28682 # Set to "yes" if exported symbols are required.
28683 always_export_symbols=$always_export_symbols_CXX
28684
28685 # The commands to list exported symbols.
28686 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28687
28688 # Symbols that should not be listed in the preloaded symbols.
28689 exclude_expsyms=$lt_exclude_expsyms_CXX
28690
28691 # Symbols that must always be exported.
28692 include_expsyms=$lt_include_expsyms_CXX
28693
28694 # Commands necessary for linking programs (against libraries) with templates.
28695 prelink_cmds=$lt_prelink_cmds_CXX
28696
28697 # Commands necessary for finishing linking programs.
28698 postlink_cmds=$lt_postlink_cmds_CXX
28699
28700 # Specify filename containing input files.
28701 file_list_spec=$lt_file_list_spec_CXX
28702
28703 # How to hardcode a shared library path into an executable.
28704 hardcode_action=$hardcode_action_CXX
28705
28706 # The directories searched by this compiler when creating a shared library.
28707 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28708
28709 # Dependencies to place before and after the objects being linked to
28710 # create a shared library.
28711 predep_objects=$lt_predep_objects_CXX
28712 postdep_objects=$lt_postdep_objects_CXX
28713 predeps=$lt_predeps_CXX
28714 postdeps=$lt_postdeps_CXX
28715
28716 # The library search path used internally by the compiler when linking
28717 # a shared library.
28718 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28719
28720 # ### END LIBTOOL TAG CONFIG: CXX
28721 _LT_EOF
28722
28723 ;;
28724 "t-func/atconfig":C) cat >t-func/atconfig <<ATEOF
28725 # Configurable variable values for building test suites.
28726 # Generated by $0.
28727 # Copyright (C) 2012 Free Software Foundation, Inc.
28728
28729 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
28730 at_testdir='t-func'
28731 abs_builddir='$ac_abs_builddir'
28732 at_srcdir='$ac_srcdir'
28733 abs_srcdir='$ac_abs_srcdir'
28734 at_top_srcdir='$ac_top_srcdir'
28735 abs_top_srcdir='$ac_abs_top_srcdir'
28736 at_top_build_prefix='$ac_top_build_prefix'
28737 abs_top_builddir='$ac_abs_top_builddir'
28738
28739 # Backward compatibility with Autotest <= 2.59b:
28740 at_top_builddir=\$at_top_build_prefix
28741
28742 AUTOTEST_PATH='t-func'
28743
28744 SHELL=\${CONFIG_SHELL-'$SHELL'}
28745 ATEOF
28746 ;;
28747
28748 esac
28749 done # for ac_tag
28750
28751
28752 as_fn_exit 0
28753 _ACEOF
28754 ac_clean_files=$ac_clean_files_save
28755
28756 test $ac_write_fail = 0 ||
28757 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28758
28759
28760 # configure is writing to config.log, and then calls config.status.
28761 # config.status does its own redirection, appending to config.log.
28762 # Unfortunately, on DOS this fails, as config.log is still kept open
28763 # by configure, so config.status won't be able to write to it; its
28764 # output is simply discarded. So we exec the FD to /dev/null,
28765 # effectively closing config.log, so it can be properly (re)opened and
28766 # appended to by config.status. When coming back to configure, we
28767 # need to make the FD available again.
28768 if test "$no_create" != yes; then
28769 ac_cs_success=:
28770 ac_config_status_args=
28771 test "$silent" = yes &&
28772 ac_config_status_args="$ac_config_status_args --quiet"
28773 exec 5>/dev/null
28774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28775 exec 5>>config.log
28776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28777 # would make configure fail if this is the last instruction.
28778 $ac_cs_success || as_fn_exit 1
28779 fi
28780 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28782 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28783 fi
28784
28785
28786 # Print the current configuration
28787 cat <<CONFIG
28788
28789 Configuration:
28790 Features:
28791 native language support . . . : $USE_NLS
28792 unicode support . . . . . . . : $USE_UNICODE
28793 development documentation . . : $build_devel_docs
28794 code coverage . . . . . . . . : $enable_coverage
28795 build shared libraries . . . : $enable_shared
28796 mmap loaders . . . . . . . . : $enable_mmap
28797 disk pre-allocation . . . . . : $enable_disk_preallocate
28798 default dpkg-deb compressor . : $with_dpkg_deb_compressor
28799
28800 Paths:
28801 devlibdir . . . . . . . . . . : $devlibdir
28802 pkgconfdir . . . . . . . . . : $pkgconfdir
28803 admindir . . . . . . . . . . : $admindir
28804 logdir . . . . . . . . . . . : $logdir
28805 perl interpreter . . . . . . : $PERL
28806 perl libdir . . . . . . . . . : $PERL_LIBDIR
28807
28808 Programs:
28809 update-alternatives . . . . . : $build_update_alternatives
28810 start-stop-daemon . . . . . . : $build_start_stop_daemon
28811 dselect . . . . . . . . . . . : $build_dselect
28812
28813 System Libraries:
28814 libps . . . . . . . . . . . . : ${have_libps:-no}
28815 libkvm . . . . . . . . . . . : ${have_libkvm:-no}
28816 libselinux . . . . . . . . . : $have_libselinux
28817 libmd . . . . . . . . . . . . : $have_libmd
28818 libz . . . . . . . . . . . . : $have_libz
28819 liblzma . . . . . . . . . . . : $have_liblzma
28820 libbz2 . . . . . . . . . . . : $have_libbz2
28821 libcurses . . . . . . . . . . : ${have_libcurses:-no}
28822 CONFIG