Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Check 0.15.2.
4 #
5 # Report bugs to <check-devel at lists dot sourceforge dot net>.
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 [email protected] and check-devel at
278 $0: lists dot sourceforge dot net 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='Check'
592 PACKAGE_TARNAME='check'
593 PACKAGE_VERSION='0.15.2'
594 PACKAGE_STRING='Check 0.15.2'
595 PACKAGE_BUGREPORT='check-devel at lists dot sourceforge dot net'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/check.c"
599 ac_config_libobj_dir=lib
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_header_list=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 AWK_GSUB_DBL_BSLASH
641 INSTALL_CHECKMK_FALSE
642 INSTALL_CHECKMK_TRUE
643 AWK_PATH
644 HAVE_FORK
645 LIBOBJS
646 ENABLE_REGEX
647 HAVE_REGEX
648 HAVE_INIT_ONCE_COMPLETE
649 HAVE_INIT_ONCE_BEGIN_INITIALIZE
650 HAVE_WINDOWS_H
651 SUBUNIT_FALSE
652 SUBUNIT_TRUE
653 LIBSUBUNIT_PC
654 ENABLE_SUBUNIT
655 LIBSUBUNIT_LIBS
656 LIBSUBUNIT_CFLAGS
657 PKG_CONFIG_LIBDIR
658 PKG_CONFIG_PATH
659 PKG_CONFIG
660 PTHREAD_CFLAGS
661 PTHREAD_LIBS
662 PTHREAD_CC
663 acx_pthread_config
664 USE_GRAPHVIZ_FALSE
665 USE_GRAPHVIZ_TRUE
666 GRAPHVIZ
667 USE_FILTERDIFF_FALSE
668 USE_FILTERDIFF_TRUE
669 FILTERDIFF
670 MAKE_DOCS_FALSE
671 MAKE_DOCS_TRUE
672 GENHTML
673 LCOV
674 GCOV
675 LT_SYS_LIBRARY_PATH
676 OTOOL64
677 OTOOL
678 LIPO
679 NMEDIT
680 DSYMUTIL
681 MANIFEST_TOOL
682 RANLIB
683 DLLTOOL
684 OBJDUMP
685 NM
686 ac_ct_DUMPBIN
687 DUMPBIN
688 LD
689 FGREP
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 LIBTOOL
699 ac_ct_AR
700 AR
701 LN_S
702 SED
703 NO_TIMEOUT_TESTS_FALSE
704 NO_TIMEOUT_TESTS_TRUE
705 ENABLE_GCOV_FALSE
706 ENABLE_GCOV_TRUE
707 GCOV_LIBS
708 GCOV_CFLAGS
709 CHECK_VERSION
710 CHECK_MICRO_VERSION
711 CHECK_MINOR_VERSION
712 CHECK_MAJOR_VERSION
713 EGREP
714 GREP
715 CPP
716 am__fastdepCC_FALSE
717 am__fastdepCC_TRUE
718 CCDEPMODE
719 am__nodep
720 AMDEPBACKSLASH
721 AMDEP_FALSE
722 AMDEP_TRUE
723 am__quote
724 am__include
725 DEPDIR
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 AM_BACKSLASH
734 AM_DEFAULT_VERBOSITY
735 AM_DEFAULT_V
736 AM_V
737 am__untar
738 am__tar
739 AMTAR
740 am__leading_dot
741 SET_MAKE
742 AWK
743 mkdir_p
744 MKDIR_P
745 INSTALL_STRIP_PROGRAM
746 STRIP
747 install_sh
748 MAKEINFO
749 AUTOHEADER
750 AUTOMAKE
751 AUTOCONF
752 ACLOCAL
753 VERSION
754 PACKAGE
755 CYGPATH_W
756 am__isrc
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_silent_rules
802 enable_dependency_tracking
803 enable_gcov
804 enable_timeout_tests
805 enable_build_docs
806 enable_subunit
807 enable_fork
808 enable_snprintf_replacement
809 enable_timer_replacement
810 enable_shared
811 enable_static
812 with_pic
813 enable_fast_install
814 with_aix_soname
815 with_gnu_ld
816 with_sysroot
817 enable_libtool_lock
818 '
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CC
823 CFLAGS
824 LDFLAGS
825 LIBS
826 CPPFLAGS
827 CPP
828 LT_SYS_LIBRARY_PATH
829 PKG_CONFIG
830 PKG_CONFIG_PATH
831 PKG_CONFIG_LIBDIR
832 LIBSUBUNIT_CFLAGS
833 LIBSUBUNIT_LIBS
834 AWK_PATH'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240 ;;
1241
1242 esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1263 do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1339 fi
1340 else
1341 ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures Check 0.15.2 to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/check]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1429
1430 cat <<\_ACEOF
1431
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of Check 0.15.2:";;
1446 esac
1447 cat <<\_ACEOF
1448
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-silent-rules less verbose build output (undo: "make V=1")
1454 --disable-silent-rules verbose build output (undo: "make V=0")
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-gcov turn on test coverage [default=no]
1460 --enable-timeout-tests turn on timeout tests [default=yes]
1461 --enable-build-docs turn on building documentation [default=yes]
1462 --enable-subunit enable support for the subunit test protocol
1463 [default=autodetect]
1464 --enable-fork enable support for fork [default=autodetect]
1465 --enable-snprintf-replacement
1466 enable check snprintf replacement, (even if the
1467 system provides a C99 compliant version)
1468 [default=autodetect]
1469 --enable-timer-replacement
1470 enable check timer replacement, (even if the system
1471 provides timer_create, timer_settime, and
1472 timer_delete) [default=autodetect]
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-static[=PKGS] build static libraries [default=yes]
1475 --enable-fast-install[=PKGS]
1476 optimize for fast installation [default=yes]
1477 --disable-libtool-lock avoid locking (might break parallel builds)
1478
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1483 both]
1484 --with-aix-soname=aix|svr4|both
1485 shared library versioning (aka "SONAME") variant to
1486 provide on AIX, [default=aix].
1487 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1488 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1489 compiler's sysroot if not specified).
1490
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 CPP C preprocessor
1500 LT_SYS_LIBRARY_PATH
1501 User-defined run-time library search path.
1502 PKG_CONFIG path to pkg-config utility
1503 PKG_CONFIG_PATH
1504 directories to add to pkg-config's search path
1505 PKG_CONFIG_LIBDIR
1506 path overriding pkg-config's built-in search path
1507 LIBSUBUNIT_CFLAGS
1508 C compiler flags for LIBSUBUNIT, overriding pkg-config
1509 LIBSUBUNIT_LIBS
1510 linker flags for LIBSUBUNIT, overriding pkg-config
1511 AWK_PATH Awk interpreter command
1512
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1515
1516 Report bugs to <check-devel at lists dot sourceforge dot net>.
1517 _ACEOF
1518 ac_status=$?
1519 fi
1520
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
1527 ac_builddir=.
1528
1529 case "$ac_dir" in
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *)
1532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539 esac
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1544
1545 case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 esac
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1569 else
1570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1573 done
1574 fi
1575
1576 test -n "$ac_init_help" && exit $ac_status
1577 if $ac_init_version; then
1578 cat <<\_ACEOF
1579 Check configure 0.15.2
1580 generated by GNU Autoconf 2.69
1581
1582 Copyright (C) 2012 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586 exit
1587 fi
1588
1589 ## ------------------------ ##
1590 ## Autoconf initialization. ##
1591 ## ------------------------ ##
1592
1593 # ac_fn_c_try_compile LINENO
1594 # --------------------------
1595 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_compile ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629 } # ac_fn_c_try_compile
1630
1631 # ac_fn_c_try_cpp LINENO
1632 # ----------------------
1633 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_cpp ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_cpp conftest.$ac_ext"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } > conftest.i && {
1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 }; then :
1656 ac_retval=0
1657 else
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=1
1662 fi
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_cpp
1667
1668 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1669 # -------------------------------------------------------
1670 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1671 # the include files in INCLUDES and setting the cache variable VAR
1672 # accordingly.
1673 ac_fn_c_check_header_mongrel ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if eval \${$3+:} false; then :
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 $as_echo_n "checking for $2... " >&6; }
1679 if eval \${$3+:} false; then :
1680 $as_echo_n "(cached) " >&6
1681 fi
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 else
1686 # Is the header compilable?
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1688 $as_echo_n "checking $2 usability... " >&6; }
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1691 $4
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_compile "$LINENO"; then :
1695 ac_header_compiler=yes
1696 else
1697 ac_header_compiler=no
1698 fi
1699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1701 $as_echo "$ac_header_compiler" >&6; }
1702
1703 # Is the header present?
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1705 $as_echo_n "checking $2 presence... " >&6; }
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1708 #include <$2>
1709 _ACEOF
1710 if ac_fn_c_try_cpp "$LINENO"; then :
1711 ac_header_preproc=yes
1712 else
1713 ac_header_preproc=no
1714 fi
1715 rm -f conftest.err conftest.i conftest.$ac_ext
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1717 $as_echo "$ac_header_preproc" >&6; }
1718
1719 # So? What about this header?
1720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1721 yes:no: )
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1723 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1726 ;;
1727 no:yes:* )
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1729 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1731 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1733 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1735 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1737 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1738 ( $as_echo "## ----------------------------------------------------------- ##
1739 ## Report this to check-devel at lists dot sourceforge dot net ##
1740 ## ----------------------------------------------------------- ##"
1741 ) | sed "s/^/$as_me: WARNING: /" >&2
1742 ;;
1743 esac
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 eval "$3=\$ac_header_compiler"
1750 fi
1751 eval ac_res=\$$3
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 fi
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757 } # ac_fn_c_check_header_mongrel
1758
1759 # ac_fn_c_try_run LINENO
1760 # ----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1762 # that executables *can* be run.
1763 ac_fn_c_try_run ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>&5
1774 ac_status=$?
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1777 { { case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_try") 2>&5
1784 ac_status=$?
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; }; }; then :
1787 ac_retval=0
1788 else
1789 $as_echo "$as_me: program exited with status $ac_status" >&5
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=$ac_status
1794 fi
1795 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status $ac_retval
1798
1799 } # ac_fn_c_try_run
1800
1801 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists and can be compiled using the include files in
1804 # INCLUDES, setting the cache variable VAR accordingly.
1805 ac_fn_c_check_header_compile ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1812 else
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 $4
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 eval "$3=yes"
1820 else
1821 eval "$3=no"
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 fi
1825 eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830 } # ac_fn_c_check_header_compile
1831
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_link ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 test -x conftest$ac_exeext
1860 }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1
1867 fi
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1875
1876 } # ac_fn_c_try_link
1877
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1888 else
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893 #define $2 innocuous_$2
1894
1895 /* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1899
1900 #ifdef __STDC__
1901 # include <limits.h>
1902 #else
1903 # include <assert.h>
1904 #endif
1905
1906 #undef $2
1907
1908 /* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1911 #ifdef __cplusplus
1912 extern "C"
1913 #endif
1914 char $2 ();
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined __stub_$2 || defined __stub___$2
1919 choke me
1920 #endif
1921
1922 int
1923 main ()
1924 {
1925 return $2 ();
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_link "$LINENO"; then :
1931 eval "$3=yes"
1932 else
1933 eval "$3=no"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext \
1936 conftest$ac_exeext conftest.$ac_ext
1937 fi
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943 } # ac_fn_c_check_func
1944
1945 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1946 # ----------------------------------------------------
1947 # Tries to find if the field MEMBER exists in type AGGR, after including
1948 # INCLUDES, setting cache variable VAR accordingly.
1949 ac_fn_c_check_member ()
1950 {
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1953 $as_echo_n "checking for $2.$3... " >&6; }
1954 if eval \${$4+:} false; then :
1955 $as_echo_n "(cached) " >&6
1956 else
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 $5
1960 int
1961 main ()
1962 {
1963 static $2 ac_aggr;
1964 if (ac_aggr.$3)
1965 return 0;
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 eval "$4=yes"
1972 else
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $5
1976 int
1977 main ()
1978 {
1979 static $2 ac_aggr;
1980 if (sizeof ac_aggr.$3)
1981 return 0;
1982 ;
1983 return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 eval "$4=yes"
1988 else
1989 eval "$4=no"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 fi
1995 eval ac_res=\$$4
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000 } # ac_fn_c_check_member
2001
2002 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2003 # -------------------------------------------
2004 # Tests whether TYPE exists after having included INCLUDES, setting cache
2005 # variable VAR accordingly.
2006 ac_fn_c_check_type ()
2007 {
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 eval "$3=no"
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 $4
2018 int
2019 main ()
2020 {
2021 if (sizeof ($2))
2022 return 0;
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 int
2032 main ()
2033 {
2034 if (sizeof (($2)))
2035 return 0;
2036 ;
2037 return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041
2042 else
2043 eval "$3=yes"
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 fi
2049 eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054 } # ac_fn_c_check_type
2055
2056 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2057 # --------------------------------------------
2058 # Tries to find the compile-time value of EXPR in a program that includes
2059 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2060 # computed
2061 ac_fn_c_compute_int ()
2062 {
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 if test "$cross_compiling" = yes; then
2065 # Depending upon the size, compute the lo and hi bounds.
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2068 $4
2069 int
2070 main ()
2071 {
2072 static int test_array [1 - 2 * !(($2) >= 0)];
2073 test_array [0] = 0;
2074 return test_array [0];
2075
2076 ;
2077 return 0;
2078 }
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081 ac_lo=0 ac_mid=0
2082 while :; do
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 $4
2086 int
2087 main ()
2088 {
2089 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2090 test_array [0] = 0;
2091 return test_array [0];
2092
2093 ;
2094 return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_hi=$ac_mid; break
2099 else
2100 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2101 if test $ac_lo -le $ac_mid; then
2102 ac_lo= ac_hi=
2103 break
2104 fi
2105 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 done
2109 else
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2112 $4
2113 int
2114 main ()
2115 {
2116 static int test_array [1 - 2 * !(($2) < 0)];
2117 test_array [0] = 0;
2118 return test_array [0];
2119
2120 ;
2121 return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 ac_hi=-1 ac_mid=-1
2126 while :; do
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $4
2130 int
2131 main ()
2132 {
2133 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2134 test_array [0] = 0;
2135 return test_array [0];
2136
2137 ;
2138 return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 ac_lo=$ac_mid; break
2143 else
2144 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2145 if test $ac_mid -le $ac_hi; then
2146 ac_lo= ac_hi=
2147 break
2148 fi
2149 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 done
2153 else
2154 ac_lo= ac_hi=
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 # Binary search between lo and hi bounds.
2160 while test "x$ac_lo" != "x$ac_hi"; do
2161 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2164 $4
2165 int
2166 main ()
2167 {
2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169 test_array [0] = 0;
2170 return test_array [0];
2171
2172 ;
2173 return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_hi=$ac_mid
2178 else
2179 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 done
2183 case $ac_lo in #((
2184 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2185 '') ac_retval=1 ;;
2186 esac
2187 else
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2190 $4
2191 static long int longval () { return $2; }
2192 static unsigned long int ulongval () { return $2; }
2193 #include <stdio.h>
2194 #include <stdlib.h>
2195 int
2196 main ()
2197 {
2198
2199 FILE *f = fopen ("conftest.val", "w");
2200 if (! f)
2201 return 1;
2202 if (($2) < 0)
2203 {
2204 long int i = longval ();
2205 if (i != ($2))
2206 return 1;
2207 fprintf (f, "%ld", i);
2208 }
2209 else
2210 {
2211 unsigned long int i = ulongval ();
2212 if (i != ($2))
2213 return 1;
2214 fprintf (f, "%lu", i);
2215 }
2216 /* Do not output a trailing newline, as this causes \r\n confusion
2217 on some platforms. */
2218 return ferror (f) || fclose (f) != 0;
2219
2220 ;
2221 return 0;
2222 }
2223 _ACEOF
2224 if ac_fn_c_try_run "$LINENO"; then :
2225 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2226 else
2227 ac_retval=1
2228 fi
2229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2230 conftest.$ac_objext conftest.beam conftest.$ac_ext
2231 rm -f conftest.val
2232
2233 fi
2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 as_fn_set_status $ac_retval
2236
2237 } # ac_fn_c_compute_int
2238
2239 # ac_fn_c_find_uintX_t LINENO BITS VAR
2240 # ------------------------------------
2241 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2242 # accordingly.
2243 ac_fn_c_find_uintX_t ()
2244 {
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2247 $as_echo_n "checking for uint$2_t... " >&6; }
2248 if eval \${$3+:} false; then :
2249 $as_echo_n "(cached) " >&6
2250 else
2251 eval "$3=no"
2252 # Order is important - never check a type that is potentially smaller
2253 # than half of the expected target width.
2254 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2255 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2258 $ac_includes_default
2259 int
2260 main ()
2261 {
2262 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2263 test_array [0] = 0;
2264 return test_array [0];
2265
2266 ;
2267 return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 case $ac_type in #(
2272 uint$2_t) :
2273 eval "$3=yes" ;; #(
2274 *) :
2275 eval "$3=\$ac_type" ;;
2276 esac
2277 fi
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 if eval test \"x\$"$3"\" = x"no"; then :
2280
2281 else
2282 break
2283 fi
2284 done
2285 fi
2286 eval ac_res=\$$3
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290
2291 } # ac_fn_c_find_uintX_t
2292
2293 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2294 # ---------------------------------------------
2295 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2296 # accordingly.
2297 ac_fn_c_check_decl ()
2298 {
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 as_decl_name=`echo $2|sed 's/ *(.*//'`
2301 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2303 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2304 if eval \${$3+:} false; then :
2305 $as_echo_n "(cached) " >&6
2306 else
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $4
2310 int
2311 main ()
2312 {
2313 #ifndef $as_decl_name
2314 #ifdef __cplusplus
2315 (void) $as_decl_use;
2316 #else
2317 (void) $as_decl_name;
2318 #endif
2319 #endif
2320
2321 ;
2322 return 0;
2323 }
2324 _ACEOF
2325 if ac_fn_c_try_compile "$LINENO"; then :
2326 eval "$3=yes"
2327 else
2328 eval "$3=no"
2329 fi
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 fi
2332 eval ac_res=\$$3
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2334 $as_echo "$ac_res" >&6; }
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336
2337 } # ac_fn_c_check_decl
2338 cat >config.log <<_ACEOF
2339 This file contains any messages produced by compilers while
2340 running configure, to aid debugging if configure makes a mistake.
2341
2342 It was created by Check $as_me 0.15.2, which was
2343 generated by GNU Autoconf 2.69. Invocation command line was
2344
2345 $ $0 $@
2346
2347 _ACEOF
2348 exec 5>>config.log
2349 {
2350 cat <<_ASUNAME
2351 ## --------- ##
2352 ## Platform. ##
2353 ## --------- ##
2354
2355 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2356 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2357 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2358 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2359 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2360
2361 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2362 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2363
2364 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2365 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2366 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2367 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2368 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2369 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2370 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2371
2372 _ASUNAME
2373
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 $as_echo "PATH: $as_dir"
2380 done
2381 IFS=$as_save_IFS
2382
2383 } >&5
2384
2385 cat >&5 <<_ACEOF
2386
2387
2388 ## ----------- ##
2389 ## Core tests. ##
2390 ## ----------- ##
2391
2392 _ACEOF
2393
2394
2395 # Keep a trace of the command line.
2396 # Strip out --no-create and --no-recursion so they do not pile up.
2397 # Strip out --silent because we don't want to record it for future runs.
2398 # Also quote any args containing shell meta-characters.
2399 # Make two passes to allow for proper duplicate-argument suppression.
2400 ac_configure_args=
2401 ac_configure_args0=
2402 ac_configure_args1=
2403 ac_must_keep_next=false
2404 for ac_pass in 1 2
2405 do
2406 for ac_arg
2407 do
2408 case $ac_arg in
2409 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2411 | -silent | --silent | --silen | --sile | --sil)
2412 continue ;;
2413 *\'*)
2414 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2415 esac
2416 case $ac_pass in
2417 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2418 2)
2419 as_fn_append ac_configure_args1 " '$ac_arg'"
2420 if test $ac_must_keep_next = true; then
2421 ac_must_keep_next=false # Got value, back to normal.
2422 else
2423 case $ac_arg in
2424 *=* | --config-cache | -C | -disable-* | --disable-* \
2425 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2426 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2427 | -with-* | --with-* | -without-* | --without-* | --x)
2428 case "$ac_configure_args0 " in
2429 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2430 esac
2431 ;;
2432 -* ) ac_must_keep_next=true ;;
2433 esac
2434 fi
2435 as_fn_append ac_configure_args " '$ac_arg'"
2436 ;;
2437 esac
2438 done
2439 done
2440 { ac_configure_args0=; unset ac_configure_args0;}
2441 { ac_configure_args1=; unset ac_configure_args1;}
2442
2443 # When interrupted or exit'd, cleanup temporary files, and complete
2444 # config.log. We remove comments because anyway the quotes in there
2445 # would cause problems or look ugly.
2446 # WARNING: Use '\'' to represent an apostrophe within the trap.
2447 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2448 trap 'exit_status=$?
2449 # Save into config.log some information that might help in debugging.
2450 {
2451 echo
2452
2453 $as_echo "## ---------------- ##
2454 ## Cache variables. ##
2455 ## ---------------- ##"
2456 echo
2457 # The following way of writing the cache mishandles newlines in values,
2458 (
2459 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2460 eval ac_val=\$$ac_var
2461 case $ac_val in #(
2462 *${as_nl}*)
2463 case $ac_var in #(
2464 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2465 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2466 esac
2467 case $ac_var in #(
2468 _ | IFS | as_nl) ;; #(
2469 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2470 *) { eval $ac_var=; unset $ac_var;} ;;
2471 esac ;;
2472 esac
2473 done
2474 (set) 2>&1 |
2475 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2476 *${as_nl}ac_space=\ *)
2477 sed -n \
2478 "s/'\''/'\''\\\\'\'''\''/g;
2479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2480 ;; #(
2481 *)
2482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2483 ;;
2484 esac |
2485 sort
2486 )
2487 echo
2488
2489 $as_echo "## ----------------- ##
2490 ## Output variables. ##
2491 ## ----------------- ##"
2492 echo
2493 for ac_var in $ac_subst_vars
2494 do
2495 eval ac_val=\$$ac_var
2496 case $ac_val in
2497 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2498 esac
2499 $as_echo "$ac_var='\''$ac_val'\''"
2500 done | sort
2501 echo
2502
2503 if test -n "$ac_subst_files"; then
2504 $as_echo "## ------------------- ##
2505 ## File substitutions. ##
2506 ## ------------------- ##"
2507 echo
2508 for ac_var in $ac_subst_files
2509 do
2510 eval ac_val=\$$ac_var
2511 case $ac_val in
2512 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2513 esac
2514 $as_echo "$ac_var='\''$ac_val'\''"
2515 done | sort
2516 echo
2517 fi
2518
2519 if test -s confdefs.h; then
2520 $as_echo "## ----------- ##
2521 ## confdefs.h. ##
2522 ## ----------- ##"
2523 echo
2524 cat confdefs.h
2525 echo
2526 fi
2527 test "$ac_signal" != 0 &&
2528 $as_echo "$as_me: caught signal $ac_signal"
2529 $as_echo "$as_me: exit $exit_status"
2530 } >&5
2531 rm -f core *.core core.conftest.* &&
2532 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2533 exit $exit_status
2534 ' 0
2535 for ac_signal in 1 2 13 15; do
2536 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2537 done
2538 ac_signal=0
2539
2540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2541 rm -f -r conftest* confdefs.h
2542
2543 $as_echo "/* confdefs.h */" > confdefs.h
2544
2545 # Predefined preprocessor variables.
2546
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_NAME "$PACKAGE_NAME"
2549 _ACEOF
2550
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2553 _ACEOF
2554
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2557 _ACEOF
2558
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_STRING "$PACKAGE_STRING"
2561 _ACEOF
2562
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2565 _ACEOF
2566
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_URL "$PACKAGE_URL"
2569 _ACEOF
2570
2571
2572 # Let the site file select an alternate cache file if it wants to.
2573 # Prefer an explicitly selected file to automatically selected ones.
2574 ac_site_file1=NONE
2575 ac_site_file2=NONE
2576 if test -n "$CONFIG_SITE"; then
2577 # We do not want a PATH search for config.site.
2578 case $CONFIG_SITE in #((
2579 -*) ac_site_file1=./$CONFIG_SITE;;
2580 */*) ac_site_file1=$CONFIG_SITE;;
2581 *) ac_site_file1=./$CONFIG_SITE;;
2582 esac
2583 elif test "x$prefix" != xNONE; then
2584 ac_site_file1=$prefix/share/config.site
2585 ac_site_file2=$prefix/etc/config.site
2586 else
2587 ac_site_file1=$ac_default_prefix/share/config.site
2588 ac_site_file2=$ac_default_prefix/etc/config.site
2589 fi
2590 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2591 do
2592 test "x$ac_site_file" = xNONE && continue
2593 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2595 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2596 sed 's/^/| /' "$ac_site_file" >&5
2597 . "$ac_site_file" \
2598 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2600 as_fn_error $? "failed to load site script $ac_site_file
2601 See \`config.log' for more details" "$LINENO" 5; }
2602 fi
2603 done
2604
2605 if test -r "$cache_file"; then
2606 # Some versions of bash will fail to source /dev/null (special files
2607 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2608 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2610 $as_echo "$as_me: loading cache $cache_file" >&6;}
2611 case $cache_file in
2612 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2613 *) . "./$cache_file";;
2614 esac
2615 fi
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2618 $as_echo "$as_me: creating cache $cache_file" >&6;}
2619 >$cache_file
2620 fi
2621
2622 as_fn_append ac_header_list " time.h"
2623 as_fn_append ac_header_list " stdarg.h"
2624 # Check that the precious variables saved in the cache have kept the same
2625 # value.
2626 ac_cache_corrupted=false
2627 for ac_var in $ac_precious_vars; do
2628 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2629 eval ac_new_set=\$ac_env_${ac_var}_set
2630 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2631 eval ac_new_val=\$ac_env_${ac_var}_value
2632 case $ac_old_set,$ac_new_set in
2633 set,)
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2635 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2636 ac_cache_corrupted=: ;;
2637 ,set)
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2639 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2640 ac_cache_corrupted=: ;;
2641 ,);;
2642 *)
2643 if test "x$ac_old_val" != "x$ac_new_val"; then
2644 # differences in whitespace do not lead to failure.
2645 ac_old_val_w=`echo x $ac_old_val`
2646 ac_new_val_w=`echo x $ac_new_val`
2647 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2649 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2650 ac_cache_corrupted=:
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2653 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2654 eval $ac_var=\$ac_old_val
2655 fi
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2657 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2659 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2660 fi;;
2661 esac
2662 # Pass precious variables to config.status.
2663 if test "$ac_new_set" = set; then
2664 case $ac_new_val in
2665 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2666 *) ac_arg=$ac_var=$ac_new_val ;;
2667 esac
2668 case " $ac_configure_args " in
2669 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2670 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2671 esac
2672 fi
2673 done
2674 if $ac_cache_corrupted; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2678 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2679 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2680 fi
2681 ## -------------------- ##
2682 ## Main body of script. ##
2683 ## -------------------- ##
2684
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691
2692 CHECK_MAJOR_VERSION=0
2693 CHECK_MINOR_VERSION=15
2694 CHECK_MICRO_VERSION=2
2695 CHECK_VERSION=$CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION
2696
2697 # unique source file --- primitive safety check
2698
2699
2700 # place where extra autoconf macros are kept
2701
2702
2703 # place where portability library functions are kept
2704
2705
2706 # really severe build strictness
2707 am__api_version='1.15'
2708
2709 ac_aux_dir=
2710 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2711 if test -f "$ac_dir/install-sh"; then
2712 ac_aux_dir=$ac_dir
2713 ac_install_sh="$ac_aux_dir/install-sh -c"
2714 break
2715 elif test -f "$ac_dir/install.sh"; then
2716 ac_aux_dir=$ac_dir
2717 ac_install_sh="$ac_aux_dir/install.sh -c"
2718 break
2719 elif test -f "$ac_dir/shtool"; then
2720 ac_aux_dir=$ac_dir
2721 ac_install_sh="$ac_aux_dir/shtool install -c"
2722 break
2723 fi
2724 done
2725 if test -z "$ac_aux_dir"; then
2726 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2727 fi
2728
2729 # These three variables are undocumented and unsupported,
2730 # and are intended to be withdrawn in a future Autoconf release.
2731 # They can cause serious problems if a builder's source tree is in a directory
2732 # whose full name contains unusual characters.
2733 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2734 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2735 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2736
2737
2738 # Find a good install program. We prefer a C program (faster),
2739 # so one script is as good as another. But avoid the broken or
2740 # incompatible versions:
2741 # SysV /etc/install, /usr/sbin/install
2742 # SunOS /usr/etc/install
2743 # IRIX /sbin/install
2744 # AIX /bin/install
2745 # AmigaOS /C/install, which installs bootblocks on floppy discs
2746 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2747 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2748 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2749 # OS/2's system install, which has a completely different semantic
2750 # ./install, which can be erroneously created by make from ./install.sh.
2751 # Reject install programs that cannot install multiple files.
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2753 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2754 if test -z "$INSTALL"; then
2755 if ${ac_cv_path_install+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 # Account for people who put trailing slashes in PATH elements.
2764 case $as_dir/ in #((
2765 ./ | .// | /[cC]/* | \
2766 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2767 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2768 /usr/ucb/* ) ;;
2769 *)
2770 # OSF1 and SCO ODT 3.0 have their own names for install.
2771 # Don't use installbsd from OSF since it installs stuff as root
2772 # by default.
2773 for ac_prog in ginstall scoinst install; do
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2776 if test $ac_prog = install &&
2777 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2778 # AIX install. It has an incompatible calling convention.
2779 :
2780 elif test $ac_prog = install &&
2781 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2782 # program-specific install script used by HP pwplus--don't use.
2783 :
2784 else
2785 rm -rf conftest.one conftest.two conftest.dir
2786 echo one > conftest.one
2787 echo two > conftest.two
2788 mkdir conftest.dir
2789 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2790 test -s conftest.one && test -s conftest.two &&
2791 test -s conftest.dir/conftest.one &&
2792 test -s conftest.dir/conftest.two
2793 then
2794 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2795 break 3
2796 fi
2797 fi
2798 fi
2799 done
2800 done
2801 ;;
2802 esac
2803
2804 done
2805 IFS=$as_save_IFS
2806
2807 rm -rf conftest.one conftest.two conftest.dir
2808
2809 fi
2810 if test "${ac_cv_path_install+set}" = set; then
2811 INSTALL=$ac_cv_path_install
2812 else
2813 # As a last resort, use the slow shell script. Don't cache a
2814 # value for INSTALL within a source directory, because that will
2815 # break other packages using the cache if that directory is
2816 # removed, or if the value is a relative name.
2817 INSTALL=$ac_install_sh
2818 fi
2819 fi
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2821 $as_echo "$INSTALL" >&6; }
2822
2823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2824 # It thinks the first close brace ends the variable substitution.
2825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2826
2827 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2828
2829 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2830
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2832 $as_echo_n "checking whether build environment is sane... " >&6; }
2833 # Reject unsafe characters in $srcdir or the absolute working directory
2834 # name. Accept space and tab only in the latter.
2835 am_lf='
2836 '
2837 case `pwd` in
2838 *[\\\"\#\$\&\'\`$am_lf]*)
2839 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2840 esac
2841 case $srcdir in
2842 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2843 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2844 esac
2845
2846 # Do 'set' in a subshell so we don't clobber the current shell's
2847 # arguments. Must try -L first in case configure is actually a
2848 # symlink; some systems play weird games with the mod time of symlinks
2849 # (eg FreeBSD returns the mod time of the symlink's containing
2850 # directory).
2851 if (
2852 am_has_slept=no
2853 for am_try in 1 2; do
2854 echo "timestamp, slept: $am_has_slept" > conftest.file
2855 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2856 if test "$*" = "X"; then
2857 # -L didn't work.
2858 set X `ls -t "$srcdir/configure" conftest.file`
2859 fi
2860 if test "$*" != "X $srcdir/configure conftest.file" \
2861 && test "$*" != "X conftest.file $srcdir/configure"; then
2862
2863 # If neither matched, then we have a broken ls. This can happen
2864 # if, for instance, CONFIG_SHELL is bash and it inherits a
2865 # broken ls alias from the environment. This has actually
2866 # happened. Such a system could not be considered "sane".
2867 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2868 alias in your environment" "$LINENO" 5
2869 fi
2870 if test "$2" = conftest.file || test $am_try -eq 2; then
2871 break
2872 fi
2873 # Just in case.
2874 sleep 1
2875 am_has_slept=yes
2876 done
2877 test "$2" = conftest.file
2878 )
2879 then
2880 # Ok.
2881 :
2882 else
2883 as_fn_error $? "newly created file is older than distributed files!
2884 Check your system clock" "$LINENO" 5
2885 fi
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2887 $as_echo "yes" >&6; }
2888 # If we didn't sleep, we still need to ensure time stamps of config.status and
2889 # generated files are strictly newer.
2890 am_sleep_pid=
2891 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2892 ( sleep 1 ) &
2893 am_sleep_pid=$!
2894 fi
2895
2896 rm -f conftest.file
2897
2898 test "$program_prefix" != NONE &&
2899 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2900 # Use a double $ so make ignores it.
2901 test "$program_suffix" != NONE &&
2902 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2903 # Double any \ or $.
2904 # By default was `s,x,x', remove it if useless.
2905 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2906 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2907
2908 # Expand $ac_aux_dir to an absolute path.
2909 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2910
2911 if test x"${MISSING+set}" != xset; then
2912 case $am_aux_dir in
2913 *\ * | *\ *)
2914 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2915 *)
2916 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2917 esac
2918 fi
2919 # Use eval to expand $SHELL
2920 if eval "$MISSING --is-lightweight"; then
2921 am_missing_run="$MISSING "
2922 else
2923 am_missing_run=
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2925 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2926 fi
2927
2928 if test x"${install_sh+set}" != xset; then
2929 case $am_aux_dir in
2930 *\ * | *\ *)
2931 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2932 *)
2933 install_sh="\${SHELL} $am_aux_dir/install-sh"
2934 esac
2935 fi
2936
2937 # Installed binaries are usually stripped using 'strip' when the user
2938 # run "make install-strip". However 'strip' might not be the right
2939 # tool to use in cross-compilation environments, therefore Automake
2940 # will honor the 'STRIP' environment variable to overrule this program.
2941 if test "$cross_compiling" != no; then
2942 if test -n "$ac_tool_prefix"; then
2943 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2944 set dummy ${ac_tool_prefix}strip; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_STRIP+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$STRIP"; then
2951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964 done
2965 done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 STRIP=$ac_cv_prog_STRIP
2971 if test -n "$STRIP"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2973 $as_echo "$STRIP" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979
2980 fi
2981 if test -z "$ac_cv_prog_STRIP"; then
2982 ac_ct_STRIP=$STRIP
2983 # Extract the first word of "strip", so it can be a program name with args.
2984 set dummy strip; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 if test -n "$ac_ct_STRIP"; then
2991 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_ac_ct_STRIP="strip"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3011 if test -n "$ac_ct_STRIP"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3013 $as_echo "$ac_ct_STRIP" >&6; }
3014 else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019 if test "x$ac_ct_STRIP" = x; then
3020 STRIP=":"
3021 else
3022 case $cross_compiling:$ac_tool_warned in
3023 yes:)
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3026 ac_tool_warned=yes ;;
3027 esac
3028 STRIP=$ac_ct_STRIP
3029 fi
3030 else
3031 STRIP="$ac_cv_prog_STRIP"
3032 fi
3033
3034 fi
3035 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3036
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3038 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3039 if test -z "$MKDIR_P"; then
3040 if ${ac_cv_path_mkdir+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3045 do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_prog in mkdir gmkdir; do
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3051 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3052 'mkdir (GNU coreutils) '* | \
3053 'mkdir (coreutils) '* | \
3054 'mkdir (fileutils) '4.1*)
3055 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3056 break 3;;
3057 esac
3058 done
3059 done
3060 done
3061 IFS=$as_save_IFS
3062
3063 fi
3064
3065 test -d ./--version && rmdir ./--version
3066 if test "${ac_cv_path_mkdir+set}" = set; then
3067 MKDIR_P="$ac_cv_path_mkdir -p"
3068 else
3069 # As a last resort, use the slow shell script. Don't cache a
3070 # value for MKDIR_P within a source directory, because that will
3071 # break other packages using the cache if that directory is
3072 # removed, or if the value is a relative name.
3073 MKDIR_P="$ac_install_sh -d"
3074 fi
3075 fi
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3077 $as_echo "$MKDIR_P" >&6; }
3078
3079 for ac_prog in gawk mawk nawk awk
3080 do
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_AWK+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$AWK"; then
3089 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_AWK="$ac_prog"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 AWK=$ac_cv_prog_AWK
3109 if test -n "$AWK"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3111 $as_echo "$AWK" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 test -n "$AWK" && break
3119 done
3120
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3122 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3123 set x ${MAKE-make}
3124 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3125 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 cat >conftest.make <<\_ACEOF
3129 SHELL = /bin/sh
3130 all:
3131 @echo '@@@%%%=$(MAKE)=@@@%%%'
3132 _ACEOF
3133 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3134 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3135 *@@@%%%=?*=@@@%%%*)
3136 eval ac_cv_prog_make_${ac_make}_set=yes;;
3137 *)
3138 eval ac_cv_prog_make_${ac_make}_set=no;;
3139 esac
3140 rm -f conftest.make
3141 fi
3142 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3144 $as_echo "yes" >&6; }
3145 SET_MAKE=
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 SET_MAKE="MAKE=${MAKE-make}"
3150 fi
3151
3152 rm -rf .tst 2>/dev/null
3153 mkdir .tst 2>/dev/null
3154 if test -d .tst; then
3155 am__leading_dot=.
3156 else
3157 am__leading_dot=_
3158 fi
3159 rmdir .tst 2>/dev/null
3160
3161 # Check whether --enable-silent-rules was given.
3162 if test "${enable_silent_rules+set}" = set; then :
3163 enableval=$enable_silent_rules;
3164 fi
3165
3166 case $enable_silent_rules in # (((
3167 yes) AM_DEFAULT_VERBOSITY=0;;
3168 no) AM_DEFAULT_VERBOSITY=1;;
3169 *) AM_DEFAULT_VERBOSITY=1;;
3170 esac
3171 am_make=${MAKE-make}
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3173 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3174 if ${am_cv_make_support_nested_variables+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if $as_echo 'TRUE=$(BAR$(V))
3178 BAR0=false
3179 BAR1=true
3180 V=1
3181 am__doit:
3182 @$(TRUE)
3183 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3184 am_cv_make_support_nested_variables=yes
3185 else
3186 am_cv_make_support_nested_variables=no
3187 fi
3188 fi
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3190 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3191 if test $am_cv_make_support_nested_variables = yes; then
3192 AM_V='$(V)'
3193 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3194 else
3195 AM_V=$AM_DEFAULT_VERBOSITY
3196 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3197 fi
3198 AM_BACKSLASH='\'
3199
3200 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3201 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3202 # is not polluted with repeated "-I."
3203 am__isrc=' -I$(srcdir)'
3204 # test to see if srcdir already configured
3205 if test -f $srcdir/config.status; then
3206 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3207 fi
3208 fi
3209
3210 # test whether we have cygpath
3211 if test -z "$CYGPATH_W"; then
3212 if (cygpath --version) >/dev/null 2>/dev/null; then
3213 CYGPATH_W='cygpath -w'
3214 else
3215 CYGPATH_W=echo
3216 fi
3217 fi
3218
3219
3220 # Define the identity of the package.
3221 PACKAGE='check'
3222 VERSION='0.15.2'
3223
3224
3225 cat >>confdefs.h <<_ACEOF
3226 #define PACKAGE "$PACKAGE"
3227 _ACEOF
3228
3229
3230 cat >>confdefs.h <<_ACEOF
3231 #define VERSION "$VERSION"
3232 _ACEOF
3233
3234 # Some tools Automake needs.
3235
3236 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3237
3238
3239 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3240
3241
3242 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3243
3244
3245 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3246
3247
3248 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3249
3250 # For better backward compatibility. To be removed once Automake 1.9.x
3251 # dies out for good. For more background, see:
3252 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3253 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3254 mkdir_p='$(MKDIR_P)'
3255
3256 # We need awk for the "check" target (and possibly the TAP driver). The
3257 # system "awk" is bad on some platforms.
3258 # Always define AMTAR for backward compatibility. Yes, it's still used
3259 # in the wild :-( We should find a proper way to deprecate it ...
3260 AMTAR='$${TAR-tar}'
3261
3262
3263 # We'll loop over all known methods to create a tar archive until one works.
3264 _am_tools='gnutar pax cpio none'
3265
3266 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3267
3268
3269
3270
3271
3272
3273 # POSIX will say in a future version that running "rm -f" with no argument
3274 # is OK; and we want to be able to make that assumption in our Makefile
3275 # recipes. So use an aggressive probe to check that the usage we want is
3276 # actually supported "in the wild" to an acceptable degree.
3277 # See automake bug#10828.
3278 # To make any issue more visible, cause the running configure to be aborted
3279 # by default if the 'rm' program in use doesn't match our expectations; the
3280 # user can still override this though.
3281 if rm -f && rm -fr && rm -rf; then : OK; else
3282 cat >&2 <<'END'
3283 Oops!
3284
3285 Your 'rm' program seems unable to run without file operands specified
3286 on the command line, even when the '-f' option is present. This is contrary
3287 to the behaviour of most rm programs out there, and not conforming with
3288 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3289
3290 Please tell [email protected] about your system, including the value
3291 of your $PATH and any error possibly output before this message. This
3292 can help us improve future automake versions.
3293
3294 END
3295 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3296 echo 'Configuration will proceed anyway, since you have set the' >&2
3297 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3298 echo >&2
3299 else
3300 cat >&2 <<'END'
3301 Aborting the configuration process, to ensure you take notice of the issue.
3302
3303 You can download and install GNU coreutils to get an 'rm' implementation
3304 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3305
3306 If you want to complete the configuration process using your problematic
3307 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3308 to "yes", and re-run configure.
3309
3310 END
3311 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3312 fi
3313 fi
3314
3315 # Change to using into-in-builddir in the future:
3316 #AM_INIT_AUTOMAKE([info-in-builddir -Wall -Werror gnits 1.14])
3317
3318 # define things like _GNU_SOURCE appropriately
3319 # From patch 2803433, request system extensions to generate 64-bit safe code
3320 DEPDIR="${am__leading_dot}deps"
3321
3322 ac_config_commands="$ac_config_commands depfiles"
3323
3324
3325 am_make=${MAKE-make}
3326 cat > confinc << 'END'
3327 am__doit:
3328 @echo this is the am__doit target
3329 .PHONY: am__doit
3330 END
3331 # If we don't find an include directive, just comment out the code.
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3333 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3334 am__include="#"
3335 am__quote=
3336 _am_result=none
3337 # First try GNU make style include.
3338 echo "include confinc" > confmf
3339 # Ignore all kinds of additional output from 'make'.
3340 case `$am_make -s -f confmf 2> /dev/null` in #(
3341 *the\ am__doit\ target*)
3342 am__include=include
3343 am__quote=
3344 _am_result=GNU
3345 ;;
3346 esac
3347 # Now try BSD make style include.
3348 if test "$am__include" = "#"; then
3349 echo '.include "confinc"' > confmf
3350 case `$am_make -s -f confmf 2> /dev/null` in #(
3351 *the\ am__doit\ target*)
3352 am__include=.include
3353 am__quote="\""
3354 _am_result=BSD
3355 ;;
3356 esac
3357 fi
3358
3359
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3361 $as_echo "$_am_result" >&6; }
3362 rm -f confinc confmf
3363
3364 # Check whether --enable-dependency-tracking was given.
3365 if test "${enable_dependency_tracking+set}" = set; then :
3366 enableval=$enable_dependency_tracking;
3367 fi
3368
3369 if test "x$enable_dependency_tracking" != xno; then
3370 am_depcomp="$ac_aux_dir/depcomp"
3371 AMDEPBACKSLASH='\'
3372 am__nodep='_no'
3373 fi
3374 if test "x$enable_dependency_tracking" != xno; then
3375 AMDEP_TRUE=
3376 AMDEP_FALSE='#'
3377 else
3378 AMDEP_TRUE='#'
3379 AMDEP_FALSE=
3380 fi
3381
3382
3383 ac_ext=c
3384 ac_cpp='$CPP $CPPFLAGS'
3385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 if test -n "$ac_tool_prefix"; then
3389 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3390 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if ${ac_cv_prog_CC+:} false; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 if test -n "$CC"; then
3397 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 break 2
3409 fi
3410 done
3411 done
3412 IFS=$as_save_IFS
3413
3414 fi
3415 fi
3416 CC=$ac_cv_prog_CC
3417 if test -n "$CC"; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3419 $as_echo "$CC" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 fi
3424
3425
3426 fi
3427 if test -z "$ac_cv_prog_CC"; then
3428 ac_ct_CC=$CC
3429 # Extract the first word of "gcc", so it can be a program name with args.
3430 set dummy gcc; ac_word=$2
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3434 $as_echo_n "(cached) " >&6
3435 else
3436 if test -n "$ac_ct_CC"; then
3437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3438 else
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 ac_cv_prog_ac_ct_CC="gcc"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 break 2
3449 fi
3450 done
3451 done
3452 IFS=$as_save_IFS
3453
3454 fi
3455 fi
3456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3457 if test -n "$ac_ct_CC"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3459 $as_echo "$ac_ct_CC" >&6; }
3460 else
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3463 fi
3464
3465 if test "x$ac_ct_CC" = x; then
3466 CC=""
3467 else
3468 case $cross_compiling:$ac_tool_warned in
3469 yes:)
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3472 ac_tool_warned=yes ;;
3473 esac
3474 CC=$ac_ct_CC
3475 fi
3476 else
3477 CC="$ac_cv_prog_CC"
3478 fi
3479
3480 if test -z "$CC"; then
3481 if test -n "$ac_tool_prefix"; then
3482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3483 set dummy ${ac_tool_prefix}cc; ac_word=$2
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 $as_echo_n "checking for $ac_word... " >&6; }
3486 if ${ac_cv_prog_CC+:} false; then :
3487 $as_echo_n "(cached) " >&6
3488 else
3489 if test -n "$CC"; then
3490 ac_cv_prog_CC="$CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3494 do
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_CC="${ac_tool_prefix}cc"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3502 fi
3503 done
3504 done
3505 IFS=$as_save_IFS
3506
3507 fi
3508 fi
3509 CC=$ac_cv_prog_CC
3510 if test -n "$CC"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512 $as_echo "$CC" >&6; }
3513 else
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3516 fi
3517
3518
3519 fi
3520 fi
3521 if test -z "$CC"; then
3522 # Extract the first word of "cc", so it can be a program name with args.
3523 set dummy cc; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if ${ac_cv_prog_CC+:} false; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 if test -n "$CC"; then
3530 ac_cv_prog_CC="$CC" # Let the user override the test.
3531 else
3532 ac_prog_rejected=no
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3541 ac_prog_rejected=yes
3542 continue
3543 fi
3544 ac_cv_prog_CC="cc"
3545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 break 2
3547 fi
3548 done
3549 done
3550 IFS=$as_save_IFS
3551
3552 if test $ac_prog_rejected = yes; then
3553 # We found a bogon in the path, so make sure we never use it.
3554 set dummy $ac_cv_prog_CC
3555 shift
3556 if test $# != 0; then
3557 # We chose a different compiler from the bogus one.
3558 # However, it has the same basename, so the bogon will be chosen
3559 # first if we set CC to just the basename; use the full file name.
3560 shift
3561 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3562 fi
3563 fi
3564 fi
3565 fi
3566 CC=$ac_cv_prog_CC
3567 if test -n "$CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3569 $as_echo "$CC" >&6; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3573 fi
3574
3575
3576 fi
3577 if test -z "$CC"; then
3578 if test -n "$ac_tool_prefix"; then
3579 for ac_prog in cl.exe
3580 do
3581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if ${ac_cv_prog_CC+:} false; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 if test -n "$CC"; then
3589 ac_cv_prog_CC="$CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3601 fi
3602 done
3603 done
3604 IFS=$as_save_IFS
3605
3606 fi
3607 fi
3608 CC=$ac_cv_prog_CC
3609 if test -n "$CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3612 else
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617
3618 test -n "$CC" && break
3619 done
3620 fi
3621 if test -z "$CC"; then
3622 ac_ct_CC=$CC
3623 for ac_prog in cl.exe
3624 do
3625 # Extract the first word of "$ac_prog", so it can be a program name with args.
3626 set dummy $ac_prog; ac_word=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 if test -n "$ac_ct_CC"; then
3633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642 ac_cv_prog_ac_ct_CC="$ac_prog"
3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 break 2
3645 fi
3646 done
3647 done
3648 IFS=$as_save_IFS
3649
3650 fi
3651 fi
3652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3653 if test -n "$ac_ct_CC"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3655 $as_echo "$ac_ct_CC" >&6; }
3656 else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3659 fi
3660
3661
3662 test -n "$ac_ct_CC" && break
3663 done
3664
3665 if test "x$ac_ct_CC" = x; then
3666 CC=""
3667 else
3668 case $cross_compiling:$ac_tool_warned in
3669 yes:)
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3672 ac_tool_warned=yes ;;
3673 esac
3674 CC=$ac_ct_CC
3675 fi
3676 fi
3677
3678 fi
3679
3680
3681 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683 as_fn_error $? "no acceptable C compiler found in \$PATH
3684 See \`config.log' for more details" "$LINENO" 5; }
3685
3686 # Provide some information about the compiler.
3687 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3688 set X $ac_compile
3689 ac_compiler=$2
3690 for ac_option in --version -v -V -qversion; do
3691 { { ac_try="$ac_compiler $ac_option >&5"
3692 case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695 esac
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 $as_echo "$ac_try_echo"; } >&5
3698 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3699 ac_status=$?
3700 if test -s conftest.err; then
3701 sed '10a\
3702 ... rest of stderr output deleted ...
3703 10q' conftest.err >conftest.er1
3704 cat conftest.er1 >&5
3705 fi
3706 rm -f conftest.er1 conftest.err
3707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708 test $ac_status = 0; }
3709 done
3710
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713
3714 int
3715 main ()
3716 {
3717
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 ac_clean_files_save=$ac_clean_files
3723 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3724 # Try to create an executable without -o first, disregard a.out.
3725 # It will help us diagnose broken compilers, and finding out an intuition
3726 # of exeext.
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3728 $as_echo_n "checking whether the C compiler works... " >&6; }
3729 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3730
3731 # The possible output files:
3732 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3733
3734 ac_rmfiles=
3735 for ac_file in $ac_files
3736 do
3737 case $ac_file in
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3739 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3740 esac
3741 done
3742 rm -f $ac_rmfiles
3743
3744 if { { ac_try="$ac_link_default"
3745 case "(($ac_try" in
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3748 esac
3749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750 $as_echo "$ac_try_echo"; } >&5
3751 (eval "$ac_link_default") 2>&5
3752 ac_status=$?
3753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754 test $ac_status = 0; }; then :
3755 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3756 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3757 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3758 # so that the user can short-circuit this test for compilers unknown to
3759 # Autoconf.
3760 for ac_file in $ac_files ''
3761 do
3762 test -f "$ac_file" || continue
3763 case $ac_file in
3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3765 ;;
3766 [ab].out )
3767 # We found the default executable, but exeext='' is most
3768 # certainly right.
3769 break;;
3770 *.* )
3771 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3772 then :; else
3773 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3774 fi
3775 # We set ac_cv_exeext here because the later test for it is not
3776 # safe: cross compilers may not add the suffix if given an `-o'
3777 # argument, so we may need to know it at that point already.
3778 # Even if this section looks crufty: it has the advantage of
3779 # actually working.
3780 break;;
3781 * )
3782 break;;
3783 esac
3784 done
3785 test "$ac_cv_exeext" = no && ac_cv_exeext=
3786
3787 else
3788 ac_file=''
3789 fi
3790 if test -z "$ac_file"; then :
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3793 $as_echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3795
3796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error 77 "C compiler cannot create executables
3799 See \`config.log' for more details" "$LINENO" 5; }
3800 else
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3802 $as_echo "yes" >&6; }
3803 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3805 $as_echo_n "checking for C compiler default output file name... " >&6; }
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3807 $as_echo "$ac_file" >&6; }
3808 ac_exeext=$ac_cv_exeext
3809
3810 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3811 ac_clean_files=$ac_clean_files_save
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3813 $as_echo_n "checking for suffix of executables... " >&6; }
3814 if { { ac_try="$ac_link"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_link") 2>&5
3822 ac_status=$?
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }; then :
3825 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3826 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3827 # work properly (i.e., refer to `conftest.exe'), while it won't with
3828 # `rm'.
3829 for ac_file in conftest.exe conftest conftest.*; do
3830 test -f "$ac_file" || continue
3831 case $ac_file in
3832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3833 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3834 break;;
3835 * ) break;;
3836 esac
3837 done
3838 else
3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3842 See \`config.log' for more details" "$LINENO" 5; }
3843 fi
3844 rm -f conftest conftest$ac_cv_exeext
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3846 $as_echo "$ac_cv_exeext" >&6; }
3847
3848 rm -f conftest.$ac_ext
3849 EXEEXT=$ac_cv_exeext
3850 ac_exeext=$EXEEXT
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853 #include <stdio.h>
3854 int
3855 main ()
3856 {
3857 FILE *f = fopen ("conftest.out", "w");
3858 return ferror (f) || fclose (f) != 0;
3859
3860 ;
3861 return 0;
3862 }
3863 _ACEOF
3864 ac_clean_files="$ac_clean_files conftest.out"
3865 # Check that the compiler produces executables we can run. If not, either
3866 # the compiler is broken, or we cross compile.
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3868 $as_echo_n "checking whether we are cross compiling... " >&6; }
3869 if test "$cross_compiling" != yes; then
3870 { { ac_try="$ac_link"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_link") 2>&5
3878 ac_status=$?
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }
3881 if { ac_try='./conftest$ac_cv_exeext'
3882 { { case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885 esac
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888 (eval "$ac_try") 2>&5
3889 ac_status=$?
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }; }; then
3892 cross_compiling=no
3893 else
3894 if test "$cross_compiling" = maybe; then
3895 cross_compiling=yes
3896 else
3897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 as_fn_error $? "cannot run C compiled programs.
3900 If you meant to cross compile, use \`--host'.
3901 See \`config.log' for more details" "$LINENO" 5; }
3902 fi
3903 fi
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3906 $as_echo "$cross_compiling" >&6; }
3907
3908 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3909 ac_clean_files=$ac_clean_files_save
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3911 $as_echo_n "checking for suffix of object files... " >&6; }
3912 if ${ac_cv_objext+:} false; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3917
3918 int
3919 main ()
3920 {
3921
3922 ;
3923 return 0;
3924 }
3925 _ACEOF
3926 rm -f conftest.o conftest.obj
3927 if { { ac_try="$ac_compile"
3928 case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 $as_echo "$ac_try_echo"; } >&5
3934 (eval "$ac_compile") 2>&5
3935 ac_status=$?
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }; then :
3938 for ac_file in conftest.o conftest.obj conftest.*; do
3939 test -f "$ac_file" || continue;
3940 case $ac_file in
3941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3943 break;;
3944 esac
3945 done
3946 else
3947 $as_echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3952 as_fn_error $? "cannot compute suffix of object files: cannot compile
3953 See \`config.log' for more details" "$LINENO" 5; }
3954 fi
3955 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3958 $as_echo "$ac_cv_objext" >&6; }
3959 OBJEXT=$ac_cv_objext
3960 ac_objext=$OBJEXT
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3962 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3963 if ${ac_cv_c_compiler_gnu+:} false; then :
3964 $as_echo_n "(cached) " >&6
3965 else
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3968
3969 int
3970 main ()
3971 {
3972 #ifndef __GNUC__
3973 choke me
3974 #endif
3975
3976 ;
3977 return 0;
3978 }
3979 _ACEOF
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981 ac_compiler_gnu=yes
3982 else
3983 ac_compiler_gnu=no
3984 fi
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3987
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3990 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3991 if test $ac_compiler_gnu = yes; then
3992 GCC=yes
3993 else
3994 GCC=
3995 fi
3996 ac_test_CFLAGS=${CFLAGS+set}
3997 ac_save_CFLAGS=$CFLAGS
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3999 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4000 if ${ac_cv_prog_cc_g+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 ac_save_c_werror_flag=$ac_c_werror_flag
4004 ac_c_werror_flag=yes
4005 ac_cv_prog_cc_g=no
4006 CFLAGS="-g"
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009
4010 int
4011 main ()
4012 {
4013
4014 ;
4015 return 0;
4016 }
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_cv_prog_cc_g=yes
4020 else
4021 CFLAGS=""
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4024
4025 int
4026 main ()
4027 {
4028
4029 ;
4030 return 0;
4031 }
4032 _ACEOF
4033 if ac_fn_c_try_compile "$LINENO"; then :
4034
4035 else
4036 ac_c_werror_flag=$ac_save_c_werror_flag
4037 CFLAGS="-g"
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040
4041 int
4042 main ()
4043 {
4044
4045 ;
4046 return 0;
4047 }
4048 _ACEOF
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050 ac_cv_prog_cc_g=yes
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4060 $as_echo "$ac_cv_prog_cc_g" >&6; }
4061 if test "$ac_test_CFLAGS" = set; then
4062 CFLAGS=$ac_save_CFLAGS
4063 elif test $ac_cv_prog_cc_g = yes; then
4064 if test "$GCC" = yes; then
4065 CFLAGS="-g -O2"
4066 else
4067 CFLAGS="-g"
4068 fi
4069 else
4070 if test "$GCC" = yes; then
4071 CFLAGS="-O2"
4072 else
4073 CFLAGS=
4074 fi
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4077 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4078 if ${ac_cv_prog_cc_c89+:} false; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 ac_cv_prog_cc_c89=no
4082 ac_save_CC=$CC
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085 #include <stdarg.h>
4086 #include <stdio.h>
4087 struct stat;
4088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4089 struct buf { int x; };
4090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4091 static char *e (p, i)
4092 char **p;
4093 int i;
4094 {
4095 return p[i];
4096 }
4097 static char *f (char * (*g) (char **, int), char **p, ...)
4098 {
4099 char *s;
4100 va_list v;
4101 va_start (v,p);
4102 s = g (p, va_arg (v,int));
4103 va_end (v);
4104 return s;
4105 }
4106
4107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4108 function prototypes and stuff, but not '\xHH' hex character constants.
4109 These don't provoke an error unfortunately, instead are silently treated
4110 as 'x'. The following induces an error, until -std is added to get
4111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4112 array size at least. It's necessary to write '\x00'==0 to get something
4113 that's true only with -std. */
4114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4115
4116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4117 inside strings and character constants. */
4118 #define FOO(x) 'x'
4119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4120
4121 int test (int i, double x);
4122 struct s1 {int (*f) (int a);};
4123 struct s2 {int (*f) (double a);};
4124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4125 int argc;
4126 char **argv;
4127 int
4128 main ()
4129 {
4130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4131 ;
4132 return 0;
4133 }
4134 _ACEOF
4135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4137 do
4138 CC="$ac_save_CC $ac_arg"
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_prog_cc_c89=$ac_arg
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext
4143 test "x$ac_cv_prog_cc_c89" != "xno" && break
4144 done
4145 rm -f conftest.$ac_ext
4146 CC=$ac_save_CC
4147
4148 fi
4149 # AC_CACHE_VAL
4150 case "x$ac_cv_prog_cc_c89" in
4151 x)
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4153 $as_echo "none needed" >&6; } ;;
4154 xno)
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4156 $as_echo "unsupported" >&6; } ;;
4157 *)
4158 CC="$CC $ac_cv_prog_cc_c89"
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4160 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4161 esac
4162 if test "x$ac_cv_prog_cc_c89" != xno; then :
4163
4164 fi
4165
4166 ac_ext=c
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171
4172 ac_ext=c
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4178 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4179 if ${am_cv_prog_cc_c_o+:} false; then :
4180 $as_echo_n "(cached) " >&6
4181 else
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4184
4185 int
4186 main ()
4187 {
4188
4189 ;
4190 return 0;
4191 }
4192 _ACEOF
4193 # Make sure it works both with $CC and with simple cc.
4194 # Following AC_PROG_CC_C_O, we do the test twice because some
4195 # compilers refuse to overwrite an existing .o file with -o,
4196 # though they will create one.
4197 am_cv_prog_cc_c_o=yes
4198 for am_i in 1 2; do
4199 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4200 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } \
4204 && test -f conftest2.$ac_objext; then
4205 : OK
4206 else
4207 am_cv_prog_cc_c_o=no
4208 break
4209 fi
4210 done
4211 rm -f core conftest*
4212 unset am_i
4213 fi
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4215 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4216 if test "$am_cv_prog_cc_c_o" != yes; then
4217 # Losing compiler, so override with the script.
4218 # FIXME: It is wrong to rewrite CC.
4219 # But if we don't then we get into trouble of one sort or another.
4220 # A longer-term fix would be to have automake use am__CC in this case,
4221 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4222 CC="$am_aux_dir/compile $CC"
4223 fi
4224 ac_ext=c
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229
4230
4231 depcc="$CC" am_compiler_list=
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4234 $as_echo_n "checking dependency style of $depcc... " >&6; }
4235 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4239 # We make a subdir and do the tests there. Otherwise we can end up
4240 # making bogus files that we don't know about and never remove. For
4241 # instance it was reported that on HP-UX the gcc test will end up
4242 # making a dummy file named 'D' -- because '-MD' means "put the output
4243 # in D".
4244 rm -rf conftest.dir
4245 mkdir conftest.dir
4246 # Copy depcomp to subdir because otherwise we won't find it if we're
4247 # using a relative directory.
4248 cp "$am_depcomp" conftest.dir
4249 cd conftest.dir
4250 # We will build objects and dependencies in a subdirectory because
4251 # it helps to detect inapplicable dependency modes. For instance
4252 # both Tru64's cc and ICC support -MD to output dependencies as a
4253 # side effect of compilation, but ICC will put the dependencies in
4254 # the current directory while Tru64 will put them in the object
4255 # directory.
4256 mkdir sub
4257
4258 am_cv_CC_dependencies_compiler_type=none
4259 if test "$am_compiler_list" = ""; then
4260 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4261 fi
4262 am__universal=false
4263 case " $depcc " in #(
4264 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4265 esac
4266
4267 for depmode in $am_compiler_list; do
4268 # Setup a source with many dependencies, because some compilers
4269 # like to wrap large dependency lists on column 80 (with \), and
4270 # we should not choose a depcomp mode which is confused by this.
4271 #
4272 # We need to recreate these files for each test, as the compiler may
4273 # overwrite some of them when testing with obscure command lines.
4274 # This happens at least with the AIX C compiler.
4275 : > sub/conftest.c
4276 for i in 1 2 3 4 5 6; do
4277 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4278 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4279 # Solaris 10 /bin/sh.
4280 echo '/* dummy */' > sub/conftst$i.h
4281 done
4282 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4283
4284 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4285 # mode. It turns out that the SunPro C++ compiler does not properly
4286 # handle '-M -o', and we need to detect this. Also, some Intel
4287 # versions had trouble with output in subdirs.
4288 am__obj=sub/conftest.${OBJEXT-o}
4289 am__minus_obj="-o $am__obj"
4290 case $depmode in
4291 gcc)
4292 # This depmode causes a compiler race in universal mode.
4293 test "$am__universal" = false || continue
4294 ;;
4295 nosideeffect)
4296 # After this tag, mechanisms are not by side-effect, so they'll
4297 # only be used when explicitly requested.
4298 if test "x$enable_dependency_tracking" = xyes; then
4299 continue
4300 else
4301 break
4302 fi
4303 ;;
4304 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4305 # This compiler won't grok '-c -o', but also, the minuso test has
4306 # not run yet. These depmodes are late enough in the game, and
4307 # so weak that their functioning should not be impacted.
4308 am__obj=conftest.${OBJEXT-o}
4309 am__minus_obj=
4310 ;;
4311 none) break ;;
4312 esac
4313 if depmode=$depmode \
4314 source=sub/conftest.c object=$am__obj \
4315 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4316 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4317 >/dev/null 2>conftest.err &&
4318 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4319 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4320 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4321 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4322 # icc doesn't choke on unknown options, it will just issue warnings
4323 # or remarks (even with -Werror). So we grep stderr for any message
4324 # that says an option was ignored or not supported.
4325 # When given -MP, icc 7.0 and 7.1 complain thusly:
4326 # icc: Command line warning: ignoring option '-M'; no argument required
4327 # The diagnosis changed in icc 8.0:
4328 # icc: Command line remark: option '-MP' not supported
4329 if (grep 'ignoring option' conftest.err ||
4330 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4331 am_cv_CC_dependencies_compiler_type=$depmode
4332 break
4333 fi
4334 fi
4335 done
4336
4337 cd ..
4338 rm -rf conftest.dir
4339 else
4340 am_cv_CC_dependencies_compiler_type=none
4341 fi
4342
4343 fi
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4345 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4346 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4347
4348 if
4349 test "x$enable_dependency_tracking" != xno \
4350 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4351 am__fastdepCC_TRUE=
4352 am__fastdepCC_FALSE='#'
4353 else
4354 am__fastdepCC_TRUE='#'
4355 am__fastdepCC_FALSE=
4356 fi
4357
4358
4359
4360 ac_ext=c
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4366 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4367 # On Suns, sometimes $CPP names a directory.
4368 if test -n "$CPP" && test -d "$CPP"; then
4369 CPP=
4370 fi
4371 if test -z "$CPP"; then
4372 if ${ac_cv_prog_CPP+:} false; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 # Double quotes because CPP needs to be expanded
4376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4377 do
4378 ac_preproc_ok=false
4379 for ac_c_preproc_warn_flag in '' yes
4380 do
4381 # Use a header file that comes with gcc, so configuring glibc
4382 # with a fresh cross-compiler works.
4383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4384 # <limits.h> exists even on freestanding compilers.
4385 # On the NeXT, cc -E runs the code through the compiler's parser,
4386 # not just through cpp. "Syntax error" is here to catch this case.
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #ifdef __STDC__
4390 # include <limits.h>
4391 #else
4392 # include <assert.h>
4393 #endif
4394 Syntax error
4395 _ACEOF
4396 if ac_fn_c_try_cpp "$LINENO"; then :
4397
4398 else
4399 # Broken: fails on valid input.
4400 continue
4401 fi
4402 rm -f conftest.err conftest.i conftest.$ac_ext
4403
4404 # OK, works on sane cases. Now check whether nonexistent headers
4405 # can be detected and how.
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 #include <ac_nonexistent.h>
4409 _ACEOF
4410 if ac_fn_c_try_cpp "$LINENO"; then :
4411 # Broken: success on invalid input.
4412 continue
4413 else
4414 # Passes both tests.
4415 ac_preproc_ok=:
4416 break
4417 fi
4418 rm -f conftest.err conftest.i conftest.$ac_ext
4419
4420 done
4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422 rm -f conftest.i conftest.err conftest.$ac_ext
4423 if $ac_preproc_ok; then :
4424 break
4425 fi
4426
4427 done
4428 ac_cv_prog_CPP=$CPP
4429
4430 fi
4431 CPP=$ac_cv_prog_CPP
4432 else
4433 ac_cv_prog_CPP=$CPP
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4436 $as_echo "$CPP" >&6; }
4437 ac_preproc_ok=false
4438 for ac_c_preproc_warn_flag in '' yes
4439 do
4440 # Use a header file that comes with gcc, so configuring glibc
4441 # with a fresh cross-compiler works.
4442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4443 # <limits.h> exists even on freestanding compilers.
4444 # On the NeXT, cc -E runs the code through the compiler's parser,
4445 # not just through cpp. "Syntax error" is here to catch this case.
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448 #ifdef __STDC__
4449 # include <limits.h>
4450 #else
4451 # include <assert.h>
4452 #endif
4453 Syntax error
4454 _ACEOF
4455 if ac_fn_c_try_cpp "$LINENO"; then :
4456
4457 else
4458 # Broken: fails on valid input.
4459 continue
4460 fi
4461 rm -f conftest.err conftest.i conftest.$ac_ext
4462
4463 # OK, works on sane cases. Now check whether nonexistent headers
4464 # can be detected and how.
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #include <ac_nonexistent.h>
4468 _ACEOF
4469 if ac_fn_c_try_cpp "$LINENO"; then :
4470 # Broken: success on invalid input.
4471 continue
4472 else
4473 # Passes both tests.
4474 ac_preproc_ok=:
4475 break
4476 fi
4477 rm -f conftest.err conftest.i conftest.$ac_ext
4478
4479 done
4480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4481 rm -f conftest.i conftest.err conftest.$ac_ext
4482 if $ac_preproc_ok; then :
4483
4484 else
4485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4487 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4488 See \`config.log' for more details" "$LINENO" 5; }
4489 fi
4490
4491 ac_ext=c
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496
4497
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4499 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4500 if ${ac_cv_path_GREP+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -z "$GREP"; then
4504 ac_path_GREP_found=false
4505 # Loop through the user's path and test for each of PROGNAME-LIST
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4508 do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_prog in grep ggrep; do
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4514 as_fn_executable_p "$ac_path_GREP" || continue
4515 # Check for GNU ac_path_GREP and select it if it is found.
4516 # Check for GNU $ac_path_GREP
4517 case `"$ac_path_GREP" --version 2>&1` in
4518 *GNU*)
4519 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4520 *)
4521 ac_count=0
4522 $as_echo_n 0123456789 >"conftest.in"
4523 while :
4524 do
4525 cat "conftest.in" "conftest.in" >"conftest.tmp"
4526 mv "conftest.tmp" "conftest.in"
4527 cp "conftest.in" "conftest.nl"
4528 $as_echo 'GREP' >> "conftest.nl"
4529 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4531 as_fn_arith $ac_count + 1 && ac_count=$as_val
4532 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4533 # Best one so far, save it but keep looking for a better one
4534 ac_cv_path_GREP="$ac_path_GREP"
4535 ac_path_GREP_max=$ac_count
4536 fi
4537 # 10*(2^10) chars as input seems more than enough
4538 test $ac_count -gt 10 && break
4539 done
4540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4541 esac
4542
4543 $ac_path_GREP_found && break 3
4544 done
4545 done
4546 done
4547 IFS=$as_save_IFS
4548 if test -z "$ac_cv_path_GREP"; then
4549 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4550 fi
4551 else
4552 ac_cv_path_GREP=$GREP
4553 fi
4554
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4557 $as_echo "$ac_cv_path_GREP" >&6; }
4558 GREP="$ac_cv_path_GREP"
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4562 $as_echo_n "checking for egrep... " >&6; }
4563 if ${ac_cv_path_EGREP+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4567 then ac_cv_path_EGREP="$GREP -E"
4568 else
4569 if test -z "$EGREP"; then
4570 ac_path_EGREP_found=false
4571 # Loop through the user's path and test for each of PROGNAME-LIST
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_prog in egrep; do
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4580 as_fn_executable_p "$ac_path_EGREP" || continue
4581 # Check for GNU ac_path_EGREP and select it if it is found.
4582 # Check for GNU $ac_path_EGREP
4583 case `"$ac_path_EGREP" --version 2>&1` in
4584 *GNU*)
4585 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4586 *)
4587 ac_count=0
4588 $as_echo_n 0123456789 >"conftest.in"
4589 while :
4590 do
4591 cat "conftest.in" "conftest.in" >"conftest.tmp"
4592 mv "conftest.tmp" "conftest.in"
4593 cp "conftest.in" "conftest.nl"
4594 $as_echo 'EGREP' >> "conftest.nl"
4595 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4597 as_fn_arith $ac_count + 1 && ac_count=$as_val
4598 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4599 # Best one so far, save it but keep looking for a better one
4600 ac_cv_path_EGREP="$ac_path_EGREP"
4601 ac_path_EGREP_max=$ac_count
4602 fi
4603 # 10*(2^10) chars as input seems more than enough
4604 test $ac_count -gt 10 && break
4605 done
4606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4607 esac
4608
4609 $ac_path_EGREP_found && break 3
4610 done
4611 done
4612 done
4613 IFS=$as_save_IFS
4614 if test -z "$ac_cv_path_EGREP"; then
4615 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4616 fi
4617 else
4618 ac_cv_path_EGREP=$EGREP
4619 fi
4620
4621 fi
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4624 $as_echo "$ac_cv_path_EGREP" >&6; }
4625 EGREP="$ac_cv_path_EGREP"
4626
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4629 $as_echo_n "checking for ANSI C header files... " >&6; }
4630 if ${ac_cv_header_stdc+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635 #include <stdlib.h>
4636 #include <stdarg.h>
4637 #include <string.h>
4638 #include <float.h>
4639
4640 int
4641 main ()
4642 {
4643
4644 ;
4645 return 0;
4646 }
4647 _ACEOF
4648 if ac_fn_c_try_compile "$LINENO"; then :
4649 ac_cv_header_stdc=yes
4650 else
4651 ac_cv_header_stdc=no
4652 fi
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654
4655 if test $ac_cv_header_stdc = yes; then
4656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659 #include <string.h>
4660
4661 _ACEOF
4662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4663 $EGREP "memchr" >/dev/null 2>&1; then :
4664
4665 else
4666 ac_cv_header_stdc=no
4667 fi
4668 rm -f conftest*
4669
4670 fi
4671
4672 if test $ac_cv_header_stdc = yes; then
4673 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 #include <stdlib.h>
4677
4678 _ACEOF
4679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4680 $EGREP "free" >/dev/null 2>&1; then :
4681
4682 else
4683 ac_cv_header_stdc=no
4684 fi
4685 rm -f conftest*
4686
4687 fi
4688
4689 if test $ac_cv_header_stdc = yes; then
4690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4691 if test "$cross_compiling" = yes; then :
4692 :
4693 else
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696 #include <ctype.h>
4697 #include <stdlib.h>
4698 #if ((' ' & 0x0FF) == 0x020)
4699 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4700 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4701 #else
4702 # define ISLOWER(c) \
4703 (('a' <= (c) && (c) <= 'i') \
4704 || ('j' <= (c) && (c) <= 'r') \
4705 || ('s' <= (c) && (c) <= 'z'))
4706 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4707 #endif
4708
4709 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4710 int
4711 main ()
4712 {
4713 int i;
4714 for (i = 0; i < 256; i++)
4715 if (XOR (islower (i), ISLOWER (i))
4716 || toupper (i) != TOUPPER (i))
4717 return 2;
4718 return 0;
4719 }
4720 _ACEOF
4721 if ac_fn_c_try_run "$LINENO"; then :
4722
4723 else
4724 ac_cv_header_stdc=no
4725 fi
4726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4727 conftest.$ac_objext conftest.beam conftest.$ac_ext
4728 fi
4729
4730 fi
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4733 $as_echo "$ac_cv_header_stdc" >&6; }
4734 if test $ac_cv_header_stdc = yes; then
4735
4736 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4737
4738 fi
4739
4740 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4741 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4742 inttypes.h stdint.h unistd.h
4743 do :
4744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4745 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4746 "
4747 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4748 cat >>confdefs.h <<_ACEOF
4749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4750 _ACEOF
4751
4752 fi
4753
4754 done
4755
4756
4757
4758 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4759 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4760 MINIX=yes
4761 else
4762 MINIX=
4763 fi
4764
4765
4766 if test "$MINIX" = yes; then
4767
4768 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4769
4770
4771 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4772
4773
4774 $as_echo "#define _MINIX 1" >>confdefs.h
4775
4776 fi
4777
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4780 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4781 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786
4787 # define __EXTENSIONS__ 1
4788 $ac_includes_default
4789 int
4790 main ()
4791 {
4792
4793 ;
4794 return 0;
4795 }
4796 _ACEOF
4797 if ac_fn_c_try_compile "$LINENO"; then :
4798 ac_cv_safe_to_define___extensions__=yes
4799 else
4800 ac_cv_safe_to_define___extensions__=no
4801 fi
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4805 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4806 test $ac_cv_safe_to_define___extensions__ = yes &&
4807 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4808
4809 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4810
4811 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4812
4813 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4814
4815 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4816
4817
4818
4819
4820
4821
4822
4823
4824 # Configure options.
4825 # allow `./configure --enable-silent-rules' and `make V=0'
4826 # Check whether --enable-silent-rules was given.
4827 if test "${enable_silent_rules+set}" = set; then :
4828 enableval=$enable_silent_rules;
4829 fi
4830
4831 case $enable_silent_rules in # (((
4832 yes) AM_DEFAULT_VERBOSITY=0;;
4833 no) AM_DEFAULT_VERBOSITY=1;;
4834 *) AM_DEFAULT_VERBOSITY=1;;
4835 esac
4836 am_make=${MAKE-make}
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4838 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4839 if ${am_cv_make_support_nested_variables+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 if $as_echo 'TRUE=$(BAR$(V))
4843 BAR0=false
4844 BAR1=true
4845 V=1
4846 am__doit:
4847 @$(TRUE)
4848 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4849 am_cv_make_support_nested_variables=yes
4850 else
4851 am_cv_make_support_nested_variables=no
4852 fi
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4855 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4856 if test $am_cv_make_support_nested_variables = yes; then
4857 AM_V='$(V)'
4858 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4859 else
4860 AM_V=$AM_DEFAULT_VERBOSITY
4861 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4862 fi
4863 AM_BACKSLASH='\'
4864
4865
4866 # Check whether --enable-gcov was given.
4867 if test "${enable_gcov+set}" = set; then :
4868 enableval=$enable_gcov; case "${enableval}" in
4869 yes) enable_gcov=true ;;
4870 no) enable_gcov=false ;;
4871 *) as_fn_error $? "bad value ${enableval} for --enable-gcov" "$LINENO" 5 ;;
4872 esac
4873 else
4874 enable_gcov=false
4875 fi
4876
4877
4878 if test x$enable_gcov = xtrue ; then
4879 if test x"$GCC" != xyes; then
4880 as_fn_error $? "gcov only works if gcc is used" "$LINENO" 5
4881 fi
4882
4883 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"
4884
4885
4886 GCOV_LIBS=-lgcov
4887
4888 fi
4889
4890 if test x"$enable_gcov" = "xtrue"; then
4891 ENABLE_GCOV_TRUE=
4892 ENABLE_GCOV_FALSE='#'
4893 else
4894 ENABLE_GCOV_TRUE='#'
4895 ENABLE_GCOV_FALSE=
4896 fi
4897
4898
4899 # Check whether --enable-timeout-tests was given.
4900 if test "${enable_timeout_tests+set}" = set; then :
4901 enableval=$enable_timeout_tests; case "${enableval}" in
4902 yes) enable_timeout_tests=true ;;
4903 no) enable_timeout_tests=false ;;
4904 *) as_fn_error $? "bad value ${enableval} for --enable-timeout-tests" "$LINENO" 5 ;;
4905 esac
4906 else
4907 enable_timeout_tests=true
4908 fi
4909
4910
4911 # Check whether --enable-build-docs was given.
4912 if test "${enable_build_docs+set}" = set; then :
4913 enableval=$enable_build_docs; case "${enableval}" in
4914 yes) enable_build_docs=true ;;
4915 no) enable_build_docs=false ;;
4916 *) as_fn_error $? "bad value ${enableval} for --enable-build-docs" "$LINENO" 5 ;;
4917 esac
4918 else
4919 enable_build_docs=true
4920 fi
4921
4922
4923 if test x"$enable_timeout_tests" = "xfalse"; then
4924 NO_TIMEOUT_TESTS_TRUE=
4925 NO_TIMEOUT_TESTS_FALSE='#'
4926 else
4927 NO_TIMEOUT_TESTS_TRUE='#'
4928 NO_TIMEOUT_TESTS_FALSE=
4929 fi
4930
4931
4932 # Check whether --enable-subunit was given.
4933 if test "${enable_subunit+set}" = set; then :
4934 enableval=$enable_subunit; case "${enableval}" in
4935 yes)
4936 enable_subunit=true
4937 echo "Enabled subunit support"
4938 ;;
4939 no)
4940 enable_subunit=false
4941 echo "Disabled subunit support"
4942 ;;
4943 autodetect)
4944 echo "Subunit support will enable automatically."
4945 ;;
4946 *) as_fn_error $? "bad value ${enableval} for --enable-subunit" "$LINENO" 5 ;;
4947 esac
4948 else
4949 echo "Subunit support will enable automatically."
4950 enable_subunit=autodetect
4951 fi
4952
4953
4954 # Check whether --enable-fork was given.
4955 if test "${enable_fork+set}" = set; then :
4956 enableval=$enable_fork; case "${enableval}" in
4957 yes) enable_fork=true ;;
4958 no) enable_fork=false ;;
4959 *) as_fn_error $? "bad value ${enableval} for --enable-fork" "$LINENO" 5 ;;
4960 esac
4961 else
4962 enable_fork=true
4963 fi
4964
4965
4966 # Check whether --enable-snprintf-replacement was given.
4967 if test "${enable_snprintf_replacement+set}" = set; then :
4968 enableval=$enable_snprintf_replacement; case "${enableval}" in
4969 yes) enable_snprintf_replacement=true ;;
4970 *) as_fn_error $? "bad value ${enableval} for --enable-snprintf-replacement" "$LINENO" 5 ;;
4971 esac
4972 else
4973 enable_snprintf_replacement=autodetect
4974 fi
4975
4976
4977 # Check whether --enable-timer-replacement was given.
4978 if test "${enable_timer_replacement+set}" = set; then :
4979 enableval=$enable_timer_replacement; case "${enableval}" in
4980 yes) enable_timer_replacement=true ;;
4981 *) as_fn_error $? "bad value ${enableval} for --enable-timer-replacement" "$LINENO" 5 ;;
4982 esac
4983 else
4984 enable_timer_replacement=autodetect
4985 fi
4986
4987
4988
4989 # Checks for programs.
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4991 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4992 if ${ac_cv_path_SED+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4996 for ac_i in 1 2 3 4 5 6 7; do
4997 ac_script="$ac_script$as_nl$ac_script"
4998 done
4999 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5000 { ac_script=; unset ac_script;}
5001 if test -z "$SED"; then
5002 ac_path_SED_found=false
5003 # Loop through the user's path and test for each of PROGNAME-LIST
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_prog in sed gsed; do
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5012 as_fn_executable_p "$ac_path_SED" || continue
5013 # Check for GNU ac_path_SED and select it if it is found.
5014 # Check for GNU $ac_path_SED
5015 case `"$ac_path_SED" --version 2>&1` in
5016 *GNU*)
5017 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5018 *)
5019 ac_count=0
5020 $as_echo_n 0123456789 >"conftest.in"
5021 while :
5022 do
5023 cat "conftest.in" "conftest.in" >"conftest.tmp"
5024 mv "conftest.tmp" "conftest.in"
5025 cp "conftest.in" "conftest.nl"
5026 $as_echo '' >> "conftest.nl"
5027 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5028 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5029 as_fn_arith $ac_count + 1 && ac_count=$as_val
5030 if test $ac_count -gt ${ac_path_SED_max-0}; then
5031 # Best one so far, save it but keep looking for a better one
5032 ac_cv_path_SED="$ac_path_SED"
5033 ac_path_SED_max=$ac_count
5034 fi
5035 # 10*(2^10) chars as input seems more than enough
5036 test $ac_count -gt 10 && break
5037 done
5038 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5039 esac
5040
5041 $ac_path_SED_found && break 3
5042 done
5043 done
5044 done
5045 IFS=$as_save_IFS
5046 if test -z "$ac_cv_path_SED"; then
5047 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5048 fi
5049 else
5050 ac_cv_path_SED=$SED
5051 fi
5052
5053 fi
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5055 $as_echo "$ac_cv_path_SED" >&6; }
5056 SED="$ac_cv_path_SED"
5057 rm -f conftest.sed
5058
5059 for ac_prog in gawk mawk nawk awk
5060 do
5061 # Extract the first word of "$ac_prog", so it can be a program name with args.
5062 set dummy $ac_prog; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_AWK+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$AWK"; then
5069 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_AWK="$ac_prog"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 AWK=$ac_cv_prog_AWK
5089 if test -n "$AWK"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5091 $as_echo "$AWK" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097
5098 test -n "$AWK" && break
5099 done
5100
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106 if test -n "$ac_tool_prefix"; then
5107 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5108 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_prog_CC+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -n "$CC"; then
5115 ac_cv_prog_CC="$CC" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5124 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5127 fi
5128 done
5129 done
5130 IFS=$as_save_IFS
5131
5132 fi
5133 fi
5134 CC=$ac_cv_prog_CC
5135 if test -n "$CC"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5137 $as_echo "$CC" >&6; }
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5141 fi
5142
5143
5144 fi
5145 if test -z "$ac_cv_prog_CC"; then
5146 ac_ct_CC=$CC
5147 # Extract the first word of "gcc", so it can be a program name with args.
5148 set dummy gcc; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 if test -n "$ac_ct_CC"; then
5155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_ac_ct_CC="gcc"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5167 fi
5168 done
5169 done
5170 IFS=$as_save_IFS
5171
5172 fi
5173 fi
5174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5175 if test -n "$ac_ct_CC"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5177 $as_echo "$ac_ct_CC" >&6; }
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 fi
5182
5183 if test "x$ac_ct_CC" = x; then
5184 CC=""
5185 else
5186 case $cross_compiling:$ac_tool_warned in
5187 yes:)
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5190 ac_tool_warned=yes ;;
5191 esac
5192 CC=$ac_ct_CC
5193 fi
5194 else
5195 CC="$ac_cv_prog_CC"
5196 fi
5197
5198 if test -z "$CC"; then
5199 if test -n "$ac_tool_prefix"; then
5200 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5201 set dummy ${ac_tool_prefix}cc; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_CC+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$CC"; then
5208 ac_cv_prog_CC="$CC" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_CC="${ac_tool_prefix}cc"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 CC=$ac_cv_prog_CC
5228 if test -n "$CC"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5230 $as_echo "$CC" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236
5237 fi
5238 fi
5239 if test -z "$CC"; then
5240 # Extract the first word of "cc", so it can be a program name with args.
5241 set dummy cc; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if ${ac_cv_prog_CC+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$CC"; then
5248 ac_cv_prog_CC="$CC" # Let the user override the test.
5249 else
5250 ac_prog_rejected=no
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5259 ac_prog_rejected=yes
5260 continue
5261 fi
5262 ac_cv_prog_CC="cc"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5265 fi
5266 done
5267 done
5268 IFS=$as_save_IFS
5269
5270 if test $ac_prog_rejected = yes; then
5271 # We found a bogon in the path, so make sure we never use it.
5272 set dummy $ac_cv_prog_CC
5273 shift
5274 if test $# != 0; then
5275 # We chose a different compiler from the bogus one.
5276 # However, it has the same basename, so the bogon will be chosen
5277 # first if we set CC to just the basename; use the full file name.
5278 shift
5279 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5280 fi
5281 fi
5282 fi
5283 fi
5284 CC=$ac_cv_prog_CC
5285 if test -n "$CC"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5287 $as_echo "$CC" >&6; }
5288 else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5291 fi
5292
5293
5294 fi
5295 if test -z "$CC"; then
5296 if test -n "$ac_tool_prefix"; then
5297 for ac_prog in cl.exe
5298 do
5299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_prog_CC+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 if test -n "$CC"; then
5307 ac_cv_prog_CC="$CC" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5311 do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5319 fi
5320 done
5321 done
5322 IFS=$as_save_IFS
5323
5324 fi
5325 fi
5326 CC=$ac_cv_prog_CC
5327 if test -n "$CC"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5329 $as_echo "$CC" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5333 fi
5334
5335
5336 test -n "$CC" && break
5337 done
5338 fi
5339 if test -z "$CC"; then
5340 ac_ct_CC=$CC
5341 for ac_prog in cl.exe
5342 do
5343 # Extract the first word of "$ac_prog", so it can be a program name with args.
5344 set dummy $ac_prog; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if test -n "$ac_ct_CC"; then
5351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_ac_ct_CC="$ac_prog"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5363 fi
5364 done
5365 done
5366 IFS=$as_save_IFS
5367
5368 fi
5369 fi
5370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5371 if test -n "$ac_ct_CC"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5373 $as_echo "$ac_ct_CC" >&6; }
5374 else
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5377 fi
5378
5379
5380 test -n "$ac_ct_CC" && break
5381 done
5382
5383 if test "x$ac_ct_CC" = x; then
5384 CC=""
5385 else
5386 case $cross_compiling:$ac_tool_warned in
5387 yes:)
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5390 ac_tool_warned=yes ;;
5391 esac
5392 CC=$ac_ct_CC
5393 fi
5394 fi
5395
5396 fi
5397
5398
5399 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5401 as_fn_error $? "no acceptable C compiler found in \$PATH
5402 See \`config.log' for more details" "$LINENO" 5; }
5403
5404 # Provide some information about the compiler.
5405 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5406 set X $ac_compile
5407 ac_compiler=$2
5408 for ac_option in --version -v -V -qversion; do
5409 { { ac_try="$ac_compiler $ac_option >&5"
5410 case "(($ac_try" in
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5413 esac
5414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5415 $as_echo "$ac_try_echo"; } >&5
5416 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5417 ac_status=$?
5418 if test -s conftest.err; then
5419 sed '10a\
5420 ... rest of stderr output deleted ...
5421 10q' conftest.err >conftest.er1
5422 cat conftest.er1 >&5
5423 fi
5424 rm -f conftest.er1 conftest.err
5425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5426 test $ac_status = 0; }
5427 done
5428
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5430 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5431 if ${ac_cv_c_compiler_gnu+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436
5437 int
5438 main ()
5439 {
5440 #ifndef __GNUC__
5441 choke me
5442 #endif
5443
5444 ;
5445 return 0;
5446 }
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449 ac_compiler_gnu=yes
5450 else
5451 ac_compiler_gnu=no
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5455
5456 fi
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5458 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5459 if test $ac_compiler_gnu = yes; then
5460 GCC=yes
5461 else
5462 GCC=
5463 fi
5464 ac_test_CFLAGS=${CFLAGS+set}
5465 ac_save_CFLAGS=$CFLAGS
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5467 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5468 if ${ac_cv_prog_cc_g+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 ac_save_c_werror_flag=$ac_c_werror_flag
5472 ac_c_werror_flag=yes
5473 ac_cv_prog_cc_g=no
5474 CFLAGS="-g"
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477
5478 int
5479 main ()
5480 {
5481
5482 ;
5483 return 0;
5484 }
5485 _ACEOF
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 ac_cv_prog_cc_g=yes
5488 else
5489 CFLAGS=""
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5492
5493 int
5494 main ()
5495 {
5496
5497 ;
5498 return 0;
5499 }
5500 _ACEOF
5501 if ac_fn_c_try_compile "$LINENO"; then :
5502
5503 else
5504 ac_c_werror_flag=$ac_save_c_werror_flag
5505 CFLAGS="-g"
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508
5509 int
5510 main ()
5511 {
5512
5513 ;
5514 return 0;
5515 }
5516 _ACEOF
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518 ac_cv_prog_cc_g=yes
5519 fi
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 fi
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 fi
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 ac_c_werror_flag=$ac_save_c_werror_flag
5526 fi
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5528 $as_echo "$ac_cv_prog_cc_g" >&6; }
5529 if test "$ac_test_CFLAGS" = set; then
5530 CFLAGS=$ac_save_CFLAGS
5531 elif test $ac_cv_prog_cc_g = yes; then
5532 if test "$GCC" = yes; then
5533 CFLAGS="-g -O2"
5534 else
5535 CFLAGS="-g"
5536 fi
5537 else
5538 if test "$GCC" = yes; then
5539 CFLAGS="-O2"
5540 else
5541 CFLAGS=
5542 fi
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5545 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5546 if ${ac_cv_prog_cc_c89+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 ac_cv_prog_cc_c89=no
5550 ac_save_CC=$CC
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #include <stdarg.h>
5554 #include <stdio.h>
5555 struct stat;
5556 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5557 struct buf { int x; };
5558 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5559 static char *e (p, i)
5560 char **p;
5561 int i;
5562 {
5563 return p[i];
5564 }
5565 static char *f (char * (*g) (char **, int), char **p, ...)
5566 {
5567 char *s;
5568 va_list v;
5569 va_start (v,p);
5570 s = g (p, va_arg (v,int));
5571 va_end (v);
5572 return s;
5573 }
5574
5575 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5576 function prototypes and stuff, but not '\xHH' hex character constants.
5577 These don't provoke an error unfortunately, instead are silently treated
5578 as 'x'. The following induces an error, until -std is added to get
5579 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5580 array size at least. It's necessary to write '\x00'==0 to get something
5581 that's true only with -std. */
5582 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5583
5584 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5585 inside strings and character constants. */
5586 #define FOO(x) 'x'
5587 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5588
5589 int test (int i, double x);
5590 struct s1 {int (*f) (int a);};
5591 struct s2 {int (*f) (double a);};
5592 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5593 int argc;
5594 char **argv;
5595 int
5596 main ()
5597 {
5598 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5604 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5605 do
5606 CC="$ac_save_CC $ac_arg"
5607 if ac_fn_c_try_compile "$LINENO"; then :
5608 ac_cv_prog_cc_c89=$ac_arg
5609 fi
5610 rm -f core conftest.err conftest.$ac_objext
5611 test "x$ac_cv_prog_cc_c89" != "xno" && break
5612 done
5613 rm -f conftest.$ac_ext
5614 CC=$ac_save_CC
5615
5616 fi
5617 # AC_CACHE_VAL
5618 case "x$ac_cv_prog_cc_c89" in
5619 x)
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5621 $as_echo "none needed" >&6; } ;;
5622 xno)
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5624 $as_echo "unsupported" >&6; } ;;
5625 *)
5626 CC="$CC $ac_cv_prog_cc_c89"
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5628 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5629 esac
5630 if test "x$ac_cv_prog_cc_c89" != xno; then :
5631
5632 fi
5633
5634 ac_ext=c
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639
5640 ac_ext=c
5641 ac_cpp='$CPP $CPPFLAGS'
5642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5646 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5647 if ${am_cv_prog_cc_c_o+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652
5653 int
5654 main ()
5655 {
5656
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 # Make sure it works both with $CC and with simple cc.
5662 # Following AC_PROG_CC_C_O, we do the test twice because some
5663 # compilers refuse to overwrite an existing .o file with -o,
5664 # though they will create one.
5665 am_cv_prog_cc_c_o=yes
5666 for am_i in 1 2; do
5667 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5668 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } \
5672 && test -f conftest2.$ac_objext; then
5673 : OK
5674 else
5675 am_cv_prog_cc_c_o=no
5676 break
5677 fi
5678 done
5679 rm -f core conftest*
5680 unset am_i
5681 fi
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5683 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5684 if test "$am_cv_prog_cc_c_o" != yes; then
5685 # Losing compiler, so override with the script.
5686 # FIXME: It is wrong to rewrite CC.
5687 # But if we don't then we get into trouble of one sort or another.
5688 # A longer-term fix would be to have automake use am__CC in this case,
5689 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5690 CC="$am_aux_dir/compile $CC"
5691 fi
5692 ac_ext=c
5693 ac_cpp='$CPP $CPPFLAGS'
5694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5697
5698
5699 depcc="$CC" am_compiler_list=
5700
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5702 $as_echo_n "checking dependency style of $depcc... " >&6; }
5703 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5707 # We make a subdir and do the tests there. Otherwise we can end up
5708 # making bogus files that we don't know about and never remove. For
5709 # instance it was reported that on HP-UX the gcc test will end up
5710 # making a dummy file named 'D' -- because '-MD' means "put the output
5711 # in D".
5712 rm -rf conftest.dir
5713 mkdir conftest.dir
5714 # Copy depcomp to subdir because otherwise we won't find it if we're
5715 # using a relative directory.
5716 cp "$am_depcomp" conftest.dir
5717 cd conftest.dir
5718 # We will build objects and dependencies in a subdirectory because
5719 # it helps to detect inapplicable dependency modes. For instance
5720 # both Tru64's cc and ICC support -MD to output dependencies as a
5721 # side effect of compilation, but ICC will put the dependencies in
5722 # the current directory while Tru64 will put them in the object
5723 # directory.
5724 mkdir sub
5725
5726 am_cv_CC_dependencies_compiler_type=none
5727 if test "$am_compiler_list" = ""; then
5728 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5729 fi
5730 am__universal=false
5731 case " $depcc " in #(
5732 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5733 esac
5734
5735 for depmode in $am_compiler_list; do
5736 # Setup a source with many dependencies, because some compilers
5737 # like to wrap large dependency lists on column 80 (with \), and
5738 # we should not choose a depcomp mode which is confused by this.
5739 #
5740 # We need to recreate these files for each test, as the compiler may
5741 # overwrite some of them when testing with obscure command lines.
5742 # This happens at least with the AIX C compiler.
5743 : > sub/conftest.c
5744 for i in 1 2 3 4 5 6; do
5745 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5746 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5747 # Solaris 10 /bin/sh.
5748 echo '/* dummy */' > sub/conftst$i.h
5749 done
5750 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5751
5752 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5753 # mode. It turns out that the SunPro C++ compiler does not properly
5754 # handle '-M -o', and we need to detect this. Also, some Intel
5755 # versions had trouble with output in subdirs.
5756 am__obj=sub/conftest.${OBJEXT-o}
5757 am__minus_obj="-o $am__obj"
5758 case $depmode in
5759 gcc)
5760 # This depmode causes a compiler race in universal mode.
5761 test "$am__universal" = false || continue
5762 ;;
5763 nosideeffect)
5764 # After this tag, mechanisms are not by side-effect, so they'll
5765 # only be used when explicitly requested.
5766 if test "x$enable_dependency_tracking" = xyes; then
5767 continue
5768 else
5769 break
5770 fi
5771 ;;
5772 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5773 # This compiler won't grok '-c -o', but also, the minuso test has
5774 # not run yet. These depmodes are late enough in the game, and
5775 # so weak that their functioning should not be impacted.
5776 am__obj=conftest.${OBJEXT-o}
5777 am__minus_obj=
5778 ;;
5779 none) break ;;
5780 esac
5781 if depmode=$depmode \
5782 source=sub/conftest.c object=$am__obj \
5783 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5784 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5785 >/dev/null 2>conftest.err &&
5786 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5787 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5788 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5790 # icc doesn't choke on unknown options, it will just issue warnings
5791 # or remarks (even with -Werror). So we grep stderr for any message
5792 # that says an option was ignored or not supported.
5793 # When given -MP, icc 7.0 and 7.1 complain thusly:
5794 # icc: Command line warning: ignoring option '-M'; no argument required
5795 # The diagnosis changed in icc 8.0:
5796 # icc: Command line remark: option '-MP' not supported
5797 if (grep 'ignoring option' conftest.err ||
5798 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5799 am_cv_CC_dependencies_compiler_type=$depmode
5800 break
5801 fi
5802 fi
5803 done
5804
5805 cd ..
5806 rm -rf conftest.dir
5807 else
5808 am_cv_CC_dependencies_compiler_type=none
5809 fi
5810
5811 fi
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5813 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5814 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5815
5816 if
5817 test "x$enable_dependency_tracking" != xno \
5818 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5819 am__fastdepCC_TRUE=
5820 am__fastdepCC_FALSE='#'
5821 else
5822 am__fastdepCC_TRUE='#'
5823 am__fastdepCC_FALSE=
5824 fi
5825
5826
5827 # Automake wants this for per-target CFLAGS
5828
5829
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5831 $as_echo_n "checking whether ln -s works... " >&6; }
5832 LN_S=$as_ln_s
5833 if test "$LN_S" = "ln -s"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5835 $as_echo "yes" >&6; }
5836 else
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5838 $as_echo "no, using $LN_S" >&6; }
5839 fi
5840
5841 # for non-POSIX archivers like the one on OS X
5842 # use m4_ifdef to work on older automake (1.11)
5843 if test -n "$ac_tool_prefix"; then
5844 for ac_prog in ar lib "link -lib"
5845 do
5846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if ${ac_cv_prog_AR+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if test -n "$AR"; then
5854 ac_cv_prog_AR="$AR" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5866 fi
5867 done
5868 done
5869 IFS=$as_save_IFS
5870
5871 fi
5872 fi
5873 AR=$ac_cv_prog_AR
5874 if test -n "$AR"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5876 $as_echo "$AR" >&6; }
5877 else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5880 fi
5881
5882
5883 test -n "$AR" && break
5884 done
5885 fi
5886 if test -z "$AR"; then
5887 ac_ct_AR=$AR
5888 for ac_prog in ar lib "link -lib"
5889 do
5890 # Extract the first word of "$ac_prog", so it can be a program name with args.
5891 set dummy $ac_prog; ac_word=$2
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 $as_echo_n "checking for $ac_word... " >&6; }
5894 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 if test -n "$ac_ct_AR"; then
5898 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_ac_ct_AR="$ac_prog"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911 done
5912 done
5913 IFS=$as_save_IFS
5914
5915 fi
5916 fi
5917 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5918 if test -n "$ac_ct_AR"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5920 $as_echo "$ac_ct_AR" >&6; }
5921 else
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5924 fi
5925
5926
5927 test -n "$ac_ct_AR" && break
5928 done
5929
5930 if test "x$ac_ct_AR" = x; then
5931 AR="false"
5932 else
5933 case $cross_compiling:$ac_tool_warned in
5934 yes:)
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5937 ac_tool_warned=yes ;;
5938 esac
5939 AR=$ac_ct_AR
5940 fi
5941 fi
5942
5943 : ${AR=ar}
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5946 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5947 if ${am_cv_ar_interface+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 ac_ext=c
5951 ac_cpp='$CPP $CPPFLAGS'
5952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5955
5956 am_cv_ar_interface=ar
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 int some_variable = 0;
5960 _ACEOF
5961 if ac_fn_c_try_compile "$LINENO"; then :
5962 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5964 (eval $am_ar_try) 2>&5
5965 ac_status=$?
5966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5967 test $ac_status = 0; }
5968 if test "$ac_status" -eq 0; then
5969 am_cv_ar_interface=ar
5970 else
5971 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5973 (eval $am_ar_try) 2>&5
5974 ac_status=$?
5975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5976 test $ac_status = 0; }
5977 if test "$ac_status" -eq 0; then
5978 am_cv_ar_interface=lib
5979 else
5980 am_cv_ar_interface=unknown
5981 fi
5982 fi
5983 rm -f conftest.lib libconftest.a
5984
5985 fi
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987 ac_ext=c
5988 ac_cpp='$CPP $CPPFLAGS'
5989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5992
5993 fi
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5995 $as_echo "$am_cv_ar_interface" >&6; }
5996
5997 case $am_cv_ar_interface in
5998 ar)
5999 ;;
6000 lib)
6001 # Microsoft lib, so override with the ar-lib wrapper script.
6002 # FIXME: It is wrong to rewrite AR.
6003 # But if we don't then we get into trouble of one sort or another.
6004 # A longer-term fix would be to have automake use am__AR in this case,
6005 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6006 # similar.
6007 AR="$am_aux_dir/ar-lib $AR"
6008 ;;
6009 unknown)
6010 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6011 ;;
6012 esac
6013
6014 case `pwd` in
6015 *\ * | *\ *)
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6017 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6018 esac
6019
6020
6021
6022 macro_version='2.4.6'
6023 macro_revision='2.4.6'
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037 ltmain=$ac_aux_dir/ltmain.sh
6038
6039 # Make sure we can run config.sub.
6040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6041 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6042
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6044 $as_echo_n "checking build system type... " >&6; }
6045 if ${ac_cv_build+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 ac_build_alias=$build_alias
6049 test "x$ac_build_alias" = x &&
6050 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6051 test "x$ac_build_alias" = x &&
6052 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6054 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6055
6056 fi
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6058 $as_echo "$ac_cv_build" >&6; }
6059 case $ac_cv_build in
6060 *-*-*) ;;
6061 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6062 esac
6063 build=$ac_cv_build
6064 ac_save_IFS=$IFS; IFS='-'
6065 set x $ac_cv_build
6066 shift
6067 build_cpu=$1
6068 build_vendor=$2
6069 shift; shift
6070 # Remember, the first character of IFS is used to create $*,
6071 # except with old shells:
6072 build_os=$*
6073 IFS=$ac_save_IFS
6074 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6075
6076
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6078 $as_echo_n "checking host system type... " >&6; }
6079 if ${ac_cv_host+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if test "x$host_alias" = x; then
6083 ac_cv_host=$ac_cv_build
6084 else
6085 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6086 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6087 fi
6088
6089 fi
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6091 $as_echo "$ac_cv_host" >&6; }
6092 case $ac_cv_host in
6093 *-*-*) ;;
6094 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6095 esac
6096 host=$ac_cv_host
6097 ac_save_IFS=$IFS; IFS='-'
6098 set x $ac_cv_host
6099 shift
6100 host_cpu=$1
6101 host_vendor=$2
6102 shift; shift
6103 # Remember, the first character of IFS is used to create $*,
6104 # except with old shells:
6105 host_os=$*
6106 IFS=$ac_save_IFS
6107 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6108
6109
6110 # Backslashify metacharacters that are still active within
6111 # double-quoted strings.
6112 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6113
6114 # Same as above, but do not quote variable references.
6115 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6116
6117 # Sed substitution to delay expansion of an escaped shell variable in a
6118 # double_quote_subst'ed string.
6119 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6120
6121 # Sed substitution to delay expansion of an escaped single quote.
6122 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6123
6124 # Sed substitution to avoid accidental globbing in evaled expressions
6125 no_glob_subst='s/\*/\\\*/g'
6126
6127 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6128 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6129 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6130
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6132 $as_echo_n "checking how to print strings... " >&6; }
6133 # Test print first, because it will be a builtin if present.
6134 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6135 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6136 ECHO='print -r --'
6137 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6138 ECHO='printf %s\n'
6139 else
6140 # Use this function as a fallback that always works.
6141 func_fallback_echo ()
6142 {
6143 eval 'cat <<_LTECHO_EOF
6144 $1
6145 _LTECHO_EOF'
6146 }
6147 ECHO='func_fallback_echo'
6148 fi
6149
6150 # func_echo_all arg...
6151 # Invoke $ECHO with all args, space-separated.
6152 func_echo_all ()
6153 {
6154 $ECHO ""
6155 }
6156
6157 case $ECHO in
6158 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6159 $as_echo "printf" >&6; } ;;
6160 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6161 $as_echo "print -r" >&6; } ;;
6162 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6163 $as_echo "cat" >&6; } ;;
6164 esac
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6180 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6181 if ${ac_cv_path_SED+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6185 for ac_i in 1 2 3 4 5 6 7; do
6186 ac_script="$ac_script$as_nl$ac_script"
6187 done
6188 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6189 { ac_script=; unset ac_script;}
6190 if test -z "$SED"; then
6191 ac_path_SED_found=false
6192 # Loop through the user's path and test for each of PROGNAME-LIST
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_prog in sed gsed; do
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6201 as_fn_executable_p "$ac_path_SED" || continue
6202 # Check for GNU ac_path_SED and select it if it is found.
6203 # Check for GNU $ac_path_SED
6204 case `"$ac_path_SED" --version 2>&1` in
6205 *GNU*)
6206 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6207 *)
6208 ac_count=0
6209 $as_echo_n 0123456789 >"conftest.in"
6210 while :
6211 do
6212 cat "conftest.in" "conftest.in" >"conftest.tmp"
6213 mv "conftest.tmp" "conftest.in"
6214 cp "conftest.in" "conftest.nl"
6215 $as_echo '' >> "conftest.nl"
6216 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6218 as_fn_arith $ac_count + 1 && ac_count=$as_val
6219 if test $ac_count -gt ${ac_path_SED_max-0}; then
6220 # Best one so far, save it but keep looking for a better one
6221 ac_cv_path_SED="$ac_path_SED"
6222 ac_path_SED_max=$ac_count
6223 fi
6224 # 10*(2^10) chars as input seems more than enough
6225 test $ac_count -gt 10 && break
6226 done
6227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6228 esac
6229
6230 $ac_path_SED_found && break 3
6231 done
6232 done
6233 done
6234 IFS=$as_save_IFS
6235 if test -z "$ac_cv_path_SED"; then
6236 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6237 fi
6238 else
6239 ac_cv_path_SED=$SED
6240 fi
6241
6242 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6244 $as_echo "$ac_cv_path_SED" >&6; }
6245 SED="$ac_cv_path_SED"
6246 rm -f conftest.sed
6247
6248 test -z "$SED" && SED=sed
6249 Xsed="$SED -e 1s/^X//"
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6262 $as_echo_n "checking for fgrep... " >&6; }
6263 if ${ac_cv_path_FGREP+:} false; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6267 then ac_cv_path_FGREP="$GREP -F"
6268 else
6269 if test -z "$FGREP"; then
6270 ac_path_FGREP_found=false
6271 # Loop through the user's path and test for each of PROGNAME-LIST
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6274 do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_prog in fgrep; do
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6280 as_fn_executable_p "$ac_path_FGREP" || continue
6281 # Check for GNU ac_path_FGREP and select it if it is found.
6282 # Check for GNU $ac_path_FGREP
6283 case `"$ac_path_FGREP" --version 2>&1` in
6284 *GNU*)
6285 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6286 *)
6287 ac_count=0
6288 $as_echo_n 0123456789 >"conftest.in"
6289 while :
6290 do
6291 cat "conftest.in" "conftest.in" >"conftest.tmp"
6292 mv "conftest.tmp" "conftest.in"
6293 cp "conftest.in" "conftest.nl"
6294 $as_echo 'FGREP' >> "conftest.nl"
6295 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6297 as_fn_arith $ac_count + 1 && ac_count=$as_val
6298 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6299 # Best one so far, save it but keep looking for a better one
6300 ac_cv_path_FGREP="$ac_path_FGREP"
6301 ac_path_FGREP_max=$ac_count
6302 fi
6303 # 10*(2^10) chars as input seems more than enough
6304 test $ac_count -gt 10 && break
6305 done
6306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6307 esac
6308
6309 $ac_path_FGREP_found && break 3
6310 done
6311 done
6312 done
6313 IFS=$as_save_IFS
6314 if test -z "$ac_cv_path_FGREP"; then
6315 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6316 fi
6317 else
6318 ac_cv_path_FGREP=$FGREP
6319 fi
6320
6321 fi
6322 fi
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6324 $as_echo "$ac_cv_path_FGREP" >&6; }
6325 FGREP="$ac_cv_path_FGREP"
6326
6327
6328 test -z "$GREP" && GREP=grep
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348 # Check whether --with-gnu-ld was given.
6349 if test "${with_gnu_ld+set}" = set; then :
6350 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6351 else
6352 with_gnu_ld=no
6353 fi
6354
6355 ac_prog=ld
6356 if test yes = "$GCC"; then
6357 # Check if gcc -print-prog-name=ld gives a path.
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6359 $as_echo_n "checking for ld used by $CC... " >&6; }
6360 case $host in
6361 *-*-mingw*)
6362 # gcc leaves a trailing carriage return, which upsets mingw
6363 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6364 *)
6365 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6366 esac
6367 case $ac_prog in
6368 # Accept absolute paths.
6369 [\\/]* | ?:[\\/]*)
6370 re_direlt='/[^/][^/]*/\.\./'
6371 # Canonicalize the pathname of ld
6372 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6373 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6374 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6375 done
6376 test -z "$LD" && LD=$ac_prog
6377 ;;
6378 "")
6379 # If it fails, then pretend we aren't using GCC.
6380 ac_prog=ld
6381 ;;
6382 *)
6383 # If it is relative, then search for the first ld in PATH.
6384 with_gnu_ld=unknown
6385 ;;
6386 esac
6387 elif test yes = "$with_gnu_ld"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6389 $as_echo_n "checking for GNU ld... " >&6; }
6390 else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6392 $as_echo_n "checking for non-GNU ld... " >&6; }
6393 fi
6394 if ${lt_cv_path_LD+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 if test -z "$LD"; then
6398 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6399 for ac_dir in $PATH; do
6400 IFS=$lt_save_ifs
6401 test -z "$ac_dir" && ac_dir=.
6402 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6403 lt_cv_path_LD=$ac_dir/$ac_prog
6404 # Check to see if the program is GNU ld. I'd rather use --version,
6405 # but apparently some variants of GNU ld only accept -v.
6406 # Break only if it was the GNU/non-GNU ld that we prefer.
6407 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6408 *GNU* | *'with BFD'*)
6409 test no != "$with_gnu_ld" && break
6410 ;;
6411 *)
6412 test yes != "$with_gnu_ld" && break
6413 ;;
6414 esac
6415 fi
6416 done
6417 IFS=$lt_save_ifs
6418 else
6419 lt_cv_path_LD=$LD # Let the user override the test with a path.
6420 fi
6421 fi
6422
6423 LD=$lt_cv_path_LD
6424 if test -n "$LD"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6426 $as_echo "$LD" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6430 fi
6431 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6433 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6434 if ${lt_cv_prog_gnu_ld+:} false; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6438 case `$LD -v 2>&1 </dev/null` in
6439 *GNU* | *'with BFD'*)
6440 lt_cv_prog_gnu_ld=yes
6441 ;;
6442 *)
6443 lt_cv_prog_gnu_ld=no
6444 ;;
6445 esac
6446 fi
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6448 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6449 with_gnu_ld=$lt_cv_prog_gnu_ld
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6460 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6461 if ${lt_cv_path_NM+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 if test -n "$NM"; then
6465 # Let the user override the test.
6466 lt_cv_path_NM=$NM
6467 else
6468 lt_nm_to_check=${ac_tool_prefix}nm
6469 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6470 lt_nm_to_check="$lt_nm_to_check nm"
6471 fi
6472 for lt_tmp_nm in $lt_nm_to_check; do
6473 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6474 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6475 IFS=$lt_save_ifs
6476 test -z "$ac_dir" && ac_dir=.
6477 tmp_nm=$ac_dir/$lt_tmp_nm
6478 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6479 # Check to see if the nm accepts a BSD-compat flag.
6480 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6481 # nm: unknown option "B" ignored
6482 # Tru64's nm complains that /dev/null is an invalid object file
6483 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6484 case $build_os in
6485 mingw*) lt_bad_file=conftest.nm/nofile ;;
6486 *) lt_bad_file=/dev/null ;;
6487 esac
6488 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6489 *$lt_bad_file* | *'Invalid file or object type'*)
6490 lt_cv_path_NM="$tmp_nm -B"
6491 break 2
6492 ;;
6493 *)
6494 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6495 */dev/null*)
6496 lt_cv_path_NM="$tmp_nm -p"
6497 break 2
6498 ;;
6499 *)
6500 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6501 continue # so that we can try to find one that supports BSD flags
6502 ;;
6503 esac
6504 ;;
6505 esac
6506 fi
6507 done
6508 IFS=$lt_save_ifs
6509 done
6510 : ${lt_cv_path_NM=no}
6511 fi
6512 fi
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6514 $as_echo "$lt_cv_path_NM" >&6; }
6515 if test no != "$lt_cv_path_NM"; then
6516 NM=$lt_cv_path_NM
6517 else
6518 # Didn't find any BSD compatible name lister, look for dumpbin.
6519 if test -n "$DUMPBIN"; then :
6520 # Let the user override the test.
6521 else
6522 if test -n "$ac_tool_prefix"; then
6523 for ac_prog in dumpbin "link -dump"
6524 do
6525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if ${ac_cv_prog_DUMPBIN+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 if test -n "$DUMPBIN"; then
6533 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 DUMPBIN=$ac_cv_prog_DUMPBIN
6553 if test -n "$DUMPBIN"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6555 $as_echo "$DUMPBIN" >&6; }
6556 else
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6559 fi
6560
6561
6562 test -n "$DUMPBIN" && break
6563 done
6564 fi
6565 if test -z "$DUMPBIN"; then
6566 ac_ct_DUMPBIN=$DUMPBIN
6567 for ac_prog in dumpbin "link -dump"
6568 do
6569 # Extract the first word of "$ac_prog", so it can be a program name with args.
6570 set dummy $ac_prog; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 if test -n "$ac_ct_DUMPBIN"; then
6577 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590 done
6591 done
6592 IFS=$as_save_IFS
6593
6594 fi
6595 fi
6596 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6597 if test -n "$ac_ct_DUMPBIN"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6599 $as_echo "$ac_ct_DUMPBIN" >&6; }
6600 else
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604
6605
6606 test -n "$ac_ct_DUMPBIN" && break
6607 done
6608
6609 if test "x$ac_ct_DUMPBIN" = x; then
6610 DUMPBIN=":"
6611 else
6612 case $cross_compiling:$ac_tool_warned in
6613 yes:)
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6617 esac
6618 DUMPBIN=$ac_ct_DUMPBIN
6619 fi
6620 fi
6621
6622 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6623 *COFF*)
6624 DUMPBIN="$DUMPBIN -symbols -headers"
6625 ;;
6626 *)
6627 DUMPBIN=:
6628 ;;
6629 esac
6630 fi
6631
6632 if test : != "$DUMPBIN"; then
6633 NM=$DUMPBIN
6634 fi
6635 fi
6636 test -z "$NM" && NM=nm
6637
6638
6639
6640
6641
6642
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6644 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6645 if ${lt_cv_nm_interface+:} false; then :
6646 $as_echo_n "(cached) " >&6
6647 else
6648 lt_cv_nm_interface="BSD nm"
6649 echo "int some_variable = 0;" > conftest.$ac_ext
6650 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6651 (eval "$ac_compile" 2>conftest.err)
6652 cat conftest.err >&5
6653 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6654 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6655 cat conftest.err >&5
6656 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6657 cat conftest.out >&5
6658 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6659 lt_cv_nm_interface="MS dumpbin"
6660 fi
6661 rm -f conftest*
6662 fi
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6664 $as_echo "$lt_cv_nm_interface" >&6; }
6665
6666 # find the maximum length of command line arguments
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6668 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6669 if ${lt_cv_sys_max_cmd_len+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 i=0
6673 teststring=ABCD
6674
6675 case $build_os in
6676 msdosdjgpp*)
6677 # On DJGPP, this test can blow up pretty badly due to problems in libc
6678 # (any single argument exceeding 2000 bytes causes a buffer overrun
6679 # during glob expansion). Even if it were fixed, the result of this
6680 # check would be larger than it should be.
6681 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6682 ;;
6683
6684 gnu*)
6685 # Under GNU Hurd, this test is not required because there is
6686 # no limit to the length of command line arguments.
6687 # Libtool will interpret -1 as no limit whatsoever
6688 lt_cv_sys_max_cmd_len=-1;
6689 ;;
6690
6691 cygwin* | mingw* | cegcc*)
6692 # On Win9x/ME, this test blows up -- it succeeds, but takes
6693 # about 5 minutes as the teststring grows exponentially.
6694 # Worse, since 9x/ME are not pre-emptively multitasking,
6695 # you end up with a "frozen" computer, even though with patience
6696 # the test eventually succeeds (with a max line length of 256k).
6697 # Instead, let's just punt: use the minimum linelength reported by
6698 # all of the supported platforms: 8192 (on NT/2K/XP).
6699 lt_cv_sys_max_cmd_len=8192;
6700 ;;
6701
6702 mint*)
6703 # On MiNT this can take a long time and run out of memory.
6704 lt_cv_sys_max_cmd_len=8192;
6705 ;;
6706
6707 amigaos*)
6708 # On AmigaOS with pdksh, this test takes hours, literally.
6709 # So we just punt and use a minimum line length of 8192.
6710 lt_cv_sys_max_cmd_len=8192;
6711 ;;
6712
6713 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6714 # This has been around since 386BSD, at least. Likely further.
6715 if test -x /sbin/sysctl; then
6716 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6717 elif test -x /usr/sbin/sysctl; then
6718 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6719 else
6720 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6721 fi
6722 # And add a safety zone
6723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6725 ;;
6726
6727 interix*)
6728 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6729 lt_cv_sys_max_cmd_len=196608
6730 ;;
6731
6732 os2*)
6733 # The test takes a long time on OS/2.
6734 lt_cv_sys_max_cmd_len=8192
6735 ;;
6736
6737 osf*)
6738 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6739 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6740 # nice to cause kernel panics so lets avoid the loop below.
6741 # First set a reasonable default.
6742 lt_cv_sys_max_cmd_len=16384
6743 #
6744 if test -x /sbin/sysconfig; then
6745 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6746 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6747 esac
6748 fi
6749 ;;
6750 sco3.2v5*)
6751 lt_cv_sys_max_cmd_len=102400
6752 ;;
6753 sysv5* | sco5v6* | sysv4.2uw2*)
6754 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6755 if test -n "$kargmax"; then
6756 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6757 else
6758 lt_cv_sys_max_cmd_len=32768
6759 fi
6760 ;;
6761 *)
6762 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6763 if test -n "$lt_cv_sys_max_cmd_len" && \
6764 test undefined != "$lt_cv_sys_max_cmd_len"; then
6765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6767 else
6768 # Make teststring a little bigger before we do anything with it.
6769 # a 1K string should be a reasonable start.
6770 for i in 1 2 3 4 5 6 7 8; do
6771 teststring=$teststring$teststring
6772 done
6773 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6774 # If test is not a shell built-in, we'll probably end up computing a
6775 # maximum length that is only half of the actual maximum length, but
6776 # we can't tell.
6777 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6778 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6779 test 17 != "$i" # 1/2 MB should be enough
6780 do
6781 i=`expr $i + 1`
6782 teststring=$teststring$teststring
6783 done
6784 # Only check the string length outside the loop.
6785 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6786 teststring=
6787 # Add a significant safety factor because C++ compilers can tack on
6788 # massive amounts of additional arguments before passing them to the
6789 # linker. It appears as though 1/2 is a usable value.
6790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6791 fi
6792 ;;
6793 esac
6794
6795 fi
6796
6797 if test -n "$lt_cv_sys_max_cmd_len"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6799 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6800 else
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6802 $as_echo "none" >&6; }
6803 fi
6804 max_cmd_len=$lt_cv_sys_max_cmd_len
6805
6806
6807
6808
6809
6810
6811 : ${CP="cp -f"}
6812 : ${MV="mv -f"}
6813 : ${RM="rm -f"}
6814
6815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6816 lt_unset=unset
6817 else
6818 lt_unset=false
6819 fi
6820
6821
6822
6823
6824
6825 # test EBCDIC or ASCII
6826 case `echo X|tr X '\101'` in
6827 A) # ASCII based system
6828 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6829 lt_SP2NL='tr \040 \012'
6830 lt_NL2SP='tr \015\012 \040\040'
6831 ;;
6832 *) # EBCDIC based system
6833 lt_SP2NL='tr \100 \n'
6834 lt_NL2SP='tr \r\n \100\100'
6835 ;;
6836 esac
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6847 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6848 if ${lt_cv_to_host_file_cmd+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 case $host in
6852 *-*-mingw* )
6853 case $build in
6854 *-*-mingw* ) # actually msys
6855 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6856 ;;
6857 *-*-cygwin* )
6858 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6859 ;;
6860 * ) # otherwise, assume *nix
6861 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6862 ;;
6863 esac
6864 ;;
6865 *-*-cygwin* )
6866 case $build in
6867 *-*-mingw* ) # actually msys
6868 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6869 ;;
6870 *-*-cygwin* )
6871 lt_cv_to_host_file_cmd=func_convert_file_noop
6872 ;;
6873 * ) # otherwise, assume *nix
6874 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6875 ;;
6876 esac
6877 ;;
6878 * ) # unhandled hosts (and "normal" native builds)
6879 lt_cv_to_host_file_cmd=func_convert_file_noop
6880 ;;
6881 esac
6882
6883 fi
6884
6885 to_host_file_cmd=$lt_cv_to_host_file_cmd
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6887 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6888
6889
6890
6891
6892
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6894 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6895 if ${lt_cv_to_tool_file_cmd+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 #assume ordinary cross tools, or native build.
6899 lt_cv_to_tool_file_cmd=func_convert_file_noop
6900 case $host in
6901 *-*-mingw* )
6902 case $build in
6903 *-*-mingw* ) # actually msys
6904 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6905 ;;
6906 esac
6907 ;;
6908 esac
6909
6910 fi
6911
6912 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6914 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6915
6916
6917
6918
6919
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6921 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6922 if ${lt_cv_ld_reload_flag+:} false; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 lt_cv_ld_reload_flag='-r'
6926 fi
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6928 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6929 reload_flag=$lt_cv_ld_reload_flag
6930 case $reload_flag in
6931 "" | " "*) ;;
6932 *) reload_flag=" $reload_flag" ;;
6933 esac
6934 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6935 case $host_os in
6936 cygwin* | mingw* | pw32* | cegcc*)
6937 if test yes != "$GCC"; then
6938 reload_cmds=false
6939 fi
6940 ;;
6941 darwin*)
6942 if test yes = "$GCC"; then
6943 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6944 else
6945 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6946 fi
6947 ;;
6948 esac
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958 if test -n "$ac_tool_prefix"; then
6959 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6960 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if ${ac_cv_prog_OBJDUMP+:} false; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 if test -n "$OBJDUMP"; then
6967 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6968 else
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6971 do
6972 IFS=$as_save_IFS
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6976 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 break 2
6979 fi
6980 done
6981 done
6982 IFS=$as_save_IFS
6983
6984 fi
6985 fi
6986 OBJDUMP=$ac_cv_prog_OBJDUMP
6987 if test -n "$OBJDUMP"; then
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6989 $as_echo "$OBJDUMP" >&6; }
6990 else
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6993 fi
6994
6995
6996 fi
6997 if test -z "$ac_cv_prog_OBJDUMP"; then
6998 ac_ct_OBJDUMP=$OBJDUMP
6999 # Extract the first word of "objdump", so it can be a program name with args.
7000 set dummy objdump; ac_word=$2
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002 $as_echo_n "checking for $ac_word... " >&6; }
7003 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7004 $as_echo_n "(cached) " >&6
7005 else
7006 if test -n "$ac_ct_OBJDUMP"; then
7007 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7008 else
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7011 do
7012 IFS=$as_save_IFS
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7016 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 break 2
7019 fi
7020 done
7021 done
7022 IFS=$as_save_IFS
7023
7024 fi
7025 fi
7026 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7027 if test -n "$ac_ct_OBJDUMP"; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7029 $as_echo "$ac_ct_OBJDUMP" >&6; }
7030 else
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032 $as_echo "no" >&6; }
7033 fi
7034
7035 if test "x$ac_ct_OBJDUMP" = x; then
7036 OBJDUMP="false"
7037 else
7038 case $cross_compiling:$ac_tool_warned in
7039 yes:)
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7042 ac_tool_warned=yes ;;
7043 esac
7044 OBJDUMP=$ac_ct_OBJDUMP
7045 fi
7046 else
7047 OBJDUMP="$ac_cv_prog_OBJDUMP"
7048 fi
7049
7050 test -z "$OBJDUMP" && OBJDUMP=objdump
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7061 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7062 if ${lt_cv_deplibs_check_method+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 lt_cv_file_magic_cmd='$MAGIC_CMD'
7066 lt_cv_file_magic_test_file=
7067 lt_cv_deplibs_check_method='unknown'
7068 # Need to set the preceding variable on all platforms that support
7069 # interlibrary dependencies.
7070 # 'none' -- dependencies not supported.
7071 # 'unknown' -- same as none, but documents that we really don't know.
7072 # 'pass_all' -- all dependencies passed with no checks.
7073 # 'test_compile' -- check by making test program.
7074 # 'file_magic [[regex]]' -- check by looking for files in library path
7075 # that responds to the $file_magic_cmd with a given extended regex.
7076 # If you have 'file' or equivalent on your system and you're not sure
7077 # whether 'pass_all' will *always* work, you probably want this one.
7078
7079 case $host_os in
7080 aix[4-9]*)
7081 lt_cv_deplibs_check_method=pass_all
7082 ;;
7083
7084 beos*)
7085 lt_cv_deplibs_check_method=pass_all
7086 ;;
7087
7088 bsdi[45]*)
7089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7090 lt_cv_file_magic_cmd='/usr/bin/file -L'
7091 lt_cv_file_magic_test_file=/shlib/libc.so
7092 ;;
7093
7094 cygwin*)
7095 # func_win32_libid is a shell function defined in ltmain.sh
7096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7097 lt_cv_file_magic_cmd='func_win32_libid'
7098 ;;
7099
7100 mingw* | pw32*)
7101 # Base MSYS/MinGW do not provide the 'file' command needed by
7102 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7103 # unless we find 'file', for example because we are cross-compiling.
7104 if ( file / ) >/dev/null 2>&1; then
7105 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7106 lt_cv_file_magic_cmd='func_win32_libid'
7107 else
7108 # Keep this pattern in sync with the one in func_win32_libid.
7109 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7110 lt_cv_file_magic_cmd='$OBJDUMP -f'
7111 fi
7112 ;;
7113
7114 cegcc*)
7115 # use the weaker test based on 'objdump'. See mingw*.
7116 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7117 lt_cv_file_magic_cmd='$OBJDUMP -f'
7118 ;;
7119
7120 darwin* | rhapsody*)
7121 lt_cv_deplibs_check_method=pass_all
7122 ;;
7123
7124 freebsd* | dragonfly*)
7125 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7126 case $host_cpu in
7127 i*86 )
7128 # Not sure whether the presence of OpenBSD here was a mistake.
7129 # Let's accept both of them until this is cleared up.
7130 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7131 lt_cv_file_magic_cmd=/usr/bin/file
7132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7133 ;;
7134 esac
7135 else
7136 lt_cv_deplibs_check_method=pass_all
7137 fi
7138 ;;
7139
7140 haiku*)
7141 lt_cv_deplibs_check_method=pass_all
7142 ;;
7143
7144 hpux10.20* | hpux11*)
7145 lt_cv_file_magic_cmd=/usr/bin/file
7146 case $host_cpu in
7147 ia64*)
7148 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7149 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7150 ;;
7151 hppa*64*)
7152 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]'
7153 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7154 ;;
7155 *)
7156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7157 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7158 ;;
7159 esac
7160 ;;
7161
7162 interix[3-9]*)
7163 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7165 ;;
7166
7167 irix5* | irix6* | nonstopux*)
7168 case $LD in
7169 *-32|*"-32 ") libmagic=32-bit;;
7170 *-n32|*"-n32 ") libmagic=N32;;
7171 *-64|*"-64 ") libmagic=64-bit;;
7172 *) libmagic=never-match;;
7173 esac
7174 lt_cv_deplibs_check_method=pass_all
7175 ;;
7176
7177 # This must be glibc/ELF.
7178 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7179 lt_cv_deplibs_check_method=pass_all
7180 ;;
7181
7182 netbsd*)
7183 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7185 else
7186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7187 fi
7188 ;;
7189
7190 newos6*)
7191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7192 lt_cv_file_magic_cmd=/usr/bin/file
7193 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7194 ;;
7195
7196 *nto* | *qnx*)
7197 lt_cv_deplibs_check_method=pass_all
7198 ;;
7199
7200 openbsd* | bitrig*)
7201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7203 else
7204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7205 fi
7206 ;;
7207
7208 osf3* | osf4* | osf5*)
7209 lt_cv_deplibs_check_method=pass_all
7210 ;;
7211
7212 rdos*)
7213 lt_cv_deplibs_check_method=pass_all
7214 ;;
7215
7216 solaris*)
7217 lt_cv_deplibs_check_method=pass_all
7218 ;;
7219
7220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7221 lt_cv_deplibs_check_method=pass_all
7222 ;;
7223
7224 sysv4 | sysv4.3*)
7225 case $host_vendor in
7226 motorola)
7227 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]'
7228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7229 ;;
7230 ncr)
7231 lt_cv_deplibs_check_method=pass_all
7232 ;;
7233 sequent)
7234 lt_cv_file_magic_cmd='/bin/file'
7235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7236 ;;
7237 sni)
7238 lt_cv_file_magic_cmd='/bin/file'
7239 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7240 lt_cv_file_magic_test_file=/lib/libc.so
7241 ;;
7242 siemens)
7243 lt_cv_deplibs_check_method=pass_all
7244 ;;
7245 pc)
7246 lt_cv_deplibs_check_method=pass_all
7247 ;;
7248 esac
7249 ;;
7250
7251 tpf*)
7252 lt_cv_deplibs_check_method=pass_all
7253 ;;
7254 os2*)
7255 lt_cv_deplibs_check_method=pass_all
7256 ;;
7257 esac
7258
7259 fi
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7261 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7262
7263 file_magic_glob=
7264 want_nocaseglob=no
7265 if test "$build" = "$host"; then
7266 case $host_os in
7267 mingw* | pw32*)
7268 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7269 want_nocaseglob=yes
7270 else
7271 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7272 fi
7273 ;;
7274 esac
7275 fi
7276
7277 file_magic_cmd=$lt_cv_file_magic_cmd
7278 deplibs_check_method=$lt_cv_deplibs_check_method
7279 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302 if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7304 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_DLLTOOL+:} false; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 if test -n "$DLLTOOL"; then
7311 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7323 fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328 fi
7329 fi
7330 DLLTOOL=$ac_cv_prog_DLLTOOL
7331 if test -n "$DLLTOOL"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7333 $as_echo "$DLLTOOL" >&6; }
7334 else
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337 fi
7338
7339
7340 fi
7341 if test -z "$ac_cv_prog_DLLTOOL"; then
7342 ac_ct_DLLTOOL=$DLLTOOL
7343 # Extract the first word of "dlltool", so it can be a program name with args.
7344 set dummy dlltool; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 if test -n "$ac_ct_DLLTOOL"; then
7351 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7355 do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364 done
7365 done
7366 IFS=$as_save_IFS
7367
7368 fi
7369 fi
7370 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7371 if test -n "$ac_ct_DLLTOOL"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7373 $as_echo "$ac_ct_DLLTOOL" >&6; }
7374 else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7377 fi
7378
7379 if test "x$ac_ct_DLLTOOL" = x; then
7380 DLLTOOL="false"
7381 else
7382 case $cross_compiling:$ac_tool_warned in
7383 yes:)
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7386 ac_tool_warned=yes ;;
7387 esac
7388 DLLTOOL=$ac_ct_DLLTOOL
7389 fi
7390 else
7391 DLLTOOL="$ac_cv_prog_DLLTOOL"
7392 fi
7393
7394 test -z "$DLLTOOL" && DLLTOOL=dlltool
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7406 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7407 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 lt_cv_sharedlib_from_linklib_cmd='unknown'
7411
7412 case $host_os in
7413 cygwin* | mingw* | pw32* | cegcc*)
7414 # two different shell functions defined in ltmain.sh;
7415 # decide which one to use based on capabilities of $DLLTOOL
7416 case `$DLLTOOL --help 2>&1` in
7417 *--identify-strict*)
7418 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7419 ;;
7420 *)
7421 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7422 ;;
7423 esac
7424 ;;
7425 *)
7426 # fallback: assume linklib IS sharedlib
7427 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7428 ;;
7429 esac
7430
7431 fi
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7433 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7434 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7435 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7436
7437
7438
7439
7440
7441
7442
7443 if test -n "$ac_tool_prefix"; then
7444 for ac_prog in ar
7445 do
7446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7447 set dummy $ac_tool_prefix$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_AR+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 if test -n "$AR"; then
7454 ac_cv_prog_AR="$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_AR="$ac_tool_prefix$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 AR=$ac_cv_prog_AR
7474 if test -n "$AR"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7476 $as_echo "$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 "$AR" && break
7484 done
7485 fi
7486 if test -z "$AR"; then
7487 ac_ct_AR=$AR
7488 for ac_prog in ar
7489 do
7490 # Extract the first word of "$ac_prog", so it can be a program name with args.
7491 set dummy $ac_prog; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 if test -n "$ac_ct_AR"; then
7498 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507 ac_cv_prog_ac_ct_AR="$ac_prog"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7510 fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7518 if test -n "$ac_ct_AR"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7520 $as_echo "$ac_ct_AR" >&6; }
7521 else
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7524 fi
7525
7526
7527 test -n "$ac_ct_AR" && break
7528 done
7529
7530 if test "x$ac_ct_AR" = x; then
7531 AR="false"
7532 else
7533 case $cross_compiling:$ac_tool_warned in
7534 yes:)
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537 ac_tool_warned=yes ;;
7538 esac
7539 AR=$ac_ct_AR
7540 fi
7541 fi
7542
7543 : ${AR=ar}
7544 : ${AR_FLAGS=cru}
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7557 $as_echo_n "checking for archiver @FILE support... " >&6; }
7558 if ${lt_cv_ar_at_file+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 lt_cv_ar_at_file=no
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7564
7565 int
7566 main ()
7567 {
7568
7569 ;
7570 return 0;
7571 }
7572 _ACEOF
7573 if ac_fn_c_try_compile "$LINENO"; then :
7574 echo conftest.$ac_objext > conftest.lst
7575 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7577 (eval $lt_ar_try) 2>&5
7578 ac_status=$?
7579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7580 test $ac_status = 0; }
7581 if test 0 -eq "$ac_status"; then
7582 # Ensure the archiver fails upon bogus file names.
7583 rm -f conftest.$ac_objext libconftest.a
7584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7585 (eval $lt_ar_try) 2>&5
7586 ac_status=$?
7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588 test $ac_status = 0; }
7589 if test 0 -ne "$ac_status"; then
7590 lt_cv_ar_at_file=@
7591 fi
7592 fi
7593 rm -f conftest.* libconftest.a
7594
7595 fi
7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597
7598 fi
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7600 $as_echo "$lt_cv_ar_at_file" >&6; }
7601
7602 if test no = "$lt_cv_ar_at_file"; then
7603 archiver_list_spec=
7604 else
7605 archiver_list_spec=$lt_cv_ar_at_file
7606 fi
7607
7608
7609
7610
7611
7612
7613
7614 if test -n "$ac_tool_prefix"; then
7615 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7616 set dummy ${ac_tool_prefix}strip; ac_word=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if ${ac_cv_prog_STRIP+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 if test -n "$STRIP"; then
7623 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7624 else
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7635 fi
7636 done
7637 done
7638 IFS=$as_save_IFS
7639
7640 fi
7641 fi
7642 STRIP=$ac_cv_prog_STRIP
7643 if test -n "$STRIP"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7645 $as_echo "$STRIP" >&6; }
7646 else
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7649 fi
7650
7651
7652 fi
7653 if test -z "$ac_cv_prog_STRIP"; then
7654 ac_ct_STRIP=$STRIP
7655 # Extract the first word of "strip", so it can be a program name with args.
7656 set dummy strip; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 if test -n "$ac_ct_STRIP"; then
7663 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7664 else
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668 IFS=$as_save_IFS
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672 ac_cv_prog_ac_ct_STRIP="strip"
7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 break 2
7675 fi
7676 done
7677 done
7678 IFS=$as_save_IFS
7679
7680 fi
7681 fi
7682 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7683 if test -n "$ac_ct_STRIP"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7685 $as_echo "$ac_ct_STRIP" >&6; }
7686 else
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7689 fi
7690
7691 if test "x$ac_ct_STRIP" = x; then
7692 STRIP=":"
7693 else
7694 case $cross_compiling:$ac_tool_warned in
7695 yes:)
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7698 ac_tool_warned=yes ;;
7699 esac
7700 STRIP=$ac_ct_STRIP
7701 fi
7702 else
7703 STRIP="$ac_cv_prog_STRIP"
7704 fi
7705
7706 test -z "$STRIP" && STRIP=:
7707
7708
7709
7710
7711
7712
7713 if test -n "$ac_tool_prefix"; then
7714 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7715 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if ${ac_cv_prog_RANLIB+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 if test -n "$RANLIB"; then
7722 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7723 else
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 break 2
7734 fi
7735 done
7736 done
7737 IFS=$as_save_IFS
7738
7739 fi
7740 fi
7741 RANLIB=$ac_cv_prog_RANLIB
7742 if test -n "$RANLIB"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7744 $as_echo "$RANLIB" >&6; }
7745 else
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7748 fi
7749
7750
7751 fi
7752 if test -z "$ac_cv_prog_RANLIB"; then
7753 ac_ct_RANLIB=$RANLIB
7754 # Extract the first word of "ranlib", so it can be a program name with args.
7755 set dummy ranlib; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 if test -n "$ac_ct_RANLIB"; then
7762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7766 do
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771 ac_cv_prog_ac_ct_RANLIB="ranlib"
7772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 break 2
7774 fi
7775 done
7776 done
7777 IFS=$as_save_IFS
7778
7779 fi
7780 fi
7781 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7782 if test -n "$ac_ct_RANLIB"; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7784 $as_echo "$ac_ct_RANLIB" >&6; }
7785 else
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7788 fi
7789
7790 if test "x$ac_ct_RANLIB" = x; then
7791 RANLIB=":"
7792 else
7793 case $cross_compiling:$ac_tool_warned in
7794 yes:)
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7797 ac_tool_warned=yes ;;
7798 esac
7799 RANLIB=$ac_ct_RANLIB
7800 fi
7801 else
7802 RANLIB="$ac_cv_prog_RANLIB"
7803 fi
7804
7805 test -z "$RANLIB" && RANLIB=:
7806
7807
7808
7809
7810
7811
7812 # Determine commands to create old-style static archives.
7813 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7814 old_postinstall_cmds='chmod 644 $oldlib'
7815 old_postuninstall_cmds=
7816
7817 if test -n "$RANLIB"; then
7818 case $host_os in
7819 bitrig* | openbsd*)
7820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7821 ;;
7822 *)
7823 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7824 ;;
7825 esac
7826 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7827 fi
7828
7829 case $host_os in
7830 darwin*)
7831 lock_old_archive_extraction=yes ;;
7832 *)
7833 lock_old_archive_extraction=no ;;
7834 esac
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874 # If no C compiler was specified, use CC.
7875 LTCC=${LTCC-"$CC"}
7876
7877 # If no C compiler flags were specified, use CFLAGS.
7878 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7879
7880 # Allow CC to be a program name with arguments.
7881 compiler=$CC
7882
7883
7884 # Check for command to grab the raw symbol name followed by C symbol from nm.
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7886 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7887 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890
7891 # These are sane defaults that work on at least a few old systems.
7892 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7893
7894 # Character class describing NM global symbol codes.
7895 symcode='[BCDEGRST]'
7896
7897 # Regexp to match symbols that can be accessed directly from C.
7898 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7899
7900 # Define system-specific variables.
7901 case $host_os in
7902 aix*)
7903 symcode='[BCDT]'
7904 ;;
7905 cygwin* | mingw* | pw32* | cegcc*)
7906 symcode='[ABCDGISTW]'
7907 ;;
7908 hpux*)
7909 if test ia64 = "$host_cpu"; then
7910 symcode='[ABCDEGRST]'
7911 fi
7912 ;;
7913 irix* | nonstopux*)
7914 symcode='[BCDEGRST]'
7915 ;;
7916 osf*)
7917 symcode='[BCDEGQRST]'
7918 ;;
7919 solaris*)
7920 symcode='[BDRT]'
7921 ;;
7922 sco3.2v5*)
7923 symcode='[DT]'
7924 ;;
7925 sysv4.2uw2*)
7926 symcode='[DT]'
7927 ;;
7928 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7929 symcode='[ABDT]'
7930 ;;
7931 sysv4)
7932 symcode='[DFNSTU]'
7933 ;;
7934 esac
7935
7936 # If we're using GNU nm, then use its standard symbol codes.
7937 case `$NM -V 2>&1` in
7938 *GNU* | *'with BFD'*)
7939 symcode='[ABCDGIRSTW]' ;;
7940 esac
7941
7942 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7943 # Gets list of data symbols to import.
7944 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7945 # Adjust the below global symbol transforms to fixup imported variables.
7946 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7947 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7948 lt_c_name_lib_hook="\
7949 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7950 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7951 else
7952 # Disable hooks by default.
7953 lt_cv_sys_global_symbol_to_import=
7954 lt_cdecl_hook=
7955 lt_c_name_hook=
7956 lt_c_name_lib_hook=
7957 fi
7958
7959 # Transform an extracted symbol line into a proper C declaration.
7960 # Some systems (esp. on ia64) link data and code symbols differently,
7961 # so use this general approach.
7962 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7963 $lt_cdecl_hook\
7964 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7965 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7966
7967 # Transform an extracted symbol line into symbol name and symbol address
7968 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7969 $lt_c_name_hook\
7970 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7971 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7972
7973 # Transform an extracted symbol line into symbol name with lib prefix and
7974 # symbol address.
7975 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7976 $lt_c_name_lib_hook\
7977 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7978 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7979 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7980
7981 # Handle CRLF in mingw tool chain
7982 opt_cr=
7983 case $build_os in
7984 mingw*)
7985 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7986 ;;
7987 esac
7988
7989 # Try without a prefix underscore, then with it.
7990 for ac_symprfx in "" "_"; do
7991
7992 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7993 symxfrm="\\1 $ac_symprfx\\2 \\2"
7994
7995 # Write the raw and C identifiers.
7996 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7997 # Fake it for dumpbin and say T for any non-static function,
7998 # D for any global variable and I for any imported variable.
7999 # Also find C++ and __fastcall symbols from MSVC++,
8000 # which start with @ or ?.
8001 lt_cv_sys_global_symbol_pipe="$AWK '"\
8002 " {last_section=section; section=\$ 3};"\
8003 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8004 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8005 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8006 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8007 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8008 " \$ 0!~/External *\|/{next};"\
8009 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8010 " {if(hide[section]) next};"\
8011 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8012 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8013 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8014 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8015 " ' prfx=^$ac_symprfx"
8016 else
8017 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8018 fi
8019 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8020
8021 # Check to see that the pipe works correctly.
8022 pipe_works=no
8023
8024 rm -f conftest*
8025 cat > conftest.$ac_ext <<_LT_EOF
8026 #ifdef __cplusplus
8027 extern "C" {
8028 #endif
8029 char nm_test_var;
8030 void nm_test_func(void);
8031 void nm_test_func(void){}
8032 #ifdef __cplusplus
8033 }
8034 #endif
8035 int main(){nm_test_var='a';nm_test_func();return(0);}
8036 _LT_EOF
8037
8038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8039 (eval $ac_compile) 2>&5
8040 ac_status=$?
8041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8042 test $ac_status = 0; }; then
8043 # Now try to grab the symbols.
8044 nlist=conftest.nm
8045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8046 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8047 ac_status=$?
8048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8049 test $ac_status = 0; } && test -s "$nlist"; then
8050 # Try sorting and uniquifying the output.
8051 if sort "$nlist" | uniq > "$nlist"T; then
8052 mv -f "$nlist"T "$nlist"
8053 else
8054 rm -f "$nlist"T
8055 fi
8056
8057 # Make sure that we snagged all the symbols we need.
8058 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8059 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8060 cat <<_LT_EOF > conftest.$ac_ext
8061 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8062 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8063 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8064 relocations are performed -- see ld's documentation on pseudo-relocs. */
8065 # define LT_DLSYM_CONST
8066 #elif defined __osf__
8067 /* This system does not cope well with relocations in const data. */
8068 # define LT_DLSYM_CONST
8069 #else
8070 # define LT_DLSYM_CONST const
8071 #endif
8072
8073 #ifdef __cplusplus
8074 extern "C" {
8075 #endif
8076
8077 _LT_EOF
8078 # Now generate the symbol file.
8079 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8080
8081 cat <<_LT_EOF >> conftest.$ac_ext
8082
8083 /* The mapping between symbol names and symbols. */
8084 LT_DLSYM_CONST struct {
8085 const char *name;
8086 void *address;
8087 }
8088 lt__PROGRAM__LTX_preloaded_symbols[] =
8089 {
8090 { "@PROGRAM@", (void *) 0 },
8091 _LT_EOF
8092 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8093 cat <<\_LT_EOF >> conftest.$ac_ext
8094 {0, (void *) 0}
8095 };
8096
8097 /* This works around a problem in FreeBSD linker */
8098 #ifdef FREEBSD_WORKAROUND
8099 static const void *lt_preloaded_setup() {
8100 return lt__PROGRAM__LTX_preloaded_symbols;
8101 }
8102 #endif
8103
8104 #ifdef __cplusplus
8105 }
8106 #endif
8107 _LT_EOF
8108 # Now try linking the two files.
8109 mv conftest.$ac_objext conftstm.$ac_objext
8110 lt_globsym_save_LIBS=$LIBS
8111 lt_globsym_save_CFLAGS=$CFLAGS
8112 LIBS=conftstm.$ac_objext
8113 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8115 (eval $ac_link) 2>&5
8116 ac_status=$?
8117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8118 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8119 pipe_works=yes
8120 fi
8121 LIBS=$lt_globsym_save_LIBS
8122 CFLAGS=$lt_globsym_save_CFLAGS
8123 else
8124 echo "cannot find nm_test_func in $nlist" >&5
8125 fi
8126 else
8127 echo "cannot find nm_test_var in $nlist" >&5
8128 fi
8129 else
8130 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8131 fi
8132 else
8133 echo "$progname: failed program was:" >&5
8134 cat conftest.$ac_ext >&5
8135 fi
8136 rm -rf conftest* conftst*
8137
8138 # Do not use the global_symbol_pipe unless it works.
8139 if test yes = "$pipe_works"; then
8140 break
8141 else
8142 lt_cv_sys_global_symbol_pipe=
8143 fi
8144 done
8145
8146 fi
8147
8148 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8149 lt_cv_sys_global_symbol_to_cdecl=
8150 fi
8151 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8153 $as_echo "failed" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8156 $as_echo "ok" >&6; }
8157 fi
8158
8159 # Response file support.
8160 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8161 nm_file_list_spec='@'
8162 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8163 nm_file_list_spec='@'
8164 fi
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8203 $as_echo_n "checking for sysroot... " >&6; }
8204
8205 # Check whether --with-sysroot was given.
8206 if test "${with_sysroot+set}" = set; then :
8207 withval=$with_sysroot;
8208 else
8209 with_sysroot=no
8210 fi
8211
8212
8213 lt_sysroot=
8214 case $with_sysroot in #(
8215 yes)
8216 if test yes = "$GCC"; then
8217 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8218 fi
8219 ;; #(
8220 /*)
8221 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8222 ;; #(
8223 no|'')
8224 ;; #(
8225 *)
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8227 $as_echo "$with_sysroot" >&6; }
8228 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8229 ;;
8230 esac
8231
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8233 $as_echo "${lt_sysroot:-no}" >&6; }
8234
8235
8236
8237
8238
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8240 $as_echo_n "checking for a working dd... " >&6; }
8241 if ${ac_cv_path_lt_DD+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 printf 0123456789abcdef0123456789abcdef >conftest.i
8245 cat conftest.i conftest.i >conftest2.i
8246 : ${lt_DD:=$DD}
8247 if test -z "$lt_DD"; then
8248 ac_path_lt_DD_found=false
8249 # Loop through the user's path and test for each of PROGNAME-LIST
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253 IFS=$as_save_IFS
8254 test -z "$as_dir" && as_dir=.
8255 for ac_prog in dd; do
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8258 as_fn_executable_p "$ac_path_lt_DD" || continue
8259 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8260 cmp -s conftest.i conftest.out \
8261 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8262 fi
8263 $ac_path_lt_DD_found && break 3
8264 done
8265 done
8266 done
8267 IFS=$as_save_IFS
8268 if test -z "$ac_cv_path_lt_DD"; then
8269 :
8270 fi
8271 else
8272 ac_cv_path_lt_DD=$lt_DD
8273 fi
8274
8275 rm -f conftest.i conftest2.i conftest.out
8276 fi
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8278 $as_echo "$ac_cv_path_lt_DD" >&6; }
8279
8280
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8282 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8283 if ${lt_cv_truncate_bin+:} false; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 printf 0123456789abcdef0123456789abcdef >conftest.i
8287 cat conftest.i conftest.i >conftest2.i
8288 lt_cv_truncate_bin=
8289 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8290 cmp -s conftest.i conftest.out \
8291 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8292 fi
8293 rm -f conftest.i conftest2.i conftest.out
8294 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8297 $as_echo "$lt_cv_truncate_bin" >&6; }
8298
8299
8300
8301
8302
8303
8304
8305 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8306 func_cc_basename ()
8307 {
8308 for cc_temp in $*""; do
8309 case $cc_temp in
8310 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8311 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8312 \-*) ;;
8313 *) break;;
8314 esac
8315 done
8316 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8317 }
8318
8319 # Check whether --enable-libtool-lock was given.
8320 if test "${enable_libtool_lock+set}" = set; then :
8321 enableval=$enable_libtool_lock;
8322 fi
8323
8324 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8325
8326 # Some flags need to be propagated to the compiler or linker for good
8327 # libtool support.
8328 case $host in
8329 ia64-*-hpux*)
8330 # Find out what ABI is being produced by ac_compile, and set mode
8331 # options accordingly.
8332 echo 'int i;' > conftest.$ac_ext
8333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8334 (eval $ac_compile) 2>&5
8335 ac_status=$?
8336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8337 test $ac_status = 0; }; then
8338 case `/usr/bin/file conftest.$ac_objext` in
8339 *ELF-32*)
8340 HPUX_IA64_MODE=32
8341 ;;
8342 *ELF-64*)
8343 HPUX_IA64_MODE=64
8344 ;;
8345 esac
8346 fi
8347 rm -rf conftest*
8348 ;;
8349 *-*-irix6*)
8350 # Find out what ABI is being produced by ac_compile, and set linker
8351 # options accordingly.
8352 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8354 (eval $ac_compile) 2>&5
8355 ac_status=$?
8356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8357 test $ac_status = 0; }; then
8358 if test yes = "$lt_cv_prog_gnu_ld"; then
8359 case `/usr/bin/file conftest.$ac_objext` in
8360 *32-bit*)
8361 LD="${LD-ld} -melf32bsmip"
8362 ;;
8363 *N32*)
8364 LD="${LD-ld} -melf32bmipn32"
8365 ;;
8366 *64-bit*)
8367 LD="${LD-ld} -melf64bmip"
8368 ;;
8369 esac
8370 else
8371 case `/usr/bin/file conftest.$ac_objext` in
8372 *32-bit*)
8373 LD="${LD-ld} -32"
8374 ;;
8375 *N32*)
8376 LD="${LD-ld} -n32"
8377 ;;
8378 *64-bit*)
8379 LD="${LD-ld} -64"
8380 ;;
8381 esac
8382 fi
8383 fi
8384 rm -rf conftest*
8385 ;;
8386
8387 mips64*-*linux*)
8388 # Find out what ABI is being produced by ac_compile, and set linker
8389 # options accordingly.
8390 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8392 (eval $ac_compile) 2>&5
8393 ac_status=$?
8394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8395 test $ac_status = 0; }; then
8396 emul=elf
8397 case `/usr/bin/file conftest.$ac_objext` in
8398 *32-bit*)
8399 emul="${emul}32"
8400 ;;
8401 *64-bit*)
8402 emul="${emul}64"
8403 ;;
8404 esac
8405 case `/usr/bin/file conftest.$ac_objext` in
8406 *MSB*)
8407 emul="${emul}btsmip"
8408 ;;
8409 *LSB*)
8410 emul="${emul}ltsmip"
8411 ;;
8412 esac
8413 case `/usr/bin/file conftest.$ac_objext` in
8414 *N32*)
8415 emul="${emul}n32"
8416 ;;
8417 esac
8418 LD="${LD-ld} -m $emul"
8419 fi
8420 rm -rf conftest*
8421 ;;
8422
8423 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8424 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8425 # Find out what ABI is being produced by ac_compile, and set linker
8426 # options accordingly. Note that the listed cases only cover the
8427 # situations where additional linker options are needed (such as when
8428 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8429 # vice versa); the common cases where no linker options are needed do
8430 # not appear in the list.
8431 echo 'int i;' > conftest.$ac_ext
8432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8433 (eval $ac_compile) 2>&5
8434 ac_status=$?
8435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8436 test $ac_status = 0; }; then
8437 case `/usr/bin/file conftest.o` in
8438 *32-bit*)
8439 case $host in
8440 x86_64-*kfreebsd*-gnu)
8441 LD="${LD-ld} -m elf_i386_fbsd"
8442 ;;
8443 x86_64-*linux*)
8444 case `/usr/bin/file conftest.o` in
8445 *x86-64*)
8446 LD="${LD-ld} -m elf32_x86_64"
8447 ;;
8448 *)
8449 LD="${LD-ld} -m elf_i386"
8450 ;;
8451 esac
8452 ;;
8453 powerpc64le-*linux*)
8454 LD="${LD-ld} -m elf32lppclinux"
8455 ;;
8456 powerpc64-*linux*)
8457 LD="${LD-ld} -m elf32ppclinux"
8458 ;;
8459 s390x-*linux*)
8460 LD="${LD-ld} -m elf_s390"
8461 ;;
8462 sparc64-*linux*)
8463 LD="${LD-ld} -m elf32_sparc"
8464 ;;
8465 esac
8466 ;;
8467 *64-bit*)
8468 case $host in
8469 x86_64-*kfreebsd*-gnu)
8470 LD="${LD-ld} -m elf_x86_64_fbsd"
8471 ;;
8472 x86_64-*linux*)
8473 LD="${LD-ld} -m elf_x86_64"
8474 ;;
8475 powerpcle-*linux*)
8476 LD="${LD-ld} -m elf64lppc"
8477 ;;
8478 powerpc-*linux*)
8479 LD="${LD-ld} -m elf64ppc"
8480 ;;
8481 s390*-*linux*|s390*-*tpf*)
8482 LD="${LD-ld} -m elf64_s390"
8483 ;;
8484 sparc*-*linux*)
8485 LD="${LD-ld} -m elf64_sparc"
8486 ;;
8487 esac
8488 ;;
8489 esac
8490 fi
8491 rm -rf conftest*
8492 ;;
8493
8494 *-*-sco3.2v5*)
8495 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8496 SAVE_CFLAGS=$CFLAGS
8497 CFLAGS="$CFLAGS -belf"
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8499 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8500 if ${lt_cv_cc_needs_belf+:} false; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 ac_ext=c
8504 ac_cpp='$CPP $CPPFLAGS'
8505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8508
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511
8512 int
8513 main ()
8514 {
8515
8516 ;
8517 return 0;
8518 }
8519 _ACEOF
8520 if ac_fn_c_try_link "$LINENO"; then :
8521 lt_cv_cc_needs_belf=yes
8522 else
8523 lt_cv_cc_needs_belf=no
8524 fi
8525 rm -f core conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext conftest.$ac_ext
8527 ac_ext=c
8528 ac_cpp='$CPP $CPPFLAGS'
8529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8532
8533 fi
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8535 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8536 if test yes != "$lt_cv_cc_needs_belf"; then
8537 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8538 CFLAGS=$SAVE_CFLAGS
8539 fi
8540 ;;
8541 *-*solaris*)
8542 # Find out what ABI is being produced by ac_compile, and set linker
8543 # options accordingly.
8544 echo 'int i;' > conftest.$ac_ext
8545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8546 (eval $ac_compile) 2>&5
8547 ac_status=$?
8548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8549 test $ac_status = 0; }; then
8550 case `/usr/bin/file conftest.o` in
8551 *64-bit*)
8552 case $lt_cv_prog_gnu_ld in
8553 yes*)
8554 case $host in
8555 i?86-*-solaris*|x86_64-*-solaris*)
8556 LD="${LD-ld} -m elf_x86_64"
8557 ;;
8558 sparc*-*-solaris*)
8559 LD="${LD-ld} -m elf64_sparc"
8560 ;;
8561 esac
8562 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8563 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8564 LD=${LD-ld}_sol2
8565 fi
8566 ;;
8567 *)
8568 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8569 LD="${LD-ld} -64"
8570 fi
8571 ;;
8572 esac
8573 ;;
8574 esac
8575 fi
8576 rm -rf conftest*
8577 ;;
8578 esac
8579
8580 need_locks=$enable_libtool_lock
8581
8582 if test -n "$ac_tool_prefix"; then
8583 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8584 set dummy ${ac_tool_prefix}mt; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 if test -n "$MANIFEST_TOOL"; then
8591 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8595 do
8596 IFS=$as_save_IFS
8597 test -z "$as_dir" && as_dir=.
8598 for ac_exec_ext in '' $ac_executable_extensions; do
8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8600 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 break 2
8603 fi
8604 done
8605 done
8606 IFS=$as_save_IFS
8607
8608 fi
8609 fi
8610 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8611 if test -n "$MANIFEST_TOOL"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8613 $as_echo "$MANIFEST_TOOL" >&6; }
8614 else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8617 fi
8618
8619
8620 fi
8621 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8622 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8623 # Extract the first word of "mt", so it can be a program name with args.
8624 set dummy mt; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 if test -n "$ac_ct_MANIFEST_TOOL"; then
8631 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8635 do
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8643 fi
8644 done
8645 done
8646 IFS=$as_save_IFS
8647
8648 fi
8649 fi
8650 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8651 if test -n "$ac_ct_MANIFEST_TOOL"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8653 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8654 else
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8657 fi
8658
8659 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8660 MANIFEST_TOOL=":"
8661 else
8662 case $cross_compiling:$ac_tool_warned in
8663 yes:)
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8666 ac_tool_warned=yes ;;
8667 esac
8668 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8669 fi
8670 else
8671 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8672 fi
8673
8674 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8676 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8677 if ${lt_cv_path_mainfest_tool+:} false; then :
8678 $as_echo_n "(cached) " >&6
8679 else
8680 lt_cv_path_mainfest_tool=no
8681 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8682 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8683 cat conftest.err >&5
8684 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8685 lt_cv_path_mainfest_tool=yes
8686 fi
8687 rm -f conftest*
8688 fi
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8690 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8691 if test yes != "$lt_cv_path_mainfest_tool"; then
8692 MANIFEST_TOOL=:
8693 fi
8694
8695
8696
8697
8698
8699
8700 case $host_os in
8701 rhapsody* | darwin*)
8702 if test -n "$ac_tool_prefix"; then
8703 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8704 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8706 $as_echo_n "checking for $ac_word... " >&6; }
8707 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8708 $as_echo_n "(cached) " >&6
8709 else
8710 if test -n "$DSYMUTIL"; then
8711 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8712 else
8713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 for as_dir in $PATH
8715 do
8716 IFS=$as_save_IFS
8717 test -z "$as_dir" && as_dir=.
8718 for ac_exec_ext in '' $ac_executable_extensions; do
8719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8720 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722 break 2
8723 fi
8724 done
8725 done
8726 IFS=$as_save_IFS
8727
8728 fi
8729 fi
8730 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8731 if test -n "$DSYMUTIL"; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8733 $as_echo "$DSYMUTIL" >&6; }
8734 else
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 $as_echo "no" >&6; }
8737 fi
8738
8739
8740 fi
8741 if test -z "$ac_cv_prog_DSYMUTIL"; then
8742 ac_ct_DSYMUTIL=$DSYMUTIL
8743 # Extract the first word of "dsymutil", so it can be a program name with args.
8744 set dummy dsymutil; ac_word=$2
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8746 $as_echo_n "checking for $ac_word... " >&6; }
8747 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 if test -n "$ac_ct_DSYMUTIL"; then
8751 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8752 else
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 for as_dir in $PATH
8755 do
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8760 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8763 fi
8764 done
8765 done
8766 IFS=$as_save_IFS
8767
8768 fi
8769 fi
8770 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8771 if test -n "$ac_ct_DSYMUTIL"; then
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8773 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8774 else
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8777 fi
8778
8779 if test "x$ac_ct_DSYMUTIL" = x; then
8780 DSYMUTIL=":"
8781 else
8782 case $cross_compiling:$ac_tool_warned in
8783 yes:)
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8786 ac_tool_warned=yes ;;
8787 esac
8788 DSYMUTIL=$ac_ct_DSYMUTIL
8789 fi
8790 else
8791 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8792 fi
8793
8794 if test -n "$ac_tool_prefix"; then
8795 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8796 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798 $as_echo_n "checking for $ac_word... " >&6; }
8799 if ${ac_cv_prog_NMEDIT+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 if test -n "$NMEDIT"; then
8803 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8804 else
8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 for as_dir in $PATH
8807 do
8808 IFS=$as_save_IFS
8809 test -z "$as_dir" && as_dir=.
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8812 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 break 2
8815 fi
8816 done
8817 done
8818 IFS=$as_save_IFS
8819
8820 fi
8821 fi
8822 NMEDIT=$ac_cv_prog_NMEDIT
8823 if test -n "$NMEDIT"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8825 $as_echo "$NMEDIT" >&6; }
8826 else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8829 fi
8830
8831
8832 fi
8833 if test -z "$ac_cv_prog_NMEDIT"; then
8834 ac_ct_NMEDIT=$NMEDIT
8835 # Extract the first word of "nmedit", so it can be a program name with args.
8836 set dummy nmedit; ac_word=$2
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838 $as_echo_n "checking for $ac_word... " >&6; }
8839 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 if test -n "$ac_ct_NMEDIT"; then
8843 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8844 else
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 for as_dir in $PATH
8847 do
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8852 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 break 2
8855 fi
8856 done
8857 done
8858 IFS=$as_save_IFS
8859
8860 fi
8861 fi
8862 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8863 if test -n "$ac_ct_NMEDIT"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8865 $as_echo "$ac_ct_NMEDIT" >&6; }
8866 else
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8869 fi
8870
8871 if test "x$ac_ct_NMEDIT" = x; then
8872 NMEDIT=":"
8873 else
8874 case $cross_compiling:$ac_tool_warned in
8875 yes:)
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8878 ac_tool_warned=yes ;;
8879 esac
8880 NMEDIT=$ac_ct_NMEDIT
8881 fi
8882 else
8883 NMEDIT="$ac_cv_prog_NMEDIT"
8884 fi
8885
8886 if test -n "$ac_tool_prefix"; then
8887 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8888 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890 $as_echo_n "checking for $ac_word... " >&6; }
8891 if ${ac_cv_prog_LIPO+:} false; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 if test -n "$LIPO"; then
8895 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8896 else
8897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898 for as_dir in $PATH
8899 do
8900 IFS=$as_save_IFS
8901 test -z "$as_dir" && as_dir=.
8902 for ac_exec_ext in '' $ac_executable_extensions; do
8903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8904 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8906 break 2
8907 fi
8908 done
8909 done
8910 IFS=$as_save_IFS
8911
8912 fi
8913 fi
8914 LIPO=$ac_cv_prog_LIPO
8915 if test -n "$LIPO"; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8917 $as_echo "$LIPO" >&6; }
8918 else
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 $as_echo "no" >&6; }
8921 fi
8922
8923
8924 fi
8925 if test -z "$ac_cv_prog_LIPO"; then
8926 ac_ct_LIPO=$LIPO
8927 # Extract the first word of "lipo", so it can be a program name with args.
8928 set dummy lipo; ac_word=$2
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930 $as_echo_n "checking for $ac_word... " >&6; }
8931 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 if test -n "$ac_ct_LIPO"; then
8935 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8936 else
8937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 for as_dir in $PATH
8939 do
8940 IFS=$as_save_IFS
8941 test -z "$as_dir" && as_dir=.
8942 for ac_exec_ext in '' $ac_executable_extensions; do
8943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8944 ac_cv_prog_ac_ct_LIPO="lipo"
8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8946 break 2
8947 fi
8948 done
8949 done
8950 IFS=$as_save_IFS
8951
8952 fi
8953 fi
8954 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8955 if test -n "$ac_ct_LIPO"; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8957 $as_echo "$ac_ct_LIPO" >&6; }
8958 else
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }
8961 fi
8962
8963 if test "x$ac_ct_LIPO" = x; then
8964 LIPO=":"
8965 else
8966 case $cross_compiling:$ac_tool_warned in
8967 yes:)
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8970 ac_tool_warned=yes ;;
8971 esac
8972 LIPO=$ac_ct_LIPO
8973 fi
8974 else
8975 LIPO="$ac_cv_prog_LIPO"
8976 fi
8977
8978 if test -n "$ac_tool_prefix"; then
8979 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8980 set dummy ${ac_tool_prefix}otool; ac_word=$2
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982 $as_echo_n "checking for $ac_word... " >&6; }
8983 if ${ac_cv_prog_OTOOL+:} false; then :
8984 $as_echo_n "(cached) " >&6
8985 else
8986 if test -n "$OTOOL"; then
8987 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8988 else
8989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 for as_dir in $PATH
8991 do
8992 IFS=$as_save_IFS
8993 test -z "$as_dir" && as_dir=.
8994 for ac_exec_ext in '' $ac_executable_extensions; do
8995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8996 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8998 break 2
8999 fi
9000 done
9001 done
9002 IFS=$as_save_IFS
9003
9004 fi
9005 fi
9006 OTOOL=$ac_cv_prog_OTOOL
9007 if test -n "$OTOOL"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9009 $as_echo "$OTOOL" >&6; }
9010 else
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9013 fi
9014
9015
9016 fi
9017 if test -z "$ac_cv_prog_OTOOL"; then
9018 ac_ct_OTOOL=$OTOOL
9019 # Extract the first word of "otool", so it can be a program name with args.
9020 set dummy otool; ac_word=$2
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022 $as_echo_n "checking for $ac_word... " >&6; }
9023 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 if test -n "$ac_ct_OTOOL"; then
9027 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9028 else
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 for as_dir in $PATH
9031 do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9036 ac_cv_prog_ac_ct_OTOOL="otool"
9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9039 fi
9040 done
9041 done
9042 IFS=$as_save_IFS
9043
9044 fi
9045 fi
9046 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9047 if test -n "$ac_ct_OTOOL"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9049 $as_echo "$ac_ct_OTOOL" >&6; }
9050 else
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9053 fi
9054
9055 if test "x$ac_ct_OTOOL" = x; then
9056 OTOOL=":"
9057 else
9058 case $cross_compiling:$ac_tool_warned in
9059 yes:)
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9062 ac_tool_warned=yes ;;
9063 esac
9064 OTOOL=$ac_ct_OTOOL
9065 fi
9066 else
9067 OTOOL="$ac_cv_prog_OTOOL"
9068 fi
9069
9070 if test -n "$ac_tool_prefix"; then
9071 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9072 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074 $as_echo_n "checking for $ac_word... " >&6; }
9075 if ${ac_cv_prog_OTOOL64+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 if test -n "$OTOOL64"; then
9079 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9080 else
9081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 for as_dir in $PATH
9083 do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9088 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9091 fi
9092 done
9093 done
9094 IFS=$as_save_IFS
9095
9096 fi
9097 fi
9098 OTOOL64=$ac_cv_prog_OTOOL64
9099 if test -n "$OTOOL64"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9101 $as_echo "$OTOOL64" >&6; }
9102 else
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9105 fi
9106
9107
9108 fi
9109 if test -z "$ac_cv_prog_OTOOL64"; then
9110 ac_ct_OTOOL64=$OTOOL64
9111 # Extract the first word of "otool64", so it can be a program name with args.
9112 set dummy otool64; 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_ac_ct_OTOOL64+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 if test -n "$ac_ct_OTOOL64"; then
9119 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_ac_ct_OTOOL64="otool64"
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 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9139 if test -n "$ac_ct_OTOOL64"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9141 $as_echo "$ac_ct_OTOOL64" >&6; }
9142 else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9145 fi
9146
9147 if test "x$ac_ct_OTOOL64" = x; then
9148 OTOOL64=":"
9149 else
9150 case $cross_compiling:$ac_tool_warned in
9151 yes:)
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9154 ac_tool_warned=yes ;;
9155 esac
9156 OTOOL64=$ac_ct_OTOOL64
9157 fi
9158 else
9159 OTOOL64="$ac_cv_prog_OTOOL64"
9160 fi
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9189 $as_echo_n "checking for -single_module linker flag... " >&6; }
9190 if ${lt_cv_apple_cc_single_mod+:} false; then :
9191 $as_echo_n "(cached) " >&6
9192 else
9193 lt_cv_apple_cc_single_mod=no
9194 if test -z "$LT_MULTI_MODULE"; then
9195 # By default we will add the -single_module flag. You can override
9196 # by either setting the environment variable LT_MULTI_MODULE
9197 # non-empty at configure time, or by adding -multi_module to the
9198 # link flags.
9199 rm -rf libconftest.dylib*
9200 echo "int foo(void){return 1;}" > conftest.c
9201 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9202 -dynamiclib -Wl,-single_module conftest.c" >&5
9203 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9204 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9205 _lt_result=$?
9206 # If there is a non-empty error log, and "single_module"
9207 # appears in it, assume the flag caused a linker warning
9208 if test -s conftest.err && $GREP single_module conftest.err; then
9209 cat conftest.err >&5
9210 # Otherwise, if the output was created with a 0 exit code from
9211 # the compiler, it worked.
9212 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9213 lt_cv_apple_cc_single_mod=yes
9214 else
9215 cat conftest.err >&5
9216 fi
9217 rm -rf libconftest.dylib*
9218 rm -f conftest.*
9219 fi
9220 fi
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9222 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9223
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9225 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9226 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 lt_cv_ld_exported_symbols_list=no
9230 save_LDFLAGS=$LDFLAGS
9231 echo "_main" > conftest.sym
9232 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235
9236 int
9237 main ()
9238 {
9239
9240 ;
9241 return 0;
9242 }
9243 _ACEOF
9244 if ac_fn_c_try_link "$LINENO"; then :
9245 lt_cv_ld_exported_symbols_list=yes
9246 else
9247 lt_cv_ld_exported_symbols_list=no
9248 fi
9249 rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9251 LDFLAGS=$save_LDFLAGS
9252
9253 fi
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9255 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9256
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9258 $as_echo_n "checking for -force_load linker flag... " >&6; }
9259 if ${lt_cv_ld_force_load+:} false; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 lt_cv_ld_force_load=no
9263 cat > conftest.c << _LT_EOF
9264 int forced_loaded() { return 2;}
9265 _LT_EOF
9266 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9267 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9268 echo "$AR cru libconftest.a conftest.o" >&5
9269 $AR cru libconftest.a conftest.o 2>&5
9270 echo "$RANLIB libconftest.a" >&5
9271 $RANLIB libconftest.a 2>&5
9272 cat > conftest.c << _LT_EOF
9273 int main() { return 0;}
9274 _LT_EOF
9275 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9276 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9277 _lt_result=$?
9278 if test -s conftest.err && $GREP force_load conftest.err; then
9279 cat conftest.err >&5
9280 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9281 lt_cv_ld_force_load=yes
9282 else
9283 cat conftest.err >&5
9284 fi
9285 rm -f conftest.err libconftest.a conftest conftest.c
9286 rm -rf conftest.dSYM
9287
9288 fi
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9290 $as_echo "$lt_cv_ld_force_load" >&6; }
9291 case $host_os in
9292 rhapsody* | darwin1.[012])
9293 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9294 darwin1.*)
9295 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9296 darwin*) # darwin 5.x on
9297 # if running on 10.5 or later, the deployment target defaults
9298 # to the OS version, if on x86, and 10.4, the deployment
9299 # target defaults to 10.4. Don't you love it?
9300 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9301 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9302 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9303 10.[012][,.]*)
9304 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9305 10.*)
9306 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9307 esac
9308 ;;
9309 esac
9310 if test yes = "$lt_cv_apple_cc_single_mod"; then
9311 _lt_dar_single_mod='$single_module'
9312 fi
9313 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9314 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9315 else
9316 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9317 fi
9318 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9319 _lt_dsymutil='~$DSYMUTIL $lib || :'
9320 else
9321 _lt_dsymutil=
9322 fi
9323 ;;
9324 esac
9325
9326 # func_munge_path_list VARIABLE PATH
9327 # -----------------------------------
9328 # VARIABLE is name of variable containing _space_ separated list of
9329 # directories to be munged by the contents of PATH, which is string
9330 # having a format:
9331 # "DIR[:DIR]:"
9332 # string "DIR[ DIR]" will be prepended to VARIABLE
9333 # ":DIR[:DIR]"
9334 # string "DIR[ DIR]" will be appended to VARIABLE
9335 # "DIRP[:DIRP]::[DIRA:]DIRA"
9336 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9337 # "DIRA[ DIRA]" will be appended to VARIABLE
9338 # "DIR[:DIR]"
9339 # VARIABLE will be replaced by "DIR[ DIR]"
9340 func_munge_path_list ()
9341 {
9342 case x$2 in
9343 x)
9344 ;;
9345 *:)
9346 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9347 ;;
9348 x:*)
9349 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9350 ;;
9351 *::*)
9352 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9353 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9354 ;;
9355 *)
9356 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9357 ;;
9358 esac
9359 }
9360
9361 for ac_header in dlfcn.h
9362 do :
9363 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9364 "
9365 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9366 cat >>confdefs.h <<_ACEOF
9367 #define HAVE_DLFCN_H 1
9368 _ACEOF
9369
9370 fi
9371
9372 done
9373
9374
9375
9376
9377
9378 # Set options
9379
9380
9381
9382 enable_dlopen=no
9383
9384
9385 enable_win32_dll=no
9386
9387
9388 # Check whether --enable-shared was given.
9389 if test "${enable_shared+set}" = set; then :
9390 enableval=$enable_shared; p=${PACKAGE-default}
9391 case $enableval in
9392 yes) enable_shared=yes ;;
9393 no) enable_shared=no ;;
9394 *)
9395 enable_shared=no
9396 # Look at the argument we got. We use all the common list separators.
9397 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9398 for pkg in $enableval; do
9399 IFS=$lt_save_ifs
9400 if test "X$pkg" = "X$p"; then
9401 enable_shared=yes
9402 fi
9403 done
9404 IFS=$lt_save_ifs
9405 ;;
9406 esac
9407 else
9408 enable_shared=yes
9409 fi
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419 # Check whether --enable-static was given.
9420 if test "${enable_static+set}" = set; then :
9421 enableval=$enable_static; p=${PACKAGE-default}
9422 case $enableval in
9423 yes) enable_static=yes ;;
9424 no) enable_static=no ;;
9425 *)
9426 enable_static=no
9427 # Look at the argument we got. We use all the common list separators.
9428 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9429 for pkg in $enableval; do
9430 IFS=$lt_save_ifs
9431 if test "X$pkg" = "X$p"; then
9432 enable_static=yes
9433 fi
9434 done
9435 IFS=$lt_save_ifs
9436 ;;
9437 esac
9438 else
9439 enable_static=yes
9440 fi
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451 # Check whether --with-pic was given.
9452 if test "${with_pic+set}" = set; then :
9453 withval=$with_pic; lt_p=${PACKAGE-default}
9454 case $withval in
9455 yes|no) pic_mode=$withval ;;
9456 *)
9457 pic_mode=default
9458 # Look at the argument we got. We use all the common list separators.
9459 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9460 for lt_pkg in $withval; do
9461 IFS=$lt_save_ifs
9462 if test "X$lt_pkg" = "X$lt_p"; then
9463 pic_mode=yes
9464 fi
9465 done
9466 IFS=$lt_save_ifs
9467 ;;
9468 esac
9469 else
9470 pic_mode=default
9471 fi
9472
9473
9474
9475
9476
9477
9478
9479
9480 # Check whether --enable-fast-install was given.
9481 if test "${enable_fast_install+set}" = set; then :
9482 enableval=$enable_fast_install; p=${PACKAGE-default}
9483 case $enableval in
9484 yes) enable_fast_install=yes ;;
9485 no) enable_fast_install=no ;;
9486 *)
9487 enable_fast_install=no
9488 # Look at the argument we got. We use all the common list separators.
9489 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9490 for pkg in $enableval; do
9491 IFS=$lt_save_ifs
9492 if test "X$pkg" = "X$p"; then
9493 enable_fast_install=yes
9494 fi
9495 done
9496 IFS=$lt_save_ifs
9497 ;;
9498 esac
9499 else
9500 enable_fast_install=yes
9501 fi
9502
9503
9504
9505
9506
9507
9508
9509
9510 shared_archive_member_spec=
9511 case $host,$enable_shared in
9512 power*-*-aix[5-9]*,yes)
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9514 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9515
9516 # Check whether --with-aix-soname was given.
9517 if test "${with_aix_soname+set}" = set; then :
9518 withval=$with_aix_soname; case $withval in
9519 aix|svr4|both)
9520 ;;
9521 *)
9522 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9523 ;;
9524 esac
9525 lt_cv_with_aix_soname=$with_aix_soname
9526 else
9527 if ${lt_cv_with_aix_soname+:} false; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 lt_cv_with_aix_soname=aix
9531 fi
9532
9533 with_aix_soname=$lt_cv_with_aix_soname
9534 fi
9535
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9537 $as_echo "$with_aix_soname" >&6; }
9538 if test aix != "$with_aix_soname"; then
9539 # For the AIX way of multilib, we name the shared archive member
9540 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9541 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9542 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9543 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9544 if test 64 = "${OBJECT_MODE-32}"; then
9545 shared_archive_member_spec=shr_64
9546 else
9547 shared_archive_member_spec=shr
9548 fi
9549 fi
9550 ;;
9551 *)
9552 with_aix_soname=aix
9553 ;;
9554 esac
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565 # This can be used to rebuild libtool when needed
9566 LIBTOOL_DEPS=$ltmain
9567
9568 # Always use our own libtool.
9569 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600 test -z "$LN_S" && LN_S="ln -s"
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615 if test -n "${ZSH_VERSION+set}"; then
9616 setopt NO_GLOB_SUBST
9617 fi
9618
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9620 $as_echo_n "checking for objdir... " >&6; }
9621 if ${lt_cv_objdir+:} false; then :
9622 $as_echo_n "(cached) " >&6
9623 else
9624 rm -f .libs 2>/dev/null
9625 mkdir .libs 2>/dev/null
9626 if test -d .libs; then
9627 lt_cv_objdir=.libs
9628 else
9629 # MS-DOS does not allow filenames that begin with a dot.
9630 lt_cv_objdir=_libs
9631 fi
9632 rmdir .libs 2>/dev/null
9633 fi
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9635 $as_echo "$lt_cv_objdir" >&6; }
9636 objdir=$lt_cv_objdir
9637
9638
9639
9640
9641
9642 cat >>confdefs.h <<_ACEOF
9643 #define LT_OBJDIR "$lt_cv_objdir/"
9644 _ACEOF
9645
9646
9647
9648
9649 case $host_os in
9650 aix3*)
9651 # AIX sometimes has problems with the GCC collect2 program. For some
9652 # reason, if we set the COLLECT_NAMES environment variable, the problems
9653 # vanish in a puff of smoke.
9654 if test set != "${COLLECT_NAMES+set}"; then
9655 COLLECT_NAMES=
9656 export COLLECT_NAMES
9657 fi
9658 ;;
9659 esac
9660
9661 # Global variables:
9662 ofile=libtool
9663 can_build_shared=yes
9664
9665 # All known linkers require a '.a' archive for static linking (except MSVC,
9666 # which needs '.lib').
9667 libext=a
9668
9669 with_gnu_ld=$lt_cv_prog_gnu_ld
9670
9671 old_CC=$CC
9672 old_CFLAGS=$CFLAGS
9673
9674 # Set sane defaults for various variables
9675 test -z "$CC" && CC=cc
9676 test -z "$LTCC" && LTCC=$CC
9677 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9678 test -z "$LD" && LD=ld
9679 test -z "$ac_objext" && ac_objext=o
9680
9681 func_cc_basename $compiler
9682 cc_basename=$func_cc_basename_result
9683
9684
9685 # Only perform the check for file, if the check method requires it
9686 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9687 case $deplibs_check_method in
9688 file_magic*)
9689 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9691 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9692 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9693 $as_echo_n "(cached) " >&6
9694 else
9695 case $MAGIC_CMD in
9696 [\\/*] | ?:[\\/]*)
9697 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9698 ;;
9699 *)
9700 lt_save_MAGIC_CMD=$MAGIC_CMD
9701 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9702 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9703 for ac_dir in $ac_dummy; do
9704 IFS=$lt_save_ifs
9705 test -z "$ac_dir" && ac_dir=.
9706 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9707 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9708 if test -n "$file_magic_test_file"; then
9709 case $deplibs_check_method in
9710 "file_magic "*)
9711 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9712 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9713 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9714 $EGREP "$file_magic_regex" > /dev/null; then
9715 :
9716 else
9717 cat <<_LT_EOF 1>&2
9718
9719 *** Warning: the command libtool uses to detect shared libraries,
9720 *** $file_magic_cmd, produces output that libtool cannot recognize.
9721 *** The result is that libtool may fail to recognize shared libraries
9722 *** as such. This will affect the creation of libtool libraries that
9723 *** depend on shared libraries, but programs linked with such libtool
9724 *** libraries will work regardless of this problem. Nevertheless, you
9725 *** may want to report the problem to your system manager and/or to
9726 *** [email protected]
9727
9728 _LT_EOF
9729 fi ;;
9730 esac
9731 fi
9732 break
9733 fi
9734 done
9735 IFS=$lt_save_ifs
9736 MAGIC_CMD=$lt_save_MAGIC_CMD
9737 ;;
9738 esac
9739 fi
9740
9741 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9742 if test -n "$MAGIC_CMD"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9744 $as_echo "$MAGIC_CMD" >&6; }
9745 else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9748 fi
9749
9750
9751
9752
9753
9754 if test -z "$lt_cv_path_MAGIC_CMD"; then
9755 if test -n "$ac_tool_prefix"; then
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9757 $as_echo_n "checking for file... " >&6; }
9758 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 case $MAGIC_CMD in
9762 [\\/*] | ?:[\\/]*)
9763 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9764 ;;
9765 *)
9766 lt_save_MAGIC_CMD=$MAGIC_CMD
9767 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9768 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9769 for ac_dir in $ac_dummy; do
9770 IFS=$lt_save_ifs
9771 test -z "$ac_dir" && ac_dir=.
9772 if test -f "$ac_dir/file"; then
9773 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9774 if test -n "$file_magic_test_file"; then
9775 case $deplibs_check_method in
9776 "file_magic "*)
9777 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9778 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9779 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9780 $EGREP "$file_magic_regex" > /dev/null; then
9781 :
9782 else
9783 cat <<_LT_EOF 1>&2
9784
9785 *** Warning: the command libtool uses to detect shared libraries,
9786 *** $file_magic_cmd, produces output that libtool cannot recognize.
9787 *** The result is that libtool may fail to recognize shared libraries
9788 *** as such. This will affect the creation of libtool libraries that
9789 *** depend on shared libraries, but programs linked with such libtool
9790 *** libraries will work regardless of this problem. Nevertheless, you
9791 *** may want to report the problem to your system manager and/or to
9792 *** [email protected]
9793
9794 _LT_EOF
9795 fi ;;
9796 esac
9797 fi
9798 break
9799 fi
9800 done
9801 IFS=$lt_save_ifs
9802 MAGIC_CMD=$lt_save_MAGIC_CMD
9803 ;;
9804 esac
9805 fi
9806
9807 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9808 if test -n "$MAGIC_CMD"; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9810 $as_echo "$MAGIC_CMD" >&6; }
9811 else
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 $as_echo "no" >&6; }
9814 fi
9815
9816
9817 else
9818 MAGIC_CMD=:
9819 fi
9820 fi
9821
9822 fi
9823 ;;
9824 esac
9825
9826 # Use C for the default configuration in the libtool script
9827
9828 lt_save_CC=$CC
9829 ac_ext=c
9830 ac_cpp='$CPP $CPPFLAGS'
9831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9834
9835
9836 # Source file extension for C test sources.
9837 ac_ext=c
9838
9839 # Object file extension for compiled C test sources.
9840 objext=o
9841 objext=$objext
9842
9843 # Code to be used in simple compile tests
9844 lt_simple_compile_test_code="int some_variable = 0;"
9845
9846 # Code to be used in simple link tests
9847 lt_simple_link_test_code='int main(){return(0);}'
9848
9849
9850
9851
9852
9853
9854
9855 # If no C compiler was specified, use CC.
9856 LTCC=${LTCC-"$CC"}
9857
9858 # If no C compiler flags were specified, use CFLAGS.
9859 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9860
9861 # Allow CC to be a program name with arguments.
9862 compiler=$CC
9863
9864 # Save the default compiler, since it gets overwritten when the other
9865 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9866 compiler_DEFAULT=$CC
9867
9868 # save warnings/boilerplate of simple test code
9869 ac_outfile=conftest.$ac_objext
9870 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9872 _lt_compiler_boilerplate=`cat conftest.err`
9873 $RM conftest*
9874
9875 ac_outfile=conftest.$ac_objext
9876 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9878 _lt_linker_boilerplate=`cat conftest.err`
9879 $RM -r conftest*
9880
9881
9882 ## CAVEAT EMPTOR:
9883 ## There is no encapsulation within the following macros, do not change
9884 ## the running order or otherwise move them around unless you know exactly
9885 ## what you are doing...
9886 if test -n "$compiler"; then
9887
9888 lt_prog_compiler_no_builtin_flag=
9889
9890 if test yes = "$GCC"; then
9891 case $cc_basename in
9892 nvcc*)
9893 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9894 *)
9895 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9896 esac
9897
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9899 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9900 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903 lt_cv_prog_compiler_rtti_exceptions=no
9904 ac_outfile=conftest.$ac_objext
9905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9906 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9907 # Insert the option either (1) after the last *FLAGS variable, or
9908 # (2) before a word containing "conftest.", or (3) at the end.
9909 # Note that $ac_compile itself does not contain backslashes and begins
9910 # with a dollar sign (not a hyphen), so the echo should work correctly.
9911 # The option is referenced via a variable to avoid confusing sed.
9912 lt_compile=`echo "$ac_compile" | $SED \
9913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9915 -e 's:$: $lt_compiler_flag:'`
9916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9917 (eval "$lt_compile" 2>conftest.err)
9918 ac_status=$?
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 if (exit $ac_status) && test -s "$ac_outfile"; then
9922 # The compiler can only warn and ignore the option if not recognized
9923 # So say no if there are warnings other than the usual output.
9924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9927 lt_cv_prog_compiler_rtti_exceptions=yes
9928 fi
9929 fi
9930 $RM conftest*
9931
9932 fi
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9934 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9935
9936 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9937 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9938 else
9939 :
9940 fi
9941
9942 fi
9943
9944
9945
9946
9947
9948
9949 lt_prog_compiler_wl=
9950 lt_prog_compiler_pic=
9951 lt_prog_compiler_static=
9952
9953
9954 if test yes = "$GCC"; then
9955 lt_prog_compiler_wl='-Wl,'
9956 lt_prog_compiler_static='-static'
9957
9958 case $host_os in
9959 aix*)
9960 # All AIX code is PIC.
9961 if test ia64 = "$host_cpu"; then
9962 # AIX 5 now supports IA64 processor
9963 lt_prog_compiler_static='-Bstatic'
9964 fi
9965 lt_prog_compiler_pic='-fPIC'
9966 ;;
9967
9968 amigaos*)
9969 case $host_cpu in
9970 powerpc)
9971 # see comment about AmigaOS4 .so support
9972 lt_prog_compiler_pic='-fPIC'
9973 ;;
9974 m68k)
9975 # FIXME: we need at least 68020 code to build shared libraries, but
9976 # adding the '-m68020' flag to GCC prevents building anything better,
9977 # like '-m68040'.
9978 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9979 ;;
9980 esac
9981 ;;
9982
9983 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9984 # PIC is the default for these OSes.
9985 ;;
9986
9987 mingw* | cygwin* | pw32* | os2* | cegcc*)
9988 # This hack is so that the source file can tell whether it is being
9989 # built for inclusion in a dll (and should export symbols for example).
9990 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9991 # (--disable-auto-import) libraries
9992 lt_prog_compiler_pic='-DDLL_EXPORT'
9993 case $host_os in
9994 os2*)
9995 lt_prog_compiler_static='$wl-static'
9996 ;;
9997 esac
9998 ;;
9999
10000 darwin* | rhapsody*)
10001 # PIC is the default on this platform
10002 # Common symbols not allowed in MH_DYLIB files
10003 lt_prog_compiler_pic='-fno-common'
10004 ;;
10005
10006 haiku*)
10007 # PIC is the default for Haiku.
10008 # The "-static" flag exists, but is broken.
10009 lt_prog_compiler_static=
10010 ;;
10011
10012 hpux*)
10013 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10014 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10015 # sets the default TLS model and affects inlining.
10016 case $host_cpu in
10017 hppa*64*)
10018 # +Z the default
10019 ;;
10020 *)
10021 lt_prog_compiler_pic='-fPIC'
10022 ;;
10023 esac
10024 ;;
10025
10026 interix[3-9]*)
10027 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10028 # Instead, we relocate shared libraries at runtime.
10029 ;;
10030
10031 msdosdjgpp*)
10032 # Just because we use GCC doesn't mean we suddenly get shared libraries
10033 # on systems that don't support them.
10034 lt_prog_compiler_can_build_shared=no
10035 enable_shared=no
10036 ;;
10037
10038 *nto* | *qnx*)
10039 # QNX uses GNU C++, but need to define -shared option too, otherwise
10040 # it will coredump.
10041 lt_prog_compiler_pic='-fPIC -shared'
10042 ;;
10043
10044 sysv4*MP*)
10045 if test -d /usr/nec; then
10046 lt_prog_compiler_pic=-Kconform_pic
10047 fi
10048 ;;
10049
10050 *)
10051 lt_prog_compiler_pic='-fPIC'
10052 ;;
10053 esac
10054
10055 case $cc_basename in
10056 nvcc*) # Cuda Compiler Driver 2.2
10057 lt_prog_compiler_wl='-Xlinker '
10058 if test -n "$lt_prog_compiler_pic"; then
10059 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10060 fi
10061 ;;
10062 esac
10063 else
10064 # PORTME Check for flag to pass linker flags through the system compiler.
10065 case $host_os in
10066 aix*)
10067 lt_prog_compiler_wl='-Wl,'
10068 if test ia64 = "$host_cpu"; then
10069 # AIX 5 now supports IA64 processor
10070 lt_prog_compiler_static='-Bstatic'
10071 else
10072 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10073 fi
10074 ;;
10075
10076 darwin* | rhapsody*)
10077 # PIC is the default on this platform
10078 # Common symbols not allowed in MH_DYLIB files
10079 lt_prog_compiler_pic='-fno-common'
10080 case $cc_basename in
10081 nagfor*)
10082 # NAG Fortran compiler
10083 lt_prog_compiler_wl='-Wl,-Wl,,'
10084 lt_prog_compiler_pic='-PIC'
10085 lt_prog_compiler_static='-Bstatic'
10086 ;;
10087 esac
10088 ;;
10089
10090 mingw* | cygwin* | pw32* | os2* | cegcc*)
10091 # This hack is so that the source file can tell whether it is being
10092 # built for inclusion in a dll (and should export symbols for example).
10093 lt_prog_compiler_pic='-DDLL_EXPORT'
10094 case $host_os in
10095 os2*)
10096 lt_prog_compiler_static='$wl-static'
10097 ;;
10098 esac
10099 ;;
10100
10101 hpux9* | hpux10* | hpux11*)
10102 lt_prog_compiler_wl='-Wl,'
10103 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10104 # not for PA HP-UX.
10105 case $host_cpu in
10106 hppa*64*|ia64*)
10107 # +Z the default
10108 ;;
10109 *)
10110 lt_prog_compiler_pic='+Z'
10111 ;;
10112 esac
10113 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10114 lt_prog_compiler_static='$wl-a ${wl}archive'
10115 ;;
10116
10117 irix5* | irix6* | nonstopux*)
10118 lt_prog_compiler_wl='-Wl,'
10119 # PIC (with -KPIC) is the default.
10120 lt_prog_compiler_static='-non_shared'
10121 ;;
10122
10123 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10124 case $cc_basename in
10125 # old Intel for x86_64, which still supported -KPIC.
10126 ecc*)
10127 lt_prog_compiler_wl='-Wl,'
10128 lt_prog_compiler_pic='-KPIC'
10129 lt_prog_compiler_static='-static'
10130 ;;
10131 # icc used to be incompatible with GCC.
10132 # ICC 10 doesn't accept -KPIC any more.
10133 icc* | ifort*)
10134 lt_prog_compiler_wl='-Wl,'
10135 lt_prog_compiler_pic='-fPIC'
10136 lt_prog_compiler_static='-static'
10137 ;;
10138 # Lahey Fortran 8.1.
10139 lf95*)
10140 lt_prog_compiler_wl='-Wl,'
10141 lt_prog_compiler_pic='--shared'
10142 lt_prog_compiler_static='--static'
10143 ;;
10144 nagfor*)
10145 # NAG Fortran compiler
10146 lt_prog_compiler_wl='-Wl,-Wl,,'
10147 lt_prog_compiler_pic='-PIC'
10148 lt_prog_compiler_static='-Bstatic'
10149 ;;
10150 tcc*)
10151 # Fabrice Bellard et al's Tiny C Compiler
10152 lt_prog_compiler_wl='-Wl,'
10153 lt_prog_compiler_pic='-fPIC'
10154 lt_prog_compiler_static='-static'
10155 ;;
10156 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10157 # Portland Group compilers (*not* the Pentium gcc compiler,
10158 # which looks to be a dead project)
10159 lt_prog_compiler_wl='-Wl,'
10160 lt_prog_compiler_pic='-fpic'
10161 lt_prog_compiler_static='-Bstatic'
10162 ;;
10163 ccc*)
10164 lt_prog_compiler_wl='-Wl,'
10165 # All Alpha code is PIC.
10166 lt_prog_compiler_static='-non_shared'
10167 ;;
10168 xl* | bgxl* | bgf* | mpixl*)
10169 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10170 lt_prog_compiler_wl='-Wl,'
10171 lt_prog_compiler_pic='-qpic'
10172 lt_prog_compiler_static='-qstaticlink'
10173 ;;
10174 *)
10175 case `$CC -V 2>&1 | sed 5q` in
10176 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10177 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10178 lt_prog_compiler_pic='-KPIC'
10179 lt_prog_compiler_static='-Bstatic'
10180 lt_prog_compiler_wl=''
10181 ;;
10182 *Sun\ F* | *Sun*Fortran*)
10183 lt_prog_compiler_pic='-KPIC'
10184 lt_prog_compiler_static='-Bstatic'
10185 lt_prog_compiler_wl='-Qoption ld '
10186 ;;
10187 *Sun\ C*)
10188 # Sun C 5.9
10189 lt_prog_compiler_pic='-KPIC'
10190 lt_prog_compiler_static='-Bstatic'
10191 lt_prog_compiler_wl='-Wl,'
10192 ;;
10193 *Intel*\ [CF]*Compiler*)
10194 lt_prog_compiler_wl='-Wl,'
10195 lt_prog_compiler_pic='-fPIC'
10196 lt_prog_compiler_static='-static'
10197 ;;
10198 *Portland\ Group*)
10199 lt_prog_compiler_wl='-Wl,'
10200 lt_prog_compiler_pic='-fpic'
10201 lt_prog_compiler_static='-Bstatic'
10202 ;;
10203 esac
10204 ;;
10205 esac
10206 ;;
10207
10208 newsos6)
10209 lt_prog_compiler_pic='-KPIC'
10210 lt_prog_compiler_static='-Bstatic'
10211 ;;
10212
10213 *nto* | *qnx*)
10214 # QNX uses GNU C++, but need to define -shared option too, otherwise
10215 # it will coredump.
10216 lt_prog_compiler_pic='-fPIC -shared'
10217 ;;
10218
10219 osf3* | osf4* | osf5*)
10220 lt_prog_compiler_wl='-Wl,'
10221 # All OSF/1 code is PIC.
10222 lt_prog_compiler_static='-non_shared'
10223 ;;
10224
10225 rdos*)
10226 lt_prog_compiler_static='-non_shared'
10227 ;;
10228
10229 solaris*)
10230 lt_prog_compiler_pic='-KPIC'
10231 lt_prog_compiler_static='-Bstatic'
10232 case $cc_basename in
10233 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10234 lt_prog_compiler_wl='-Qoption ld ';;
10235 *)
10236 lt_prog_compiler_wl='-Wl,';;
10237 esac
10238 ;;
10239
10240 sunos4*)
10241 lt_prog_compiler_wl='-Qoption ld '
10242 lt_prog_compiler_pic='-PIC'
10243 lt_prog_compiler_static='-Bstatic'
10244 ;;
10245
10246 sysv4 | sysv4.2uw2* | sysv4.3*)
10247 lt_prog_compiler_wl='-Wl,'
10248 lt_prog_compiler_pic='-KPIC'
10249 lt_prog_compiler_static='-Bstatic'
10250 ;;
10251
10252 sysv4*MP*)
10253 if test -d /usr/nec; then
10254 lt_prog_compiler_pic='-Kconform_pic'
10255 lt_prog_compiler_static='-Bstatic'
10256 fi
10257 ;;
10258
10259 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10260 lt_prog_compiler_wl='-Wl,'
10261 lt_prog_compiler_pic='-KPIC'
10262 lt_prog_compiler_static='-Bstatic'
10263 ;;
10264
10265 unicos*)
10266 lt_prog_compiler_wl='-Wl,'
10267 lt_prog_compiler_can_build_shared=no
10268 ;;
10269
10270 uts4*)
10271 lt_prog_compiler_pic='-pic'
10272 lt_prog_compiler_static='-Bstatic'
10273 ;;
10274
10275 *)
10276 lt_prog_compiler_can_build_shared=no
10277 ;;
10278 esac
10279 fi
10280
10281 case $host_os in
10282 # For platforms that do not support PIC, -DPIC is meaningless:
10283 *djgpp*)
10284 lt_prog_compiler_pic=
10285 ;;
10286 *)
10287 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10288 ;;
10289 esac
10290
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10292 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10293 if ${lt_cv_prog_compiler_pic+:} false; then :
10294 $as_echo_n "(cached) " >&6
10295 else
10296 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10297 fi
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10299 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10300 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10301
10302 #
10303 # Check to make sure the PIC flag actually works.
10304 #
10305 if test -n "$lt_prog_compiler_pic"; then
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10307 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10308 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311 lt_cv_prog_compiler_pic_works=no
10312 ac_outfile=conftest.$ac_objext
10313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10314 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10315 # Insert the option either (1) after the last *FLAGS variable, or
10316 # (2) before a word containing "conftest.", or (3) at the end.
10317 # Note that $ac_compile itself does not contain backslashes and begins
10318 # with a dollar sign (not a hyphen), so the echo should work correctly.
10319 # The option is referenced via a variable to avoid confusing sed.
10320 lt_compile=`echo "$ac_compile" | $SED \
10321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10323 -e 's:$: $lt_compiler_flag:'`
10324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10325 (eval "$lt_compile" 2>conftest.err)
10326 ac_status=$?
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 if (exit $ac_status) && test -s "$ac_outfile"; then
10330 # The compiler can only warn and ignore the option if not recognized
10331 # So say no if there are warnings other than the usual output.
10332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10335 lt_cv_prog_compiler_pic_works=yes
10336 fi
10337 fi
10338 $RM conftest*
10339
10340 fi
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10342 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10343
10344 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10345 case $lt_prog_compiler_pic in
10346 "" | " "*) ;;
10347 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10348 esac
10349 else
10350 lt_prog_compiler_pic=
10351 lt_prog_compiler_can_build_shared=no
10352 fi
10353
10354 fi
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366 #
10367 # Check to make sure the static flag actually works.
10368 #
10369 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10371 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10372 if ${lt_cv_prog_compiler_static_works+:} false; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 lt_cv_prog_compiler_static_works=no
10376 save_LDFLAGS=$LDFLAGS
10377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10380 # The linker can only warn and ignore the option if not recognized
10381 # So say no if there are warnings
10382 if test -s conftest.err; then
10383 # Append any errors to the config.log.
10384 cat conftest.err 1>&5
10385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10387 if diff conftest.exp conftest.er2 >/dev/null; then
10388 lt_cv_prog_compiler_static_works=yes
10389 fi
10390 else
10391 lt_cv_prog_compiler_static_works=yes
10392 fi
10393 fi
10394 $RM -r conftest*
10395 LDFLAGS=$save_LDFLAGS
10396
10397 fi
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10399 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10400
10401 if test yes = "$lt_cv_prog_compiler_static_works"; then
10402 :
10403 else
10404 lt_prog_compiler_static=
10405 fi
10406
10407
10408
10409
10410
10411
10412
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10414 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10415 if ${lt_cv_prog_compiler_c_o+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 lt_cv_prog_compiler_c_o=no
10419 $RM -r conftest 2>/dev/null
10420 mkdir conftest
10421 cd conftest
10422 mkdir out
10423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10424
10425 lt_compiler_flag="-o out/conftest2.$ac_objext"
10426 # Insert the option either (1) after the last *FLAGS variable, or
10427 # (2) before a word containing "conftest.", or (3) at the end.
10428 # Note that $ac_compile itself does not contain backslashes and begins
10429 # with a dollar sign (not a hyphen), so the echo should work correctly.
10430 lt_compile=`echo "$ac_compile" | $SED \
10431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10433 -e 's:$: $lt_compiler_flag:'`
10434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10435 (eval "$lt_compile" 2>out/conftest.err)
10436 ac_status=$?
10437 cat out/conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10440 then
10441 # The compiler can only warn and ignore the option if not recognized
10442 # So say no if there are warnings
10443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10446 lt_cv_prog_compiler_c_o=yes
10447 fi
10448 fi
10449 chmod u+w . 2>&5
10450 $RM conftest*
10451 # SGI C++ compiler will create directory out/ii_files/ for
10452 # template instantiation
10453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10454 $RM out/* && rmdir out
10455 cd ..
10456 $RM -r conftest
10457 $RM conftest*
10458
10459 fi
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10461 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10462
10463
10464
10465
10466
10467
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10469 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10470 if ${lt_cv_prog_compiler_c_o+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 lt_cv_prog_compiler_c_o=no
10474 $RM -r conftest 2>/dev/null
10475 mkdir conftest
10476 cd conftest
10477 mkdir out
10478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10479
10480 lt_compiler_flag="-o out/conftest2.$ac_objext"
10481 # Insert the option either (1) after the last *FLAGS variable, or
10482 # (2) before a word containing "conftest.", or (3) at the end.
10483 # Note that $ac_compile itself does not contain backslashes and begins
10484 # with a dollar sign (not a hyphen), so the echo should work correctly.
10485 lt_compile=`echo "$ac_compile" | $SED \
10486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10488 -e 's:$: $lt_compiler_flag:'`
10489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10490 (eval "$lt_compile" 2>out/conftest.err)
10491 ac_status=$?
10492 cat out/conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10495 then
10496 # The compiler can only warn and ignore the option if not recognized
10497 # So say no if there are warnings
10498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10501 lt_cv_prog_compiler_c_o=yes
10502 fi
10503 fi
10504 chmod u+w . 2>&5
10505 $RM conftest*
10506 # SGI C++ compiler will create directory out/ii_files/ for
10507 # template instantiation
10508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10509 $RM out/* && rmdir out
10510 cd ..
10511 $RM -r conftest
10512 $RM conftest*
10513
10514 fi
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10516 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10517
10518
10519
10520
10521 hard_links=nottested
10522 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10523 # do not overwrite the value of need_locks provided by the user
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10525 $as_echo_n "checking if we can lock with hard links... " >&6; }
10526 hard_links=yes
10527 $RM conftest*
10528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10529 touch conftest.a
10530 ln conftest.a conftest.b 2>&5 || hard_links=no
10531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10533 $as_echo "$hard_links" >&6; }
10534 if test no = "$hard_links"; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10536 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10537 need_locks=warn
10538 fi
10539 else
10540 need_locks=no
10541 fi
10542
10543
10544
10545
10546
10547
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10549 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10550
10551 runpath_var=
10552 allow_undefined_flag=
10553 always_export_symbols=no
10554 archive_cmds=
10555 archive_expsym_cmds=
10556 compiler_needs_object=no
10557 enable_shared_with_static_runtimes=no
10558 export_dynamic_flag_spec=
10559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10560 hardcode_automatic=no
10561 hardcode_direct=no
10562 hardcode_direct_absolute=no
10563 hardcode_libdir_flag_spec=
10564 hardcode_libdir_separator=
10565 hardcode_minus_L=no
10566 hardcode_shlibpath_var=unsupported
10567 inherit_rpath=no
10568 link_all_deplibs=unknown
10569 module_cmds=
10570 module_expsym_cmds=
10571 old_archive_from_new_cmds=
10572 old_archive_from_expsyms_cmds=
10573 thread_safe_flag_spec=
10574 whole_archive_flag_spec=
10575 # include_expsyms should be a list of space-separated symbols to be *always*
10576 # included in the symbol list
10577 include_expsyms=
10578 # exclude_expsyms can be an extended regexp of symbols to exclude
10579 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10580 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10581 # as well as any symbol that contains 'd'.
10582 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10583 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10584 # platforms (ab)use it in PIC code, but their linkers get confused if
10585 # the symbol is explicitly referenced. Since portable code cannot
10586 # rely on this symbol name, it's probably fine to never include it in
10587 # preloaded symbol tables.
10588 # Exclude shared library initialization/finalization symbols.
10589 extract_expsyms_cmds=
10590
10591 case $host_os in
10592 cygwin* | mingw* | pw32* | cegcc*)
10593 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10594 # When not using gcc, we currently assume that we are using
10595 # Microsoft Visual C++.
10596 if test yes != "$GCC"; then
10597 with_gnu_ld=no
10598 fi
10599 ;;
10600 interix*)
10601 # we just hope/assume this is gcc and not c89 (= MSVC++)
10602 with_gnu_ld=yes
10603 ;;
10604 openbsd* | bitrig*)
10605 with_gnu_ld=no
10606 ;;
10607 esac
10608
10609 ld_shlibs=yes
10610
10611 # On some targets, GNU ld is compatible enough with the native linker
10612 # that we're better off using the native interface for both.
10613 lt_use_gnu_ld_interface=no
10614 if test yes = "$with_gnu_ld"; then
10615 case $host_os in
10616 aix*)
10617 # The AIX port of GNU ld has always aspired to compatibility
10618 # with the native linker. However, as the warning in the GNU ld
10619 # block says, versions before 2.19.5* couldn't really create working
10620 # shared libraries, regardless of the interface used.
10621 case `$LD -v 2>&1` in
10622 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10623 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10624 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10625 *)
10626 lt_use_gnu_ld_interface=yes
10627 ;;
10628 esac
10629 ;;
10630 *)
10631 lt_use_gnu_ld_interface=yes
10632 ;;
10633 esac
10634 fi
10635
10636 if test yes = "$lt_use_gnu_ld_interface"; then
10637 # If archive_cmds runs LD, not CC, wlarc should be empty
10638 wlarc='$wl'
10639
10640 # Set some defaults for GNU ld with shared library support. These
10641 # are reset later if shared libraries are not supported. Putting them
10642 # here allows them to be overridden if necessary.
10643 runpath_var=LD_RUN_PATH
10644 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10645 export_dynamic_flag_spec='$wl--export-dynamic'
10646 # ancient GNU ld didn't support --whole-archive et. al.
10647 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10648 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10649 else
10650 whole_archive_flag_spec=
10651 fi
10652 supports_anon_versioning=no
10653 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10654 *GNU\ gold*) supports_anon_versioning=yes ;;
10655 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10656 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10657 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10658 *\ 2.11.*) ;; # other 2.11 versions
10659 *) supports_anon_versioning=yes ;;
10660 esac
10661
10662 # See if GNU ld supports shared libraries.
10663 case $host_os in
10664 aix[3-9]*)
10665 # On AIX/PPC, the GNU linker is very broken
10666 if test ia64 != "$host_cpu"; then
10667 ld_shlibs=no
10668 cat <<_LT_EOF 1>&2
10669
10670 *** Warning: the GNU linker, at least up to release 2.19, is reported
10671 *** to be unable to reliably create shared libraries on AIX.
10672 *** Therefore, libtool is disabling shared libraries support. If you
10673 *** really care for shared libraries, you may want to install binutils
10674 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10675 *** You will then need to restart the configuration process.
10676
10677 _LT_EOF
10678 fi
10679 ;;
10680
10681 amigaos*)
10682 case $host_cpu in
10683 powerpc)
10684 # see comment about AmigaOS4 .so support
10685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10686 archive_expsym_cmds=''
10687 ;;
10688 m68k)
10689 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)'
10690 hardcode_libdir_flag_spec='-L$libdir'
10691 hardcode_minus_L=yes
10692 ;;
10693 esac
10694 ;;
10695
10696 beos*)
10697 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10698 allow_undefined_flag=unsupported
10699 # Joseph Beckenbach <[email protected]> says some releases of gcc
10700 # support --undefined. This deserves some investigation. FIXME
10701 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10702 else
10703 ld_shlibs=no
10704 fi
10705 ;;
10706
10707 cygwin* | mingw* | pw32* | cegcc*)
10708 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10709 # as there is no search path for DLLs.
10710 hardcode_libdir_flag_spec='-L$libdir'
10711 export_dynamic_flag_spec='$wl--export-all-symbols'
10712 allow_undefined_flag=unsupported
10713 always_export_symbols=no
10714 enable_shared_with_static_runtimes=yes
10715 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'
10716 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10717
10718 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10720 # If the export-symbols file already is a .def file, use it as
10721 # is; otherwise, prepend EXPORTS...
10722 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10723 cp $export_symbols $output_objdir/$soname.def;
10724 else
10725 echo EXPORTS > $output_objdir/$soname.def;
10726 cat $export_symbols >> $output_objdir/$soname.def;
10727 fi~
10728 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10729 else
10730 ld_shlibs=no
10731 fi
10732 ;;
10733
10734 haiku*)
10735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10736 link_all_deplibs=yes
10737 ;;
10738
10739 os2*)
10740 hardcode_libdir_flag_spec='-L$libdir'
10741 hardcode_minus_L=yes
10742 allow_undefined_flag=unsupported
10743 shrext_cmds=.dll
10744 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10745 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10746 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10747 $ECHO EXPORTS >> $output_objdir/$libname.def~
10748 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10749 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10750 emximp -o $lib $output_objdir/$libname.def'
10751 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10752 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10753 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10754 $ECHO EXPORTS >> $output_objdir/$libname.def~
10755 prefix_cmds="$SED"~
10756 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10757 prefix_cmds="$prefix_cmds -e 1d";
10758 fi~
10759 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10760 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10761 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10762 emximp -o $lib $output_objdir/$libname.def'
10763 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10764 enable_shared_with_static_runtimes=yes
10765 ;;
10766
10767 interix[3-9]*)
10768 hardcode_direct=no
10769 hardcode_shlibpath_var=no
10770 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10771 export_dynamic_flag_spec='$wl-E'
10772 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10773 # Instead, shared libraries are loaded at an image base (0x10000000 by
10774 # default) and relocated if they conflict, which is a slow very memory
10775 # consuming and fragmenting process. To avoid this, we pick a random,
10776 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10777 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10778 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10779 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'
10780 ;;
10781
10782 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10783 tmp_diet=no
10784 if test linux-dietlibc = "$host_os"; then
10785 case $cc_basename in
10786 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10787 esac
10788 fi
10789 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10790 && test no = "$tmp_diet"
10791 then
10792 tmp_addflag=' $pic_flag'
10793 tmp_sharedflag='-shared'
10794 case $cc_basename,$host_cpu in
10795 pgcc*) # Portland Group C compiler
10796 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'
10797 tmp_addflag=' $pic_flag'
10798 ;;
10799 pgf77* | pgf90* | pgf95* | pgfortran*)
10800 # Portland Group f77 and f90 compilers
10801 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'
10802 tmp_addflag=' $pic_flag -Mnomain' ;;
10803 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10804 tmp_addflag=' -i_dynamic' ;;
10805 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10806 tmp_addflag=' -i_dynamic -nofor_main' ;;
10807 ifc* | ifort*) # Intel Fortran compiler
10808 tmp_addflag=' -nofor_main' ;;
10809 lf95*) # Lahey Fortran 8.1
10810 whole_archive_flag_spec=
10811 tmp_sharedflag='--shared' ;;
10812 nagfor*) # NAGFOR 5.3
10813 tmp_sharedflag='-Wl,-shared' ;;
10814 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10815 tmp_sharedflag='-qmkshrobj'
10816 tmp_addflag= ;;
10817 nvcc*) # Cuda Compiler Driver 2.2
10818 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'
10819 compiler_needs_object=yes
10820 ;;
10821 esac
10822 case `$CC -V 2>&1 | sed 5q` in
10823 *Sun\ C*) # Sun C 5.9
10824 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'
10825 compiler_needs_object=yes
10826 tmp_sharedflag='-G' ;;
10827 *Sun\ F*) # Sun Fortran 8.3
10828 tmp_sharedflag='-G' ;;
10829 esac
10830 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10831
10832 if test yes = "$supports_anon_versioning"; then
10833 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10835 echo "local: *; };" >> $output_objdir/$libname.ver~
10836 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10837 fi
10838
10839 case $cc_basename in
10840 tcc*)
10841 export_dynamic_flag_spec='-rdynamic'
10842 ;;
10843 xlf* | bgf* | bgxlf* | mpixlf*)
10844 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10845 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10846 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10847 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10848 if test yes = "$supports_anon_versioning"; then
10849 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10850 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10851 echo "local: *; };" >> $output_objdir/$libname.ver~
10852 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10853 fi
10854 ;;
10855 esac
10856 else
10857 ld_shlibs=no
10858 fi
10859 ;;
10860
10861 netbsd*)
10862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10863 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10864 wlarc=
10865 else
10866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10867 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10868 fi
10869 ;;
10870
10871 solaris*)
10872 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10873 ld_shlibs=no
10874 cat <<_LT_EOF 1>&2
10875
10876 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10877 *** create shared libraries on Solaris systems. Therefore, libtool
10878 *** is disabling shared libraries support. We urge you to upgrade GNU
10879 *** binutils to release 2.9.1 or newer. Another option is to modify
10880 *** your PATH or compiler configuration so that the native linker is
10881 *** used, and then restart.
10882
10883 _LT_EOF
10884 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10886 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10887 else
10888 ld_shlibs=no
10889 fi
10890 ;;
10891
10892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10893 case `$LD -v 2>&1` in
10894 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10895 ld_shlibs=no
10896 cat <<_LT_EOF 1>&2
10897
10898 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10899 *** reliably create shared libraries on SCO systems. Therefore, libtool
10900 *** is disabling shared libraries support. We urge you to upgrade GNU
10901 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10902 *** your PATH or compiler configuration so that the native linker is
10903 *** used, and then restart.
10904
10905 _LT_EOF
10906 ;;
10907 *)
10908 # For security reasons, it is highly recommended that you always
10909 # use absolute paths for naming shared libraries, and exclude the
10910 # DT_RUNPATH tag from executables and libraries. But doing so
10911 # requires that you compile everything twice, which is a pain.
10912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10913 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10916 else
10917 ld_shlibs=no
10918 fi
10919 ;;
10920 esac
10921 ;;
10922
10923 sunos4*)
10924 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10925 wlarc=
10926 hardcode_direct=yes
10927 hardcode_shlibpath_var=no
10928 ;;
10929
10930 *)
10931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10933 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10934 else
10935 ld_shlibs=no
10936 fi
10937 ;;
10938 esac
10939
10940 if test no = "$ld_shlibs"; then
10941 runpath_var=
10942 hardcode_libdir_flag_spec=
10943 export_dynamic_flag_spec=
10944 whole_archive_flag_spec=
10945 fi
10946 else
10947 # PORTME fill in a description of your system's linker (not GNU ld)
10948 case $host_os in
10949 aix3*)
10950 allow_undefined_flag=unsupported
10951 always_export_symbols=yes
10952 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'
10953 # Note: this linker hardcodes the directories in LIBPATH if there
10954 # are no directories specified by -L.
10955 hardcode_minus_L=yes
10956 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10957 # Neither direct hardcoding nor static linking is supported with a
10958 # broken collect2.
10959 hardcode_direct=unsupported
10960 fi
10961 ;;
10962
10963 aix[4-9]*)
10964 if test ia64 = "$host_cpu"; then
10965 # On IA64, the linker does run time linking by default, so we don't
10966 # have to do anything special.
10967 aix_use_runtimelinking=no
10968 exp_sym_flag='-Bexport'
10969 no_entry_flag=
10970 else
10971 # If we're using GNU nm, then we don't want the "-C" option.
10972 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10973 # Without the "-l" option, or with the "-B" option, AIX nm treats
10974 # weak defined symbols like other global defined symbols, whereas
10975 # GNU nm marks them as "W".
10976 # While the 'weak' keyword is ignored in the Export File, we need
10977 # it in the Import File for the 'aix-soname' feature, so we have
10978 # to replace the "-B" option with "-P" for AIX nm.
10979 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10980 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'
10981 else
10982 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'
10983 fi
10984 aix_use_runtimelinking=no
10985
10986 # Test if we are trying to use run time linking or normal
10987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10988 # have runtime linking enabled, and use it for executables.
10989 # For shared libraries, we enable/disable runtime linking
10990 # depending on the kind of the shared library created -
10991 # when "with_aix_soname,aix_use_runtimelinking" is:
10992 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10993 # "aix,yes" lib.so shared, rtl:yes, for executables
10994 # lib.a static archive
10995 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10996 # lib.a(lib.so.V) shared, rtl:no, for executables
10997 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10998 # lib.a(lib.so.V) shared, rtl:no
10999 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11000 # lib.a static archive
11001 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11002 for ld_flag in $LDFLAGS; do
11003 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11004 aix_use_runtimelinking=yes
11005 break
11006 fi
11007 done
11008 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11009 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11010 # so we don't have lib.a shared libs to link our executables.
11011 # We have to force runtime linking in this case.
11012 aix_use_runtimelinking=yes
11013 LDFLAGS="$LDFLAGS -Wl,-brtl"
11014 fi
11015 ;;
11016 esac
11017
11018 exp_sym_flag='-bexport'
11019 no_entry_flag='-bnoentry'
11020 fi
11021
11022 # When large executables or shared objects are built, AIX ld can
11023 # have problems creating the table of contents. If linking a library
11024 # or program results in "error TOC overflow" add -mminimal-toc to
11025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11027
11028 archive_cmds=''
11029 hardcode_direct=yes
11030 hardcode_direct_absolute=yes
11031 hardcode_libdir_separator=':'
11032 link_all_deplibs=yes
11033 file_list_spec='$wl-f,'
11034 case $with_aix_soname,$aix_use_runtimelinking in
11035 aix,*) ;; # traditional, no import file
11036 svr4,* | *,yes) # use import file
11037 # The Import File defines what to hardcode.
11038 hardcode_direct=no
11039 hardcode_direct_absolute=no
11040 ;;
11041 esac
11042
11043 if test yes = "$GCC"; then
11044 case $host_os in aix4.[012]|aix4.[012].*)
11045 # We only want to do this on AIX 4.2 and lower, the check
11046 # below for broken collect2 doesn't work under 4.3+
11047 collect2name=`$CC -print-prog-name=collect2`
11048 if test -f "$collect2name" &&
11049 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11050 then
11051 # We have reworked collect2
11052 :
11053 else
11054 # We have old collect2
11055 hardcode_direct=unsupported
11056 # It fails to find uninstalled libraries when the uninstalled
11057 # path is not listed in the libpath. Setting hardcode_minus_L
11058 # to unsupported forces relinking
11059 hardcode_minus_L=yes
11060 hardcode_libdir_flag_spec='-L$libdir'
11061 hardcode_libdir_separator=
11062 fi
11063 ;;
11064 esac
11065 shared_flag='-shared'
11066 if test yes = "$aix_use_runtimelinking"; then
11067 shared_flag="$shared_flag "'$wl-G'
11068 fi
11069 # Need to ensure runtime linking is disabled for the traditional
11070 # shared library, or the linker may eventually find shared libraries
11071 # /with/ Import File - we do not want to mix them.
11072 shared_flag_aix='-shared'
11073 shared_flag_svr4='-shared $wl-G'
11074 else
11075 # not using gcc
11076 if test ia64 = "$host_cpu"; then
11077 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11078 # chokes on -Wl,-G. The following line is correct:
11079 shared_flag='-G'
11080 else
11081 if test yes = "$aix_use_runtimelinking"; then
11082 shared_flag='$wl-G'
11083 else
11084 shared_flag='$wl-bM:SRE'
11085 fi
11086 shared_flag_aix='$wl-bM:SRE'
11087 shared_flag_svr4='$wl-G'
11088 fi
11089 fi
11090
11091 export_dynamic_flag_spec='$wl-bexpall'
11092 # It seems that -bexpall does not export symbols beginning with
11093 # underscore (_), so it is better to generate a list of symbols to export.
11094 always_export_symbols=yes
11095 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11096 # Warning - without using the other runtime loading flags (-brtl),
11097 # -berok will link without error, but may produce a broken library.
11098 allow_undefined_flag='-berok'
11099 # Determine the default libpath from the value encoded in an
11100 # empty executable.
11101 if test set = "${lt_cv_aix_libpath+set}"; then
11102 aix_libpath=$lt_cv_aix_libpath
11103 else
11104 if ${lt_cv_aix_libpath_+:} false; then :
11105 $as_echo_n "(cached) " >&6
11106 else
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11109
11110 int
11111 main ()
11112 {
11113
11114 ;
11115 return 0;
11116 }
11117 _ACEOF
11118 if ac_fn_c_try_link "$LINENO"; then :
11119
11120 lt_aix_libpath_sed='
11121 /Import File Strings/,/^$/ {
11122 /^0/ {
11123 s/^0 *\([^ ]*\) *$/\1/
11124 p
11125 }
11126 }'
11127 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11128 # Check for a 64-bit object if we didn't find anything.
11129 if test -z "$lt_cv_aix_libpath_"; then
11130 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11131 fi
11132 fi
11133 rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11135 if test -z "$lt_cv_aix_libpath_"; then
11136 lt_cv_aix_libpath_=/usr/lib:/lib
11137 fi
11138
11139 fi
11140
11141 aix_libpath=$lt_cv_aix_libpath_
11142 fi
11143
11144 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11145 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
11146 else
11147 if test ia64 = "$host_cpu"; then
11148 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11149 allow_undefined_flag="-z nodefs"
11150 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"
11151 else
11152 # Determine the default libpath from the value encoded in an
11153 # empty executable.
11154 if test set = "${lt_cv_aix_libpath+set}"; then
11155 aix_libpath=$lt_cv_aix_libpath
11156 else
11157 if ${lt_cv_aix_libpath_+:} false; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h. */
11162
11163 int
11164 main ()
11165 {
11166
11167 ;
11168 return 0;
11169 }
11170 _ACEOF
11171 if ac_fn_c_try_link "$LINENO"; then :
11172
11173 lt_aix_libpath_sed='
11174 /Import File Strings/,/^$/ {
11175 /^0/ {
11176 s/^0 *\([^ ]*\) *$/\1/
11177 p
11178 }
11179 }'
11180 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11181 # Check for a 64-bit object if we didn't find anything.
11182 if test -z "$lt_cv_aix_libpath_"; then
11183 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11184 fi
11185 fi
11186 rm -f core conftest.err conftest.$ac_objext \
11187 conftest$ac_exeext conftest.$ac_ext
11188 if test -z "$lt_cv_aix_libpath_"; then
11189 lt_cv_aix_libpath_=/usr/lib:/lib
11190 fi
11191
11192 fi
11193
11194 aix_libpath=$lt_cv_aix_libpath_
11195 fi
11196
11197 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11198 # Warning - without using the other run time loading flags,
11199 # -berok will link without error, but may produce a broken library.
11200 no_undefined_flag=' $wl-bernotok'
11201 allow_undefined_flag=' $wl-berok'
11202 if test yes = "$with_gnu_ld"; then
11203 # We only use this code for GNU lds that support --whole-archive.
11204 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11205 else
11206 # Exported symbols can be pulled into shared objects from archives
11207 whole_archive_flag_spec='$convenience'
11208 fi
11209 archive_cmds_need_lc=yes
11210 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11211 # -brtl affects multiple linker settings, -berok does not and is overridden later
11212 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11213 if test svr4 != "$with_aix_soname"; then
11214 # This is similar to how AIX traditionally builds its shared libraries.
11215 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'
11216 fi
11217 if test aix != "$with_aix_soname"; then
11218 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'
11219 else
11220 # used by -dlpreopen to get the symbols
11221 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11222 fi
11223 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11224 fi
11225 fi
11226 ;;
11227
11228 amigaos*)
11229 case $host_cpu in
11230 powerpc)
11231 # see comment about AmigaOS4 .so support
11232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11233 archive_expsym_cmds=''
11234 ;;
11235 m68k)
11236 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)'
11237 hardcode_libdir_flag_spec='-L$libdir'
11238 hardcode_minus_L=yes
11239 ;;
11240 esac
11241 ;;
11242
11243 bsdi[45]*)
11244 export_dynamic_flag_spec=-rdynamic
11245 ;;
11246
11247 cygwin* | mingw* | pw32* | cegcc*)
11248 # When not using gcc, we currently assume that we are using
11249 # Microsoft Visual C++.
11250 # hardcode_libdir_flag_spec is actually meaningless, as there is
11251 # no search path for DLLs.
11252 case $cc_basename in
11253 cl*)
11254 # Native MSVC
11255 hardcode_libdir_flag_spec=' '
11256 allow_undefined_flag=unsupported
11257 always_export_symbols=yes
11258 file_list_spec='@'
11259 # Tell ltmain to make .lib files, not .a files.
11260 libext=lib
11261 # Tell ltmain to make .dll files, not .so files.
11262 shrext_cmds=.dll
11263 # FIXME: Setting linknames here is a bad hack.
11264 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11265 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11266 cp "$export_symbols" "$output_objdir/$soname.def";
11267 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11268 else
11269 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11270 fi~
11271 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11272 linknames='
11273 # The linker will not automatically build a static lib if we build a DLL.
11274 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11275 enable_shared_with_static_runtimes=yes
11276 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11277 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11278 # Don't use ranlib
11279 old_postinstall_cmds='chmod 644 $oldlib'
11280 postlink_cmds='lt_outputfile="@OUTPUT@"~
11281 lt_tool_outputfile="@TOOL_OUTPUT@"~
11282 case $lt_outputfile in
11283 *.exe|*.EXE) ;;
11284 *)
11285 lt_outputfile=$lt_outputfile.exe
11286 lt_tool_outputfile=$lt_tool_outputfile.exe
11287 ;;
11288 esac~
11289 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11290 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11291 $RM "$lt_outputfile.manifest";
11292 fi'
11293 ;;
11294 *)
11295 # Assume MSVC wrapper
11296 hardcode_libdir_flag_spec=' '
11297 allow_undefined_flag=unsupported
11298 # Tell ltmain to make .lib files, not .a files.
11299 libext=lib
11300 # Tell ltmain to make .dll files, not .so files.
11301 shrext_cmds=.dll
11302 # FIXME: Setting linknames here is a bad hack.
11303 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11304 # The linker will automatically build a .lib file if we build a DLL.
11305 old_archive_from_new_cmds='true'
11306 # FIXME: Should let the user specify the lib program.
11307 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11308 enable_shared_with_static_runtimes=yes
11309 ;;
11310 esac
11311 ;;
11312
11313 darwin* | rhapsody*)
11314
11315
11316 archive_cmds_need_lc=no
11317 hardcode_direct=no
11318 hardcode_automatic=yes
11319 hardcode_shlibpath_var=unsupported
11320 if test yes = "$lt_cv_ld_force_load"; then
11321 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\"`'
11322
11323 else
11324 whole_archive_flag_spec=''
11325 fi
11326 link_all_deplibs=yes
11327 allow_undefined_flag=$_lt_dar_allow_undefined
11328 case $cc_basename in
11329 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11330 *) _lt_dar_can_shared=$GCC ;;
11331 esac
11332 if test yes = "$_lt_dar_can_shared"; then
11333 output_verbose_link_cmd=func_echo_all
11334 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11335 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11336 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"
11337 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"
11338
11339 else
11340 ld_shlibs=no
11341 fi
11342
11343 ;;
11344
11345 dgux*)
11346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11347 hardcode_libdir_flag_spec='-L$libdir'
11348 hardcode_shlibpath_var=no
11349 ;;
11350
11351 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11352 # support. Future versions do this automatically, but an explicit c++rt0.o
11353 # does not break anything, and helps significantly (at the cost of a little
11354 # extra space).
11355 freebsd2.2*)
11356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11357 hardcode_libdir_flag_spec='-R$libdir'
11358 hardcode_direct=yes
11359 hardcode_shlibpath_var=no
11360 ;;
11361
11362 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11363 freebsd2.*)
11364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11365 hardcode_direct=yes
11366 hardcode_minus_L=yes
11367 hardcode_shlibpath_var=no
11368 ;;
11369
11370 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11371 freebsd* | dragonfly*)
11372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11373 hardcode_libdir_flag_spec='-R$libdir'
11374 hardcode_direct=yes
11375 hardcode_shlibpath_var=no
11376 ;;
11377
11378 hpux9*)
11379 if test yes = "$GCC"; then
11380 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'
11381 else
11382 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'
11383 fi
11384 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11385 hardcode_libdir_separator=:
11386 hardcode_direct=yes
11387
11388 # hardcode_minus_L: Not really in the search PATH,
11389 # but as the default location of the library.
11390 hardcode_minus_L=yes
11391 export_dynamic_flag_spec='$wl-E'
11392 ;;
11393
11394 hpux10*)
11395 if test yes,no = "$GCC,$with_gnu_ld"; then
11396 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11397 else
11398 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11399 fi
11400 if test no = "$with_gnu_ld"; then
11401 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11402 hardcode_libdir_separator=:
11403 hardcode_direct=yes
11404 hardcode_direct_absolute=yes
11405 export_dynamic_flag_spec='$wl-E'
11406 # hardcode_minus_L: Not really in the search PATH,
11407 # but as the default location of the library.
11408 hardcode_minus_L=yes
11409 fi
11410 ;;
11411
11412 hpux11*)
11413 if test yes,no = "$GCC,$with_gnu_ld"; then
11414 case $host_cpu in
11415 hppa*64*)
11416 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11417 ;;
11418 ia64*)
11419 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11420 ;;
11421 *)
11422 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11423 ;;
11424 esac
11425 else
11426 case $host_cpu in
11427 hppa*64*)
11428 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11429 ;;
11430 ia64*)
11431 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11432 ;;
11433 *)
11434
11435 # Older versions of the 11.00 compiler do not understand -b yet
11436 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11438 $as_echo_n "checking if $CC understands -b... " >&6; }
11439 if ${lt_cv_prog_compiler__b+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 lt_cv_prog_compiler__b=no
11443 save_LDFLAGS=$LDFLAGS
11444 LDFLAGS="$LDFLAGS -b"
11445 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11446 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11447 # The linker can only warn and ignore the option if not recognized
11448 # So say no if there are warnings
11449 if test -s conftest.err; then
11450 # Append any errors to the config.log.
11451 cat conftest.err 1>&5
11452 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11454 if diff conftest.exp conftest.er2 >/dev/null; then
11455 lt_cv_prog_compiler__b=yes
11456 fi
11457 else
11458 lt_cv_prog_compiler__b=yes
11459 fi
11460 fi
11461 $RM -r conftest*
11462 LDFLAGS=$save_LDFLAGS
11463
11464 fi
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11466 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11467
11468 if test yes = "$lt_cv_prog_compiler__b"; then
11469 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11470 else
11471 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11472 fi
11473
11474 ;;
11475 esac
11476 fi
11477 if test no = "$with_gnu_ld"; then
11478 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11479 hardcode_libdir_separator=:
11480
11481 case $host_cpu in
11482 hppa*64*|ia64*)
11483 hardcode_direct=no
11484 hardcode_shlibpath_var=no
11485 ;;
11486 *)
11487 hardcode_direct=yes
11488 hardcode_direct_absolute=yes
11489 export_dynamic_flag_spec='$wl-E'
11490
11491 # hardcode_minus_L: Not really in the search PATH,
11492 # but as the default location of the library.
11493 hardcode_minus_L=yes
11494 ;;
11495 esac
11496 fi
11497 ;;
11498
11499 irix5* | irix6* | nonstopux*)
11500 if test yes = "$GCC"; then
11501 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'
11502 # Try to use the -exported_symbol ld option, if it does not
11503 # work, assume that -exports_file does not work either and
11504 # implicitly export all symbols.
11505 # This should be the same for all languages, so no per-tag cache variable.
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11507 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11508 if ${lt_cv_irix_exported_symbol+:} false; then :
11509 $as_echo_n "(cached) " >&6
11510 else
11511 save_LDFLAGS=$LDFLAGS
11512 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11515 int foo (void) { return 0; }
11516 _ACEOF
11517 if ac_fn_c_try_link "$LINENO"; then :
11518 lt_cv_irix_exported_symbol=yes
11519 else
11520 lt_cv_irix_exported_symbol=no
11521 fi
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LDFLAGS=$save_LDFLAGS
11525 fi
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11527 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11528 if test yes = "$lt_cv_irix_exported_symbol"; then
11529 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'
11530 fi
11531 else
11532 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'
11533 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'
11534 fi
11535 archive_cmds_need_lc='no'
11536 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11537 hardcode_libdir_separator=:
11538 inherit_rpath=yes
11539 link_all_deplibs=yes
11540 ;;
11541
11542 linux*)
11543 case $cc_basename in
11544 tcc*)
11545 # Fabrice Bellard et al's Tiny C Compiler
11546 ld_shlibs=yes
11547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11548 ;;
11549 esac
11550 ;;
11551
11552 netbsd*)
11553 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11555 else
11556 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11557 fi
11558 hardcode_libdir_flag_spec='-R$libdir'
11559 hardcode_direct=yes
11560 hardcode_shlibpath_var=no
11561 ;;
11562
11563 newsos6)
11564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11565 hardcode_direct=yes
11566 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11567 hardcode_libdir_separator=:
11568 hardcode_shlibpath_var=no
11569 ;;
11570
11571 *nto* | *qnx*)
11572 ;;
11573
11574 openbsd* | bitrig*)
11575 if test -f /usr/libexec/ld.so; then
11576 hardcode_direct=yes
11577 hardcode_shlibpath_var=no
11578 hardcode_direct_absolute=yes
11579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11581 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11582 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11583 export_dynamic_flag_spec='$wl-E'
11584 else
11585 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11586 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11587 fi
11588 else
11589 ld_shlibs=no
11590 fi
11591 ;;
11592
11593 os2*)
11594 hardcode_libdir_flag_spec='-L$libdir'
11595 hardcode_minus_L=yes
11596 allow_undefined_flag=unsupported
11597 shrext_cmds=.dll
11598 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11599 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11600 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11601 $ECHO EXPORTS >> $output_objdir/$libname.def~
11602 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11603 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11604 emximp -o $lib $output_objdir/$libname.def'
11605 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11606 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11607 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11608 $ECHO EXPORTS >> $output_objdir/$libname.def~
11609 prefix_cmds="$SED"~
11610 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11611 prefix_cmds="$prefix_cmds -e 1d";
11612 fi~
11613 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11614 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11615 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11616 emximp -o $lib $output_objdir/$libname.def'
11617 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11618 enable_shared_with_static_runtimes=yes
11619 ;;
11620
11621 osf3*)
11622 if test yes = "$GCC"; then
11623 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11624 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'
11625 else
11626 allow_undefined_flag=' -expect_unresolved \*'
11627 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'
11628 fi
11629 archive_cmds_need_lc='no'
11630 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11631 hardcode_libdir_separator=:
11632 ;;
11633
11634 osf4* | osf5*) # as osf3* with the addition of -msym flag
11635 if test yes = "$GCC"; then
11636 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11637 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'
11638 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11639 else
11640 allow_undefined_flag=' -expect_unresolved \*'
11641 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'
11642 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~
11643 $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'
11644
11645 # Both c and cxx compiler support -rpath directly
11646 hardcode_libdir_flag_spec='-rpath $libdir'
11647 fi
11648 archive_cmds_need_lc='no'
11649 hardcode_libdir_separator=:
11650 ;;
11651
11652 solaris*)
11653 no_undefined_flag=' -z defs'
11654 if test yes = "$GCC"; then
11655 wlarc='$wl'
11656 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11657 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11658 $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'
11659 else
11660 case `$CC -V 2>&1` in
11661 *"Compilers 5.0"*)
11662 wlarc=''
11663 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11664 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11665 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11666 ;;
11667 *)
11668 wlarc='$wl'
11669 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11670 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11671 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11672 ;;
11673 esac
11674 fi
11675 hardcode_libdir_flag_spec='-R$libdir'
11676 hardcode_shlibpath_var=no
11677 case $host_os in
11678 solaris2.[0-5] | solaris2.[0-5].*) ;;
11679 *)
11680 # The compiler driver will combine and reorder linker options,
11681 # but understands '-z linker_flag'. GCC discards it without '$wl',
11682 # but is careful enough not to reorder.
11683 # Supported since Solaris 2.6 (maybe 2.5.1?)
11684 if test yes = "$GCC"; then
11685 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11686 else
11687 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11688 fi
11689 ;;
11690 esac
11691 link_all_deplibs=yes
11692 ;;
11693
11694 sunos4*)
11695 if test sequent = "$host_vendor"; then
11696 # Use $CC to link under sequent, because it throws in some extra .o
11697 # files that make .init and .fini sections work.
11698 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11699 else
11700 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11701 fi
11702 hardcode_libdir_flag_spec='-L$libdir'
11703 hardcode_direct=yes
11704 hardcode_minus_L=yes
11705 hardcode_shlibpath_var=no
11706 ;;
11707
11708 sysv4)
11709 case $host_vendor in
11710 sni)
11711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11712 hardcode_direct=yes # is this really true???
11713 ;;
11714 siemens)
11715 ## LD is ld it makes a PLAMLIB
11716 ## CC just makes a GrossModule.
11717 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11718 reload_cmds='$CC -r -o $output$reload_objs'
11719 hardcode_direct=no
11720 ;;
11721 motorola)
11722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11723 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11724 ;;
11725 esac
11726 runpath_var='LD_RUN_PATH'
11727 hardcode_shlibpath_var=no
11728 ;;
11729
11730 sysv4.3*)
11731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11732 hardcode_shlibpath_var=no
11733 export_dynamic_flag_spec='-Bexport'
11734 ;;
11735
11736 sysv4*MP*)
11737 if test -d /usr/nec; then
11738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11739 hardcode_shlibpath_var=no
11740 runpath_var=LD_RUN_PATH
11741 hardcode_runpath_var=yes
11742 ld_shlibs=yes
11743 fi
11744 ;;
11745
11746 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11747 no_undefined_flag='$wl-z,text'
11748 archive_cmds_need_lc=no
11749 hardcode_shlibpath_var=no
11750 runpath_var='LD_RUN_PATH'
11751
11752 if test yes = "$GCC"; then
11753 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11754 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11755 else
11756 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11757 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11758 fi
11759 ;;
11760
11761 sysv5* | sco3.2v5* | sco5v6*)
11762 # Note: We CANNOT use -z defs as we might desire, because we do not
11763 # link with -lc, and that would cause any symbols used from libc to
11764 # always be unresolved, which means just about no library would
11765 # ever link correctly. If we're not using GNU ld we use -z text
11766 # though, which does catch some bad symbols but isn't as heavy-handed
11767 # as -z defs.
11768 no_undefined_flag='$wl-z,text'
11769 allow_undefined_flag='$wl-z,nodefs'
11770 archive_cmds_need_lc=no
11771 hardcode_shlibpath_var=no
11772 hardcode_libdir_flag_spec='$wl-R,$libdir'
11773 hardcode_libdir_separator=':'
11774 link_all_deplibs=yes
11775 export_dynamic_flag_spec='$wl-Bexport'
11776 runpath_var='LD_RUN_PATH'
11777
11778 if test yes = "$GCC"; then
11779 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11780 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11781 else
11782 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11784 fi
11785 ;;
11786
11787 uts4*)
11788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11789 hardcode_libdir_flag_spec='-L$libdir'
11790 hardcode_shlibpath_var=no
11791 ;;
11792
11793 *)
11794 ld_shlibs=no
11795 ;;
11796 esac
11797
11798 if test sni = "$host_vendor"; then
11799 case $host in
11800 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11801 export_dynamic_flag_spec='$wl-Blargedynsym'
11802 ;;
11803 esac
11804 fi
11805 fi
11806
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11808 $as_echo "$ld_shlibs" >&6; }
11809 test no = "$ld_shlibs" && can_build_shared=no
11810
11811 with_gnu_ld=$with_gnu_ld
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827 #
11828 # Do we need to explicitly link libc?
11829 #
11830 case "x$archive_cmds_need_lc" in
11831 x|xyes)
11832 # Assume -lc should be added
11833 archive_cmds_need_lc=yes
11834
11835 if test yes,yes = "$GCC,$enable_shared"; then
11836 case $archive_cmds in
11837 *'~'*)
11838 # FIXME: we may have to deal with multi-command sequences.
11839 ;;
11840 '$CC '*)
11841 # Test whether the compiler implicitly links with -lc since on some
11842 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11843 # to ld, don't add -lc before -lgcc.
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11845 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11846 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 $RM conftest*
11850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11851
11852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11853 (eval $ac_compile) 2>&5
11854 ac_status=$?
11855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11856 test $ac_status = 0; } 2>conftest.err; then
11857 soname=conftest
11858 lib=conftest
11859 libobjs=conftest.$ac_objext
11860 deplibs=
11861 wl=$lt_prog_compiler_wl
11862 pic_flag=$lt_prog_compiler_pic
11863 compiler_flags=-v
11864 linker_flags=-v
11865 verstring=
11866 output_objdir=.
11867 libname=conftest
11868 lt_save_allow_undefined_flag=$allow_undefined_flag
11869 allow_undefined_flag=
11870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11871 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11872 ac_status=$?
11873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11874 test $ac_status = 0; }
11875 then
11876 lt_cv_archive_cmds_need_lc=no
11877 else
11878 lt_cv_archive_cmds_need_lc=yes
11879 fi
11880 allow_undefined_flag=$lt_save_allow_undefined_flag
11881 else
11882 cat conftest.err 1>&5
11883 fi
11884 $RM conftest*
11885
11886 fi
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11888 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11889 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11890 ;;
11891 esac
11892 fi
11893 ;;
11894 esac
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12048 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12049
12050 if test yes = "$GCC"; then
12051 case $host_os in
12052 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12053 *) lt_awk_arg='/^libraries:/' ;;
12054 esac
12055 case $host_os in
12056 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12057 *) lt_sed_strip_eq='s|=/|/|g' ;;
12058 esac
12059 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12060 case $lt_search_path_spec in
12061 *\;*)
12062 # if the path contains ";" then we assume it to be the separator
12063 # otherwise default to the standard path separator (i.e. ":") - it is
12064 # assumed that no part of a normal pathname contains ";" but that should
12065 # okay in the real world where ";" in dirpaths is itself problematic.
12066 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12067 ;;
12068 *)
12069 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12070 ;;
12071 esac
12072 # Ok, now we have the path, separated by spaces, we can step through it
12073 # and add multilib dir if necessary...
12074 lt_tmp_lt_search_path_spec=
12075 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12076 # ...but if some path component already ends with the multilib dir we assume
12077 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12078 case "$lt_multi_os_dir; $lt_search_path_spec " in
12079 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12080 lt_multi_os_dir=
12081 ;;
12082 esac
12083 for lt_sys_path in $lt_search_path_spec; do
12084 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12085 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12086 elif test -n "$lt_multi_os_dir"; then
12087 test -d "$lt_sys_path" && \
12088 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12089 fi
12090 done
12091 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12092 BEGIN {RS = " "; FS = "/|\n";} {
12093 lt_foo = "";
12094 lt_count = 0;
12095 for (lt_i = NF; lt_i > 0; lt_i--) {
12096 if ($lt_i != "" && $lt_i != ".") {
12097 if ($lt_i == "..") {
12098 lt_count++;
12099 } else {
12100 if (lt_count == 0) {
12101 lt_foo = "/" $lt_i lt_foo;
12102 } else {
12103 lt_count--;
12104 }
12105 }
12106 }
12107 }
12108 if (lt_foo != "") { lt_freq[lt_foo]++; }
12109 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12110 }'`
12111 # AWK program above erroneously prepends '/' to C:/dos/paths
12112 # for these hosts.
12113 case $host_os in
12114 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12115 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12116 esac
12117 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12118 else
12119 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12120 fi
12121 library_names_spec=
12122 libname_spec='lib$name'
12123 soname_spec=
12124 shrext_cmds=.so
12125 postinstall_cmds=
12126 postuninstall_cmds=
12127 finish_cmds=
12128 finish_eval=
12129 shlibpath_var=
12130 shlibpath_overrides_runpath=unknown
12131 version_type=none
12132 dynamic_linker="$host_os ld.so"
12133 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12134 need_lib_prefix=unknown
12135 hardcode_into_libs=no
12136
12137 # when you set need_version to no, make sure it does not cause -set_version
12138 # flags to be left without arguments
12139 need_version=unknown
12140
12141
12142
12143 case $host_os in
12144 aix3*)
12145 version_type=linux # correct to gnu/linux during the next big refactor
12146 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12147 shlibpath_var=LIBPATH
12148
12149 # AIX 3 has no versioning support, so we append a major version to the name.
12150 soname_spec='$libname$release$shared_ext$major'
12151 ;;
12152
12153 aix[4-9]*)
12154 version_type=linux # correct to gnu/linux during the next big refactor
12155 need_lib_prefix=no
12156 need_version=no
12157 hardcode_into_libs=yes
12158 if test ia64 = "$host_cpu"; then
12159 # AIX 5 supports IA64
12160 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12161 shlibpath_var=LD_LIBRARY_PATH
12162 else
12163 # With GCC up to 2.95.x, collect2 would create an import file
12164 # for dependence libraries. The import file would start with
12165 # the line '#! .'. This would cause the generated library to
12166 # depend on '.', always an invalid library. This was fixed in
12167 # development snapshots of GCC prior to 3.0.
12168 case $host_os in
12169 aix4 | aix4.[01] | aix4.[01].*)
12170 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12171 echo ' yes '
12172 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12173 :
12174 else
12175 can_build_shared=no
12176 fi
12177 ;;
12178 esac
12179 # Using Import Files as archive members, it is possible to support
12180 # filename-based versioning of shared library archives on AIX. While
12181 # this would work for both with and without runtime linking, it will
12182 # prevent static linking of such archives. So we do filename-based
12183 # shared library versioning with .so extension only, which is used
12184 # when both runtime linking and shared linking is enabled.
12185 # Unfortunately, runtime linking may impact performance, so we do
12186 # not want this to be the default eventually. Also, we use the
12187 # versioned .so libs for executables only if there is the -brtl
12188 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12189 # To allow for filename-based versioning support, we need to create
12190 # libNAME.so.V as an archive file, containing:
12191 # *) an Import File, referring to the versioned filename of the
12192 # archive as well as the shared archive member, telling the
12193 # bitwidth (32 or 64) of that shared object, and providing the
12194 # list of exported symbols of that shared object, eventually
12195 # decorated with the 'weak' keyword
12196 # *) the shared object with the F_LOADONLY flag set, to really avoid
12197 # it being seen by the linker.
12198 # At run time we better use the real file rather than another symlink,
12199 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12200
12201 case $with_aix_soname,$aix_use_runtimelinking in
12202 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12203 # soname into executable. Probably we can add versioning support to
12204 # collect2, so additional links can be useful in future.
12205 aix,yes) # traditional libtool
12206 dynamic_linker='AIX unversionable lib.so'
12207 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12208 # instead of lib<name>.a to let people know that these are not
12209 # typical AIX shared libraries.
12210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12211 ;;
12212 aix,no) # traditional AIX only
12213 dynamic_linker='AIX lib.a(lib.so.V)'
12214 # We preserve .a as extension for shared libraries through AIX4.2
12215 # and later when we are not doing run time linking.
12216 library_names_spec='$libname$release.a $libname.a'
12217 soname_spec='$libname$release$shared_ext$major'
12218 ;;
12219 svr4,*) # full svr4 only
12220 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12221 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12222 # We do not specify a path in Import Files, so LIBPATH fires.
12223 shlibpath_overrides_runpath=yes
12224 ;;
12225 *,yes) # both, prefer svr4
12226 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12227 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12228 # unpreferred sharedlib libNAME.a needs extra handling
12229 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"'
12230 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"'
12231 # We do not specify a path in Import Files, so LIBPATH fires.
12232 shlibpath_overrides_runpath=yes
12233 ;;
12234 *,no) # both, prefer aix
12235 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12236 library_names_spec='$libname$release.a $libname.a'
12237 soname_spec='$libname$release$shared_ext$major'
12238 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12239 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)'
12240 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"'
12241 ;;
12242 esac
12243 shlibpath_var=LIBPATH
12244 fi
12245 ;;
12246
12247 amigaos*)
12248 case $host_cpu in
12249 powerpc)
12250 # Since July 2007 AmigaOS4 officially supports .so libraries.
12251 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12253 ;;
12254 m68k)
12255 library_names_spec='$libname.ixlibrary $libname.a'
12256 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12257 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'
12258 ;;
12259 esac
12260 ;;
12261
12262 beos*)
12263 library_names_spec='$libname$shared_ext'
12264 dynamic_linker="$host_os ld.so"
12265 shlibpath_var=LIBRARY_PATH
12266 ;;
12267
12268 bsdi[45]*)
12269 version_type=linux # correct to gnu/linux during the next big refactor
12270 need_version=no
12271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12272 soname_spec='$libname$release$shared_ext$major'
12273 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12274 shlibpath_var=LD_LIBRARY_PATH
12275 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12276 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12277 # the default ld.so.conf also contains /usr/contrib/lib and
12278 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12279 # libtool to hard-code these into programs
12280 ;;
12281
12282 cygwin* | mingw* | pw32* | cegcc*)
12283 version_type=windows
12284 shrext_cmds=.dll
12285 need_version=no
12286 need_lib_prefix=no
12287
12288 case $GCC,$cc_basename in
12289 yes,*)
12290 # gcc
12291 library_names_spec='$libname.dll.a'
12292 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12293 postinstall_cmds='base_file=`basename \$file`~
12294 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12295 dldir=$destdir/`dirname \$dlpath`~
12296 test -d \$dldir || mkdir -p \$dldir~
12297 $install_prog $dir/$dlname \$dldir/$dlname~
12298 chmod a+x \$dldir/$dlname~
12299 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12300 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12301 fi'
12302 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12303 dlpath=$dir/\$dldll~
12304 $RM \$dlpath'
12305 shlibpath_overrides_runpath=yes
12306
12307 case $host_os in
12308 cygwin*)
12309 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12310 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12311
12312 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12313 ;;
12314 mingw* | cegcc*)
12315 # MinGW DLLs use traditional 'lib' prefix
12316 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12317 ;;
12318 pw32*)
12319 # pw32 DLLs use 'pw' prefix rather than 'lib'
12320 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12321 ;;
12322 esac
12323 dynamic_linker='Win32 ld.exe'
12324 ;;
12325
12326 *,cl*)
12327 # Native MSVC
12328 libname_spec='$name'
12329 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12330 library_names_spec='$libname.dll.lib'
12331
12332 case $build_os in
12333 mingw*)
12334 sys_lib_search_path_spec=
12335 lt_save_ifs=$IFS
12336 IFS=';'
12337 for lt_path in $LIB
12338 do
12339 IFS=$lt_save_ifs
12340 # Let DOS variable expansion print the short 8.3 style file name.
12341 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12342 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12343 done
12344 IFS=$lt_save_ifs
12345 # Convert to MSYS style.
12346 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12347 ;;
12348 cygwin*)
12349 # Convert to unix form, then to dos form, then back to unix form
12350 # but this time dos style (no spaces!) so that the unix form looks
12351 # like /cygdrive/c/PROGRA~1:/cygdr...
12352 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12353 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12354 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12355 ;;
12356 *)
12357 sys_lib_search_path_spec=$LIB
12358 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12359 # It is most probably a Windows format PATH.
12360 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12361 else
12362 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12363 fi
12364 # FIXME: find the short name or the path components, as spaces are
12365 # common. (e.g. "Program Files" -> "PROGRA~1")
12366 ;;
12367 esac
12368
12369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12370 postinstall_cmds='base_file=`basename \$file`~
12371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12372 dldir=$destdir/`dirname \$dlpath`~
12373 test -d \$dldir || mkdir -p \$dldir~
12374 $install_prog $dir/$dlname \$dldir/$dlname'
12375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12376 dlpath=$dir/\$dldll~
12377 $RM \$dlpath'
12378 shlibpath_overrides_runpath=yes
12379 dynamic_linker='Win32 link.exe'
12380 ;;
12381
12382 *)
12383 # Assume MSVC wrapper
12384 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12385 dynamic_linker='Win32 ld.exe'
12386 ;;
12387 esac
12388 # FIXME: first we should search . and the directory the executable is in
12389 shlibpath_var=PATH
12390 ;;
12391
12392 darwin* | rhapsody*)
12393 dynamic_linker="$host_os dyld"
12394 version_type=darwin
12395 need_lib_prefix=no
12396 need_version=no
12397 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12398 soname_spec='$libname$release$major$shared_ext'
12399 shlibpath_overrides_runpath=yes
12400 shlibpath_var=DYLD_LIBRARY_PATH
12401 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12402
12403 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12404 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12405 ;;
12406
12407 dgux*)
12408 version_type=linux # correct to gnu/linux during the next big refactor
12409 need_lib_prefix=no
12410 need_version=no
12411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12412 soname_spec='$libname$release$shared_ext$major'
12413 shlibpath_var=LD_LIBRARY_PATH
12414 ;;
12415
12416 freebsd* | dragonfly*)
12417 # DragonFly does not have aout. When/if they implement a new
12418 # versioning mechanism, adjust this.
12419 if test -x /usr/bin/objformat; then
12420 objformat=`/usr/bin/objformat`
12421 else
12422 case $host_os in
12423 freebsd[23].*) objformat=aout ;;
12424 *) objformat=elf ;;
12425 esac
12426 fi
12427 version_type=freebsd-$objformat
12428 case $version_type in
12429 freebsd-elf*)
12430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12431 soname_spec='$libname$release$shared_ext$major'
12432 need_version=no
12433 need_lib_prefix=no
12434 ;;
12435 freebsd-*)
12436 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12437 need_version=yes
12438 ;;
12439 esac
12440 shlibpath_var=LD_LIBRARY_PATH
12441 case $host_os in
12442 freebsd2.*)
12443 shlibpath_overrides_runpath=yes
12444 ;;
12445 freebsd3.[01]* | freebsdelf3.[01]*)
12446 shlibpath_overrides_runpath=yes
12447 hardcode_into_libs=yes
12448 ;;
12449 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12450 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12451 shlibpath_overrides_runpath=no
12452 hardcode_into_libs=yes
12453 ;;
12454 *) # from 4.6 on, and DragonFly
12455 shlibpath_overrides_runpath=yes
12456 hardcode_into_libs=yes
12457 ;;
12458 esac
12459 ;;
12460
12461 haiku*)
12462 version_type=linux # correct to gnu/linux during the next big refactor
12463 need_lib_prefix=no
12464 need_version=no
12465 dynamic_linker="$host_os runtime_loader"
12466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12467 soname_spec='$libname$release$shared_ext$major'
12468 shlibpath_var=LIBRARY_PATH
12469 shlibpath_overrides_runpath=no
12470 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12471 hardcode_into_libs=yes
12472 ;;
12473
12474 hpux9* | hpux10* | hpux11*)
12475 # Give a soname corresponding to the major version so that dld.sl refuses to
12476 # link against other versions.
12477 version_type=sunos
12478 need_lib_prefix=no
12479 need_version=no
12480 case $host_cpu in
12481 ia64*)
12482 shrext_cmds='.so'
12483 hardcode_into_libs=yes
12484 dynamic_linker="$host_os dld.so"
12485 shlibpath_var=LD_LIBRARY_PATH
12486 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12488 soname_spec='$libname$release$shared_ext$major'
12489 if test 32 = "$HPUX_IA64_MODE"; then
12490 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12491 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12492 else
12493 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12494 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12495 fi
12496 ;;
12497 hppa*64*)
12498 shrext_cmds='.sl'
12499 hardcode_into_libs=yes
12500 dynamic_linker="$host_os dld.sl"
12501 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12504 soname_spec='$libname$release$shared_ext$major'
12505 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12507 ;;
12508 *)
12509 shrext_cmds='.sl'
12510 dynamic_linker="$host_os dld.sl"
12511 shlibpath_var=SHLIB_PATH
12512 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12514 soname_spec='$libname$release$shared_ext$major'
12515 ;;
12516 esac
12517 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12518 postinstall_cmds='chmod 555 $lib'
12519 # or fails outright, so override atomically:
12520 install_override_mode=555
12521 ;;
12522
12523 interix[3-9]*)
12524 version_type=linux # correct to gnu/linux during the next big refactor
12525 need_lib_prefix=no
12526 need_version=no
12527 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12528 soname_spec='$libname$release$shared_ext$major'
12529 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12530 shlibpath_var=LD_LIBRARY_PATH
12531 shlibpath_overrides_runpath=no
12532 hardcode_into_libs=yes
12533 ;;
12534
12535 irix5* | irix6* | nonstopux*)
12536 case $host_os in
12537 nonstopux*) version_type=nonstopux ;;
12538 *)
12539 if test yes = "$lt_cv_prog_gnu_ld"; then
12540 version_type=linux # correct to gnu/linux during the next big refactor
12541 else
12542 version_type=irix
12543 fi ;;
12544 esac
12545 need_lib_prefix=no
12546 need_version=no
12547 soname_spec='$libname$release$shared_ext$major'
12548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12549 case $host_os in
12550 irix5* | nonstopux*)
12551 libsuff= shlibsuff=
12552 ;;
12553 *)
12554 case $LD in # libtool.m4 will add one of these switches to LD
12555 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12556 libsuff= shlibsuff= libmagic=32-bit;;
12557 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12558 libsuff=32 shlibsuff=N32 libmagic=N32;;
12559 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12560 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12561 *) libsuff= shlibsuff= libmagic=never-match;;
12562 esac
12563 ;;
12564 esac
12565 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12566 shlibpath_overrides_runpath=no
12567 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12568 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12569 hardcode_into_libs=yes
12570 ;;
12571
12572 # No shared lib support for Linux oldld, aout, or coff.
12573 linux*oldld* | linux*aout* | linux*coff*)
12574 dynamic_linker=no
12575 ;;
12576
12577 linux*android*)
12578 version_type=none # Android doesn't support versioned libraries.
12579 need_lib_prefix=no
12580 need_version=no
12581 library_names_spec='$libname$release$shared_ext'
12582 soname_spec='$libname$release$shared_ext'
12583 finish_cmds=
12584 shlibpath_var=LD_LIBRARY_PATH
12585 shlibpath_overrides_runpath=yes
12586
12587 # This implies no fast_install, which is unacceptable.
12588 # Some rework will be needed to allow for fast_install
12589 # before this can be enabled.
12590 hardcode_into_libs=yes
12591
12592 dynamic_linker='Android linker'
12593 # Don't embed -rpath directories since the linker doesn't support them.
12594 hardcode_libdir_flag_spec='-L$libdir'
12595 ;;
12596
12597 # This must be glibc/ELF.
12598 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12599 version_type=linux # correct to gnu/linux during the next big refactor
12600 need_lib_prefix=no
12601 need_version=no
12602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12603 soname_spec='$libname$release$shared_ext$major'
12604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12605 shlibpath_var=LD_LIBRARY_PATH
12606 shlibpath_overrides_runpath=no
12607
12608 # Some binutils ld are patched to set DT_RUNPATH
12609 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 lt_cv_shlibpath_overrides_runpath=no
12613 save_LDFLAGS=$LDFLAGS
12614 save_libdir=$libdir
12615 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12616 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12619
12620 int
12621 main ()
12622 {
12623
12624 ;
12625 return 0;
12626 }
12627 _ACEOF
12628 if ac_fn_c_try_link "$LINENO"; then :
12629 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12630 lt_cv_shlibpath_overrides_runpath=yes
12631 fi
12632 fi
12633 rm -f core conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext conftest.$ac_ext
12635 LDFLAGS=$save_LDFLAGS
12636 libdir=$save_libdir
12637
12638 fi
12639
12640 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12641
12642 # This implies no fast_install, which is unacceptable.
12643 # Some rework will be needed to allow for fast_install
12644 # before this can be enabled.
12645 hardcode_into_libs=yes
12646
12647 # Ideally, we could use ldconfig to report *all* directores which are
12648 # searched for libraries, however this is still not possible. Aside from not
12649 # being certain /sbin/ldconfig is available, command
12650 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12651 # even though it is searched at run-time. Try to do the best guess by
12652 # appending ld.so.conf contents (and includes) to the search path.
12653 if test -f /etc/ld.so.conf; then
12654 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' ' '`
12655 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12656 fi
12657
12658 # We used to test for /lib/ld.so.1 and disable shared libraries on
12659 # powerpc, because MkLinux only supported shared libraries with the
12660 # GNU dynamic linker. Since this was broken with cross compilers,
12661 # most powerpc-linux boxes support dynamic linking these days and
12662 # people can always --disable-shared, the test was removed, and we
12663 # assume the GNU/Linux dynamic linker is in use.
12664 dynamic_linker='GNU/Linux ld.so'
12665 ;;
12666
12667 netbsd*)
12668 version_type=sunos
12669 need_lib_prefix=no
12670 need_version=no
12671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12672 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12674 dynamic_linker='NetBSD (a.out) ld.so'
12675 else
12676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12677 soname_spec='$libname$release$shared_ext$major'
12678 dynamic_linker='NetBSD ld.elf_so'
12679 fi
12680 shlibpath_var=LD_LIBRARY_PATH
12681 shlibpath_overrides_runpath=yes
12682 hardcode_into_libs=yes
12683 ;;
12684
12685 newsos6)
12686 version_type=linux # correct to gnu/linux during the next big refactor
12687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12688 shlibpath_var=LD_LIBRARY_PATH
12689 shlibpath_overrides_runpath=yes
12690 ;;
12691
12692 *nto* | *qnx*)
12693 version_type=qnx
12694 need_lib_prefix=no
12695 need_version=no
12696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12697 soname_spec='$libname$release$shared_ext$major'
12698 shlibpath_var=LD_LIBRARY_PATH
12699 shlibpath_overrides_runpath=no
12700 hardcode_into_libs=yes
12701 dynamic_linker='ldqnx.so'
12702 ;;
12703
12704 openbsd* | bitrig*)
12705 version_type=sunos
12706 sys_lib_dlsearch_path_spec=/usr/lib
12707 need_lib_prefix=no
12708 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12709 need_version=no
12710 else
12711 need_version=yes
12712 fi
12713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12715 shlibpath_var=LD_LIBRARY_PATH
12716 shlibpath_overrides_runpath=yes
12717 ;;
12718
12719 os2*)
12720 libname_spec='$name'
12721 version_type=windows
12722 shrext_cmds=.dll
12723 need_version=no
12724 need_lib_prefix=no
12725 # OS/2 can only load a DLL with a base name of 8 characters or less.
12726 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12727 v=$($ECHO $release$versuffix | tr -d .-);
12728 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12729 $ECHO $n$v`$shared_ext'
12730 library_names_spec='${libname}_dll.$libext'
12731 dynamic_linker='OS/2 ld.exe'
12732 shlibpath_var=BEGINLIBPATH
12733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12735 postinstall_cmds='base_file=`basename \$file`~
12736 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12737 dldir=$destdir/`dirname \$dlpath`~
12738 test -d \$dldir || mkdir -p \$dldir~
12739 $install_prog $dir/$dlname \$dldir/$dlname~
12740 chmod a+x \$dldir/$dlname~
12741 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12742 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12743 fi'
12744 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12745 dlpath=$dir/\$dldll~
12746 $RM \$dlpath'
12747 ;;
12748
12749 osf3* | osf4* | osf5*)
12750 version_type=osf
12751 need_lib_prefix=no
12752 need_version=no
12753 soname_spec='$libname$release$shared_ext$major'
12754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12755 shlibpath_var=LD_LIBRARY_PATH
12756 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12758 ;;
12759
12760 rdos*)
12761 dynamic_linker=no
12762 ;;
12763
12764 solaris*)
12765 version_type=linux # correct to gnu/linux during the next big refactor
12766 need_lib_prefix=no
12767 need_version=no
12768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12769 soname_spec='$libname$release$shared_ext$major'
12770 shlibpath_var=LD_LIBRARY_PATH
12771 shlibpath_overrides_runpath=yes
12772 hardcode_into_libs=yes
12773 # ldd complains unless libraries are executable
12774 postinstall_cmds='chmod +x $lib'
12775 ;;
12776
12777 sunos4*)
12778 version_type=sunos
12779 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12780 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12781 shlibpath_var=LD_LIBRARY_PATH
12782 shlibpath_overrides_runpath=yes
12783 if test yes = "$with_gnu_ld"; then
12784 need_lib_prefix=no
12785 fi
12786 need_version=yes
12787 ;;
12788
12789 sysv4 | sysv4.3*)
12790 version_type=linux # correct to gnu/linux during the next big refactor
12791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12792 soname_spec='$libname$release$shared_ext$major'
12793 shlibpath_var=LD_LIBRARY_PATH
12794 case $host_vendor in
12795 sni)
12796 shlibpath_overrides_runpath=no
12797 need_lib_prefix=no
12798 runpath_var=LD_RUN_PATH
12799 ;;
12800 siemens)
12801 need_lib_prefix=no
12802 ;;
12803 motorola)
12804 need_lib_prefix=no
12805 need_version=no
12806 shlibpath_overrides_runpath=no
12807 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12808 ;;
12809 esac
12810 ;;
12811
12812 sysv4*MP*)
12813 if test -d /usr/nec; then
12814 version_type=linux # correct to gnu/linux during the next big refactor
12815 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12816 soname_spec='$libname$shared_ext.$major'
12817 shlibpath_var=LD_LIBRARY_PATH
12818 fi
12819 ;;
12820
12821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12822 version_type=sco
12823 need_lib_prefix=no
12824 need_version=no
12825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12826 soname_spec='$libname$release$shared_ext$major'
12827 shlibpath_var=LD_LIBRARY_PATH
12828 shlibpath_overrides_runpath=yes
12829 hardcode_into_libs=yes
12830 if test yes = "$with_gnu_ld"; then
12831 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12832 else
12833 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12834 case $host_os in
12835 sco3.2v5*)
12836 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12837 ;;
12838 esac
12839 fi
12840 sys_lib_dlsearch_path_spec='/usr/lib'
12841 ;;
12842
12843 tpf*)
12844 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12845 version_type=linux # correct to gnu/linux during the next big refactor
12846 need_lib_prefix=no
12847 need_version=no
12848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12849 shlibpath_var=LD_LIBRARY_PATH
12850 shlibpath_overrides_runpath=no
12851 hardcode_into_libs=yes
12852 ;;
12853
12854 uts4*)
12855 version_type=linux # correct to gnu/linux during the next big refactor
12856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12857 soname_spec='$libname$release$shared_ext$major'
12858 shlibpath_var=LD_LIBRARY_PATH
12859 ;;
12860
12861 *)
12862 dynamic_linker=no
12863 ;;
12864 esac
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12866 $as_echo "$dynamic_linker" >&6; }
12867 test no = "$dynamic_linker" && can_build_shared=no
12868
12869 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12870 if test yes = "$GCC"; then
12871 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12872 fi
12873
12874 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12875 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12876 fi
12877
12878 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12879 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12880 fi
12881
12882 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12883 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12884
12885 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12886 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12887
12888 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12889 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12988 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12989 hardcode_action=
12990 if test -n "$hardcode_libdir_flag_spec" ||
12991 test -n "$runpath_var" ||
12992 test yes = "$hardcode_automatic"; then
12993
12994 # We can hardcode non-existent directories.
12995 if test no != "$hardcode_direct" &&
12996 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12997 # have to relink, otherwise we might link with an installed library
12998 # when we should be linking with a yet-to-be-installed one
12999 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13000 test no != "$hardcode_minus_L"; then
13001 # Linking always hardcodes the temporary library directory.
13002 hardcode_action=relink
13003 else
13004 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13005 hardcode_action=immediate
13006 fi
13007 else
13008 # We cannot hardcode anything, or else we can only hardcode existing
13009 # directories.
13010 hardcode_action=unsupported
13011 fi
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13013 $as_echo "$hardcode_action" >&6; }
13014
13015 if test relink = "$hardcode_action" ||
13016 test yes = "$inherit_rpath"; then
13017 # Fast installation is not supported
13018 enable_fast_install=no
13019 elif test yes = "$shlibpath_overrides_runpath" ||
13020 test no = "$enable_shared"; then
13021 # Fast installation is not necessary
13022 enable_fast_install=needless
13023 fi
13024
13025
13026
13027
13028
13029
13030 if test yes != "$enable_dlopen"; then
13031 enable_dlopen=unknown
13032 enable_dlopen_self=unknown
13033 enable_dlopen_self_static=unknown
13034 else
13035 lt_cv_dlopen=no
13036 lt_cv_dlopen_libs=
13037
13038 case $host_os in
13039 beos*)
13040 lt_cv_dlopen=load_add_on
13041 lt_cv_dlopen_libs=
13042 lt_cv_dlopen_self=yes
13043 ;;
13044
13045 mingw* | pw32* | cegcc*)
13046 lt_cv_dlopen=LoadLibrary
13047 lt_cv_dlopen_libs=
13048 ;;
13049
13050 cygwin*)
13051 lt_cv_dlopen=dlopen
13052 lt_cv_dlopen_libs=
13053 ;;
13054
13055 darwin*)
13056 # if libdl is installed we need to link against it
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13058 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13059 if ${ac_cv_lib_dl_dlopen+:} false; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 ac_check_lib_save_LIBS=$LIBS
13063 LIBS="-ldl $LIBS"
13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h. */
13066
13067 /* Override any GCC internal prototype to avoid an error.
13068 Use char because int might match the return type of a GCC
13069 builtin and then its argument prototype would still apply. */
13070 #ifdef __cplusplus
13071 extern "C"
13072 #endif
13073 char dlopen ();
13074 int
13075 main ()
13076 {
13077 return dlopen ();
13078 ;
13079 return 0;
13080 }
13081 _ACEOF
13082 if ac_fn_c_try_link "$LINENO"; then :
13083 ac_cv_lib_dl_dlopen=yes
13084 else
13085 ac_cv_lib_dl_dlopen=no
13086 fi
13087 rm -f core conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13089 LIBS=$ac_check_lib_save_LIBS
13090 fi
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13092 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13093 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13094 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13095 else
13096
13097 lt_cv_dlopen=dyld
13098 lt_cv_dlopen_libs=
13099 lt_cv_dlopen_self=yes
13100
13101 fi
13102
13103 ;;
13104
13105 tpf*)
13106 # Don't try to run any link tests for TPF. We know it's impossible
13107 # because TPF is a cross-compiler, and we know how we open DSOs.
13108 lt_cv_dlopen=dlopen
13109 lt_cv_dlopen_libs=
13110 lt_cv_dlopen_self=no
13111 ;;
13112
13113 *)
13114 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13115 if test "x$ac_cv_func_shl_load" = xyes; then :
13116 lt_cv_dlopen=shl_load
13117 else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13119 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13120 if ${ac_cv_lib_dld_shl_load+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 ac_check_lib_save_LIBS=$LIBS
13124 LIBS="-ldld $LIBS"
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127
13128 /* Override any GCC internal prototype to avoid an error.
13129 Use char because int might match the return type of a GCC
13130 builtin and then its argument prototype would still apply. */
13131 #ifdef __cplusplus
13132 extern "C"
13133 #endif
13134 char shl_load ();
13135 int
13136 main ()
13137 {
13138 return shl_load ();
13139 ;
13140 return 0;
13141 }
13142 _ACEOF
13143 if ac_fn_c_try_link "$LINENO"; then :
13144 ac_cv_lib_dld_shl_load=yes
13145 else
13146 ac_cv_lib_dld_shl_load=no
13147 fi
13148 rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13151 fi
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13153 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13154 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13155 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13156 else
13157 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13158 if test "x$ac_cv_func_dlopen" = xyes; then :
13159 lt_cv_dlopen=dlopen
13160 else
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13162 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13163 if ${ac_cv_lib_dl_dlopen+:} false; then :
13164 $as_echo_n "(cached) " >&6
13165 else
13166 ac_check_lib_save_LIBS=$LIBS
13167 LIBS="-ldl $LIBS"
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13174 #ifdef __cplusplus
13175 extern "C"
13176 #endif
13177 char dlopen ();
13178 int
13179 main ()
13180 {
13181 return dlopen ();
13182 ;
13183 return 0;
13184 }
13185 _ACEOF
13186 if ac_fn_c_try_link "$LINENO"; then :
13187 ac_cv_lib_dl_dlopen=yes
13188 else
13189 ac_cv_lib_dl_dlopen=no
13190 fi
13191 rm -f core conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13193 LIBS=$ac_check_lib_save_LIBS
13194 fi
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13196 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13197 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13198 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13199 else
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13201 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13202 if ${ac_cv_lib_svld_dlopen+:} false; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 ac_check_lib_save_LIBS=$LIBS
13206 LIBS="-lsvld $LIBS"
13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13209
13210 /* Override any GCC internal prototype to avoid an error.
13211 Use char because int might match the return type of a GCC
13212 builtin and then its argument prototype would still apply. */
13213 #ifdef __cplusplus
13214 extern "C"
13215 #endif
13216 char dlopen ();
13217 int
13218 main ()
13219 {
13220 return dlopen ();
13221 ;
13222 return 0;
13223 }
13224 _ACEOF
13225 if ac_fn_c_try_link "$LINENO"; then :
13226 ac_cv_lib_svld_dlopen=yes
13227 else
13228 ac_cv_lib_svld_dlopen=no
13229 fi
13230 rm -f core conftest.err conftest.$ac_objext \
13231 conftest$ac_exeext conftest.$ac_ext
13232 LIBS=$ac_check_lib_save_LIBS
13233 fi
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13235 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13236 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13237 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13238 else
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13240 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13241 if ${ac_cv_lib_dld_dld_link+:} false; then :
13242 $as_echo_n "(cached) " >&6
13243 else
13244 ac_check_lib_save_LIBS=$LIBS
13245 LIBS="-ldld $LIBS"
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13248
13249 /* Override any GCC internal prototype to avoid an error.
13250 Use char because int might match the return type of a GCC
13251 builtin and then its argument prototype would still apply. */
13252 #ifdef __cplusplus
13253 extern "C"
13254 #endif
13255 char dld_link ();
13256 int
13257 main ()
13258 {
13259 return dld_link ();
13260 ;
13261 return 0;
13262 }
13263 _ACEOF
13264 if ac_fn_c_try_link "$LINENO"; then :
13265 ac_cv_lib_dld_dld_link=yes
13266 else
13267 ac_cv_lib_dld_dld_link=no
13268 fi
13269 rm -f core conftest.err conftest.$ac_objext \
13270 conftest$ac_exeext conftest.$ac_ext
13271 LIBS=$ac_check_lib_save_LIBS
13272 fi
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13274 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13275 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13276 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13277 fi
13278
13279
13280 fi
13281
13282
13283 fi
13284
13285
13286 fi
13287
13288
13289 fi
13290
13291
13292 fi
13293
13294 ;;
13295 esac
13296
13297 if test no = "$lt_cv_dlopen"; then
13298 enable_dlopen=no
13299 else
13300 enable_dlopen=yes
13301 fi
13302
13303 case $lt_cv_dlopen in
13304 dlopen)
13305 save_CPPFLAGS=$CPPFLAGS
13306 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13307
13308 save_LDFLAGS=$LDFLAGS
13309 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13310
13311 save_LIBS=$LIBS
13312 LIBS="$lt_cv_dlopen_libs $LIBS"
13313
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13315 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13316 if ${lt_cv_dlopen_self+:} false; then :
13317 $as_echo_n "(cached) " >&6
13318 else
13319 if test yes = "$cross_compiling"; then :
13320 lt_cv_dlopen_self=cross
13321 else
13322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13323 lt_status=$lt_dlunknown
13324 cat > conftest.$ac_ext <<_LT_EOF
13325 #line $LINENO "configure"
13326 #include "confdefs.h"
13327
13328 #if HAVE_DLFCN_H
13329 #include <dlfcn.h>
13330 #endif
13331
13332 #include <stdio.h>
13333
13334 #ifdef RTLD_GLOBAL
13335 # define LT_DLGLOBAL RTLD_GLOBAL
13336 #else
13337 # ifdef DL_GLOBAL
13338 # define LT_DLGLOBAL DL_GLOBAL
13339 # else
13340 # define LT_DLGLOBAL 0
13341 # endif
13342 #endif
13343
13344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13345 find out it does not work in some platform. */
13346 #ifndef LT_DLLAZY_OR_NOW
13347 # ifdef RTLD_LAZY
13348 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13349 # else
13350 # ifdef DL_LAZY
13351 # define LT_DLLAZY_OR_NOW DL_LAZY
13352 # else
13353 # ifdef RTLD_NOW
13354 # define LT_DLLAZY_OR_NOW RTLD_NOW
13355 # else
13356 # ifdef DL_NOW
13357 # define LT_DLLAZY_OR_NOW DL_NOW
13358 # else
13359 # define LT_DLLAZY_OR_NOW 0
13360 # endif
13361 # endif
13362 # endif
13363 # endif
13364 #endif
13365
13366 /* When -fvisibility=hidden is used, assume the code has been annotated
13367 correspondingly for the symbols needed. */
13368 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13369 int fnord () __attribute__((visibility("default")));
13370 #endif
13371
13372 int fnord () { return 42; }
13373 int main ()
13374 {
13375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13376 int status = $lt_dlunknown;
13377
13378 if (self)
13379 {
13380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13381 else
13382 {
13383 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13384 else puts (dlerror ());
13385 }
13386 /* dlclose (self); */
13387 }
13388 else
13389 puts (dlerror ());
13390
13391 return status;
13392 }
13393 _LT_EOF
13394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13395 (eval $ac_link) 2>&5
13396 ac_status=$?
13397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13398 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13399 (./conftest; exit; ) >&5 2>/dev/null
13400 lt_status=$?
13401 case x$lt_status in
13402 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13403 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13404 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13405 esac
13406 else :
13407 # compilation failed
13408 lt_cv_dlopen_self=no
13409 fi
13410 fi
13411 rm -fr conftest*
13412
13413
13414 fi
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13416 $as_echo "$lt_cv_dlopen_self" >&6; }
13417
13418 if test yes = "$lt_cv_dlopen_self"; then
13419 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13421 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13422 if ${lt_cv_dlopen_self_static+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 if test yes = "$cross_compiling"; then :
13426 lt_cv_dlopen_self_static=cross
13427 else
13428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13429 lt_status=$lt_dlunknown
13430 cat > conftest.$ac_ext <<_LT_EOF
13431 #line $LINENO "configure"
13432 #include "confdefs.h"
13433
13434 #if HAVE_DLFCN_H
13435 #include <dlfcn.h>
13436 #endif
13437
13438 #include <stdio.h>
13439
13440 #ifdef RTLD_GLOBAL
13441 # define LT_DLGLOBAL RTLD_GLOBAL
13442 #else
13443 # ifdef DL_GLOBAL
13444 # define LT_DLGLOBAL DL_GLOBAL
13445 # else
13446 # define LT_DLGLOBAL 0
13447 # endif
13448 #endif
13449
13450 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13451 find out it does not work in some platform. */
13452 #ifndef LT_DLLAZY_OR_NOW
13453 # ifdef RTLD_LAZY
13454 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13455 # else
13456 # ifdef DL_LAZY
13457 # define LT_DLLAZY_OR_NOW DL_LAZY
13458 # else
13459 # ifdef RTLD_NOW
13460 # define LT_DLLAZY_OR_NOW RTLD_NOW
13461 # else
13462 # ifdef DL_NOW
13463 # define LT_DLLAZY_OR_NOW DL_NOW
13464 # else
13465 # define LT_DLLAZY_OR_NOW 0
13466 # endif
13467 # endif
13468 # endif
13469 # endif
13470 #endif
13471
13472 /* When -fvisibility=hidden is used, assume the code has been annotated
13473 correspondingly for the symbols needed. */
13474 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13475 int fnord () __attribute__((visibility("default")));
13476 #endif
13477
13478 int fnord () { return 42; }
13479 int main ()
13480 {
13481 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13482 int status = $lt_dlunknown;
13483
13484 if (self)
13485 {
13486 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13487 else
13488 {
13489 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13490 else puts (dlerror ());
13491 }
13492 /* dlclose (self); */
13493 }
13494 else
13495 puts (dlerror ());
13496
13497 return status;
13498 }
13499 _LT_EOF
13500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13501 (eval $ac_link) 2>&5
13502 ac_status=$?
13503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13504 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13505 (./conftest; exit; ) >&5 2>/dev/null
13506 lt_status=$?
13507 case x$lt_status in
13508 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13509 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13510 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13511 esac
13512 else :
13513 # compilation failed
13514 lt_cv_dlopen_self_static=no
13515 fi
13516 fi
13517 rm -fr conftest*
13518
13519
13520 fi
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13522 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13523 fi
13524
13525 CPPFLAGS=$save_CPPFLAGS
13526 LDFLAGS=$save_LDFLAGS
13527 LIBS=$save_LIBS
13528 ;;
13529 esac
13530
13531 case $lt_cv_dlopen_self in
13532 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13533 *) enable_dlopen_self=unknown ;;
13534 esac
13535
13536 case $lt_cv_dlopen_self_static in
13537 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13538 *) enable_dlopen_self_static=unknown ;;
13539 esac
13540 fi
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558 striplib=
13559 old_striplib=
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13561 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13562 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13563 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13564 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13566 $as_echo "yes" >&6; }
13567 else
13568 # FIXME - insert some real tests, host_os isn't really good enough
13569 case $host_os in
13570 darwin*)
13571 if test -n "$STRIP"; then
13572 striplib="$STRIP -x"
13573 old_striplib="$STRIP -S"
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13575 $as_echo "yes" >&6; }
13576 else
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578 $as_echo "no" >&6; }
13579 fi
13580 ;;
13581 *)
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583 $as_echo "no" >&6; }
13584 ;;
13585 esac
13586 fi
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599 # Report what library types will actually be built
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13601 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13603 $as_echo "$can_build_shared" >&6; }
13604
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13606 $as_echo_n "checking whether to build shared libraries... " >&6; }
13607 test no = "$can_build_shared" && enable_shared=no
13608
13609 # On AIX, shared libraries and static libraries use the same namespace, and
13610 # are all built from PIC.
13611 case $host_os in
13612 aix3*)
13613 test yes = "$enable_shared" && enable_static=no
13614 if test -n "$RANLIB"; then
13615 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13616 postinstall_cmds='$RANLIB $lib'
13617 fi
13618 ;;
13619
13620 aix[4-9]*)
13621 if test ia64 != "$host_cpu"; then
13622 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13623 yes,aix,yes) ;; # shared object as lib.so file only
13624 yes,svr4,*) ;; # shared object as lib.so archive member only
13625 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13626 esac
13627 fi
13628 ;;
13629 esac
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13631 $as_echo "$enable_shared" >&6; }
13632
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13634 $as_echo_n "checking whether to build static libraries... " >&6; }
13635 # Make sure either enable_shared or enable_static is yes.
13636 test yes = "$enable_shared" || enable_static=yes
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13638 $as_echo "$enable_static" >&6; }
13639
13640
13641
13642
13643 fi
13644 ac_ext=c
13645 ac_cpp='$CPP $CPPFLAGS'
13646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13649
13650 CC=$lt_save_CC
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666 ac_config_commands="$ac_config_commands libtool"
13667
13668
13669
13670
13671 # Only expand once:
13672
13673
13674
13675 # initialize libtool to build .la files
13676
13677
13678 # add these options to CFLAGS if the compiler supports them
13679
13680 # Do not use the -ansi flag, currently there is a bug in MinGW/MinGW-w64
13681 # which prevents Check from compiling. Add after this is resolved:
13682 # sourceforge.net/p/mingw/bugs/2024
13683 #AX_CFLAGS_WARN_ALL_ANSI
13684 # Do not use the -pedantic flag, as on solaris it has a different
13685 # meaning than on gcc. Using the flag causes the build to fail.
13686
13687
13688
13689
13690
13691 flag=`echo "-Wextra" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13692
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wextra flag" >&5
13694 $as_echo_n "checking whether the C compiler accepts the -Wextra flag... " >&6; }
13695 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698
13699
13700 ac_ext=c
13701 ac_cpp='$CPP $CPPFLAGS'
13702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13705
13706
13707 save_CFLAGS="$CFLAGS"
13708 CFLAGS="$CFLAGS -Wextra"
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13711
13712
13713 int
13714 main ()
13715 {
13716
13717 ;
13718 return 0;
13719 }
13720
13721 _ACEOF
13722 if ac_fn_c_try_compile "$LINENO"; then :
13723
13724 eval "ax_cv_c_check_flag_$flag=yes"
13725
13726 else
13727
13728 eval "ax_cv_c_check_flag_$flag=no"
13729
13730 fi
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732
13733 CFLAGS="$save_CFLAGS"
13734
13735 ac_ext=c
13736 ac_cpp='$CPP $CPPFLAGS'
13737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13740
13741
13742
13743 fi
13744 eval ac_res=\$ax_cv_c_check_flag_$flag
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13746 $as_echo "$ac_res" >&6; }
13747
13748 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13749
13750 :
13751 CFLAGS="$CFLAGS -Wextra"
13752
13753 else
13754
13755 :
13756
13757
13758 fi
13759
13760
13761
13762
13763
13764
13765 flag=`echo "-Wstrict-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13766
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wstrict-prototypes flag" >&5
13768 $as_echo_n "checking whether the C compiler accepts the -Wstrict-prototypes flag... " >&6; }
13769 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13770 $as_echo_n "(cached) " >&6
13771 else
13772
13773
13774 ac_ext=c
13775 ac_cpp='$CPP $CPPFLAGS'
13776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13779
13780
13781 save_CFLAGS="$CFLAGS"
13782 CFLAGS="$CFLAGS -Wstrict-prototypes"
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13785
13786
13787 int
13788 main ()
13789 {
13790
13791 ;
13792 return 0;
13793 }
13794
13795 _ACEOF
13796 if ac_fn_c_try_compile "$LINENO"; then :
13797
13798 eval "ax_cv_c_check_flag_$flag=yes"
13799
13800 else
13801
13802 eval "ax_cv_c_check_flag_$flag=no"
13803
13804 fi
13805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806
13807 CFLAGS="$save_CFLAGS"
13808
13809 ac_ext=c
13810 ac_cpp='$CPP $CPPFLAGS'
13811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13814
13815
13816
13817 fi
13818 eval ac_res=\$ax_cv_c_check_flag_$flag
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13820 $as_echo "$ac_res" >&6; }
13821
13822 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13823
13824 :
13825 CFLAGS="$CFLAGS -Wstrict-prototypes"
13826
13827 else
13828
13829 :
13830
13831
13832 fi
13833
13834
13835
13836
13837
13838
13839 flag=`echo "-Wmissing-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13840
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-prototypes flag" >&5
13842 $as_echo_n "checking whether the C compiler accepts the -Wmissing-prototypes flag... " >&6; }
13843 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13844 $as_echo_n "(cached) " >&6
13845 else
13846
13847
13848 ac_ext=c
13849 ac_cpp='$CPP $CPPFLAGS'
13850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13853
13854
13855 save_CFLAGS="$CFLAGS"
13856 CFLAGS="$CFLAGS -Wmissing-prototypes"
13857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h. */
13859
13860
13861 int
13862 main ()
13863 {
13864
13865 ;
13866 return 0;
13867 }
13868
13869 _ACEOF
13870 if ac_fn_c_try_compile "$LINENO"; then :
13871
13872 eval "ax_cv_c_check_flag_$flag=yes"
13873
13874 else
13875
13876 eval "ax_cv_c_check_flag_$flag=no"
13877
13878 fi
13879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880
13881 CFLAGS="$save_CFLAGS"
13882
13883 ac_ext=c
13884 ac_cpp='$CPP $CPPFLAGS'
13885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13888
13889
13890
13891 fi
13892 eval ac_res=\$ax_cv_c_check_flag_$flag
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13894 $as_echo "$ac_res" >&6; }
13895
13896 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13897
13898 :
13899 CFLAGS="$CFLAGS -Wmissing-prototypes"
13900
13901 else
13902
13903 :
13904
13905
13906 fi
13907
13908
13909
13910
13911
13912
13913 flag=`echo "-Wwrite-strings" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13914
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wwrite-strings flag" >&5
13916 $as_echo_n "checking whether the C compiler accepts the -Wwrite-strings flag... " >&6; }
13917 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920
13921
13922 ac_ext=c
13923 ac_cpp='$CPP $CPPFLAGS'
13924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13927
13928
13929 save_CFLAGS="$CFLAGS"
13930 CFLAGS="$CFLAGS -Wwrite-strings"
13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932 /* end confdefs.h. */
13933
13934
13935 int
13936 main ()
13937 {
13938
13939 ;
13940 return 0;
13941 }
13942
13943 _ACEOF
13944 if ac_fn_c_try_compile "$LINENO"; then :
13945
13946 eval "ax_cv_c_check_flag_$flag=yes"
13947
13948 else
13949
13950 eval "ax_cv_c_check_flag_$flag=no"
13951
13952 fi
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954
13955 CFLAGS="$save_CFLAGS"
13956
13957 ac_ext=c
13958 ac_cpp='$CPP $CPPFLAGS'
13959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13962
13963
13964
13965 fi
13966 eval ac_res=\$ax_cv_c_check_flag_$flag
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13968 $as_echo "$ac_res" >&6; }
13969
13970 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13971
13972 :
13973 CFLAGS="$CFLAGS -Wwrite-strings"
13974
13975 else
13976
13977 :
13978
13979
13980 fi
13981
13982
13983
13984
13985
13986
13987 flag=`echo "-Wno-variadic-macros" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13988
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-variadic-macros flag" >&5
13990 $as_echo_n "checking whether the C compiler accepts the -Wno-variadic-macros flag... " >&6; }
13991 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994
13995
13996 ac_ext=c
13997 ac_cpp='$CPP $CPPFLAGS'
13998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14001
14002
14003 save_CFLAGS="$CFLAGS"
14004 CFLAGS="$CFLAGS -Wno-variadic-macros"
14005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14006 /* end confdefs.h. */
14007
14008
14009 int
14010 main ()
14011 {
14012
14013 ;
14014 return 0;
14015 }
14016
14017 _ACEOF
14018 if ac_fn_c_try_compile "$LINENO"; then :
14019
14020 eval "ax_cv_c_check_flag_$flag=yes"
14021
14022 else
14023
14024 eval "ax_cv_c_check_flag_$flag=no"
14025
14026 fi
14027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028
14029 CFLAGS="$save_CFLAGS"
14030
14031 ac_ext=c
14032 ac_cpp='$CPP $CPPFLAGS'
14033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14036
14037
14038
14039 fi
14040 eval ac_res=\$ax_cv_c_check_flag_$flag
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14042 $as_echo "$ac_res" >&6; }
14043
14044 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14045
14046 :
14047 CFLAGS="$CFLAGS -Wno-variadic-macros"
14048
14049 else
14050
14051 :
14052
14053
14054 fi
14055
14056
14057
14058
14059
14060
14061 flag=`echo "-Wimport" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14062
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wimport flag" >&5
14064 $as_echo_n "checking whether the C compiler accepts the -Wimport flag... " >&6; }
14065 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068
14069
14070 ac_ext=c
14071 ac_cpp='$CPP $CPPFLAGS'
14072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14075
14076
14077 save_CFLAGS="$CFLAGS"
14078 CFLAGS="$CFLAGS -Wimport"
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14081
14082
14083 int
14084 main ()
14085 {
14086
14087 ;
14088 return 0;
14089 }
14090
14091 _ACEOF
14092 if ac_fn_c_try_compile "$LINENO"; then :
14093
14094 eval "ax_cv_c_check_flag_$flag=yes"
14095
14096 else
14097
14098 eval "ax_cv_c_check_flag_$flag=no"
14099
14100 fi
14101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14102
14103 CFLAGS="$save_CFLAGS"
14104
14105 ac_ext=c
14106 ac_cpp='$CPP $CPPFLAGS'
14107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14110
14111
14112
14113 fi
14114 eval ac_res=\$ax_cv_c_check_flag_$flag
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14116 $as_echo "$ac_res" >&6; }
14117
14118 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14119
14120 :
14121 CFLAGS="$CFLAGS -Wimport"
14122
14123 else
14124
14125 :
14126
14127
14128 fi
14129
14130
14131
14132
14133
14134
14135 flag=`echo "-Wfatal-errors" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14136
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wfatal-errors flag" >&5
14138 $as_echo_n "checking whether the C compiler accepts the -Wfatal-errors flag... " >&6; }
14139 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14140 $as_echo_n "(cached) " >&6
14141 else
14142
14143
14144 ac_ext=c
14145 ac_cpp='$CPP $CPPFLAGS'
14146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14149
14150
14151 save_CFLAGS="$CFLAGS"
14152 CFLAGS="$CFLAGS -Wfatal-errors"
14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h. */
14155
14156
14157 int
14158 main ()
14159 {
14160
14161 ;
14162 return 0;
14163 }
14164
14165 _ACEOF
14166 if ac_fn_c_try_compile "$LINENO"; then :
14167
14168 eval "ax_cv_c_check_flag_$flag=yes"
14169
14170 else
14171
14172 eval "ax_cv_c_check_flag_$flag=no"
14173
14174 fi
14175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176
14177 CFLAGS="$save_CFLAGS"
14178
14179 ac_ext=c
14180 ac_cpp='$CPP $CPPFLAGS'
14181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14184
14185
14186
14187 fi
14188 eval ac_res=\$ax_cv_c_check_flag_$flag
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14190 $as_echo "$ac_res" >&6; }
14191
14192 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14193
14194 :
14195 CFLAGS="$CFLAGS -Wfatal-errors"
14196
14197 else
14198
14199 :
14200
14201
14202 fi
14203
14204
14205
14206
14207
14208
14209 flag=`echo "-Wformat=2" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14210
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wformat=2 flag" >&5
14212 $as_echo_n "checking whether the C compiler accepts the -Wformat=2 flag... " >&6; }
14213 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14214 $as_echo_n "(cached) " >&6
14215 else
14216
14217
14218 ac_ext=c
14219 ac_cpp='$CPP $CPPFLAGS'
14220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14223
14224
14225 save_CFLAGS="$CFLAGS"
14226 CFLAGS="$CFLAGS -Wformat=2"
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14229
14230
14231 int
14232 main ()
14233 {
14234
14235 ;
14236 return 0;
14237 }
14238
14239 _ACEOF
14240 if ac_fn_c_try_compile "$LINENO"; then :
14241
14242 eval "ax_cv_c_check_flag_$flag=yes"
14243
14244 else
14245
14246 eval "ax_cv_c_check_flag_$flag=no"
14247
14248 fi
14249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14250
14251 CFLAGS="$save_CFLAGS"
14252
14253 ac_ext=c
14254 ac_cpp='$CPP $CPPFLAGS'
14255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14258
14259
14260
14261 fi
14262 eval ac_res=\$ax_cv_c_check_flag_$flag
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14264 $as_echo "$ac_res" >&6; }
14265
14266 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14267
14268 :
14269 CFLAGS="$CFLAGS -Wformat=2"
14270
14271 else
14272
14273 :
14274
14275
14276 fi
14277
14278
14279
14280
14281
14282
14283 flag=`echo "-Winit-self" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14284
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Winit-self flag" >&5
14286 $as_echo_n "checking whether the C compiler accepts the -Winit-self flag... " >&6; }
14287 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290
14291
14292 ac_ext=c
14293 ac_cpp='$CPP $CPPFLAGS'
14294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14297
14298
14299 save_CFLAGS="$CFLAGS"
14300 CFLAGS="$CFLAGS -Winit-self"
14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14303
14304
14305 int
14306 main ()
14307 {
14308
14309 ;
14310 return 0;
14311 }
14312
14313 _ACEOF
14314 if ac_fn_c_try_compile "$LINENO"; then :
14315
14316 eval "ax_cv_c_check_flag_$flag=yes"
14317
14318 else
14319
14320 eval "ax_cv_c_check_flag_$flag=no"
14321
14322 fi
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324
14325 CFLAGS="$save_CFLAGS"
14326
14327 ac_ext=c
14328 ac_cpp='$CPP $CPPFLAGS'
14329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14332
14333
14334
14335 fi
14336 eval ac_res=\$ax_cv_c_check_flag_$flag
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14338 $as_echo "$ac_res" >&6; }
14339
14340 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14341
14342 :
14343 CFLAGS="$CFLAGS -Winit-self"
14344
14345 else
14346
14347 :
14348
14349
14350 fi
14351
14352
14353
14354
14355
14356
14357 flag=`echo "-Wmissing-include-dirs" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14358
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-include-dirs flag" >&5
14360 $as_echo_n "checking whether the C compiler accepts the -Wmissing-include-dirs flag... " >&6; }
14361 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364
14365
14366 ac_ext=c
14367 ac_cpp='$CPP $CPPFLAGS'
14368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14371
14372
14373 save_CFLAGS="$CFLAGS"
14374 CFLAGS="$CFLAGS -Wmissing-include-dirs"
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377
14378
14379 int
14380 main ()
14381 {
14382
14383 ;
14384 return 0;
14385 }
14386
14387 _ACEOF
14388 if ac_fn_c_try_compile "$LINENO"; then :
14389
14390 eval "ax_cv_c_check_flag_$flag=yes"
14391
14392 else
14393
14394 eval "ax_cv_c_check_flag_$flag=no"
14395
14396 fi
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398
14399 CFLAGS="$save_CFLAGS"
14400
14401 ac_ext=c
14402 ac_cpp='$CPP $CPPFLAGS'
14403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14406
14407
14408
14409 fi
14410 eval ac_res=\$ax_cv_c_check_flag_$flag
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14412 $as_echo "$ac_res" >&6; }
14413
14414 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14415
14416 :
14417 CFLAGS="$CFLAGS -Wmissing-include-dirs"
14418
14419 else
14420
14421 :
14422
14423
14424 fi
14425
14426
14427
14428
14429
14430
14431 flag=`echo "-Wswitch-default" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14432
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wswitch-default flag" >&5
14434 $as_echo_n "checking whether the C compiler accepts the -Wswitch-default flag... " >&6; }
14435 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14436 $as_echo_n "(cached) " >&6
14437 else
14438
14439
14440 ac_ext=c
14441 ac_cpp='$CPP $CPPFLAGS'
14442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14445
14446
14447 save_CFLAGS="$CFLAGS"
14448 CFLAGS="$CFLAGS -Wswitch-default"
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14451
14452
14453 int
14454 main ()
14455 {
14456
14457 ;
14458 return 0;
14459 }
14460
14461 _ACEOF
14462 if ac_fn_c_try_compile "$LINENO"; then :
14463
14464 eval "ax_cv_c_check_flag_$flag=yes"
14465
14466 else
14467
14468 eval "ax_cv_c_check_flag_$flag=no"
14469
14470 fi
14471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14472
14473 CFLAGS="$save_CFLAGS"
14474
14475 ac_ext=c
14476 ac_cpp='$CPP $CPPFLAGS'
14477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14480
14481
14482
14483 fi
14484 eval ac_res=\$ax_cv_c_check_flag_$flag
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14486 $as_echo "$ac_res" >&6; }
14487
14488 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14489
14490 :
14491 CFLAGS="$CFLAGS -Wswitch-default"
14492
14493 else
14494
14495 :
14496
14497
14498 fi
14499
14500
14501
14502
14503
14504
14505 flag=`echo "-Wunknown-pragmas" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14506
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wunknown-pragmas flag" >&5
14508 $as_echo_n "checking whether the C compiler accepts the -Wunknown-pragmas flag... " >&6; }
14509 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14510 $as_echo_n "(cached) " >&6
14511 else
14512
14513
14514 ac_ext=c
14515 ac_cpp='$CPP $CPPFLAGS'
14516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14519
14520
14521 save_CFLAGS="$CFLAGS"
14522 CFLAGS="$CFLAGS -Wunknown-pragmas"
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14525
14526
14527 int
14528 main ()
14529 {
14530
14531 ;
14532 return 0;
14533 }
14534
14535 _ACEOF
14536 if ac_fn_c_try_compile "$LINENO"; then :
14537
14538 eval "ax_cv_c_check_flag_$flag=yes"
14539
14540 else
14541
14542 eval "ax_cv_c_check_flag_$flag=no"
14543
14544 fi
14545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546
14547 CFLAGS="$save_CFLAGS"
14548
14549 ac_ext=c
14550 ac_cpp='$CPP $CPPFLAGS'
14551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14554
14555
14556
14557 fi
14558 eval ac_res=\$ax_cv_c_check_flag_$flag
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14560 $as_echo "$ac_res" >&6; }
14561
14562 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14563
14564 :
14565 CFLAGS="$CFLAGS -Wunknown-pragmas"
14566
14567 else
14568
14569 :
14570
14571
14572 fi
14573
14574 # The following flag is to enable C99 support on AIX, which is
14575 # necessary for variable macros in check.h
14576 case "${host_os}" in
14577 *aix*)
14578 if ! test "$GCC" = "yes"; then
14579
14580
14581
14582
14583
14584 flag=`echo "-qlanglvl=stdc99" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14585
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -qlanglvl=stdc99 flag" >&5
14587 $as_echo_n "checking whether the C compiler accepts the -qlanglvl=stdc99 flag... " >&6; }
14588 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14589 $as_echo_n "(cached) " >&6
14590 else
14591
14592
14593 ac_ext=c
14594 ac_cpp='$CPP $CPPFLAGS'
14595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14598
14599
14600 save_CFLAGS="$CFLAGS"
14601 CFLAGS="$CFLAGS -qlanglvl=stdc99"
14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h. */
14604
14605
14606 int
14607 main ()
14608 {
14609
14610 ;
14611 return 0;
14612 }
14613
14614 _ACEOF
14615 if ac_fn_c_try_compile "$LINENO"; then :
14616
14617 eval "ax_cv_c_check_flag_$flag=yes"
14618
14619 else
14620
14621 eval "ax_cv_c_check_flag_$flag=no"
14622
14623 fi
14624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14625
14626 CFLAGS="$save_CFLAGS"
14627
14628 ac_ext=c
14629 ac_cpp='$CPP $CPPFLAGS'
14630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14633
14634
14635
14636 fi
14637 eval ac_res=\$ax_cv_c_check_flag_$flag
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14639 $as_echo "$ac_res" >&6; }
14640
14641 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14642
14643 :
14644 CFLAGS="$CFLAGS -qlanglvl=stdc99"
14645
14646 else
14647
14648 :
14649
14650
14651 fi
14652
14653 fi
14654 ;;
14655 *)
14656 ;;
14657 esac
14658
14659 for ac_prog in gcov
14660 do
14661 # Extract the first word of "$ac_prog", so it can be a program name with args.
14662 set dummy $ac_prog; ac_word=$2
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14664 $as_echo_n "checking for $ac_word... " >&6; }
14665 if ${ac_cv_prog_GCOV+:} false; then :
14666 $as_echo_n "(cached) " >&6
14667 else
14668 if test -n "$GCOV"; then
14669 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
14670 else
14671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14672 for as_dir in $PATH
14673 do
14674 IFS=$as_save_IFS
14675 test -z "$as_dir" && as_dir=.
14676 for ac_exec_ext in '' $ac_executable_extensions; do
14677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14678 ac_cv_prog_GCOV="$ac_prog"
14679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14680 break 2
14681 fi
14682 done
14683 done
14684 IFS=$as_save_IFS
14685
14686 fi
14687 fi
14688 GCOV=$ac_cv_prog_GCOV
14689 if test -n "$GCOV"; then
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
14691 $as_echo "$GCOV" >&6; }
14692 else
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14694 $as_echo "no" >&6; }
14695 fi
14696
14697
14698 test -n "$GCOV" && break
14699 done
14700 test -n "$GCOV" || GCOV="false"
14701
14702 for ac_prog in lcov
14703 do
14704 # Extract the first word of "$ac_prog", so it can be a program name with args.
14705 set dummy $ac_prog; ac_word=$2
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14707 $as_echo_n "checking for $ac_word... " >&6; }
14708 if ${ac_cv_prog_LCOV+:} false; then :
14709 $as_echo_n "(cached) " >&6
14710 else
14711 if test -n "$LCOV"; then
14712 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14713 else
14714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14715 for as_dir in $PATH
14716 do
14717 IFS=$as_save_IFS
14718 test -z "$as_dir" && as_dir=.
14719 for ac_exec_ext in '' $ac_executable_extensions; do
14720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14721 ac_cv_prog_LCOV="$ac_prog"
14722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14723 break 2
14724 fi
14725 done
14726 done
14727 IFS=$as_save_IFS
14728
14729 fi
14730 fi
14731 LCOV=$ac_cv_prog_LCOV
14732 if test -n "$LCOV"; then
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14734 $as_echo "$LCOV" >&6; }
14735 else
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14737 $as_echo "no" >&6; }
14738 fi
14739
14740
14741 test -n "$LCOV" && break
14742 done
14743 test -n "$LCOV" || LCOV="false"
14744
14745 for ac_prog in genhtml
14746 do
14747 # Extract the first word of "$ac_prog", so it can be a program name with args.
14748 set dummy $ac_prog; ac_word=$2
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14750 $as_echo_n "checking for $ac_word... " >&6; }
14751 if ${ac_cv_prog_GENHTML+:} false; then :
14752 $as_echo_n "(cached) " >&6
14753 else
14754 if test -n "$GENHTML"; then
14755 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14756 else
14757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14758 for as_dir in $PATH
14759 do
14760 IFS=$as_save_IFS
14761 test -z "$as_dir" && as_dir=.
14762 for ac_exec_ext in '' $ac_executable_extensions; do
14763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14764 ac_cv_prog_GENHTML="$ac_prog"
14765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14766 break 2
14767 fi
14768 done
14769 done
14770 IFS=$as_save_IFS
14771
14772 fi
14773 fi
14774 GENHTML=$ac_cv_prog_GENHTML
14775 if test -n "$GENHTML"; then
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14777 $as_echo "$GENHTML" >&6; }
14778 else
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14780 $as_echo "no" >&6; }
14781 fi
14782
14783
14784 test -n "$GENHTML" && break
14785 done
14786 test -n "$GENHTML" || GENHTML="false"
14787
14788
14789 if test "xtrue" = x"$enable_build_docs"; then
14790 for ac_prog in makeinfo
14791 do
14792 # Extract the first word of "$ac_prog", so it can be a program name with args.
14793 set dummy $ac_prog; ac_word=$2
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14795 $as_echo_n "checking for $ac_word... " >&6; }
14796 if ${ac_cv_prog_MAKEINFO+:} false; then :
14797 $as_echo_n "(cached) " >&6
14798 else
14799 if test -n "$MAKEINFO"; then
14800 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
14801 else
14802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14803 for as_dir in $PATH
14804 do
14805 IFS=$as_save_IFS
14806 test -z "$as_dir" && as_dir=.
14807 for ac_exec_ext in '' $ac_executable_extensions; do
14808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14809 ac_cv_prog_MAKEINFO="$ac_prog"
14810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14811 break 2
14812 fi
14813 done
14814 done
14815 IFS=$as_save_IFS
14816
14817 fi
14818 fi
14819 MAKEINFO=$ac_cv_prog_MAKEINFO
14820 if test -n "$MAKEINFO"; then
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
14822 $as_echo "$MAKEINFO" >&6; }
14823 else
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825 $as_echo "no" >&6; }
14826 fi
14827
14828
14829 test -n "$MAKEINFO" && break
14830 done
14831 test -n "$MAKEINFO" || MAKEINFO="false"
14832
14833 if test "$MAKEINFO" = "false"; then
14834 # Make it [somewhat] clear to maintainers that makeinfo is missing. Not an error
14835 # though because 'make install' (which users need) does not build the docs
14836 # anyway.
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeinfo not installed: cannot rebuild HTML documentation." >&5
14838 $as_echo "$as_me: WARNING: makeinfo not installed: cannot rebuild HTML documentation." >&2;}
14839 fi
14840
14841 if test x"$MAKEINFO" != "xfalse"; then
14842 MAKE_DOCS_TRUE=
14843 MAKE_DOCS_FALSE='#'
14844 else
14845 MAKE_DOCS_TRUE='#'
14846 MAKE_DOCS_FALSE=
14847 fi
14848
14849 else
14850 if false; then
14851 MAKE_DOCS_TRUE=
14852 MAKE_DOCS_FALSE='#'
14853 else
14854 MAKE_DOCS_TRUE='#'
14855 MAKE_DOCS_FALSE=
14856 fi
14857
14858 fi
14859 for ac_prog in filterdiff
14860 do
14861 # Extract the first word of "$ac_prog", so it can be a program name with args.
14862 set dummy $ac_prog; ac_word=$2
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14864 $as_echo_n "checking for $ac_word... " >&6; }
14865 if ${ac_cv_prog_FILTERDIFF+:} false; then :
14866 $as_echo_n "(cached) " >&6
14867 else
14868 if test -n "$FILTERDIFF"; then
14869 ac_cv_prog_FILTERDIFF="$FILTERDIFF" # Let the user override the test.
14870 else
14871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14872 for as_dir in $PATH
14873 do
14874 IFS=$as_save_IFS
14875 test -z "$as_dir" && as_dir=.
14876 for ac_exec_ext in '' $ac_executable_extensions; do
14877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14878 ac_cv_prog_FILTERDIFF="$ac_prog"
14879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14880 break 2
14881 fi
14882 done
14883 done
14884 IFS=$as_save_IFS
14885
14886 fi
14887 fi
14888 FILTERDIFF=$ac_cv_prog_FILTERDIFF
14889 if test -n "$FILTERDIFF"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILTERDIFF" >&5
14891 $as_echo "$FILTERDIFF" >&6; }
14892 else
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14894 $as_echo "no" >&6; }
14895 fi
14896
14897
14898 test -n "$FILTERDIFF" && break
14899 done
14900 test -n "$FILTERDIFF" || FILTERDIFF="false"
14901
14902 if test "$FILTERDIFF" = "false"; then
14903 # Make it [somewhat] clear to maintainers that filterdiff is missing.
14904 # This is not an error, but will prevent builds from being
14905 # reproducible.
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: filterdiff not installed; build will not be reproducible." >&5
14907 $as_echo "$as_me: WARNING: filterdiff not installed; build will not be reproducible." >&2;}
14908 fi
14909
14910 if test x"$FILTERDIFF" = x"filterdiff"; then
14911 USE_FILTERDIFF_TRUE=
14912 USE_FILTERDIFF_FALSE='#'
14913 else
14914 USE_FILTERDIFF_TRUE='#'
14915 USE_FILTERDIFF_FALSE=
14916 fi
14917
14918
14919 for ac_prog in dot
14920 do
14921 # Extract the first word of "$ac_prog", so it can be a program name with args.
14922 set dummy $ac_prog; ac_word=$2
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14924 $as_echo_n "checking for $ac_word... " >&6; }
14925 if ${ac_cv_prog_GRAPHVIZ+:} false; then :
14926 $as_echo_n "(cached) " >&6
14927 else
14928 if test -n "$GRAPHVIZ"; then
14929 ac_cv_prog_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test.
14930 else
14931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14932 for as_dir in $PATH
14933 do
14934 IFS=$as_save_IFS
14935 test -z "$as_dir" && as_dir=.
14936 for ac_exec_ext in '' $ac_executable_extensions; do
14937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14938 ac_cv_prog_GRAPHVIZ="$ac_prog"
14939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14940 break 2
14941 fi
14942 done
14943 done
14944 IFS=$as_save_IFS
14945
14946 fi
14947 fi
14948 GRAPHVIZ=$ac_cv_prog_GRAPHVIZ
14949 if test -n "$GRAPHVIZ"; then
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
14951 $as_echo "$GRAPHVIZ" >&6; }
14952 else
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14954 $as_echo "no" >&6; }
14955 fi
14956
14957
14958 test -n "$GRAPHVIZ" && break
14959 done
14960 test -n "$GRAPHVIZ" || GRAPHVIZ="false"
14961
14962 # If graphviz doesn't exist 'make doc/doxygen-devel' will skip rendering graphs
14963 # and inform the developer about it. This target is optional and it aims
14964 # developers of libcheck, not users.
14965 if test x"$GRAPHVIZ" = x"dot"; then
14966 USE_GRAPHVIZ_TRUE=
14967 USE_GRAPHVIZ_FALSE='#'
14968 else
14969 USE_GRAPHVIZ_TRUE='#'
14970 USE_GRAPHVIZ_FALSE=
14971 fi
14972
14973
14974 # Checks for pthread implementation.
14975
14976
14977
14978 ac_ext=c
14979 ac_cpp='$CPP $CPPFLAGS'
14980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14983
14984 acx_pthread_ok=no
14985
14986 # We used to check for pthread.h first, but this fails if pthread.h
14987 # requires special compiler flags (e.g. on True64 or Sequent).
14988 # It gets checked for in the link test anyway.
14989
14990 # First of all, check if the user has set any of the PTHREAD_LIBS,
14991 # etcetera environment variables, and if threads linking works using
14992 # them:
14993 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14994 save_CFLAGS="$CFLAGS"
14995 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14996 save_LIBS="$LIBS"
14997 LIBS="$PTHREAD_LIBS $LIBS"
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14999 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002
15003 /* Override any GCC internal prototype to avoid an error.
15004 Use char because int might match the return type of a GCC
15005 builtin and then its argument prototype would still apply. */
15006 #ifdef __cplusplus
15007 extern "C"
15008 #endif
15009 char pthread_join ();
15010 int
15011 main ()
15012 {
15013 return pthread_join ();
15014 ;
15015 return 0;
15016 }
15017 _ACEOF
15018 if ac_fn_c_try_link "$LINENO"; then :
15019 acx_pthread_ok=yes
15020 fi
15021 rm -f core conftest.err conftest.$ac_objext \
15022 conftest$ac_exeext conftest.$ac_ext
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15024 $as_echo "$acx_pthread_ok" >&6; }
15025 if test x"$acx_pthread_ok" = xno; then
15026 PTHREAD_LIBS=""
15027 PTHREAD_CFLAGS=""
15028 fi
15029 LIBS="$save_LIBS"
15030 CFLAGS="$save_CFLAGS"
15031 fi
15032
15033 # We must check for the threads library under a number of different
15034 # names; the ordering is very important because some systems
15035 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15036 # libraries is broken (non-POSIX).
15037
15038 # Create a list of thread flags to try. Items starting with a "-" are
15039 # C compiler flags, and other items are library names, except for "none"
15040 # which indicates that we try without any flags at all, and "pthread-config"
15041 # which is a program returning the flags for the Pth emulation library.
15042
15043 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15044
15045 # The ordering *is* (sometimes) important. Some notes on the
15046 # individual items follow:
15047
15048 # pthreads: AIX (must check this before -lpthread)
15049 # none: in case threads are in libc; should be tried before -Kthread and
15050 # other compiler flags to prevent continual compiler warnings
15051 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15052 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15053 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15054 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15055 # -pthreads: Solaris/gcc
15056 # -mthreads: Mingw32/gcc, Lynx/gcc
15057 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15058 # doesn't hurt to check since this sometimes defines pthreads too;
15059 # also defines -D_REENTRANT)
15060 # ... -mt is also the pthreads flag for HP/aCC
15061 # pthread: Linux, etcetera
15062 # --thread-safe: KAI C++
15063 # pthread-config: use pthread-config program (for GNU Pth library)
15064
15065 case "${host_cpu}-${host_os}" in
15066 *solaris*)
15067
15068 # On Solaris (at least, for some versions), libc contains stubbed
15069 # (non-functional) versions of the pthreads routines, so link-based
15070 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15071 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15072 # a function called by this macro, so we could check for that, but
15073 # who knows whether they'll stub that too in a future libc.) So,
15074 # we'll just look for -pthreads and -lpthread first:
15075
15076 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15077 ;;
15078 esac
15079
15080 if test x"$acx_pthread_ok" = xno; then
15081 for flag in $acx_pthread_flags; do
15082
15083 case $flag in
15084 none)
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15086 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15087 ;;
15088
15089 -*)
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15091 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15092 PTHREAD_CFLAGS="$flag"
15093 ;;
15094
15095 pthread-config)
15096 # Extract the first word of "pthread-config", so it can be a program name with args.
15097 set dummy pthread-config; ac_word=$2
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15099 $as_echo_n "checking for $ac_word... " >&6; }
15100 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15101 $as_echo_n "(cached) " >&6
15102 else
15103 if test -n "$acx_pthread_config"; then
15104 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15105 else
15106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107 for as_dir in $PATH
15108 do
15109 IFS=$as_save_IFS
15110 test -z "$as_dir" && as_dir=.
15111 for ac_exec_ext in '' $ac_executable_extensions; do
15112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15113 ac_cv_prog_acx_pthread_config="yes"
15114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15115 break 2
15116 fi
15117 done
15118 done
15119 IFS=$as_save_IFS
15120
15121 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15122 fi
15123 fi
15124 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15125 if test -n "$acx_pthread_config"; then
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15127 $as_echo "$acx_pthread_config" >&6; }
15128 else
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15130 $as_echo "no" >&6; }
15131 fi
15132
15133
15134 if test x"$acx_pthread_config" = xno; then continue; fi
15135 PTHREAD_CFLAGS="`pthread-config --cflags`"
15136 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15137 ;;
15138
15139 *)
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15141 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15142 PTHREAD_LIBS="-l$flag"
15143 ;;
15144 esac
15145
15146 save_LIBS="$LIBS"
15147 save_CFLAGS="$CFLAGS"
15148 LIBS="$PTHREAD_LIBS $LIBS"
15149 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15150
15151 # Check for various functions. We must include pthread.h,
15152 # since some functions may be macros. (On the Sequent, we
15153 # need a special flag -Kthread to make this header compile.)
15154 # We check for pthread_join because it is in -lpthread on IRIX
15155 # while pthread_create is in libc. We check for pthread_attr_init
15156 # due to DEC craziness with -lpthreads. We check for
15157 # pthread_cleanup_push because it is one of the few pthread
15158 # functions on Solaris that doesn't have a non-functional libc stub.
15159 # We try pthread_create on general principles.
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15162 #include <pthread.h>
15163 int
15164 main ()
15165 {
15166 pthread_t th; pthread_join(th, 0);
15167 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15168 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15169 ;
15170 return 0;
15171 }
15172 _ACEOF
15173 if ac_fn_c_try_link "$LINENO"; then :
15174 acx_pthread_ok=yes
15175 fi
15176 rm -f core conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15178
15179 LIBS="$save_LIBS"
15180 CFLAGS="$save_CFLAGS"
15181
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15183 $as_echo "$acx_pthread_ok" >&6; }
15184 if test "x$acx_pthread_ok" = xyes; then
15185 break;
15186 fi
15187
15188 PTHREAD_LIBS=""
15189 PTHREAD_CFLAGS=""
15190 done
15191 fi
15192
15193 # Various other checks:
15194 if test "x$acx_pthread_ok" = xyes; then
15195 save_LIBS="$LIBS"
15196 LIBS="$PTHREAD_LIBS $LIBS"
15197 save_CFLAGS="$CFLAGS"
15198 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15199
15200 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15202 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15203 attr_name=unknown
15204 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15207 #include <pthread.h>
15208 int
15209 main ()
15210 {
15211 int attr=$attr; return attr;
15212 ;
15213 return 0;
15214 }
15215 _ACEOF
15216 if ac_fn_c_try_link "$LINENO"; then :
15217 attr_name=$attr; break
15218 fi
15219 rm -f core conftest.err conftest.$ac_objext \
15220 conftest$ac_exeext conftest.$ac_ext
15221 done
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15223 $as_echo "$attr_name" >&6; }
15224 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15225
15226 cat >>confdefs.h <<_ACEOF
15227 #define PTHREAD_CREATE_JOINABLE $attr_name
15228 _ACEOF
15229
15230 fi
15231
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15233 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15234 flag=no
15235 case "${host_cpu}-${host_os}" in
15236 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15237 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15238 esac
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15240 $as_echo "${flag}" >&6; }
15241 if test "x$flag" != xno; then
15242 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15243 fi
15244
15245 LIBS="$save_LIBS"
15246 CFLAGS="$save_CFLAGS"
15247
15248 # More AIX lossage: must compile with xlc_r or cc_r
15249 if test x"$GCC" != xyes; then
15250 for ac_prog in xlc_r cc_r
15251 do
15252 # Extract the first word of "$ac_prog", so it can be a program name with args.
15253 set dummy $ac_prog; ac_word=$2
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15255 $as_echo_n "checking for $ac_word... " >&6; }
15256 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15257 $as_echo_n "(cached) " >&6
15258 else
15259 if test -n "$PTHREAD_CC"; then
15260 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15261 else
15262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15263 for as_dir in $PATH
15264 do
15265 IFS=$as_save_IFS
15266 test -z "$as_dir" && as_dir=.
15267 for ac_exec_ext in '' $ac_executable_extensions; do
15268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15269 ac_cv_prog_PTHREAD_CC="$ac_prog"
15270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15271 break 2
15272 fi
15273 done
15274 done
15275 IFS=$as_save_IFS
15276
15277 fi
15278 fi
15279 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15280 if test -n "$PTHREAD_CC"; then
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15282 $as_echo "$PTHREAD_CC" >&6; }
15283 else
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15285 $as_echo "no" >&6; }
15286 fi
15287
15288
15289 test -n "$PTHREAD_CC" && break
15290 done
15291 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15292
15293 else
15294 PTHREAD_CC=$CC
15295 fi
15296 else
15297 PTHREAD_CC="$CC"
15298 fi
15299
15300
15301
15302
15303
15304 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15305 if test x"$acx_pthread_ok" = xyes; then
15306
15307 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15308
15309 :
15310 else
15311 acx_pthread_ok=no
15312
15313 fi
15314 ac_ext=c
15315 ac_cpp='$CPP $CPPFLAGS'
15316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15319
15320
15321 CC="$PTHREAD_CC"
15322
15323 # Check if floor is in the math library, and if so add -lm to LIBS
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
15325 $as_echo_n "checking for floor in -lm... " >&6; }
15326 if ${ac_cv_lib_m_floor+:} false; then :
15327 $as_echo_n "(cached) " >&6
15328 else
15329 ac_check_lib_save_LIBS=$LIBS
15330 LIBS="-lm $LIBS"
15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332 /* end confdefs.h. */
15333
15334 /* Override any GCC internal prototype to avoid an error.
15335 Use char because int might match the return type of a GCC
15336 builtin and then its argument prototype would still apply. */
15337 #ifdef __cplusplus
15338 extern "C"
15339 #endif
15340 char floor ();
15341 int
15342 main ()
15343 {
15344 return floor ();
15345 ;
15346 return 0;
15347 }
15348 _ACEOF
15349 if ac_fn_c_try_link "$LINENO"; then :
15350 ac_cv_lib_m_floor=yes
15351 else
15352 ac_cv_lib_m_floor=no
15353 fi
15354 rm -f core conftest.err conftest.$ac_objext \
15355 conftest$ac_exeext conftest.$ac_ext
15356 LIBS=$ac_check_lib_save_LIBS
15357 fi
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
15359 $as_echo "$ac_cv_lib_m_floor" >&6; }
15360 if test "x$ac_cv_lib_m_floor" = xyes; then :
15361 cat >>confdefs.h <<_ACEOF
15362 #define HAVE_LIBM 1
15363 _ACEOF
15364
15365 LIBS="-lm $LIBS"
15366
15367 fi
15368
15369
15370 # Check if clock_gettime, timer_create, timer_settime, and timer_delete are available in lib rt, and if so,
15371 # add -lrt to LIBS
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime, timer_create, timer_settime, timer_delete in -lrt" >&5
15373 $as_echo_n "checking for clock_gettime, timer_create, timer_settime, timer_delete in -lrt... " >&6; }
15374 if ${ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete+:} false; then :
15375 $as_echo_n "(cached) " >&6
15376 else
15377 ac_check_lib_save_LIBS=$LIBS
15378 LIBS="-lrt $LIBS"
15379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */
15381
15382 /* Override any GCC internal prototype to avoid an error.
15383 Use char because int might match the return type of a GCC
15384 builtin and then its argument prototype would still apply. */
15385 #ifdef __cplusplus
15386 extern "C"
15387 #endif
15388 char clock_gettime, timer_create, timer_settime, timer_delete ();
15389 int
15390 main ()
15391 {
15392 return clock_gettime, timer_create, timer_settime, timer_delete ();
15393 ;
15394 return 0;
15395 }
15396 _ACEOF
15397 if ac_fn_c_try_link "$LINENO"; then :
15398 ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete=yes
15399 else
15400 ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete=no
15401 fi
15402 rm -f core conftest.err conftest.$ac_objext \
15403 conftest$ac_exeext conftest.$ac_ext
15404 LIBS=$ac_check_lib_save_LIBS
15405 fi
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" >&5
15407 $as_echo "$ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" >&6; }
15408 if test "x$ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" = xyes; then :
15409 cat >>confdefs.h <<_ACEOF
15410 #define HAVE_LIBRT 1
15411 _ACEOF
15412
15413 LIBS="-lrt $LIBS"
15414
15415 fi
15416
15417
15418 # check that struct timespec is defined in time.h. If not, we need to
15419 # define it in libcompat.h. Note the optional inclusion of pthread.h.
15420 # On MinGW and MinGW-w64, the pthread.h file contains the timespec
15421 # definition.
15422 ac_fn_c_check_member "$LINENO" "struct timespec" "tv_sec" "ac_cv_member_struct_timespec_tv_sec" "
15423 #include <time.h>
15424 #if defined(HAVE_PTHREAD)
15425 #include <pthread.h>
15426 #endif /* HAVE_PTHREAD */
15427
15428 "
15429 if test "x$ac_cv_member_struct_timespec_tv_sec" = xyes; then :
15430
15431 cat >>confdefs.h <<_ACEOF
15432 #define HAVE_STRUCT_TIMESPEC_TV_SEC 1
15433 _ACEOF
15434
15435
15436 else
15437
15438 cat >>confdefs.h <<_ACEOF
15439 #define STRUCT_TIMESPEC_DEFINITION_MISSING 1
15440 _ACEOF
15441
15442 fi
15443 ac_fn_c_check_member "$LINENO" "struct timespec" "tv_nsec" "ac_cv_member_struct_timespec_tv_nsec" "
15444 #include <time.h>
15445 #if defined(HAVE_PTHREAD)
15446 #include <pthread.h>
15447 #endif /* HAVE_PTHREAD */
15448
15449 "
15450 if test "x$ac_cv_member_struct_timespec_tv_nsec" = xyes; then :
15451
15452 cat >>confdefs.h <<_ACEOF
15453 #define HAVE_STRUCT_TIMESPEC_TV_NSEC 1
15454 _ACEOF
15455
15456
15457 else
15458
15459 cat >>confdefs.h <<_ACEOF
15460 #define STRUCT_TIMESPEC_DEFINITION_MISSING 1
15461 _ACEOF
15462
15463 fi
15464
15465
15466 # check that struct itimerspec is defined in time.h. If not, we need to
15467 # define it in libcompat.h. Note the optional inclusion of pthread.h.
15468 # On MinGW and MinGW-w64, the pthread.h file contains the itimerspec
15469 # definition.
15470 ac_fn_c_check_member "$LINENO" "struct itimerspec" "it_interval" "ac_cv_member_struct_itimerspec_it_interval" "
15471 #include <time.h>
15472 #if defined(HAVE_PTHREAD)
15473 #include <pthread.h>
15474 #endif /* HAVE_PTHREAD */
15475
15476 "
15477 if test "x$ac_cv_member_struct_itimerspec_it_interval" = xyes; then :
15478
15479 cat >>confdefs.h <<_ACEOF
15480 #define HAVE_STRUCT_ITIMERSPEC_IT_INTERVAL 1
15481 _ACEOF
15482
15483
15484 else
15485
15486 cat >>confdefs.h <<_ACEOF
15487 #define STRUCT_ITIMERSPEC_DEFINITION_MISSING 1
15488 _ACEOF
15489
15490 fi
15491 ac_fn_c_check_member "$LINENO" "struct itimerspec" "it_value" "ac_cv_member_struct_itimerspec_it_value" "
15492 #include <time.h>
15493 #if defined(HAVE_PTHREAD)
15494 #include <pthread.h>
15495 #endif /* HAVE_PTHREAD */
15496
15497 "
15498 if test "x$ac_cv_member_struct_itimerspec_it_value" = xyes; then :
15499
15500 cat >>confdefs.h <<_ACEOF
15501 #define HAVE_STRUCT_ITIMERSPEC_IT_VALUE 1
15502 _ACEOF
15503
15504
15505 else
15506
15507 cat >>confdefs.h <<_ACEOF
15508 #define STRUCT_ITIMERSPEC_DEFINITION_MISSING 1
15509 _ACEOF
15510
15511 fi
15512
15513
15514 # Checks for header files.
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15516 $as_echo_n "checking for ANSI C header files... " >&6; }
15517 if ${ac_cv_header_stdc+:} false; then :
15518 $as_echo_n "(cached) " >&6
15519 else
15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521 /* end confdefs.h. */
15522 #include <stdlib.h>
15523 #include <stdarg.h>
15524 #include <string.h>
15525 #include <float.h>
15526
15527 int
15528 main ()
15529 {
15530
15531 ;
15532 return 0;
15533 }
15534 _ACEOF
15535 if ac_fn_c_try_compile "$LINENO"; then :
15536 ac_cv_header_stdc=yes
15537 else
15538 ac_cv_header_stdc=no
15539 fi
15540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15541
15542 if test $ac_cv_header_stdc = yes; then
15543 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545 /* end confdefs.h. */
15546 #include <string.h>
15547
15548 _ACEOF
15549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15550 $EGREP "memchr" >/dev/null 2>&1; then :
15551
15552 else
15553 ac_cv_header_stdc=no
15554 fi
15555 rm -f conftest*
15556
15557 fi
15558
15559 if test $ac_cv_header_stdc = yes; then
15560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563 #include <stdlib.h>
15564
15565 _ACEOF
15566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15567 $EGREP "free" >/dev/null 2>&1; then :
15568
15569 else
15570 ac_cv_header_stdc=no
15571 fi
15572 rm -f conftest*
15573
15574 fi
15575
15576 if test $ac_cv_header_stdc = yes; then
15577 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15578 if test "$cross_compiling" = yes; then :
15579 :
15580 else
15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15583 #include <ctype.h>
15584 #include <stdlib.h>
15585 #if ((' ' & 0x0FF) == 0x020)
15586 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15587 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15588 #else
15589 # define ISLOWER(c) \
15590 (('a' <= (c) && (c) <= 'i') \
15591 || ('j' <= (c) && (c) <= 'r') \
15592 || ('s' <= (c) && (c) <= 'z'))
15593 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15594 #endif
15595
15596 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15597 int
15598 main ()
15599 {
15600 int i;
15601 for (i = 0; i < 256; i++)
15602 if (XOR (islower (i), ISLOWER (i))
15603 || toupper (i) != TOUPPER (i))
15604 return 2;
15605 return 0;
15606 }
15607 _ACEOF
15608 if ac_fn_c_try_run "$LINENO"; then :
15609
15610 else
15611 ac_cv_header_stdc=no
15612 fi
15613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15614 conftest.$ac_objext conftest.beam conftest.$ac_ext
15615 fi
15616
15617 fi
15618 fi
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15620 $as_echo "$ac_cv_header_stdc" >&6; }
15621 if test $ac_cv_header_stdc = yes; then
15622
15623 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15624
15625 fi
15626
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15628 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15629 if ${ac_cv_header_sys_wait_h+:} false; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 #include <sys/types.h>
15635 #include <sys/wait.h>
15636 #ifndef WEXITSTATUS
15637 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15638 #endif
15639 #ifndef WIFEXITED
15640 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15641 #endif
15642
15643 int
15644 main ()
15645 {
15646 int s;
15647 wait (&s);
15648 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15649 ;
15650 return 0;
15651 }
15652 _ACEOF
15653 if ac_fn_c_try_compile "$LINENO"; then :
15654 ac_cv_header_sys_wait_h=yes
15655 else
15656 ac_cv_header_sys_wait_h=no
15657 fi
15658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15659 fi
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15661 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
15662 if test $ac_cv_header_sys_wait_h = yes; then
15663
15664 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15665
15666 fi
15667
15668 for ac_header in fcntl.h stddef.h stdlib.h string.h sys/time.h unistd.h
15669 do :
15670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15671 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15672 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15673 cat >>confdefs.h <<_ACEOF
15674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15675 _ACEOF
15676
15677 fi
15678
15679 done
15680
15681 # ------ AX CREATE STDINT H -------------------------------------
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
15683 $as_echo_n "checking for stdint types... " >&6; }
15684 ac_stdint_h=`echo check_stdint.h`
15685 # try to shortcircuit - if the default include path of the compiler
15686 # can find a "stdint.h" header then we assume that all compilers can.
15687 if ${ac_cv_header_stdint_t+:} false; then :
15688 $as_echo_n "(cached) " >&6
15689 else
15690
15691 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
15692 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
15693 old_CFLAGS="$CFLAGS" ; CFLAGS=""
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15696 #include <stdint.h>
15697 int
15698 main ()
15699 {
15700 int_least32_t v = 0;
15701 ;
15702 return 0;
15703 }
15704 _ACEOF
15705 if ac_fn_c_try_compile "$LINENO"; then :
15706 ac_cv_stdint_result="(assuming C99 compatible system)"
15707 ac_cv_header_stdint_t="stdint.h";
15708 else
15709 ac_cv_header_stdint_t=""
15710 fi
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
15713 CFLAGS="-std=c99"
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15716 #include <stdint.h>
15717 int
15718 main ()
15719 {
15720 int_least32_t v = 0;
15721 ;
15722 return 0;
15723 }
15724 _ACEOF
15725 if ac_fn_c_try_compile "$LINENO"; then :
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
15727 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
15728 fi
15729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730 fi
15731 CXXFLAGS="$old_CXXFLAGS"
15732 CPPFLAGS="$old_CPPFLAGS"
15733 CFLAGS="$old_CFLAGS"
15734 fi
15735
15736
15737 v="... $ac_cv_header_stdint_h"
15738 if test "$ac_stdint_h" = "stdint.h" ; then
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
15740 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
15741 elif test "$ac_stdint_h" = "inttypes.h" ; then
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
15743 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
15744 elif test "_$ac_cv_header_stdint_t" = "_" ; then
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
15746 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
15747 else
15748 ac_cv_header_stdint="$ac_cv_header_stdint_t"
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
15750 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
15751 fi
15752
15753 if test "_$ac_cv_header_stdint_t" = "_" ; then # cannot shortcircuit..
15754
15755
15756 inttype_headers=`echo | sed -e 's/,/ /g'`
15757
15758 ac_cv_stdint_result="(no helpful system typedefs seen)"
15759
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15761 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15762 if ${ac_cv_header_stdint_x+:} false; then :
15763 $as_echo_n "(cached) " >&6
15764 else
15765
15766 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15768 $as_echo "(..)" >&6; }
15769 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers
15770 do
15771 unset ac_cv_type_uintptr_t
15772 unset ac_cv_type_uint64_t
15773 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
15774 "
15775 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15776 ac_cv_header_stdint_x=$i
15777 else
15778 continue
15779 fi
15780
15781 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15782 "
15783 if test "x$ac_cv_type_uint64_t" = xyes; then :
15784 and64="/uint64_t"
15785 else
15786 and64=""
15787 fi
15788
15789 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
15790 break
15791 done
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15793 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15794
15795 fi
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
15797 $as_echo "$ac_cv_header_stdint_x" >&6; }
15798
15799
15800 if test "_$ac_cv_header_stdint_x" = "_" ; then
15801
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
15803 $as_echo_n "checking for stdint uint32_t... " >&6; }
15804 if ${ac_cv_header_stdint_o+:} false; then :
15805 $as_echo_n "(cached) " >&6
15806 else
15807
15808 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15810 $as_echo "(..)" >&6; }
15811 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers
15812 do
15813 unset ac_cv_type_uint32_t
15814 unset ac_cv_type_uint64_t
15815 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
15816 "
15817 if test "x$ac_cv_type_uint32_t" = xyes; then :
15818 ac_cv_header_stdint_o=$i
15819 else
15820 continue
15821 fi
15822
15823 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15824 "
15825 if test "x$ac_cv_type_uint64_t" = xyes; then :
15826 and64="/uint64_t"
15827 else
15828 and64=""
15829 fi
15830
15831 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
15832 break
15833 break;
15834 done
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
15836 $as_echo_n "checking for stdint uint32_t... " >&6; }
15837
15838 fi
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
15840 $as_echo "$ac_cv_header_stdint_o" >&6; }
15841
15842 fi
15843
15844 if test "_$ac_cv_header_stdint_x" = "_" ; then
15845 if test "_$ac_cv_header_stdint_o" = "_" ; then
15846
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
15848 $as_echo_n "checking for stdint u_int32_t... " >&6; }
15849 if ${ac_cv_header_stdint_u+:} false; then :
15850 $as_echo_n "(cached) " >&6
15851 else
15852
15853 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15855 $as_echo "(..)" >&6; }
15856 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
15857 unset ac_cv_type_u_int32_t
15858 unset ac_cv_type_u_int64_t
15859 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
15860 "
15861 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15862 ac_cv_header_stdint_u=$i
15863 else
15864 continue
15865 fi
15866
15867 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
15868 "
15869 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15870 and64="/u_int64_t"
15871 else
15872 and64=""
15873 fi
15874
15875 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
15876 break
15877 break;
15878 done
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
15880 $as_echo_n "checking for stdint u_int32_t... " >&6; }
15881
15882 fi
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
15884 $as_echo "$ac_cv_header_stdint_u" >&6; }
15885
15886 fi fi
15887
15888 if test "_$ac_cv_header_stdint_x" = "_" ; then
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
15890 $as_echo_n "checking for stdint datatype model... " >&6; }
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15892 $as_echo "(..)" >&6; }
15893
15894 # The cast to long int works around a bug in the HP C Compiler
15895 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15896 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15897 # This bug is HP SR number 8606223364.
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15899 $as_echo_n "checking size of char... " >&6; }
15900 if ${ac_cv_sizeof_char+:} false; then :
15901 $as_echo_n "(cached) " >&6
15902 else
15903 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15904
15905 else
15906 if test "$ac_cv_type_char" = yes; then
15907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15909 as_fn_error 77 "cannot compute sizeof (char)
15910 See \`config.log' for more details" "$LINENO" 5; }
15911 else
15912 ac_cv_sizeof_char=0
15913 fi
15914 fi
15915
15916 fi
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15918 $as_echo "$ac_cv_sizeof_char" >&6; }
15919
15920
15921
15922 cat >>confdefs.h <<_ACEOF
15923 #define SIZEOF_CHAR $ac_cv_sizeof_char
15924 _ACEOF
15925
15926
15927 # The cast to long int works around a bug in the HP C Compiler
15928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15930 # This bug is HP SR number 8606223364.
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15932 $as_echo_n "checking size of short... " >&6; }
15933 if ${ac_cv_sizeof_short+:} false; then :
15934 $as_echo_n "(cached) " >&6
15935 else
15936 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15937
15938 else
15939 if test "$ac_cv_type_short" = yes; then
15940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15942 as_fn_error 77 "cannot compute sizeof (short)
15943 See \`config.log' for more details" "$LINENO" 5; }
15944 else
15945 ac_cv_sizeof_short=0
15946 fi
15947 fi
15948
15949 fi
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15951 $as_echo "$ac_cv_sizeof_short" >&6; }
15952
15953
15954
15955 cat >>confdefs.h <<_ACEOF
15956 #define SIZEOF_SHORT $ac_cv_sizeof_short
15957 _ACEOF
15958
15959
15960 # The cast to long int works around a bug in the HP C Compiler
15961 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15962 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15963 # This bug is HP SR number 8606223364.
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15965 $as_echo_n "checking size of int... " >&6; }
15966 if ${ac_cv_sizeof_int+:} false; then :
15967 $as_echo_n "(cached) " >&6
15968 else
15969 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15970
15971 else
15972 if test "$ac_cv_type_int" = yes; then
15973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15975 as_fn_error 77 "cannot compute sizeof (int)
15976 See \`config.log' for more details" "$LINENO" 5; }
15977 else
15978 ac_cv_sizeof_int=0
15979 fi
15980 fi
15981
15982 fi
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15984 $as_echo "$ac_cv_sizeof_int" >&6; }
15985
15986
15987
15988 cat >>confdefs.h <<_ACEOF
15989 #define SIZEOF_INT $ac_cv_sizeof_int
15990 _ACEOF
15991
15992
15993 # The cast to long int works around a bug in the HP C Compiler
15994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15996 # This bug is HP SR number 8606223364.
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15998 $as_echo_n "checking size of long... " >&6; }
15999 if ${ac_cv_sizeof_long+:} false; then :
16000 $as_echo_n "(cached) " >&6
16001 else
16002 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16003
16004 else
16005 if test "$ac_cv_type_long" = yes; then
16006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16008 as_fn_error 77 "cannot compute sizeof (long)
16009 See \`config.log' for more details" "$LINENO" 5; }
16010 else
16011 ac_cv_sizeof_long=0
16012 fi
16013 fi
16014
16015 fi
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16017 $as_echo "$ac_cv_sizeof_long" >&6; }
16018
16019
16020
16021 cat >>confdefs.h <<_ACEOF
16022 #define SIZEOF_LONG $ac_cv_sizeof_long
16023 _ACEOF
16024
16025
16026 # The cast to long int works around a bug in the HP C Compiler
16027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16029 # This bug is HP SR number 8606223364.
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
16031 $as_echo_n "checking size of void*... " >&6; }
16032 if ${ac_cv_sizeof_voidp+:} false; then :
16033 $as_echo_n "(cached) " >&6
16034 else
16035 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
16036
16037 else
16038 if test "$ac_cv_type_voidp" = yes; then
16039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16041 as_fn_error 77 "cannot compute sizeof (void*)
16042 See \`config.log' for more details" "$LINENO" 5; }
16043 else
16044 ac_cv_sizeof_voidp=0
16045 fi
16046 fi
16047
16048 fi
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
16050 $as_echo "$ac_cv_sizeof_voidp" >&6; }
16051
16052
16053
16054 cat >>confdefs.h <<_ACEOF
16055 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
16056 _ACEOF
16057
16058
16059 ac_cv_char_data_model=""
16060 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
16061 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
16062 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
16063 ac_cv_long_data_model=""
16064 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
16065 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
16066 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
16068 $as_echo_n "checking data model... " >&6; }
16069 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
16070 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
16071 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
16072 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
16073 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
16074 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
16075 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
16076 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
16077 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
16078 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
16079 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
16080 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
16081 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
16082 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
16083 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
16084 222/*|333/*|444/*|666/*|888/*) :
16085 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
16086 *) ac_cv_data_model="none" ; n="very unusual model" ;;
16087 esac
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
16089 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
16090
16091 fi
16092
16093 if test "_$ac_cv_header_stdint_x" != "_" ; then
16094 ac_cv_header_stdint="$ac_cv_header_stdint_x"
16095 elif test "_$ac_cv_header_stdint_o" != "_" ; then
16096 ac_cv_header_stdint="$ac_cv_header_stdint_o"
16097 elif test "_$ac_cv_header_stdint_u" != "_" ; then
16098 ac_cv_header_stdint="$ac_cv_header_stdint_u"
16099 else
16100 ac_cv_header_stdint="stddef.h"
16101 fi
16102
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
16104 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
16106 $as_echo "($ac_cv_header_stdint)" >&6; }
16107 unset ac_cv_type_int_least32_t
16108 unset ac_cv_type_int_fast32_t
16109 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
16110 "
16111 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16112
16113 fi
16114
16115 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
16116 "
16117 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16118
16119 fi
16120
16121 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
16122 "
16123 if test "x$ac_cv_type_intmax_t" = xyes; then :
16124
16125 fi
16126
16127
16128 fi # shortcircut to system "stdint.h"
16129 # ------------------ PREPARE VARIABLES ------------------------------
16130 if test "$GCC" = "yes" ; then
16131 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
16132 else
16133 ac_cv_stdint_message="using $CC"
16134 fi
16135
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
16137 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
16138
16139 # ----------------- DONE inttypes.h checks START header -------------
16140 ac_config_commands="$ac_config_commands $ac_stdint_h"
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16152 if test -n "$ac_tool_prefix"; then
16153 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16154 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16156 $as_echo_n "checking for $ac_word... " >&6; }
16157 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16158 $as_echo_n "(cached) " >&6
16159 else
16160 case $PKG_CONFIG in
16161 [\\/]* | ?:[\\/]*)
16162 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16163 ;;
16164 *)
16165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16166 for as_dir in $PATH
16167 do
16168 IFS=$as_save_IFS
16169 test -z "$as_dir" && as_dir=.
16170 for ac_exec_ext in '' $ac_executable_extensions; do
16171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16172 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16174 break 2
16175 fi
16176 done
16177 done
16178 IFS=$as_save_IFS
16179
16180 ;;
16181 esac
16182 fi
16183 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16184 if test -n "$PKG_CONFIG"; then
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16186 $as_echo "$PKG_CONFIG" >&6; }
16187 else
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16189 $as_echo "no" >&6; }
16190 fi
16191
16192
16193 fi
16194 if test -z "$ac_cv_path_PKG_CONFIG"; then
16195 ac_pt_PKG_CONFIG=$PKG_CONFIG
16196 # Extract the first word of "pkg-config", so it can be a program name with args.
16197 set dummy pkg-config; ac_word=$2
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16199 $as_echo_n "checking for $ac_word... " >&6; }
16200 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16201 $as_echo_n "(cached) " >&6
16202 else
16203 case $ac_pt_PKG_CONFIG in
16204 [\\/]* | ?:[\\/]*)
16205 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16206 ;;
16207 *)
16208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16209 for as_dir in $PATH
16210 do
16211 IFS=$as_save_IFS
16212 test -z "$as_dir" && as_dir=.
16213 for ac_exec_ext in '' $ac_executable_extensions; do
16214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16215 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16217 break 2
16218 fi
16219 done
16220 done
16221 IFS=$as_save_IFS
16222
16223 ;;
16224 esac
16225 fi
16226 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16227 if test -n "$ac_pt_PKG_CONFIG"; then
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16229 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16230 else
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16232 $as_echo "no" >&6; }
16233 fi
16234
16235 if test "x$ac_pt_PKG_CONFIG" = x; then
16236 PKG_CONFIG=""
16237 else
16238 case $cross_compiling:$ac_tool_warned in
16239 yes:)
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16242 ac_tool_warned=yes ;;
16243 esac
16244 PKG_CONFIG=$ac_pt_PKG_CONFIG
16245 fi
16246 else
16247 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16248 fi
16249
16250 fi
16251 if test -n "$PKG_CONFIG"; then
16252 _pkg_min_version=0.9.0
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16254 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16255 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16257 $as_echo "yes" >&6; }
16258 else
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16260 $as_echo "no" >&6; }
16261 PKG_CONFIG=""
16262 fi
16263 fi
16264 if test x"$enable_subunit" != "xfalse" && test x"$enable_subunit" != "xtrue"; then :
16265
16266 if test -n "$PKG_CONFIG" && \
16267 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16268 ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16269 ac_status=$?
16270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16271 test $ac_status = 0; }; then
16272 :
16273 else
16274 enable_subunit=false
16275 fi
16276
16277 fi
16278 if test x"$enable_subunit" != "xfalse"; then :
16279
16280
16281 pkg_failed=no
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsubunit" >&5
16283 $as_echo_n "checking for libsubunit... " >&6; }
16284
16285 if test -n "$LIBSUBUNIT_CFLAGS"; then
16286 pkg_cv_LIBSUBUNIT_CFLAGS="$LIBSUBUNIT_CFLAGS"
16287 elif test -n "$PKG_CONFIG"; then
16288 if test -n "$PKG_CONFIG" && \
16289 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16290 ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16291 ac_status=$?
16292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16293 test $ac_status = 0; }; then
16294 pkg_cv_LIBSUBUNIT_CFLAGS=`$PKG_CONFIG --cflags "libsubunit" 2>/dev/null`
16295 test "x$?" != "x0" && pkg_failed=yes
16296 else
16297 pkg_failed=yes
16298 fi
16299 else
16300 pkg_failed=untried
16301 fi
16302 if test -n "$LIBSUBUNIT_LIBS"; then
16303 pkg_cv_LIBSUBUNIT_LIBS="$LIBSUBUNIT_LIBS"
16304 elif test -n "$PKG_CONFIG"; then
16305 if test -n "$PKG_CONFIG" && \
16306 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16307 ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16308 ac_status=$?
16309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16310 test $ac_status = 0; }; then
16311 pkg_cv_LIBSUBUNIT_LIBS=`$PKG_CONFIG --libs "libsubunit" 2>/dev/null`
16312 test "x$?" != "x0" && pkg_failed=yes
16313 else
16314 pkg_failed=yes
16315 fi
16316 else
16317 pkg_failed=untried
16318 fi
16319
16320
16321
16322 if test $pkg_failed = yes; then
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16324 $as_echo "no" >&6; }
16325
16326 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16327 _pkg_short_errors_supported=yes
16328 else
16329 _pkg_short_errors_supported=no
16330 fi
16331 if test $_pkg_short_errors_supported = yes; then
16332 LIBSUBUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsubunit" 2>&1`
16333 else
16334 LIBSUBUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsubunit" 2>&1`
16335 fi
16336 # Put the nasty error message in config.log where it belongs
16337 echo "$LIBSUBUNIT_PKG_ERRORS" >&5
16338
16339 as_fn_error $? "Package requirements (libsubunit) were not met:
16340
16341 $LIBSUBUNIT_PKG_ERRORS
16342
16343 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16344 installed software in a non-standard prefix.
16345
16346 Alternatively, you may set the environment variables LIBSUBUNIT_CFLAGS
16347 and LIBSUBUNIT_LIBS to avoid the need to call pkg-config.
16348 See the pkg-config man page for more details." "$LINENO" 5
16349 elif test $pkg_failed = untried; then
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16351 $as_echo "no" >&6; }
16352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16354 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16355 is in your PATH or set the PKG_CONFIG environment variable to the full
16356 path to pkg-config.
16357
16358 Alternatively, you may set the environment variables LIBSUBUNIT_CFLAGS
16359 and LIBSUBUNIT_LIBS to avoid the need to call pkg-config.
16360 See the pkg-config man page for more details.
16361
16362 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16363 See \`config.log' for more details" "$LINENO" 5; }
16364 else
16365 LIBSUBUNIT_CFLAGS=$pkg_cv_LIBSUBUNIT_CFLAGS
16366 LIBSUBUNIT_LIBS=$pkg_cv_LIBSUBUNIT_LIBS
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16368 $as_echo "yes" >&6; }
16369
16370 fi
16371
16372 fi
16373 if test "xfalse" = x"$enable_subunit"; then
16374 ENABLE_SUBUNIT="0"
16375 LIBSUBUNIT_PC=""
16376 else
16377 ENABLE_SUBUNIT="1"
16378 LIBSUBUNIT_PC="libsubunit"
16379 fi
16380
16381
16382
16383 cat >>confdefs.h <<_ACEOF
16384 #define ENABLE_SUBUNIT $ENABLE_SUBUNIT
16385 _ACEOF
16386
16387
16388 if test x"$enable_subunit" != "xfalse"; then
16389 SUBUNIT_TRUE=
16390 SUBUNIT_FALSE='#'
16391 else
16392 SUBUNIT_TRUE='#'
16393 SUBUNIT_FALSE=
16394 fi
16395
16396
16397 # Check for POSIX regular expressions support.
16398 for ac_header in regex.h
16399 do :
16400 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
16401 if test "x$ac_cv_header_regex_h" = xyes; then :
16402 cat >>confdefs.h <<_ACEOF
16403 #define HAVE_REGEX_H 1
16404 _ACEOF
16405 HAVE_REGEX_H=1
16406 else
16407 HAVE_REGEX_H=0
16408 fi
16409
16410 done
16411
16412
16413 # Check if we have the windows headers for Init Once API
16414 for ac_header in windows.h
16415 do :
16416 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
16417 if test "x$ac_cv_header_windows_h" = xyes; then :
16418 cat >>confdefs.h <<_ACEOF
16419 #define HAVE_WINDOWS_H 1
16420 _ACEOF
16421 HAVE_WINDOWS_H=1
16422 else
16423 HAVE_WINDOWS_H=0
16424 fi
16425
16426 done
16427
16428
16429
16430 # Check if we have the One-Time Initialization API
16431 for ac_func in InitOnceBeginInitialize
16432 do :
16433 ac_fn_c_check_func "$LINENO" "InitOnceBeginInitialize" "ac_cv_func_InitOnceBeginInitialize"
16434 if test "x$ac_cv_func_InitOnceBeginInitialize" = xyes; then :
16435 cat >>confdefs.h <<_ACEOF
16436 #define HAVE_INITONCEBEGININITIALIZE 1
16437 _ACEOF
16438 HAVE_INIT_ONCE_BEGIN_INITIALIZE=1
16439 else
16440 HAVE_INIT_ONCE_BEGIN_INITIALIZE=0
16441 fi
16442 done
16443
16444 for ac_func in InitOnceComplete
16445 do :
16446 ac_fn_c_check_func "$LINENO" "InitOnceComplete" "ac_cv_func_InitOnceComplete"
16447 if test "x$ac_cv_func_InitOnceComplete" = xyes; then :
16448 cat >>confdefs.h <<_ACEOF
16449 #define HAVE_INITONCECOMPLETE 1
16450 _ACEOF
16451 HAVE_INIT_ONCE_COMPLETE=1
16452 else
16453 HAVE_INIT_ONCE_COMPLETE=0
16454 fi
16455 done
16456
16457
16458
16459
16460 if test "x$HAVE_REGEX_H" = "x1"; then
16461 for ac_func in regcomp regexec
16462 do :
16463 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16464 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16465 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16466 cat >>confdefs.h <<_ACEOF
16467 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16468 _ACEOF
16469 HAVE_REGEX=1
16470 else
16471 HAVE_REGEX=0
16472 fi
16473 done
16474
16475 else
16476 HAVE_REGEX=0
16477 fi
16478
16479
16480 cat >>confdefs.h <<_ACEOF
16481 #define HAVE_REGEX $HAVE_REGEX
16482 _ACEOF
16483
16484
16485 if test "x$HAVE_REGEX" = "x1"; then
16486 ENABLE_REGEX="1"
16487 else
16488 ENABLE_REGEX="0"
16489 fi
16490
16491
16492 cat >>confdefs.h <<_ACEOF
16493 #define ENABLE_REGEX $ENABLE_REGEX
16494 _ACEOF
16495
16496
16497 # Checks for typedefs, structures, and compiler characteristics.
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16499 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16500 if ${ac_cv_c_const+:} false; then :
16501 $as_echo_n "(cached) " >&6
16502 else
16503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504 /* end confdefs.h. */
16505
16506 int
16507 main ()
16508 {
16509
16510 #ifndef __cplusplus
16511 /* Ultrix mips cc rejects this sort of thing. */
16512 typedef int charset[2];
16513 const charset cs = { 0, 0 };
16514 /* SunOS 4.1.1 cc rejects this. */
16515 char const *const *pcpcc;
16516 char **ppc;
16517 /* NEC SVR4.0.2 mips cc rejects this. */
16518 struct point {int x, y;};
16519 static struct point const zero = {0,0};
16520 /* AIX XL C 1.02.0.0 rejects this.
16521 It does not let you subtract one const X* pointer from another in
16522 an arm of an if-expression whose if-part is not a constant
16523 expression */
16524 const char *g = "string";
16525 pcpcc = &g + (g ? g-g : 0);
16526 /* HPUX 7.0 cc rejects these. */
16527 ++pcpcc;
16528 ppc = (char**) pcpcc;
16529 pcpcc = (char const *const *) ppc;
16530 { /* SCO 3.2v4 cc rejects this sort of thing. */
16531 char tx;
16532 char *t = &tx;
16533 char const *s = 0 ? (char *) 0 : (char const *) 0;
16534
16535 *t++ = 0;
16536 if (s) return 0;
16537 }
16538 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16539 int x[] = {25, 17};
16540 const int *foo = &x[0];
16541 ++foo;
16542 }
16543 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16544 typedef const int *iptr;
16545 iptr p = 0;
16546 ++p;
16547 }
16548 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16549 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16550 struct s { int j; const int *ap[3]; } bx;
16551 struct s *b = &bx; b->j = 5;
16552 }
16553 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16554 const int foo = 10;
16555 if (!foo) return 0;
16556 }
16557 return !cs[0] && !zero.x;
16558 #endif
16559
16560 ;
16561 return 0;
16562 }
16563 _ACEOF
16564 if ac_fn_c_try_compile "$LINENO"; then :
16565 ac_cv_c_const=yes
16566 else
16567 ac_cv_c_const=no
16568 fi
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570 fi
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16572 $as_echo "$ac_cv_c_const" >&6; }
16573 if test $ac_cv_c_const = no; then
16574
16575 $as_echo "#define const /**/" >>confdefs.h
16576
16577 fi
16578
16579 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16580 if test "x$ac_cv_type_pid_t" = xyes; then :
16581
16582 else
16583
16584 cat >>confdefs.h <<_ACEOF
16585 #define pid_t int
16586 _ACEOF
16587
16588 fi
16589
16590 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16591 if test "x$ac_cv_type_size_t" = xyes; then :
16592
16593 else
16594
16595 cat >>confdefs.h <<_ACEOF
16596 #define size_t unsigned int
16597 _ACEOF
16598
16599 fi
16600
16601
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16603 $as_echo_n "checking for unsigned long long int... " >&6; }
16604 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16605 $as_echo_n "(cached) " >&6
16606 else
16607 ac_cv_type_unsigned_long_long_int=yes
16608 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16610 /* end confdefs.h. */
16611
16612 /* For now, do not test the preprocessor; as of 2007 there are too many
16613 implementations with broken preprocessors. Perhaps this can
16614 be revisited in 2012. In the meantime, code should not expect
16615 #if to work with literals wider than 32 bits. */
16616 /* Test literals. */
16617 long long int ll = 9223372036854775807ll;
16618 long long int nll = -9223372036854775807LL;
16619 unsigned long long int ull = 18446744073709551615ULL;
16620 /* Test constant expressions. */
16621 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16622 ? 1 : -1)];
16623 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16624 ? 1 : -1)];
16625 int i = 63;
16626 int
16627 main ()
16628 {
16629 /* Test availability of runtime routines for shift and division. */
16630 long long int llmax = 9223372036854775807ll;
16631 unsigned long long int ullmax = 18446744073709551615ull;
16632 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16633 | (llmax / ll) | (llmax % ll)
16634 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16635 | (ullmax / ull) | (ullmax % ull));
16636 ;
16637 return 0;
16638 }
16639
16640 _ACEOF
16641 if ac_fn_c_try_link "$LINENO"; then :
16642
16643 else
16644 ac_cv_type_unsigned_long_long_int=no
16645 fi
16646 rm -f core conftest.err conftest.$ac_objext \
16647 conftest$ac_exeext conftest.$ac_ext
16648 fi
16649 fi
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16651 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16652 if test $ac_cv_type_unsigned_long_long_int = yes; then
16653
16654 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16655
16656 fi
16657
16658
16659
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16661 $as_echo_n "checking for long long int... " >&6; }
16662 if ${ac_cv_type_long_long_int+:} false; then :
16663 $as_echo_n "(cached) " >&6
16664 else
16665 ac_cv_type_long_long_int=yes
16666 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16667 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16668 if test $ac_cv_type_long_long_int = yes; then
16669 if test "$cross_compiling" = yes; then :
16670 :
16671 else
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16674 #include <limits.h>
16675 #ifndef LLONG_MAX
16676 # define HALF \
16677 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16678 # define LLONG_MAX (HALF - 1 + HALF)
16679 #endif
16680 int
16681 main ()
16682 {
16683 long long int n = 1;
16684 int i;
16685 for (i = 0; ; i++)
16686 {
16687 long long int m = n << i;
16688 if (m >> i != n)
16689 return 1;
16690 if (LLONG_MAX / 2 < m)
16691 break;
16692 }
16693 return 0;
16694 ;
16695 return 0;
16696 }
16697 _ACEOF
16698 if ac_fn_c_try_run "$LINENO"; then :
16699
16700 else
16701 ac_cv_type_long_long_int=no
16702 fi
16703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16704 conftest.$ac_objext conftest.beam conftest.$ac_ext
16705 fi
16706
16707 fi
16708 fi
16709 fi
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16711 $as_echo "$ac_cv_type_long_long_int" >&6; }
16712 if test $ac_cv_type_long_long_int = yes; then
16713
16714 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16715
16716 fi
16717
16718
16719
16720 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
16721 if test "x$ac_cv_type_intmax_t" = xyes; then :
16722
16723 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16724
16725 else
16726 test $ac_cv_type_long_long_int = yes \
16727 && ac_type='long long int' \
16728 || ac_type='long int'
16729
16730 cat >>confdefs.h <<_ACEOF
16731 #define intmax_t $ac_type
16732 _ACEOF
16733
16734 fi
16735
16736
16737
16738
16739 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
16740 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16741
16742 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16743
16744 else
16745 test $ac_cv_type_unsigned_long_long_int = yes \
16746 && ac_type='unsigned long long int' \
16747 || ac_type='unsigned long int'
16748
16749 cat >>confdefs.h <<_ACEOF
16750 #define uintmax_t $ac_type
16751 _ACEOF
16752
16753 fi
16754
16755
16756 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16757 case $ac_cv_c_uint32_t in #(
16758 no|yes) ;; #(
16759 *)
16760
16761 $as_echo "#define _UINT32_T 1" >>confdefs.h
16762
16763
16764 cat >>confdefs.h <<_ACEOF
16765 #define uint32_t $ac_cv_c_uint32_t
16766 _ACEOF
16767 ;;
16768 esac
16769
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16771 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16772 if ${ac_cv_header_time+:} false; then :
16773 $as_echo_n "(cached) " >&6
16774 else
16775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776 /* end confdefs.h. */
16777 #include <sys/types.h>
16778 #include <sys/time.h>
16779 #include <time.h>
16780
16781 int
16782 main ()
16783 {
16784 if ((struct tm *) 0)
16785 return 0;
16786 ;
16787 return 0;
16788 }
16789 _ACEOF
16790 if ac_fn_c_try_compile "$LINENO"; then :
16791 ac_cv_header_time=yes
16792 else
16793 ac_cv_header_time=no
16794 fi
16795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16796 fi
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16798 $as_echo "$ac_cv_header_time" >&6; }
16799 if test $ac_cv_header_time = yes; then
16800
16801 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16802
16803 fi
16804
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16806 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16807 if ${ac_cv_struct_tm+:} false; then :
16808 $as_echo_n "(cached) " >&6
16809 else
16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h. */
16812 #include <sys/types.h>
16813 #include <time.h>
16814
16815 int
16816 main ()
16817 {
16818 struct tm tm;
16819 int *p = &tm.tm_sec;
16820 return !p;
16821 ;
16822 return 0;
16823 }
16824 _ACEOF
16825 if ac_fn_c_try_compile "$LINENO"; then :
16826 ac_cv_struct_tm=time.h
16827 else
16828 ac_cv_struct_tm=sys/time.h
16829 fi
16830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16831 fi
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16833 $as_echo "$ac_cv_struct_tm" >&6; }
16834 if test $ac_cv_struct_tm = sys/time.h; then
16835
16836 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16837
16838 fi
16839
16840
16841 # The cast to long int works around a bug in the HP C Compiler
16842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16844 # This bug is HP SR number 8606223364.
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16846 $as_echo_n "checking size of int... " >&6; }
16847 if ${ac_cv_sizeof_int+:} false; then :
16848 $as_echo_n "(cached) " >&6
16849 else
16850 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16851
16852 else
16853 if test "$ac_cv_type_int" = yes; then
16854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16856 as_fn_error 77 "cannot compute sizeof (int)
16857 See \`config.log' for more details" "$LINENO" 5; }
16858 else
16859 ac_cv_sizeof_int=0
16860 fi
16861 fi
16862
16863 fi
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16865 $as_echo "$ac_cv_sizeof_int" >&6; }
16866
16867
16868
16869 cat >>confdefs.h <<_ACEOF
16870 #define SIZEOF_INT $ac_cv_sizeof_int
16871 _ACEOF
16872
16873
16874 # The cast to long int works around a bug in the HP C Compiler
16875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16877 # This bug is HP SR number 8606223364.
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16879 $as_echo_n "checking size of short... " >&6; }
16880 if ${ac_cv_sizeof_short+:} false; then :
16881 $as_echo_n "(cached) " >&6
16882 else
16883 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16884
16885 else
16886 if test "$ac_cv_type_short" = yes; then
16887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16889 as_fn_error 77 "cannot compute sizeof (short)
16890 See \`config.log' for more details" "$LINENO" 5; }
16891 else
16892 ac_cv_sizeof_short=0
16893 fi
16894 fi
16895
16896 fi
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16898 $as_echo "$ac_cv_sizeof_short" >&6; }
16899
16900
16901
16902 cat >>confdefs.h <<_ACEOF
16903 #define SIZEOF_SHORT $ac_cv_sizeof_short
16904 _ACEOF
16905
16906
16907 # The cast to long int works around a bug in the HP C Compiler
16908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16910 # This bug is HP SR number 8606223364.
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16912 $as_echo_n "checking size of long... " >&6; }
16913 if ${ac_cv_sizeof_long+:} false; then :
16914 $as_echo_n "(cached) " >&6
16915 else
16916 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16917
16918 else
16919 if test "$ac_cv_type_long" = yes; then
16920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16922 as_fn_error 77 "cannot compute sizeof (long)
16923 See \`config.log' for more details" "$LINENO" 5; }
16924 else
16925 ac_cv_sizeof_long=0
16926 fi
16927 fi
16928
16929 fi
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16931 $as_echo "$ac_cv_sizeof_long" >&6; }
16932
16933
16934
16935 cat >>confdefs.h <<_ACEOF
16936 #define SIZEOF_LONG $ac_cv_sizeof_long
16937 _ACEOF
16938
16939
16940
16941 # The following two checks will attempt to include pthread.h. The
16942 # reason is MinGW and MinGW-w64 have been known to put the time
16943 # related definitions in the pthread headers. Without include
16944 # pthread.h, these checks may mistakenly fail to find the
16945 # definitions.
16946 ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" "
16947 $ac_includes_default
16948 #if defined(HAVE_PTHREAD)
16949 #include <pthread.h>
16950 #endif /* HAVE_PTHREAD */
16951
16952 "
16953 if test "x$ac_cv_type_clockid_t" = xyes; then :
16954
16955 else
16956
16957 $as_echo "#define clockid_t int" >>confdefs.h
16958
16959 fi
16960
16961 ac_fn_c_check_type "$LINENO" "timer_t" "ac_cv_type_timer_t" "
16962 $ac_includes_default
16963 #if defined(HAVE_PTHREAD)
16964 #include <pthread.h>
16965 #endif /* HAVE_PTHREAD */
16966
16967 "
16968 if test "x$ac_cv_type_timer_t" = xyes; then :
16969
16970 else
16971
16972 $as_echo "#define timer_t int" >>confdefs.h
16973
16974 fi
16975
16976
16977 # Checks for library functions.
16978 for ac_header in stdlib.h
16979 do :
16980 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16981 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16982 cat >>confdefs.h <<_ACEOF
16983 #define HAVE_STDLIB_H 1
16984 _ACEOF
16985
16986 fi
16987
16988 done
16989
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16991 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16992 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
16993 $as_echo_n "(cached) " >&6
16994 else
16995 if test "$cross_compiling" = yes; then :
16996 ac_cv_func_malloc_0_nonnull=no
16997 else
16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h. */
17000 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17001 # include <stdlib.h>
17002 #else
17003 char *malloc ();
17004 #endif
17005
17006 int
17007 main ()
17008 {
17009 return ! malloc (0);
17010 ;
17011 return 0;
17012 }
17013 _ACEOF
17014 if ac_fn_c_try_run "$LINENO"; then :
17015 ac_cv_func_malloc_0_nonnull=yes
17016 else
17017 ac_cv_func_malloc_0_nonnull=no
17018 fi
17019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17020 conftest.$ac_objext conftest.beam conftest.$ac_ext
17021 fi
17022
17023 fi
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17025 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17026 if test $ac_cv_func_malloc_0_nonnull = yes; then :
17027
17028 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
17029
17030 else
17031 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
17032
17033 case " $LIBOBJS " in
17034 *" malloc.$ac_objext "* ) ;;
17035 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
17036 ;;
17037 esac
17038
17039
17040 $as_echo "#define malloc rpl_malloc" >>confdefs.h
17041
17042 fi
17043
17044
17045 for ac_header in stdlib.h
17046 do :
17047 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17048 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17049 cat >>confdefs.h <<_ACEOF
17050 #define HAVE_STDLIB_H 1
17051 _ACEOF
17052
17053 fi
17054
17055 done
17056
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
17058 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
17059 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
17060 $as_echo_n "(cached) " >&6
17061 else
17062 if test "$cross_compiling" = yes; then :
17063 ac_cv_func_realloc_0_nonnull=no
17064 else
17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066 /* end confdefs.h. */
17067 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17068 # include <stdlib.h>
17069 #else
17070 char *realloc ();
17071 #endif
17072
17073 int
17074 main ()
17075 {
17076 return ! realloc (0, 0);
17077 ;
17078 return 0;
17079 }
17080 _ACEOF
17081 if ac_fn_c_try_run "$LINENO"; then :
17082 ac_cv_func_realloc_0_nonnull=yes
17083 else
17084 ac_cv_func_realloc_0_nonnull=no
17085 fi
17086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17087 conftest.$ac_objext conftest.beam conftest.$ac_ext
17088 fi
17089
17090 fi
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
17092 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
17093 if test $ac_cv_func_realloc_0_nonnull = yes; then :
17094
17095 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
17096
17097 else
17098 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
17099
17100 case " $LIBOBJS " in
17101 *" realloc.$ac_objext "* ) ;;
17102 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
17103 ;;
17104 esac
17105
17106
17107 $as_echo "#define realloc rpl_realloc" >>confdefs.h
17108
17109 fi
17110
17111
17112
17113 # Check if the timer_create(), timer_settime(), and timer_delete()
17114 # functions on the system are available and suitable, or need to be
17115 # replaced with Check's replacement of these functions.
17116
17117
17118
17119 for ac_header in $ac_header_list
17120 do :
17121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17122 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17123 "
17124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17125 cat >>confdefs.h <<_ACEOF
17126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17127 _ACEOF
17128
17129 fi
17130
17131 done
17132
17133
17134
17135
17136
17137
17138
17139
17140 if test "xtrue" != x"$enable_timer_replacement"; then
17141 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
17142 if test "x$ac_cv_func_timer_create" = xyes; then :
17143 hw_cv_librt_timers=yes
17144 else
17145 hw_cv_librt_timers=no
17146 fi
17147
17148 if test "$hw_cv_librt_timers" = yes; then :
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if timer_create is supported on the system" >&5
17150 $as_echo_n "checking if timer_create is supported on the system... " >&6; }
17151 if ${hw_cv_librt_timers_posix+:} false; then :
17152 $as_echo_n "(cached) " >&6
17153 else
17154 if test "$cross_compiling" = yes; then :
17155 hw_cv_librt_timers_posix=autodetect
17156 else
17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h. */
17159 #if HAVE_TIME_H
17160 #include <time.h>
17161 #endif
17162 #include <errno.h>
17163 static int test_timer_create()
17164 {
17165 timer_t timerid;
17166 if(timer_create(CLOCK_REALTIME, NULL, &timerid) != 0)
17167 {
17168 /*
17169 On this system, although the function is available,
17170 no meaningful implementation is provided.
17171 */
17172 if(errno == ENOSYS)
17173 {
17174 return 1;
17175 }
17176 }
17177 return 0;
17178 }
17179 int
17180 main ()
17181 {
17182 return test_timer_create();
17183 ;
17184 return 0;
17185 }
17186 _ACEOF
17187 if ac_fn_c_try_run "$LINENO"; then :
17188 hw_cv_librt_timers_posix=yes
17189 else
17190 hw_cv_librt_timers_posix=no
17191 fi
17192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17193 conftest.$ac_objext conftest.beam conftest.$ac_ext
17194 fi
17195
17196 fi
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_librt_timers_posix" >&5
17198 $as_echo "$hw_cv_librt_timers_posix" >&6; }
17199 else
17200 hw_cv_librt_timers_posix=no
17201 fi
17202 else
17203 hw_cv_librt_timers_posix=no
17204 fi
17205
17206 # If the system does not have a POSIX timer_create(), then use
17207 # Check's reimplementation of the timer_* calls
17208 if test "$hw_cv_librt_timers_posix" = no; then :
17209
17210 if test "x$_hw_cv_librt_timers_replace_done" != xyes; then :
17211 case " $LIBOBJS " in
17212 *" timer_create.$ac_objext "* ) ;;
17213 *) LIBOBJS="$LIBOBJS timer_create.$ac_objext"
17214 ;;
17215 esac
17216
17217 case " $LIBOBJS " in
17218 *" timer_settime.$ac_objext "* ) ;;
17219 *) LIBOBJS="$LIBOBJS timer_settime.$ac_objext"
17220 ;;
17221 esac
17222
17223 case " $LIBOBJS " in
17224 *" timer_delete.$ac_objext "* ) ;;
17225 *) LIBOBJS="$LIBOBJS timer_delete.$ac_objext"
17226 ;;
17227 esac
17228
17229 _hw_cv_librt_timers_replace_done=yes
17230 fi
17231
17232 fi
17233
17234 # If we are cross compiling, do the normal check for the
17235 # timer_* calls.
17236 if test "$hw_cv_librt_timers_posix" = autodetect; then :
17237 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
17238 if test "x$ac_cv_func_timer_create" = xyes; then :
17239 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
17240
17241 else
17242 case " $LIBOBJS " in
17243 *" timer_create.$ac_objext "* ) ;;
17244 *) LIBOBJS="$LIBOBJS timer_create.$ac_objext"
17245 ;;
17246 esac
17247
17248 fi
17249
17250 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
17251 if test "x$ac_cv_func_timer_settime" = xyes; then :
17252 $as_echo "#define HAVE_TIMER_SETTIME 1" >>confdefs.h
17253
17254 else
17255 case " $LIBOBJS " in
17256 *" timer_settime.$ac_objext "* ) ;;
17257 *) LIBOBJS="$LIBOBJS timer_settime.$ac_objext"
17258 ;;
17259 esac
17260
17261 fi
17262
17263 ac_fn_c_check_func "$LINENO" "timer_delete" "ac_cv_func_timer_delete"
17264 if test "x$ac_cv_func_timer_delete" = xyes; then :
17265 $as_echo "#define HAVE_TIMER_DELETE 1" >>confdefs.h
17266
17267 else
17268 case " $LIBOBJS " in
17269 *" timer_delete.$ac_objext "* ) ;;
17270 *) LIBOBJS="$LIBOBJS timer_delete.$ac_objext"
17271 ;;
17272 esac
17273
17274 fi
17275
17276
17277 ac_fn_c_check_decl "$LINENO" "timer_create" "ac_cv_have_decl_timer_create" "$ac_includes_default"
17278 if test "x$ac_cv_have_decl_timer_create" = xyes; then :
17279 ac_have_decl=1
17280 else
17281 ac_have_decl=0
17282 fi
17283
17284 cat >>confdefs.h <<_ACEOF
17285 #define HAVE_DECL_TIMER_CREATE $ac_have_decl
17286 _ACEOF
17287 ac_fn_c_check_decl "$LINENO" "timer_settime" "ac_cv_have_decl_timer_settime" "$ac_includes_default"
17288 if test "x$ac_cv_have_decl_timer_settime" = xyes; then :
17289 ac_have_decl=1
17290 else
17291 ac_have_decl=0
17292 fi
17293
17294 cat >>confdefs.h <<_ACEOF
17295 #define HAVE_DECL_TIMER_SETTIME $ac_have_decl
17296 _ACEOF
17297 ac_fn_c_check_decl "$LINENO" "timer_delete" "ac_cv_have_decl_timer_delete" "$ac_includes_default"
17298 if test "x$ac_cv_have_decl_timer_delete" = xyes; then :
17299 ac_have_decl=1
17300 else
17301 ac_have_decl=0
17302 fi
17303
17304 cat >>confdefs.h <<_ACEOF
17305 #define HAVE_DECL_TIMER_DELETE $ac_have_decl
17306 _ACEOF
17307
17308 fi
17309
17310
17311 # The following checks will replace missing functions from libcompat
17312 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
17313 if test "x$ac_cv_func_alarm" = xyes; then :
17314 $as_echo "#define HAVE_ALARM 1" >>confdefs.h
17315
17316 else
17317 case " $LIBOBJS " in
17318 *" alarm.$ac_objext "* ) ;;
17319 *) LIBOBJS="$LIBOBJS alarm.$ac_objext"
17320 ;;
17321 esac
17322
17323 fi
17324
17325 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
17326 if test "x$ac_cv_func_clock_gettime" = xyes; then :
17327 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17328
17329 else
17330 case " $LIBOBJS " in
17331 *" clock_gettime.$ac_objext "* ) ;;
17332 *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext"
17333 ;;
17334 esac
17335
17336 fi
17337
17338 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
17339 if test "x$ac_cv_func_getline" = xyes; then :
17340 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
17341
17342 else
17343 case " $LIBOBJS " in
17344 *" getline.$ac_objext "* ) ;;
17345 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
17346 ;;
17347 esac
17348
17349 fi
17350
17351 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
17352 if test "x$ac_cv_func_gettimeofday" = xyes; then :
17353 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
17354
17355 else
17356 case " $LIBOBJS " in
17357 *" gettimeofday.$ac_objext "* ) ;;
17358 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
17359 ;;
17360 esac
17361
17362 fi
17363
17364 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
17365 if test "x$ac_cv_func_localtime_r" = xyes; then :
17366 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
17367
17368 else
17369 case " $LIBOBJS " in
17370 *" localtime_r.$ac_objext "* ) ;;
17371 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
17372 ;;
17373 esac
17374
17375 fi
17376
17377 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
17378 if test "x$ac_cv_func_strdup" = xyes; then :
17379 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
17380
17381 else
17382 case " $LIBOBJS " in
17383 *" strdup.$ac_objext "* ) ;;
17384 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
17385 ;;
17386 esac
17387
17388 fi
17389
17390 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
17391 if test "x$ac_cv_func_strsignal" = xyes; then :
17392 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
17393
17394 else
17395 case " $LIBOBJS " in
17396 *" strsignal.$ac_objext "* ) ;;
17397 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
17398 ;;
17399 esac
17400
17401 fi
17402
17403
17404 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
17405 if test "x$ac_cv_have_decl_alarm" = xyes; then :
17406 ac_have_decl=1
17407 else
17408 ac_have_decl=0
17409 fi
17410
17411 cat >>confdefs.h <<_ACEOF
17412 #define HAVE_DECL_ALARM $ac_have_decl
17413 _ACEOF
17414 ac_fn_c_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "$ac_includes_default"
17415 if test "x$ac_cv_have_decl_clock_gettime" = xyes; then :
17416 ac_have_decl=1
17417 else
17418 ac_have_decl=0
17419 fi
17420
17421 cat >>confdefs.h <<_ACEOF
17422 #define HAVE_DECL_CLOCK_GETTIME $ac_have_decl
17423 _ACEOF
17424 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
17425 if test "x$ac_cv_have_decl_getline" = xyes; then :
17426 ac_have_decl=1
17427 else
17428 ac_have_decl=0
17429 fi
17430
17431 cat >>confdefs.h <<_ACEOF
17432 #define HAVE_DECL_GETLINE $ac_have_decl
17433 _ACEOF
17434 ac_fn_c_check_decl "$LINENO" "gettimeofday" "ac_cv_have_decl_gettimeofday" "$ac_includes_default"
17435 if test "x$ac_cv_have_decl_gettimeofday" = xyes; then :
17436 ac_have_decl=1
17437 else
17438 ac_have_decl=0
17439 fi
17440
17441 cat >>confdefs.h <<_ACEOF
17442 #define HAVE_DECL_GETTIMEOFDAY $ac_have_decl
17443 _ACEOF
17444 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
17445 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
17446 ac_have_decl=1
17447 else
17448 ac_have_decl=0
17449 fi
17450
17451 cat >>confdefs.h <<_ACEOF
17452 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
17453 _ACEOF
17454 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
17455 if test "x$ac_cv_have_decl_strdup" = xyes; then :
17456 ac_have_decl=1
17457 else
17458 ac_have_decl=0
17459 fi
17460
17461 cat >>confdefs.h <<_ACEOF
17462 #define HAVE_DECL_STRDUP $ac_have_decl
17463 _ACEOF
17464 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
17465 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
17466 ac_have_decl=1
17467 else
17468 ac_have_decl=0
17469 fi
17470
17471 cat >>confdefs.h <<_ACEOF
17472 #define HAVE_DECL_STRSIGNAL $ac_have_decl
17473 _ACEOF
17474
17475
17476 # The following checks are to only detect if the functions exist, but
17477 # not replace them
17478 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
17479 if test "x$ac_cv_have_decl_setenv" = xyes; then :
17480 ac_have_decl=1
17481 else
17482 ac_have_decl=0
17483 fi
17484
17485 cat >>confdefs.h <<_ACEOF
17486 #define HAVE_DECL_SETENV $ac_have_decl
17487 _ACEOF
17488
17489
17490 for ac_func in setitimer
17491 do :
17492 ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
17493 if test "x$ac_cv_func_setitimer" = xyes; then :
17494 cat >>confdefs.h <<_ACEOF
17495 #define HAVE_SETITIMER 1
17496 _ACEOF
17497
17498 fi
17499 done
17500
17501
17502 # Checks for functions not available in Windows
17503 if test "xtrue" = x"$enable_fork"; then
17504 for ac_func in fork
17505 do :
17506 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
17507 if test "x$ac_cv_func_fork" = xyes; then :
17508 cat >>confdefs.h <<_ACEOF
17509 #define HAVE_FORK 1
17510 _ACEOF
17511 HAVE_FORK=1
17512 else
17513 HAVE_FORK=0
17514 fi
17515 done
17516
17517 else
17518 HAVE_FORK=0
17519 fi
17520
17521 for ac_func in sigaction
17522 do :
17523 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
17524 if test "x$ac_cv_func_sigaction" = xyes; then :
17525 cat >>confdefs.h <<_ACEOF
17526 #define HAVE_SIGACTION 1
17527 _ACEOF
17528
17529 fi
17530 done
17531
17532 for ac_func in mkstemp
17533 do :
17534 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
17535 if test "x$ac_cv_func_mkstemp" = xyes; then :
17536 cat >>confdefs.h <<_ACEOF
17537 #define HAVE_MKSTEMP 1
17538 _ACEOF
17539
17540 fi
17541 done
17542
17543
17544 # Check if the system's snprintf (and its variations) are C99 compliant.
17545 # If they are not, use the version in libcompat.
17546
17547
17548
17549
17550
17551
17552
17553 if test "xtrue" != x"$enable_snprintf_replacement"; then
17554 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
17555 if test "x$ac_cv_func_vsnprintf" = xyes; then :
17556 hw_cv_func_vsnprintf=yes
17557 else
17558 hw_cv_func_vsnprintf=no
17559 fi
17560
17561 if test "$hw_cv_func_vsnprintf" = yes; then :
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
17563 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
17564 if ${hw_cv_func_vsnprintf_c99+:} false; then :
17565 $as_echo_n "(cached) " >&6
17566 else
17567 if test "$cross_compiling" = yes; then :
17568 hw_cv_func_vsnprintf_c99=no
17569 else
17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571 /* end confdefs.h. */
17572 #if HAVE_STDARG_H
17573 #include <stdarg.h>
17574 #endif
17575 #include <stdio.h>
17576 static int testprintf(char *buf, size_t size, const char *format, ...)
17577 {
17578 int result;
17579 va_list ap;
17580 va_start(ap, format);
17581 result = vsnprintf(buf, size, format, ap);
17582 va_end(ap);
17583 return result;
17584 }
17585 int
17586 main ()
17587 {
17588 char buf[43];
17589 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
17590 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
17591 buf[0] != 'T' || buf[3] != '\0')
17592 return 1;
17593 ;
17594 return 0;
17595 }
17596 _ACEOF
17597 if ac_fn_c_try_run "$LINENO"; then :
17598 hw_cv_func_vsnprintf_c99=yes
17599 else
17600 hw_cv_func_vsnprintf_c99=no
17601 fi
17602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17603 conftest.$ac_objext conftest.beam conftest.$ac_ext
17604 fi
17605
17606 fi
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
17608 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
17609 else
17610 hw_cv_func_snprintf_c99=no
17611 fi
17612 if test "$hw_cv_func_vsnprintf_c99" = yes; then :
17613
17614 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
17615
17616 fi
17617 else
17618 hw_cv_func_vsnprintf_c99=no
17619 fi
17620
17621 if test "$hw_cv_func_vsnprintf_c99" = no; then :
17622
17623 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
17624
17625 for ac_header in inttypes.h locale.h stddef.h stdint.h
17626 do :
17627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17628 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17630 cat >>confdefs.h <<_ACEOF
17631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17632 _ACEOF
17633
17634 fi
17635
17636 done
17637
17638 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
17639 "
17640 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
17641
17642 cat >>confdefs.h <<_ACEOF
17643 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
17644 _ACEOF
17645
17646
17647 fi
17648 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
17649 "
17650 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
17651
17652 cat >>confdefs.h <<_ACEOF
17653 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
17654 _ACEOF
17655
17656
17657 fi
17658
17659
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
17661 $as_echo_n "checking for long double... " >&6; }
17662 if ${ac_cv_type_long_double+:} false; then :
17663 $as_echo_n "(cached) " >&6
17664 else
17665 if test "$GCC" = yes; then
17666 ac_cv_type_long_double=yes
17667 else
17668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17669 /* end confdefs.h. */
17670 /* The Stardent Vistra knows sizeof (long double), but does
17671 not support it. */
17672 long double foo = 0.0L;
17673 int
17674 main ()
17675 {
17676 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
17677 sizeof (double) <= sizeof (long double))];
17678 test_array [0] = 0;
17679 return test_array [0];
17680
17681 ;
17682 return 0;
17683 }
17684 _ACEOF
17685 if ac_fn_c_try_compile "$LINENO"; then :
17686 ac_cv_type_long_double=yes
17687 else
17688 ac_cv_type_long_double=no
17689 fi
17690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691 fi
17692 fi
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
17694 $as_echo "$ac_cv_type_long_double" >&6; }
17695 if test $ac_cv_type_long_double = yes; then
17696
17697 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
17698
17699 fi
17700
17701
17702
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17704 $as_echo_n "checking for long long int... " >&6; }
17705 if ${ac_cv_type_long_long_int+:} false; then :
17706 $as_echo_n "(cached) " >&6
17707 else
17708 ac_cv_type_long_long_int=yes
17709 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17710 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17711 if test $ac_cv_type_long_long_int = yes; then
17712 if test "$cross_compiling" = yes; then :
17713 :
17714 else
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17717 #include <limits.h>
17718 #ifndef LLONG_MAX
17719 # define HALF \
17720 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17721 # define LLONG_MAX (HALF - 1 + HALF)
17722 #endif
17723 int
17724 main ()
17725 {
17726 long long int n = 1;
17727 int i;
17728 for (i = 0; ; i++)
17729 {
17730 long long int m = n << i;
17731 if (m >> i != n)
17732 return 1;
17733 if (LLONG_MAX / 2 < m)
17734 break;
17735 }
17736 return 0;
17737 ;
17738 return 0;
17739 }
17740 _ACEOF
17741 if ac_fn_c_try_run "$LINENO"; then :
17742
17743 else
17744 ac_cv_type_long_long_int=no
17745 fi
17746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17747 conftest.$ac_objext conftest.beam conftest.$ac_ext
17748 fi
17749
17750 fi
17751 fi
17752 fi
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17754 $as_echo "$ac_cv_type_long_long_int" >&6; }
17755 if test $ac_cv_type_long_long_int = yes; then
17756
17757 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17758
17759 fi
17760
17761
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17763 $as_echo_n "checking for unsigned long long int... " >&6; }
17764 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17765 $as_echo_n "(cached) " >&6
17766 else
17767 ac_cv_type_unsigned_long_long_int=yes
17768 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17770 /* end confdefs.h. */
17771
17772 /* For now, do not test the preprocessor; as of 2007 there are too many
17773 implementations with broken preprocessors. Perhaps this can
17774 be revisited in 2012. In the meantime, code should not expect
17775 #if to work with literals wider than 32 bits. */
17776 /* Test literals. */
17777 long long int ll = 9223372036854775807ll;
17778 long long int nll = -9223372036854775807LL;
17779 unsigned long long int ull = 18446744073709551615ULL;
17780 /* Test constant expressions. */
17781 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17782 ? 1 : -1)];
17783 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17784 ? 1 : -1)];
17785 int i = 63;
17786 int
17787 main ()
17788 {
17789 /* Test availability of runtime routines for shift and division. */
17790 long long int llmax = 9223372036854775807ll;
17791 unsigned long long int ullmax = 18446744073709551615ull;
17792 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17793 | (llmax / ll) | (llmax % ll)
17794 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17795 | (ullmax / ull) | (ullmax % ull));
17796 ;
17797 return 0;
17798 }
17799
17800 _ACEOF
17801 if ac_fn_c_try_link "$LINENO"; then :
17802
17803 else
17804 ac_cv_type_unsigned_long_long_int=no
17805 fi
17806 rm -f core conftest.err conftest.$ac_objext \
17807 conftest$ac_exeext conftest.$ac_ext
17808 fi
17809 fi
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17811 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17812 if test $ac_cv_type_unsigned_long_long_int = yes; then
17813
17814 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17815
17816 fi
17817
17818 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17819 if test "x$ac_cv_type_size_t" = xyes; then :
17820
17821 else
17822
17823 cat >>confdefs.h <<_ACEOF
17824 #define size_t unsigned int
17825 _ACEOF
17826
17827 fi
17828
17829
17830
17831 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
17832 if test "x$ac_cv_type_intmax_t" = xyes; then :
17833
17834 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
17835
17836 else
17837 test $ac_cv_type_long_long_int = yes \
17838 && ac_type='long long int' \
17839 || ac_type='long int'
17840
17841 cat >>confdefs.h <<_ACEOF
17842 #define intmax_t $ac_type
17843 _ACEOF
17844
17845 fi
17846
17847
17848
17849
17850 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
17851 if test "x$ac_cv_type_uintmax_t" = xyes; then :
17852
17853 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
17854
17855 else
17856 test $ac_cv_type_unsigned_long_long_int = yes \
17857 && ac_type='unsigned long long int' \
17858 || ac_type='unsigned long int'
17859
17860 cat >>confdefs.h <<_ACEOF
17861 #define uintmax_t $ac_type
17862 _ACEOF
17863
17864 fi
17865
17866
17867
17868 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17869 if test "x$ac_cv_type_uintptr_t" = xyes; then :
17870
17871 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
17872
17873 else
17874 for ac_type in 'unsigned int' 'unsigned long int' \
17875 'unsigned long long int'; do
17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h. */
17878 $ac_includes_default
17879 int
17880 main ()
17881 {
17882 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17883 test_array [0] = 0;
17884 return test_array [0];
17885
17886 ;
17887 return 0;
17888 }
17889 _ACEOF
17890 if ac_fn_c_try_compile "$LINENO"; then :
17891
17892 cat >>confdefs.h <<_ACEOF
17893 #define uintptr_t $ac_type
17894 _ACEOF
17895
17896 ac_type=
17897 fi
17898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17899 test -z "$ac_type" && break
17900 done
17901 fi
17902
17903
17904 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17905 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17906
17907 cat >>confdefs.h <<_ACEOF
17908 #define HAVE_PTRDIFF_T 1
17909 _ACEOF
17910
17911
17912 fi
17913
17914 for ac_func in localeconv
17915 do :
17916 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
17917 if test "x$ac_cv_func_localeconv" = xyes; then :
17918 cat >>confdefs.h <<_ACEOF
17919 #define HAVE_LOCALECONV 1
17920 _ACEOF
17921
17922 fi
17923 done
17924
17925
17926 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17928 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17929 if ${ac_cv_c_const+:} false; then :
17930 $as_echo_n "(cached) " >&6
17931 else
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17934
17935 int
17936 main ()
17937 {
17938
17939 #ifndef __cplusplus
17940 /* Ultrix mips cc rejects this sort of thing. */
17941 typedef int charset[2];
17942 const charset cs = { 0, 0 };
17943 /* SunOS 4.1.1 cc rejects this. */
17944 char const *const *pcpcc;
17945 char **ppc;
17946 /* NEC SVR4.0.2 mips cc rejects this. */
17947 struct point {int x, y;};
17948 static struct point const zero = {0,0};
17949 /* AIX XL C 1.02.0.0 rejects this.
17950 It does not let you subtract one const X* pointer from another in
17951 an arm of an if-expression whose if-part is not a constant
17952 expression */
17953 const char *g = "string";
17954 pcpcc = &g + (g ? g-g : 0);
17955 /* HPUX 7.0 cc rejects these. */
17956 ++pcpcc;
17957 ppc = (char**) pcpcc;
17958 pcpcc = (char const *const *) ppc;
17959 { /* SCO 3.2v4 cc rejects this sort of thing. */
17960 char tx;
17961 char *t = &tx;
17962 char const *s = 0 ? (char *) 0 : (char const *) 0;
17963
17964 *t++ = 0;
17965 if (s) return 0;
17966 }
17967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17968 int x[] = {25, 17};
17969 const int *foo = &x[0];
17970 ++foo;
17971 }
17972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17973 typedef const int *iptr;
17974 iptr p = 0;
17975 ++p;
17976 }
17977 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17979 struct s { int j; const int *ap[3]; } bx;
17980 struct s *b = &bx; b->j = 5;
17981 }
17982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17983 const int foo = 10;
17984 if (!foo) return 0;
17985 }
17986 return !cs[0] && !zero.x;
17987 #endif
17988
17989 ;
17990 return 0;
17991 }
17992 _ACEOF
17993 if ac_fn_c_try_compile "$LINENO"; then :
17994 ac_cv_c_const=yes
17995 else
17996 ac_cv_c_const=no
17997 fi
17998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17999 fi
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18001 $as_echo "$ac_cv_c_const" >&6; }
18002 if test $ac_cv_c_const = no; then
18003
18004 $as_echo "#define const /**/" >>confdefs.h
18005
18006 fi
18007
18008
18009
18010
18011 case " $LIBOBJS " in
18012 *" snprintf.$ac_objext "* ) ;;
18013 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18014 ;;
18015 esac
18016
18017 _hw_cv_func_xprintf_replace_done=yes
18018 fi
18019
18020 fi
18021
18022
18023
18024 if test "xtrue" != x"$enable_snprintf_replacement"; then
18025 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18026 if test "x$ac_cv_func_snprintf" = xyes; then :
18027 hw_cv_func_snprintf=yes
18028 else
18029 hw_cv_func_snprintf=no
18030 fi
18031
18032 if test "$hw_cv_func_snprintf" = yes; then :
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
18034 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
18035 if ${hw_cv_func_snprintf_c99+:} false; then :
18036 $as_echo_n "(cached) " >&6
18037 else
18038 if test "$cross_compiling" = yes; then :
18039 hw_cv_func_snprintf_c99=no
18040 else
18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h. */
18043 #include <stdio.h>
18044 int
18045 main ()
18046 {
18047 char buf[43];
18048 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
18049 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
18050 buf[0] != 'T' || buf[3] != '\0')
18051 return 1;
18052 ;
18053 return 0;
18054 }
18055 _ACEOF
18056 if ac_fn_c_try_run "$LINENO"; then :
18057 hw_cv_func_snprintf_c99=yes
18058 else
18059 hw_cv_func_snprintf_c99=no
18060 fi
18061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18062 conftest.$ac_objext conftest.beam conftest.$ac_ext
18063 fi
18064
18065 fi
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
18067 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
18068 else
18069 hw_cv_func_snprintf_c99=no
18070 fi
18071 else
18072 hw_cv_func_snprintf_c99=no
18073 fi
18074
18075 if test "$hw_cv_func_snprintf_c99" = yes; then :
18076
18077 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18078
18079 else
18080
18081 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
18082
18083
18084 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18086 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18087 if ${ac_cv_c_const+:} false; then :
18088 $as_echo_n "(cached) " >&6
18089 else
18090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091 /* end confdefs.h. */
18092
18093 int
18094 main ()
18095 {
18096
18097 #ifndef __cplusplus
18098 /* Ultrix mips cc rejects this sort of thing. */
18099 typedef int charset[2];
18100 const charset cs = { 0, 0 };
18101 /* SunOS 4.1.1 cc rejects this. */
18102 char const *const *pcpcc;
18103 char **ppc;
18104 /* NEC SVR4.0.2 mips cc rejects this. */
18105 struct point {int x, y;};
18106 static struct point const zero = {0,0};
18107 /* AIX XL C 1.02.0.0 rejects this.
18108 It does not let you subtract one const X* pointer from another in
18109 an arm of an if-expression whose if-part is not a constant
18110 expression */
18111 const char *g = "string";
18112 pcpcc = &g + (g ? g-g : 0);
18113 /* HPUX 7.0 cc rejects these. */
18114 ++pcpcc;
18115 ppc = (char**) pcpcc;
18116 pcpcc = (char const *const *) ppc;
18117 { /* SCO 3.2v4 cc rejects this sort of thing. */
18118 char tx;
18119 char *t = &tx;
18120 char const *s = 0 ? (char *) 0 : (char const *) 0;
18121
18122 *t++ = 0;
18123 if (s) return 0;
18124 }
18125 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18126 int x[] = {25, 17};
18127 const int *foo = &x[0];
18128 ++foo;
18129 }
18130 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18131 typedef const int *iptr;
18132 iptr p = 0;
18133 ++p;
18134 }
18135 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18136 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18137 struct s { int j; const int *ap[3]; } bx;
18138 struct s *b = &bx; b->j = 5;
18139 }
18140 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18141 const int foo = 10;
18142 if (!foo) return 0;
18143 }
18144 return !cs[0] && !zero.x;
18145 #endif
18146
18147 ;
18148 return 0;
18149 }
18150 _ACEOF
18151 if ac_fn_c_try_compile "$LINENO"; then :
18152 ac_cv_c_const=yes
18153 else
18154 ac_cv_c_const=no
18155 fi
18156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18157 fi
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18159 $as_echo "$ac_cv_c_const" >&6; }
18160 if test $ac_cv_c_const = no; then
18161
18162 $as_echo "#define const /**/" >>confdefs.h
18163
18164 fi
18165
18166
18167
18168
18169 case " $LIBOBJS " in
18170 *" snprintf.$ac_objext "* ) ;;
18171 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18172 ;;
18173 esac
18174
18175 _hw_cv_func_xprintf_replace_done=yes
18176 fi
18177
18178 fi
18179
18180
18181 # Check for whether we can install checkmk (we have a usable awk)
18182
18183 # Extract the first word of "$AWK", so it can be a program name with args.
18184 set dummy $AWK; ac_word=$2
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18186 $as_echo_n "checking for $ac_word... " >&6; }
18187 if ${ac_cv_path_AWK_PATH+:} false; then :
18188 $as_echo_n "(cached) " >&6
18189 else
18190 case $AWK_PATH in
18191 [\\/]* | ?:[\\/]*)
18192 ac_cv_path_AWK_PATH="$AWK_PATH" # Let the user override the test with a path.
18193 ;;
18194 *)
18195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18196 for as_dir in $PATH
18197 do
18198 IFS=$as_save_IFS
18199 test -z "$as_dir" && as_dir=.
18200 for ac_exec_ext in '' $ac_executable_extensions; do
18201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18202 ac_cv_path_AWK_PATH="$as_dir/$ac_word$ac_exec_ext"
18203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18204 break 2
18205 fi
18206 done
18207 done
18208 IFS=$as_save_IFS
18209
18210 test -z "$ac_cv_path_AWK_PATH" && ac_cv_path_AWK_PATH="*NO AWK*"
18211 ;;
18212 esac
18213 fi
18214 AWK_PATH=$ac_cv_path_AWK_PATH
18215 if test -n "$AWK_PATH"; then
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK_PATH" >&5
18217 $as_echo "$AWK_PATH" >&6; }
18218 else
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220 $as_echo "no" >&6; }
18221 fi
18222
18223
18224 if test "x$AWK_PATH" != 'x*NO AWK*'; then
18225 INSTALL_CHECKMK_TRUE=
18226 INSTALL_CHECKMK_FALSE='#'
18227 else
18228 INSTALL_CHECKMK_TRUE='#'
18229 INSTALL_CHECKMK_FALSE=
18230 fi
18231
18232
18233 # Certain awk implementations disagree with each other on how to
18234 # substitute doubled backslashes in gsub()
18235 AWK_GSUB_DBL_BSLASH='\\\\'
18236
18237
18238 if test "x$AWK_PATH" = 'x*NO AWK*'; then :
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find a usable awk; won't install checkmk." >&5
18240 $as_echo "$as_me: WARNING: Couldn't find a usable awk; won't install checkmk." >&2;}
18241 else
18242 # Determine correct number of backslashes for gsub's replacement
18243 # value.
18244 if echo '\' |
18245 "$AWK_PATH" '{ gsub("\\\\", "\\\\", $0); print }' |
18246 grep '^\\$' >/dev/null 2>&1; then :
18247 AWK_GSUB_DBL_BSLASH='\\\\\\\\'
18248 fi
18249 ac_config_files="$ac_config_files checkmk/checkmk"
18250
18251 ac_config_commands="$ac_config_commands checkmk-x"
18252
18253 fi
18254
18255 # Output files
18256 ac_config_headers="$ac_config_headers config.h"
18257
18258
18259 ac_config_files="$ac_config_files check.pc Makefile checkmk/Makefile doc/Makefile lib/Makefile src/check.h src/Makefile tests/Makefile tests/test_vars"
18260
18261
18262 cat >confcache <<\_ACEOF
18263 # This file is a shell script that caches the results of configure
18264 # tests run on this system so they can be shared between configure
18265 # scripts and configure runs, see configure's option --config-cache.
18266 # It is not useful on other systems. If it contains results you don't
18267 # want to keep, you may remove or edit it.
18268 #
18269 # config.status only pays attention to the cache file if you give it
18270 # the --recheck option to rerun configure.
18271 #
18272 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18273 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18274 # following values.
18275
18276 _ACEOF
18277
18278 # The following way of writing the cache mishandles newlines in values,
18279 # but we know of no workaround that is simple, portable, and efficient.
18280 # So, we kill variables containing newlines.
18281 # Ultrix sh set writes to stderr and can't be redirected directly,
18282 # and sets the high bit in the cache file unless we assign to the vars.
18283 (
18284 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18285 eval ac_val=\$$ac_var
18286 case $ac_val in #(
18287 *${as_nl}*)
18288 case $ac_var in #(
18289 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18290 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18291 esac
18292 case $ac_var in #(
18293 _ | IFS | as_nl) ;; #(
18294 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18295 *) { eval $ac_var=; unset $ac_var;} ;;
18296 esac ;;
18297 esac
18298 done
18299
18300 (set) 2>&1 |
18301 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18302 *${as_nl}ac_space=\ *)
18303 # `set' does not quote correctly, so add quotes: double-quote
18304 # substitution turns \\\\ into \\, and sed turns \\ into \.
18305 sed -n \
18306 "s/'/'\\\\''/g;
18307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18308 ;; #(
18309 *)
18310 # `set' quotes correctly as required by POSIX, so do not add quotes.
18311 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18312 ;;
18313 esac |
18314 sort
18315 ) |
18316 sed '
18317 /^ac_cv_env_/b end
18318 t clear
18319 :clear
18320 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18321 t end
18322 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18323 :end' >>confcache
18324 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18325 if test -w "$cache_file"; then
18326 if test "x$cache_file" != "x/dev/null"; then
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18328 $as_echo "$as_me: updating cache $cache_file" >&6;}
18329 if test ! -f "$cache_file" || test -h "$cache_file"; then
18330 cat confcache >"$cache_file"
18331 else
18332 case $cache_file in #(
18333 */* | ?:*)
18334 mv -f confcache "$cache_file"$$ &&
18335 mv -f "$cache_file"$$ "$cache_file" ;; #(
18336 *)
18337 mv -f confcache "$cache_file" ;;
18338 esac
18339 fi
18340 fi
18341 else
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18343 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18344 fi
18345 fi
18346 rm -f confcache
18347
18348 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18349 # Let make expand exec_prefix.
18350 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18351
18352 DEFS=-DHAVE_CONFIG_H
18353
18354 ac_libobjs=
18355 ac_ltlibobjs=
18356 U=
18357 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18358 # 1. Remove the extension, and $U if already installed.
18359 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18360 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18361 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18362 # will be set to the directory where LIBOBJS objects are built.
18363 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18364 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18365 done
18366 LIBOBJS=$ac_libobjs
18367
18368 LTLIBOBJS=$ac_ltlibobjs
18369
18370
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18372 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18373 if test -n "$am_sleep_pid"; then
18374 # Hide warnings about reused PIDs.
18375 wait $am_sleep_pid 2>/dev/null
18376 fi
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18378 $as_echo "done" >&6; }
18379 if test -n "$EXEEXT"; then
18380 am__EXEEXT_TRUE=
18381 am__EXEEXT_FALSE='#'
18382 else
18383 am__EXEEXT_TRUE='#'
18384 am__EXEEXT_FALSE=
18385 fi
18386
18387 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18388 as_fn_error $? "conditional \"AMDEP\" was never defined.
18389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18390 fi
18391 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18392 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18394 fi
18395 if test -z "${ENABLE_GCOV_TRUE}" && test -z "${ENABLE_GCOV_FALSE}"; then
18396 as_fn_error $? "conditional \"ENABLE_GCOV\" was never defined.
18397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18398 fi
18399 if test -z "${NO_TIMEOUT_TESTS_TRUE}" && test -z "${NO_TIMEOUT_TESTS_FALSE}"; then
18400 as_fn_error $? "conditional \"NO_TIMEOUT_TESTS\" was never defined.
18401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18402 fi
18403 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18404 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18406 fi
18407 if test -z "${MAKE_DOCS_TRUE}" && test -z "${MAKE_DOCS_FALSE}"; then
18408 as_fn_error $? "conditional \"MAKE_DOCS\" was never defined.
18409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18410 fi
18411 if test -z "${MAKE_DOCS_TRUE}" && test -z "${MAKE_DOCS_FALSE}"; then
18412 as_fn_error $? "conditional \"MAKE_DOCS\" was never defined.
18413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18414 fi
18415 if test -z "${USE_FILTERDIFF_TRUE}" && test -z "${USE_FILTERDIFF_FALSE}"; then
18416 as_fn_error $? "conditional \"USE_FILTERDIFF\" was never defined.
18417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18418 fi
18419 if test -z "${USE_GRAPHVIZ_TRUE}" && test -z "${USE_GRAPHVIZ_FALSE}"; then
18420 as_fn_error $? "conditional \"USE_GRAPHVIZ\" was never defined.
18421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18422 fi
18423 if test -z "${SUBUNIT_TRUE}" && test -z "${SUBUNIT_FALSE}"; then
18424 as_fn_error $? "conditional \"SUBUNIT\" was never defined.
18425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18426 fi
18427 if test -z "${INSTALL_CHECKMK_TRUE}" && test -z "${INSTALL_CHECKMK_FALSE}"; then
18428 as_fn_error $? "conditional \"INSTALL_CHECKMK\" was never defined.
18429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18430 fi
18431
18432 : "${CONFIG_STATUS=./config.status}"
18433 ac_write_fail=0
18434 ac_clean_files_save=$ac_clean_files
18435 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18437 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18438 as_write_fail=0
18439 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18440 #! $SHELL
18441 # Generated by $as_me.
18442 # Run this file to recreate the current configuration.
18443 # Compiler output produced by configure, useful for debugging
18444 # configure, is in config.log if it exists.
18445
18446 debug=false
18447 ac_cs_recheck=false
18448 ac_cs_silent=false
18449
18450 SHELL=\${CONFIG_SHELL-$SHELL}
18451 export SHELL
18452 _ASEOF
18453 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18454 ## -------------------- ##
18455 ## M4sh Initialization. ##
18456 ## -------------------- ##
18457
18458 # Be more Bourne compatible
18459 DUALCASE=1; export DUALCASE # for MKS sh
18460 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18461 emulate sh
18462 NULLCMD=:
18463 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18464 # is contrary to our usage. Disable this feature.
18465 alias -g '${1+"$@"}'='"$@"'
18466 setopt NO_GLOB_SUBST
18467 else
18468 case `(set -o) 2>/dev/null` in #(
18469 *posix*) :
18470 set -o posix ;; #(
18471 *) :
18472 ;;
18473 esac
18474 fi
18475
18476
18477 as_nl='
18478 '
18479 export as_nl
18480 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18481 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18482 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18483 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18484 # Prefer a ksh shell builtin over an external printf program on Solaris,
18485 # but without wasting forks for bash or zsh.
18486 if test -z "$BASH_VERSION$ZSH_VERSION" \
18487 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18488 as_echo='print -r --'
18489 as_echo_n='print -rn --'
18490 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18491 as_echo='printf %s\n'
18492 as_echo_n='printf %s'
18493 else
18494 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18495 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18496 as_echo_n='/usr/ucb/echo -n'
18497 else
18498 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18499 as_echo_n_body='eval
18500 arg=$1;
18501 case $arg in #(
18502 *"$as_nl"*)
18503 expr "X$arg" : "X\\(.*\\)$as_nl";
18504 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18505 esac;
18506 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18507 '
18508 export as_echo_n_body
18509 as_echo_n='sh -c $as_echo_n_body as_echo'
18510 fi
18511 export as_echo_body
18512 as_echo='sh -c $as_echo_body as_echo'
18513 fi
18514
18515 # The user is always right.
18516 if test "${PATH_SEPARATOR+set}" != set; then
18517 PATH_SEPARATOR=:
18518 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18519 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18520 PATH_SEPARATOR=';'
18521 }
18522 fi
18523
18524
18525 # IFS
18526 # We need space, tab and new line, in precisely that order. Quoting is
18527 # there to prevent editors from complaining about space-tab.
18528 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18529 # splitting by setting IFS to empty value.)
18530 IFS=" "" $as_nl"
18531
18532 # Find who we are. Look in the path if we contain no directory separator.
18533 as_myself=
18534 case $0 in #((
18535 *[\\/]* ) as_myself=$0 ;;
18536 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18537 for as_dir in $PATH
18538 do
18539 IFS=$as_save_IFS
18540 test -z "$as_dir" && as_dir=.
18541 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18542 done
18543 IFS=$as_save_IFS
18544
18545 ;;
18546 esac
18547 # We did not find ourselves, most probably we were run as `sh COMMAND'
18548 # in which case we are not to be found in the path.
18549 if test "x$as_myself" = x; then
18550 as_myself=$0
18551 fi
18552 if test ! -f "$as_myself"; then
18553 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18554 exit 1
18555 fi
18556
18557 # Unset variables that we do not need and which cause bugs (e.g. in
18558 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18559 # suppresses any "Segmentation fault" message there. '((' could
18560 # trigger a bug in pdksh 5.2.14.
18561 for as_var in BASH_ENV ENV MAIL MAILPATH
18562 do eval test x\${$as_var+set} = xset \
18563 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18564 done
18565 PS1='$ '
18566 PS2='> '
18567 PS4='+ '
18568
18569 # NLS nuisances.
18570 LC_ALL=C
18571 export LC_ALL
18572 LANGUAGE=C
18573 export LANGUAGE
18574
18575 # CDPATH.
18576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18577
18578
18579 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18580 # ----------------------------------------
18581 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18582 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18583 # script with STATUS, using 1 if that was 0.
18584 as_fn_error ()
18585 {
18586 as_status=$1; test $as_status -eq 0 && as_status=1
18587 if test "$4"; then
18588 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18589 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18590 fi
18591 $as_echo "$as_me: error: $2" >&2
18592 as_fn_exit $as_status
18593 } # as_fn_error
18594
18595
18596 # as_fn_set_status STATUS
18597 # -----------------------
18598 # Set $? to STATUS, without forking.
18599 as_fn_set_status ()
18600 {
18601 return $1
18602 } # as_fn_set_status
18603
18604 # as_fn_exit STATUS
18605 # -----------------
18606 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18607 as_fn_exit ()
18608 {
18609 set +e
18610 as_fn_set_status $1
18611 exit $1
18612 } # as_fn_exit
18613
18614 # as_fn_unset VAR
18615 # ---------------
18616 # Portably unset VAR.
18617 as_fn_unset ()
18618 {
18619 { eval $1=; unset $1;}
18620 }
18621 as_unset=as_fn_unset
18622 # as_fn_append VAR VALUE
18623 # ----------------------
18624 # Append the text in VALUE to the end of the definition contained in VAR. Take
18625 # advantage of any shell optimizations that allow amortized linear growth over
18626 # repeated appends, instead of the typical quadratic growth present in naive
18627 # implementations.
18628 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18629 eval 'as_fn_append ()
18630 {
18631 eval $1+=\$2
18632 }'
18633 else
18634 as_fn_append ()
18635 {
18636 eval $1=\$$1\$2
18637 }
18638 fi # as_fn_append
18639
18640 # as_fn_arith ARG...
18641 # ------------------
18642 # Perform arithmetic evaluation on the ARGs, and store the result in the
18643 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18644 # must be portable across $(()) and expr.
18645 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18646 eval 'as_fn_arith ()
18647 {
18648 as_val=$(( $* ))
18649 }'
18650 else
18651 as_fn_arith ()
18652 {
18653 as_val=`expr "$@" || test $? -eq 1`
18654 }
18655 fi # as_fn_arith
18656
18657
18658 if expr a : '\(a\)' >/dev/null 2>&1 &&
18659 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18660 as_expr=expr
18661 else
18662 as_expr=false
18663 fi
18664
18665 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18666 as_basename=basename
18667 else
18668 as_basename=false
18669 fi
18670
18671 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18672 as_dirname=dirname
18673 else
18674 as_dirname=false
18675 fi
18676
18677 as_me=`$as_basename -- "$0" ||
18678 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18679 X"$0" : 'X\(//\)$' \| \
18680 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18681 $as_echo X/"$0" |
18682 sed '/^.*\/\([^/][^/]*\)\/*$/{
18683 s//\1/
18684 q
18685 }
18686 /^X\/\(\/\/\)$/{
18687 s//\1/
18688 q
18689 }
18690 /^X\/\(\/\).*/{
18691 s//\1/
18692 q
18693 }
18694 s/.*/./; q'`
18695
18696 # Avoid depending upon Character Ranges.
18697 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18698 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18699 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18700 as_cr_digits='0123456789'
18701 as_cr_alnum=$as_cr_Letters$as_cr_digits
18702
18703 ECHO_C= ECHO_N= ECHO_T=
18704 case `echo -n x` in #(((((
18705 -n*)
18706 case `echo 'xy\c'` in
18707 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18708 xy) ECHO_C='\c';;
18709 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18710 ECHO_T=' ';;
18711 esac;;
18712 *)
18713 ECHO_N='-n';;
18714 esac
18715
18716 rm -f conf$$ conf$$.exe conf$$.file
18717 if test -d conf$$.dir; then
18718 rm -f conf$$.dir/conf$$.file
18719 else
18720 rm -f conf$$.dir
18721 mkdir conf$$.dir 2>/dev/null
18722 fi
18723 if (echo >conf$$.file) 2>/dev/null; then
18724 if ln -s conf$$.file conf$$ 2>/dev/null; then
18725 as_ln_s='ln -s'
18726 # ... but there are two gotchas:
18727 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18728 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18729 # In both cases, we have to default to `cp -pR'.
18730 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18731 as_ln_s='cp -pR'
18732 elif ln conf$$.file conf$$ 2>/dev/null; then
18733 as_ln_s=ln
18734 else
18735 as_ln_s='cp -pR'
18736 fi
18737 else
18738 as_ln_s='cp -pR'
18739 fi
18740 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18741 rmdir conf$$.dir 2>/dev/null
18742
18743
18744 # as_fn_mkdir_p
18745 # -------------
18746 # Create "$as_dir" as a directory, including parents if necessary.
18747 as_fn_mkdir_p ()
18748 {
18749
18750 case $as_dir in #(
18751 -*) as_dir=./$as_dir;;
18752 esac
18753 test -d "$as_dir" || eval $as_mkdir_p || {
18754 as_dirs=
18755 while :; do
18756 case $as_dir in #(
18757 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18758 *) as_qdir=$as_dir;;
18759 esac
18760 as_dirs="'$as_qdir' $as_dirs"
18761 as_dir=`$as_dirname -- "$as_dir" ||
18762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18763 X"$as_dir" : 'X\(//\)[^/]' \| \
18764 X"$as_dir" : 'X\(//\)$' \| \
18765 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18766 $as_echo X"$as_dir" |
18767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18768 s//\1/
18769 q
18770 }
18771 /^X\(\/\/\)[^/].*/{
18772 s//\1/
18773 q
18774 }
18775 /^X\(\/\/\)$/{
18776 s//\1/
18777 q
18778 }
18779 /^X\(\/\).*/{
18780 s//\1/
18781 q
18782 }
18783 s/.*/./; q'`
18784 test -d "$as_dir" && break
18785 done
18786 test -z "$as_dirs" || eval "mkdir $as_dirs"
18787 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18788
18789
18790 } # as_fn_mkdir_p
18791 if mkdir -p . 2>/dev/null; then
18792 as_mkdir_p='mkdir -p "$as_dir"'
18793 else
18794 test -d ./-p && rmdir ./-p
18795 as_mkdir_p=false
18796 fi
18797
18798
18799 # as_fn_executable_p FILE
18800 # -----------------------
18801 # Test if FILE is an executable regular file.
18802 as_fn_executable_p ()
18803 {
18804 test -f "$1" && test -x "$1"
18805 } # as_fn_executable_p
18806 as_test_x='test -x'
18807 as_executable_p=as_fn_executable_p
18808
18809 # Sed expression to map a string onto a valid CPP name.
18810 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18811
18812 # Sed expression to map a string onto a valid variable name.
18813 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18814
18815
18816 exec 6>&1
18817 ## ----------------------------------- ##
18818 ## Main body of $CONFIG_STATUS script. ##
18819 ## ----------------------------------- ##
18820 _ASEOF
18821 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18822
18823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18824 # Save the log message, to keep $0 and so on meaningful, and to
18825 # report actual input values of CONFIG_FILES etc. instead of their
18826 # values after options handling.
18827 ac_log="
18828 This file was extended by Check $as_me 0.15.2, which was
18829 generated by GNU Autoconf 2.69. Invocation command line was
18830
18831 CONFIG_FILES = $CONFIG_FILES
18832 CONFIG_HEADERS = $CONFIG_HEADERS
18833 CONFIG_LINKS = $CONFIG_LINKS
18834 CONFIG_COMMANDS = $CONFIG_COMMANDS
18835 $ $0 $@
18836
18837 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18838 "
18839
18840 _ACEOF
18841
18842 case $ac_config_files in *"
18843 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18844 esac
18845
18846 case $ac_config_headers in *"
18847 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18848 esac
18849
18850
18851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18852 # Files that config.status was made for.
18853 config_files="$ac_config_files"
18854 config_headers="$ac_config_headers"
18855 config_commands="$ac_config_commands"
18856
18857 _ACEOF
18858
18859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18860 ac_cs_usage="\
18861 \`$as_me' instantiates files and other configuration actions
18862 from templates according to the current configuration. Unless the files
18863 and actions are specified as TAGs, all are instantiated by default.
18864
18865 Usage: $0 [OPTION]... [TAG]...
18866
18867 -h, --help print this help, then exit
18868 -V, --version print version number and configuration settings, then exit
18869 --config print configuration, then exit
18870 -q, --quiet, --silent
18871 do not print progress messages
18872 -d, --debug don't remove temporary files
18873 --recheck update $as_me by reconfiguring in the same conditions
18874 --file=FILE[:TEMPLATE]
18875 instantiate the configuration file FILE
18876 --header=FILE[:TEMPLATE]
18877 instantiate the configuration header FILE
18878
18879 Configuration files:
18880 $config_files
18881
18882 Configuration headers:
18883 $config_headers
18884
18885 Configuration commands:
18886 $config_commands
18887
18888 Report bugs to <check-devel at lists dot sourceforge dot net>."
18889
18890 _ACEOF
18891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18892 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18893 ac_cs_version="\\
18894 Check config.status 0.15.2
18895 configured by $0, generated by GNU Autoconf 2.69,
18896 with options \\"\$ac_cs_config\\"
18897
18898 Copyright (C) 2012 Free Software Foundation, Inc.
18899 This config.status script is free software; the Free Software Foundation
18900 gives unlimited permission to copy, distribute and modify it."
18901
18902 ac_pwd='$ac_pwd'
18903 srcdir='$srcdir'
18904 INSTALL='$INSTALL'
18905 MKDIR_P='$MKDIR_P'
18906 AWK='$AWK'
18907 test -n "\$AWK" || AWK=awk
18908 _ACEOF
18909
18910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18911 # The default lists apply if the user does not specify any file.
18912 ac_need_defaults=:
18913 while test $# != 0
18914 do
18915 case $1 in
18916 --*=?*)
18917 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18918 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18919 ac_shift=:
18920 ;;
18921 --*=)
18922 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18923 ac_optarg=
18924 ac_shift=:
18925 ;;
18926 *)
18927 ac_option=$1
18928 ac_optarg=$2
18929 ac_shift=shift
18930 ;;
18931 esac
18932
18933 case $ac_option in
18934 # Handling of the options.
18935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18936 ac_cs_recheck=: ;;
18937 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18938 $as_echo "$ac_cs_version"; exit ;;
18939 --config | --confi | --conf | --con | --co | --c )
18940 $as_echo "$ac_cs_config"; exit ;;
18941 --debug | --debu | --deb | --de | --d | -d )
18942 debug=: ;;
18943 --file | --fil | --fi | --f )
18944 $ac_shift
18945 case $ac_optarg in
18946 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18947 '') as_fn_error $? "missing file argument" ;;
18948 esac
18949 as_fn_append CONFIG_FILES " '$ac_optarg'"
18950 ac_need_defaults=false;;
18951 --header | --heade | --head | --hea )
18952 $ac_shift
18953 case $ac_optarg in
18954 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18955 esac
18956 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18957 ac_need_defaults=false;;
18958 --he | --h)
18959 # Conflict between --help and --header
18960 as_fn_error $? "ambiguous option: \`$1'
18961 Try \`$0 --help' for more information.";;
18962 --help | --hel | -h )
18963 $as_echo "$ac_cs_usage"; exit ;;
18964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18965 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18966 ac_cs_silent=: ;;
18967
18968 # This is an error.
18969 -*) as_fn_error $? "unrecognized option: \`$1'
18970 Try \`$0 --help' for more information." ;;
18971
18972 *) as_fn_append ac_config_targets " $1"
18973 ac_need_defaults=false ;;
18974
18975 esac
18976 shift
18977 done
18978
18979 ac_configure_extra_args=
18980
18981 if $ac_cs_silent; then
18982 exec 6>/dev/null
18983 ac_configure_extra_args="$ac_configure_extra_args --silent"
18984 fi
18985
18986 _ACEOF
18987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18988 if \$ac_cs_recheck; then
18989 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18990 shift
18991 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18992 CONFIG_SHELL='$SHELL'
18993 export CONFIG_SHELL
18994 exec "\$@"
18995 fi
18996
18997 _ACEOF
18998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18999 exec 5>>config.log
19000 {
19001 echo
19002 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19003 ## Running $as_me. ##
19004 _ASBOX
19005 $as_echo "$ac_log"
19006 } >&5
19007
19008 _ACEOF
19009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19010 #
19011 # INIT-COMMANDS
19012 #
19013 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19014
19015
19016 # The HP-UX ksh and POSIX shell print the target directory to stdout
19017 # if CDPATH is set.
19018 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19019
19020 sed_quote_subst='$sed_quote_subst'
19021 double_quote_subst='$double_quote_subst'
19022 delay_variable_subst='$delay_variable_subst'
19023 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19024 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19025 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19026 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19027 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19028 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19029 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19030 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19031 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19032 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19033 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19034 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19035 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19036 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19037 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19038 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19039 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19040 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19041 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19042 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19043 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19044 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19045 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19046 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19047 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19048 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19049 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19050 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19051 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19052 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19053 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19054 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19055 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19056 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19057 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19058 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19059 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19060 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19061 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19062 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19063 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19064 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19065 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19066 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19067 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19068 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19069 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19070 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19071 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19072 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19073 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19074 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19075 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19076 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19077 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19078 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19079 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19080 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19081 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"`'
19082 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19083 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19084 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19085 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19086 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19087 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19088 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19089 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19090 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19091 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19092 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19093 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19094 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19095 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19096 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19097 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19098 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19099 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19100 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19101 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19102 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19103 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19104 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19105 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19106 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19107 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19108 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19109 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19110 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19111 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19112 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19113 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19114 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19115 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19116 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19117 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19118 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19119 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19120 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19121 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19122 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19123 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19124 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19125 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19126 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19127 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19128 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19129 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19130 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19131 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19132 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19133 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19134 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19135 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19136 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19137 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19138 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19139 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19140 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19141 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19142 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19143 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19144 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19145 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19146 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19147 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19148 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19149 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19150 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19151 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19152 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19153 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19154 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19155 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19156 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19157 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19158
19159 LTCC='$LTCC'
19160 LTCFLAGS='$LTCFLAGS'
19161 compiler='$compiler_DEFAULT'
19162
19163 # A function that is used when there is no print builtin or printf.
19164 func_fallback_echo ()
19165 {
19166 eval 'cat <<_LTECHO_EOF
19167 \$1
19168 _LTECHO_EOF'
19169 }
19170
19171 # Quote evaled strings.
19172 for var in SHELL \
19173 ECHO \
19174 PATH_SEPARATOR \
19175 SED \
19176 GREP \
19177 EGREP \
19178 FGREP \
19179 LD \
19180 NM \
19181 LN_S \
19182 lt_SP2NL \
19183 lt_NL2SP \
19184 reload_flag \
19185 OBJDUMP \
19186 deplibs_check_method \
19187 file_magic_cmd \
19188 file_magic_glob \
19189 want_nocaseglob \
19190 DLLTOOL \
19191 sharedlib_from_linklib_cmd \
19192 AR \
19193 AR_FLAGS \
19194 archiver_list_spec \
19195 STRIP \
19196 RANLIB \
19197 CC \
19198 CFLAGS \
19199 compiler \
19200 lt_cv_sys_global_symbol_pipe \
19201 lt_cv_sys_global_symbol_to_cdecl \
19202 lt_cv_sys_global_symbol_to_import \
19203 lt_cv_sys_global_symbol_to_c_name_address \
19204 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19205 lt_cv_nm_interface \
19206 nm_file_list_spec \
19207 lt_cv_truncate_bin \
19208 lt_prog_compiler_no_builtin_flag \
19209 lt_prog_compiler_pic \
19210 lt_prog_compiler_wl \
19211 lt_prog_compiler_static \
19212 lt_cv_prog_compiler_c_o \
19213 need_locks \
19214 MANIFEST_TOOL \
19215 DSYMUTIL \
19216 NMEDIT \
19217 LIPO \
19218 OTOOL \
19219 OTOOL64 \
19220 shrext_cmds \
19221 export_dynamic_flag_spec \
19222 whole_archive_flag_spec \
19223 compiler_needs_object \
19224 with_gnu_ld \
19225 allow_undefined_flag \
19226 no_undefined_flag \
19227 hardcode_libdir_flag_spec \
19228 hardcode_libdir_separator \
19229 exclude_expsyms \
19230 include_expsyms \
19231 file_list_spec \
19232 variables_saved_for_relink \
19233 libname_spec \
19234 library_names_spec \
19235 soname_spec \
19236 install_override_mode \
19237 finish_eval \
19238 old_striplib \
19239 striplib; do
19240 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19241 *[\\\\\\\`\\"\\\$]*)
19242 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19243 ;;
19244 *)
19245 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19246 ;;
19247 esac
19248 done
19249
19250 # Double-quote double-evaled strings.
19251 for var in reload_cmds \
19252 old_postinstall_cmds \
19253 old_postuninstall_cmds \
19254 old_archive_cmds \
19255 extract_expsyms_cmds \
19256 old_archive_from_new_cmds \
19257 old_archive_from_expsyms_cmds \
19258 archive_cmds \
19259 archive_expsym_cmds \
19260 module_cmds \
19261 module_expsym_cmds \
19262 export_symbols_cmds \
19263 prelink_cmds \
19264 postlink_cmds \
19265 postinstall_cmds \
19266 postuninstall_cmds \
19267 finish_cmds \
19268 sys_lib_search_path_spec \
19269 configure_time_dlsearch_path \
19270 configure_time_lt_sys_library_path; do
19271 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19272 *[\\\\\\\`\\"\\\$]*)
19273 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19274 ;;
19275 *)
19276 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19277 ;;
19278 esac
19279 done
19280
19281 ac_aux_dir='$ac_aux_dir'
19282
19283 # See if we are running on zsh, and set the options that allow our
19284 # commands through without removal of \ escapes INIT.
19285 if test -n "\${ZSH_VERSION+set}"; then
19286 setopt NO_GLOB_SUBST
19287 fi
19288
19289
19290 PACKAGE='$PACKAGE'
19291 VERSION='$VERSION'
19292 RM='$RM'
19293 ofile='$ofile'
19294
19295
19296
19297 # variables for create stdint.h replacement
19298 PACKAGE="$PACKAGE"
19299 VERSION="$VERSION"
19300 ac_stdint_h="$ac_stdint_h"
19301 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
19302 ac_cv_stdint_message="$ac_cv_stdint_message"
19303 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
19304 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
19305 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
19306 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
19307 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19308 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19309 ac_cv_char_data_model="$ac_cv_char_data_model"
19310 ac_cv_long_data_model="$ac_cv_long_data_model"
19311 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19312 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19313 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
19314
19315
19316 _ACEOF
19317
19318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19319
19320 # Handling of arguments.
19321 for ac_config_target in $ac_config_targets
19322 do
19323 case $ac_config_target in
19324 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19325 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19326 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
19327 "checkmk/checkmk") CONFIG_FILES="$CONFIG_FILES checkmk/checkmk" ;;
19328 "checkmk-x") CONFIG_COMMANDS="$CONFIG_COMMANDS checkmk-x" ;;
19329 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19330 "check.pc") CONFIG_FILES="$CONFIG_FILES check.pc" ;;
19331 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19332 "checkmk/Makefile") CONFIG_FILES="$CONFIG_FILES checkmk/Makefile" ;;
19333 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19334 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19335 "src/check.h") CONFIG_FILES="$CONFIG_FILES src/check.h" ;;
19336 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19337 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19338 "tests/test_vars") CONFIG_FILES="$CONFIG_FILES tests/test_vars" ;;
19339
19340 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19341 esac
19342 done
19343
19344
19345 # If the user did not use the arguments to specify the items to instantiate,
19346 # then the envvar interface is used. Set only those that are not.
19347 # We use the long form for the default assignment because of an extremely
19348 # bizarre bug on SunOS 4.1.3.
19349 if $ac_need_defaults; then
19350 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19351 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19352 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19353 fi
19354
19355 # Have a temporary directory for convenience. Make it in the build tree
19356 # simply because there is no reason against having it here, and in addition,
19357 # creating and moving files from /tmp can sometimes cause problems.
19358 # Hook for its removal unless debugging.
19359 # Note that there is a small window in which the directory will not be cleaned:
19360 # after its creation but before its name has been assigned to `$tmp'.
19361 $debug ||
19362 {
19363 tmp= ac_tmp=
19364 trap 'exit_status=$?
19365 : "${ac_tmp:=$tmp}"
19366 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19367 ' 0
19368 trap 'as_fn_exit 1' 1 2 13 15
19369 }
19370 # Create a (secure) tmp directory for tmp files.
19371
19372 {
19373 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19374 test -d "$tmp"
19375 } ||
19376 {
19377 tmp=./conf$$-$RANDOM
19378 (umask 077 && mkdir "$tmp")
19379 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19380 ac_tmp=$tmp
19381
19382 # Set up the scripts for CONFIG_FILES section.
19383 # No need to generate them if there are no CONFIG_FILES.
19384 # This happens for instance with `./config.status config.h'.
19385 if test -n "$CONFIG_FILES"; then
19386
19387
19388 ac_cr=`echo X | tr X '\015'`
19389 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19390 # But we know of no other shell where ac_cr would be empty at this
19391 # point, so we can use a bashism as a fallback.
19392 if test "x$ac_cr" = x; then
19393 eval ac_cr=\$\'\\r\'
19394 fi
19395 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19396 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19397 ac_cs_awk_cr='\\r'
19398 else
19399 ac_cs_awk_cr=$ac_cr
19400 fi
19401
19402 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19403 _ACEOF
19404
19405
19406 {
19407 echo "cat >conf$$subs.awk <<_ACEOF" &&
19408 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19409 echo "_ACEOF"
19410 } >conf$$subs.sh ||
19411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19412 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19413 ac_delim='%!_!# '
19414 for ac_last_try in false false false false false :; do
19415 . ./conf$$subs.sh ||
19416 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19417
19418 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19419 if test $ac_delim_n = $ac_delim_num; then
19420 break
19421 elif $ac_last_try; then
19422 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19423 else
19424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19425 fi
19426 done
19427 rm -f conf$$subs.sh
19428
19429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19430 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19431 _ACEOF
19432 sed -n '
19433 h
19434 s/^/S["/; s/!.*/"]=/
19435 p
19436 g
19437 s/^[^!]*!//
19438 :repl
19439 t repl
19440 s/'"$ac_delim"'$//
19441 t delim
19442 :nl
19443 h
19444 s/\(.\{148\}\)..*/\1/
19445 t more1
19446 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19447 p
19448 n
19449 b repl
19450 :more1
19451 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19452 p
19453 g
19454 s/.\{148\}//
19455 t nl
19456 :delim
19457 h
19458 s/\(.\{148\}\)..*/\1/
19459 t more2
19460 s/["\\]/\\&/g; s/^/"/; s/$/"/
19461 p
19462 b
19463 :more2
19464 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19465 p
19466 g
19467 s/.\{148\}//
19468 t delim
19469 ' <conf$$subs.awk | sed '
19470 /^[^""]/{
19471 N
19472 s/\n//
19473 }
19474 ' >>$CONFIG_STATUS || ac_write_fail=1
19475 rm -f conf$$subs.awk
19476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19477 _ACAWK
19478 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19479 for (key in S) S_is_set[key] = 1
19480 FS = ""
19481
19482 }
19483 {
19484 line = $ 0
19485 nfields = split(line, field, "@")
19486 substed = 0
19487 len = length(field[1])
19488 for (i = 2; i < nfields; i++) {
19489 key = field[i]
19490 keylen = length(key)
19491 if (S_is_set[key]) {
19492 value = S[key]
19493 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19494 len += length(value) + length(field[++i])
19495 substed = 1
19496 } else
19497 len += 1 + keylen
19498 }
19499
19500 print line
19501 }
19502
19503 _ACAWK
19504 _ACEOF
19505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19506 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19507 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19508 else
19509 cat
19510 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19511 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19512 _ACEOF
19513
19514 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19515 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19516 # trailing colons and then remove the whole line if VPATH becomes empty
19517 # (actually we leave an empty line to preserve line numbers).
19518 if test "x$srcdir" = x.; then
19519 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19520 h
19521 s///
19522 s/^/:/
19523 s/[ ]*$/:/
19524 s/:\$(srcdir):/:/g
19525 s/:\${srcdir}:/:/g
19526 s/:@srcdir@:/:/g
19527 s/^:*//
19528 s/:*$//
19529 x
19530 s/\(=[ ]*\).*/\1/
19531 G
19532 s/\n//
19533 s/^[^=]*=[ ]*$//
19534 }'
19535 fi
19536
19537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19538 fi # test -n "$CONFIG_FILES"
19539
19540 # Set up the scripts for CONFIG_HEADERS section.
19541 # No need to generate them if there are no CONFIG_HEADERS.
19542 # This happens for instance with `./config.status Makefile'.
19543 if test -n "$CONFIG_HEADERS"; then
19544 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19545 BEGIN {
19546 _ACEOF
19547
19548 # Transform confdefs.h into an awk script `defines.awk', embedded as
19549 # here-document in config.status, that substitutes the proper values into
19550 # config.h.in to produce config.h.
19551
19552 # Create a delimiter string that does not exist in confdefs.h, to ease
19553 # handling of long lines.
19554 ac_delim='%!_!# '
19555 for ac_last_try in false false :; do
19556 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19557 if test -z "$ac_tt"; then
19558 break
19559 elif $ac_last_try; then
19560 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19561 else
19562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19563 fi
19564 done
19565
19566 # For the awk script, D is an array of macro values keyed by name,
19567 # likewise P contains macro parameters if any. Preserve backslash
19568 # newline sequences.
19569
19570 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19571 sed -n '
19572 s/.\{148\}/&'"$ac_delim"'/g
19573 t rset
19574 :rset
19575 s/^[ ]*#[ ]*define[ ][ ]*/ /
19576 t def
19577 d
19578 :def
19579 s/\\$//
19580 t bsnl
19581 s/["\\]/\\&/g
19582 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19583 D["\1"]=" \3"/p
19584 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19585 d
19586 :bsnl
19587 s/["\\]/\\&/g
19588 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19589 D["\1"]=" \3\\\\\\n"\\/p
19590 t cont
19591 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19592 t cont
19593 d
19594 :cont
19595 n
19596 s/.\{148\}/&'"$ac_delim"'/g
19597 t clear
19598 :clear
19599 s/\\$//
19600 t bsnlc
19601 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19602 d
19603 :bsnlc
19604 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19605 b cont
19606 ' <confdefs.h | sed '
19607 s/'"$ac_delim"'/"\\\
19608 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19609
19610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19611 for (key in D) D_is_set[key] = 1
19612 FS = ""
19613 }
19614 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19615 line = \$ 0
19616 split(line, arg, " ")
19617 if (arg[1] == "#") {
19618 defundef = arg[2]
19619 mac1 = arg[3]
19620 } else {
19621 defundef = substr(arg[1], 2)
19622 mac1 = arg[2]
19623 }
19624 split(mac1, mac2, "(") #)
19625 macro = mac2[1]
19626 prefix = substr(line, 1, index(line, defundef) - 1)
19627 if (D_is_set[macro]) {
19628 # Preserve the white space surrounding the "#".
19629 print prefix "define", macro P[macro] D[macro]
19630 next
19631 } else {
19632 # Replace #undef with comments. This is necessary, for example,
19633 # in the case of _POSIX_SOURCE, which is predefined and required
19634 # on some systems where configure will not decide to define it.
19635 if (defundef == "undef") {
19636 print "/*", prefix defundef, macro, "*/"
19637 next
19638 }
19639 }
19640 }
19641 { print }
19642 _ACAWK
19643 _ACEOF
19644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19645 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19646 fi # test -n "$CONFIG_HEADERS"
19647
19648
19649 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19650 shift
19651 for ac_tag
19652 do
19653 case $ac_tag in
19654 :[FHLC]) ac_mode=$ac_tag; continue;;
19655 esac
19656 case $ac_mode$ac_tag in
19657 :[FHL]*:*);;
19658 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19659 :[FH]-) ac_tag=-:-;;
19660 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19661 esac
19662 ac_save_IFS=$IFS
19663 IFS=:
19664 set x $ac_tag
19665 IFS=$ac_save_IFS
19666 shift
19667 ac_file=$1
19668 shift
19669
19670 case $ac_mode in
19671 :L) ac_source=$1;;
19672 :[FH])
19673 ac_file_inputs=
19674 for ac_f
19675 do
19676 case $ac_f in
19677 -) ac_f="$ac_tmp/stdin";;
19678 *) # Look for the file first in the build tree, then in the source tree
19679 # (if the path is not absolute). The absolute path cannot be DOS-style,
19680 # because $ac_f cannot contain `:'.
19681 test -f "$ac_f" ||
19682 case $ac_f in
19683 [\\/$]*) false;;
19684 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19685 esac ||
19686 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19687 esac
19688 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19689 as_fn_append ac_file_inputs " '$ac_f'"
19690 done
19691
19692 # Let's still pretend it is `configure' which instantiates (i.e., don't
19693 # use $as_me), people would be surprised to read:
19694 # /* config.h. Generated by config.status. */
19695 configure_input='Generated from '`
19696 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19697 `' by configure.'
19698 if test x"$ac_file" != x-; then
19699 configure_input="$ac_file. $configure_input"
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19701 $as_echo "$as_me: creating $ac_file" >&6;}
19702 fi
19703 # Neutralize special characters interpreted by sed in replacement strings.
19704 case $configure_input in #(
19705 *\&* | *\|* | *\\* )
19706 ac_sed_conf_input=`$as_echo "$configure_input" |
19707 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19708 *) ac_sed_conf_input=$configure_input;;
19709 esac
19710
19711 case $ac_tag in
19712 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19714 esac
19715 ;;
19716 esac
19717
19718 ac_dir=`$as_dirname -- "$ac_file" ||
19719 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19720 X"$ac_file" : 'X\(//\)[^/]' \| \
19721 X"$ac_file" : 'X\(//\)$' \| \
19722 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19723 $as_echo X"$ac_file" |
19724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19725 s//\1/
19726 q
19727 }
19728 /^X\(\/\/\)[^/].*/{
19729 s//\1/
19730 q
19731 }
19732 /^X\(\/\/\)$/{
19733 s//\1/
19734 q
19735 }
19736 /^X\(\/\).*/{
19737 s//\1/
19738 q
19739 }
19740 s/.*/./; q'`
19741 as_dir="$ac_dir"; as_fn_mkdir_p
19742 ac_builddir=.
19743
19744 case "$ac_dir" in
19745 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19746 *)
19747 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19748 # A ".." for each directory in $ac_dir_suffix.
19749 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19750 case $ac_top_builddir_sub in
19751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19753 esac ;;
19754 esac
19755 ac_abs_top_builddir=$ac_pwd
19756 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19757 # for backward compatibility:
19758 ac_top_builddir=$ac_top_build_prefix
19759
19760 case $srcdir in
19761 .) # We are building in place.
19762 ac_srcdir=.
19763 ac_top_srcdir=$ac_top_builddir_sub
19764 ac_abs_top_srcdir=$ac_pwd ;;
19765 [\\/]* | ?:[\\/]* ) # Absolute name.
19766 ac_srcdir=$srcdir$ac_dir_suffix;
19767 ac_top_srcdir=$srcdir
19768 ac_abs_top_srcdir=$srcdir ;;
19769 *) # Relative name.
19770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19771 ac_top_srcdir=$ac_top_build_prefix$srcdir
19772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19773 esac
19774 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19775
19776
19777 case $ac_mode in
19778 :F)
19779 #
19780 # CONFIG_FILE
19781 #
19782
19783 case $INSTALL in
19784 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19785 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19786 esac
19787 ac_MKDIR_P=$MKDIR_P
19788 case $MKDIR_P in
19789 [\\/$]* | ?:[\\/]* ) ;;
19790 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19791 esac
19792 _ACEOF
19793
19794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19795 # If the template does not know about datarootdir, expand it.
19796 # FIXME: This hack should be removed a few years after 2.60.
19797 ac_datarootdir_hack=; ac_datarootdir_seen=
19798 ac_sed_dataroot='
19799 /datarootdir/ {
19800 p
19801 q
19802 }
19803 /@datadir@/p
19804 /@docdir@/p
19805 /@infodir@/p
19806 /@localedir@/p
19807 /@mandir@/p'
19808 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19809 *datarootdir*) ac_datarootdir_seen=yes;;
19810 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19812 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19813 _ACEOF
19814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19815 ac_datarootdir_hack='
19816 s&@datadir@&$datadir&g
19817 s&@docdir@&$docdir&g
19818 s&@infodir@&$infodir&g
19819 s&@localedir@&$localedir&g
19820 s&@mandir@&$mandir&g
19821 s&\\\${datarootdir}&$datarootdir&g' ;;
19822 esac
19823 _ACEOF
19824
19825 # Neutralize VPATH when `$srcdir' = `.'.
19826 # Shell code in configure.ac might set extrasub.
19827 # FIXME: do we really want to maintain this feature?
19828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19829 ac_sed_extra="$ac_vpsub
19830 $extrasub
19831 _ACEOF
19832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19833 :t
19834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19835 s|@configure_input@|$ac_sed_conf_input|;t t
19836 s&@top_builddir@&$ac_top_builddir_sub&;t t
19837 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19838 s&@srcdir@&$ac_srcdir&;t t
19839 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19840 s&@top_srcdir@&$ac_top_srcdir&;t t
19841 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19842 s&@builddir@&$ac_builddir&;t t
19843 s&@abs_builddir@&$ac_abs_builddir&;t t
19844 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19845 s&@INSTALL@&$ac_INSTALL&;t t
19846 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19847 $ac_datarootdir_hack
19848 "
19849 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19850 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19851
19852 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19853 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19854 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19855 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19857 which seems to be undefined. Please make sure it is defined" >&5
19858 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19859 which seems to be undefined. Please make sure it is defined" >&2;}
19860
19861 rm -f "$ac_tmp/stdin"
19862 case $ac_file in
19863 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19864 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19865 esac \
19866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19867 ;;
19868 :H)
19869 #
19870 # CONFIG_HEADER
19871 #
19872 if test x"$ac_file" != x-; then
19873 {
19874 $as_echo "/* $configure_input */" \
19875 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19876 } >"$ac_tmp/config.h" \
19877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19878 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19880 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19881 else
19882 rm -f "$ac_file"
19883 mv "$ac_tmp/config.h" "$ac_file" \
19884 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19885 fi
19886 else
19887 $as_echo "/* $configure_input */" \
19888 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19889 || as_fn_error $? "could not create -" "$LINENO" 5
19890 fi
19891 # Compute "$ac_file"'s index in $config_headers.
19892 _am_arg="$ac_file"
19893 _am_stamp_count=1
19894 for _am_header in $config_headers :; do
19895 case $_am_header in
19896 $_am_arg | $_am_arg:* )
19897 break ;;
19898 * )
19899 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19900 esac
19901 done
19902 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19903 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19904 X"$_am_arg" : 'X\(//\)[^/]' \| \
19905 X"$_am_arg" : 'X\(//\)$' \| \
19906 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19907 $as_echo X"$_am_arg" |
19908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19909 s//\1/
19910 q
19911 }
19912 /^X\(\/\/\)[^/].*/{
19913 s//\1/
19914 q
19915 }
19916 /^X\(\/\/\)$/{
19917 s//\1/
19918 q
19919 }
19920 /^X\(\/\).*/{
19921 s//\1/
19922 q
19923 }
19924 s/.*/./; q'`/stamp-h$_am_stamp_count
19925 ;;
19926
19927 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19928 $as_echo "$as_me: executing $ac_file commands" >&6;}
19929 ;;
19930 esac
19931
19932
19933 case $ac_file$ac_mode in
19934 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19935 # Older Autoconf quotes --file arguments for eval, but not when files
19936 # are listed without --file. Let's play safe and only enable the eval
19937 # if we detect the quoting.
19938 case $CONFIG_FILES in
19939 *\'*) eval set x "$CONFIG_FILES" ;;
19940 *) set x $CONFIG_FILES ;;
19941 esac
19942 shift
19943 for mf
19944 do
19945 # Strip MF so we end up with the name of the file.
19946 mf=`echo "$mf" | sed -e 's/:.*$//'`
19947 # Check whether this is an Automake generated Makefile or not.
19948 # We used to match only the files named 'Makefile.in', but
19949 # some people rename them; so instead we look at the file content.
19950 # Grep'ing the first line is not enough: some people post-process
19951 # each Makefile.in and add a new line on top of each file to say so.
19952 # Grep'ing the whole file is not good either: AIX grep has a line
19953 # limit of 2048, but all sed's we know have understand at least 4000.
19954 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19955 dirpart=`$as_dirname -- "$mf" ||
19956 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19957 X"$mf" : 'X\(//\)[^/]' \| \
19958 X"$mf" : 'X\(//\)$' \| \
19959 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19960 $as_echo X"$mf" |
19961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19962 s//\1/
19963 q
19964 }
19965 /^X\(\/\/\)[^/].*/{
19966 s//\1/
19967 q
19968 }
19969 /^X\(\/\/\)$/{
19970 s//\1/
19971 q
19972 }
19973 /^X\(\/\).*/{
19974 s//\1/
19975 q
19976 }
19977 s/.*/./; q'`
19978 else
19979 continue
19980 fi
19981 # Extract the definition of DEPDIR, am__include, and am__quote
19982 # from the Makefile without running 'make'.
19983 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19984 test -z "$DEPDIR" && continue
19985 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19986 test -z "$am__include" && continue
19987 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19988 # Find all dependency output files, they are included files with
19989 # $(DEPDIR) in their names. We invoke sed twice because it is the
19990 # simplest approach to changing $(DEPDIR) to its actual value in the
19991 # expansion.
19992 for file in `sed -n "
19993 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19994 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19995 # Make sure the directory exists.
19996 test -f "$dirpart/$file" && continue
19997 fdir=`$as_dirname -- "$file" ||
19998 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19999 X"$file" : 'X\(//\)[^/]' \| \
20000 X"$file" : 'X\(//\)$' \| \
20001 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20002 $as_echo X"$file" |
20003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20004 s//\1/
20005 q
20006 }
20007 /^X\(\/\/\)[^/].*/{
20008 s//\1/
20009 q
20010 }
20011 /^X\(\/\/\)$/{
20012 s//\1/
20013 q
20014 }
20015 /^X\(\/\).*/{
20016 s//\1/
20017 q
20018 }
20019 s/.*/./; q'`
20020 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20021 # echo "creating $dirpart/$file"
20022 echo '# dummy' > "$dirpart/$file"
20023 done
20024 done
20025 }
20026 ;;
20027 "libtool":C)
20028
20029 # See if we are running on zsh, and set the options that allow our
20030 # commands through without removal of \ escapes.
20031 if test -n "${ZSH_VERSION+set}"; then
20032 setopt NO_GLOB_SUBST
20033 fi
20034
20035 cfgfile=${ofile}T
20036 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20037 $RM "$cfgfile"
20038
20039 cat <<_LT_EOF >> "$cfgfile"
20040 #! $SHELL
20041 # Generated automatically by $as_me ($PACKAGE) $VERSION
20042 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20043 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20044
20045 # Provide generalized library-building support services.
20046 # Written by Gordon Matzigkeit, 1996
20047
20048 # Copyright (C) 2014 Free Software Foundation, Inc.
20049 # This is free software; see the source for copying conditions. There is NO
20050 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20051
20052 # GNU Libtool is free software; you can redistribute it and/or modify
20053 # it under the terms of the GNU General Public License as published by
20054 # the Free Software Foundation; either version 2 of of the License, or
20055 # (at your option) any later version.
20056 #
20057 # As a special exception to the GNU General Public License, if you
20058 # distribute this file as part of a program or library that is built
20059 # using GNU Libtool, you may include this file under the same
20060 # distribution terms that you use for the rest of that program.
20061 #
20062 # GNU Libtool is distributed in the hope that it will be useful, but
20063 # WITHOUT ANY WARRANTY; without even the implied warranty of
20064 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20065 # GNU General Public License for more details.
20066 #
20067 # You should have received a copy of the GNU General Public License
20068 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20069
20070
20071 # The names of the tagged configurations supported by this script.
20072 available_tags=''
20073
20074 # Configured defaults for sys_lib_dlsearch_path munging.
20075 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20076
20077 # ### BEGIN LIBTOOL CONFIG
20078
20079 # Which release of libtool.m4 was used?
20080 macro_version=$macro_version
20081 macro_revision=$macro_revision
20082
20083 # Whether or not to build shared libraries.
20084 build_libtool_libs=$enable_shared
20085
20086 # Whether or not to build static libraries.
20087 build_old_libs=$enable_static
20088
20089 # What type of objects to build.
20090 pic_mode=$pic_mode
20091
20092 # Whether or not to optimize for fast installation.
20093 fast_install=$enable_fast_install
20094
20095 # Shared archive member basename,for filename based shared library versioning on AIX.
20096 shared_archive_member_spec=$shared_archive_member_spec
20097
20098 # Shell to use when invoking shell scripts.
20099 SHELL=$lt_SHELL
20100
20101 # An echo program that protects backslashes.
20102 ECHO=$lt_ECHO
20103
20104 # The PATH separator for the build system.
20105 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20106
20107 # The host system.
20108 host_alias=$host_alias
20109 host=$host
20110 host_os=$host_os
20111
20112 # The build system.
20113 build_alias=$build_alias
20114 build=$build
20115 build_os=$build_os
20116
20117 # A sed program that does not truncate output.
20118 SED=$lt_SED
20119
20120 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20121 Xsed="\$SED -e 1s/^X//"
20122
20123 # A grep program that handles long lines.
20124 GREP=$lt_GREP
20125
20126 # An ERE matcher.
20127 EGREP=$lt_EGREP
20128
20129 # A literal string matcher.
20130 FGREP=$lt_FGREP
20131
20132 # A BSD- or MS-compatible name lister.
20133 NM=$lt_NM
20134
20135 # Whether we need soft or hard links.
20136 LN_S=$lt_LN_S
20137
20138 # What is the maximum length of a command?
20139 max_cmd_len=$max_cmd_len
20140
20141 # Object file suffix (normally "o").
20142 objext=$ac_objext
20143
20144 # Executable file suffix (normally "").
20145 exeext=$exeext
20146
20147 # whether the shell understands "unset".
20148 lt_unset=$lt_unset
20149
20150 # turn spaces into newlines.
20151 SP2NL=$lt_lt_SP2NL
20152
20153 # turn newlines into spaces.
20154 NL2SP=$lt_lt_NL2SP
20155
20156 # convert \$build file names to \$host format.
20157 to_host_file_cmd=$lt_cv_to_host_file_cmd
20158
20159 # convert \$build files to toolchain format.
20160 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20161
20162 # An object symbol dumper.
20163 OBJDUMP=$lt_OBJDUMP
20164
20165 # Method to check whether dependent libraries are shared objects.
20166 deplibs_check_method=$lt_deplibs_check_method
20167
20168 # Command to use when deplibs_check_method = "file_magic".
20169 file_magic_cmd=$lt_file_magic_cmd
20170
20171 # How to find potential files when deplibs_check_method = "file_magic".
20172 file_magic_glob=$lt_file_magic_glob
20173
20174 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20175 want_nocaseglob=$lt_want_nocaseglob
20176
20177 # DLL creation program.
20178 DLLTOOL=$lt_DLLTOOL
20179
20180 # Command to associate shared and link libraries.
20181 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20182
20183 # The archiver.
20184 AR=$lt_AR
20185
20186 # Flags to create an archive.
20187 AR_FLAGS=$lt_AR_FLAGS
20188
20189 # How to feed a file listing to the archiver.
20190 archiver_list_spec=$lt_archiver_list_spec
20191
20192 # A symbol stripping program.
20193 STRIP=$lt_STRIP
20194
20195 # Commands used to install an old-style archive.
20196 RANLIB=$lt_RANLIB
20197 old_postinstall_cmds=$lt_old_postinstall_cmds
20198 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20199
20200 # Whether to use a lock for old archive extraction.
20201 lock_old_archive_extraction=$lock_old_archive_extraction
20202
20203 # A C compiler.
20204 LTCC=$lt_CC
20205
20206 # LTCC compiler flags.
20207 LTCFLAGS=$lt_CFLAGS
20208
20209 # Take the output of nm and produce a listing of raw symbols and C names.
20210 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20211
20212 # Transform the output of nm in a proper C declaration.
20213 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20214
20215 # Transform the output of nm into a list of symbols to manually relocate.
20216 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20217
20218 # Transform the output of nm in a C name address pair.
20219 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20220
20221 # Transform the output of nm in a C name address pair when lib prefix is needed.
20222 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20223
20224 # The name lister interface.
20225 nm_interface=$lt_lt_cv_nm_interface
20226
20227 # Specify filename containing input files for \$NM.
20228 nm_file_list_spec=$lt_nm_file_list_spec
20229
20230 # The root where to search for dependent libraries,and where our libraries should be installed.
20231 lt_sysroot=$lt_sysroot
20232
20233 # Command to truncate a binary pipe.
20234 lt_truncate_bin=$lt_lt_cv_truncate_bin
20235
20236 # The name of the directory that contains temporary libtool files.
20237 objdir=$objdir
20238
20239 # Used to examine libraries when file_magic_cmd begins with "file".
20240 MAGIC_CMD=$MAGIC_CMD
20241
20242 # Must we lock files when doing compilation?
20243 need_locks=$lt_need_locks
20244
20245 # Manifest tool.
20246 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20247
20248 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20249 DSYMUTIL=$lt_DSYMUTIL
20250
20251 # Tool to change global to local symbols on Mac OS X.
20252 NMEDIT=$lt_NMEDIT
20253
20254 # Tool to manipulate fat objects and archives on Mac OS X.
20255 LIPO=$lt_LIPO
20256
20257 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20258 OTOOL=$lt_OTOOL
20259
20260 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20261 OTOOL64=$lt_OTOOL64
20262
20263 # Old archive suffix (normally "a").
20264 libext=$libext
20265
20266 # Shared library suffix (normally ".so").
20267 shrext_cmds=$lt_shrext_cmds
20268
20269 # The commands to extract the exported symbol list from a shared archive.
20270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20271
20272 # Variables whose values should be saved in libtool wrapper scripts and
20273 # restored at link time.
20274 variables_saved_for_relink=$lt_variables_saved_for_relink
20275
20276 # Do we need the "lib" prefix for modules?
20277 need_lib_prefix=$need_lib_prefix
20278
20279 # Do we need a version for libraries?
20280 need_version=$need_version
20281
20282 # Library versioning type.
20283 version_type=$version_type
20284
20285 # Shared library runtime path variable.
20286 runpath_var=$runpath_var
20287
20288 # Shared library path variable.
20289 shlibpath_var=$shlibpath_var
20290
20291 # Is shlibpath searched before the hard-coded library search path?
20292 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20293
20294 # Format of library name prefix.
20295 libname_spec=$lt_libname_spec
20296
20297 # List of archive names. First name is the real one, the rest are links.
20298 # The last name is the one that the linker finds with -lNAME
20299 library_names_spec=$lt_library_names_spec
20300
20301 # The coded name of the library, if different from the real name.
20302 soname_spec=$lt_soname_spec
20303
20304 # Permission mode override for installation of shared libraries.
20305 install_override_mode=$lt_install_override_mode
20306
20307 # Command to use after installation of a shared archive.
20308 postinstall_cmds=$lt_postinstall_cmds
20309
20310 # Command to use after uninstallation of a shared archive.
20311 postuninstall_cmds=$lt_postuninstall_cmds
20312
20313 # Commands used to finish a libtool library installation in a directory.
20314 finish_cmds=$lt_finish_cmds
20315
20316 # As "finish_cmds", except a single script fragment to be evaled but
20317 # not shown.
20318 finish_eval=$lt_finish_eval
20319
20320 # Whether we should hardcode library paths into libraries.
20321 hardcode_into_libs=$hardcode_into_libs
20322
20323 # Compile-time system search path for libraries.
20324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20325
20326 # Detected run-time system search path for libraries.
20327 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20328
20329 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20330 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20331
20332 # Whether dlopen is supported.
20333 dlopen_support=$enable_dlopen
20334
20335 # Whether dlopen of programs is supported.
20336 dlopen_self=$enable_dlopen_self
20337
20338 # Whether dlopen of statically linked programs is supported.
20339 dlopen_self_static=$enable_dlopen_self_static
20340
20341 # Commands to strip libraries.
20342 old_striplib=$lt_old_striplib
20343 striplib=$lt_striplib
20344
20345
20346 # The linker used to build libraries.
20347 LD=$lt_LD
20348
20349 # How to create reloadable object files.
20350 reload_flag=$lt_reload_flag
20351 reload_cmds=$lt_reload_cmds
20352
20353 # Commands used to build an old-style archive.
20354 old_archive_cmds=$lt_old_archive_cmds
20355
20356 # A language specific compiler.
20357 CC=$lt_compiler
20358
20359 # Is the compiler the GNU compiler?
20360 with_gcc=$GCC
20361
20362 # Compiler flag to turn off builtin functions.
20363 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20364
20365 # Additional compiler flags for building library objects.
20366 pic_flag=$lt_lt_prog_compiler_pic
20367
20368 # How to pass a linker flag through the compiler.
20369 wl=$lt_lt_prog_compiler_wl
20370
20371 # Compiler flag to prevent dynamic linking.
20372 link_static_flag=$lt_lt_prog_compiler_static
20373
20374 # Does compiler simultaneously support -c and -o options?
20375 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20376
20377 # Whether or not to add -lc for building shared libraries.
20378 build_libtool_need_lc=$archive_cmds_need_lc
20379
20380 # Whether or not to disallow shared libs when runtime libs are static.
20381 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20382
20383 # Compiler flag to allow reflexive dlopens.
20384 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20385
20386 # Compiler flag to generate shared objects directly from archives.
20387 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20388
20389 # Whether the compiler copes with passing no objects directly.
20390 compiler_needs_object=$lt_compiler_needs_object
20391
20392 # Create an old-style archive from a shared archive.
20393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20394
20395 # Create a temporary old-style archive to link instead of a shared archive.
20396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20397
20398 # Commands used to build a shared archive.
20399 archive_cmds=$lt_archive_cmds
20400 archive_expsym_cmds=$lt_archive_expsym_cmds
20401
20402 # Commands used to build a loadable module if different from building
20403 # a shared archive.
20404 module_cmds=$lt_module_cmds
20405 module_expsym_cmds=$lt_module_expsym_cmds
20406
20407 # Whether we are building with GNU ld or not.
20408 with_gnu_ld=$lt_with_gnu_ld
20409
20410 # Flag that allows shared libraries with undefined symbols to be built.
20411 allow_undefined_flag=$lt_allow_undefined_flag
20412
20413 # Flag that enforces no undefined symbols.
20414 no_undefined_flag=$lt_no_undefined_flag
20415
20416 # Flag to hardcode \$libdir into a binary during linking.
20417 # This must work even if \$libdir does not exist
20418 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20419
20420 # Whether we need a single "-rpath" flag with a separated argument.
20421 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20422
20423 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20424 # DIR into the resulting binary.
20425 hardcode_direct=$hardcode_direct
20426
20427 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20428 # DIR into the resulting binary and the resulting library dependency is
20429 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20430 # library is relocated.
20431 hardcode_direct_absolute=$hardcode_direct_absolute
20432
20433 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20434 # into the resulting binary.
20435 hardcode_minus_L=$hardcode_minus_L
20436
20437 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20438 # into the resulting binary.
20439 hardcode_shlibpath_var=$hardcode_shlibpath_var
20440
20441 # Set to "yes" if building a shared library automatically hardcodes DIR
20442 # into the library and all subsequent libraries and executables linked
20443 # against it.
20444 hardcode_automatic=$hardcode_automatic
20445
20446 # Set to yes if linker adds runtime paths of dependent libraries
20447 # to runtime path list.
20448 inherit_rpath=$inherit_rpath
20449
20450 # Whether libtool must link a program against all its dependency libraries.
20451 link_all_deplibs=$link_all_deplibs
20452
20453 # Set to "yes" if exported symbols are required.
20454 always_export_symbols=$always_export_symbols
20455
20456 # The commands to list exported symbols.
20457 export_symbols_cmds=$lt_export_symbols_cmds
20458
20459 # Symbols that should not be listed in the preloaded symbols.
20460 exclude_expsyms=$lt_exclude_expsyms
20461
20462 # Symbols that must always be exported.
20463 include_expsyms=$lt_include_expsyms
20464
20465 # Commands necessary for linking programs (against libraries) with templates.
20466 prelink_cmds=$lt_prelink_cmds
20467
20468 # Commands necessary for finishing linking programs.
20469 postlink_cmds=$lt_postlink_cmds
20470
20471 # Specify filename containing input files.
20472 file_list_spec=$lt_file_list_spec
20473
20474 # How to hardcode a shared library path into an executable.
20475 hardcode_action=$hardcode_action
20476
20477 # ### END LIBTOOL CONFIG
20478
20479 _LT_EOF
20480
20481 cat <<'_LT_EOF' >> "$cfgfile"
20482
20483 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20484
20485 # func_munge_path_list VARIABLE PATH
20486 # -----------------------------------
20487 # VARIABLE is name of variable containing _space_ separated list of
20488 # directories to be munged by the contents of PATH, which is string
20489 # having a format:
20490 # "DIR[:DIR]:"
20491 # string "DIR[ DIR]" will be prepended to VARIABLE
20492 # ":DIR[:DIR]"
20493 # string "DIR[ DIR]" will be appended to VARIABLE
20494 # "DIRP[:DIRP]::[DIRA:]DIRA"
20495 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20496 # "DIRA[ DIRA]" will be appended to VARIABLE
20497 # "DIR[:DIR]"
20498 # VARIABLE will be replaced by "DIR[ DIR]"
20499 func_munge_path_list ()
20500 {
20501 case x$2 in
20502 x)
20503 ;;
20504 *:)
20505 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20506 ;;
20507 x:*)
20508 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20509 ;;
20510 *::*)
20511 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20512 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20513 ;;
20514 *)
20515 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20516 ;;
20517 esac
20518 }
20519
20520
20521 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20522 func_cc_basename ()
20523 {
20524 for cc_temp in $*""; do
20525 case $cc_temp in
20526 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20527 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20528 \-*) ;;
20529 *) break;;
20530 esac
20531 done
20532 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20533 }
20534
20535
20536 # ### END FUNCTIONS SHARED WITH CONFIGURE
20537
20538 _LT_EOF
20539
20540 case $host_os in
20541 aix3*)
20542 cat <<\_LT_EOF >> "$cfgfile"
20543 # AIX sometimes has problems with the GCC collect2 program. For some
20544 # reason, if we set the COLLECT_NAMES environment variable, the problems
20545 # vanish in a puff of smoke.
20546 if test set != "${COLLECT_NAMES+set}"; then
20547 COLLECT_NAMES=
20548 export COLLECT_NAMES
20549 fi
20550 _LT_EOF
20551 ;;
20552 esac
20553
20554
20555 ltmain=$ac_aux_dir/ltmain.sh
20556
20557
20558 # We use sed instead of cat because bash on DJGPP gets confused if
20559 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20560 # text mode, it properly converts lines to CR/LF. This bash problem
20561 # is reportedly fixed, but why not run on old versions too?
20562 sed '$q' "$ltmain" >> "$cfgfile" \
20563 || (rm -f "$cfgfile"; exit 1)
20564
20565 mv -f "$cfgfile" "$ofile" ||
20566 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20567 chmod +x "$ofile"
20568
20569 ;;
20570 "$ac_stdint_h":C)
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
20572 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
20573 ac_stdint=$tmp/_stdint.h
20574
20575 echo "#ifndef" $_ac_stdint_h >$ac_stdint
20576 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
20577 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
20578 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
20579 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
20580 if test "_$ac_cv_header_stdint_t" != "_" ; then
20581 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
20582 echo "#include <stdint.h>" >>$ac_stdint
20583 echo "#endif" >>$ac_stdint
20584 echo "#endif" >>$ac_stdint
20585 else
20586
20587 cat >>$ac_stdint <<STDINT_EOF
20588
20589 /* ................... shortcircuit part ........................... */
20590
20591 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
20592 #include <stdint.h>
20593 #else
20594 #include <stddef.h>
20595
20596 /* .................... configured part ............................ */
20597
20598 STDINT_EOF
20599
20600 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
20601 if test "_$ac_cv_header_stdint_x" != "_" ; then
20602 ac_header="$ac_cv_header_stdint_x"
20603 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
20604 else
20605 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
20606 fi
20607
20608 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
20609 if test "_$ac_cv_header_stdint_o" != "_" ; then
20610 ac_header="$ac_cv_header_stdint_o"
20611 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
20612 else
20613 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
20614 fi
20615
20616 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
20617 if test "_$ac_cv_header_stdint_u" != "_" ; then
20618 ac_header="$ac_cv_header_stdint_u"
20619 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
20620 else
20621 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
20622 fi
20623
20624 echo "" >>$ac_stdint
20625
20626 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
20627 echo "#include <$ac_header>" >>$ac_stdint
20628 echo "" >>$ac_stdint
20629 fi fi
20630
20631 echo "/* which 64bit typedef has been found */" >>$ac_stdint
20632 if test "$ac_cv_type_uint64_t" = "yes" ; then
20633 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
20634 else
20635 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
20636 fi
20637 if test "$ac_cv_type_u_int64_t" = "yes" ; then
20638 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
20639 else
20640 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
20641 fi
20642 echo "" >>$ac_stdint
20643
20644 echo "/* which type model has been detected */" >>$ac_stdint
20645 if test "_$ac_cv_char_data_model" != "_" ; then
20646 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
20647 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
20648 else
20649 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
20650 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
20651 fi
20652 echo "" >>$ac_stdint
20653
20654 echo "/* whether int_least types were detected */" >>$ac_stdint
20655 if test "$ac_cv_type_int_least32_t" = "yes"; then
20656 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
20657 else
20658 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
20659 fi
20660 echo "/* whether int_fast types were detected */" >>$ac_stdint
20661 if test "$ac_cv_type_int_fast32_t" = "yes"; then
20662 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
20663 else
20664 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
20665 fi
20666 echo "/* whether intmax_t type was detected */" >>$ac_stdint
20667 if test "$ac_cv_type_intmax_t" = "yes"; then
20668 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
20669 else
20670 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
20671 fi
20672 echo "" >>$ac_stdint
20673
20674 cat >>$ac_stdint <<STDINT_EOF
20675 /* .................... detections part ............................ */
20676
20677 /* whether we need to define bitspecific types from compiler base types */
20678 #ifndef _STDINT_HEADER_INTPTR
20679 #ifndef _STDINT_HEADER_UINT32
20680 #ifndef _STDINT_HEADER_U_INT32
20681 #define _STDINT_NEED_INT_MODEL_T
20682 #else
20683 #define _STDINT_HAVE_U_INT_TYPES
20684 #endif
20685 #endif
20686 #endif
20687
20688 #ifdef _STDINT_HAVE_U_INT_TYPES
20689 #undef _STDINT_NEED_INT_MODEL_T
20690 #endif
20691
20692 #ifdef _STDINT_CHAR_MODEL
20693 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
20694 #ifndef _STDINT_BYTE_MODEL
20695 #define _STDINT_BYTE_MODEL 12
20696 #endif
20697 #endif
20698 #endif
20699
20700 #ifndef _STDINT_HAVE_INT_LEAST32_T
20701 #define _STDINT_NEED_INT_LEAST_T
20702 #endif
20703
20704 #ifndef _STDINT_HAVE_INT_FAST32_T
20705 #define _STDINT_NEED_INT_FAST_T
20706 #endif
20707
20708 #ifndef _STDINT_HEADER_INTPTR
20709 #define _STDINT_NEED_INTPTR_T
20710 #ifndef _STDINT_HAVE_INTMAX_T
20711 #define _STDINT_NEED_INTMAX_T
20712 #endif
20713 #endif
20714
20715
20716 /* .................... definition part ............................ */
20717
20718 /* some system headers have good uint64_t */
20719 #ifndef _HAVE_UINT64_T
20720 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
20721 #define _HAVE_UINT64_T
20722 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
20723 #define _HAVE_UINT64_T
20724 typedef u_int64_t uint64_t;
20725 #endif
20726 #endif
20727
20728 #ifndef _HAVE_UINT64_T
20729 /* .. here are some common heuristics using compiler runtime specifics */
20730 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
20731 #define _HAVE_UINT64_T
20732 #define _HAVE_LONGLONG_UINT64_T
20733 typedef long long int64_t;
20734 typedef unsigned long long uint64_t;
20735
20736 #elif !defined __STRICT_ANSI__
20737 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20738 #define _HAVE_UINT64_T
20739 typedef __int64 int64_t;
20740 typedef unsigned __int64 uint64_t;
20741
20742 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
20743 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
20744 #if !defined _NO_LONGLONG
20745 #define _HAVE_UINT64_T
20746 #define _HAVE_LONGLONG_UINT64_T
20747 typedef long long int64_t;
20748 typedef unsigned long long uint64_t;
20749 #endif
20750
20751 #elif defined __alpha || (defined __mips && defined _ABIN32)
20752 #if !defined _NO_LONGLONG
20753 typedef long int64_t;
20754 typedef unsigned long uint64_t;
20755 #endif
20756 /* compiler/cpu type to define int64_t */
20757 #endif
20758 #endif
20759 #endif
20760
20761 #if defined _STDINT_HAVE_U_INT_TYPES
20762 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
20763 typedef u_int8_t uint8_t;
20764 typedef u_int16_t uint16_t;
20765 typedef u_int32_t uint32_t;
20766
20767 /* glibc compatibility */
20768 #ifndef __int8_t_defined
20769 #define __int8_t_defined
20770 #endif
20771 #endif
20772
20773 #ifdef _STDINT_NEED_INT_MODEL_T
20774 /* we must guess all the basic types. Apart from byte-adressable system, */
20775 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
20776 /* (btw, those nibble-addressable systems are way off, or so we assume) */
20777
20778
20779 #if defined _STDINT_BYTE_MODEL
20780 #if _STDINT_LONG_MODEL+0 == 242
20781 /* 2:4:2 = IP16 = a normal 16-bit system */
20782 typedef unsigned char uint8_t;
20783 typedef unsigned short uint16_t;
20784 typedef unsigned long uint32_t;
20785 #ifndef __int8_t_defined
20786 #define __int8_t_defined
20787 typedef char int8_t;
20788 typedef short int16_t;
20789 typedef long int32_t;
20790 #endif
20791 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
20792 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
20793 /* 4:4:4 = ILP32 = a normal 32-bit system */
20794 typedef unsigned char uint8_t;
20795 typedef unsigned short uint16_t;
20796 typedef unsigned int uint32_t;
20797 #ifndef __int8_t_defined
20798 #define __int8_t_defined
20799 typedef char int8_t;
20800 typedef short int16_t;
20801 typedef int int32_t;
20802 #endif
20803 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
20804 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
20805 /* 4:8:8 = LP64 = a normal 64-bit system */
20806 typedef unsigned char uint8_t;
20807 typedef unsigned short uint16_t;
20808 typedef unsigned int uint32_t;
20809 #ifndef __int8_t_defined
20810 #define __int8_t_defined
20811 typedef char int8_t;
20812 typedef short int16_t;
20813 typedef int int32_t;
20814 #endif
20815 /* this system has a "long" of 64bit */
20816 #ifndef _HAVE_UINT64_T
20817 #define _HAVE_UINT64_T
20818 typedef unsigned long uint64_t;
20819 typedef long int64_t;
20820 #endif
20821 #elif _STDINT_LONG_MODEL+0 == 448
20822 /* LLP64 a 64-bit system derived from a 32-bit system */
20823 typedef unsigned char uint8_t;
20824 typedef unsigned short uint16_t;
20825 typedef unsigned int uint32_t;
20826 #ifndef __int8_t_defined
20827 #define __int8_t_defined
20828 typedef char int8_t;
20829 typedef short int16_t;
20830 typedef int int32_t;
20831 #endif
20832 /* assuming the system has a "long long" */
20833 #ifndef _HAVE_UINT64_T
20834 #define _HAVE_UINT64_T
20835 #define _HAVE_LONGLONG_UINT64_T
20836 typedef unsigned long long uint64_t;
20837 typedef long long int64_t;
20838 #endif
20839 #else
20840 #define _STDINT_NO_INT32_T
20841 #endif
20842 #else
20843 #define _STDINT_NO_INT8_T
20844 #define _STDINT_NO_INT32_T
20845 #endif
20846 #endif
20847
20848 /*
20849 * quote from SunOS-5.8 sys/inttypes.h:
20850 * Use at your own risk. As of February 1996, the committee is squarely
20851 * behind the fixed sized types; the "least" and "fast" types are still being
20852 * discussed. The probability that the "fast" types may be removed before
20853 * the standard is finalized is high enough that they are not currently
20854 * implemented.
20855 */
20856
20857 #if defined _STDINT_NEED_INT_LEAST_T
20858 typedef int8_t int_least8_t;
20859 typedef int16_t int_least16_t;
20860 typedef int32_t int_least32_t;
20861 #ifdef _HAVE_UINT64_T
20862 typedef int64_t int_least64_t;
20863 #endif
20864
20865 typedef uint8_t uint_least8_t;
20866 typedef uint16_t uint_least16_t;
20867 typedef uint32_t uint_least32_t;
20868 #ifdef _HAVE_UINT64_T
20869 typedef uint64_t uint_least64_t;
20870 #endif
20871 /* least types */
20872 #endif
20873
20874 #if defined _STDINT_NEED_INT_FAST_T
20875 typedef int8_t int_fast8_t;
20876 typedef int int_fast16_t;
20877 typedef int32_t int_fast32_t;
20878 #ifdef _HAVE_UINT64_T
20879 typedef int64_t int_fast64_t;
20880 #endif
20881
20882 typedef uint8_t uint_fast8_t;
20883 typedef unsigned uint_fast16_t;
20884 typedef uint32_t uint_fast32_t;
20885 #ifdef _HAVE_UINT64_T
20886 typedef uint64_t uint_fast64_t;
20887 #endif
20888 /* fast types */
20889 #endif
20890
20891 #ifdef _STDINT_NEED_INTMAX_T
20892 #ifdef _HAVE_UINT64_T
20893 typedef int64_t intmax_t;
20894 typedef uint64_t uintmax_t;
20895 #else
20896 typedef long intmax_t;
20897 typedef unsigned long uintmax_t;
20898 #endif
20899 #endif
20900
20901 #ifdef _STDINT_NEED_INTPTR_T
20902 #ifndef __intptr_t_defined
20903 #define __intptr_t_defined
20904 /* we encourage using "long" to store pointer values, never use "int" ! */
20905 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
20906 typedef unsigned int uintptr_t;
20907 typedef int intptr_t;
20908 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
20909 typedef unsigned long uintptr_t;
20910 typedef long intptr_t;
20911 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
20912 typedef uint64_t uintptr_t;
20913 typedef int64_t intptr_t;
20914 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
20915 typedef unsigned long uintptr_t;
20916 typedef long intptr_t;
20917 #endif
20918 #endif
20919 #endif
20920
20921 /* The ISO C99 standard specifies that in C++ implementations these
20922 should only be defined if explicitly requested. */
20923 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
20924 #ifndef UINT32_C
20925
20926 /* Signed. */
20927 # define INT8_C(c) c
20928 # define INT16_C(c) c
20929 # define INT32_C(c) c
20930 # ifdef _HAVE_LONGLONG_UINT64_T
20931 # define INT64_C(c) c ## L
20932 # else
20933 # define INT64_C(c) c ## LL
20934 # endif
20935
20936 /* Unsigned. */
20937 # define UINT8_C(c) c ## U
20938 # define UINT16_C(c) c ## U
20939 # define UINT32_C(c) c ## U
20940 # ifdef _HAVE_LONGLONG_UINT64_T
20941 # define UINT64_C(c) c ## UL
20942 # else
20943 # define UINT64_C(c) c ## ULL
20944 # endif
20945
20946 /* Maximal type. */
20947 # ifdef _HAVE_LONGLONG_UINT64_T
20948 # define INTMAX_C(c) c ## L
20949 # define UINTMAX_C(c) c ## UL
20950 # else
20951 # define INTMAX_C(c) c ## LL
20952 # define UINTMAX_C(c) c ## ULL
20953 # endif
20954
20955 /* literalnumbers */
20956 #endif
20957 #endif
20958
20959 /* These limits are merily those of a two complement byte-oriented system */
20960
20961 /* Minimum of signed integral types. */
20962 # define INT8_MIN (-128)
20963 # define INT16_MIN (-32767-1)
20964 # define INT32_MIN (-2147483647-1)
20965 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
20966 /* Maximum of signed integral types. */
20967 # define INT8_MAX (127)
20968 # define INT16_MAX (32767)
20969 # define INT32_MAX (2147483647)
20970 # define INT64_MAX (__INT64_C(9223372036854775807))
20971
20972 /* Maximum of unsigned integral types. */
20973 # define UINT8_MAX (255)
20974 # define UINT16_MAX (65535)
20975 # define UINT32_MAX (4294967295U)
20976 # define UINT64_MAX (__UINT64_C(18446744073709551615))
20977
20978 /* Minimum of signed integral types having a minimum size. */
20979 # define INT_LEAST8_MIN INT8_MIN
20980 # define INT_LEAST16_MIN INT16_MIN
20981 # define INT_LEAST32_MIN INT32_MIN
20982 # define INT_LEAST64_MIN INT64_MIN
20983 /* Maximum of signed integral types having a minimum size. */
20984 # define INT_LEAST8_MAX INT8_MAX
20985 # define INT_LEAST16_MAX INT16_MAX
20986 # define INT_LEAST32_MAX INT32_MAX
20987 # define INT_LEAST64_MAX INT64_MAX
20988
20989 /* Maximum of unsigned integral types having a minimum size. */
20990 # define UINT_LEAST8_MAX UINT8_MAX
20991 # define UINT_LEAST16_MAX UINT16_MAX
20992 # define UINT_LEAST32_MAX UINT32_MAX
20993 # define UINT_LEAST64_MAX UINT64_MAX
20994
20995 /* shortcircuit*/
20996 #endif
20997 /* once */
20998 #endif
20999 #endif
21000 STDINT_EOF
21001 fi
21002 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
21004 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
21005 else
21006 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
21007 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21008 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
21009 X"$ac_stdint_h" : 'X\(//\)$' \| \
21010 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
21011 $as_echo X"$ac_stdint_h" |
21012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21013 s//\1/
21014 q
21015 }
21016 /^X\(\/\/\)[^/].*/{
21017 s//\1/
21018 q
21019 }
21020 /^X\(\/\/\)$/{
21021 s//\1/
21022 q
21023 }
21024 /^X\(\/\).*/{
21025 s//\1/
21026 q
21027 }
21028 s/.*/./; q'`
21029 as_dir="$ac_dir"; as_fn_mkdir_p
21030 rm -f $ac_stdint_h
21031 mv $ac_stdint $ac_stdint_h
21032 fi
21033 ;;
21034 "checkmk-x":C) chmod +x checkmk/checkmk ;;
21035
21036 esac
21037 done # for ac_tag
21038
21039
21040 as_fn_exit 0
21041 _ACEOF
21042 ac_clean_files=$ac_clean_files_save
21043
21044 test $ac_write_fail = 0 ||
21045 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21046
21047
21048 # configure is writing to config.log, and then calls config.status.
21049 # config.status does its own redirection, appending to config.log.
21050 # Unfortunately, on DOS this fails, as config.log is still kept open
21051 # by configure, so config.status won't be able to write to it; its
21052 # output is simply discarded. So we exec the FD to /dev/null,
21053 # effectively closing config.log, so it can be properly (re)opened and
21054 # appended to by config.status. When coming back to configure, we
21055 # need to make the FD available again.
21056 if test "$no_create" != yes; then
21057 ac_cs_success=:
21058 ac_config_status_args=
21059 test "$silent" = yes &&
21060 ac_config_status_args="$ac_config_status_args --quiet"
21061 exec 5>/dev/null
21062 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21063 exec 5>>config.log
21064 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21065 # would make configure fail if this is the last instruction.
21066 $ac_cs_success || as_fn_exit 1
21067 fi
21068 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21070 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21071 fi
21072
21073
21074 # Finally, print a summary of the Check's compile options
21075
21076 echo
21077 echo "=========================================="
21078 echo "Summary of Check $CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION options:"
21079 echo
21080
21081 if test "x0" = x"$HAVE_FORK"; then
21082 result="no"
21083 else
21084 result="yes"
21085 fi
21086 echo "fork mode ............................ $result"
21087
21088 case "$hw_cv_librt_timers_posix" in
21089 "yes")
21090 result="no"
21091 ;;
21092 "no")
21093 result="yes"
21094 ;;
21095 *)
21096 # The AC_REPLACE_FUNCS macro was invoked,
21097 # meaning we are cross compiling.
21098 if test "xno" = x"$ac_cv_func_timer_create"; then
21099 result="yes"
21100 else
21101 result="no"
21102 fi
21103 ;;
21104 esac
21105 echo "high resolution timer replacement .... $result"
21106
21107 if test "xno" = x"$hw_cv_func_snprintf_c99"; then
21108 result="yes"
21109 else
21110 result="no"
21111 fi
21112 echo "snprintf replacement ................. $result"
21113
21114 if test "xfalse" = x"$enable_subunit"; then
21115 result="no"
21116 else
21117 result="yes"
21118 fi
21119 echo "subunit support....................... $result"
21120
21121 if test "xtrue" = x"$enable_timeout_tests"; then
21122 result="yes"
21123 else
21124 result="no"
21125 fi
21126 echo "timeout unit tests ................... $result"
21127
21128 if test "x0" = x"$ENABLE_REGEX"; then
21129 result="no"
21130 else
21131 result="yes"
21132 fi
21133 echo "POSIX regular expressions ............ $result"
21134
21135 if test "xtrue" = x"$enable_build_docs"; then
21136 result="yes"
21137 else
21138 result="no"
21139 fi
21140 echo "build docs ........................... $result"
21141
21142 echo "=========================================="